Add Changelog reference to BZ#23024
[glibc.git] / ChangeLog
blobbd0128a785ed6a2658a551221b1759cc3e96e531
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: Include <pthreadP.h>.
253         (__pthread_exit): Call __pthread_setcancelstate and
254         ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
255         __pthread_get_cleanup_stack.
256         * htl/pt-testcancel.c: Include <pthreadP.h>.
257         (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
258         * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
259         (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
260         __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
261         pthread_attr_getstacksize.
262         * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
263         Rename to __pthread_attr_getstackaddr.
264         (pthread_attr_getstackaddr): New strong alias.
265         * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
266         Rename to __pthread_attr_getstacksize.
267         (pthread_attr_getstacksize): New strong alias.
268         * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
269         (pthread_attr_setstack): Rename to __pthread_attr_setstack.
270         (pthread_attr_setstack): New strong alias.
271         (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
272         __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
273         pthread_attr_getstacksize, pthread_attr_setstacksize and
274         pthread_attr_setstackaddr.
275         * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
276         Rename to __pthread_attr_setstackaddr.
277         (pthread_attr_setstackaddr): New strong alias.
278         * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
279         Rename to __pthread_attr_setstacksize.
280         (pthread_attr_setstacksize): New strong alias.
281         * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
282         (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
283         pthread_exit.
284         * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
285         (__pthread_key_create): New hidden def.
286         * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
287         * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
288         __pthread_cond_broadcast, __pthread_create, __pthread_detach,
289         __pthread_exit, __pthread_key_create, __pthread_getspecific,
290         __pthread_setspecific, __pthread_setcancelstate,
291         __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
292         __pthread_attr_getstacksize, __pthread_attr_setstacksize,
293         __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
294         declarations.
295         (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
296         * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
297         (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
298         (pthread_attr_setstackaddr): New strong alias.
299         * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
300         (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
301         (pthread_attr_setstacksize): New strong alias.
302         * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
303         (call_exit): Call __pthread_exit instead of pthread_exit.
304         * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
305         (_pthread_mutex_init): New hidden definition.
306         * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
307         (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
308         instead of pthread_attr_init and pthread_attr_setstack.
310         * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
311         __vm_deallocate instead of vm_allocate and vm_deallocate.
312         * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
313         setenv.
314         * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
315         of geteuid.
316         * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
317         strdup.
318         * hurd/siginfo.c: Include <libioP.h>.
319         (_hurd_siginfo_handler): Call _IO_puts instead of puts.
320         * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
321         munmap.
322         * mach/devstream.c: Include <libioP.h>.
323         (dealloc_ref): Call __mach_port_deallocate instead of
324         mach_port_deallocate.
325         (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
326         Call __mach_port_deallocate instead of mach_port_deallocate.
327         * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
328         pathconf.
329         * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
330         munmap.
331         * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
332         * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
333         * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
334         of munmap.
335         * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
336         of close.
337         * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
338         instead of sysconf.
339         * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
340         __clock_gettime instead of clock_gettime.
341         * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
342         * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
343         * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
344         * sysdeps/unix/bsd/stty.c (stty): Likewise.
345         * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
346         tcgetattr.
347         * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
348         __clock_gettime and __nanosleep instead of clock_gettime and
349         nanosleep.
350         * hurd/catch-signal.c (hurd_catch_signal): Rename to
351         __hurd_catch_signal.
352         (hurd_catch_signal): New strong alias.
353         (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
354         __hurd_catch_signal instead of hurd_catch_signal.
355         * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
356         * hurd/hurdexec.c (_hurd_init): Add hidden def.
357         * hurd/hurdinit.c (_hurd_init): Add hidden def.
358         * hurd/hurdsig.c: Include <mach/mig_support.h>.
359         (_hurd_thread_sigstate): Add hidden def.
360         (_hurd_internal_post_signal): Use __mutex_unlock instead of
361         mutex_unlock.
362         * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
363         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
364         * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
365         __hurd_file_name_path_lookup.
366         (hurd_file_name_path_lookup): New strong alias.
367         (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
368         hurd_file_name_path_lookup.
369         * mach/errstring.c (mach_error_type): Add hidden def.
370         * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
371         * mach/mutex-init.c (__mutex_init): Add hidden def.
372         * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
373         __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
374         * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
375         * sysdeps/mach/hurd/getcwd.c
376         (_hurd_canonicalize_directory_name_internal): Rename to
377         __hurd_canonicalize_directory_name_internal.
378         (_hurd_canonicalize_directory_name_internal): New strong alias.
379         (__canonicalize_directory_name_internal, __getcwd): Call
380         __hurd_canonicalize_directory_name_internal instead of
381         _hurd_canonicalize_directory_name_internal.
382         * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
383         (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
384         hidden defs.
385         * sysdeps/hurd/include/hurd.h: New file.
386         * sysdeps/hurd/include/hurd/fd.h: New file.
387         * sysdeps/hurd/include/hurd/signal.h: New file.
388         * sysdeps/mach/include/lock-intern.h: New file.
389         * sysdeps/mach/include/mach.h: New file.
390         * sysdeps/mach/include/mach/mig_support.h: New file.
391         * sysdeps/mach/include/mach_error.h: New file.
392         * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
393         prototype.
394         * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
395         * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
396         _HEADER_H_HIDDEN_DEF macro.
397         * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
398         _hurd_fd_error_signal): Add hidden prototype.
399         [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
400         hidden def.
401         * hurd/catch-signal.c (__hurd_catch_signal): Call __libc_siglongjmp
402         instead if siglongjmp.
403         (hurd_safe_memmove): Call __libc_longjmp instead of longjmp.
404         * hurd/hurdfault.c (faulted): Call __libc_longjmp instead of longjmp.
405         * include/setjmp.h (__libc_siglongjmp, __libc_longjmp): New hidden
406         prototypes.
407         * libio/iolibio.h (_IO_puts): New hidden prototype.
408         * libio/ioputs.c (_IO_puts): New hidden def.
409         * setjmp/longjmp.c (__libc_longjmp, __libc_siglongjmp): New hidden
410         defs.
411         * sysdeps/mach/hurd/sigwait.c (__sigwait): Call __libc_longjmp instead
412         of longjmp.
413         * sysdeps/s390/longjmp.c (__libc_longjmp, __libc_siglongjmp): New
414         hidden defs.
416         * sysdeps/mach/hurd/localplt.data: New file.
418 2018-04-02  Agustina Arzille  <avarzille@riseup.net>
419             Amos Jeffries  <squid3@treenet.co.nz>
420             David Michael  <fedora.dm0@gmail.com>
421             Marco Gerards  <marco@gnu.org>
422             Marcus Brinkmann  <marcus@gnu.org>
423             Neal H. Walfield  <neal@gnu.org>
424             Pino Toscano  <toscano.pino@tiscali.it>
425             Richard Braun  <rbraun@sceen.net>
426             Roland McGrath  <roland@gnu.org>
427             Samuel Thibault  <samuel.thibault@ens-lyon.org>
428             Thomas DiModica  <ricinwich@yahoo.com>
429             Thomas Schwinge  <tschwinge@gnu.org>
431         * htl: New directory.
432         * sysdeps/htl: New directory.
433         * sysdeps/hurd/htl: New directory.
434         * sysdeps/i386/htl: New directory.
435         * sysdeps/mach/htl: New directory.
436         * sysdeps/mach/hurd/htl: New directory.
437         * sysdeps/mach/hurd/i386/htl: New directory.
438         * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
439         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
440         * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
442 2018-04-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
444         * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
445         signals in thread created for runing timers.
447 2018-04-01  Florian Weimer  <fweimer@redhat.com>
449         * support/support_format_addrinfo.c (support_format_addrinfo):
450         Include unknown error number in formatted result.
452 2018-03-29  Florian Weimer  <fweimer@redhat.com>
454         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
455         capture SIGBUS.
457 2018-03-27  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
459         * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
460         (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
461         * sysdeps/unix/sysv/linux/sparc/kernel-features.h
462         (__ASSUME_CLONE_BACKWARDS): Define.
464 2018-03-27  Jesse Hathaway  <jesse@mbuki-mvuki.org>
466         [BZ #23024]
467         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
468         early when linux sentinel value is set.
470 2018-03-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
472         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
474 2018-03-27  Andreas Schwab  <schwab@suse.de>
476         [BZ #23005]
477         * resolv/res_send.c (__res_context_send): Return ENOMEM if
478         allocation of private copy of nsaddr_list fails.
480 2018-03-26  Joseph Myers  <joseph@codesourcery.com>
482         [BZ #16552]
483         * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
484         * sysdeps/unix/sysv/linux/umount.c: ... here.
485         * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
486         * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
487         * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
488         * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
490         * sysdeps/unix/sysv/linux/umount.S: Likewise.
491         * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
493 2018-03-26  Andreas Schwab  <schwab@suse.de>
495         * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
496         (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
497         (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
498         (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
499         (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
500         (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
501         (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
502         (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
503         (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
504         (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
505         (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
506         (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
507         (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
508         (R_RISCV_NUM): Define.
510 2018-03-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
512         * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
513         TLS declaration of errno.
514         * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
515         __libc_setup_tls.
516         * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
517         (ARCH_SETUP_TLS): Likewise.
518         * sysdeps/mach/hurd/libc-start.h: New file copied from
519         sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
520         * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
521         instead of __libc_setup_tls.
522         * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
523         __libc_setup_tls before initializing libpthread and running _hurd_init
524         which starts the signal thread.
525         * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
526         Declare function.
527         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
529 2018-03-24  H.J. Lu  <hongjiu.lu@intel.com>
531         [BZ #22998]
532         * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
533         after it is defined.
535 2018-03-23  Andrew Senkevich  <andrew.senkevich@intel.com>
536             Max Horn  <max@quendi.de>
538         [BZ #22644]
539         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
540         branch conditions.
541         * string/test-memmove.c (do_test2): New testcase.
543 2018-03-22  Joseph Myers  <joseph@codesourcery.com>
545         * sysdeps/generic/frame.h: Remove file.
546         * sysdeps/arm/frame.h: Likewise.
547         * sysdeps/hppa/frame.h: Likewise.
548         * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
549         macro.
550         (GET_FRAME): Likewise.
551         (GET_STACK): Likewise.
552         (CALL_SIGHANDLER): Likewise.
553         * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
554         Likewise.
555         (GET_FRAME): Likewise.
556         (GET_STACK): Likewise.
557         (CALL_SIGHANDLER): Likewise.
558         * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
559         (SIGCONTEXT_EXTRA_ARGS): Likewise.
560         (GET_FRAME): Likewise.
561         (GET_STACK): Likewise.
562         (CALL_SIGHANDLER): Likewise.
563         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
564         (SIGCONTEXT_EXTRA_ARGS): Likewise.
565         (GET_FRAME): Likewise.
566         (GET_STACK): Likewise.
567         (ADVANCE_STACK_FRAME): Likewise.
568         (CALL_SIGHANDLER): Likewise.
569         * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
570         (SIGCONTEXT_EXTRA_ARGS): Likewise.
571         (GET_FRAME): Likewise.
572         (GET_STACK): Likewise.
573         (CALL_SIGHANDLER): Likewise.
574         * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
575         (SIGCONTEXT_EXTRA_ARGS): Likewise.
576         (GET_FRAME): Likewise.
577         (GET_STACK): Likewise.
578         (CALL_SIGHANDLER): Likewise.
579         * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
580         (SIGCONTEXT_EXTRA_ARGS): Likewise.
581         (GET_FRAME): Likewise.
582         (GET_STACK): Likewise.
583         (CALL_SIGHANDLER): Likewise.
584         * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
585         (SIGCONTEXT_EXTRA_ARGS): Likewise.
586         (GET_FRAME): Likewise.
587         (GET_STACK): Likewise.
588         (CALL_SIGHANDLER): Likewise.
589         * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
590         (SIGCONTEXT_EXTRA_ARGS): Likewise.
591         (GET_FRAME): Likewise.
592         (GET_STACK): Likewise.
593         (CALL_SIGHANDLER): Likewise.
594         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
595         (SIGCONTEXT_EXTRA_ARGS): Likewise.
596         (GET_FRAME): Likewise.
597         (GET_STACK): Likewise.
598         (CALL_SIGHANDLER): Likewise.
599         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
600         (SIGCONTEXT_EXTRA_ARGS): Likewise.
601         (GET_FRAME): Likewise.
602         (GET_STACK): Likewise.
603         (CALL_SIGHANDLER): Likewise.
604         * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
605         (SIGCONTEXT_EXTRA_ARGS): Likewise.
606         (GET_FRAME): Likewise.
607         (GET_STACK): Likewise.
608         (CALL_SIGHANDLER): Likewise.
609         * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
610         (SIGCONTEXT_EXTRA_ARGS): Likewise.
611         (GET_FRAME): Likewise.
612         (GET_STACK): Likewise.
613         (CALL_SIGHANDLER): Likewise.
614         * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
615         (SIGCONTEXT_EXTRA_ARGS): Likewise.
616         (FIRST_FRAME_POINTER): Likewise.
617         (ADVANCE_STACK_FRAME): Likewise.
618         (GET_STACK): Likewise.
619         (GET_FRAME): Likewise.
620         (CALL_SIGHANDLER): Likewise.
621         * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
622         (SIGCONTEXT_EXTRA_ARGS): Likewise.
623         (ADVANCE_STACK_FRAME): Likewise.
624         (GET_STACK): Likewise.
625         (GET_FRAME): Likewise.
626         (CALL_SIGHANDLER): Likewise.
627         * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
628         (SIGCONTEXT_EXTRA_ARGS): Likewise.
629         (GET_FRAME): Likewise.
630         (GET_STACK): Likewise.
631         (CALL_SIGHANDLER): Likewise.
632         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
633         (SIGCONTEXT_EXTRA_ARGS): Likewise.
634         (GET_FRAME): Likewise.
635         (GET_STACK): Likewise.
636         (CALL_SIGHANDLER): Likewise.
638 2018-03-21  Joseph Myers  <joseph@codesourcery.com>
640         * sysdeps/x86_64/backtrace.c: Move to ....
641         * debug/backtrace.c: ... here.
642         * sysdeps/aarch64/backtrace.c: Remove file.
643         * sysdeps/alpha/backtrace.c: Likewise.
644         * sysdeps/hppa/backtrace.c: Likewise.
645         * sysdeps/ia64/backtrace.c: Likewise.
646         * sysdeps/mips/backtrace.c: Likewise.
647         * sysdeps/nios2/backtrace.c: Likewise.
648         * sysdeps/riscv/backtrace.c: Likewise.
649         * sysdeps/sh/backtrace.c: Likewise.
650         * sysdeps/tile/backtrace.c: Likewise.
652 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
654         [BZ #22987]
655         * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
656         function.
657         (fdimf): Likewise.
658         * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
660         [BZ #17343]
661         * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
662         possibly overflowing computations.
664 2018-03-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
666         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
667         values from Linux-specific section now that it is in the GNU section.
668         * sysdeps/gnu/errlist.c: Regenerate.
670 2018-03-20  Joseph Myers  <joseph@codesourcery.com>
672         * math/Makefile (libm-narrow-fns): Add sub.
673         (libm-test-funcs-narrow): Likewise.
674         * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
675         * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
676         * math/gen-auto-libm-tests.c (test_functions): Add sub.
677         * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
678         (NARROW_SUB_ROUND_TO_ODD): Likewise.
679         (NARROW_SUB_TRIVIAL): Likewise.
680         * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
681         macro.
682         (__dsubl): Likewise.
683         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
684         dsub.
685         (CFLAGS-nldbl-dsub.c): New variable.
686         (CFLAGS-nldbl-fsub.c): Likewise.
687         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
688         __nldbl_dsubl.
689         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
690         prototype.
691         * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
692         dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
693         * math/auto-libm-test-in: Add tests of sub.
694         * math/auto-libm-test-out-narrow-sub: New generated file.
695         * math/libm-test-narrow-sub.inc: New file.
696         * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
697         * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
698         * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
699         * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
700         * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
701         * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
702         * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
703         * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
704         * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
705         * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
706         * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
707         * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
708         * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
709         * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
710         * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
711         * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
712         * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
713         * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
714         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
715         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
716         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
717         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
718         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
719         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
720         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
721         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
722         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
723         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
724         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
725         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
726         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
727         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
732         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
733         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
734         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
735         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
736         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
737         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
738         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
739         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
740         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
741         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
743 2018-03-19  Joseph Myers  <joseph@codesourcery.com>
745         [BZ #20079]
746         * elf/elf.h (SHT_X86_64_UNWIND): New macro.
748 2018-03-19  Wilco Dijkstra  <wdijkstr@arm.com>
750         * benchtests/bench-timing.h (attribute_hidden): Undefine.
752 2018-03-18  Richard Braun  <rbraun@sceen.net>
754         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
755         thread reference.
757 2018-03-18  Agustina Arzille  <avarzille@riseup.net>
759         * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
760         (__libc_cleanup_fct): Define function.
761         (__libc_cleanup_region_start, __libc_cleanup_region_end,
762         __libc_cleanup_end): Rewrite implementation using
763         __attribute__ ((__cleanup__)).
764         (__libc_cleanup_push, __libc_cleanup_pop): New macros.
765         * hurd/Makefile (routines): Add hurdlock.
766         * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
767         interface.
768         (HURD_CTHREADS_0.3): Remove __libc_getspecific.
769         * hurd/hurdpid.c: Include <lowlevellock.h>
770         (_S_msg_proc_newids): Use lll_wait to synchronize.
771         * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
772         * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
773         * mach/Makefile (lock-headers): Remove machine-lock.h.
774         * mach/lock-intern.h: Include <lowlevellock.h> instead of
775         <machine-lock.h>.
776         (__spin_lock_t): New type.
777         (__SPIN_LOCK_INITIALIZER): New macro.
778         (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
779         __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
780         __mutex_unlock, __mutex_trylock): Use lll to implement locks.
781         * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
782         (__mutex_init): Initialize with lll.
783         * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
784         * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
785         needing lll.
786         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
787         * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
788         * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
789         * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
790         (__setpgid): Use lll for synchronization.
791         * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
792         * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
793         instead of <cthreads.h>.
794         (_IO_lock_inexpensive): New macro
795         (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
796         (__libc_lock_self0): New declaration.
797         (__libc_lock_owner_self): New macro.
798         (__libc_key_t): Remove type.
799         (_LIBC_LOCK_INITIALIZER): New macro.
800         (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
801         __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
802         __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
803         __libc_lock_define_initialized_recursive,
804         __rtld_lock_define_initialized_recursive,
805         __libc_lock_init_recursive, __libc_lock_trylock_recursive,
806         __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
807         __rtld_lock_initialize, __rtld_lock_trylock_recursive,
808         __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
809         __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
810         (__libc_lock_define_recursive, __rtld_lock_define_recursive,
811         _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
812         New macros.
813         Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
814         * hurd/hurdlock.c: New file.
815         * hurd/hurdlock.h: New file.
816         * mach/lowlevellock.h: New file
818 2018-03-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
820         * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
821         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
822         when opening a symlink with O_NOFOLLOW.
823         * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
824         path when flags contains O_NOFOLLOW.
825         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
826         if flags contains O_DIRECTORY and the result is a directory.
827         * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
828         oneself when the pointer given in D is nul (as set by ext2fs).
829         * sysdeps/mach/hurd/mlockall.c: New file.
830         * sysdeps/mach/hurd/munlockall.c: New file.
832 2018-03-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
834         * hurd/hurdsig.c: Include <pthread.h>.
835         (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
836         get the signal thread stack layout.
837         * hurd/Makefile (headers): Remove threadvar.h.
838         (inline-headers): Remove threadvar.h.
839         * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
840         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
841         __hurd_threadvar_max, __hurd_errno_location.
842         (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
843         * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
844         (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
845         (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
846         unless TLS is not initialized yet, in which case we do not need a
847         critical section yet anyway.
848         * hurd/hurd/threadvar.h: Include <tls.h>, do not include
849         <machine-sp.h>.
850         (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
851         declarations.
852         (__hurd_threadvar_index): Remove enum.
853         (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
854         (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
855         inlines.
856         (__hurd_reply_port0): New variable declaration.
857         (__hurd_local_reply_port): New macro.
858         * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
859         (interrupted_reply_port_location): Add thread_t parameter.  Use it
860         with THREAD_TCB to access thread-local variables.
861         (_hurdsig_abort_rpcs): Pass ss->thread to
862         interrupted_reply_port_location.
863         (_hurd_internal_post_signal): Likewise.
864         (_hurdsig_init): Use presence of cthread_fork instead of
865         __hurd_threadvar_stack_mask to start signal thread by hand.
866         Remove signal thread threadvar initialization.
867         * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
868         * hurd/sigunwind.c: Include <hurd/threadvar.h>
869         (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
870         of threadvar.
871         * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
872         __libc_lock_self0.
873         (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
874         __hurd_sigthread_stack_end, __hurd_sigthread_variables.
875         (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
876         * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
877         * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
878         __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
879         __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
880         define variables.
881         * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
882         <hurd/threadvar.h>.
883         [IS_IN(rtld)] (rtld_errno): New variable.
884         [IS_IN(rtld)] (__errno_location): New weak function.
885         [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
886         * sysdeps/mach/hurd/errno.c: Remove file.
887         * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
888         (__fork): Remove THREADVAR_SPACE macro and its use.
889         * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
890         variable.
891         (init): Do not initialize threadvar.
892         * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
893         symbol.
894         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
895         __hurd_local_reply_port instead of threadvar.
896         * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
897         _hurd_sigstate fields.
898         (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
899         * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
900         * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
901         (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
902         instead of threadvar.
903         * sysdeps/mach/hurd/libc-tsd.h: Remove file.
904         * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
905         (use_threadvar, global_reply_port): Remove variables.
906         (__hurd_reply_port0): New variable.
907         (__mig_get_reply_port): Use __hurd_local_reply_port and
908         __hurd_reply_port0 instead of threadvar.
909         (__mig_dealloc_reply_port): Likewise.
910         (__mig_init): Do not initialize threadvar.
911         * sysdeps/mach/hurd/profil.c: Fix comment.
912         * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
913         cthread_detach, pthread_getattr_np, pthread_attr_getstack,
914         cthread_keycreate, cthread_getspecific, cthread_setspecific to
915         __cthread_fork, __cthread_detach, __pthread_getattr_np,
916         __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
917         __cthread_setspecific.
918         * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
919         __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
920         __cthread_t instead of cthread_fork, cthread_detach,
921         pthread_getattr_np, pthread_attr_getstack.
922         * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
923         __cthread_keycreate.
924         (cthread_getspecific): Rename to __cthread_getspecific.
925         (cthread_setspecific): Rename to __cthread_setspecific.
926         (__libc_getspecific): Use __cthread_getspecific instead of
927         cthread_getspecific.
928         * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
929         __cthread_keycreate instead of cthread_keycreate.
930         (__libc_setspecific): Use __cthread_setspecific instead of
931         cthread_setspecific.
932         * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
933         Likewise.
934         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
935         <dl-sysdep.h>.  Test for value of RTLD_PRIVATE_ERRNO instead of
936         testing whether it is defined.
938 2018-03-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
940         * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
941         Define macro.
942         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
943         * sysdeps/mach/i386/thread_state.h
944         (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
945         i386_THREAD_STATE.
946         (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
947         i386_THREAD_STATE.
948         (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
950         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
951         i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
953         * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
954         macros.
955         (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
956         descriptor instead of creating a new one.
957         (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
959         * mach/setup-thread.c: Include <ldsodefs.h>.
960         (__mach_setup_thread): Call _dl_allocate_tls, pass
961         MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
962         MACHINE_THREAD_STATE_FLAVOR, before getting
963         MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
964         MACHINE_THREAD_STATE_FLAVOR with the result.
965         * hurd/hurdfault.c (_hurdsig_fault_init): Call
966         MACHINE_THREAD_STATE_FIX_NEW.
967         * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
968         too.  Add original thread parameter.
970 2018-03-16  Joseph Myers  <joseph@codesourcery.com>
972         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
973         Remove inline function.
975         * sysdeps/i386/fpu/libm-test-ulps: Update.
976         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
978 2018-03-16  Wilco Dijkstra  <wdijkstr@arm.com>
980         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
981         commit.
983 2018-03-15  Joseph Myers  <joseph@codesourcery.com>
985         * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
986         (__sincos_code): Remove define and undefine.
987         [__FAST_MATH__] (__sincos): Remove inline function.
988         [__FAST_MATH__] (__sincosf): Remove inline function.
989         [__FAST_MATH__] (__sincosl): Remove inline function.
990         (__atan2l): Remove inline functions.
991         [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
992         [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
993         function.
994         (floor): Remove inline function.
995         (ceil): Likewise.
996         [__FAST_MATH__] (__ldexp_code): Remove macro.
997         [__FAST_MATH__] (ldexp): Remove inline function.
998         [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
999         [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
1000         [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
1001         [__USE_ISOC99] (__lrint_code): Remove macro.
1002         [__USE_ISOC99] (__llrint_code): Likewise.
1003         [__USE_ISOC99] (lrintf): Remove inline function.
1004         [__USE_ISOC99] (lrint): Likewise.
1005         [__USE_ISOC99] (lrintl): Likewise.
1006         [__USE_ISOC99] (llrint): Likewise.
1007         [__USE_ISOC99] (llrintf): Likewise.
1008         [__USE_ISOC99] (llrintl): Likewise.
1010 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
1012         * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
1013         (__ieee754_sqrtf): Remove.
1014         * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
1015         (__ieee754_sqrtf): Remove.
1016         * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
1017         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
1018         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
1019         (__ieee754_sqrtf): Remove.
1020         * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
1021         * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
1022         (sqrtf): Remove.
1023         (sqrtl): Remove.
1024         (__ieee754_sqrt): Remove.
1025         (__ieee754_sqrtf): Remove.
1026         (__ieee754_sqrtl): Remove.
1027         * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
1028         * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
1029         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
1030         (__ieee754_sqrtf): Remove.
1031         (__ieee754_sqrtl): Remove.
1033 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
1035         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
1036         * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
1037         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
1038         * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
1039         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
1040         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
1041         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
1042         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
1043         Likewise.
1044         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
1045         * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
1046         * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
1047         * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
1048         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
1049         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
1050         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
1051         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
1052         * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
1053         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
1054         * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
1055         * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
1056         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
1057         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
1058         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
1059         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
1060         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1061         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
1062         * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
1063         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
1064         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
1065         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1066         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
1067         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
1068         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
1069         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
1070         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1071         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1072         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
1073         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
1074         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
1075         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
1076         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
1077         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
1078         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
1079         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1080         * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
1081         * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
1082         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
1083         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
1085 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
1087         * include/math.h (sqrt): Declare with asm redirect.
1088         (sqrtf): Likewise.
1089         (sqrtl): Likewise.
1090         (sqrtf128): Likewise.
1091         * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
1092         nonlib and libnldbl with -fmath-errno.
1093         * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
1094         * math/w_sqrt_template.c: Likewise.
1095         * math/w_sqrtf_compat.c: Likewise.
1096         * math/w_sqrtl_compat.c: Likewise.
1097         * sysdeps/i386/fpu/w_sqrt.c: Likewise.
1098         * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
1099         * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
1100         complex.h.
1102 2018-03-15  Wilco Dijkstra  <wdijkstr@arm.com>
1104         * benchtests/Makefile: Define _ISOMAC.
1105         * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
1106         * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
1107         * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
1108         * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
1109         * benchtests/bench-timing.h: Define attribute_hidden.
1111 2018-03-15  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1113         * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
1114         mov + lsr.
1116 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
1118         [BZ #22963]
1119         * localedata/locales/cs_CZ (mon): Rename to...
1120         (alt_mon): This.
1121         (mon): Import from CLDR (genitive case).
1123 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
1125         [BZ #22937]
1126         * localedata/locales/el_CY (abmon): Rename to...
1127         (ab_alt_mon): This.
1128         (abmon): Import from CLDR (abbreviated genitive case).
1129         * localedata/locales/el_GR (abmon): Rename to...
1130         (ab_alt_mon): This.
1131         (abmon): Import from CLDR (abbreviated genitive case).
1133 2018-03-15  Rafal Luzynski  <digitalfreak@lingonborough.com>
1135         [BZ #22932]
1136         * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
1138 2018-03-15  Robert Buj  <robert.buj@gmail.com>
1140         [BZ #22848]
1141         * localedata/locales/ca_ES (abmon): Rename to...
1142         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
1143         (mon): Rename to...
1144         (alt_mon): This.
1145         (abmon): Import from CLDR (genitive case, month names preceded by
1146         "de" or "d’").
1147         (mon): Likewise.
1148         (abday): Synchronize with CLDR.
1149         (d_t_fmt): Likewise.
1150         (d_fmt): Likewise.
1151         (am_pm): Likewise.
1153         (LC_TIME): Improve indentation.
1154         (LC_TELEPHONE): Likewise.
1155         (LC_NAME): Likewise.
1156         (LC_ADDRESS): Likewise.
1158 2018-03-14  Joseph Myers  <joseph@codesourcery.com>
1160         * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
1161         (lrintf): Remove definitions used only with old GCC.
1162         [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
1163         [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
1164         [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
1165         [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
1166         [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
1167         [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
1168         [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
1169         [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
1170         [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
1171         [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
1172         [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
1173         [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
1174         [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
1175         [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
1176         [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
1177         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
1178         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
1179         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
1180         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
1181         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
1182         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
1183         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
1184         [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
1185         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
1186         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
1187         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
1188         [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
1189         [__FAST_MATH__] (__M_SQRT2): Remove macro.
1191 2018-03-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1193         * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
1194         instruction to unbreak builds with binutils 2.26 and older.
1196 2018-03-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1198         * sysdeps/aarch64/strncmp.S (count): New macro.
1199         (strncmp): Store misaligned length in SRC1 in COUNT.
1200         (mutual_align): Adjust.
1201         (misaligned8): Load dword at a time when it is safe.
1203 2018-03-12  Zack Weinberg  <zackw@panix.com>
1205         [BZ #1190]
1206         [BZ #19476]
1207         * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
1208         if the _IO_EOF_SEEN bit is already set; update commentary.
1209         * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
1210         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
1212         * support/support_openpty.c, support/tty.h: New files.
1213         * support/Makefile (libsupport-routines): Add support_openpty.
1215         * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
1216         New test cases.
1217         * libio/Makefile (tests): Add tst-fgetc-after-eof.
1218         * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
1220 2018-03-12  Dmitry V. Levin  <ldv@altlinux.org>
1222         * po/pt_BR.po: Update translations.
1224 2018-03-12  David Michael <fedora.dm0@gmail.com>
1226         * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
1227         (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
1228         get a port to the startup server.
1230 2018-03-11  Zack Weinberg  <zackw@panix.com>
1232         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
1233         before nldbl-compat.h.
1235 2018-03-10  Zack Weinberg  <zackw@panix.com>
1237         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
1238         math.h or math_private.h.
1240         * sysdeps/alpha/fpu/s_isnan.c
1241         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
1242         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
1243         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
1244         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
1245         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
1246         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
1247         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
1248         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
1249         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
1250         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
1251         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
1252         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
1253         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
1254         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
1255         Include math_private.h.
1257         * sysdeps/ieee754/ldbl-64-128/s_finitel.c
1258         * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
1259         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
1260         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
1261         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
1262         * sysdeps/powerpc/power7/fpu/s_logb.c:
1263         Include math.h and math_private.h.
1265         * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
1266         uses of $at in .set noat / .set at.
1268 2018-03-10  H.J. Lu  <hongjiu.lu@intel.com>
1270         * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
1271         * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
1272         * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
1273         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
1274         Likewise.
1276 2018-03-09  Florian Weimer  <fweimer@redhat.com>
1278         * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
1279         in comment.
1281 2018-03-09  Aurelien Jarno  <aurelien@aurel32.net>
1283         [BZ #22919]
1284         * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
1285         Add nop before __startcontext, add explaining comments.
1287 2018-03-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1289         [BZ #22926]
1290         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
1291         empty for __SPE__.
1292         * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
1293         * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
1294         Do not build hardware transactional code for __SPE__.
1295         * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
1296         (__lll_trylock_elision): Likewise.
1297         * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
1298         (__lll_unlock_elision): Likewise.
1300         * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
1301         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
1302         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
1303         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
1304         * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
1305         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
1306         * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
1307         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
1308         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
1309         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
1310         * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
1311         * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
1312         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
1313         * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
1314         * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
1315         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
1316         * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
1317         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
1318         * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
1319         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
1320         * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
1321         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1322         (__ASSUME_CLONE_BACKWARDS): Define.
1323         * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
1324         __clone2 if __NR_clone2 is defined.
1325         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
1326         (__ASSUME_CLONE_BACKWARDS): Likewise.
1327         * sysdeps/unix/sysv/linux/i386/kernel-features.h
1328         (__ASSUME_CLONE_BACKWARDS): Likewise.
1329         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
1330         (__ASSUME_CLONE2): Likewise.
1331         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
1332         (__ASSUME_CLONE_BACKWARDS3): Likewise.
1333         * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
1334         variants and the define architecture can use.
1335         (__ASSUME_CLONE_DEFAULT): Define as default.
1336         * sysdeps/unix/sysv/linux/mips/kernel-features.h
1337         (__ASSUME_CLONE_BACKWARDS): Likewise.
1338         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
1339         (__ASSUME_CLONE_BACKWARDS): Likewise.
1340         * sysdeps/unix/sysv/linux/s390/kernel-features.h
1341         (__ASSUME_CLONE_BACKWARDS2): Likewise.
1343 2018-03-06  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1345         * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
1347         * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
1348         time.
1350         * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
1351         (do_test_limit): Likewise.
1353         * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
1354         for every implementation.
1355         (do_test): Likewise.
1357         * benchtests/bench-strncmp.c: Convert output to json.
1359 2018-03-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1361         * io/futimens.c: Add missing start-of-file descriptive comment.
1362         * io/utime.c: Likewise.
1363         * misc/futimesat.c: Likewise.
1364         * misc/utimes.c: Likewise.
1365         * sysdeps/mach/hurd/futimesat.c: Likewise.
1366         * sysdeps/mach/hurd/utimes.c: Likewise.
1367         * sysdeps/posix/utime.c: Likewise.
1368         * sysdeps/posix/utimes.c: Likewise.
1369         * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
1370         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
1371         * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
1372         * sysdeps/unix/sysv/linux/utimes.c: Likewise.
1374 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1376         * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
1377         hurd_futimes.
1378         * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
1379         * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
1380         * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
1381         (__futimens): Move implementation to...
1382         * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
1383         utime_tvalue_from_tspec): ... new helper functions.
1384         (hurd_futimens): New function.
1385         * sysdeps/mach/hurd/futimesat.c: New file.
1386         * sysdeps/mach/hurd/utimensat.c: New file.
1388 2018-03-05  Flávio Cruz  <flaviocruz@gmail.com>
1390         * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
1391         UTIME_OMIT): New macros.
1392         * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
1393         before reverting to converting time spec to time value and calling
1394         __file_utimes.
1395         * sysdeps/mach/hurd/utime-helper.c: New file.
1396         * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
1397         (__futimes): Try to use utime_ts_from_tval and __file_utimens before
1398         reverting to utime_tvalue_from_tval and __file_utimes.
1399         * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
1400         (__lutimes): Just call hurd_futimens after lookup.
1401         * sysdeps/mach/hurd/utimes.c: Likewise.
1403 2018-03-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1405         * bits/sigaction.h: Add include guard.
1406         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
1407         * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
1408         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
1409         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
1410         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
1411         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
1412         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1413         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
1414         * hurd/hurd/signal.h: Include <bits/sigaction.h>.
1416 2018-03-05  Joseph Myers  <joseph@codesourcery.com>
1418         * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
1419         -Wmaybe-uninitialized for -Os.
1420         * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
1421         this disabling.
1423 2018-03-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1425         * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
1426         __INO_T_MATCHES_INO64_T is defined.
1427         * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
1428         * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
1429         of definition.
1430         * dirent/alphasort64.c: Likewise.
1431         * dirent/scandir.c: Likewise.
1432         * dirent/scandir64-tail.c: Likewise.
1433         * dirent/scandir64.c: Likewise.
1434         * dirent/scandirat.c: Likewise.
1435         * dirent/scandirat64.c: Likewise.
1436         * dirent/versionsort.c: Likewise.
1437         * dirent/versionsort64.c: Likewise.
1438         * include/dirent.h: Likewise.
1440         * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
1441         * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
1442         for socketpair endpoint.
1443         * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
1444         WRITE_BUFFER_SIZE as buffer size for sending socket.
1445         (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
1446         issue on system where send is implemented with sendto syscall.
1447         * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
1448         (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
1449         [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
1450         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
1452         [BZ #21269]
1453         * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
1454         * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
1455         sa_restorer for vDSO case.
1456         * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
1458 2018-03-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1460         * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
1461         * hurd/hurd/id.h: Include <hurd/hurd_types.h>
1462         * hurd/hurd/ioctl.h: Include <mach/port.h>
1463         * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
1464         * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
1465         <mach/mach_types.h> and <mach/message.h>.
1466         (headers): Move mach/param.h to bits/mach/param.h.
1467         * sysdeps/mach/i386/mach/param.h: Move file to ...
1468         * sysdeps/mach/i386/bits/mach/param.h: ... here.  Update path in #error.
1469         * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
1470         of <mach/param.h>.
1471         * hurd/hurd/port.h: Do not include <hurd/signal.h>.
1472         * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
1473         !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
1474         * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
1475         trivial, for C++ conformity.
1476         * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
1477         * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
1478         Process mig output through $(migheadersed).
1479         * hurd/Makefile (migheadersed): Define variable.
1480         * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
1481         * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
1482         headers.
1483         * hurd/hurd.h: Include <bits/types/sigset_t.h>
1484         * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
1485         (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
1486         * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
1487         <bits/types/sigset_t.h>.
1488         [!defined __USE_GNU]: Do not #error out.
1489         (struct hurd_sigstate): Use _NSIG instead of NSIG.
1490         * hurd/hurd/sigpreempt.h (__need_size_t): Define.
1491         Include <stddef.h> and <bits/types/sigset_t.h>
1492         (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
1493         instead of sighandler_t.
1494         * stdlib/errno.h (error_t): Move definition to...
1495         * bits/types/error_t.h: ... new header.
1496         * stdlib/Makefile (headers): Add bits/types/error_t.h.
1497         * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
1498         * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
1499         * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
1500         * hurd/hurd.h: Include <bits/types/error_t.h>
1501         * hurd/hurd/fd.h: Include <bits/types/error_t.h>
1502         * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
1503         * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
1504         * hurd/hurd/resource.h: Include <bits/types/error_t.h>
1505         * hurd/hurd/signal.h: Include <bits/types/error_t.h>
1506         * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
1507         * sysdeps/mach/hurd/futimens.c: New file.
1509 2018-03-03  Andreas Schwab  <schwab@linux-m68k.org>
1511         [BZ #22918]
1512         * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
1513         * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
1514         * nscd/gai.c (__nss_hosts_database): Readd definition.
1515         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
1516         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
1517         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
1519 2018-03-02  Joseph Myers  <joseph@codesourcery.com>
1521         * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
1522         (ifunc_one): Likewise.
1524 2018-03-01  DJ Delorie  <dj@delorie.com>
1526         [BZ #22342]
1527         * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
1528         key value.
1530 2018-03-01  Maciej W. Rozycki  <macro@mips.com>
1532         * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
1533         `match_pid' parameter.
1534         (td_ta_thr_iter): Update accordingly.
1536 2018-03-01  Florian Weimer  <fweimer@redhat.com>
1538         * nptl/Makefile (install-lib-ldscripts): Remove.
1539         (install): Remove rule.
1540         ($(inst_libdir)/libpthread.so): Likewise.
1542 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
1544         [BZ #22896]
1545         * localedata/locales/an_ES: update month and day names,
1546         improve d_fmt, improve postal_fmt, add country_post,
1547         add country_isbn
1549 2018-03-01  Mike FABIAN  <mfabian@redhat.com>
1551         * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
1552         Ukrainian instead of Bulgarian.
1554 2018-03-01  Florian Weimer  <fweimer@redhat.com>
1556         * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
1557         reference.
1559 2018-03-01  Florian Weimer  <fweimer@redhat.com>
1561         Move pthread_atfork to libc.  Remove libpthread_nonshared.a.
1562         * nptl/Makefile (routines): Add pthread_atfork.
1563         (static-only-routines): Set to pthread_atfork.
1564         (libpthread-routines): Remove pthread_atfork.
1565         (libpthread-static-only-routines): Remove.
1566         (install): Update comment.
1567         (libpthread.so): Do not install libpthread_nonshared.a.
1568         (tests): Do not link with libpthread_nonshared.a.
1569         (generated): Remove libpthread_nonshared.a.
1570         * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
1571         * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
1572         with libpthread_nonshared.a.
1574 2018-02-28  Joseph Myers  <joseph@codesourcery.com>
1576         [BZ #22902]
1577         * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
1578         (libc_feholdexcept_setroundf128): New macro.
1579         [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
1581         [BZ #15105]
1582         * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
1583         libc_hidden_def.
1584         * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
1585         * include/inttypes.h: New file.
1587 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
1589         * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
1590         -Os in two more places.
1592 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1594         See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
1595         * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
1596         be sorted correctly at the moment because of a bug.
1598 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1600         [BZ #22550] - es_ES locale (and other es_* locales): collation should
1601         treat ñ as a primary different character, sync the collation
1602         for Spanish with CLDR.
1603         [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
1604         * localedata/Makefile: Add new test files.
1605         * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
1606         * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
1607         collation order.
1608         * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
1609         * localedata/am_ET.UTF-8.in: New test file.
1610         * localedata/az_AZ.UTF-8.in: Likewise.
1611         * localedata/be_BY.UTF-8.in: Likewise.
1612         * localedata/ber_DZ.UTF-8.in: Likewise.
1613         * localedata/ber_MA.UTF-8.in: Likewise.
1614         * localedata/bg_BG.UTF-8.in: Likewise.
1615         * localedata/br_FR.UTF-8.in: Likewise.
1616         * localedata/cmn_TW.UTF-8.in: Likewise.
1617         * localedata/crh_UA.UTF-8.in: Likewise.
1618         * localedata/csb_PL.UTF-8.in: Likewise.
1619         * localedata/cv_RU.UTF-8.in: Likewise.
1620         * localedata/cy_GB.UTF-8.in: Likewise.
1621         * localedata/dz_BT.UTF-8.in: Likewise.
1622         * localedata/eo.UTF-8.in: Likewise.
1623         * localedata/es_ES.UTF-8.in: Likewise.
1624         * localedata/fa_IR.UTF-8.in: Likewise.
1625         * localedata/fi_FI.UTF-8.in: Likewise.
1626         * localedata/fil_PH.UTF-8.in: Likewise.
1627         * localedata/fur_IT.UTF-8.in: Likewise.
1628         * localedata/gez_ER.UTF-8@abegede.in: Likewise.
1629         * localedata/ha_NG.UTF-8.in: Likewise.
1630         * localedata/ig_NG.UTF-8.in: Likewise.
1631         * localedata/ik_CA.UTF-8.in: Likewise.
1632         * localedata/kk_KZ.UTF-8.in: Likewise.
1633         * localedata/ku_TR.UTF-8.in: Likewise.
1634         * localedata/ky_KG.UTF-8.in: Likewise.
1635         * localedata/ln_CD.UTF-8.in: Likewise.
1636         * localedata/mi_NZ.UTF-8.in: Likewise.
1637         * localedata/ml_IN.UTF-8.in: Likewise.
1638         * localedata/mn_MN.UTF-8.in: Likewise.
1639         * localedata/mr_IN.UTF-8.in: Likewise.
1640         * localedata/mt_MT.UTF-8.in: Likewise.
1641         * localedata/nb_NO.UTF-8.in: Likewise.
1642         * localedata/om_KE.UTF-8.in: Likewise.
1643         * localedata/os_RU.UTF-8.in: Likewise.
1644         * localedata/ps_AF.UTF-8.in: Likewise.
1645         * localedata/ro_RO.UTF-8.in: Likewise.
1646         * localedata/ru_RU.UTF-8.in: Likewise.
1647         * localedata/sc_IT.UTF-8.in: Likewise.
1648         * localedata/se_NO.UTF-8.in: Likewise.
1649         * localedata/sq_AL.UTF-8.in: Likewise.
1650         * localedata/sv_SE.UTF-8.in: Likewise.
1651         * localedata/szl_PL.UTF-8.in: Likewise.
1652         * localedata/tg_TJ.UTF-8.in: Likewise.
1653         * localedata/tk_TM.UTF-8.in: Likewise.
1654         * localedata/tt_RU.UTF-8.in: Likewise.
1655         * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
1656         * localedata/ug_CN.UTF-8.in: Likewise.
1657         * localedata/uz_UZ.UTF-8.in: Likewise.
1658         * localedata/vi_VN.UTF-8.in: Likewise.
1659         * localedata/yi_US.UTF-8.in: Likewise.
1660         * localedata/yo_NG.UTF-8.in: Likewise.
1661         * localedata/zh_CN.UTF-8.in: Likewise.
1662         * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
1663         file and fix bugs in the collation.
1664         * localedata/locales/az_AZ: Likewise.
1665         * localedata/locales/be_BY: Likewise.
1666         * localedata/locales/ber_DZ: Likewise.
1667         * localedata/locales/ber_MA: Likewise.
1668         * localedata/locales/bg_BG: Likewise.
1669         * localedata/locales/br_FR: Likewise.
1670         * localedata/locales/br_FR@euro: Likewise.
1671         * localedata/locales/ca_ES: Likewise.
1672         * localedata/locales/cns11643_stroke: Likewise.
1673         * localedata/locales/crh_UA: Likewise.
1674         * localedata/locales/cs_CZ: Likewise.
1675         * localedata/locales/csb_PL: Likewise.
1676         * localedata/locales/cv_RU: Likewise.
1677         * localedata/locales/cy_GB: Likewise.
1678         * localedata/locales/da_DK: Likewise.
1679         * localedata/locales/dz_BT: Likewise.
1680         * localedata/locales/en_CA: Likewise.
1681         * localedata/locales/eo: Likewise.
1682         * localedata/locales/es_CU: Likewise.
1683         * localedata/locales/es_EC: Likewise.
1684         * localedata/locales/es_ES: Likewise.
1685         * localedata/locales/es_US: Likewise.
1686         * localedata/locales/et_EE: Likewise.
1687         * localedata/locales/fa_IR: Likewise.
1688         * localedata/locales/fi_FI: Likewise.
1689         * localedata/locales/fil_PH: Likewise.
1690         * localedata/locales/fur_IT: Likewise.
1691         * localedata/locales/gez_ER@abegede: Likewise.
1692         * localedata/locales/ha_NG: Likewise.
1693         * localedata/locales/hr_HR: Likewise.
1694         * localedata/locales/hsb_DE: Likewise.
1695         * localedata/locales/hu_HU: Likewise.
1696         * localedata/locales/ig_NG: Likewise.
1697         * localedata/locales/ik_CA: Likewise.
1698         * localedata/locales/is_IS: Likewise.
1699         * localedata/locales/iso14651_t1_pinyin: Likewise.
1700         * localedata/locales/kk_KZ: Likewise.
1701         * localedata/locales/ku_TR: Likewise.
1702         * localedata/locales/ky_KG: Likewise.
1703         * localedata/locales/ln_CD: Likewise.
1704         * localedata/locales/lt_LT: Likewise.
1705         * localedata/locales/lv_LV: Likewise.
1706         * localedata/locales/mi_NZ: Likewise.
1707         * localedata/locales/ml_IN: Likewise.
1708         * localedata/locales/mn_MN: Likewise.
1709         * localedata/locales/mr_IN: Likewise.
1710         * localedata/locales/mt_MT: Likewise.
1711         * localedata/locales/nb_NO: Likewise.
1712         * localedata/locales/om_KE: Likewise.
1713         * localedata/locales/os_RU: Likewise.
1714         * localedata/locales/pl_PL: Likewise.
1715         * localedata/locales/ps_AF: Likewise.
1716         * localedata/locales/ro_RO: Likewise.
1717         * localedata/locales/ru_RU: Likewise.
1718         * localedata/locales/ru_UA: Likewise.
1719         * localedata/locales/sc_IT: Likewise.
1720         * localedata/locales/se_NO: Likewise.
1721         * localedata/locales/si_LK: Likewise.
1722         * localedata/locales/sq_AL: Likewise.
1723         * localedata/locales/sv_FI: Likewise.
1724         * localedata/locales/sv_FI@euro: Likewise.
1725         * localedata/locales/sv_SE: Likewise.
1726         * localedata/locales/szl_PL: Likewise.
1727         * localedata/locales/tg_TJ: Likewise.
1728         * localedata/locales/ti_ER: Likewise.
1729         * localedata/locales/tk_TM: Likewise.
1730         * localedata/locales/tl_PH: Likewise.
1731         * localedata/locales/tr_TR: Likewise.
1732         * localedata/locales/tt_RU: Likewise.
1733         * localedata/locales/tt_RU@iqtelif: Likewise.
1734         * localedata/locales/ug_CN: Likewise.
1735         * localedata/locales/uk_UA: Likewise.
1736         * localedata/locales/uz_UZ: Likewise.
1737         * localedata/locales/uz_UZ@cyrillic: Likewise.
1738         * localedata/locales/vi_VN: Likewise.
1739         * localedata/locales/yi_US: Likewise.
1740         * localedata/locales/yo_NG: Likewise.
1742 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1744         * gen-locales.mk: Make test files which contain @ modifiers in their
1745         name work.
1746         * localedata/gen-locale.sh: Likewise.
1748 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1750         * posix/tst-fnmatch.input: Fix results for range expressions
1751         for non C locales.
1752         * posix/tst-regexloc.c: Do not use a range expression for
1753         de_DE.ISO-8859-1 locale.
1755 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1757         * posix/bug-regex5.c: Fix test case because with the new
1758         iso14651_t1_common file, the da_DK locale now has 6 collating elements
1759         in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
1760         file.
1762 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1764         * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
1765         downloaded from ISO, the collation order of @-. and space has changed.
1766         Therefore, this test file needed to be adapted.
1767         * localedata/fr_CA.UTF-8.in: Likewise.
1768         * localedata/fr_FR.UTF-8.in: Likewise.
1769         * localedata/uk_UA.UTF-8.in: Likewise.
1771 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1773         * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
1774         order of ȥ in the new iso14651_t1_common file.
1775         * localedata/pl_PL.UTF-8.in: Likewise.
1777 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1779         * localedata/locales/iso14651_t1_common: Add sections for various
1780         scripts to the iso14651_t1_common file.
1782 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1784         * localedata/locales/iso14651_t1_common: Use the code point of a
1785         character in the fourth collation level instead of IGNORE for all
1786         entries which have IGNORE on all 4 levels.
1788 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1790         * localedata/locales/iso14651_t1_common: Add some convenient collation
1791         symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
1792         rules similar to those in CLDR.
1794 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1796         * localedata/locales/iso14651_t1_common: The new version of this
1797         file downloaded from ISO contained several syntax errors which
1798         are fixed by this patch.
1800 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1802         * localedata/locales/iso14651_t1_common: replace all <U.....>
1803         with <U000.....> because glibc understands only 4 digit or 8 digit
1805 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1807         * localedata/locales/iso14651_t1_common: Necessary changes
1808         to make the file downloaded from ISO usable by glibc.
1810 2018-02-27  Mike FABIAN  <mfabian@redhat.com>
1812         [BZ #14095]
1813         * localedata/locales/iso14651_t1_common: Update file to
1814         latest version from ISO (ISO14651_2016_TABLE1_en.txt).
1816 2018-02-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1818         * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
1819         of <nptl/pthreadP.h>
1820         (thread_attr_compare): Move function to...
1821         [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
1822         * sysdeps/nptl/timer_routines.h: ... new header.
1823         * sysdeps/mach/hurd/gai_misc.h: New file.
1825 2018-02-26  Joseph Myers  <joseph@codesourcery.com>
1827         * string/strcoll_l.c: Include <libc-diag.h>.
1828         (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
1829         declarations of seq1 and seq2.
1831         [BZ #15105]
1832         * stdlib/atoi.c (atoi): Use libc_hidden_def.
1833         * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
1835 2018-02-26  Dmitry V. Levin  <ldv@altlinux.org>
1837         [BZ #22433]
1838         [BZ #22807]
1839         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
1840         PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
1841         PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
1842         PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
1843         PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
1844         PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
1846 2018-02-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1848         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
1849         macros used in __ptrace_request.
1851 2018-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1853         [BZ #22792]
1854         * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
1855         to $(CC).
1856         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
1857         <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
1858         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
1859         <tcb-offsets.h>.
1861 2018-02-23  Joseph Myers  <joseph@codesourcery.com>
1863         [BZ #15105]
1864         * ctype/ctype.c (tolower): Use libc_hidden_def.
1865         (toupper): Likewise.
1866         * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
1867         [!_ISOMAC] (toupper): Likewise.
1869 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1871         * localedata/Makefile: Remove --quiet argument when
1872         installing locales
1874 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1876         [BZ #17438]
1877         * localedata/locales/pt_BR (LC_TIME): use / instead of -
1878         in d_fmt.
1879         * localedata/locales/pt_PT (LC_TIME): likewise
1881 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
1883         [BZ #22646]
1884         * localedata/locales/es_CL (LC_TIME): copy "es_BO".
1885         * localedata/locales/es_CU (LC_TIME): copy "es_BO".
1886         * localedata/locales/es_EC (LC_TIME): copy "es_BO".
1888 2018-02-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1892         * nptl/Makefile (routines): Remove unregister-atfork.
1893         * nptl/register-atfork.c (fork_handler_pool): Remove variable.
1894         (fork_handler_alloc): Remove function.
1895         (fork_handlers, fork_handler_init): New variables.
1896         (__fork_lock): Rename to atfork_lock.
1897         (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
1898         to use a dynamic array to add/remove atfork handlers.
1899         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1900         * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
1901         Remove declaration.
1902         (fork_handler): Remove next, refcntr, and need_signal member.
1903         (__run_fork_handler_type): New enum.
1904         (__run_fork_handlers): New prototype.
1905         * nptl/register-atfork.c: Remove file.
1906         * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
1908         * sysdeps/nptl/nptl-signals.h: Move to ...
1909         * sysdeps/generic/internal-signals.h: ... here.  Adjust internal
1910         comments.
1911         * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
1912         (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
1913         unnecessary check for SIGTIMER.
1914         (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
1915         remove unnecessary removal of SIGTIMER.
1916         * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
1917         include-signals.h rename.
1918         * nptl/pthreadP.h: Likewise.
1919         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
1920         __is_internal_signal instead of __nptl_is_internal_signal.
1922 2018-02-22  Andrew Waterman <andrew@sifive.com>
1924         [BZ # 22884]
1925         * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
1926         * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
1927         * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
1928         * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
1930 2018-02-22  DJ Delorie  <dj@delorie.com>
1932         * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
1934 2018-02-22  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1936         * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
1937         do_misaligned, not misaligned8.
1939 2018-02-22  Steve Ellcey  <sellcey@cavium.com>
1941         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1942         Add memcpy_thunderx2.
1943         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
1944         Increment to 4.
1945         (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
1946         * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
1947         and IS_THUNDERX2PA checks.
1948         * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
1949         Use macro to set name appropriately.
1950         (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
1951         * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
1952         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
1953         New macro.
1954         (IS_THUNDERX2): New macro.
1956 2018-02-22  Stefan Liebler  <stli@linux.vnet.ibm.com>
1958         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1960 2018-02-21  Zack Weinberg  <zackw@panix.com>
1962         * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
1963         Define here, unconditionally.
1964         * libio/iolibio.h (_IO_pos_BAD): Don't define here.
1965         * libio/libioP.h: Remove #if 0 blocks.
1966         (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
1967         (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
1968         (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE.  Fix style.
1970         * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
1971         Assume weak_alias is always defined.
1973         * libio/fileops.c, libio/genops.c, libio/oldfileops.c
1974         * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
1975         Remove #if 0 and #ifdef TODO blocks.
1976         Assume text_set_element is always defined.
1978         * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
1979         Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
1980         * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
1982         * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
1983         (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
1984         (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
1985         (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
1986         (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
1987         (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
1988         Reformat bit flags for _flags field to make occupancy clearer.
1989         Update commentary.
1990         * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
1991         Keep definitions consistent with those in libio/libio.h.
1993         * libio/libio.h (_IO_file_flags): Remove macro.
1994         All uses changed to _flags.
1996         * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
1997         (__HAVE_COLUMN, _IO_BE): Don't define.
1998         (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
1999         (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
2000         * libio/libioP.h (EOF): Don't define.
2001         * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
2002         * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
2003         * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
2004         testing _IO_UNIFIED_JUMPTABLES.
2006         * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
2007         (_IO_fpos_t): Delete; all uses changed to __fpos_t.
2008         (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
2009         (_IO_size_t): Delete; all uses changed to size_t.
2010         (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
2011         (_IO_off_t): Delete; all uses changed to off_t.
2012         (_IO_off64_t): Delete; all uses changed to off64_t.
2013         (_IO_pid_t): Delete; all uses changed to pid_t.
2014         (_IO_uid_t): Delete; all uses changed to uid_t.
2015         (_IO_wint_t): Delete; all uses changed to wint_t.
2016         (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
2017         (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
2018         (_IO_cookie_io_functions_t): Delete; all uses changed to
2019         cookie_io_functions_t.
2020         (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
2021         (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
2022         (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
2023         (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
2025         * libio/iofopncook.c: Remove unnecessary forward declarations.
2026         * libio/iolibio.h: Correct outdated commentary.
2027         * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
2028         * stdio-common/fxprintf.c (__fxprintf_nocancel):
2029         Remove unnecessary casts.
2030         * stdio-common/getline.c: Use _IO_getdelim directly.
2031         Don't redefine ssize_t.
2032         * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
2033         * stdio-common/printf_size.c: Don't redefine size_t or FILE.
2034         Remove outdated comments.
2035         * stdio-common/vfscanf.c: Don't redefine va_list.
2037         * libio/iolibio.h, libio/libioP.h: Remove extern "C".
2038         * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
2039         Remove preprocessor conditionals on _LIBC and __USE_GNU,
2040         which are always true, and __cplusplus, which is always false.
2042 2018-02-21  Joseph Myers  <joseph@codesourcery.com>
2044         [BZ #15105]
2045         [BZ #19463]
2046         * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
2047         * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
2048         define as weak alias of __putc_unlocked.  Use libc_hidden_weak.
2049         * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
2050         libc_hidden_proto.
2051         [!_ISOMAC] (putc_unlocked): Likewise.
2052         [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
2053         define inline if [__USE_EXTERN_INLINES].
2054         * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
2055         putc_unlocked.
2057         [BZ #15105]
2058         [BZ #19463]
2059         * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
2060         * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
2061         attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
2062         [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
2063         * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
2064         getc_unlocked.
2065         * time/tzfile.c (__tzfile_read): Likewise.
2067 2018-02-21  Mike FABIAN  <mfabian@redhat.com>
2069         [BZ #22517]
2070         * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
2072 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
2074         * io/fcntl.h: Fix a typo in a comment.
2076 2018-02-21  Rical Jasan  <ricaljasan@pacific.net>
2078         [BZ #22862]
2079         * include/features.h: Add _ISOC11_SOURCE to test for whether to
2080         define _DEFAULT_SOURCE.
2081         * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
2083 2018-02-21  Florian Weimer  <fweimer@redhat.com>
2085         [BZ #20890]
2086         * elf/cache.c (save_cache): Call fsync on temporary file before
2087         renaming it.
2088         (save_aux_cache): Call fdatasync on temporary file before renaming
2089         it.
2091 2018-02-21  Florian Weimer  <fweimer@redhat.com>
2093         [BZ #22787]
2094         * include/caller.h: Remove file.
2095         * elf/dl-caller.c: Likewise.
2096         * elf/Makefile (dl-routines): Remove dl-caller.
2097         (shared-only-routines): Do not add dl-caller.
2098         * elf/dl-load.c (_dl_map_object_from_fd): Do not call
2099         __check_caller.
2100         * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
2101         member.
2102         (dl_open_worker): Do not call __check_caller.
2103         (_dl_open): Do not set caller_dl_open member.
2104         * elf/rtld.c (_rtld_global_ro): Do not initialize
2105         _dl_check_caller member.
2106         * sysdeps/generic/ldsodefs.h (rtld_global): Remove
2107         _dl_check_caller member.
2108         (_dl_check_caller): Remove declaration.
2109         * sysdeps/unix/sysv/linux/dl-execstack.c
2110         (_dl_make_stack_executable): Do not call __check_caller.
2112 2018-02-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2114         * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
2115         * sysdeps/mach/hurd/sysdep-cancel.h: New file.
2117 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
2119         * manual/creature.texi (_ISOC99_SOURCE): Update the dated
2120         description.
2122 2018-02-20  Rical Jasan  <ricaljasan@pacific.net>
2124         [BZ #16335]
2125         * manual/creature.texi (_POSIX_C_SOURCE): Document special values
2126         of 199606L, 200112L, and 200809L.
2127         (_XOPEN_SOURCE): Document special values of 600 and 700.
2128         (_ISOC11_SOURCE): Document macro.
2129         (_ATFILE_SOURCE): Likewise.
2130         (_FORTIFY_SOURCE): Likewise.
2132 2018-02-19  Joseph Myers  <joseph@codesourcery.com>
2134         [BZ #15105]
2135         [BZ #19463]
2136         * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
2137         and define as weak alias of __ferror_unlocked.  Use
2138         libc_hidden_weak.
2139         * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
2140         libc_hidden_proto.
2141         [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
2142         function if [__USE_EXTERN_INLINES].
2143         * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
2144         ferror_unlocked.
2146 2018-02-19  Rical Jasan  <ricaljasan@pacific.net>
2148         [BZ #6889]
2149         * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
2151 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
2153         [BZ #22818]
2154         * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
2155         the GLIBC_2.1 version.
2157 2018-02-18  Aurelien Jarno  <aurelien@aurel32.net>
2159         [BZ #21508]
2160         * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
2161         * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
2162         intl/tst-gettext-de.po from po/de.po by removing the
2163         POT-Creation-Date line.
2164         ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
2165         ../po/de.po.
2166         * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
2167         ../po/de.po.
2169 2018-02-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2171         * mach/Makefile (headers): Add mach/param.h.
2172         * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
2173         * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
2174         * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
2175         (__ptsname_r): Move implementation to...
2176         (__ptsname_internal): ... new function.  Add filling the STP
2177         structure.
2179 2018-02-17  John David Anglin  <danglin@gcc.gnu.org>
2181         * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
2182         idouble to 1 ULP.
2184 2018-02-16  Rical Jasan  <ricaljasan@pacific.net>
2186         * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
2187         syntax.
2189 2018-02-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
2191         * nptl/Makefile (tst-mutex8-ENV): Delete.
2192         * nptl/tst-mutex8.c (check_type):
2193         Add runtime check if mutex will be elided.
2195 2018-02-15  Joseph Myers  <joseph@codesourcery.com>
2197         [BZ #20980]
2198         [BZ #21234]
2199         * manual/install.texi (Configuring and compiling): Describe
2200         passing CC and CFLAGS on configure command line, not as
2201         environment variables.  Use @code markup on those variables.
2202         Specify what options go in CC and what go in CFLAGS.  Note the
2203         requirement to compile with optimization.
2204         * INSTALL: Regenerated.
2206         [BZ #18124]
2207         * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
2208         (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
2209         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
2210         __sigprocmask instead of sigprocmask.
2211         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
2212         Likewise.
2213         * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
2214         __sigsetjmp and sigprocmask.
2216         [BZ #15105]
2217         * include/argz.h (argz_next): Use libc_hidden_proto.
2218         (__argz_next): Likewise.
2219         * string-argz-next.c (__argz_next): Use libc_hidden_def.
2220         (argz_next): Use libc_hidden_weak.
2222         [BZ #15105]
2223         * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
2224         libc_hidden_proto.
2225         * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
2226         libc_hidden_def.
2228         [BZ #15105]
2229         * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
2230         libc_hidden_proto.
2231         * libio/iofputs.c (fputs): Use libc_hidden_weak.
2233         [BZ #15105]
2234         [BZ #19463]
2235         * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
2236         define as weak alias of __feof_unlocked.  Use libc_hidden_weak.
2237         * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
2238         (__feof_unlocked): New declaration, and inline function if
2239         [__USE_EXTERN_INLINES].
2240         * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
2241         instead of feof_unlocked.
2242         * intl/localealias.c [_LIBC] (FEOF): Likewise.
2243         * nss/nsswitch.c (nss_parse_file): Likewise.
2244         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
2245         Likewise.
2246         * time/getdate.c (__getdate_r): Likewise.
2247         * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
2248         Define as macro to call __feof_unlocked.
2250 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2252         * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
2254 2018-02-15  Wilco Dijkstra  <wdijkstr@arm.com>
2256         * math/Makefile: Remove mpexp.c and mplog.c
2257         * sysdeps/i386/fpu/mpexp.c: Delete file.
2258         * sysdeps/i386/fpu/mplog.c: Likewise.
2259         * sysdeps/ia64/fpu/mpexp.c: Likewise.
2260         * sysdeps/ia64/fpu/mplog.c: Likewise.
2261         * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
2262         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
2263         * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
2264         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
2265         * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
2266         * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
2267         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
2268         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
2269         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
2270         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
2271         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
2272         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
2273         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
2274         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
2275         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
2276         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
2278 2018-02-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
2280         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2282 2018-02-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2284         * sysdeps/sh/libm-test-ulps: Update.
2286 2018-02-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2288         * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
2289         idouble to 1 ULP.
2291 2018-02-12  Zack Weinberg  <zackw@panix.com>
2293         [BZ #19239]
2294         * posix/sys/types.h: Don't include sys/sysmacros.h.
2295         * misc/sys/sysmacros.h: Remove the conditional deprecation
2296         warnings for the macros defined by this header.
2298 2018-02-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2300         * manual/probes.texi: Remove slowexp probes.
2301         * math/Makefile: Remove slowexp.
2302         * sysdeps/generic/math_private.h (__slowexp): Remove.
2303         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
2304         document error bounds.
2305         * sysdeps/i386/fpu/slowexp.c: Remove.
2306         * sysdeps/ia64/fpu/slowexp.c: Remove.
2307         * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
2308         * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
2309         * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
2310         * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
2311         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
2312         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
2313         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
2314         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
2315         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
2316         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
2317         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
2319 2018-02-12  Wilco Dijkstra  <wdijkstr@arm.com>
2321         [BZ #13932]
2322         * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
2323         * benchtests/pow-inputs: Update comment for slow path cases.
2324         * manual/probes.texi (slowpow_p10): Delete removed probe.
2325         (slowpow_p10): Likewise.
2326         * math/Makefile: Remove halfulp.c and slowpow.c.
2327         * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
2328         * sysdeps/generic/math_private.h (__exp1): Remove error argument.
2329         (__halfulp): Remove.
2330         (__slowpow): Remove.
2331         * sysdeps/i386/fpu/halfulp.c: Delete file.
2332         * sysdeps/i386/fpu/slowpow.c: Likewise.
2333         * sysdeps/ia64/fpu/halfulp.c: Likewise.
2334         * sysdeps/ia64/fpu/slowpow.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
2336         improve comments and add error analysis.
2337         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
2338         (power1): Remove function:
2339         (log1): Remove error argument, add error analysis.
2340         (my_log2): Remove function.
2341         * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
2342         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2343         * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
2344         * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
2345         * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
2346         * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
2347         * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
2348         slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
2349         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
2350         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
2351         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
2352         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
2353         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
2354         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
2356 2018-02-11  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2358         * nscd/connections.c (RWLOCK_INITIALIZER): Define to
2359         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
2361 2018-02-10  Dmitry V. Levin  <ldv@altlinux.org>
2363         [BZ #22433]
2364         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
2365         Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
2366         and PTRACE_SETHBPREGS.
2368 2018-02-10  Zack Weinberg  <zackw@panix.com>
2370         [BZ #22830]
2371         * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
2372         correctly.
2373         * malloc/tst-malloc-stats-cancellation.c: New test case.
2374         * malloc/Makefile: Add new test case.
2376 2018-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
2378         * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
2380 2018-02-10  Joseph Myers  <joseph@codesourcery.com>
2382         * math/Makefile (libm-narrow-fns): Add add.
2383         (libm-test-funcs-narrow): Likewise.
2384         * math/Versions (GLIBC_2.28): Add narrowing add functions.
2385         * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
2386         * math/gen-auto-libm-tests.c (test_functions): Add add.
2387         * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
2388         (NARROW_ADD_ROUND_TO_ODD): Likewise.
2389         (NARROW_ADD_TRIVIAL): Likewise.
2390         * sysdeps/ieee754/float128/float128_private.h (__faddl): New
2391         macro.
2392         (__daddl): Likewise.
2393         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
2394         dadd.
2395         (CFLAGS-nldbl-dadd.c): New variable.
2396         (CFLAGS-nldbl-fadd.c): Likewise.
2397         * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
2398         __nldbl_daddl.
2399         * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
2400         prototype.
2401         * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
2402         daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
2403         * math/auto-libm-test-in: Add tests of add.
2404         * math/auto-libm-test-out-narrow-add: New generated file.
2405         * math/libm-test-narrow-add.inc: New file.
2406         * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
2407         * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
2408         * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
2409         * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
2410         * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
2411         * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
2412         * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
2413         * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
2414         * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
2415         * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
2416         * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
2417         * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
2418         * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
2419         * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
2420         * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
2421         * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
2422         * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
2423         * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
2424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2425         * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
2426         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
2427         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2428         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2429         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2430         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2431         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2432         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2433         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2434         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2435         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2436         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2437         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
2439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
2440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
2441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
2442         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
2443         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2444         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2445         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2446         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2447         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2448         * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
2449         * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
2450         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2451         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2453         * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
2454         (f128-pairs): New variable.
2455         [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
2456         pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
2457         to CFLAGS.
2458         [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
2459         Also make tests add $(f128-loader-link) to gnulib-tests.
2461 2018-02-09  DJ Delorie  <dj@redhat.com>
2463         [BZ #22827]
2464         * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
2465         64-bit ELF type for 64-bit ELF objects.
2467 2018-02-09  Joseph Myers  <joseph@codesourcery.com>
2469         * math/libm-test-driver.c (snan_tests_arg): New variable.
2470         * math/libm-test-support.h (snan_tests_arg): New declaration.
2471         * math/libm-test-support.c (enable_test): Check snan_tests_arg.
2473         * math/Makefile (test-type-pairs): New variable.
2474         (test-type-pairs-f64xf128-yes): Likewise.
2475         (tests): Add test-narrow-macros.
2476         (libm-test-funcs-narrow): New variable.
2477         (libm-test-c-narrow): Likewise.
2478         (generated): Add $(libm-test-c-narrow).
2479         (libm-tests-base-narrow): New variable.
2480         (libm-tests-narrow): Likewise.
2481         (libm-tests): Add $(libm-tests-narrow).
2482         (libm-tests-for-type): Handle $(libm-tests-narrow).
2483         (libm-test-c-narrow-obj): New variable.
2484         ($(libm-test-c-narrow-obj)): New rule.
2485         ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
2486         ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
2487         $(o-iterator) to set dependencies and CFLAGS.
2488         * math/gen-auto-libm-tests.c: Document use for narrowing
2489         functions.
2490         (output_for_one_input_case): Take argument NARROW.
2491         (generate_output): Likewise.  Update call to
2492         output_for_one_input_case.
2493         (main): Take --narrow option.  Update call to generate_output.
2494         * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
2495         (apply_lit): Update call to _apply_lit.
2496         (apply_arglit): New function.
2497         (parse_args): Handle "a" arguments.
2498         (parse_auto_input): Handle format names using ":".
2499         * math/README.libm-test: Document "a" parameter type.
2500         * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
2501         (ARG_TYPE_TRUE_MIN): Likewise.
2502         (ARG_TYPE_MAX): Likwise.
2503         (ARG_MIN_EXP): Likewise.
2504         (ARG_MAX_EXP): Likewise.
2505         (ARG_MANT_DIG): Likewise.
2506         (TEST_COND_arg_ibm128): Likewise.
2507         (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
2508         (TEST_COND_arg_fmt): New macro.
2509         (init_max_error): Update prototype.
2510         * math/libm-test-support.c (test_ibm128): New variable.
2511         (init_max_error): Take argument testing_ibm128 and set test_ibm128
2512         instead of using [TEST_COND_ibm128] conditional.
2513         (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
2514         * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
2515         [TEST_NARROW] (TEST_MSG): New definition.
2516         (arg_plus_zero): New macro.
2517         (arg_minus_zero): Likewise.
2518         (arg_plus_infty): Likewise.
2519         (arg_minus_infty): Likewise.
2520         (arg_qnan_value_pl): Likewise.
2521         (arg_qnan_value): Likewise.
2522         (arg_snan_value_pl): Likewise.
2523         (arg_snan_value): Likewise.
2524         (arg_max_value): Likewise.
2525         (arg_min_value): Likewise.
2526         (arg_min_subnorm_value): Likewise.
2527         [ARG_FLOAT] (struct test_aa_f_data): New struct type.
2528         (RUN_TEST_LOOP_aa_f): New macro.
2529         (TEST_SUFF): New macro.
2530         (TEST_SUFF_STR): Likewise.
2531         [!TEST_MATHVEC] (VEC_SUFF): Don't define.
2532         (TEST_COND_any_ibm128): New macro.
2533         (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
2534         this_func.  Update call to init_max_error.
2535         * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
2536         * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
2537         * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
2538         * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
2539         * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
2540         * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
2541         * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
2542         * math/test-math-scalar.h (TEST_NARROW): Likewise.
2543         * math/test-math-vector.h (TEST_NARROW): Likewise.
2544         * math/test-arg-double.h: New file.
2545         * math/test-arg-float128.h: Likewise.
2546         * math/test-arg-float32x.h: Likewise.
2547         * math/test-arg-float64.h: Likewise.
2548         * math/test-arg-float64x.h: Likewise.
2549         * math/test-arg-ldouble.h: Likewise.
2550         * math/test-math-narrow.h: Likewise.
2551         * math/test-narrow-macros.c: Likewise.
2552         * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
2553         * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
2554         test-narrow-macros-ldbl-64.
2555         (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
2557         * math/bits/mathcalls-narrow.h: New file.
2558         * include/bits/mathcalls-narrow.h: Likewise.
2559         * math/math-narrow.h: Likewise.
2560         * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
2561         (__MATHCALL_NARROW_ARGS_2): Likewise.
2562         (__MATHCALL_NARROW_ARGS_3): Likewise.
2563         (__MATHCALL_NARROW_NORMAL): Likewise.
2564         (__MATHCALL_NARROW_REDIR): Likewise.
2565         (__MATHCALL_NARROW): Likewise.
2566         [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
2567         <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
2568         defined.
2569         [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
2570         * math/Makefile (headers): Add bits/mathcalls-narrow.h.
2571         (libm-narrow-fns): New variable.
2572         (libm-narrow-types-basic): Likewise.
2573         (libm-narrow-types-ldouble-yes): Likewise.
2574         (libm-narrow-types-float128-yes): Likewise.
2575         (libm-narrow-types-float128-alias-yes): Likewise.
2576         (libm-narrow-types): Likewise.
2577         (libm-routines): Add narrowing functions.
2578         * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
2579         (libc_feholdexcept_setroundf128): New macro.
2580         [__x86_64__] (libc_feupdateenv_testf128): Likewise.
2581         * sysdeps/ieee754/float128/float128_private.h: Include
2582         <math/math-narrow.h>.
2583         [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
2584         Undefine and redefine.
2585         [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
2586         (libm_alias_float_ldouble): Undefine and redefine.
2587         (libm_alias_double_ldouble): Likewise.
2589         * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
2591 2018-02-09  Wilco Dijkstra  <wdijkstr@arm.com>
2593         * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
2594         FPCR/FPSR.
2596 2018-02-09  Rical Jasan  <ricaljasan@pacific.net>
2598         * manual/creature.texi: Convert references to gcc.info to gcc.
2599         * manual/stdio.texi: Likewise.
2600         * manual/string.texi: Likewise.
2602 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
2604         [BZ #17979]
2605         * posix/bits/types.h (__int_least8_t): New typedef.
2606         (__uint_least8_t): Likewise.
2607         (__int_least16_t): Likewise.
2608         (__uint_least16_t): Likewise.
2609         (__int_least32_t): Likewise.
2610         (__uint_least32_t): Likewise.
2611         (__int_least64_t): Likewise.
2612         (__uint_least64_t): Likewise.
2613         * sysdeps/generic/stdint.h (int_least8_t): Define using
2614         __int_least8_t.
2615         (int_least16_t): Define using __int_least16_t.
2616         (int_least32_t): Define using __int_least32_t.
2617         (int_least64_t): Define using __int_least64_t.
2618         (uint_least8_t): Define using __uint_least8_t.
2619         (uint_least16_t): Define using __uint_least16_t.
2620         (uint_least32_t): Define using __uint_least32_t.
2621         (uint_least64_t): Define using __uint_least64_t.
2622         * wcsmbs/uchar.h: Include <bits/types.h>.
2623         (char16_t): Define using __uint_least16_t conditional only on
2624         [!__USE_ISOCXX11].
2625         (char32_t): Define using __uint_least32_t conditional only on
2626         [!__USE_ISOCXX11].
2627         * wcsmbs/test-char-types.c: New file.
2628         * wcsmbs/Makefile (tests): Add test-char-types.
2630         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
2631         version to 4.0.1.
2633 2018-02-07  Zack Weinberg  <zackw@panix.com>
2635         * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
2636         Delete all contents except for definitions of _G_HAVE_MMAP and
2637         _G_HAVE_MREMAP.  Add commentary explaining those two symbols.
2638         * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
2639         sysdeps/unix/sysv/linux/_G_config.h.  Make same content
2640         change as above.
2642         * libio/libio.h: Don't include bits/_G_config.h here.
2643         Include stddef.h with __need_wchar_t defined.  Include
2644         bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
2645         Define _IO_iconv_t here, directly.
2646         Don't define _IO_HAVE_ST_BLKSIZE.
2647         * libio/libioP.h: Include _G_config.h here.  Move include of
2648         shlib-compat.h up with rest of includes.  Simplify conditionals
2649         controlling definition of _IO_JUMPS_OFFSET.
2651         * csu/init.c: Remove always-true #if around entire file.
2652         Don't include stdio.h.  Set _IO_stdin_used to hardwired
2653         constant 0x20001, and update commentary.
2654         * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
2655         Replace all uses of _G_va_list with __gnuc_va_list.
2656         * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
2657         instead of #if _IO_HAVE_ST_BLKSIZE.
2658         * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
2659         * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
2660         not #ifdef.
2662         * libio/bits/libio.h: Move back to libio/libio.h and adjust
2663         multiple-include guard to match.
2664         Merge contents of libio/bits/libio-ldbl.h and include/libio.h
2665         into this file.
2666         Remove preprocessor conditionals that are always true and/or
2667         redundant to other preprocessor conditionals in the same nest.
2668         Include shlib-compat.h unconditionally.
2669         Error out if _LIBC is not defined, or if _ISOMAC is defined,
2670         or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
2671         defined after including stdio.h.
2672         Use __BEGIN_DECLS/__END_DECLS.
2674         * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
2675         * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
2676         libio.h as <libio/libio.h> rather than as <bits/libio.h>.
2678 2018-02-07  Zack Weinberg  <zackw@panix.com>
2680         * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
2681         New single-type headers split from _G_config.h.
2682         * libio/bits/types/cookie_io_functions_t.h
2683         * libio/bits/types/struct_FILE.h
2684         New single-type headers split from libio.h.
2686         * libio/Makefile: Install the above new headers.  Don't install
2687         libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
2688         bits/libio-ldbl.h.
2689         * libio/_G_config.h, libio/libio.h: Delete file.
2691         * libio/bits/libio.h: Remove improper-inclusion guard.
2692         Include stdio.h and don't repeat anything that it does.
2693         Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
2694         _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
2695         __io_read_fn as cookie_read_function_t,
2696         __io_write_fn as cookie_write_function_t,
2697         __io_seek_fn as cookie_seek_function_t,
2698         __io_close_fn as cookie_close_function_t,
2699         and _IO_cookie_io_functions_t as cookie_io_functions_t.
2700         Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
2701         here, in the "compatibility defines" section.  Remove an #if 0
2702         block.  Use the "body" macros from bits/types/struct_FILE.h to
2703         define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
2704         and _IO_ferror_unlocked.
2705         Move prototypes of __uflow and __overflow...
2707         * libio/stdio.h: ...here.  Don't include bits/libio.h.
2708         Don't define _STDIO_USES_IOSTREAM.  Get __gnuc_va_list
2709         directly from stdarg.h.  Include bits/types/__fpos_t.h,
2710         bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
2711         and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
2712         Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
2713         __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
2714         cookie_io_functions_t, not _IO_cookie_io_functions_t;
2715         __ssize_t, not _IO_ssize_t.  Unconditionally define
2716         BUFSIZ as 8192 and EOF as (-1).
2718         * libio/bits/stdio.h: Add multiple-include guard.  Use the "body"
2719         macros from bits/types/struct_FILE.h instead of _IO_* macros
2720         from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
2721         instead of _IO_ssize_t.
2722         * libio/bits/stdio2.h: Similarly.
2724         * libio/iolibio.h: Add multiple-include guard.
2725         Include bits/libio.h after stdio.h.
2726         * libio/libioP.h: Add multiple-include guard.
2727         Include stdio.h and bits/libio.h before iolibio.h.
2729         * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
2730         * include/bits/types/cookie_io_functions_t.h
2731         * include/bits/types/struct_FILE.h: New wrappers.
2733         * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
2734         Get definitions of _G_fpos_t and _G_fpos64_t from
2735         bits/types/__fpos_t.h and bits/types/__fpos64_t.h
2736         respectively.  Remove improper-inclusion guards.
2738         * conform/data/stdio.h-data: Update expectations of va_list.
2739         * scripts/check-installed-headers.sh: Remove special case for
2740         libio.h and _G_config.h.
2742 2018-02-07  Joseph Myers  <joseph@codesourcery.com>
2744         [BZ #15105]
2745         [BZ #19463]
2746         * include/sys/sysmacros.h [!_ISOMAC]
2747         (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
2748         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
2749         (_SYS_SYSMACROS_H_WRAPPER): Likewise.
2750         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
2751         libc_hidden_proto.
2752         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
2753         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
2754         Likewise.
2755         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
2756         Undefine and redefine to add use __gnu_dev_ prefix.
2757         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
2758         Likewise.
2759         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
2760         and define as hidden inline function.
2761         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
2762         Likewise.
2763         [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
2764         Likewise.
2765         * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
2766         (gnu_dev_major): Use weak_alias and libc_hidden_weak.
2767         (gnu_dev_minor): Likewise.
2768         (gnu_dev_makedev): Likewise.
2769         * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
2770         makedev.
2771         * posix/wordexp.c (exec_comm_child): Likewise.
2772         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
2773         instead of minor and __gnu_dev_major instead of major.
2774         * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
2775         __gnu_dev_major instead of major.
2776         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
2777         __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
2778         instead of gnu_dev_minor.
2779         * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
2780         (SLAVE_P): Likewise.
2781         (__ptsname_internal): Use __gnu_dev_minor instead of minor.
2782         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
2783         instead of major.
2785         [BZ #21313]
2786         * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
2787         in another place.
2788         * locale/weightwc.h (findidx): Likewise.
2790 2018-02-07  Wilco Dijkstra  <wdijkstr@arm.com>
2792         * manual/probes.texi (slowlog): Delete documentation of removed probe.
2793         (slowlog_inexact): Likewise
2794         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
2795         * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
2797 2018-02-07  Igor Gnatenko  <ignatenko@redhat.com>
2799         [BZ #22797]
2800         * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
2801         missing second underscore to parameter name.
2803 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
2805         [BZ #14508]
2806         [BZ #15512]
2807         [BZ #17082]
2808         [BZ #20530]
2809         * bits/byteswap.h: Update file comment.  Do not include
2810         <bits/byteswap-16.h>.
2811         (__bswap_constant_16): Cast result to __uint16_t.  Use signed 0xff
2812         constant.
2813         (__bswap_16): Define as inline function.
2814         (__bswap_constant_32): Reformat definition.
2815         (__bswap_32): Always define as inline function, not macro, using
2816         __uint32_t.  Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
2817         otherwise __bswap_constant_32.
2818         (__bswap_constant_64): Reformat definition.  Do not use
2819         __extension__ here.
2820         (__bswap_64): Always define as inline function, not macro.  Use
2821         __extension__ on function definition.  Use __builtin_bswap64 if
2822         [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
2823         * string/test-endian-file-scope.c: New file.
2824         * string/test-endian-sign-conversion.c: Likewise.
2825         * string/Makefile (headers): Remove bits/byteswap-16.h.
2826         (tests): Add test-endian-file-scope and
2827         test-endian-sign-conversion.
2828         (CFLAGS-test-endian-sign-conversion.c): New variable.
2829         * bits/byteswap-16.h: Remove file.
2830         * sysdeps/ia64/bits/byteswap-16.h: Likewise.
2831         * sysdeps/ia64/bits/byteswap.h: Likewise.
2832         * sysdeps/m68k/bits/byteswap.h: Likewise.
2833         * sysdeps/s390/bits/byteswap-16.h: Likewise.
2834         * sysdeps/s390/bits/byteswap.h: Likewise.
2835         * sysdeps/tile/bits/byteswap.h: Likewise.
2836         * sysdeps/x86/bits/byteswap-16.h: Likewise.
2837         * sysdeps/x86/bits/byteswap.h: Likewise.
2839         [BZ #17721]
2840         * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
2841         && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
2842         [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
2843         199901L] (__restrict): Define to restrict.
2845         [BZ #19667]
2846         * string/testcopy.c: Include <support/support.h>.  Do not include
2847         <malloc.h>.  Use <support/test-driver.c>.
2848         (main): Rename to do_test.  Make static.  Use xmalloc instead of
2849         malloc.
2851         [BZ #13575]
2852         * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
2853         [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
2854         (SSIZE_MAX): Define to INT_MAX.
2855         * posix/test-ssize-max.c: New file.
2856         * posix/Makefile (tests): Add test-ssize-max.
2858         [BZ #19668]
2859         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
2860         <support/support.h>.  Do not include <malloc.h>.
2861         (query_auxv): Use xmalloc instead of malloc.
2863         [BZ #14553]
2864         * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
2865         * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
2866         instead of loff_t.
2868 2018-02-06  Florian Weimer <fweimer@redhat.com>
2870         [BZ #18023]
2871         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
2872         Use scratch_buffer instead of extend_alloca.
2874 2018-02-06  Zack Weinberg  <zackw@panix.com>
2876         * libio/stdio.h: Don't define getc or putc as macros.
2877         * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
2878         not _IO_getc and _IO_putc.
2880         * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
2881         * stdio-common/tstgetln.c: Don't redefine ssize_t.
2883 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
2885         * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
2886         (TCP_FASTOPEN_NO_COOKIE): Likewise.
2888         * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
2890         [BZ #14890]
2891         * elf/elf.h (NT_PRFPREG): New macro.
2892         (NT_S390_VXRS_LOW): Likewise.
2893         (NT_S390_VXRS_HIGH): Likewise.
2894         (NT_S390_GS_CB): Likewise.
2895         (NT_S390_GS_BC): Likewise.
2896         (NT_S390_RI_CB): Likewise.
2898         * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
2899         (MAP_SYNC): New macro.
2900         * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
2901         Likewise.
2902         * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
2903         (MAP_SYNC): Likewise.
2904         * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
2905         (MAP_SYNC): Likewise.
2906         * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
2907         (MAP_SYNC): Likewise.
2908         * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
2909         (MAP_SYNC): Likewise.
2910         * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
2911         (MAP_SYNC): Likewise.
2912         * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
2913         (MAP_SYNC): Likewise.
2914         * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
2915         Likewise.
2916         * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
2917         Likewise.
2919         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
2920         (MAP_SHARED_VALIDATE): New macro.
2921         * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
2922         (MAP_SHARED_VALIDATE): Likewise.
2924 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2926         * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
2927         * elf/dl-lookup.c (_dl_setup_hash): Likewise.
2928         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2930 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2932         * elf/elf.h (DT_SYMTAB_SHNDX): New.  Set to 34.
2933         (DT_NUM): Updated to 35.
2935 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2937         * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
2938         __builtin_expect with __glibc_likely and __glibc_unlikely.
2939         (elf_machine_rela): Likewise.
2940         (elf_machine_lazy_rel): Likewise.
2942 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2944         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
2945         __builtin_expect with __glibc_likely and __glibc_unlikely.
2946         (elf_machine_lazy_rel): Likewise.
2948 2018-02-05  H.J. Lu  <hongjiu.lu@intel.com>
2950         [BZ #22638]
2951         * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
2952         SHARED.
2953         * sysdeps/sparc/sparc64/start.S (_start): Likewise.
2955 2018-02-05  Andreas Schwab  <schwab@suse.de>
2957         [BZ #22761]
2958         * assert/assert-perr.c (__assert_perror_fail): Append %n to format
2959         string.
2961 2018-02-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2963         * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
2964         not check against PTHREAD_STACK_MIN.
2966 2018-02-02  Sean McKean  <smckean83@gmail.com>
2968         [BZ #22735]
2969         * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
2971 2018-02-02  Florian Weimer  <fweimer@redhat.com>
2973         [BZ #22753]
2974         * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
2975         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
2976         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
2977         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
2978         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
2979         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
2980         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
2981         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
2982         * manual/llio.texi (Scatter-Gather): Mention offset -1.
2983         * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
2984         * misc/tst-preadvwritev2.c (do_test): Call it.
2985         * misc/tst-preadvwritev64v2.c (do_test): Likewise.
2987 2018-02-02  Siddhesh Poyarekar  <siddhesh@sourceware.org>
2989         * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
2991         * benchtests/bench-memcmp.c: Print json instead of plain text.
2993         * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
2994         every test run.
2996 2018-02-01  Joseph Myers  <joseph@codesourcery.com>
2998         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2999         version to 4.15.
3000         (s390_sthyi): New syscall.
3002         * sysdeps/generic/ldbl-classify-compat.h: New file.
3003         * sysdeps/arm/ldbl-classify-compat.h: Likewise.
3004         * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
3005         * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
3006         * sysdeps/mips/ldbl-classify-compat.h: Likewise.
3007         * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
3008         * sysdeps/sh/ldbl-classify-compat.h: Likewise.
3009         * sysdeps/ieee754/dbl-64/s_finite.c: Include
3010         <ldbl-classify-compat.h>.
3011         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
3012         * sysdeps/ieee754/dbl-64/s_isinf.c: Include
3013         <ldbl-classify-compat.h>.
3014         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
3015         * sysdeps/ieee754/dbl-64/s_isnan.c: Include
3016         <ldbl-classify-compat.h>.
3017         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
3018         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
3019         <ldbl-classify-compat.h>.
3020         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
3021         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
3022         <ldbl-classify-compat.h>.
3023         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
3024         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
3025         <ldbl-classify-compat.h>.
3026         [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
3027         * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
3028         * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
3029         * sysdeps/m68k/coldfire/math_private.h: Remove file.
3030         * sysdeps/microblaze/math_private.h: Likewise.
3031         * sysdeps/nios2/math_private.h: Likewise.
3032         * sysdeps/sh/math_private.h: Likewise.
3034         * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
3035         * sysdeps/m68k/coldfire/math_private.h: ... here.
3036         * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
3037         * sysdeps/tile/math_private.h: Likewise.
3038         * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
3039         Remove macro.
3040         * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
3041         Likewise.
3043         * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
3044         Remove macro.
3045         (libc_fetestexcept): Likewise.
3046         (libc_feupdateenv_test): Likewise.
3047         * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
3048         (libc_fetestexcept): Likewise.
3049         (libc_feupdateenv_test): Likewise.
3050         * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
3051         (libc_fetestexcept): Likewise.
3052         (libc_feupdateenv_test): Likewise.
3053         * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
3054         (libc_fetestexcept): Likewise.
3055         (libc_feupdateenv_test): Likewise.
3057         * sysdeps/generic/math_private.h
3058         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
3059         New inline function.
3060         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
3061         Likewise.
3063         * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
3064         [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
3065         * sysdeps/generic/math_private.h
3066         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
3067         inline function.
3068         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
3069         Likewise.
3070         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
3071         Likewise.
3072         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
3073         Likewise.
3074         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
3075         Likewise.
3076         [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
3077         Likewise.
3078         [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
3079         [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
3080         [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
3081         [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
3082         * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
3083         (__fegetenv): Likewise.
3084         (fesetenv): Likewise.
3085         (__fesetenv): Likewise.
3086         (feupdateenv): Likewise.
3087         (__feupdateenv): Likewise.
3088         (fegetround): Likewise.
3089         (__fegetround): Likewise.
3090         (fesetround): Likewise.
3091         (__fesetround): Likewise.
3093         * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
3094         (feraiseexcept): New macro.
3095         [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
3096         * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
3097         Remove macro.
3098         (__feraiseexcept): Likewise.
3099         (feclearexcept): Likewise.
3100         * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
3101         (__feraiseexcept): Likewise.
3102         (feclearexcept): Likewise.
3103         * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
3104         (__feraiseexcept): Likewise.
3105         (feclearexcept): Likewise.
3106         * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
3107         (__feraiseexcept): Likewise.
3108         (feclearexcept): Likewise.
3109         (fetestexcept): Likewise.
3111         * sysdeps/m68k/coldfire/math-tests.h: New file.
3113         * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
3114         * sysdeps/m68k/bits/fenv.h: ... here.
3115         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
3116         not define.
3117         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
3118         Likewise.
3119         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
3120         Likewise.
3121         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
3122         Likewise.
3123         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
3124         Likewise.
3125         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
3126         Define to 0.
3127         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
3128         (__FE_UNDEFINED): New enum constant.
3129         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
3130         Do not define.
3131         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
3132         Likewise.
3133         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
3134         Likewise.
3135         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
3136         to match generic bits/fenv.h.
3137         [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
3138         Do not define.
3140         * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
3141         packed on bits.
3142         * soft-fp/extended.h (union _FP_UNION_E): Likewise.
3143         * soft-fp/half.h (union _FP_UNION_H): Likewise.
3144         * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
3145         * soft-fp/single.h (union _FP_UNION_S): Likewise.
3147 2018-02-01  Carlos O'Donell  <carlos@redhat.com>
3148             Ramin Seyed-Moussavi  <lordrasmus@gmail.com>
3149             Joseph Myers  <joseph@codesourcery.com>
3151         [BZ #21314]
3152         * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
3153         (__log1p): Disable -Wmaybe-uninitialized for -Os around
3154         computation using c.
3155         * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
3156         (__log1pf): Disable -Wmaybe-uninitialized for -Os around
3157         computation using c.
3159 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
3161         * version.h (RELEASE): Set to "development".
3162         (VERSION): Set to "2.27.9000".
3163         * NEWS (2.28): New section.
3165         * version.h (RELEASE): Set to "stable".
3166         (VERSION): Set to "2.27".
3167         * include/features.h (__GLIBC_MINOR__): Set to 2.27.
3169         * NEWS: Add the list of bugs fixed in 2.27.
3171 2018-02-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3173         * stdlib/test-atexit-race-common.c (do_test): Check stack size
3174         against PTHREAD_STACK_MIN.
3176 2018-02-01  Dmitry V. Levin  <ldv@altlinux.org>
3178         * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
3179         New entries.
3180         (Rafal Luzynski, Andreas Schwab): Update.
3182 2018-02-01  Rafal Luzynski  <digitalfreak@lingonborough.com>
3184         [BZ #10871]
3185         * NEWS: List the languages which actually use the alternative
3186         months feature in this release.  Also explain that "alt_mon" and
3187         "ab_alt_mon" are optional.
3189 2018-01-31  Il'ya Malakhov  <ilmalakhov@yandex.ru>
3191         [BZ #22765]
3192         * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
3194 2018-01-31  Dmitry V. Levin  <ldv@altlinux.org>
3196         * manual/install.texi (Tools for Compilation): Update the newest
3197         versions of gcc, binutils, texinfo, gawk, bison, and sed.
3198         * INSTALL: Regenerated.
3200 2018-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3202         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
3203         instead of __builtin_expect.
3205 2018-01-30  Florian Weimer  <fweimer@redhat.com>
3207         * nss/bug17079.c (do_test): Use nss_files only for reading passwd
3208         data.
3209         * nss/tst-nss-getpwent.c (do_test): Likewise.
3211 2018-01-30  Rafal Luzynski  <digitalfreak@lingonborough.com>
3213         [BZ #10871]
3214         * localedata/locales/hr_HR (mon): Rename to...
3215         (alt_mon): This.
3216         (mon): Import from CLDR (genitive case).
3217         (d_t_fmt): Update the comment.
3219 2018-01-29  Andreas Schwab  <schwab@linux-m68k.org>
3221         * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
3222         _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
3223         * sysdeps/posix/pathconf.c (__pathconf): Likewise.
3225 2018-01-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3227         * mach/Versions: Fix version when __mach_host_self_ was added.
3228         * hurd/Versions: Fix version when _hurd_exec_paths was added.
3229         * sysdeps/mach/hurd/i386/ld.abilist: New file.
3230         * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
3231         * sysdeps/mach/hurd/i386/libanl.abilist: New file.
3232         * sysdeps/mach/hurd/i386/libc.abilist: New file.
3233         * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
3234         * sysdeps/mach/hurd/i386/libdl.abilist: New file.
3235         * sysdeps/mach/hurd/i386/libm.abilist: New file.
3236         * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
3237         * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
3238         * sysdeps/mach/hurd/i386/librt.abilist: New file.
3239         * sysdeps/mach/hurd/i386/libutil.abilist: New file.
3240         * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
3241         || to respect codestyle.
3242         * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
3243         (do_test_bz20181): Rename accordingly.
3244         * malloc/malloc.c: Include <assert.h>.
3245         (assert): Do not define.
3246         [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
3247         * bits/fcntl.h: Fix comment for FREAD and FWRITE.
3248         * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
3249         * sysdeps/mach/hurd/hp-timing.h: New file.
3250         * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
3252 2018-01-29  Darius Rad  <darius@bluespec.com>
3254         * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
3256 2018-01-29  Palmer Dabbelt  <palmer@sifive.com>
3258         * sysdeps/init_array/crti.S (.section .init_array): Add
3259         PREINIT_FUNCTION when defined.
3260         * manual/math.texi: RISC-V supports _Float128 and _Float64x.
3261         * config.h.in: Regenerate.
3262         * manual/platform.texi: Add RISC-V documenation for
3263         __riscv_flush_icache.
3264         * sysdeps/riscv/__longjmp.S: New file.
3265         * sysdeps/riscv/backtrace.c: Likewise.
3266         * sysdeps/riscv/bits/endian.h: Likewise.
3267         * sysdeps/riscv/bits/setjmp.h: Likewise.
3268         * sysdeps/riscv/bits/wordsize.h: Likewise.
3269         * sysdeps/riscv/bsd-_setjmp.c: Likewise.
3270         * sysdeps/riscv/bsd-setjmp.c: Likewise.
3271         * sysdeps/riscv/dl-trampoline.S: Likewise.
3272         * sysdeps/riscv/gccframe.h: Likewise.
3273         * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
3274         * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
3275         * sysdeps/riscv/machine-gmon.h: Likewise.
3276         * sysdeps/riscv/memusage.h: Likewise.
3277         * sysdeps/riscv/setjmp.S: Likewise.
3278         * sysdeps/riscv/sys/asm.h: Likewise.
3279         * sysdeps/riscv/tls-macros.h: Likewise.
3280         * sysdeps/riscv/dl-tls.h: New file.
3281         * sysdeps/riscv/libc-tls.c: Likewise.
3282         * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
3283         * sysdeps/riscv/nptl/tls.h: Likewise.
3284         * sysdeps/riscv/stackinfo.h: Likewise.
3285         * sysdeps/riscv/bits/fenv.h: New file.
3286         * sysdeps/riscv/e_sqrtl.c: Likewise.
3287         * sysdeps/riscv/fpu_control.h: Likewise.
3288         * sysdeps/riscv/math-tests.h: Likewise.
3289         * sysdeps/riscv/nofpu/Implies: Likewise.
3290         * sysdeps/riscv/sfp-machine.h: Likewise.
3291         * sysdeps/riscv/tininess.h: Likewise.
3292         * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
3293         * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3294         * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
3295         * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
3296         * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
3297         * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
3298         * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
3299         * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
3300         * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3301         * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
3302         * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3303         * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
3304         * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
3305         * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
3306         * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
3307         * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
3308         * sysdeps/riscv/rvd/s_copysign.c: Likewise.
3309         * sysdeps/riscv/rvd/s_finite.c: Likewise.
3310         * sysdeps/riscv/rvd/s_fma.c: Likewise.
3311         * sysdeps/riscv/rvd/s_fmax.c: Likewise.
3312         * sysdeps/riscv/rvd/s_fmin.c: Likewise.
3313         * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
3314         * sysdeps/riscv/rvd/s_isinf.c: Likewise.
3315         * sysdeps/riscv/rvd/s_isnan.c: Likewise.
3316         * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
3317         * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
3318         * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
3319         * sysdeps/riscv/rvf/fegetenv.c: Likewise.
3320         * sysdeps/riscv/rvf/fegetmode.c: Likewise.
3321         * sysdeps/riscv/rvf/fegetround.c: Likewise.
3322         * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
3323         * sysdeps/riscv/rvf/fesetenv.c: Likewise.
3324         * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
3325         * sysdeps/riscv/rvf/fesetmode.c: Likewise.
3326         * sysdeps/riscv/rvf/fesetround.c: Likewise.
3327         * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
3328         * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
3329         * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
3330         * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
3331         * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
3332         * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
3333         * sysdeps/riscv/rvf/math_private.h: Likewise.
3334         * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3335         * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
3336         * sysdeps/riscv/rvf/s_finitef.c: Likewise.
3337         * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3338         * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
3339         * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
3340         * sysdeps/riscv/rvf/s_fminf.c: Likewise.
3341         * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
3342         * sysdeps/riscv/rvf/s_isinff.c: Likewise.
3343         * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
3344         * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
3345         * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
3346         * sysdeps/riscv/rvf/s_rintf.c: Likewise.
3347         * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
3348         * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3349         * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3350         * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
3351         * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
3352         * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
3353         * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
3354         * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
3355         * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
3356         * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
3357         * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
3358         * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
3359         * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
3360         * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
3361         * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
3362         * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
3363         * sysdeps/riscv/nptl/pthread-offsets.h: New file.
3364         * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
3365         * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
3366         * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
3367         * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
3368         * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
3369         * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
3370         * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
3371         * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
3372         * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
3373         * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
3374         * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
3375         * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
3376         * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
3377         * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
3378         * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
3379         * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
3380         * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
3381         * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
3382         * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
3383         * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
3384         * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
3385         * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
3386         * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
3387         * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
3388         * sysdeps/riscv/nofpu/libm-test-ulps: New file.
3389         * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
3390         * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
3391         * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
3392         * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
3393         * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
3394         * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
3395         * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
3396         * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
3397         * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
3398         * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
3399         * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
3400         * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
3401         * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
3402         * sysdeps/riscv/Implies: New file.
3403         * sysdeps/riscv/Makefile: Likewise.
3404         * sysdeps/riscv/configure: Likewise.
3405         * sysdeps/riscv/configure.ac: Likewise.
3406         * sysdeps/riscv/nptl/Makefile: Likewise.
3407         * sysdeps/riscv/preconfigure: Likewise.
3408         * sysdeps/riscv/rv64/Implies-after: Likewise.
3409         * sysdeps/riscv/rv64/rvd/Implies: Likewise.
3410         * sysdeps/riscv/rv64/rvf/Implies: Likewise.
3411         * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
3412         * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
3413         * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
3414         * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
3415         * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
3416         * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
3417         * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
3418         * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
3419         * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
3420         * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
3421         (Config): Likewise.
3423 2018-01-29  Florian Weimer  <fweimer@redhat.com>
3425         [BZ #22701]
3426         * include/rpcsvc/nislib.h (__nis_default_ttl): Add
3427         libnsl_hidden_proto.
3428         * include/rpcsvc/yp.h (yp_xdrall): Declare with
3429         libnsl_hidden_proto.
3430         * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
3431         * nis/Makefile (libnsl-routines): Add nss-default only for
3432         build-obsolete-nsl.
3433         * nis/nis_defaults.c (__nis_default_ttl): Add
3434         libnsl_hidden_nolink_def.
3435         * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
3436         declaration.
3437         * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
3438         * nis/ypclnt.c (yp_maplist): Likewise.
3440 2018-01-29  Romain Naour  <romain.naour@gmail.com>  (tiny change)
3442         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3443         (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
3445 2018-01-29  Joseph Myers  <joseph@codesourcery.com>
3447         * scripts/build-many-glibcs.py (Context.git_checkout): Use git
3448         clean -dxfq for git updates when replacing sources.
3450         * scripts/build-many-glibcs.py (Config.build_gcc): Use
3451         --disable-libcilkrts unconditionally, not just for the final GCC
3452         build for Hurd.
3454         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
3455         version to 4.15.
3457 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3459         [BZ #10871]
3460         * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
3461         case).
3463 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3465         [BZ #10871]
3466         * localedata/locales/be_BY (mon): Rename to...
3467         (alt_mon): This, then synchronize with CLDR (nominative case).
3468         (abmon): Rename to...
3469         (ab_alt_mon): This, then synchronize with CLDR (nominative case).
3470         (mon): Import from CLDR (genitive case).
3471         (abmon): Likewise.
3472         * localedata/locales/be_BY@latin (mon): Rename to...
3473         (alt_mon): This.
3474         (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
3476         * localedata/locales/be_BY@latin (lang_name): Reworded to
3477         "biełaruskaja mova".
3479 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3481         [BZ #10871]
3482         * localedata/locales/el_CY (mon): Renamed to...
3483         (alt_mon): This.
3484         (mon): Import from CLDR (genitive case).
3485         * localedata/locales/el_GR: Likewise.
3487 2018-01-29  Rafal Luzynski  <digitalfreak@lingonborough.com>
3489         [BZ #10871]
3490         * localedata/locales/ru_RU (mon): Rename to...
3491         (alt_mon): This.
3492         (abmon): Rename to...
3493         (ab_alt_mon): This.
3494         (mon): Import from CLDR (genitive case).
3495         (abmon): Copy from the old content except the 5th month which is
3496         now in the genitive case, even when abbreviated.
3497         * localedata/locales/ru_UA: Likewise.
3498         * time/tst-strptime.c (day_tests): Add an actual example of
3499         a difference between %b and %Ob in Russian.
3501 2018-01-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3503         * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
3504         * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
3505         a `c' variable.
3506         * resolv/res-close.c: Include <stdlib.h>.
3507         * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
3508         <sys/wait.h>, <time.h>, <sys/uio.h>.
3509         (NOT_CANCEL_H): Add inclusion guard.
3510         * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
3511         * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
3512         __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
3513         return 0.
3514         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
3515         vm_address_t * to ElfW(Addr) * for dl_main parameter.
3516         * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
3517         instead of void *.
3518         * sysdeps/pthread/timer_create.c (timer_create): Do not use
3519         timer_ptr2id to cast struct timer_node * to void *.
3520         * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
3521         --disable-libcilkrts to gcc configure.
3522         (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
3523         and make them the default for now.
3524         * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
3525         -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
3526         * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
3527         * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
3528         * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
3529         MACH_IPC_COMPAT.
3530         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
3531         __task_terminate would ever return successfully.
3532         * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
3533         to global scope.
3534         * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
3535         PAGE_COPY_THRESHOLD and set to benchmarked 16384.
3536         * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
3537         critical section to make code simpler and avoid warning.
3538         * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
3539         critical section to make code simpler and avoid warning.
3540         * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
3541         const char * instead of char *.
3542         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
3543         __hurd_file_name_split, hurd_file_name_split,
3544         __hurd_directory_name_split, hurd_directory_name_split,
3545         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
3546         hurd_file_name_path_lookup): Make lookup function parameter take a
3547         const char *name instead of char *name.
3548         * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
3549         __hurd_directory_name_split): Likewise.
3550         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3551         * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
3552         * sysdeps/mach/hurd/check_native.c: New file.
3553         * sysdeps/mach/hurd/check_pf.c: New file.
3554         * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
3555         (__freeifaddrs): Define macro to freeifaddrs.
3556         * sysdeps/mach/hurd/libhurduser.abilist: New file.
3557         * sysdeps/mach/libmachuser.abilist: New file.
3558         * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
3559         (do_test_bz20181): Rename accordingly.
3560         * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
3561         * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
3562         <sys/mount.h>.
3563         * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
3564         version only if __USE_EXTERN_INLINES is defined.
3565         * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
3566         __hurd_sockfail): Likewise.
3567         (_hurd_fd_get): Always declare functions, and provide inline versions
3568         only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
3569         * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
3570         _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
3571         _hurd_port_set): Always declare functions, and provide inline versions
3572         only if __USE_EXTERN_INLINES and _LIBC are defined and
3573         IS_IN(libc).
3574         * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
3575         _hurd_critical_section_unlock): Likewise.
3576         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
3577         * __hurd_threadvar_location): Likewise.
3578         * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
3579         _hurd_userlink_clear): Likewise.
3580         * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
3581         __mutex_unlock, __mutex_trylock): Always declare functions, and provide
3582         inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
3583         * mach/mach/mig_support.h (__mig_strncpy): Likewise.
3584         * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
3585         __spin_lock_locked): Likewise.
3586         * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
3587         __spin_lock_locked): Likewise.
3588         * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
3589         * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
3590         _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
3591         __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
3592         _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
3593         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
3594         _POSIX_NO_TRUNC): Define to 0.
3595         * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
3596         check size against PTHREAD_STACK_MIN.
3597         * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
3598         IS_IN(libpthread)]: Include <sigsetops.h>.
3599         * mach/Makefile (user-interfaces): Add mach/gnumach.
3600         * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
3601         * sysdeps/mach/configure (mach_interface_list): Regenerate.
3602         * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
3603         instead of invalid -1.
3604         * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
3605         * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
3606         * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
3607         <net/ppp_defs.h>.
3609 2018-01-27  Thomas Schwinge  <tschwinge@gnu.org>
3611         * hurd/fcntl-internal.h: New file.
3613 2018-01-27  James Clarke  <jrtc27@jrtc27.com>
3615         * sysdeps/hppa/fpu/libm-test-ulps: Update.
3617         * sysdeps/alpha/fpu/libm-test-ulps: Update.
3619 2018-01-26  Andreas Schwab  <schwab@linux-m68k.org>
3621         [BZ #22701]
3622         * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
3623         Build only shared objects.
3625 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
3627         * README: Update for hppa.
3629 2018-01-26  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
3631         * sysdeps/sparc/fpu/libm-test-ulps: Update
3632         cpow, ctan, ctanh, j0, j1, y0, yn ulps.
3634 2018-01-26  Carlos O'Donell  <carlos@redhat.com>
3636         Revert:
3638         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3640         [BZ #22563]
3641         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
3642         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
3643         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
3644         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
3645         to feature_1.
3647         2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
3649         [BZ #22563]
3650         * bits/types/__cancel_jmp_buf_tag.h: New file.
3651         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
3652         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
3653         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
3654         * nptl/Makefile (headers): Add
3655         bits/types/__cancel_jmp_buf_tag.h.
3656         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
3657         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
3658         * sysdeps/nptl/pthread.h: Include
3659         <bits/types/__cancel_jmp_buf_tag.h>.
3660         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
3661         __cancel_jmp_buf.
3662         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
3664 2018-01-25  Rafal Luzynski  <digitalfreak@lingonborough.com>
3666         [BZ #10871]
3667         * localedata/locales/uk_UA (mon): Renamed to...
3668         (alt_mon): This.
3669         (alt_digits): "0" removed and then renamed to...
3670         (mon): This.
3671         (date_fmt): Definition changed not to use the alternative
3672         digits hack.
3674 2018-01-25  Palmer Dabbelt  <palmer@sifive.com>
3676         * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
3677         FLAG_RISCV_FLOAT_ABI_DOUBLE.
3678         * elf/elf.h (EF_RISCV_RVC): New define.
3679         (EF_RISCV_FLOAT_ABI): Likewise.
3680         (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
3681         (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
3682         (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
3683         (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
3684         * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
3685         define.
3686         (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
3688 2018-01-25  Andreas Schwab  <schwab@suse.de>
3690         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
3691         single quotes.
3692         * sysdeps/gnu/configure: Regenerate.
3693         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
3694         * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
3695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3696         * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
3697         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
3698         * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
3699         * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
3700         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
3702 2018-01-25  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3704         * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
3705         URL, and run autoconf, make it the default for now.
3707 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
3709         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3710         soft-float ColdFire configuration.
3712         * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
3713         * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
3714         * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
3716         * sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
3717         MicroBlaze file.
3719         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
3720         ....
3721         * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
3722         ... here.
3723         * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
3724         New file.
3726         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
3727         * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
3728         * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
3729         file.
3731 2018-01-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3733         [BZ #22742]
3734         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
3735         Rename to __reserved and add comment.
3736         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
3737         Rename to __reserved.
3739 2018-01-24  Joseph Myers  <joseph@codesourcery.com>
3741         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
3742         i686-gnu configurations.
3743         (Context.run_builds): Include mig, gnumach and hurd in components
3744         considered.
3745         (Context.checkout): Add mig, gnumach and hurd to components.
3746         (Context.checkout_tar): Add URL mappings for mig, gnumach and
3747         hurd.
3748         (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
3749         (Config.build): Install gnumach headers, build mig and install
3750         hurd headers for 'gnu' OS.
3751         (Config.install_gnumach_headers): New function.
3752         (Config.install_hurd_headers): Likewise.
3753         (Glibc.build_glibc): Do not use /usr for 'gnu' OS.  Specifiy MIG
3754         when building for 'gnu' OS.
3756 2018-01-23  Tobias Klauser  <tklauser@distanz.ch>
3758         * manual/tunables.texi (Hardware Capability Tunables): Fix
3759         spelling.
3761 2018-01-22  Rical Jasan  <ricaljasan@pacific.net>
3763         * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
3764         (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
3765         (ALTMON_11, ALTMON_12): Improve documentation.
3766         * manual/time.texi (strftime): Likewise.
3768 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3770         [BZ #10871]
3771         * localedata/locales/pl_PL: Alternative month names added,
3772         primary month names are genitive now.
3773         * time/tst-strptime.c (day_tests): Actually use a genitive case
3774         of a month name in Polish language.
3776 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3778         [BZ #10871]
3779         * manual/locale.texi: Document ALTMON_1..12 constants for
3780         nl_langinfo.  Specify when to use ALTMON instead of MON.
3781         * manual/time.texi (strftime, strptime): Document GNU extension
3782         permitting O modifier with %B and %b.  Specify when to use
3783         %OB instead of %B.
3785 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3787         [BZ #10871]
3788         * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
3789         names, define them as the same as abbreviated month names explicitly.
3790         * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
3791         * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
3792         _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
3793         _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
3794         _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
3795         _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
3796         _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
3797         _NL_WABALTMON_12): New enum constants.
3798         * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
3799         wab_alt_mon, and ab_alt_mon_defined members.
3800         (time_output): Output ab_alt_mon and wab_alt_mon members.
3801         (time_read): Read them, initialize them as copies of abmon and wabmon
3802         respectively if they are missing, initialize ab_alt_mon_defined.
3803         * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
3804         * locale/programs/locfile-kw.h: Regenerate.
3805         * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
3806         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
3807         and ru_RU.UTF-8.
3808         * time/strftime_l.c (a_altmonth, aam_len): New macros.
3809         [!COMPILE_WIDE] (ABALTMON_1): New macro.
3810         (__strftime_internal): Handle %Ob and %Oh formats.
3811         * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
3812         (__strptime_internal): Handle %Ob and %Oh formats.
3813         * time/tst-strptime.c (day_tests): Add more tests to parse different
3814         forms of month names including the new %Ob format specifier.
3816 2018-01-22  Rafal Luzynski  <digitalfreak@lingonborough.com>
3818         [BZ #10871]
3819         * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
3820         define them as the same as primary full month names explicitly.
3821         * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
3822         * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
3823         __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
3824         __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
3825         _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
3826         _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
3827         _NL_WALTMON_12): New enum constants.
3828         [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
3829         ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
3830         macros.
3831         * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
3832         walt_mon, and alt_mon_defined members.
3833         (time_output): Output alt_mon and walt_mon members.
3834         (time_read): Read them, initialize them as copies of mon and wmon
3835         respectively if they are missing, initialize alt_mon_defined.
3836         * locale/programs/locfile-kw.gperf (alt_mon): Define.
3837         * locale/programs/locfile-kw.h: Regenerate.
3838         * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
3839         * localedata/tst-langinfo.c (map): Add tests for the new constants
3840         ALTMON_1 .. ALTMON_12.
3841         * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
3842         and pl_PL.UTF-8.
3843         * time/strftime_l.c (f_altmonth): New macro.
3844         (__strftime_internal): Handle %OB format.
3845         * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
3846         (__strptime_internal): Handle %OB format.
3847         * time/tst-strptime.c (day_tests): Add tests to parse different forms
3848         of month names including the new %OB format specifier.
3850 2018-01-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3852         [BZ #22685]
3853         * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
3854         from ABORT_TRANSACTION.
3855         (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
3856         * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
3857         ABORT_TRANSACTION_IMPL): Likewise.
3858         * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file.  Reuse
3859         Linux code, but remove the code that aborts transactions.
3861 2018-01-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3863         * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
3865 2018-01-19  Rafal Luzynski  <digitalfreak@lingonborough.com>
3867         * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
3868         in date: "2004-14-09" should be "2004-09-14".
3869         * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
3870         "2003-15-09" should be "2003-09-15".
3872 2018-01-18  Arjun Shankar  <arjun@redhat.com>
3874         [BZ #22343]
3875         [BZ #22774]
3876         CVE-2018-6485
3877         CVE-2018-6551
3878         * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
3879         after padding.
3880         (_int_memalign): check for integer overflow before calling
3881         _int_malloc.
3882         * malloc/tst-malloc-too-large.c: New test.
3883         * malloc/Makefile: Add tst-malloc-too-large.
3885 2018-01-18  Rafal Luzynski  <digitalfreak@lingonborough.com>
3887         * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
3888         in date: "2017-24-07" should be "2017-07-24".
3889         * localedata/locales/mai_IN: Likewise.
3890         * localedata/locales/mai_NP: Likewise.
3892 2018-01-17  Dmitry V. Levin  <ldv@altlinux.org>
3894         * po/ru.po: Update translations.
3896 2018-01-17  Joseph Myers  <joseph@codesourcery.com>
3898         [BZ #22719]
3899         * sysdeps/hppa/backtrace.c: New file.
3901 2018-01-17  H.J. Lu  <hongjiu.lu@intel.com>
3903         [BZ #22715]
3904         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
3905         align La_x86_64_retval to VEC_SIZE.
3907 2018-01-16  Joseph Myers  <joseph@codesourcery.com>
3909         * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
3910         (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
3912 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3914         * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
3915         Move tst-thread-exit-clobber ...
3916         [$(CXX)] (tests-unsupported): ... to here.
3918 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3920         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
3921         (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
3922         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
3923         (_dl_aarch64_cap_flags): Update.
3924         (_DL_HWCAP_COUNT): Update.
3926 2018-01-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3928         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
3929         (_DL_HWCAP_LAST): Remove.
3930         (_DL_HWCAP_COUNT): Move to ...
3931         * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
3932         (_DL_HWCAP_COUNT): ... here.
3934 2018-01-16  Florian Weimer  <fweimer@redhat.com>
3936         * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
3937         mode with GNU extensions.
3939 2018-01-15  Alan Hayward  <alan.hayward@arm.com>
3941         * elf/elf.h (NT_ARM_SVE): Define.
3943 2018-01-15  Florian Weimer  <fweimer@redhat.com>
3945         [BZ #22636]
3946         * nptl/tst-minstack-throw.cc: New file.
3947         * nptl/Makefile (tests): Add tst-minstack-throw.
3948         (LDLIBS-tst-minstack-throw): Link with libstdc++.
3949         [!CXX] (tests-unsupported): Add tst-minstack-throw.
3951 2018-01-15  Joseph Myers  <joseph@codesourcery.com>
3953         * scripts/build-many-glibcs.py (Context.checkout): Default
3954         binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
3955         version to 1.1.0.
3957 2018-01-13  Carlos O'Donell  <carlos@redhat.com>
3959         [BZ #22707]
3960         * elf/elf.h (DF_1_STUB): Define.
3961         (DF_1_PIE): Define.
3963 2018-01-12  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3965         [BZ #22697]
3966         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
3967         Do not add 0.5 to integer or out-of-range arguments.
3969 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3971         * po/bg.po: Update translations.
3972         * po/cs.po: Likewise.
3973         * po/de.po: Likewise.
3974         * po/ko.po: Likewise.
3975         * po/pl.po: Likewise.
3976         * po/sv.po: Likewise.
3977         * po/uk.po: Likewise.
3978         * po/vi.po: Likewise.
3980 2018-01-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3982         * aarch64/start.S (_start): Use __wrap_main.
3983         (__wrap_main): New local symbol.
3985 2018-01-12  Dmitry V. Levin  <ldv@altlinux.org>
3987         [BZ #22679]
3988         CVE-2018-1000001
3989         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
3990         generic_getcwd if the path returned by getcwd syscall is not absolute.
3991         * io/tst-getcwd-abspath.c: New test.
3992         * io/Makefile (tests): Add tst-getcwd-abspath.
3994 2018-01-12  Istvan Kurucsai  <pistukem@gmail.com>
3996         * malloc/malloc.c (malloc_consolidate): Add size check.
3998 2018-01-12  Florian Weimer  <fweimer@redhat.com>
4000         * support/write_message.c (write_message): Preserve errno.
4001         * support/check.c (print_failure): Likewise.
4002         * support/support_test_verify_impl.c (support_test_verify_impl):
4003         Likewise.
4004         * support/support_test_compare_failure.c
4005         (support_test_compare_failure): Likewise.
4007 2018-01-12  Florian Weimer  <fweimer@redhat.com>
4009         [BZ #22701]
4010         * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
4011         Prevent installation of libnsl.so.
4012         (libnsl-inhibit-o): Do not build (or install) static libraries.
4014 2018-01-12  Egmont Koblinger  <egmont@gmail.com>
4016         [BZ #22657]
4017         * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
4018         before the day number which may produce a double space.
4019         (date_fmt): Likewise.
4021 2018-01-12  Joseph Myers  <joseph@codesourcery.com>
4023         * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
4024         instead of fegetenv.
4026 2018-01-11  Joseph Myers  <joseph@codesourcery.com>
4028         [BZ #22702]
4029         * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
4030         comment to say exceptions are discarded.
4031         (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
4032         __fegetenv.
4033         (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
4034         be enabled.
4036 2018-01-11  Florian Weimer  <fweimer@redhat.com>
4038         * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
4039         and error message.
4041 2018-01-11  Florian Weimer  <fweimer@redhat.com>
4043         [BZ #22636]
4044         * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
4045         * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
4047 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
4049         [BZ #22693]
4050         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
4051         negative arguments in test for NaN or infinity argument.
4053 2018-01-10  Dmitry V. Levin  <ldv@altlinux.org>
4055         * po/libc.pot: Regenerate.
4057 2018-01-10  Florian Weimer  <fweimer@redhat.com>
4059         [BZ #22636]
4060         * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
4061         libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
4063 2018-01-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4065         * hurd/hurd/fd.h: Include <fcntl.h>
4066         (__hurd_at_flags): New function.
4067         * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
4068         with call to __hurd_at_flags.
4069         * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
4070         * sysdeps/mach/hurd/access.c (access_common): Move implementation to
4071         __faccessat
4072         (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
4073         (__access_noerrno): Use __faccessat_common instead of access_common.
4074         (__access): Likewise.
4075         * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
4076         with a call to __faccessat.
4077         * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
4078         (__faccessat_common): ... this. Move implementation of __access into it when
4079         AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
4080         reauthenticate_cwdir_at helper to implement AT mechanism.
4081         (__faccessat_noerrno): New function, just calls __faccessat_common.
4082         (__faccessat): New function, just calls __faccessat_common.
4083         (faccessat): Define weak alias.
4085 2018-01-10  Joseph Myers  <joseph@codesourcery.com>
4087         [BZ #22691]
4088         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4089         (CFLAGS-s_fmaxmagl.c): New variable.
4090         [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
4092         [BZ #22690]
4093         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
4094         long int for arguments of possibly overflowing addition or
4095         subtraction.
4096         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
4098 2018-01-09  Joseph Myers  <joseph@codesourcery.com>
4100         [BZ #22688]
4101         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
4102         (CFLAGS-e_remainderl.c): New variable.
4104         [BZ #22687]
4105         * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
4106         variable.
4107         (CFLAGS-s_cacoshl.c): Likewise.
4108         (CFLAGS-s_casinhl.c): Likewise.
4109         (CFLAGS-s_catanl.c): Likewise.
4110         (CFLAGS-s_catanhl.c): Likewise.
4111         (CFLAGS-s_cexpl.c): Likewise.
4112         (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
4113         (CFLAGS-s_csinhl.c): Likewise.
4114         (CFLAGS-s_clogl.c): Likewise.
4115         (CFLAGS-s_clog10l.c): Likewise.
4116         (CFLAGS-s_csinl.c): Likewise.
4117         (CFLAGS-s_csqrtl.c): Likewise.
4119 2017-01-09  Emilio Pozuelo Monfort  <pochu27@gmail.com>
4120 2017-01-09  Svante Signell  <svante.signell@gmail.com>
4122         * hurd/hurdexec.c (_hurd_exec): Deprecate function.
4123         (_hurd_exec_paths): New function.
4124         * hurd/hurd.h (_hurd_exec): Deprecate function.
4125         (_hurd_exec_paths): Declare function.
4126         * hurd/Versions: Export _hurd_exec_paths.
4127         * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
4128         (__execve): Use __getcwd to build absolute path, and use
4129         _hurd_exec_paths instead of _hurd_exec.
4130         * sysdeps/mach/hurd/spawni.c: Likewise.
4131         * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
4132         _hurd_exec.
4134 2018-01-08  Dmitry V. Levin  <ldv@altlinux.org>
4136         * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
4137         test instead of failing in case of ENOENT returned by posix_openpt.
4139 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4141         resolv: Support binary labels in test framework.
4142         * support/resolv_test.c (struct to_be_freed): Remove.
4143         (struct compressed_name): New.
4144         (allocate_compressed_name, ascii_tolower)
4145         (compare_compressed_name): New functions.
4146         (struct resolv_response_builder): Update type of
4147         compression_offsets for use with tsearch.  Rempve to_be_freed.
4148         (response_push_pointer_to_free): Remove function.
4149         (resolv_response_add_name): Rewrite using struct compressed_name
4150         and tsearch instead of hsearch_r.
4151         (response_builder_allocate): Remove initialization of
4152         compression_offsets.
4153         (response_builder_free): Update for removal of to_be_freed.  Use
4154         tdestroy instead of hdestroy_r.
4155         * resolv/Makefile (tests): Add tst-resolv-binary.
4156         (tst-resolv-binary): Link with -lresolv -lpthread.
4158 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4160         * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
4161         time.  Pass positive flag instead of negative flag to
4162         support_test_compare_failure.
4163         (support_test_compare_failure): Change negative parameter to
4164         positive.
4165         * support/support_test_compare_failure.c (report)
4166         (support_test_compare_failure): Likewise.
4167         * support/tst-test_compare.c (return_ssize_t, return_int): New.
4168         (do_test): Check int/size_t, ssize_t/size_t comparisons.
4170 2018-01-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4172         [BZ #22637]
4173         * nptl/descr.h (stackblock, stackblock_size): Update comments.
4174         * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
4175         * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
4176         stacksize.
4177         * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
4179 2018-01-08  H.J. Lu  <hongjiu.lu@intel.com>
4181         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4182         Add s_sincosf-sse2 and s_sincosf-fma.
4183         (CFLAGS-s_sincosf-fma.c): New.
4184         * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
4185         * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4186         * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
4187         * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
4188         __sincosf is defined.
4190 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4192         * nptl/tst-thread-exit-clobber.cc: New file.
4193         * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
4194         C++11 mode.
4195         (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
4196         (tests): Add tst-thread-exit-clobber.
4197         [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
4199 2018-01-08  Florian Weimer  <fweimer@redhat.com>
4201         * support/check.h (support_static_assert): Define.
4202         (TEST_COMPARE): Use it.
4204 2018-01-07  Aurelien Jarno  <aurelien@aurel32.net>
4206         * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
4207         [!__RLIM_T_MATCHES_RLIM64_T]
4208         [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
4209         __getrlimit64. Add libc_hidden_weak.
4211 2018-01-06  Palmer Dabbelt  <palmer@sifive.com>
4213         * elf/elf.h (R_RISCV_NONE): New define.
4214         (R_RISCV_32): Likewise.
4215         (R_RISCV_64): Likewise.
4216         (R_RISCV_RELATIVE): Likewise.
4217         (R_RISCV_COPY): Likewise.
4218         (R_RISCV_JUMP_SLOT): Likewise.
4219         (R_RISCV_TLS_DTPMOD32): Likewise.
4220         (R_RISCV_TLS_DTPMOD64): Likewise.
4221         (R_RISCV_TLS_DTPREL32): Likewise.
4222         (R_RISCV_TLS_DTPREL64): Likewise.
4223         (R_RISCV_TLS_TPREL32): Likewise.
4224         (R_RISCV_TLS_TPREL64): Likewise.
4225         * Makerules (make-link-multidir): Make directories before linking into
4226         them.
4227         * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
4228         define.
4229         (VDSO_HASH_LINUX_4_15): Likewise.
4230         * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
4231         in subdirectories of lib.
4232         * nptl/Makefile (/librt.so): Always depend on
4233         "$(shared-thread-library)".
4235 2018-01-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4237         * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
4238         * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
4239         JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
4240         (___tls_get_addr).
4241         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
4242         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
4243         "-O2 -march=i686".
4244         * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
4245         * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
4246         (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
4247         * sysdeps/gnu/glob-lstat-compat.c: New file.
4248         * sysdeps/gnu/glob64-lstat-compat.c: New file.
4249         * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
4251 2018-01-05  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4253         * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
4254         Reserve 16 chars to reloc_addr before calling _itoa_word.
4256 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
4258         [BZ #22678]
4259         * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
4260         old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
4262         * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
4263         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
4265         * resource/tst-getrlimit.c: Add copyright header.
4267 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
4268             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4270         * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
4271         define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
4272         Define __GI_getrlimit64 as weak alias of __getrlimit64.
4273         [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
4274         instead.
4275         * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
4276         define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
4277         * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
4278         RLIM64_INFINITY): Fix values to match the kernel ones.
4279         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
4280         USE_VERSIONED_RLIMIT.  Rename __getrlimit64 into __old_getrlimit64 and
4281         provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1.  Add a
4282         __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
4283         getrlimit64@@GLIBC_2_27.
4284         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
4285         and setrlimit64.
4286         * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
4287         getrlimit, setrlimit, getrlimit64 and setrlimit64.
4288         * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
4289         setrlimit, getrlimit64 and setrlimit64.
4291 2018-01-05  Aurelien Jarno  <aurelien@aurel32.net>
4293         [BZ #22648]
4294         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
4295         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
4297 2018-01-04  Joseph Myers  <joseph@codesourcery.com>
4299         * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
4300         * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
4301         * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
4303 2018-01-03  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4305         [BZ #15479]
4306         [BZ #22666]
4307         * sysdeps/alpha/fpu/s_trunc.c: Remove file.
4308         * sysdeps/alpha/fpu/s_truncf.c: Likewise.
4310         [BZ #15479]
4311         [BZ #22665]
4312         * sysdeps/alpha/fpu/s_ceil.c: Remove file.
4313         * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
4314         * sysdeps/alpha/fpu/s_floor.c: Likewise.
4315         * sysdeps/alpha/fpu/s_floorf.c: Likewise.
4317 2018-01-04  Florian Weimer  <fweimer@redhat.com>
4319         [BZ #22667]
4320         * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
4321         Align the stack before calling exit.
4322         * stdlib/tst-makecontext-align.c: New file.
4323         * stdlib/Makefile (tests): Add tst-makecontext-align.
4325 2018-01-04  Florian Weimer  <fweimer@redhat.com>
4327         Add support for calling dlvsym from libc.so.
4328         * include/dlfcn.h (__libc_dlvsym): Declare.
4329         * elf/Makefile (tests-static-internal): Add
4330         tst-libc_dlvsym-static.
4331         (tests-internal): Add tst-libc_dlvsym.
4332         (modules-names): Add tst-libc_dlvsym-dso.
4333         (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
4334         (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
4335         (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
4336         object tst-libc_dlvsym-dso.so needs to be built before running
4337         these tests.
4338         (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
4339         * elf/Versions: Export __libc_dlvsym.
4340         * elf/dl-libc.c (struct do_dlvsym_args): New.
4341         (do_dlvsym, __libc_dlvsym): New functions.
4342         (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
4343         (_dl_open_hook2): New variable.
4344         (__libc_register_dl_open_hook): Set it.
4345         * elf/tst-libc_dlvsym-dso.c: New file.
4346         * elf/tst-libc_dlvsym-static.c: Likewise.
4347         * elf/tst-libc_dlvsym.c: Likewise.
4348         * elf/tst-libc_dlvsym.h: Likewise.
4350 2018-01-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4352         * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
4353         include <sys/mount.h>.
4355 2018-01-02  Wilco Dijkstra  <wdijkstr@arm.com>
4357         * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
4358         Add __NO_MATH_ERRNO__ check.
4360 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
4362         * sysdeps/mips/mips32/libm-test-ulps: Update.
4363         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4365 2018-01-02  Florian Weimer  <fweimer@redhat.com>
4367         * misc/tst-pselect.c: Add copyright header.
4369 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4371         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
4372         comment.
4373         * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
4374         comment.
4375         (settrlimit): Rename into setrlimit.
4376         (__sttrlimit): Rename into __setrlimit.
4378         * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
4379         Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
4380         never defined in that case.
4382 2018-01-02  Joseph Myers  <joseph@codesourcery.com>
4384         * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4386         * sysdeps/arm/libm-test-ulps: Update.
4388         * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
4389         (regen-ulps): Use $(libm-tests) not $^ in shell loop.
4391 2018-01-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
4393         * NEWS: Add cosf and sincosf to list of optimized functions.
4395 2018-01-02  Aurelien Jarno  <aurelien@aurel32.net>
4397         [BZ #22660]
4398         * sysdeps/alpha/fpu/s_fmax.S: Remove file.
4399         * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
4400         * sysdeps/alpha/fpu/s_fmin.S: Likewise.
4401         * sysdeps/alpha/fpu/s_fminf.S: Likewise.
4403 2018-01-01  Dmitry V. Levin  <ldv@altlinux.org>
4405         [BZ #22433]
4406         * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
4408         * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
4409         making a copy of it.
4411 2018-01-01  Joseph Myers  <joseph@codesourcery.com>
4413         * manual/texinfo.tex: Update to version 2017-12-26.21 with
4414         trailing whitespace removed.
4415         * scripts/config.guess: Update to version 2018-01-01.
4416         * scripts/config.sub: Update to version 2018-01-01.
4417         * scripts/move-if-change: Update from gnulib.
4419         * NEWS: Update copyright dates.
4420         * catgets/gencat.c (print_version): Likewise.
4421         * csu/version.c (banner): Likewise.
4422         * debug/catchsegv.sh: Likewise.
4423         * debug/pcprofiledump.c (print_version): Likewise.
4424         * debug/xtrace.sh (do_version): Likewise.
4425         * elf/ldconfig.c (print_version): Likewise.
4426         * elf/ldd.bash.in: Likewise.
4427         * elf/pldd.c (print_version): Likewise.
4428         * elf/sotruss.sh: Likewise.
4429         * elf/sprof.c (print_version): Likewise.
4430         * iconv/iconv_prog.c (print_version): Likewise.
4431         * iconv/iconvconfig.c (print_version): Likewise.
4432         * locale/programs/locale.c (print_version): Likewise.
4433         * locale/programs/localedef.c (print_version): Likewise.
4434         * login/programs/pt_chown.c (print_version): Likewise.
4435         * malloc/memusage.sh (do_version): Likewise.
4436         * malloc/memusagestat.c (print_version): Likewise.
4437         * malloc/mtrace.pl: Likewise.
4438         * manual/libc.texinfo: Likewise.
4439         * nptl/version.c (banner): Likewise.
4440         * nscd/nscd.c (print_version): Likewise.
4441         * nss/getent.c (print_version): Likewise.
4442         * nss/makedb.c (print_version): Likewise.
4443         * posix/getconf.c (main): Likewise.
4444         * scripts/test-installation.pl: Likewise.
4445         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4447         * All files with FSF copyright notices: Update copyright dates
4448         using scripts/update-copyrights.
4449         * locale/programs/charmap-kw.h: Regenerated.
4450         * locale/programs/locfile-kw.h: Likewise.
4452 2017-12-31  Zack Weinberg  <zackw@panix.com>
4454         * libio/bits/libio-ldbl.h: Correct check for improper
4455         inclusion.  Add own multiple include guard.
4457 2017-12-30  Aurelien Jarno  <aurelien@aurel32.net>
4458             Dmitry V. Levin  <ldv@altlinux.org>
4460         [BZ #22625]
4461         CVE-2017-16997
4462         * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
4463         string token expansion. Check for NULL pointer or empty string possibly
4464         returned by expand_dynamic_string_token.
4465         (decompose_rpath): Check for empty path after dynamic string
4466         token expansion.
4468 2017-12-29  Dmitry V. Levin  <ldv@altlinux.org>
4470         [BZ #22433]
4471         * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
4473         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
4474         about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
4475         PTRACE_SECCOMP_GET_FILTER.  Update comments about PTRACE_SINGLESTEP
4476         and PTRACE_SYSCALL.
4477         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
4478         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4479         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4480         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4481         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4482         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
4484         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
4485         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
4486         __ptrace_peeksiginfo_flags, ptrace): Move to ...
4487         * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
4488         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4489         bits/ptrace-shared.h.
4490         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
4491         <bits/ptrace-shared.h>.
4492         (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
4493         __ptrace_peeksiginfo_flags, ptrace): Remove.
4494         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
4495         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
4496         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
4497         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
4498         * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
4500 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
4502         [BZ #17804]
4503         * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
4504         end of the loop. Improve comments.
4506 2017-12-29  Zack Weinberg  <zackw@panix.com>
4508         [BZ #22615]
4509         * manual/errno.texi (Checking for Errors): Explicitly say that errno
4510         might be set on success.
4512 2017-12-29  Aurelien Jarno  <aurelien@aurel32.net>
4514         [BZ #22611]
4515         * malloc/tst-realloc.c (do_test): Remove the test checking that errno
4516         is unchanged on success.
4518 2017-12-27  Dmitry V. Levin  <ldv@altlinux.org>
4520         * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
4521         updated.
4522         * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
4523         expand_dynamic_string_token): Likewise.
4524         * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
4525         is_path argument.
4527         * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
4528         contains ':'.
4530         * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
4531         is set and name contains ':', and all code depending on these checks.
4533 2017-12-24  Zack Weinberg  <zackw@panix.com>
4535         * libio/libio.h, libio/_G_config.h: New stub headers which issue a
4536         deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
4537         respectively.
4538         * libio/libio.h: Rename the original version of this file to
4539         libio/bits/libio.h.  Error out if not included by stdio.h or the
4540         stub libio.h.
4541         * include/libio.h: Move to include/bits.  Forward to libio/bits/libio.h.
4542         * sysdeps/generic/_G_config.h: Move to top-level bits/.  Error out
4543         if not included by bits/libio.h or the stub _G_config.h.
4544         * sysdeps/unix/sysv/linux/_G_config.h: Move to
4545         sysdeps/unix/sysv/linux/bits.  Error out if not included by
4546         bits/libio.h or the stub _G_config.h.
4547         * libio/stdio.h: Include bits/libio.h, not libio.h.
4548         * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
4549         well as libio.h and _G_config.h.
4551         * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
4552         * libio/strfile.h, stdio-common/vfscanf.c
4553         * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
4554         Include stdio.h, not _G_config.h nor libio.h.
4555         * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
4556         * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
4558         * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
4560 2017-12-23  Dmitry V. Levin  <ldv@altlinux.org>
4562         [BZ #22347]
4563         * stdlib/getrandom.c (getrandom): Fix comment.
4564         * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
4566 2017-12-23  Aurelien Jarno  <aurelien@aurel32.net>
4568         [BZ #21161]
4569         * manual/arith.texi (strtoul): Fix a typo.
4571         [BZ #22596]
4572         * manual/arith.texi (finite): Fix the description of the return
4573         value.
4575 2017-12-22  Eric Blake  <ebb9@byu.net>
4577         Avoid gcc warnings on cygwin
4578         * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
4579         * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
4580         Avoid unused variable.
4582 2017-12-22  Florian Weimer  <fweimer@redhat.com>
4584         * io/Makefile (routines): Add copy_file_range.
4585         (tests): Add tst-copy_file_range.
4586         (tests-static, tests-internal): Add tst-copy_file_range-compat.
4587         * io/Versions (GLIBC_2.27): Export copy_file_range.
4588         * io/copy_file_range-compat.c: New file.
4589         * io/copy_file_range.c: Likewise.
4590         * io/tst-copy_file_range-compat.c: Likewise.
4591         * io/tst-copy_file_range.c: Likewise.
4592         * manual/llio.texi (Copying File Data): New section.
4593         * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
4594         * support/Makefile (libsupport-routines): Add support-xfstat,
4595         xftruncate, xlseek.
4596         * support/support-xfstat.c: New file.
4597         * support/xftruncate.c: Likewise.
4598         * support/xlseek.c: Likewise.
4599         * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
4600         * sysdeps/unix/sysv/linux/**.abilist: Update.
4601         * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
4603 2017-12-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4605         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4606         disable-multi-arch variant to aarch64-linux-gnu.
4608 2017-12-20  Joseph Myers  <joseph@codesourcery.com>
4610         * manual/texinfo.tex: Update to version 2017-12-18.20 with
4611         trailing whitespace removed.
4612         * scripts/config.guess: Update to version 2017-12-17.
4613         * scripts/config.sub: Update to version 2017-11-23.
4614         * scripts/install-sh: Update to version 2017-09-23.17.
4615         * scripts/move-if-change: Update to version 2017-09-13 06:45.
4617 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4619         * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
4620         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
4621         * sysdeps/tile/_mcount.S (__mcount): Likewise.
4622         * sysdeps/tile/crti.S (_init, _fini): Likewise.
4623         * sysdeps/tile/crtn.S: Likewise.
4624         * sysdeps/tile/dl-start.S (_start): Likewise.
4625         * sysdeps/tile/dl-trampoline.S: Likewise.
4626         * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
4627         * sysdeps/tile/start.S (_start): Likewise.
4628         * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
4629         * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
4630         * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
4631         * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
4632         * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
4633         * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
4634         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
4636         * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
4637         comment.
4638         * sysdeps/tile/preconfigure: Remove tilegx folder.
4639         * sysdeps/tile/tilegx/Implies: Move definitions to ...
4640         * sysdeps/tile/Implies: ... here.
4641         * sysdeps/tile/tilegx/Makefile: Move rules to ...
4642         * sysdeps/tile/Makefile: ... here.
4643         * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
4644         * sysdeps/tile/atomic-machine.h: ... here.  Add include guards.
4645         * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
4646         * sysdeps/tile/bits/wordsize.h: ... here.
4647         * sysdeps/tile/tilegx/*: Move to ...
4648         * sysdeps/tile/*: ... here.
4649         * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
4650         * sysdeps/tile/tilegx32/Implies: ... here.
4651         * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
4652         * sysdeps/tile/tilegx64/Implies: ... here.
4653         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
4654         to ...
4655         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
4656         * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
4657         * sysdeps/unix/sysv/linux/tile/*: ... here.
4658         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
4659         * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
4660         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
4661         * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
4663         * README: Remove tilepro-*-linux-gnu from supported architecture.
4664         * scripts/build-many-glibcs.py: Likewise.
4665         * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
4666         * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
4667         * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
4668         elf_machine_matches_host, elf_machine_dynamic,
4669         elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
4670         howto, elf_machine_rela): Likewise.
4671         * sysdeps/tile/dl-start.S (_start): Likewise.
4672         * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
4673         * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
4674         MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
4675         * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
4676         * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
4677         * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
4678         Likewise.
4679         * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
4680         * sysdeps/tile/preconfigure: Likewise.
4681         * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
4682         POINTER_CHK_GUARD): Likewise.
4683         * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
4684         * sysdeps/tile/start.S (_start): Likewise.
4685         * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
4686         Likewise.
4687         * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
4688         (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
4689         CMOVNEZ): Remove.
4690         * sysdeps/unix/sysv/linux/tile/bits/environments.h
4691         (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
4692         __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
4693         Likewise.
4694         * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
4695         * sysdeps/tile/tilepro/Implies: Remove file.
4696         * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
4697         * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
4698         * sysdeps/tile/tilepro/memchr.c: Likewise.
4699         * sysdeps/tile/tilepro/memcpy.S: Likewise.
4700         * sysdeps/tile/tilepro/memset.c: Likewise.
4701         * sysdeps/tile/tilepro/memusage.h: Likewise.
4702         * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
4703         * sysdeps/tile/tilepro/strchr.c: Likewise.
4704         * sysdeps/tile/tilepro/strchrnul.c: Likewise.
4705         * sysdeps/tile/tilepro/strlen.c: Likewise.
4706         * sysdeps/tile/tilepro/strrchr.c: Likewise.
4707         * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
4708         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
4709         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
4710         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
4711         * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
4712         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
4713         Likewise.
4714         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
4715         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
4716         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
4717         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
4718         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
4719         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
4720         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
4721         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
4722         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
4723         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
4724         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
4725         * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
4726         * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
4727         tilepro mention in comment.
4729         * nptl/Makefile (libpthread-routines): Add pthread_join_common.
4730         * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
4731         * nptl/pthread_join_common.c: New file: common function used on
4732         pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
4733         * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
4734         * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
4735         * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
4736         (cleanup): Move definition to pthread_join_common.c.
4737         * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
4738         Remove superflous checks.
4739         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
4740         Likewise.
4742 2017-12-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4744         * sysdeps/aarch64/libm-test-ulps: Update.
4746 2017-12-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4748         * sysdeps/aarch64/memset.S (MEMSET): Define.
4750 2017-12-20  Florian Weimer  <fweimer@redhat.com>
4752         [BZ #22635]
4753         nptl: Provide full implementation of pthread_self in libc.so.
4754         * nptl/Makefile (routines): Add pthread_self.
4755         (libpthread-routines): Replace pthread_self with
4756         compat-pthread_self.
4757         * nptl/forward.c (pthread_self): Remove.
4758         * nptl/nptl-init.c (pthread_functions): Do not initialize
4759         ptr_pthread_self.
4760         * nptl/pthread_self.c (pthread_self): Remove weak alias.
4761         * nptl/compat-pthread_self.c: New file.
4762         * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
4763         Remove ptr_pthread_self.
4765 2017-12-19  Arnold D. Robbins  <arnold@skeeve.com>
4767         * posix/regcomp.c: Fix spelling in comments.
4768         * posix/regex.h: Likewise.
4769         * posix/regex_internal.c: Likewise.
4770         * posix/regexec.c: Likewise.
4772 2017-12-19  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
4774         [BZ #22377]
4775         * math/Makefile [C++] (tests): Add test for iseqsig.
4776         * math/math.h [C++] (iseqsig): New implementation, which does
4777         not rely on __MATH_TG/__builtin_types_compatible_p.
4778         * math/test-math-iseqsig.cc: New file.
4779         * sysdeps/powerpc/powerpc64le/Makefile
4780         (CFLAGS-test-math-iseqsig.cc): New variable.
4782 2017-12-19  Dmitry V. Levin  <ldv@altlinux.org>
4784         * elf/dl-load.c (is_trusted_path): Remove.
4785         (fillin_rpath): Remove check_trusted argument and its use,
4786         all callers changed.
4788 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4790         [BZ #22630]
4791         * Makeconfig (link-pie-before-libc): Replace -pie with
4792         $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
4793         * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
4794         (tst-dlopen-aout-no-pie): New.
4795         (LDFLAGS-tst-prelink): Removed.
4796         (tst-prelink-no-pie): New.
4797         (LDFLAGS-tst-main1): Removed.
4798         (tst-main1-no-pie): New.
4799         * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
4800         (tst-gmon-no-pie): New.
4802 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4804         * manual/install.texi: Document that --enable-static-pie
4805         implies PIE.
4806         * INSTALL: Regenerated.
4808 2017-12-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4810         [BZ #21309]
4811         * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
4812         unsigned.
4814 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4816         Revert:
4818         2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4820         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4822         2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
4824         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
4825         <errno.h>.  Include "eexp.tbl".
4826         (half): New constant.
4827         (one): Likewise.
4828         (__ieee754_exp): Rewrite.
4829         (__slowexp): Remove prototype.
4830         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
4831         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
4832         * sysdeps/i386/fpu/slowexp.c: Likewise.
4833         * sysdeps/ia64/fpu/slowexp.c: Likewise.
4834         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
4835         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
4836         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4837         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
4838         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
4839         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
4840         comment.
4841         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
4842         (CPPFLAGS-slowexp.c): Remove variable.
4843         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4844         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
4845         (CFLAGS-slowexp-fma.c): Remove variable.
4846         (CFLAGS-slowexp-fma4.c): Likewise.
4847         (CFLAGS-slowexp-avx.c): Likewise.
4848         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
4849         define as macro.
4850         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
4851         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
4852         * math/Makefile (type-double-routines): Remove slowexp.
4853         * manual/probes.texi (slowexp_p6): Remove.
4854         (slowexp_p32): Likewise.
4856 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4858         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
4859         arithmetic.
4861         * lib/glob.c (glob): Do not pass NULL to mempcpy.
4863 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4865         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4867 2017-12-19  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
4869         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
4870         <errno.h>.  Include "eexp.tbl".
4871         (half): New constant.
4872         (one): Likewise.
4873         (__ieee754_exp): Rewrite.
4874         (__slowexp): Remove prototype.
4875         * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
4876         * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
4877         * sysdeps/i386/fpu/slowexp.c: Likewise.
4878         * sysdeps/ia64/fpu/slowexp.c: Likewise.
4879         * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
4880         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
4881         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
4882         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
4883         * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
4884         * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
4885         comment.
4886         * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
4887         (CPPFLAGS-slowexp.c): Remove variable.
4888         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4889         Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
4890         (CFLAGS-slowexp-fma.c): Remove variable.
4891         (CFLAGS-slowexp-fma4.c): Likewise.
4892         (CFLAGS-slowexp-avx.c): Likewise.
4893         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
4894         define as macro.
4895         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
4896         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
4897         * math/Makefile (type-double-routines): Remove slowexp.
4898         * manual/probes.texi (slowexp_p6): Remove.
4899         (slowexp_p32): Likewise.
4901 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4902             James Clarke <jrtc27@jrtc27.com>
4904         [BZ #22603]
4905         * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
4906         addition.
4908 2017-12-19  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4910         [BZ #22605]
4911         * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
4912         code.
4914 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4916         [BZ #22563]
4917         * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4918         * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
4919         * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
4920         * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
4921         to feature_1.
4923 2017-12-19  H.J. Lu  <hongjiu.lu@intel.com>
4925         [BZ #22563]
4926         * bits/types/__cancel_jmp_buf_tag.h: New file.
4927         * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
4928         * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
4929         * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
4930         * nptl/Makefile (headers): Add
4931         bits/types/__cancel_jmp_buf_tag.h.
4932         * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
4933         (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
4934         * sysdeps/nptl/pthread.h: Include
4935         <bits/types/__cancel_jmp_buf_tag.h>.
4936         (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
4937         __cancel_jmp_buf.
4938         * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
4940 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4942         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4943         --enable-static-pie variants to x86_64, x32 and i686.
4945 2017-12-19  Joseph Myers  <joseph@codesourcery.com>
4947         [BZ #22631]
4948         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
4949         argument for attrubutes.  All callers changed.
4950         (__inline_mathop1): Likewise.  All callers changed.
4951         (__inline_mathop): Likewise.  All callers changed.
4952         [__USE_MISC] (scalbn): Use __inline_forward instead of
4953         __inline_forward_c.
4954         [__USE_ISOC99] (scalbln): Likewise.
4955         [__USE_ISOC99] (nearbyint): Likewise.
4956         [__USE_ISOC99] (lrint): Likewise.
4957         [__USE_MISC] (scalbnf): Likewise.
4958         [__USE_ISOC99] (scalblnf): Likewise.
4959         [__USE_ISOC99] (nearbyintf): Likewise.
4960         [__USE_ISOC99] (lrintf): Likewise.
4961         [__USE_MISC] (scalbnl): Likewise.
4962         [__USE_ISOC99] (scalblnl): Likewise.
4963         [__USE_ISOC99] (nearbyintl): Likewise.
4964         [__USE_ISOC99] (lrintl): Likewise.
4965         * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
4966         __inline_mathop and __m81_defun changed.
4968         * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
4969         CPU or FPU for ARM hard-float configurations.
4971 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
4973         * nptl/tst-attr3.c: Include <libc-diag.h>.
4974         (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
4976         * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
4978         * string/tester.c (test_strncat): Also disable -Warray-bounds
4979         warnings for two tests.
4981 2017-12-18  H.J. Lu  <hongjiu.lu@intel.com>
4983         [BZ #22614]
4984         * Makeconfig (no-pie-ldflag): Set to -no-pie only if
4985         $(cc-pie-default) == yes.
4986         * config.make.in (cc-pie-default): New.
4987         * configure.ac (libc_cv_pie_default): Renamed to ...
4988         (libc_cv_cc_pie_default): This.
4989         (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
4990         * configure: Regenerated.
4992 2017-12-18  Florian Weimer  <fweimer@redhat.com>
4994         [BZ #20204]
4995         ld.so: Harden dl-libc/libdl hooks.
4996         * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
4997         (rtld_active): New function.
4998         * dlfcn/dladdr.c (__dladdr): Call it.
4999         * dlfcn/dladdr1.c (__dladdr1): Likewise.
5000         * dlfcn/dlclose.c (__dlcose): Likewise.
5001         * dlfcn/dlerror.c (__dlerror): Likewise.
5002         * dlfcn/dlinfo.c (__dlinfo): Likewise.
5003         * dlfcn/dlmopen.c (__dlmopen): Likewise.
5004         * dlfcn/dlopen.c (__dlopen): Likewise.
5005         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
5006         * dlfcn/dlsym.c (__dlsym): Likewise.
5007         * dlfcn/dlvsym.c (__dlvsym): Likewise.
5008         * libio/vtables.c (_IO_vtable_check): Likewise.
5009         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
5010         (__libc_dlclose): Likewise.
5011         * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
5012         assignment.
5014 2017-12-18  Joseph Myers  <joseph@codesourcery.com>
5016         [BZ #22446]
5017         * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
5018         buffers for readlink input and output.
5020 2017-12-18  Sergei Trofimovich  <slyfox@gentoo.org>
5022         [BZ #22624]
5023         * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
5024         inhibit_stack_protector.
5026         [BZ #22624]
5027         * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
5028         inhibit_stack_protector.
5030 2017-12-18  Dmitry V. Levin  <ldv@altlinux.org>
5032         [BZ #22627]
5033         * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
5034         code and invocation.
5036 2017-12-18  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5038         * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
5040 2017-12-16  Aurelien Jarno  <aurelien@aurel32.net>
5042         [BZ #22505]
5043         * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
5045 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5047         * sysdeps/s390/fpu/libm-test-ulps: Update.
5049 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5051         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5053 2017-12-16  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5055         * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
5056         constants to s_sincosf.h file.
5057         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
5058         * sysdeps/ieee754/flt-32/s_sincosf.c: New
5059         implementation.
5060         * sysdeps/ieee754/flt-32/s_sincosf.h:
5061         New file.
5063 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
5065         [BZ #14681]
5066         * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
5067         before mtrace.
5069 2017-12-15  H.J. Lu  <hongjiu.lu@intel.com>
5071         [BZ #19574]
5072         * INSTALL: Regenerated.
5073         * Makeconfig (real-static-start-installed-name): New.
5074         (pic-default): Updated for --enable-static-pie.
5075         (pie-default): New for --enable-static-pie.
5076         (default-pie-ldflag): Likewise.
5077         (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
5078         with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
5079         Replace $(static-start-installed-name) with
5080         $(real-static-start-installed-name).
5081         (+prectorT): Updated for --enable-static-pie.
5082         (+postctorT): Likewise.
5083         (CFLAGS-.o): Add $(pie-default).
5084         (CFLAGS-.op): Likewise.
5085         * NEWS: Mention --enable-static-pie.
5086         * config.h.in (ENABLE_STATIC_PIE): New.
5087         * configure.ac (--enable-static-pie): New configure option.
5088         (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
5089         (have-static-pie): Likewise.
5090         Enable static PIE if linker supports --no-dynamic-linker.
5091         (ENABLE_STATIC_PIE): New AC_DEFINE.
5092         (enable-static-pie): New LIBC_CONFIG_VAR.
5093         * configure: Regenerated.
5094         * csu/Makefile (omit-deps): Add r$(start-installed-name) and
5095         gr$(start-installed-name) for --enable-static-pie.
5096         (extra-objs): Likewise.
5097         (install-lib): Likewise.
5098         (extra-objs): Add static-reloc.o and static-reloc.os
5099         ($(objpfx)$(start-installed-name)): Also depend on
5100         $(objpfx)static-reloc.o.
5101         ($(objpfx)r$(start-installed-name)): New.
5102         ($(objpfx)g$(start-installed-name)): Also depend on
5103         $(objpfx)static-reloc.os.
5104         ($(objpfx)gr$(start-installed-name)): New.
5105         * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
5106         in libc.a.
5107         * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
5108         initimage.
5109         * csu/static-reloc.c: New file.
5110         * elf/Makefile (routines): Add dl-reloc-static-pie.
5111         (elide-routines.os): Likewise.
5112         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
5113         (tst-tls1-static-non-pie-no-pie): New.
5114         * elf/dl-reloc-static-pie.c: New file.
5115         * elf/dl-support.c (_dl_get_dl_main_map): New function.
5116         * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
5117         STATIC_PIE_BOOTSTRAP.
5118         * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
5119         * gmon/Makefile (tests): Add tst-gmon-static-pie.
5120         (tests-static): Likewise.
5121         (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
5122         (tst-gmon-static-no-pie): New.
5123         (CFLAGS-tst-gmon-static-pie.c): Likewise.
5124         (CRT-tst-gmon-static-pie): Likewise.
5125         (tst-gmon-static-pie-ENV): Likewise.
5126         (tests-special): Likewise.
5127         ($(objpfx)tst-gmon-static-pie.out): Likewise.
5128         (clean-tst-gmon-static-pie-data): Likewise.
5129         ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
5130         * gmon/tst-gmon-static-pie.c: New file.
5131         * manual/install.texi: Document --enable-static-pie.
5132         * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
5133         (_dl_get_dl_main_map): Likewise.
5134         * sysdeps/i386/configure.ac: Check if linker supports static PIE.
5135         * sysdeps/x86_64/configure.ac: Likewise.
5136         * sysdeps/i386/configure: Regenerated.
5137         * sysdeps/x86_64/configure: Likewise.
5138         * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
5139         (ASFLAGS-.op): Likewise.
5141 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
5143         * io/Makefile (tst-open-tmpfile-ARGS): New variable.
5144         * posix/tst-mmap-offset.c (fname): Use /tmp.
5145         * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
5147 2017-12-15  Steve Ellcey  <sellcey@cavium.com>
5149         * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
5151 2017-12-15  Thomas Schwinge  <thomas@codesourcery.com>
5153         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
5154         errno.
5156 2017-12-15  Joseph Myers  <joseph@codesourcery.com>
5158         * scripts/build-many-glibcs.py (Context.add_all_configs): Use
5159         --with-float=hard for arm-linux-gnueabihf configurations.
5161         [BZ #14121]
5162         * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
5163         (%.mo): Change to $(objpfx)%.mo.  Use $(make-target-directory).
5164         ($(mo-installed)): Use $(objpfx)%.mo.
5165         (realclean): Remove rule.
5167         * po/Makefile (linguas): Remove rule and dependencies.
5168         (linguas.mo): Likewise.
5169         (.PHONY): Do not depend on linguas and linguas.mo.
5170         (podir): Remove variable.
5171         (pofiles): Likewise.
5172         [$(pofiles)] (%.po): Remove rule.
5174         * sysdeps/sparc/sparc32/Makefile
5175         ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
5176         start-of-line whitespace in argument of echo.
5177         * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
5178         with whitespace.  Generate __wrap_.udiv alias.
5179         * sysdeps/sparc/sparc32/rem.S: Regenerated.
5180         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
5181         * sysdeps/sparc/sparc32/udiv.S: Likewise.
5182         * sysdeps/sparc/sparc32/urem.S: Likewise.
5184 2017-12-15  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
5186         * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
5187         for aligned inputs.
5189 2017-12-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5191         * benchtests/bench-strcmp.c: Print output in JSON format.
5193         * elf/dl-tunables.list: Remove redundant SXID_ERASE.
5195 2017-12-14  Florian Weimer  <fweimer@redhat.com>
5197         [BZ #22607]
5198         CVE-2017-1000409
5199         * elf/dl-load.c (_dl_init_paths): Compute number of components in
5200         the expanded path string.
5202 2017-12-14  Florian Weimer  <fweimer@redhat.com>
5204         [BZ #22606]
5205         CVE-2017-1000408
5206         * elf/dl-load.c (system_dirs): Update comment.
5207         (nsystem_dirs_len): Use array_length.
5208         (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
5210 2017-12-14  Florian Weimer  <fweimer@redhat.com>
5212         Simplify compiling most of support/ outside of glibc.
5213         * support/check_addrinfo.c: Include <string.h>.
5214         * support/check_dns_packet.c: Likewise.
5215         * support/check_hostent.c: Likewise.
5216         * support/support_can_chroot.c: Include <support/xunistd.h>.
5217         * support/support_format_addrinfo.c: Include <stdlib.h>
5218         * support/support_format_dns_packet.c: Include <stdbool.h>.
5219         * support/support_format_hostent.c: Include <stdlib.h>.
5220         * support/support_format_netent.c: Likewise.
5221         * support/support_write_string.c: Include <support/xunistd.h>.
5222         * support/xdlfcn.c: Include <stddef.h>.
5224 2017-12-14  H.J. Lu  <hongjiu.lu@intel.com>
5226         * sysdeps/x86_64/fpu/s_cosf.S: Removed.
5228 2017-12-14  Patrick McGehearty  <patrick.mcgehearty@oracle.com>
5229             Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5231         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5232         (sysdeps_routines): Add memset-niagara7.
5233         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
5234         Likewise.
5235         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
5236         file.
5237         * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
5238         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
5239         (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
5240         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
5241         Add niagara7 option.
5242         * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
5243         memset.
5245         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
5246         (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
5247         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
5248         Likewise.
5249         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
5250         New file.
5251         * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
5252         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
5253         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
5254         (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
5255         and __memmove_niagara7.
5256         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
5257         Add niagara7 option.
5258         * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
5259         * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
5260         * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
5261         * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
5262         * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
5264 2017-12-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
5266         * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
5267         * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
5268         * sysdeps/sparc/sparc64/memmove.S: Likewise.
5269         * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
5271         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
5272         * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
5273         _dl_sparc_cap_flags array.
5274         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
5276 2017-12-13  Siddhesh Poyarekar  <siddhesh@sourceware.org>
5278         * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
5279         time whenever possible.
5281 2017-12-12  Carlos O'Donell  <carlos@redhat.com>
5283         * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
5284         (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
5286 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
5288         * soft-fp/fmadf4.c: Move to ....
5289         * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
5290         * soft-fp/fmasf4.c: Move to ....
5291         * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
5292         * soft-fp/fmatf4.c: Move to ....
5293         * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
5294         * sysdeps/ieee754/soft-fp/Makefile: New file.
5295         * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
5296         * sysdeps/arm/preconfigure: Regenerated.
5297         * sysdeps/arm/nofpu/Implies: New file.
5298         * sysdeps/arm/s_fma.c: Remove file.
5299         * sysdeps/arm/s_fmaf.c: Likewise.
5300         * sysdeps/m68k/coldfire/nofpu/Implies: New file.
5301         * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
5302         * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
5303         * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
5304         * sysdeps/microblaze/s_fma.c: Remove file.
5305         * sysdeps/microblaze/s_fmaf.c: Likewise.
5306         * sysdeps/mips/mips32/nofpu/Implies: New file.
5307         * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
5308         * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
5309         * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
5310         * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
5311         * sysdeps/mips/ieee754/s_fma.c: Remove file.
5312         * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
5313         * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
5314         implementation.
5315         * sysdeps/nios2/Implies: Add ieee754/soft-fp.
5316         * sysdeps/nios2/s_fma.c: Remove file.
5317         * sysdeps/nios2/s_fmaf.c: Likewise.
5318         * sysdeps/sh/nofpu/Implies: New file.
5319         * sysdeps/sh/s_fma.c: Remove file.
5320         * sysdeps/sh/s_fmaf.c: Likewise.
5321         * sysdeps/tile/Implies: Add ieee754/soft-fp.
5322         * sysdeps/tile/s_fma.c: Remove file.
5323         * sysdeps/tile/s_fmaf.c: Likewise.
5325 2017-12-12  H.J. Lu  <hongjiu.lu@intel.com>
5327         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5328         Add s_cosf-sse2 and s_cosf-fma.
5329         (CFLAGS-s_cosf-fma.c): New.
5330         * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
5331         * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
5332         * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
5334 2017-12-12  Steve Ellcey  <sellcey@cavium.com>
5336         * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
5338 2017-12-12  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5340         * libio/Makefile (tests): Add tst-bz22415.
5341         (tst-bz22415-ENV): New rule.
5342         (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
5343         (tests-special): Add tst-bz22415-mem.out.
5344         ($(objpfx)tst-bz22415-mem.out): New rule.
5345         * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
5346         in case of a successful seek operation.
5347         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
5348         (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
5349         buffer is required.
5350         * libio/tst-bz22415.c: New test.
5352         * sysdeps/ia64/fpu/libm-test-ulps: Update.
5354 2017-12-12  James Clarke  <jrtc27@jrtc27.com>
5356         * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
5357         __IPC_64 to 0 to avoid IPC_64 being set.
5359 2017-12-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5361         [BZ #22593]
5362         * math/bits/mathcalls.h (nextafter): Remove const.
5363         (nexttoward): Likewise.
5365 2017-12-12  Joseph Myers  <joseph@codesourcery.com>
5367         * configure.ac (--with-fp): Remove configure option.
5368         (with_fp_cond): New variable.
5369         (libc_cv_with_fp): New configure test.  Use this variable instead
5370         of with_fp.
5371         * configure: Regenerated.
5372         * config.make.in (with-fp): Use @libc_cv_with_fp@.
5373         * manual/install.texi (Configuring and compiling): Remove
5374         --without-fp.
5375         * INSTALL: Regenerated.
5376         * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
5377         * sysdeps/mips/preconfigure (with_fp_cond): Define.
5378         * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
5379         * sysdeps/sh/preconfigure (with_fp_cond): Define.
5380         * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
5381         use --without-fp to configure glibc.
5383 2017-12-12  Rical Jasan  <ricaljasan@pacific.net>
5385         * manual/locale.texi (nl_langinfo): Fix a typo.
5387 2017-12-12  Aurelien Jarno  <aurelien@aurel32.net>
5389         [BZ #22588]
5390         * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
5392 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
5394         * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
5395         (CFLAGS-argp-parse.c): Likewise.
5396         (CFLAGS-argp-fmtstream.c): Likewise.
5397         * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
5398         (CPPFLAGS-sha512-crypt.c): Likewise.
5399         (CPPFLAGS-md5-crypt.c): Likewise.
5400         * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
5401         (CFLAGS-stack_chk_fail_local.c): Likewise.
5402         (CFLAGS-backtrace.c): Likewise.
5403         (CFLAGS-sprintf_chk.c): Likewise.
5404         (CFLAGS-snprintf_chk.c): Likewise.
5405         (CFLAGS-vsprintf_chk.c): Likewise.
5406         (CFLAGS-vsnprintf_chk.c): Likewise.
5407         (CFLAGS-asprintf_chk.c): Likewise.
5408         (CFLAGS-vasprintf_chk.c): Likewise.
5409         (CFLAGS-obprintf_chk.c): Likewise.
5410         (CFLAGS-dprintf_chk.c): Likewise.
5411         (CFLAGS-vdprintf_chk.c): Likewise.
5412         (CFLAGS-printf_chk.c): Likewise.
5413         (CFLAGS-fprintf_chk.c): Likewise.
5414         (CFLAGS-vprintf_chk.c): Likewise.
5415         (CFLAGS-vfprintf_chk.c): Likewise.
5416         (CFLAGS-gets_chk.c): Likewise.
5417         (CFLAGS-fgets_chk.c): Likewise.
5418         (CFLAGS-fgets_u_chk.c): Likewise.
5419         (CFLAGS-fread_chk.c): Likewise.
5420         (CFLAGS-fread_u_chk.c): Likewise.
5421         (CFLAGS-swprintf_chk.c): Likewise.
5422         (CFLAGS-vswprintf_chk.c): Likewise.
5423         (CFLAGS-wprintf_chk.c): Likewise.
5424         (CFLAGS-fwprintf_chk.c): Likewise.
5425         (CFLAGS-vwprintf_chk.c): Likewise.
5426         (CFLAGS-vfwprintf_chk.c): Likewise.
5427         (CFLAGS-fgetws_chk.c): Likewise.
5428         (CFLAGS-fgetws_u_chk.c): Likewise.
5429         (CFLAGS-read_chk.c): Likewise.
5430         (CFLAGS-pread_chk.c): Likewise.
5431         (CFLAGS-pread64_chk.c): Likewise.
5432         (CFLAGS-recv_chk.c): Likewise.
5433         (CFLAGS-recvfrom_chk.c): Likewise.
5434         (CFLAGS-tst-longjmp_chk.c): Likewise.
5435         (CPPFLAGS-tst-longjmp_chk.c): Likewise.
5436         (CFLAGS-tst-longjmp_chk2.c): Likewise.
5437         (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
5438         (CFLAGS-tst-longjmp_chk3.c): Likewise.
5439         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
5440         (CFLAGS-tst-chk1.c): Likewise.
5441         (CFLAGS-tst-chk2.c): Likewise.
5442         (CFLAGS-tst-chk3.c): Likewise.
5443         (CFLAGS-tst-chk4.cc): Likewise.
5444         (CFLAGS-tst-chk5.cc): Likewise.
5445         (CFLAGS-tst-chk6.cc): Likewise.
5446         (CFLAGS-tst-lfschk1.c): Likewise.
5447         (CFLAGS-tst-lfschk2.c): Likewise.
5448         (CFLAGS-tst-lfschk3.c): Likewise.
5449         (CFLAGS-tst-lfschk4.cc): Likewise.
5450         (CFLAGS-tst-lfschk5.cc): Likewise.
5451         (CFLAGS-tst-lfschk6.cc): Likewise.
5452         (CFLAGS-tst-ssp-1.c): Likewise.
5453         * dirent/Makefile (CFLAGS-scandir.c): Likewise.
5454         (CFLAGS-scandir64.c): Likewise.
5455         (CFLAGS-scandir-tail.c): Likewise.
5456         (CFLAGS-scandir64-tail.c): Likewise.
5457         * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
5458         (CFLAGS-dl-tunables.c): Likewise.
5459         (CFLAGS-dl-runtime.c): Likewise.
5460         (CFLAGS-dl-lookup.c): Likewise.
5461         (CFLAGS-dl-iterate-phdr.c): Likewise.
5462         (CFLAGS-vismain.c): Likewise.
5463         (CFLAGS-tst-linkall-static.c): Likewise.
5464         (CFLAGS-tst-linkall-static.c): Likewise.
5465         (CPPFLAGS-dl-load.c): Likewise.
5466         (CFLAGS-ldconfig.c): Likewise.
5467         (CFLAGS-dl-cache.c): Likewise.
5468         (CFLAGS-cache.c): Likewise.
5469         (CFLAGS-rtld.c): Likewise.
5470         (CFLAGS-multiload.c): Likewise.
5471         (CFLAGS-filtmod1.c): Likewise.
5472         (CFLAGS-tst-align.c): Likewise.
5473         (CFLAGS-tst-align2.c): Likewise.
5474         (CFLAGS-tst-alignmod.c): Likewise.
5475         (CFLAGS-tst-alignmod2.c): Likewise.
5476         (CPPFLAGS-tst-execstack.c): Likewise.
5477         (CFLAGS-tst-ptrguard1-static.c): Likewise.
5478         (CFLAGS-tst-latepthreadmod.c): Likewise.
5479         * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
5480         (CFLAGS-getgrnam_r.c): Likewise.
5481         (CFLAGS-getgrent_r.c): Likewise.
5482         (CFLAGS-getgrent.c): Likewise.
5483         (CFLAGS-fgetgrent.c): Likewise.
5484         (CFLAGS-fgetgrent_r.c): Likewise.
5485         (CFLAGS-putgrent.c): Likewise.
5486         (CFLAGS-initgroups.c): Likewise.
5487         (CFLAGS-getgrgid.c): Likewise.
5488         * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
5489         (CFLAGS-getsgent.c): Likewise.
5490         (CFLAGS-fgetsgent.c): Likewise.
5491         (CFLAGS-fgetsgent_r.c): Likewise.
5492         (CFLAGS-putsgent.c): Likewise.
5493         (CFLAGS-getsgnam.c): Likewise.
5494         (CFLAGS-getsgnam_r.c): Likewise.
5495         * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
5496         (CFLAGS-iconv_charmap.c): Likewise.
5497         (CFLAGS-dummy-repertoire.c): Likewise.
5498         (CFLAGS-charmap.c): Likewise.
5499         (CFLAGS-linereader.c): Likewise.
5500         (CFLAGS-simple-hash.c): Likewise.
5501         (CFLAGS-gconv_conf.c): Likewise.
5502         (CFLAGS-iconvconfig.c): Likewise.
5503         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
5504         (CFLAGS-gethstbyad.c): Likewise.
5505         (CFLAGS-gethstbynm_r.c): Likewise.
5506         (CFLAGS-gethstbynm.c): Likewise.
5507         (CFLAGS-gethstbynm2_r.c): Likewise.
5508         (CFLAGS-gethstbynm2.c): Likewise.
5509         (CFLAGS-gethstent_r.c): Likewise.
5510         (CFLAGS-gethstent.c): Likewise.
5511         (CFLAGS-rcmd.c): Likewise.
5512         (CFLAGS-getnetbynm_r.c): Likewise.
5513         (CFLAGS-getnetbynm.c): Likewise.
5514         (CFLAGS-getnetbyad_r.c): Likewise.
5515         (CFLAGS-getnetbyad.c): Likewise.
5516         (CFLAGS-getnetent_r.c): Likewise.
5517         (CFLAGS-getnetent.c): Likewise.
5518         (CFLAGS-getaliasent_r.c): Likewise.
5519         (CFLAGS-getaliasent.c): Likewise.
5520         (CFLAGS-getrpcent_r.c): Likewise.
5521         (CFLAGS-getrpcent.c): Likewise.
5522         (CFLAGS-getservent_r.c): Likewise.
5523         (CFLAGS-getservent.c): Likewise.
5524         (CFLAGS-getprtent_r.c): Likewise.
5525         (CFLAGS-getprtent.c): Likewise.
5526         (CFLAGS-either_ntoh.c): Likewise.
5527         (CFLAGS-either_hton.c): Likewise.
5528         (CFLAGS-getnetgrent.c): Likewise.
5529         (CFLAGS-getnetgrent_r.c): Likewise.
5530         (CFLAGS-tst-checks-posix.c): Likewise.
5531         (CFLAGS-tst-sockaddr.c): Likewise.
5532         * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
5533         (CFLAGS-tst-translit.c): Likewise.
5534         (CFLAGS-tst-gettext2.c): Likewise.
5535         (CFLAGS-tst-codeset.c): Likewise.
5536         (CFLAGS-tst-gettext3.c): Likewise.
5537         (CFLAGS-tst-gettext4.c): Likewise.
5538         (CFLAGS-tst-gettext5.c): Likewise.
5539         (CFLAGS-tst-gettext6.c): Likewise.
5540         * io/Makefile (CFLAGS-open.c): Likewise.
5541         (CFLAGS-open64.c): Likewise.
5542         (CFLAGS-creat.c): Likewise.
5543         (CFLAGS-creat64.c): Likewise.
5544         (CFLAGS-fcntl.c): Likewise.
5545         (CFLAGS-poll.c): Likewise.
5546         (CFLAGS-ppoll.c): Likewise.
5547         (CFLAGS-lockf.c): Likewise.
5548         (CFLAGS-statfs.c): Likewise.
5549         (CFLAGS-fstatfs.c): Likewise.
5550         (CFLAGS-statvfs.c): Likewise.
5551         (CFLAGS-fstatvfs.c): Likewise.
5552         (CFLAGS-fts.c): Likewise.
5553         (CFLAGS-fts64.c): Likewise.
5554         (CFLAGS-ftw.c): Likewise.
5555         (CFLAGS-ftw64.c): Likewise.
5556         (CFLAGS-lockf.c): Likewise.
5557         (CFLAGS-posix_fallocate.c): Likewise.
5558         (CFLAGS-posix_fallocate64.c): Likewise.
5559         (CFLAGS-fallocate.c): Likewise.
5560         (CFLAGS-fallocate64.c): Likewise.
5561         (CFLAGS-read.c): Likewise.
5562         (CFLAGS-write.c): Likewise.
5563         (CFLAGS-test-stat.c): Likewise.
5564         (CFLAGS-test-lfs.c): Likewise.
5565         * libio/Makefile (CFLAGS-fileops.c): Likewise.
5566         (CFLAGS-fputc.c): Likewise.
5567         (CFLAGS-fputwc.c): Likewise.
5568         (CFLAGS-freopen64.c): Likewise.
5569         (CFLAGS-freopen.c): Likewise.
5570         (CFLAGS-fseek.c): Likewise.
5571         (CFLAGS-fseeko64.c): Likewise.
5572         (CFLAGS-fseeko.c): Likewise.
5573         (CFLAGS-ftello64.c): Likewise.
5574         (CFLAGS-ftello.c): Likewise.
5575         (CFLAGS-fwide.c): Likewise.
5576         (CFLAGS-genops.c): Likewise.
5577         (CFLAGS-getc.c): Likewise.
5578         (CFLAGS-getchar.c): Likewise.
5579         (CFLAGS-getwc.c): Likewise.
5580         (CFLAGS-getwchar.c): Likewise.
5581         (CFLAGS-iofclose.c): Likewise.
5582         (CFLAGS-iofflush.c): Likewise.
5583         (CFLAGS-iofgetpos64.c): Likewise.
5584         (CFLAGS-iofgetpos.c): Likewise.
5585         (CFLAGS-iofgets.c): Likewise.
5586         (CFLAGS-iofgetws.c): Likewise.
5587         (CFLAGS-iofputs.c): Likewise.
5588         (CFLAGS-iofputws.c): Likewise.
5589         (CFLAGS-iofread.c): Likewise.
5590         (CFLAGS-iofsetpos64.c): Likewise.
5591         (CFLAGS-iofsetpos.c): Likewise.
5592         (CFLAGS-ioftell.c): Likewise.
5593         (CFLAGS-iofwrite.c): Likewise.
5594         (CFLAGS-iogetdelim.c): Likewise.
5595         (CFLAGS-iogetline.c): Likewise.
5596         (CFLAGS-iogets.c): Likewise.
5597         (CFLAGS-iogetwline.c): Likewise.
5598         (CFLAGS-ioputs.c): Likewise.
5599         (CFLAGS-ioseekoff.c): Likewise.
5600         (CFLAGS-ioseekpos.c): Likewise.
5601         (CFLAGS-iosetbuffer.c): Likewise.
5602         (CFLAGS-iosetvbuf.c): Likewise.
5603         (CFLAGS-ioungetc.c): Likewise.
5604         (CFLAGS-ioungetwc.c): Likewise.
5605         (CFLAGS-oldfileops.c): Likewise.
5606         (CFLAGS-oldiofclose.c): Likewise.
5607         (CFLAGS-oldiofgetpos64.c): Likewise.
5608         (CFLAGS-oldiofgetpos.c): Likewise.
5609         (CFLAGS-oldiofsetpos64.c): Likewise.
5610         (CFLAGS-oldiofsetpos.c): Likewise.
5611         (CFLAGS-peekc.c): Likewise.
5612         (CFLAGS-putc.c): Likewise.
5613         (CFLAGS-putchar.c): Likewise.
5614         (CFLAGS-putwc.c): Likewise.
5615         (CFLAGS-putwchar.c): Likewise.
5616         (CFLAGS-rewind.c): Likewise.
5617         (CFLAGS-wfileops.c): Likewise.
5618         (CFLAGS-wgenops.c): Likewise.
5619         (CFLAGS-oldiofopen.c): Likewise.
5620         (CFLAGS-iofopen.c): Likewise.
5621         (CFLAGS-iofopen64.c): Likewise.
5622         (CFLAGS-oldtmpfile.c): Likewise.
5623         (CFLAGS-tst_putwc.c): Likewise.
5624         * locale/Makefile (CFLAGS-md5.c): Likewise.
5625         (CFLAGS-charmap.c): Likewise.
5626         (CFLAGS-locfile.c): Likewise.
5627         (CFLAGS-charmap-dir.c): Likewise.
5628         * login/Makefile (CFLAGS-grantpt.c): Likewise.
5629         (CFLAGS-getpt.c): Likewise.
5630         (CFLAGS-pt_chown.c): Likewise.
5631         * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
5632         (CFLAGS-obstack.c): Likewise.
5633         * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
5634         (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
5635         (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
5636         (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
5637         (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
5638         (CFLAGS-test-tgmath.c): Likewise.
5639         (CFLAGS-test-tgmath2.c): Likewise.
5640         (CFLAGS-test-tgmath-ret.c): Likewise.
5641         (CFLAGS-test-powl.c): Likewise.
5642         (CFLAGS-test-snan.c): Likewise.
5643         (CFLAGS-test-signgam-finite.c): Likewise.
5644         (CFLAGS-test-signgam-finite-c99.c): Likewise.
5645         (CFLAGS-test-signgam-finite-c11.c): Likewise.
5646         (CFLAGS-test-signgam-uchar.c): Likewise.
5647         (CFLAGS-test-signgam-uchar-init.c): Likewise.
5648         (CFLAGS-test-signgam-uchar-static.c): Likewise.
5649         (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
5650         (CFLAGS-test-signgam-uint.c): Likewise.
5651         (CFLAGS-test-signgam-uint-init.c): Likewise.
5652         (CFLAGS-test-signgam-uint-static.c): Likewise.
5653         (CFLAGS-test-signgam-uint-init-static.c): Likewise.
5654         (CFLAGS-test-signgam-ullong.c): Likewise.
5655         (CFLAGS-test-signgam-ullong-init.c): Likewise.
5656         (CFLAGS-test-signgam-ullong-static.c): Likewise.
5657         (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
5658         (CFLAGS-test-math-cxx11.cc): Likewise.
5659         (CFLAGS-test-math-isinff.cc): Likewise.
5660         (CFLAGS-test-math-iszero.cc): Likewise.
5661         (CFLAGS-test-math-issignaling.cc): Likewise.
5662         (CFLAGS-test-math-iscanonical.cc): Likewise.
5663         (CFLAGS-test-iszero-excess-precision.c): Likewise.
5664         (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
5665         (CFLAGS-test-flt-eval-method.c): Likewise.
5666         (CFLAGS-test-fe-snans-always-signal.c): Likewise.
5667         (CFLAGS-test-finite-macros.c): Likewise.
5668         * misc/Makefile (CFLAGS-select.c): Likewise.
5669         (CFLAGS-tsearch.c): Likewise.
5670         (CFLAGS-lsearch.c): Likewise.
5671         (CFLAGS-pselect.c): Likewise.
5672         (CFLAGS-readv.c): Likewise.
5673         (CFLAGS-writev.c): Likewise.
5674         (CFLAGS-preadv.c): Likewise.
5675         (CFLAGS-preadv64.c): Likewise.
5676         (CFLAGS-pwritev.c): Likewise.
5677         (CFLAGS-pwritev64.c): Likewise.
5678         (CFLAGS-preadv2.c): Likewise.
5679         (CFLAGS-preadv64v2.c): Likewise.
5680         (CFLAGS-pwritev2.c): Likewise.
5681         (CFLAGS-pwritev64v2.c): Likewise.
5682         (CFLAGS-usleep.c): Likewise.
5683         (CFLAGS-syslog.c): Likewise.
5684         (CFLAGS-error.c): Likewise.
5685         (CFLAGS-getpass.c): Likewise.
5686         (CFLAGS-mkstemp.c): Likewise.
5687         (CFLAGS-mkstemp64.c): Likewise.
5688         (CFLAGS-getsysstats.c): Likewise.
5689         (CFLAGS-getusershell.c): Likewise.
5690         (CFLAGS-err.c): Likewise.
5691         (CFLAGS-tst-tsearch.c): Likewise.
5692         (CFLAGS-msync.c): Likewise.
5693         (CFLAGS-fdatasync.c): Likewise.
5694         (CFLAGS-fsync.c): Likewise.
5695         * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
5696         (CFLAGS-unwind.c): Likewise.
5697         (CFLAGS-unwind-forcedunwind.c): Likewise.
5698         (CFLAGS-pthread_cancel.c): Likewise.
5699         (CFLAGS-pthread_setcancelstate.c): Likewise.
5700         (CFLAGS-pthread_setcanceltype.c): Likewise.
5701         (CFLAGS-cancellation.c): Likewise.
5702         (CFLAGS-libc-cancellation.c): Likewise.
5703         (CFLAGS-pthread_exit.c): Likewise.
5704         (CFLAGS-forward.c): Likewise.
5705         (CFLAGS-pthread_testcancel.c): Likewise.
5706         (CFLAGS-pthread_join.c): Likewise.
5707         (CFLAGS-pthread_timedjoin.c): Likewise.
5708         (CFLAGS-pthread_once.c): Likewise.
5709         (CFLAGS-pthread_cond_wait.c): Likewise.
5710         (CFLAGS-sem_wait.c): Likewise.
5711         (CFLAGS-sem_timedwait.c): Likewise.
5712         (CFLAGS-fcntl.c): Likewise.
5713         (CFLAGS-lockf.c): Likewise.
5714         (CFLAGS-pread.c): Likewise.
5715         (CFLAGS-pread64.c): Likewise.
5716         (CFLAGS-pwrite.c): Likewise.
5717         (CFLAGS-pwrite64.c): Likewise.
5718         (CFLAGS-wait.c): Likewise.
5719         (CFLAGS-waitpid.c): Likewise.
5720         (CFLAGS-sigwait.c): Likewise.
5721         (CFLAGS-msgrcv.c): Likewise.
5722         (CFLAGS-msgsnd.c): Likewise.
5723         (CFLAGS-tcdrain.c): Likewise.
5724         (CFLAGS-open.c): Likewise.
5725         (CFLAGS-open64.c): Likewise.
5726         (CFLAGS-pause.c): Likewise.
5727         (CFLAGS-recv.c): Likewise.
5728         (CFLAGS-send.c): Likewise.
5729         (CFLAGS-accept.c): Likewise.
5730         (CFLAGS-sendto.c): Likewise.
5731         (CFLAGS-connect.c): Likewise.
5732         (CFLAGS-recvfrom.c): Likewise.
5733         (CFLAGS-recvmsg.c): Likewise.
5734         (CFLAGS-sendmsg.c): Likewise.
5735         (CFLAGS-close.c): Likewise.
5736         (CFLAGS-read.c): Likewise.
5737         (CFLAGS-write.c): Likewise.
5738         (CFLAGS-nanosleep.c): Likewise.
5739         (CFLAGS-sigsuspend.c): Likewise.
5740         (CFLAGS-msync.c): Likewise.
5741         (CFLAGS-fdatasync.c): Likewise.
5742         (CFLAGS-fsync.c): Likewise.
5743         (CFLAGS-pt-system.c): Likewise.
5744         (CFLAGS-tst-cleanup2.c): Likewise.
5745         (CFLAGS-tst-cleanupx2.c): Likewise.
5746         (CFLAGS-flockfile.c): Likewise.
5747         (CFLAGS-ftrylockfile.c): Likewise.
5748         (CFLAGS-funlockfile.c): Likewise.
5749         (CFLAGS-tst-initializers1.c): Likewise.
5750         (CFLAGS-tst-initializers1-c89.c): Likewise.
5751         (CFLAGS-tst-initializers1-c99.c): Likewise.
5752         (CFLAGS-tst-initializers1-c11.c): Likewise.
5753         (CFLAGS-tst-initializers1-gnu89.c): Likewise.
5754         (CFLAGS-tst-initializers1-gnu99.c): Likewise.
5755         (CFLAGS-tst-initializers1-gnu11.c): Likewise.
5756         * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
5757         (CFLAGS-nscd_getgr_r.c): Likewise.
5758         (CFLAGS-nscd_gethst_r.c): Likewise.
5759         (CFLAGS-nscd_getai.c): Likewise.
5760         (CFLAGS-nscd_initgroups.c): Likewise.
5761         * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
5762         (CFLAGS-pause.c): Likewise.
5763         (CFLAGS-pread.c): Likewise.
5764         (CFLAGS-pread64.c): Likewise.
5765         (CFLAGS-pwrite.c): Likewise.
5766         (CFLAGS-pwrite64.c): Likewise.
5767         (CFLAGS-sleep.c): Likewise.
5768         (CFLAGS-wait.c): Likewise.
5769         (CFLAGS-waitid.c): Likewise.
5770         (CFLAGS-waitpid.c): Likewise.
5771         (CFLAGS-getopt.c): Likewise.
5772         (CFLAGS-wordexp.c): Likewise.
5773         (CFLAGS-sysconf.c): Likewise.
5774         (CFLAGS-pathconf.c): Likewise.
5775         (CFLAGS-fpathconf.c): Likewise.
5776         (CFLAGS-spawn.c): Likewise.
5777         (CFLAGS-spawnp.c): Likewise.
5778         (CFLAGS-spawni.c): Likewise.
5779         (CFLAGS-glob.c): Likewise.
5780         (CFLAGS-glob64.c): Likewise.
5781         (CFLAGS-getconf.c): Likewise.
5782         (CFLAGS-nanosleep.c): Likewise.
5783         * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
5784         (CFLAGS-getpwent.c): Likewise.
5785         (CFLAGS-getpw.c): Likewise.
5786         (CFLAGS-fgetpwent_r.c): Likewise.
5787         * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
5788         * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
5789         (CFLAGS-mq_timedreceive.c): Likewise.
5790         (CFLAGS-mq_timedsend.c): Likewise.
5791         (CFLAGS-clock_nanosleep.c): Likewise.
5792         (CFLAGS-librt-cancellation.c): Likewise.
5793         * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
5794         (CFLAGS-getspent.c): Likewise.
5795         (CFLAGS-fgetspent.c): Likewise.
5796         (CFLAGS-fgetspent_r.c): Likewise.
5797         (CFLAGS-putspent.c): Likewise.
5798         (CFLAGS-getspnam.c): Likewise.
5799         (CFLAGS-getspnam_r.c): Likewise.
5800         * signal/Makefile (CFLAGS-sigpause.c): Likewise.
5801         (CFLAGS-sigsuspend.c): Likewise.
5802         (CFLAGS-sigtimedwait.c): Likewise.
5803         (CFLAGS-sigwait.c): Likewise.
5804         (CFLAGS-sigwaitinfo.c): Likewise.
5805         (CFLAGS-sigreturn.c): Likewise.
5806         * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
5807         (CFLAGS-vfwprintf.c): Likewise.
5808         (CFLAGS-tmpfile.c): Likewise.
5809         (CFLAGS-tmpfile64.c): Likewise.
5810         (CFLAGS-tempname.c): Likewise.
5811         (CFLAGS-psignal.c): Likewise.
5812         (CFLAGS-vprintf.c): Likewise.
5813         (CFLAGS-cuserid.c): Likewise.
5814         (CFLAGS-errlist.c): Likewise.
5815         (CFLAGS-siglist.c): Likewise.
5816         (CFLAGS-scanf15.c): Likewise.
5817         (CFLAGS-scanf17.c): Likewise.
5818         * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
5819         (CFLAGS-msort.c): Likewise.
5820         (CFLAGS-qsort.c): Likewise.
5821         (CFLAGS-system.c): Likewise.
5822         (CFLAGS-fmtmsg.c): Likewise.
5823         (CFLAGS-strfmon.c): Likewise.
5824         (CFLAGS-strfmon_l.c): Likewise.
5825         (CFLAGS-strfromd.c): Likewise.
5826         (CFLAGS-strfromf.c): Likewise.
5827         (CFLAGS-strfroml.c): Likewise.
5828         (CFLAGS-tst-bsearch.c): Likewise.
5829         (CFLAGS-tst-qsort.c): Likewise.
5830         (CFLAGS-tst-makecontext2.c): Likewise.
5831         * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
5832         (CFLAGS-xnlm_prot.c): Likewise.
5833         (CFLAGS-xrstat.c): Likewise.
5834         (CFLAGS-xyppasswd.c): Likewise.
5835         (CFLAGS-xklm_prot.c): Likewise.
5836         (CFLAGS-xrex.c): Likewise.
5837         (CFLAGS-xsm_inter.c): Likewise.
5838         (CFLAGS-xmount.c): Likewise.
5839         (CFLAGS-xrusers.c): Likewise.
5840         (CFLAGS-xspray.c): Likewise.
5841         (CFLAGS-xnfs_prot.c): Likewise.
5842         (CFLAGS-xrquota.c): Likewise.
5843         (CFLAGS-xkey_prot.c): Likewise.
5844         (CFLAGS-auth_unix.c): Likewise.
5845         (CFLAGS-key_call.c): Likewise.
5846         (CFLAGS-pmap_rmt.c): Likewise.
5847         (CFLAGS-clnt_perr.c): Likewise.
5848         (CFLAGS-openchild.c): Likewise.
5849         * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
5850         (CFLAGS-msgsnd.c): Likewise.
5851         * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
5852         * time/Makefile (CFLAGS-tzfile.c): Likewise.
5853         (CFLAGS-tzset.c): Likewise.
5854         (CFLAGS-getdate.c): Likewise.
5855         (CFLAGS-test_time.c): Likewise.
5856         (CPPFLAGS-tst-tzname.c): Likewise.
5857         * timezone/Makefile (CFLAGS-zdump.c): Likewise.
5858         (CFLAGS-zic.c): Likewise.
5859         * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
5860         (CFLAGS-wcswidth.c): Likewise.
5861         (CFLAGS-wcstol.c): Likewise.
5862         (CFLAGS-wcstoul.c): Likewise.
5863         (CFLAGS-wcstoll.c): Likewise.
5864         (CFLAGS-wcstoull.c): Likewise.
5865         (CFLAGS-wcstod.c): Likewise.
5866         (CFLAGS-wcstold.c): Likewise.
5867         (CFLAGS-wcstof128.c): Likewise.
5868         (CFLAGS-wcstof.c): Likewise.
5869         (CFLAGS-wcstol_l.c): Likewise.
5870         (CFLAGS-wcstoul_l.c): Likewise.
5871         (CFLAGS-wcstoll_l.c): Likewise.
5872         (CFLAGS-wcstoull_l.c): Likewise.
5873         (CFLAGS-wcstod_l.c): Likewise.
5874         (CFLAGS-wcstold_l.c): Likewise.
5875         (CFLAGS-wcstof128_l.c): Likewise.
5876         (CFLAGS-wcstof_l.c): Likewise.
5877         (CPPFLAGS-tst-wchar-h.c): Likewise.
5878         (CPPFLAGS-wcstold_l.c): Likewise.
5880 2017-12-11  Paul A. Clarke  <pc@us.ibm.com>
5882         * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
5884 2017-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5885             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5887         * manual/tunables.texi (Hardware Capability Tunables): Document
5888         glibc.tune.cached_memopt.
5889         * sysdeps/powerpc/cpu-features.c: New file.
5890         * sysdeps/powerpc/cpu-features.h: New file.
5891         * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
5892         _dl_powerpc_cpu_features.
5893         * sysdeps/powerpc/dl-tunables.list: New file.
5894         * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
5895         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
5896         (INIT_ARCH): Initialize use_aligned_memopt.
5897         * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
5898         IS_IN(rtld))]: Restrict dl_platform_init availability and
5899         initialize CPU features used by tunables.
5900         * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
5901         Add memcpy-power8-cached.
5902         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
5903         __memcpy_power8_cached.
5904         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
5905         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
5906         New file.
5908 2017-12-11  H.J. Lu  <hongjiu.lu@intel.com>
5910         * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
5911         (CFLAGS-noinl-tester.c): Likewise.
5912         (CFLAGS-tst-strlen.c): Likewise.
5913         (CFLAGS-stratcliff.c): Likewise.
5914         (CFLAGS-test-ffs.c): Likewise.
5915         (CFLAGS-tst-inlcall.c): Likewise.
5916         (CFLAGS-tst-xbzero-opt.c): Likewise.
5917         (CFLAGS-memcpy.c): Likewise.
5918         (CFLAGS-wordcopy.c): Likewise.
5920 2017-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5922         * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
5923         Store r15 on stack and add cfi rule.
5924         * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
5925         Likewise.
5927 2017-12-10  Aurelien Jarno  <aurelien@aurel32.net>
5929         [BZ #22577]
5930         * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
5931         call.
5933 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5935         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5936         Add s_sinf-sse2 and s_sinf-fma.
5937         (CFLAGS-s_sinf-fma.c): New.
5938         * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
5939         * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
5940         * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
5942 2017-12-07  H.J. Lu  <hongjiu.lu@intel.com>
5944         * sysdeps/x86_64/fpu/s_sinf.S: Removed.
5946 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
5948         [BZ #22568]
5949         * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
5950         part of result to imaginary part of argument if it is zero and the
5951         real part of the argument is not finite.
5952         * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
5953         of result to real part of argument if it is zero and the imaginary
5954         part of the argument is not finite.
5956 2017-12-07  Mike FABIAN  <mfabian@redhat.com>
5958         [BZ #22524]
5959         * localedata/Makefile: Add lt_LT.UTF-8 to test-input
5960         and to the list of locales to be built for testing.
5961         * localedata/lt_LT.UTF-8.in: New file for testing the collation.
5962         * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
5963         and build the collation rules upon that.
5965 2017-12-07  Joseph Myers  <joseph@codesourcery.com>
5967         * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
5968         * manual/math.texi (Mathematics): Document support for _Float32.
5969         * math/Makefile (test-types): Add float32.
5970         * math/Versions (GLIBC_2.27): Add _Float32 functions.
5971         * stdlib/Versions (GLIBC_2.27): Likewise.
5972         * wcsmbs/Versions (GLIBC_2.27): Likewise.
5973         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
5974         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
5975         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5976         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
5977         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5978         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
5979         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5980         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
5981         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5982         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
5983         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5984         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
5985         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5986         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
5987         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5988         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
5989         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5990         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
5991         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5992         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
5993         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
5994         Likewise.
5995         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
5996         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5997         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5998         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5999         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6001         Likewise.
6002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6003         Likewise.
6004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6005         Likewise.
6006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6007         Likewise.
6009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6010         Likewise.
6011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6012         Likewise.
6013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6014         Likewise.
6015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6016         Likewise.
6017         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6018         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6019         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6020         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6021         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6022         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6023         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6024         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6025         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6026         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6027         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6028         Likewise.
6029         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6030         Likewise.
6031         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6032         Likewise.
6033         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6034         Likewise.
6035         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6036         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6037         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6038         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6039         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6040         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6041         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6042         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6044 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
6046         * stdlib/strtof.c: Include <bits/floatn.h>
6047         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
6048         and later undefine as macro.  Define as weak alias if
6049         [!USE_WIDE_CHAR].
6050         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
6051         and later undefine as macro.  Define as weak alias if
6052         [USE_WIDE_CHAR].
6053         * stdlib/strtof_l.c: Include <bits/floatn.h>
6054         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
6055         and later undefine as macro.  Define as weak alias if
6056         [!USE_WIDE_CHAR].
6057         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
6058         and later undefine as macro.  Define as weak alias if
6059         [USE_WIDE_CHAR].
6061         * stdlib/strfromf.c: Include <bits/floatn.h>.
6062         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
6063         and later undefine as macro and define as weak alias.
6065         * math/test-float32.h: New file.
6067         * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
6068         [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
6069         (libm_alias_float_other_r): Create f32 alias.
6070         (libm_alias_float_r): Use semicolon before call to
6071         libm_alias_float_other_r.
6073         * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
6074         second argument to libm_alias_float_other.
6075         * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
6076         second argument to libm_alias_float_other.
6077         * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
6078         argument to libm_alias_float_other.
6080         [BZ #22561]
6081         * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
6082         real part of result for argument 0 + i * NaN.
6083         * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
6084         results for tests of 0 + i * NaN.
6086 2017-12-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6088         * sysdeps/alpha/fpu/libm-test-ulps: Update.
6090 2017-12-06  David S. Miller  <davem@davemloft.net>
6092         * sysdeps/sparc/fpu/libm-test-ulps: Update
6093         exp_{downward,towardzero,upward} ulps.
6095 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
6097         * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
6098         variables static.
6100         * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
6101         (Y0_2D): Likewise.
6102         * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
6103         (Y0_2D): Likewise.
6104         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
6105         (Y0_2D): Likewise.
6106         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
6107         (Y0_2D): Likewise.
6109 2017-12-06  Mike FABIAN  <mfabian@redhat.com>
6111         [BZ #22515]
6112         * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
6113         and to the list of locales to be built for testing.
6114         * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
6115         * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
6116         and build the collation rules upon that.
6118 2017-12-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6120         * NEWS: Add sinf to list of optimized functions.
6122 2017-12-06  Joseph Myers  <joseph@codesourcery.com>
6124         * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
6125         (__HAVE_FLOAT32X): Likewise.
6126         * manual/math.texi (Mathematics): Document support for _Float64
6127         and _Float32x.
6128         * math/Makefile (test-types): Add float64 and float32x.
6129         * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
6130         functions.
6131         * stdlib/Versions (GLIBC_2.27): Likewise.
6132         * wcsmbs/Versions (GLIBC_2.27): Likewise.
6133         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
6134         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
6135         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6136         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
6137         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6138         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
6139         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6140         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
6141         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6142         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
6143         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6144         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
6145         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6146         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
6147         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6148         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
6149         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6150         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
6151         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6152         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
6153         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6154         Likewise.
6155         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
6156         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6157         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6158         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6159         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
6160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6161         Likewise.
6162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
6163         Likewise.
6164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6165         Likewise.
6166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
6167         Likewise.
6168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6169         Likewise.
6170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6171         Likewise.
6172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
6173         Likewise.
6174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
6175         Likewise.
6176         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6177         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
6178         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6179         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
6180         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6181         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
6182         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6183         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
6184         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6185         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
6186         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
6187         Likewise.
6188         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
6189         Likewise.
6190         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
6191         Likewise.
6192         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
6193         Likewise.
6194         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
6195         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
6196         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6197         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
6198         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6199         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
6200         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6201         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
6203 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6205         * bits/floatn-common.h: Include <bits/long-double.h>.
6206         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6207         && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
6208         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6209         && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
6210         [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
6211         && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
6212         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6213         (__builtin_huge_valf64): Use __builtin_huge_vall.
6214         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6215         (__builtin_inff64): Use __builtin_infl.
6216         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6217         (__builtin_nanf64): Use __builtin_nanl.
6218         [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
6219         (__builtin_nansf64): Use __builtin_nansl.
6221 2017-12-05  Rogerio A. Cardoso  <rcardoso@linux.vnet.ibm.com>
6222             Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
6223             Carlos O'Donnell <carlos@redhat.com>
6225         * elf/dl-tunables.list: Add elision parameters.
6226         * manual/tunables.texi: Add entries about elision tunable.
6227         * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
6228         Add callback functions to dynamically enable/disable elision.
6229         Add multiple callbacks functions to set elision parameters.
6230         Deleted __libc_enable_secure check.
6231         * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
6232         * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
6233         * configure: Regenerated.
6234         * configure.ac: Option enable_lock_elision was deleted.
6235         * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
6236         * config.make.in: Remove references to enable_lock_elision.
6237         * manual/install.texi: Elision configure option was removed.
6238         * INSTALL: Regenerated to remove enable_lock_elision.
6239         * nptl/Makefile:
6240         Disable elision so it can verify error case for destroying a mutex.
6241         * sysdeps/powerpc/nptl/elide.h:
6242         Cleanup ENABLE_LOCK_ELISION check.
6243         Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
6244         * sysdeps/s390/configure: Regenerated.
6245         * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
6246         * nptl/tst-mutex8.c:
6247         Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
6248         * sysdeps/powerpc/powerpc32/sysdep.h:
6249         Deleted all ENABLE_LOCK_ELISION checks.
6250         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
6251         * sysdeps/powerpc/sysdep.h: Likewise.
6252         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
6253         * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
6254         * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
6255         * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
6256         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
6257         * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
6258         enable-lock-elision.
6260 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6262         * stdlib/strtod.c: Include <bits/floatn.h>.
6263         (BUILD_DOUBLE): New macro.
6264         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6265         (strtof64): Define and later undefine as macro.  Define as weak
6266         alias if [!USE_WIDE_CHAR].
6267         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6268         (wcstof64): Define and later undefine as macro.  Define as weak
6269         alias if [USE_WIDE_CHAR].
6270         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6271         (strtof32x): Define and later undefine as macro.  Define as weak
6272         alias if [!USE_WIDE_CHAR].
6273         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6274         (wcstof32x): Define and later undefine as macro.  Define as weak
6275         alias if [USE_WIDE_CHAR].
6276         * stdlib/strtod_l.c: Include <bits/floatn.h>.
6277         (BUILD_DOUBLE): New macro.
6278         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6279         (strtof64_l): Define and later undefine as macro.  Define as weak
6280         alias if [!USE_WIDE_CHAR].
6281         [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
6282         (wcstof64_l): Define and later undefine as macro.  Define as weak
6283         alias if [USE_WIDE_CHAR].
6284         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6285         (strtof32x_l): Define and later undefine as macro.  Define as weak
6286         alias if [!USE_WIDE_CHAR].
6287         [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
6288         (wcstof32x_l): Define and later undefine as macro.  Define as weak
6289         alias if [USE_WIDE_CHAR].
6291 2017-12-05  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6293         * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
6294         (reduced): Use ones as double instead of integer.
6296 2017-12-05  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6298         * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
6300 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6302         * stdlib/strfromd.c: Include <bits/floatn.h>.
6303         [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
6304         and later undefine as macro and define as weak alias.
6305         [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
6306         Likewise.
6308         * math/test-float32x.h: New file.
6309         * math/test-float64.h: Likewise.
6311         * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
6312         (libm_alias_double_other_r_f64): New macro.
6313         (libm_alias_double_other_r_f32x): Likewise.
6314         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
6315         libm_alias_double_other_r_f32x.
6316         (libm_alias_double_r): Use semicolon before call to
6317         libm_alias_double_other_r.
6318         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
6319         <bits/floatn.h>.
6320         (libm_alias_double_other_r_f64): New macro.
6321         (libm_alias_double_other_r_f32x): Likewise.
6322         (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
6323         libm_alias_double_other_r_f32x.
6325 2017-12-05  H.J. Lu  <hongjiu.lu@intel.com>
6327         * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
6328         int.
6329         (SINF_FUNC): Likewise.  Replace floor with simple casts.
6331 2017-12-05  Mike FABIAN  <mfabian@redhat.com>
6333         [BZ #22517]
6334         * localedata/Makefile: Add et_EE.UTF-8 to test-input
6335         and to the list of locales to be built for testing.
6336         * localedata/et_EE.UTF-8.in: New file for testing the collation.
6337         * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
6338         and build the collation rules upon that.
6340 2017-12-05  Chris Metcalf  <cmetcalf@mellanox.com>
6342         * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
6343         replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
6344         v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
6345         * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
6346         instead of __insn__xxx.
6347         * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
6348         * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
6349         * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
6350         * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
6351         * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
6352         * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
6354 2017-12-05  Florian Weimer  <fweimer@redhat.com>
6356         Linux: Implement interfaces for memory protection keys
6357         * support/Makefile (libsupport-routines): Add xraise, xsigaction,
6358         xsignal, xsysconf.
6359         * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
6360         * support/xunistd.h (xsysconf): Declare.
6361         * support/xraise.c: New file.
6362         * support/xsigaction.c: Likewise.
6363         * support/xsignal.c: Likewise.
6364         * support/xsysconf.c: Likewise.
6365         * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
6366         pkey_set, pkey_get, pkey_mprotect.
6367         [misc] (tests): Add tst-pkey.
6368         (tst-pkey): Link with -lpthread.
6369         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
6370         pkey_free, pkey_set, pkey_get, pkey_mprotect.
6371         * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
6372         (PKEY_DISABLE_WRITE): Define.
6373         (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
6374         Declare.
6375         * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
6376         (SEGV_PKUERR): Add.
6377         * sysdeps/unix/sysv/linux/pkey_get.c: New file.
6378         * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
6379         * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
6380         * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
6381         Add.
6382         * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
6383         * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
6384         * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
6385         * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
6386         * sysdeps/unix/sysv/linux/**.abilist: Update.
6388 2017-12-05  Florian Weimer  <fweimer@redhat.com>
6390         * support/tst-test_compare.c (subprocess): Use long long instead
6391         of long argument for consistent type width across 32-bit and
6392         64-bit architectures.
6393         (do_test): Adjust expected output.
6395 2017-12-05  Joseph Myers  <joseph@codesourcery.com>
6397         * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
6398         (cosf): Define using libm_alias_float.
6399         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
6400         (fabsf): Define using libm_alias_float.
6401         * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
6402         (fmaf): Define using libm_alias_float.
6403         * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
6404         (rintf): Define using libm_alias_float.
6405         * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
6406         (sinf): Define using libm_alias_float.
6407         * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
6408         <libm-alias-float.h>.
6409         (modff): Define using libm_alias_float.
6410         * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
6411         <libm-alias-float.h>.
6412         (logbf): Define using libm_alias_float.
6413         * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
6414         <libm-alias-float.h>.
6415         (ceilf): Define using libm_alias_float.
6416         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
6417         <libm-alias-float.h>.
6418         (copysignf): Define using libm_alias_float.
6419         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
6420         <libm-alias-float.h>.
6421         (floorf): Define using libm_alias_float.
6422         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
6423         <libm-alias-float.h>.
6424         (llrintf): Define using libm_alias_float.
6425         * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
6426         <libm-alias-float.h>.
6427         (llroundf): Define using libm_alias_float.
6428         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
6429         <libm-alias-float.h>.
6430         (lrintf): Define using libm_alias_float.
6431         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
6432         <libm-alias-float.h>.
6433         (lroundf): Define using libm_alias_float.
6434         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
6435         <libm-alias-float.h>.
6436         (nearbyintf): Define using libm_alias_float.
6437         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
6438         <libm-alias-float.h>.
6439         (rintf): Define using libm_alias_float.
6440         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
6441         <libm-alias-float.h>.
6442         (roundf): Define using libm_alias_float.
6443         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
6444         <libm-alias-float.h>.
6445         (truncf): Define using libm_alias_float.
6446         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
6447         Include <libm-alias-float.h>.
6448         (ceilf): Define using libm_alias_float.
6449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6450         Include <libm-alias-float.h>.
6451         (copysignf): Define using libm_alias_float.
6452         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
6453         Include <libm-alias-float.h>.
6454         (floorf): Define using libm_alias_float.
6455         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
6456         Include <libm-alias-float.h>.
6457         (llrintf): Define using libm_alias_float.
6458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
6459         Include <libm-alias-float.h>.
6460         (llroundf): Define using libm_alias_float.
6461         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
6462         Include <libm-alias-float.h>.
6463         (logbf): Define using libm_alias_float.
6464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
6465         Include <libm-alias-float.h>.
6466         (lrintf): Define using libm_alias_float.
6467         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
6468         Include <libm-alias-float.h>.
6469         (lroundf): Define using libm_alias_float.
6470         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
6471         Include <libm-alias-float.h>.
6472         (modff): Define using libm_alias_float.
6473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
6474         Include <libm-alias-float.h>.
6475         (roundf): Define using libm_alias_float.
6476         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
6477         Include <libm-alias-float.h>.
6478         (truncf): Define using libm_alias_float.
6479         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
6480         <libm-alias-float.h>.
6481         (llrintf): Define using libm_alias_float.
6482         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
6483         <libm-alias-float.h>.
6484         (llroundf): Define using libm_alias_float.
6485         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
6486         <libm-alias-float.h>.
6487         (ceilf): Define using libm_alias_float.
6488         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
6489         <libm-alias-float.h>.
6490         (floorf): Define using libm_alias_float.
6491         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
6492         <libm-alias-float.h>.
6493         (llroundf): Define using libm_alias_float.
6494         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
6495         <libm-alias-float.h>.
6496         (lroundf): Define using libm_alias_float.
6497         * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
6498         <libm-alias-float.h>.
6499         (roundf): Define using libm_alias_float.
6500         * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
6501         <libm-alias-float.h>.
6502         (truncf): Define using libm_alias_float.
6503         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
6504         <libm-alias-float.h>.
6505         (copysignf): Define using libm_alias_float.
6506         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
6507         <libm-alias-float.h>.
6508         (llrintf): Define using libm_alias_float.
6509         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
6510         <libm-alias-float.h>.
6511         (llroundf): Define using libm_alias_float.
6512         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
6513         <libm-alias-float.h>.
6514         (lrintf): Define using libm_alias_float.
6515         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
6516         <libm-alias-float.h>.
6517         (lroundf): Define using libm_alias_float.
6518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
6519         <libm-alias-float.h>.
6520         (ceilf): Define using libm_alias_float.
6521         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
6522         <libm-alias-float.h>.
6523         (copysignf): Define using libm_alias_float.
6524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
6525         <libm-alias-float.h>.
6526         (cosf): Define using libm_alias_float.
6527         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
6528         <libm-alias-float.h>.
6529         (floorf): Define using libm_alias_float.
6530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
6531         <libm-alias-float.h>.
6532         (llrintf): Define using libm_alias_float.
6533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
6534         <libm-alias-float.h>.
6535         (llroundf): Define using libm_alias_float.
6536         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
6537         <libm-alias-float.h>.
6538         (logbf): Define using libm_alias_float.
6539         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
6540         <libm-alias-float.h>.
6541         (modff): Define using libm_alias_float.
6542         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
6543         <libm-alias-float.h>.
6544         (roundf): Define using libm_alias_float.
6545         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
6546         <libm-alias-float.h>.
6547         (sinf): Define using libm_alias_float.
6548         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
6549         <libm-alias-float.h>.
6550         (truncf): Define using libm_alias_float.
6551         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
6552         <libm-alias-float.h>.
6553         (ceilf): Define using libm_alias_float.
6554         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
6555         <libm-alias-float.h>.
6556         (copysignf): Define using libm_alias_float.
6557         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
6558         <libm-alias-float.h>.
6559         (floorf): Define using libm_alias_float.
6560         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
6561         <libm-alias-float.h>.
6562         (llrintf): Define using libm_alias_float.
6563         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
6564         <libm-alias-float.h>.
6565         (llroundf): Define using libm_alias_float.
6566         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
6567         <libm-alias-float.h>.
6568         (nearbyintf): Define using libm_alias_float.
6569         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
6570         <libm-alias-float.h>.
6571         (rintf): Define using libm_alias_float.
6572         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
6573         <libm-alias-float.h>.
6574         (roundf): Define using libm_alias_float.
6575         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
6576         <libm-alias-float.h>.
6577         (truncf): Define using libm_alias_float.
6578         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
6579         <libm-alias-float.h>.
6580         (ceilf): Define using libm_alias_float.
6581         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
6582         <libm-alias-float.h>.
6583         (floorf): Define using libm_alias_float.
6584         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
6585         <libm-alias-float.h>.
6586         (llroundf): Define using libm_alias_float.
6587         * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
6588         <libm-alias-float.h>.
6589         (roundf): Define using libm_alias_float.
6590         * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
6591         <libm-alias-float.h>.
6592         (truncf): Define using libm_alias_float.
6593         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
6594         <libm-alias-float.h>.
6595         (copysignf): Define using libm_alias_float.
6596         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
6597         <libm-alias-float.h>.
6598         (llrintf): Define using libm_alias_float.
6599         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
6600         <libm-alias-float.h>.
6601         (llroundf): Define using libm_alias_float.
6602         * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
6603         <libm-alias-float.h>.
6604         (cosf): Define using libm_alias_float.
6605         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
6606         <libm-alias-float.h>.
6607         (llrintf): Define using libm_alias_float.
6608         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
6609         <libm-alias-float.h>.
6610         (llroundf): Define using libm_alias_float.
6611         * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
6612         <libm-alias-float.h>.
6613         (sinf): Define using libm_alias_float.
6615 2017-12-04  Florian Weimer  <fweimer@redhat.com>
6617         * support/check.h (TEST_COMPARE): Define.
6618         (support_test_compare_failure): Declare.
6619         * support/Makefile (libsupport-routines): Add
6620         support_test_compare_failure.
6621         (tests): Add tst-test_compare.
6622         * support /support_test_compare_failure.c: New file.
6623         * support/tst-test_compare.c: Likewise.
6625 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
6627         [BZ #22527]
6628         *  localedata/locales/tr_TR (LC_COLLATE): Base collation rules
6629         on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
6630         available, this rewrite of the collation rules does reproduce
6631         the test file in the same order.
6633 2017-12-04  Mike FABIAN  <mfabian@redhat.com>
6635         [BZ #10580]
6636         * localedata/locales/hr_HR (LC_TIME): Use two letters for the
6637         digraphs in the month and day names. Using single code points for
6638         digraphs is deprecated.  While there are dedicated Unicode
6639         codepoints, for the digraphs, these are included for backwards
6640         compatibility and modern texts use a sequence of Basic Latin
6641         characters. See: https://www.unicode.org/faq/ligature_digraph.html
6642         This makes the month and day names agree exactly with CLDR now,
6643         CLDR does not use the single code points for the digraphs either.
6645 2017-12-04  Chris Metcalf  <cmetcalf@mellanox.com>
6647         * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
6649 2017-12-04  Joseph Myers  <joseph@codesourcery.com>
6651         * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
6652         of floor.
6654 2017-12-04  Siddhesh Poyarekar  <siddhesh@sourceware.org>
6656         * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
6657         Define only for libc.so.
6659 2017-12-04  Stefan Liebler  <stli@linux.vnet.ibm.com>
6661         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6662         (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
6663          CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
6664         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
6665         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
6667 2017-12-04  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6669         [BZ #5997]
6670         * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
6672 2017-12-02  John David Anglin  <danglin@gcc.gnu.org>
6674         [BZ libc/19170]
6675         * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
6676         PREINIT_FUNCTION_WEAK is nonzero.
6677         (gmon_initializer): New function.  Put procedure label for it in
6678         .init_array section.
6679         (_init): Don't call PREINIT_FUNCTION.
6680         * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
6681         * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
6682         value when map argument is null.
6684         * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
6685         depi instruction from PIC pc-relative sequence.
6686         * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
6687         * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
6688         (elf_machine_load_address): Likewise.
6689         (elf_machine_runtime_setup): Likewise.
6691 2017-12-02  Joseph Myers  <joseph@codesourcery.com>
6693         * sysdeps/powerpc/power7/fpu/s_logb.c: Include
6694         <libm-alias-double.h>.
6695         (logb): Define using libm_alias_double.
6696         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
6697         <libm-alias-double.h>.
6698         (copysign): Define using libm_alias_double.
6699         * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
6700         <libm-alias-double.h>.
6701         (llrint): Define using libm_alias_double.
6702         * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
6703         <libm-alias-double.h>.
6704         (llround): Define using libm_alias_double.
6705         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
6706         <libm-alias-double.h>.
6707         (lrint): Define using libm_alias_double.
6708         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
6709         <libm-alias-double.h>.
6710         (lround): Define using libm_alias_double.
6711         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6712         Include <libm-alias-double.h>.
6713         (copysign): Define using libm_alias_double.
6714         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
6715         Include <libm-alias-double.h>.
6716         (llrint): Define using libm_alias_double.
6717         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
6718         Include <libm-alias-double.h>.
6719         (llround): Define using libm_alias_double.
6720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
6721         <libm-alias-double.h>.
6722         (logb): Define using libm_alias_double.
6723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
6724         Include <libm-alias-double.h>.
6725         (lrint): Define using libm_alias_double.
6726         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
6727         Include <libm-alias-double.h>.
6728         (lround): Define using libm_alias_double.
6729         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
6730         <libm-alias-double.h>.
6731         (llrint): Define using libm_alias_double.
6732         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
6733         <libm-alias-double.h>.
6734         (llround): Define using libm_alias_double.
6735         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
6736         <libm-alias-double.h>.
6737         (llround): Define using libm_alias_double.
6738         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
6739         <libm-alias-double.h>.
6740         (lround): Define using libm_alias_double.
6741         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
6742         <libm-alias-double.h>.
6743         (copysign): Define using libm_alias_double.
6744         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
6745         <libm-alias-double.h>.
6746         (llrint): Define using libm_alias_double.
6747         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
6748         <libm-alias-double.h>.
6749         (llround): Define using libm_alias_double.
6750         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
6751         <libm-alias-double.h>.
6752         (lrint): Define using libm_alias_double.
6753         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
6754         <libm-alias-double.h>.
6755         (lround): Define using libm_alias_double.
6756         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
6757         <libm-alias-double.h>.
6758         (copysign): Define using libm_alias_double.
6759         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
6760         <libm-alias-double.h>.
6761         (llrint): Define using libm_alias_double.
6762         (lrint): Likewise.
6763         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
6764         <libm-alias-double.h>.
6765         (llround): Define using libm_alias_double.
6766         (lround): Likewise.
6767         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
6768         <libm-alias-double.h>.
6769         (logb): Define using libm_alias_double.
6770         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
6771         <libm-alias-double.h>.
6772         (copysign): Define using libm_alias_double.
6773         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
6774         <libm-alias-double.h>.
6775         (llrint): Define using libm_alias_double.
6776         (lrint): Likewise.
6777         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
6778         <libm-alias-double.h>.
6779         (llround): Define using libm_alias_double.
6780         (lround): Likewise.
6781         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
6782         <libm-alias-double.h>.
6783         (llround): Define using libm_alias_double.
6784         (lround): Likewise.
6785         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
6786         <libm-alias-double.h>.
6787         (copysign): Define using libm_alias_double.
6788         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
6789         <libm-alias-double.h>.
6790         (llrint): Define using libm_alias_double.
6791         (lrint): Likewise.
6792         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
6793         <libm-alias-double.h>.
6794         (llround): Define using libm_alias_double.
6795         (lround): Likewise.
6796         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
6797         <libm-alias-double.h>.
6798         (llrint): Define using libm_alias_double.
6799         (lrint): Likewise.
6800         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
6801         <libm-alias-double.h>.
6802         (llround): Define using libm_alias_double.
6803         (lround): Likewise.
6805 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
6807         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6808         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
6809         compat symbol based on llround.
6811         * sysdeps/powerpc/power7/fpu/s_logb.c
6812         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
6813         symbol based on __logb, not on logb.
6814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
6815         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
6816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
6817         [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
6819         * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
6820         (rint): Define using libm_alias_double.
6821         * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
6822         <libm-alias-double.h>.
6823         (modf): Define using libm_alias_double.
6824         * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
6825         <libm-alias-double.h>.
6826         (ceil): Define using libm_alias_double.
6827         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
6828         <libm-alias-double.h>.
6829         (floor): Define using libm_alias_double.
6830         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
6831         <libm-alias-double.h>.
6832         (nearbyint): Define using libm_alias_double.
6833         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
6834         <libm-alias-double.h>.
6835         (rint): Define using libm_alias_double.
6836         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
6837         <libm-alias-double.h>.
6838         (round): Define using libm_alias_double.
6839         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
6840         <libm-alias-double.h>.
6841         (trunc): Define using libm_alias_double.
6842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
6843         <libm-alias-double.h>.
6844         (ceil): Define using libm_alias_double.
6845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
6846         Include <libm-alias-double.h>.
6847         (floor): Define using libm_alias_double.
6848         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
6849         <libm-alias-double.h>.
6850         (modf): Define using libm_alias_double.
6851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
6852         Include <libm-alias-double.h>.
6853         (round): Define using libm_alias_double.
6854         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
6855         Include <libm-alias-double.h>.
6856         (trunc): Define using libm_alias_double.
6857         * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
6858         <libm-alias-double.h>.
6859         (ceil): Define using libm_alias_double.
6860         * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
6861         <libm-alias-double.h>.
6862         (floor): Define using libm_alias_double.
6863         * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
6864         <libm-alias-double.h>.
6865         (round): Define using libm_alias_double.
6866         * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
6867         <libm-alias-double.h>.
6868         (trunc): Define using libm_alias_double.
6869         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
6870         <libm-alias-double.h>.
6871         (ceil): Define using libm_alias_double.
6872         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
6873         <libm-alias-double.h>.
6874         (floor): Define using libm_alias_double.
6875         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
6876         <libm-alias-double.h>.
6877         (modf): Define using libm_alias_double.
6878         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
6879         <libm-alias-double.h>.
6880         (round): Define using libm_alias_double.
6881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
6882         <libm-alias-double.h>.
6883         (trunc): Define using libm_alias_double.
6884         * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
6885         <libm-alias-double.h>.
6886         (ceil): Define using libm_alias_double.
6887         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
6888         <libm-alias-double.h>.
6889         (floor): Define using libm_alias_double.
6890         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
6891         <libm-alias-double.h>.
6892         (nearbyint): Define using libm_alias_double.
6893         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
6894         <libm-alias-double.h>.
6895         (rint): Define using libm_alias_double.
6896         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
6897         <libm-alias-double.h>.
6898         (round): Define using libm_alias_double.
6899         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
6900         <libm-alias-double.h>.
6901         (trunc): Define using libm_alias_double.
6902         * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
6903         <libm-alias-double.h>.
6904         (ceil): Define using libm_alias_double.
6905         * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
6906         <libm-alias-double.h>.
6907         (floor): Define using libm_alias_double.
6908         * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
6909         <libm-alias-double.h>.
6910         (round): Define using libm_alias_double.
6911         * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
6912         <libm-alias-double.h>.
6913         (trunc): Define using libm_alias_double.
6915         * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
6916         (fabs): Define using libm_alias_double.
6917         * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
6918         (fma): Define using libm_alias_double.
6919         * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
6920         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
6921         * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
6922         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
6924 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6926         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
6928         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
6929         SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
6930         SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
6932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
6933         due redirect macro.
6935 2017-12-01  Andreas Schwab  <schwab@linux-m68k.org>
6937         * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
6939 2017-12-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6941         * sysdeps/sparc/sparc64/cpu_relax.c: New file.
6942         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
6943         * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
6944         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
6946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6947         (libm-sysdep_routines): Add s_nearbyintf-generic and
6948         s_nearbyint-generic.
6949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
6950         New file.
6951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
6952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
6953         Likewise.
6954         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
6955         Likewise.
6956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
6957         file.
6958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
6959         Likewise.
6961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6962         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
6963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
6964         file.
6965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
6966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
6967         Likewise.
6968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
6969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
6970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6973         (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
6974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
6975         file.
6976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
6977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
6978         Likewise.
6979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
6980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
6981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
6983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6984         (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
6985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
6986         file.
6987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
6988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
6989         Likewise.
6990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
6991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
6992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
6995         (sysdep_calls): New rule.
6996         (sysdep_routines): Use sysdep_calls as base.
6997         (libm-sysdep_routines): Add generic rule for symbols shared with
6998         libc.  Add s_copysign-generic and s_copysign-generic objects.
6999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
7000         New file.
7001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
7002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
7003         Likewise.
7004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
7005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
7006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
7008 2017-12-01  Mike FABIAN  <mfabian@redhat.com>
7010         [BZ #22519]
7011         * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
7012         the list of locales to be built for testing.
7013         * localedata/is_IS.UTF-8.in: New file.
7014         * localedata/locales/is_IS (LC_COLLATE): Base collation rules
7015         on iso14651_t1.
7017 2017-12-01  Joseph Myers  <joseph@codesourcery.com>
7019         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
7020         <libm-alias-float.h>.
7021         (fabsf): Define using libm_alias_float.
7023 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7025         * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
7027 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
7029         * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
7030         <libm-alias-float.h>.
7031         (fabsf): Define using libm_alias_float.
7032         * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
7033         <libm-alias-float.h>.
7034         (lrintf): Define using libm_alias_float.
7035         * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
7036         <libm-alias-float.h>.
7037         (rintf): Define using libm_alias_float.
7039         * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
7040         <libm-alias-double.h>.
7041         (fabs): Define using libm_alias_double.
7042         * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
7043         <libm-alias-double.h>.
7044         (lrint): Define using libm_alias_double.
7045         * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
7046         <libm-alias-double.h>.
7047         (rint): Define using libm_alias_double.
7049         * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
7050         * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7051         * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
7052         * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
7053         * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
7054         * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7055         * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
7056         * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
7057         * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
7058         * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
7059         * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
7060         * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
7061         * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
7062         * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
7063         * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
7064         * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
7065         * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7066         * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
7067         s_atan_template.c.
7068         * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
7069         * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
7070         * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
7071         s_ceil_template.c.
7072         * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
7073         * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
7074         * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
7075         s_cos_template.c.
7076         * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
7077         * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
7078         * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
7079         s_expm1_template.c.
7080         * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
7081         * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
7082         * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
7083         s_fabs_template.c.
7084         * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
7085         * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
7086         * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
7087         s_floor_template.c.
7088         * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
7089         * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
7090         * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
7091         s_frexp_template.c.
7092         * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
7093         * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
7094         s_lrint_template.c.
7095         * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
7096         * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
7097         * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
7098         s_modf_template.c.
7099         * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
7100         * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
7101         * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
7102         s_nearbyint_template.c.
7103         * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
7104         * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
7105         * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
7106         s_remquo_template.c.
7107         * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
7108         * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
7109         * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
7110         s_rint_template.c.
7111         * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7112         * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7113         * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
7114         s_sin_template.c.
7115         * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
7116         * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
7117         * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
7118         s_sincos_template.c.
7119         * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
7120         * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
7121         * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
7122         s_tan_template.c.
7123         * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
7124         * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
7125         * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
7126         s_tanh_template.c.
7127         * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
7128         * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
7129         * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
7130         s_trunc_template.c.
7131         * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
7132         * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
7133         * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
7134         s_atan.c instead of including s_atan.c.
7135         * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
7136         s_atanf.c instead of including s_atanf.c.
7137         * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
7138         s_atanl.c instead of including s_atanl.c.
7139         * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
7140         instead of s_atan.c.
7141         * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
7142         instead of s_atanf.c.
7143         * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
7144         instead of s_atanl.c.
7146         * scripts/update-copyrights: Do not handle intl/plural.c
7147         specially.
7149 2017-11-30  Juro Bystricky  <juro.bystricky@linux.intel.com>
7151         [BZ #22432]
7152         * configure.ac (BISON): Require to be present.
7153         * configure: Regenerated.
7154         * intl/Makefile (generated): Add plural.c.
7155         [$(BISON) != no]: Make code unconditional.
7156         (plural.c): Change rule to $(objpfx)plural.c.
7157         ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
7158         * intl/plural.c: Remove.
7159         * manual/install.texi (Tools for Compilation): Document bison as
7160         required.
7161         * INSTALL: Regenerated.
7163 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
7165         * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
7166         <libm-alias-double.h>.
7167         (llrint): Define using libm_alias_double.
7168         * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
7169         <libm-alias-float.h>.
7170         (llrintf): Define using libm_alias_float.
7171         * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
7172         <libm-alias-ldouble.h>.
7173         (llrintl): Define using libm_alias_ldouble.
7175         * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
7176         declare_mgen_alias instead of weak_alias.
7177         * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
7178         * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
7179         * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
7181 2017-11-30  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7183         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7184         Add add_n-generic.
7185         * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
7186         * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
7187         * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
7189         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7190         Add submul_1-generic.
7191         * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
7192         * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
7193         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
7195         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7196         Add addmul_1-generic.
7197         * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
7198         * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
7199         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
7201         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7202         Add sub_n-generic.
7203         * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
7204         * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
7205         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
7207         * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
7208         Add mul_1-generic.
7209         * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
7210         * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
7211         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
7213 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
7215         According to CLDR, collation rules for Serbian and Bosnian
7216         should be the same as for Croatian.
7218         [BZ #22534]
7219         * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
7220         and to the list of locales to be built for testing.
7221         * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
7222         * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
7223         * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
7224         * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
7226 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
7228         * localedata/locales/hr_HR (LC_COLLATE): Fix collation
7229         to make test case pass.
7230         * localedata/hr_HR.UTF-8.in: Add more test strings.
7232 2017-11-30  Mike FABIAN  <mfabian@redhat.com>
7234         * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
7236 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
7238         * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
7239         the list of locales to built for testing.
7240         * localedata/hr_HR.UTF-8.in: New file.
7242 2017-11-30  Dragan Stanojević - Nevidljivi  <invisible@hidden-city.net>
7244         [BZ #10580]
7245         * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
7246         iso14651_t1.
7247         * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
7248         CLDR (except use ligatures for the digraphs, CLDR does not use
7249         the ligatures), add first_workday, some fixes in the date and time
7250         formats.
7251         * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
7252         for Đ and đ.
7253         * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
7254         lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
7255         Add int_p_cs_precedes and int_n_cs_precedes.
7256         * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
7257         "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
7258         LC_MONETARY now).
7259         * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
7260         * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
7261         name_miss.
7262         * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
7263         and lang_lib. Change postal_fmt.
7265 2017-11-30  H.J. Lu  <hongjiu.lu@intel.com>
7267         * debug/longjmp_chk.c: Include <setjmpP.h> instead of
7268         <setjmp.h>.
7269         * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
7270         (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
7271         * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
7272         (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
7273         * sysdeps/generic/setjmpP.h: New file.
7274         * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
7275         * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
7276         * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
7277         * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
7278         Add jmp_buf-ssp.sym.
7279         (tests): Add tst-saved_mask-1.
7281 2017-11-30  Arjun Shankar  <arjun@redhat.com>
7283         [BZ #22375]
7284         CVE-2017-17426
7285         * malloc/malloc.c (__libc_malloc): Use checked_request2size
7286         instead of request2size.
7288 2017-11-30  Joseph Myers  <joseph@codesourcery.com>
7290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
7291         (__lllrint): Remove alias.
7292         (lllrint): Likewise.
7293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
7294         (__lllrintf): Likewise.
7295         (lllrintf): Likewise.
7297         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
7298         <libm-alias-float.h>.
7299         (copysignf): Define using libm_alias_float.
7300         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
7301         <libm-alias-float.h>.
7302         (fabsf): Define using libm_alias_float.
7303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
7304         Include <libm-alias-float.h>.
7305         (copysignf): Define using libm_alias_float.
7306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
7307         <libm-alias-float.h>.
7308         (fabsf): Define using libm_alias_float.
7309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
7310         <libm-alias-float.h>.
7311         (fdimf): Define using libm_alias_float.
7312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
7313         <libm-alias-float.h>.
7314         (fmaf): Define using libm_alias_float.
7315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
7316         <libm-alias-float.h>.
7317         (llrintf): Define using libm_alias_float.
7318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
7319         Include <libm-alias-float.h>.
7320         (nearbyintf): Define using libm_alias_float.
7321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
7322         <libm-alias-float.h>.
7323         (rintf): Define using libm_alias_float.
7324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
7325         <libm-alias-float.h>.
7326         (llrintf): Define using libm_alias_float.
7327         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
7328         <libm-alias-float.h>.
7329         (lrintf): Define using libm_alias_float.
7330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
7331         <libm-alias-float.h>.
7332         (nearbyintf): Define using libm_alias_float.
7333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
7334         <libm-alias-float.h>.
7335         (rintf): Define using libm_alias_float.
7336         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
7337         <libm-alias-float.h>.
7338         (ceilf): Define using libm_alias_float.
7339         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
7340         <libm-alias-float.h>.
7341         (floorf): Define using libm_alias_float.
7342         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
7343         <libm-alias-float.h>.
7344         (fmaf): Define using libm_alias_float.
7345         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
7346         <libm-alias-float.h>.
7347         (lrintf): Define using libm_alias_float.
7348         (llrintf): Likewise.
7349         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
7350         <libm-alias-float.h>.
7351         (nearbyintf): Define using libm_alias_float.
7352         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
7353         <libm-alias-float.h>.
7354         (rintf): Define using libm_alias_float.
7355         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
7356         <libm-alias-float.h>.
7357         (truncf): Define using libm_alias_float.
7358         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
7359         <libm-alias-float.h>.
7360         (copysignf): Define using libm_alias_float.
7361         * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
7362         <libm-alias-float.h>.
7363         (fabsf): Define using libm_alias_float.
7364         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
7365         <libm-alias-float.h>.
7366         (lrintf): Define using libm_alias_float.
7367         (llrintf): Likewise.
7368         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
7369         <libm-alias-float.h>.
7370         (nearbyintf): Define using libm_alias_float.
7371         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
7372         <libm-alias-float.h>.
7373         (rintf): Define using libm_alias_float.
7375 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
7377         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
7378         <libm-alias-double.h>.
7379         (copysign): Define using libm_alias_double.
7380         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
7381         <libm-alias-double.h>.
7382         (fabs): Define using libm_alias_double.
7383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
7384         Include <libm-alias-double.h>.
7385         (copysign): Define using libm_alias_double.
7386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
7387         <libm-alias-double.h>.
7388         (fabs): Define using libm_alias_double.
7389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
7390         <libm-alias-double.h>.
7391         (fdim): Define using libm_alias_double.
7392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
7393         <libm-alias-double.h>.
7394         (fma): Define using libm_alias_double.
7395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
7396         <libm-alias-double.h>.
7397         (llrint): Define using libm_alias_double.
7398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
7399         Include <libm-alias-double.h>.
7400         (nearbyint): Define using libm_alias_double.
7401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
7402         <libm-alias-double.h>.
7403         (rint): Define using libm_alias_double.
7404         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
7405         <libm-alias-double.h>.
7406         (fabs): Define using libm_alias_double.
7407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
7408         <libm-alias-double.h>.
7409         (llrint): Define using libm_alias_double.
7410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
7411         <libm-alias-double.h>.
7412         (nearbyint): Define using libm_alias_double.
7413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
7414         <libm-alias-double.h>.
7415         (rint): Define using libm_alias_double.
7416         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
7417         <libm-alias-double.h>.
7418         (ceil): Define using libm_alias_double.
7419         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
7420         <libm-alias-double.h>.
7421         (floor): Define using libm_alias_double.
7422         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
7423         <libm-alias-double.h>.
7424         (fma): Define using libm_alias_double.
7425         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
7426         <libm-alias-double.h>.
7427         (lrint): Define using libm_alias_double.
7428         (llrint): Likewise.
7429         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
7430         <libm-alias-double.h>.
7431         (nearbyint): Define using libm_alias_double.
7432         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
7433         <libm-alias-double.h>.
7434         (rint): Define using libm_alias_double.
7435         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
7436         <libm-alias-double.h>.
7437         (trunc): Define using libm_alias_double.
7438         * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
7439         <libm-alias-double.h>.
7440         (copysign): Define using libm_alias_double.
7441         * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
7442         <libm-alias-double.h>.
7443         (fabs): Define using libm_alias_double.
7444         * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
7445         <libm-alias-double.h>.
7446         (lrint): Define using libm_alias_double.
7447         (llrint): Likewise.
7448         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
7449         <libm-alias-double.h>.
7450         (nearbyint): Define using libm_alias_double.
7451         * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
7452         <libm-alias-double.h>.
7453         (rint): Define using libm_alias_double.
7455         [BZ #22229]
7456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
7457         <math_ldbl_opt.h>.
7458         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
7460         * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7461         SPARC --disable-multi-arch glibc variants.
7463         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
7464         <libm-alias-float.h>.
7465         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7466         if [SHARED].
7467         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
7468         <libm-alias-float.h>.
7469         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7470         if [SHARED].
7471         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
7472         <libm-alias-float.h>.
7473         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7474         if [SHARED].
7475         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
7476         <libm-alias-float.h>.
7477         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7478         if [SHARED].
7479         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
7480         <libm-alias-float.h>.
7481         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7482         if [SHARED].
7483         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
7484         <libm-alias-float.h>.
7485         (ceilf): Define using libm_alias_float.
7486         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
7487         <libm-alias-float.h>.
7488         (floorf): Define using libm_alias_float.
7489         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
7490         <libm-alias-float.h>.
7491         (fmaf): Define using libm_alias_float.
7492         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
7493         <libm-alias-float.h>.
7494         (nearbyintf): Define using libm_alias_float.
7495         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
7496         <libm-alias-float.h>.
7497         (rintf): Define using libm_alias_float.
7498         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
7499         <libm-alias-float.h>.
7500         (truncf): Define using libm_alias_float.
7501         * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
7502         (copysignf): Define using libm_alias_float.
7503         * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
7504         (cosf): Define using libm_alias_float.
7505         * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
7506         (fabsf): Define using libm_alias_float.
7507         * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7508         (fmaxf): Define using libm_alias_float.
7509         * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
7510         (fminf): Define using libm_alias_float.
7511         * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
7512         (llrintf): Define using libm_alias_float.
7513         [!__ILP32__] (lrintf): Likewise.
7514         * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
7515         (sincosf): Define using libm_alias_float.
7516         * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
7517         (sinf): Define using libm_alias_float.
7518         * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
7519         (lrintf): Define using libm_alias_float.
7521         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
7522         <libm-alias-double.h>.
7523         (atan): Define using libm_alias_double.
7524         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
7525         <libm-alias-double.h>.
7526         (ceil): Define using libm_alias_double.
7527         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
7528         <libm-alias-double.h>.
7529         (floor): Define using libm_alias_double.
7530         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
7531         <libm-alias-double.h>.
7532         (fma): Define using libm_alias_double.
7533         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
7534         <libm-alias-double.h>.
7535         (nearbyint): Define using libm_alias_double.
7536         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
7537         <libm-alias-double.h>.
7538         (rint): Define using libm_alias_double.
7539         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
7540         <libm-alias-double.h>.
7541         (sin): Define using libm_alias_double.
7542         (cos): Likewise.
7543         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
7544         <libm-alias-double.h>.
7545         (tan): Define using libm_alias_double.
7546         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
7547         <libm-alias-double.h>.
7548         (trunc): Define using libm_alias_double.
7549         * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
7550         (copysign): Define using libm_alias_double.
7551         * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
7552         (fabs): Define using libm_alias_double.
7553         * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
7554         (fmax): Define using libm_alias_double.
7555         * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
7556         (fmin): Define using libm_alias_double.
7557         * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
7558         (llrint): Define using libm_alias_double.
7559         [!__ILP32__] (lrint): Likewise.
7560         * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
7561         (lrint): Define using libm_alias_double.
7563 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7565         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
7566         (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
7567         objects.
7568         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
7569         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7570         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
7571         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7572         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
7573         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
7575         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
7576         (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
7577         objects.
7578         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
7579         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
7580         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
7581         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
7582         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
7583         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
7585         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
7586         (libm-sysdep_routines): Add s_nearbyint-generic and
7587         s_nearbyintf-generic objects.
7588         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
7589         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
7590         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
7591         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
7592         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
7593         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
7595         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
7596         Add s_finitef-generic and s_finite-generic objects.
7597         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
7598         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
7599         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
7600         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
7601         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
7602         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
7604         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
7605         Add s_isinff-generic and s_isinf-generic objects.
7606         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
7607         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
7608         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
7609         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
7610         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
7611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
7613         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
7614         Add s_isnanf-generic and s_isnan-generic objects.
7615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
7616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
7617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
7618         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
7619         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
7620         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
7622         * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
7623         macro.
7624         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
7625         rule.
7626         (sysdep_routines): Use sysdep_calls as base.
7627         (libm-sysdep_routines): Add generic rule for symbols shared with
7628         libc.  Add s_signbit-generic and s_signbitf-generic objects.
7629         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
7630         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
7631         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
7632         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
7633         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
7634         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
7636 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
7638         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
7639         * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
7640         * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
7641         * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
7642         * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
7643         * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
7644         * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
7645         * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
7646         * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
7647         * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
7648         * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
7649         * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
7650         * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
7651         libm_alias_float_r.
7652         * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
7653         * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
7654         (logf): Likewise.
7655         * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
7656         * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
7657         * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
7658         * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
7659         * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
7660         * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
7661         * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
7662         * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
7663         * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
7664         * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
7665         libm_alias_float.
7666         * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
7667         (cosf): Likewise.
7668         * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
7669         * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
7670         * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
7671         * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
7672         * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
7673         * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
7674         * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
7675         * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
7676         * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
7677         * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
7678         * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
7679         * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
7680         * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
7681         * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
7682         * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
7683         * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
7684         * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
7685         * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
7686         * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
7687         libm_alias_float.
7688         * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
7689         * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
7690         * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
7691         * sysdeps/ia64/fpu/w_lgammaf_main.c
7692         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
7693         * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
7695 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
7696             Alexandre Oliva  <aoliva@redhat.com>
7698         [BZ #17750]
7699         * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
7700         * localedata/fr_CA.UTF-8.in: New file with test data for backward
7701         accents sorting.
7702         * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
7703         sorting.
7704         * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
7705         * localedata/locales/de_DE (LC_COLLATE): Likewise.
7706         * localedata/locales/hu_HU (LC_COLLATE): Likewise.
7707         * localedata/locales/lb_LU (LC_COLLATE): Likewise.
7708         * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
7709         * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
7710         * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
7711         instead of “ifdef DIACRIT_BACKWARD”.
7713 2017-11-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7715         * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
7716         * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
7717         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
7718         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
7719         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
7720         * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
7721         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7722         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7723         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7724         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7725         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
7726         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
7727         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7728         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7729         * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
7730         (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
7731         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
7732         (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
7733         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
7734         ($(have-as-vis3) == yes): Remove conditional.
7735         * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
7736         Likewise.
7737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
7738         file.
7739         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
7740         file.
7741         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
7742         file.
7743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
7744         file.
7745         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
7746         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
7747         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
7748         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
7749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
7750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
7751         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
7752         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
7754 2017-11-29  Joseph Myers  <joseph@codesourcery.com>
7756         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
7757         * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
7758         * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
7759         * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
7760         * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
7761         * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
7762         * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
7763         * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
7764         * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
7765         * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
7766         * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
7767         * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
7768         * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
7769         libm_alias_double_r.
7770         * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
7771         (log): Likewise.
7772         * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
7773         * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
7774         * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
7775         * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
7776         * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
7777         * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
7778         * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
7779         * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
7780         * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
7781         * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
7782         * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
7783         libm_alias_double.
7784         * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
7785         (cos): Likewise.
7786         * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
7787         * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
7788         * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
7789         * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
7790         * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
7791         * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
7792         * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
7793         * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
7794         * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
7795         * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
7796         * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
7797         * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
7798         * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
7799         * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
7800         * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
7801         * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
7802         * sysdeps/ia64/fpu/s_round.S (round): Likewise.
7803         * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
7804         libm_alias_double.
7805         * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
7806         * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
7807         * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
7808         * sysdeps/ia64/fpu/w_lgamma_main.c
7809         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
7810         * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
7812 2017-11-28  John David Anglin  <danglin@gcc.gnu.org>
7814         * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED.  Load
7815         address of $global$ into %dp register earlier.  Use pc-relative
7816         instruction sequence for PIC case.
7818 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7820         * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
7821         (asinhf): Define using libm_alias_float.
7822         * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
7823         (atanf): Define using libm_alias_float.
7824         * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
7825         (cbrtf): Define using libm_alias_float.
7826         * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
7827         (ceilf): Define using libm_alias_float.
7828         * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
7829         (copysignf): Define using libm_alias_float.
7830         * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
7831         (expm1f): Define using libm_alias_float.
7832         * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
7833         (fabsf): Define using libm_alias_float.
7834         * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
7835         (floorf): Define using libm_alias_float.
7836         * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7837         (fmaxf): Define using libm_alias_float.
7838         * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
7839         (fminf): Define using libm_alias_float.
7840         * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
7841         (frexpf): Define using libm_alias_float.
7842         * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
7843         (llrintf): Define using libm_alias_float.
7844         * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
7845         (logbf): Define using libm_alias_float.
7846         * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
7847         (lrintf): Define using libm_alias_float.
7848         * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
7849         (nearbyintf): Define using libm_alias_float.
7850         * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
7851         (remquof): Define using libm_alias_float.
7852         * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
7853         (rintf): Define using libm_alias_float.
7854         * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
7855         (truncf): Define using libm_alias_float.
7856         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
7857         <libm-alias-float.h>.
7858         (exp2f): Define using libm_alias_float, or libm_alias_float_other
7859         if [SHARED].
7860         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
7861         <libm-alias-float.h>.
7862         (expf): Define using libm_alias_float, or libm_alias_float_other
7863         if [SHARED].
7864         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
7865         <libm-alias-float.h>.
7866         (log2f): Define using libm_alias_float, or libm_alias_float_other
7867         if [SHARED].
7868         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
7869         <libm-alias-float.h>.
7870         (logf): Define using libm_alias_float, or libm_alias_float_other
7871         if [SHARED].
7872         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
7873         <libm-alias-float.h>.
7874         (powf): Define using libm_alias_float, or libm_alias_float_other
7875         if [SHARED].
7876         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
7877         <libm-alias-float.h>.
7878         (cosf): Define using libm_alias_float.
7879         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
7880         <libm-alias-float.h>.
7881         (sincosf): Define using libm_alias_float.
7882         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
7883         <libm-alias-float.h>.
7884         (sinf): Define using libm_alias_float.
7885         * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
7886         (fmaxf): Define using libm_alias_float.
7887         * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
7888         (fminf): Define using libm_alias_float.
7889         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
7890         <libm-alias-float.h>.
7891         (fmaf): Define using libm_alias_float.
7893         * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
7894         (asinh): Define using libm_alias_double.
7895         * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
7896         (atan): Define using libm_alias_double.
7897         * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
7898         (cbrt): Define using libm_alias_double.
7899         * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
7900         (ceil): Define using libm_alias_double.
7901         * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
7902         (copysign): Define using libm_alias_double.
7903         * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
7904         (expm1): Define using libm_alias_double.
7905         * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
7906         (fabs): Define using libm_alias_double.
7907         * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
7908         (fdim): Define using libm_alias_double.
7909         * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
7910         (floor): Define using libm_alias_double.
7911         * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
7912         (fmax): Define using libm_alias_double.
7913         * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
7914         (fmin): Define using libm_alias_double.
7915         * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
7916         (frexp): Define using libm_alias_double.
7917         * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
7918         (llrint): Define using libm_alias_double.
7919         * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
7920         (logb): Define using libm_alias_double.
7921         * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
7922         (lrint): Define using libm_alias_double.
7923         * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
7924         (nearbyint): Define using libm_alias_double.
7925         * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
7926         (remquo): Define using libm_alias_double.
7927         * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
7928         (rint): Define using libm_alias_double.
7929         * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
7930         (trunc): Define using libm_alias_double.
7931         * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
7932         (fmax): Define using libm_alias_double.
7933         * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
7934         (fmin): Define using libm_alias_double.
7935         * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
7936         (fma): Define using libm_alias_double.
7938 2017-11-28  H.J. Lu  <hongjiu.lu@intel.com>
7940         [BZ #22370]
7941         * elf/dl-hwcaps.c (ROUND): Removed.
7942         (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
7943         and ELF_NOTE_NEXT_OFFSET.
7944         * elf/dl-load.c (ROUND): Removed.
7945         (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
7946         * elf/readelflib.c (ROUND): Removed.
7947         (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
7948         * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
7949         [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
7950         [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
7952 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
7954         * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
7955         [!__fmaf] (fmaf): Define using libm_alias_float.
7957         * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
7958         [!__fma] (fma): Define using libm_alias_double.
7959         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
7961 2017-11-28  Mike FABIAN  <mfabian@redhat.com>
7963         [BZ #22336]
7964         * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
7965         and implement the collation rules for cs from CLDR on top of that.
7966         * Makefile: Add cs_CZ.UTF-8 to test-input.
7967         * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
7969 2017-11-28  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7971         * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
7973 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
7974             Icarus Sparry  <icarus.w.sparry@intel.com>
7976         * benchtests/Makefile:Add BENCHSET to allow subsets of
7977         benchmarks to be run.
7978         * benchtests/README: Add documentation for: Running subsets of
7979         benchmarks.
7981 2017-11-28  Victor Rodriguez  <victor.rodriguez.bahena@intel.com>
7983         * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
7984         range of tests names.
7986         * benchtests/scripts/benchout.schema.json: Add throughput as accepted
7987         result from property and remove "max", min" and "mean" from
7988         required properties based on benchtests/bench-skeleton.c.
7990 2017-11-28  Florian Weimer  <fweimer@redhat.com>
7992         [BZ #20826]
7993         Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
7994         due to Internet requirement.
7995         * posix/Makefile (tests): Remove tst-getaddrinfo4,
7996         tst-getaddrinfo5.
7997         (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
7999 2017-11-28  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8001         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
8002         [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
8003         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
8004         (sysdep_routines): Add memset-ultra1.
8005         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
8006         file.
8007         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
8008         * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
8009         * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
8010         * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
8011         * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
8012         * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
8013         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
8014         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8016         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
8017         file.
8018         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
8019         * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
8020         * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
8021         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
8022         * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
8023         * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
8024         * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
8025         macro.
8026         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
8027         [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
8028         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
8029         (sysdep_routines): Add memcpy-ultra1.
8030         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
8031         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
8033 2017-11-28  Joseph Myers  <joseph@codesourcery.com>
8035         * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
8036         (cfloat_versions): Take function argument without trailing 'f'.
8037         Call libm_alias_float_other.
8038         * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
8039         * sysdeps/alpha/fpu/cargf.c: Likewise.
8040         * sysdeps/alpha/fpu/cimagf.c: Likewise.
8041         * sysdeps/alpha/fpu/conjf.c: Likewise.
8042         * sysdeps/alpha/fpu/crealf.c: Likewise.
8043         * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
8044         * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
8045         * sysdeps/alpha/fpu/s_casinf.c: Likewise.
8046         * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
8047         * sysdeps/alpha/fpu/s_catanf.c: Likewise.
8048         * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
8049         * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
8050         * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
8051         * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
8052         * sysdeps/alpha/fpu/s_clogf.c: Likewise.
8053         * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
8054         * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
8055         * sysdeps/alpha/fpu/s_csinf.c: Likewise.
8056         * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
8057         * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
8058         * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
8059         * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
8060         * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
8061         (clog10f): Use libm_alias_float_other.
8062         * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
8063         (ceilf): Define using libm_alias_float.
8064         * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
8065         (copysignf): Define using libm_alias_float.
8066         * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
8067         (fabsf): Define using libm_alias_float.
8068         * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
8069         (floorf): Define using libm_alias_float.
8070         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
8071         (fmaxf): Define using libm_alias_float.
8072         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
8073         (fminf): Define using libm_alias_float.
8074         * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
8075         (lrintf): Define using libm_alias_float.
8076         (llrintf): Likewise.
8077         * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
8078         (lroundf): Define using libm_alias_float.
8079         (llroundf): Likewise.
8080         * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
8081         (rintf): Define using libm_alias_float.
8082         * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
8083         (truncf): Define using libm_alias_float.
8085         * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
8086         (ceilf): Define using libm_alias_float.
8087         * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
8088         (floorf): Define using libm_alias_float.
8089         * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
8090         (fmaf): Define using libm_alias_float.
8091         * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
8092         (fmaxf): Define using libm_alias_float.
8093         * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
8094         (fminf): Define using libm_alias_float.
8095         * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
8096         (llrintf): Define using libm_alias_float.
8097         * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
8098         (llroundf): Define using libm_alias_float.
8099         * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
8100         (lrintf): Define using libm_alias_float.
8101         * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
8102         (lroundf): Define using libm_alias_float.
8103         * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
8104         <libm-alias-float.h>.
8105         (nearbyintf): Define using libm_alias_float.
8106         * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
8107         (rintf): Define using libm_alias_float.
8108         * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
8109         (roundf): Define using libm_alias_float.
8110         * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
8111         (truncf): Define using libm_alias_float.
8113         * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
8114         (ceil): Define using libm_alias_double.
8115         * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
8116         (copysign): Define using libm_alias_double.
8117         * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
8118         (fabs): Define using libm_alias_double.
8119         * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
8120         (floor): Define using libm_alias_double.
8121         * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
8122         (fmax): Define using libm_alias_double.
8123         * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
8124         (fmin): Define using libm_alias_double.
8125         * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
8126         (lrint): Define using libm_alias_double.
8127         (llrint): Likewise.
8128         * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
8129         (lround): Define using libm_alias_double.
8130         (llround): Likewise.
8131         * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
8132         (rint): Define using libm_alias_double.
8133         * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
8134         (trunc): Define using libm_alias_double.
8136         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
8137         (libm_alias_double_r): Add semicolon after weak_alias call.
8139 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
8141         * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
8142         (ceil): Define using libm_alias_double.
8143         * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
8144         (floor): Define using libm_alias_double.
8145         * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
8146         (fma): Define using libm_alias_double.
8147         * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
8148         (fmax): Define using libm_alias_double.
8149         * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
8150         (fmin): Define using libm_alias_double.
8151         * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
8152         (llrint): Define using libm_alias_double.
8153         * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
8154         (llround): Define using libm_alias_double.
8155         * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
8156         (lrint): Define using libm_alias_double.
8157         * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
8158         (lround): Define using libm_alias_double.
8159         * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
8160         (nearbyint): Define using libm_alias_double.
8161         * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
8162         (rint): Define using libm_alias_double.
8163         * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
8164         (round): Define using libm_alias_double.
8165         * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
8166         (trunc): Define using libm_alias_double.
8168 2017-11-27  Florian Weimer  <fweimer@redhat.com>
8170         * sysdeps/unix/sysv/linux/mlock2.c: New file.
8171         * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
8172         * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
8173         (tests): Add tst-mlock2.
8174         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
8175         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
8176         [__LINUX_KERNEL_VERSION >= 4.4]: Define.
8177         * sysdeps/unix/sysv/linux/libc**.abilist: Update.
8178         * manual/memory.texi (Page Lock Functions): Move @end deftypefun
8179         for mlock.  Document mlock2.
8181 2017-11-27  Joseph Myers  <joseph@codesourcery.com>
8183         * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
8184         * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
8185         Likewise.
8186         * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
8187         Likewise.
8188         * sysdeps/x86/Makeconfig: New file.
8189         * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
8190         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8191         * bits/floatn.h (__HAVE_FLOAT64X): New macro.
8192         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8193         * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8194         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8195         * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
8196         Likewise.
8197         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8198         * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8199         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8200         * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8201         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8202         * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
8203         (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
8204         * manual/math.texi (Mathematics): Document support for _Float64x.
8205         * math/Versions (GLIBC_2.27): Add _Float64x functions.
8206         * stdlib/Versions (GLIBC_2.27): Likewise.
8207         * wcsmbs/Versions (GLIBC_2.27): Likewise.
8208         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
8209         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8210         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8211         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8212         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8213         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8214         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8215         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8216         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8217         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8218         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8220         Likewise.
8221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
8222         Likewise.
8223         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8224         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8225         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8226         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8227         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8228         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8229         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8230         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8231         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8232         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8233         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8234         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8235         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
8236         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
8238 2017-11-27  Andreas Schwab  <schwab@suse.de>
8240         * elf/Makefile (dl-routines): Add dl-sort-maps.
8241         * elf/dl-sort-maps.c: New file.
8242         * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
8243         (_dl_sort_maps): Declare.
8244         * elf/dl-fini.c (_dl_sort_fini): Remove.
8245         (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
8246         * elf/dl-close.c (_dl_close_worker): Likewise.
8247         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
8248         open-coding it.
8249         * elf/dl-open.c (dl_open_worker): Likewise.
8251 2017-11-24  Joseph Myers  <joseph@codesourcery.com>
8253         * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
8254         using libm_alias_float128.
8255         * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
8256         Likewise.
8257         * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
8258         Likewise.
8259         * sysdeps/ieee754/float128/s_setpayloadsigf128.c
8260         (setpayloadsigf128): Likewise.
8261         * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
8262         Likewise.
8263         * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
8264         Likewise.
8266         * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
8267         suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
8268         -mfloat128 to CFLAGS.
8269         ($(foreach
8270         suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
8271         Likewise.
8272         (CFLAGS-libm-test-support-float64x.c): New variable.
8273         ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
8274         $(f128-loader-link) to gnulib-tests.
8276         * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
8277         (libm_alias_float128_other_r): If
8278         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
8279         alias.
8280         (libm_alias_float128_r): Add semicolon after weak_alias call.
8281         * sysdeps/generic/libm-alias-ldouble.h
8282         (libm_alias_ldouble_other_r_f128): New macro.
8283         (libm_alias_ldouble_other_r_f64x): Likewise.
8284         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
8285         and libm_alias_ldouble_other_r_f64x.
8286         (libm_alias_ldouble_r): Add semicolon after weak_alias call.
8287         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
8288         (libm_alias_ldouble_other_r_f128): New macro.
8289         (libm_alias_ldouble_other_r_f64x): Likewise.
8290         (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
8291         and libm_alias_ldouble_other_r_f64x.
8293         * stdlib/strfroml.c: Always include <stdlib.h>.
8294         [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
8295         undefine as macro and define as weak alias.
8296         * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
8297         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
8298         <stdlib.h>.
8299         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
8300         Define and later undefine as macro and define as weak alias.
8302         * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
8303         Define and later undefine as macro.  Define as weak alias if
8304         [!USE_WIDE_CHAR].
8305         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
8306         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8307         * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
8308         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
8309         Define and later undefine as macro.  Define as weak alias if
8310         [!USE_WIDE_CHAR].
8311         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
8312         Define and later undefine as macro.  Define as weak alias if
8313         [USE_WIDE_CHAR].
8314         * sysdeps/ieee754/float128/strtof128_l.c
8315         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
8316         Define and later undefine as macro.  Define as weak alias if
8317         [!USE_WIDE_CHAR].
8318         [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
8319         Define and later undefine as macro.  Define as weak alias if
8320         [USE_WIDE_CHAR].
8321         * sysdeps/ieee754/ldbl-128/strtold_l.c
8322         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
8323         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8324         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
8325         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8326         * sysdeps/ieee754/ldbl-64-128/strtold_l.c
8327         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
8328         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8329         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
8330         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8331         * sysdeps/ieee754/ldbl-96/strtold_l.c
8332         [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
8333         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
8334         [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
8335         undefine as macro.  Define as weak alias if [USE_WIDE_CHAR].
8337         * math/test-float64x.h: New file.
8338         * math/Makefile (type-float64x-yes): New variable.
8339         (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
8341         * sysdeps/generic/math_private.h (min_of_type_f): Make into a
8342         function-like macro.
8343         (min_of_type_): Likewise.
8344         (min_of_type_l): Likewise.
8345         (min_of_type_f128): Likewise.
8346         (min_of_type): Pass () as last argument of __MATH_TG.
8348         * stdlib/tst-strtod-round-skeleton.c
8349         (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
8350         headers.
8352         * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
8353         for combinations of long double with _Float64 and _Float64x.
8355         * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
8356         (__DECL_SIMD_cosf32): Likewise.
8357         (__DECL_SIMD_cosf64): Likewise.
8358         (__DECL_SIMD_cosf32x): Likewise.
8359         (__DECL_SIMD_cosf64x): Likewise.
8360         (__DECL_SIMD_cosf128x): Likewise.
8361         (__DECL_SIMD_sinf16): Likewise.
8362         (__DECL_SIMD_sinf32): Likewise.
8363         (__DECL_SIMD_sinf64): Likewise.
8364         (__DECL_SIMD_sinf32x): Likewise.
8365         (__DECL_SIMD_sinf64x): Likewise.
8366         (__DECL_SIMD_sinf128x): Likewise.
8367         (__DECL_SIMD_sincosf16): Likewise.
8368         (__DECL_SIMD_sincosf32): Likewise.
8369         (__DECL_SIMD_sincosf64): Likewise.
8370         (__DECL_SIMD_sincosf32x): Likewise.
8371         (__DECL_SIMD_sincosf64x): Likewise.
8372         (__DECL_SIMD_sincosf128x): Likewise.
8373         (__DECL_SIMD_logf16): Likewise.
8374         (__DECL_SIMD_logf32): Likewise.
8375         (__DECL_SIMD_logf64): Likewise.
8376         (__DECL_SIMD_logf32x): Likewise.
8377         (__DECL_SIMD_logf64x): Likewise.
8378         (__DECL_SIMD_logf128x): Likewise.
8379         (__DECL_SIMD_expf16): Likewise.
8380         (__DECL_SIMD_expf32): Likewise.
8381         (__DECL_SIMD_expf64): Likewise.
8382         (__DECL_SIMD_expf32x): Likewise.
8383         (__DECL_SIMD_expf64x): Likewise.
8384         (__DECL_SIMD_expf128x): Likewise.
8385         (__DECL_SIMD_powf16): Likewise.
8386         (__DECL_SIMD_powf32): Likewise.
8387         (__DECL_SIMD_powf64): Likewise.
8388         (__DECL_SIMD_powf32x): Likewise.
8389         (__DECL_SIMD_powf64x): Likewise.
8390         (__DECL_SIMD_powf128x): Likewise.
8392         * stdlib/Versions (libc): Move entries for wcstof128 and
8393         wcstof128_l to ....
8394         * wcsmbs/Versions (libc): ... here.
8395         Include <float128-abi.h>.
8397 2017-11-24  Florian Weimer  <fweimer@redhat.com>
8399         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8400         bits/mman-shared.h.
8401         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
8402         <bits/mman-shared.h>.
8403         (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
8404         to ...
8405         * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
8406         Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
8407         * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8408         <bits/mman-shared.h>.
8410 2017-11-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8412         [BZ #22457]
8413         * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
8414         posix_memalign/free.
8415         * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
8417 2017-11-22  Mike FABIAN  <mfabian@redhat.com>
8419         [BZ #22469]
8420         * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
8421         and implement the collation rules for pl from CLDR on top of that.
8422         * Makefile: Add pl_PL.UTF-8 to test-input and to the list
8423         of locales to be built for testing.
8424         * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
8426 2017-11-23  Joseph Myers  <joseph@codesourcery.com>
8428         * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
8429         * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
8430         libm_alias_ldouble_other.
8431         * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
8432         * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
8433         * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
8434         * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
8435         * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
8436         * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
8437         * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
8438         * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
8439         * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
8440         libm_alias_ldouble_r.
8441         * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
8442         libm_alias_ldouble_other.
8443         * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
8444         (log10l): Likewise.
8445         * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
8446         * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
8447         * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
8448         * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
8449         * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
8450         * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
8451         * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
8452         (atan2l): Likewise.
8453         * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
8454         * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
8455         * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
8456         libm_alias_ldouble.
8457         * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
8458         (cosl): Likewise.
8459         * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
8460         * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
8461         * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
8462         (expl): Likewise.
8463         * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
8464         * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
8465         * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
8466         * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
8467         * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
8468         * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
8469         * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
8470         * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
8471         * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
8472         * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
8473         * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
8474         libm_alias_ldouble.
8475         * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
8476         libm_alias_ldouble_other.
8477         * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
8478         * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
8479         * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
8480         libm_alias_ldouble.
8481         * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
8482         libm_alias_ldouble_other.
8483         * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
8484         * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
8485         * sysdeps/ia64/fpu/w_lgammal_main.c
8486         [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
8487         * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
8489 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8491         * malloc/malloc.c (tcache_thread_shutdown): Rename from
8492         tcache_thread_freeres.  Define for USE_TCACHE and !USE_TCACHE
8493         alike.  Remove freeres marker.
8494         * malloc/arena.c (arena_thread_freeres): Call
8495         tcache_thread_shutdown.
8497 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8499         [BZ #22459]
8500         Export nscd hash function as __nss_hash.
8501         * include/nss.h (__nss_hash): Declare.
8502         * nis/nis_hash.c (__nis_hash): Call __nss_hash.  Turn into compat
8503         symbol.
8504         * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
8505         * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
8506         of __nscd_hash.
8507         * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
8508         * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
8509         * nss/Makefiles (routines): Add nss_hash.
8510         * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
8511         * nss/nss_hash.c: Rename from nis/nis_hash.c.
8512         (__nss_hash): Rename from __nis_hash.  Define hidden alias.
8513         * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
8515 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8517         [BZ #22478]
8518         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
8519         Return error code, not -1.
8520         * signal/tst-sigwait-eintr.c: New file.
8521         * signal/Makefile (tests): Add tst-sigwait-eintr.
8523 2017-11-23  Florian Weimer  <fweimer@redhat.com>
8525         Linux: Add memfd_create system call wrapper
8526         * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
8527         tst-memfd_create.
8528         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8529         (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
8530         [__USE_GNU] (memfd_create): Declare.
8531         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
8532         * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
8533         * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
8534         * sysdeps/unix/sysv/linux/**.abilist: Update.
8535         * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
8537 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
8539         * localedata/gen-locale.sh: Fix typo in variable name.
8541         * resolv/res_debug.c (p_secstodate): Condition definition on
8542         [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)].  Define
8543         directly as __p_secstodate, and as a compat symbol.  Do not use
8544         libresolv_hidden_def.
8545         * resolv/resolv.h (p_secstodate): Remove macro and function
8546         declaration.
8547         * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
8548         using p_secstodate.
8549         * include/resolv.h (__p_secstodate): Do not use
8550         libresolv_hidden_proto.
8551         * resolv/Makefile (tests): Move tst-p_secstodate to ....
8552         (tests-internal): ... here.
8553         * resolv/tst-p_secstodate.c: Include <shlib-compat.h>.  Condition
8554         all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
8555         and declare and use __p_secstodate and use compat_symbol_reference
8556         in that case.
8557         [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
8558         implementation returning 77.
8560         [BZ #22463]
8561         * resolv/res_debug.c: Include <libc-diag.h>.
8562         (p_secstodate): Assert time_t at least as wide as u_long.  On
8563         overflow, use integer seconds since the epoch as output, or use
8564         "<overflow>" as output and set errno to EOVERFLOW if integer
8565         seconds since the epoch would be 14 or more characters.
8566         (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
8567         for sprintf call.
8568         * resolv/tst-p_secstodate.c: New file.
8569         * resolv/Makefile (tests): Add tst-p_secstodate.
8570         ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
8572         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
8573         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
8574         * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
8576 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
8578         * posix/regcomp.c (init_word_char): Add comments.
8580 2017-11-22  Joseph Myers  <joseph@codesourcery.com>
8582         [BZ #22447]
8583         * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
8584         strlen to compute length of ut_user and set trailing NUL byte of
8585         result explicitly.
8587 2017-11-21  Mike FABIAN  <mfabian@redhat.com>
8589         [BZ #15537]
8590         * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
8591         using “copy "iso14651_t1"” and then implementing the
8592         collation rules for lv from CLDR on top of that.
8593         * Makefile: Add lv_LV.UTF-8 to test-input and to the list
8594         of locales to be built for testing.
8595         * lv_LV.UTF-8.in: New file with test data to test the Latvian
8596         sorting.
8598 2017-11-21  Joseph Myers  <joseph@codesourcery.com>
8600         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
8601         [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
8602         [__USE_MISC] (MADV_VPS_PURGE): Likewise.
8603         [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
8604         [__USE_MISC] (MADV_HWPOISON): New macro.
8605         [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
8607 2017-11-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8609         * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
8610         -Wmissing-braces on GCC 4.9.
8612 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
8614         * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
8615         * sysdeps/s390/s390-32/start.S (_start): Likewise
8616         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
8617         (thread_start): Likewise.
8618         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
8619         (thread_start): Likewise.
8620         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
8621         (__makecontext_ret): Likewise.
8622         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
8623         (__makecontext_ret): Likewise.
8625 2017-11-21  Stefan Liebler  <stli@linux.vnet.ibm.com>
8627         * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
8628         __wcschrnul): Remove attribute_hidden.
8630 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
8632         regex: don't assume uint64_t or uint32_t
8633         This avoids -Werror=overflow errors for 32-bit systems in
8634         the 64-bit case.  Problem reported by Joseph Myers in:
8635         https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
8636         Also, when this code is used in Gnulib it ports to platforms
8637         that lack uint64_t and uint32_t.  The C standard doesn't guarantee
8638         them, and on some 32-bit compilers there is no uint64_t.
8639         Problem reported by Gianluigi Tiesi in:
8640         http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
8641         * posix/regcomp.c (init_word_char): Don't assume that the types
8642         uint64_t and uint32_t exist.  Adapted from Gnulib patch
8643         2012-05-27T06:40:00!eggert@cs.ucla.edu.  See:
8644         https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
8646 2017-11-20  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8648         * sysdeps/aarch64/memset-reg.h: New file.
8649         * sysdeps/aarch64/memset.S: Use it.
8650         (__memset): Rename to MEMSET macro.
8651         [ZVA_MACRO]: Use zva_macro.
8652         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
8653         Add memset_generic and memset_falkor.
8654         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8655         (__libc_ifunc_impl_list): Add memset ifuncs.
8656         * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
8657         local variable zva_size.
8658         * sysdeps/aarch64/multiarch/memset.c: New file.
8659         * sysdeps/aarch64/multiarch/memset_generic.S: New file.
8660         * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
8661         * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
8662         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8663         (DCZID_DZP_MASK): New macro.
8664         (DCZID_BS_MASK): Likewise.
8665         (init_cpu_features): Read and set zva_size.
8666         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
8667         (struct cpu_features): New member zva_size.
8669         * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
8670         * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
8671         * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
8673         * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
8674         backwards.  Fix timing computation.
8675         * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
8676         * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
8677         on memset by N at a time.  Fix timing computation.
8679 2017-11-20  Florian Weimer  <fweimer@redhat.com>
8681         * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
8682         MADV_HUGEPAGE, MADV_NOHUGEPAGE.
8684 2017-11-19  Florian Weimer  <fweimer@redhat.com>
8686         manual: Document mprotect
8687         * manual/memory.texi (Memory Protection): New section.
8688         * manual/llio.texi (Memory-mapped I/O): Remove duplicate
8689         documentation of PROT_* flags and reference the Memory Protection
8690         section instead.
8692 2017-11-19  Florian Weimer  <fweimer@redhat.com>
8694         * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
8695         pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
8696         (Scatter-Gather): ... to here.  Remove misleading comment.
8698 2017-11-18  Christian Brauner  <christian.brauner@ubuntu.com>
8700         * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
8701         style.
8703         * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
8704         when /proc/<pid>/setgroups does not exist.
8706 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8708         * sysdeps/unix/sysv/linux/tst-ttyname.c
8709         (become_root_in_mount_ns): Remove.
8710         (do_in_chroot_1): Call support_enter_mount_namespace.
8711         (do_in_chroot_2): Likewise.
8712         (do_test): Call support_become_root early.
8714 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8716         * support/namespace.h (support_enter_mount_namespace): Declare.
8717         * support/support_enter_mount_namespace.c: New file.
8718         * support/Makefile (libsupport-routines): Add
8719         support_enter_mount_namespace.
8721 2017-11-18  Florian Weimer  <fweimer@redhat.com>
8723         * support/temp_file.c (support_create_temp_directory): Use
8724         test_dir and do not rely on the presence of the XXXXXX suffix.
8725         * support/temp_file.h (support_create_temp_directory): Update
8726         comment.
8727         * support/tst-xreadlink.c (do_test): Adjust.
8728         * support/support_chroot.c (support_chroot_create): Likewise.
8730 2017-11-17  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8732         * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
8733         macro.
8734         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
8735         htm-no-suspend.
8737 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
8739         * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
8740         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
8741         * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
8742         (ceill): Define using libm_alias_ldouble.
8743         * sysdeps/x86_64/fpu/s_copysignl.S: Include
8744         <libm-alias-ldouble.h>.
8745         (copysignl): Define using libm_alias_ldouble.
8746         * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
8747         (fabsl): Define using libm_alias_ldouble.
8748         * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
8749         (floorl): Define using libm_alias_ldouble.
8750         * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
8751         (fmaxl): Define using libm_alias_ldouble.
8752         * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
8753         (fminl): Define using libm_alias_ldouble.
8754         * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
8755         (llrintl): Define using libm_alias_ldouble.
8756         (lrintl): Likewise.
8757         * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
8758         <libm-alias-ldouble.h>.
8759         (nearbyintl): Define using libm_alias_ldouble.
8760         * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
8761         (truncl): Define using libm_alias_ldouble.
8762         * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
8763         <libm-alias-ldouble.h>.
8764         (lrintl): Define using libm_alias_ldouble.
8766         * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
8767         [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
8768         * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
8769         (asinhl): Define using libm_alias_ldouble.
8770         * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
8771         (atanl): Define using libm_alias_ldouble.
8772         * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
8773         (cbrtl): Define using libm_alias_ldouble.
8774         * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
8775         (ceill): Define using libm_alias_ldouble.
8776         * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
8777         (copysignl): Define using libm_alias_ldouble.
8778         * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
8779         (fabsl): Define using libm_alias_ldouble.
8780         * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
8781         (floorl): Define using libm_alias_ldouble.
8782         * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
8783         (fmaxl): Define using libm_alias_ldouble.
8784         * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
8785         (fminl): Define using libm_alias_ldouble.
8786         * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
8787         (frexpl): Define using libm_alias_ldouble.
8788         * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
8789         (llrintl): Define using libm_alias_ldouble.
8790         * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
8791         (logbl): Define using libm_alias_ldouble.
8792         * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
8793         (lrintl): Define using libm_alias_ldouble.
8794         * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
8795         (nearbyintl): Define using libm_alias_ldouble.
8796         * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
8797         (nextafterl): Define using libm_alias_ldouble.
8798         * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
8799         (remquol): Define using libm_alias_ldouble.
8800         * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
8801         (rintl): Define using libm_alias_ldouble.
8802         * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
8803         (truncl): Define using libm_alias_ldouble.
8804         * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
8805         (fmaxl): Define using libm_alias_ldouble.
8806         * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
8807         (fminl): Define using libm_alias_ldouble.
8809         * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
8810         to C syntax instead of availability and properties of types.
8811         * bits/floatn.h [!__ASSEMBLER]: Likewise.
8812         * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
8813         * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
8814         * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
8815         * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
8816         * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
8818 2017-11-17  Florian Weimer  <fweimer@redhat.com>
8820         support_become_root: Enable file creation in namespaces.
8821         * support/support_become_root.c (setup_mapping): New function.
8822         (support_become_root): Call it.
8824 2017-11-17  Joseph Myers  <joseph@codesourcery.com>
8826         * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
8827         macro.
8829 2017-11-16  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8831         * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
8832         CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
8834 2017-11-16  Joseph Myers  <joseph@codesourcery.com>
8836         * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
8838         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8839         version to 4.14.
8841 2017-11-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8843         * INSTALL: Fix botched up regeneration.
8845         * NEWS: Update sourceare link to https.
8846         * configure.ac: Likewise.
8847         * crypt/md5test-giant.c: Likewise.
8848         * dlfcn/bug-atexit1.c: Likewise.
8849         * dlfcn/bug-atexit2.c: Likewise.
8850         * localedata/README: Likewise.
8851         * malloc/tst-mallocfork.c: Likewise.
8852         * manual/install.texi: Likewise.
8853         * nptl/tst-pthread-getattr.c: Likewise.
8854         * stdio-common/tst-fgets.c: Likewise.
8855         * stdio-common/tst-fwrite.c: Likewise.
8856         * sunrpc/Makefile: Likewise.
8857         * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
8858         * wcsmbs/tst-mbrtowc2.c: Likewise.
8859         * configure: Regenerate.
8860         * INSTALL: Regenerate.
8862 2017-11-15  Martin Sebor  <msebor@redhat.com>
8864         * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
8865         * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
8866         * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
8868 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
8870         [BZ #22145]
8871         * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
8872         * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
8874         [BZ #22145]
8875         * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
8876         Defer is_pty check until end of the function.
8877         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
8879         [BZ #22145]
8880         * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
8881         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
8882         (ttyname): Likewise.
8883         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
8884         (__ttyname_r): Likewise.
8886         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
8887         int to bool.
8889         * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
8891         * manual/terminal.texi (Is It a Terminal):
8892         Mention ENODEV for ttyname and ttyname_r.
8894 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8896         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
8897         constant and macro.
8899         * sysdeps/unix/sysv/linux/bits/mman-linux.h
8900         [__USE_MISC] (MADV_WIPEONFORK): New macro.
8901         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8902         * sysdeps/unix/sysv/linux/hppa/bits/mman.h
8903         [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8904         [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8906 2017-11-15  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8908         * signal/sigrelse.c (sigrelse): Optimize implementation.
8910         * sysdeps/posix/sigpause.c (do_sigpause): Remove.
8911         (__sigpause): Rely on __sigsuspend to implement single thread
8912         optimization.  Add LIBC_CANCEL_HANDLED for cancellation marking.
8914 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8916         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8917         kernel version to 4.14.
8919 2017-11-15  Steve Ellcey  <sellcey@cavium.com>
8921         [BZ #22442]
8922         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
8923         Check if ifname is too long.
8925 2017-11-15  Luke Shumaker  <lukeshu@parabola.nu>
8927         * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
8929 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
8931         * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
8932         was accidentally lost.
8934 2017-11-15  Mike FABIAN  <mfabian@redhat.com>
8936         * localedata/locales/az_IR: Add standard copyright header.
8938 2017-11-15  Florian Weimer  <fweimer@redhat.com>
8940         [BZ #22439]
8941         * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
8942         not just the top one.  Output a new "subheaps" statistic.
8944 2017-11-15  Florian Weimer  <fweimer@redhat.com>
8946         [BZ #22408]
8947         * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
8948         under the per-arena lock.
8949         * malloc/Makefile (tests): Add tst-malloc_info.
8950         (tst-malloc_info): Link with libpthread.
8951         * malloc/tst-malloc_info.c: New file.
8953 2017-11-15  Joseph Myers  <joseph@codesourcery.com>
8955         [BZ #21660]
8956         * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
8957         [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
8958         [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
8959         [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
8960         [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
8961         [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
8962         [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
8963         [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
8964         [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
8965         [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
8966         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
8967         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
8968         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
8969         [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
8970         [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
8971         [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
8972         (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
8973         (__floating_type): Likewise.
8974         (__real_integer_type): Likewise.
8975         (__complex_integer_type): Likewise.
8976         (__expr_is_real): Likewise.
8977         (__tgmath_real_type_sub): Likewise.
8978         (__tgmath_real_type): Likewise.
8979         (__tgmath_complex_type_sub): Likewise.
8980         (__tgmath_complex_type): Likewise.
8981         (__TGMATH_F128): Likewise.
8982         (__TGMATH_CF128): Likewise.
8983         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
8984         new macros.
8985         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
8986         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
8987         Likewise.
8988         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
8989         Likewise.
8990         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
8991         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8992         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8993         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
8994         Likewise.
8995         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8996         [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
8997         Likewise.
8998         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
8999         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
9000         [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
9001         Likewise.
9002         [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
9003         (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
9004         (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
9005         (cimag): Likewise.
9006         (creal): Likewise.
9008 2017-11-14  Joseph Myers  <joseph@codesourcery.com>
9010         * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
9011         for stpncpy calls for GCC 8.
9012         (test_strncat): Disable -Wstringop-truncation warning for strncat
9013         calls for GCC 8.  Disable -Wstringop-overflow= warning for one
9014         strncat call for GCC 7.
9015         (test_strncpy): Disable -Wstringop-truncation warning for strncpy
9016         calls for GCC 8.
9017         (test_memcmp): Use memcpy instead of strncpy for calls not copying
9018         trailing NUL.
9020         * string/bug-strncat1.c: Include <libc-diag.h>.
9021         (main): Disable -Wstringop-truncation for strncat call for GCC 8.
9023 2017-11-13  Claude Paroz  <claude@2xlibre.net>
9025         [BZ #22387]
9026         * localedata/locales/aa_DJ: Improved readibility by replacing
9027         <Uxxxx> sequences in the ASCII printable range by their ASCII
9028         character equivalents.
9029         * localedata/locales/aa_ER: Likewise.
9030         * localedata/locales/aa_ER@saaho: Likewise.
9031         * localedata/locales/aa_ET: Likewise.
9032         * localedata/locales/af_ZA: Likewise.
9033         * localedata/locales/agr_PE: Likewise.
9034         * localedata/locales/ak_GH: Likewise.
9035         * localedata/locales/am_ET: Likewise.
9036         * localedata/locales/anp_IN: Likewise.
9037         * localedata/locales/ar_AE: Likewise.
9038         * localedata/locales/ar_BH: Likewise.
9039         * localedata/locales/ar_DZ: Likewise.
9040         * localedata/locales/ar_EG: Likewise.
9041         * localedata/locales/ar_IN: Likewise.
9042         * localedata/locales/ar_IQ: Likewise.
9043         * localedata/locales/ar_JO: Likewise.
9044         * localedata/locales/ar_KW: Likewise.
9045         * localedata/locales/ar_LB: Likewise.
9046         * localedata/locales/ar_LY: Likewise.
9047         * localedata/locales/ar_MA: Likewise.
9048         * localedata/locales/ar_OM: Likewise.
9049         * localedata/locales/ar_QA: Likewise.
9050         * localedata/locales/ar_SA: Likewise.
9051         * localedata/locales/ar_SD: Likewise.
9052         * localedata/locales/ar_SS: Likewise.
9053         * localedata/locales/ar_SY: Likewise.
9054         * localedata/locales/ar_TN: Likewise.
9055         * localedata/locales/ar_YE: Likewise.
9056         * localedata/locales/as_IN: Likewise.
9057         * localedata/locales/ast_ES: Likewise.
9058         * localedata/locales/ayc_PE: Likewise.
9059         * localedata/locales/az_AZ: Likewise.
9060         * localedata/locales/az_IR: Likewise.
9061         * localedata/locales/be_BY: Likewise.
9062         * localedata/locales/be_BY@latin: Likewise.
9063         * localedata/locales/bem_ZM: Likewise.
9064         * localedata/locales/ber_DZ: Likewise.
9065         * localedata/locales/ber_MA: Likewise.
9066         * localedata/locales/bg_BG: Likewise.
9067         * localedata/locales/bhb_IN: Likewise.
9068         * localedata/locales/bho_IN: Likewise.
9069         * localedata/locales/bi_VU: Likewise.
9070         * localedata/locales/bn_BD: Likewise.
9071         * localedata/locales/bn_IN: Likewise.
9072         * localedata/locales/bo_CN: Likewise.
9073         * localedata/locales/bo_IN: Likewise.
9074         * localedata/locales/br_FR: Likewise.
9075         * localedata/locales/brx_IN: Likewise.
9076         * localedata/locales/bs_BA: Likewise.
9077         * localedata/locales/byn_ER: Likewise.
9078         * localedata/locales/ca_AD: Likewise.
9079         * localedata/locales/ca_ES: Likewise.
9080         * localedata/locales/ca_FR: Likewise.
9081         * localedata/locales/ca_IT: Likewise.
9082         * localedata/locales/ce_RU: Likewise.
9083         * localedata/locales/chr_US: Likewise.
9084         * localedata/locales/cmn_TW: Likewise.
9085         * localedata/locales/crh_UA: Likewise.
9086         * localedata/locales/cs_CZ: Likewise.
9087         * localedata/locales/csb_PL: Likewise.
9088         * localedata/locales/cv_RU: Likewise.
9089         * localedata/locales/cy_GB: Likewise.
9090         * localedata/locales/da_DK: Likewise.
9091         * localedata/locales/de_AT: Likewise.
9092         * localedata/locales/de_BE: Likewise.
9093         * localedata/locales/de_CH: Likewise.
9094         * localedata/locales/de_DE: Likewise.
9095         * localedata/locales/de_IT: Likewise.
9096         * localedata/locales/de_LI: Likewise.
9097         * localedata/locales/de_LU: Likewise.
9098         * localedata/locales/doi_IN: Likewise.
9099         * localedata/locales/dv_MV: Likewise.
9100         * localedata/locales/dz_BT: Likewise.
9101         * localedata/locales/el_CY: Likewise.
9102         * localedata/locales/el_GR: Likewise.
9103         * localedata/locales/en_AG: Likewise.
9104         * localedata/locales/en_AU: Likewise.
9105         * localedata/locales/en_BW: Likewise.
9106         * localedata/locales/en_CA: Likewise.
9107         * localedata/locales/en_DK: Likewise.
9108         * localedata/locales/en_GB: Likewise.
9109         * localedata/locales/en_HK: Likewise.
9110         * localedata/locales/en_IE: Likewise.
9111         * localedata/locales/en_IL: Likewise.
9112         * localedata/locales/en_IN: Likewise.
9113         * localedata/locales/en_NG: Likewise.
9114         * localedata/locales/en_NZ: Likewise.
9115         * localedata/locales/en_PH: Likewise.
9116         * localedata/locales/en_SG: Likewise.
9117         * localedata/locales/en_US: Likewise.
9118         * localedata/locales/en_ZA: Likewise.
9119         * localedata/locales/en_ZM: Likewise.
9120         * localedata/locales/en_ZW: Likewise.
9121         * localedata/locales/eo: Likewise.
9122         * localedata/locales/es_AR: Likewise.
9123         * localedata/locales/es_BO: Likewise.
9124         * localedata/locales/es_CL: Likewise.
9125         * localedata/locales/es_CO: Likewise.
9126         * localedata/locales/es_CR: Likewise.
9127         * localedata/locales/es_CU: Likewise.
9128         * localedata/locales/es_DO: Likewise.
9129         * localedata/locales/es_EC: Likewise.
9130         * localedata/locales/es_ES: Likewise.
9131         * localedata/locales/es_GT: Likewise.
9132         * localedata/locales/es_HN: Likewise.
9133         * localedata/locales/es_MX: Likewise.
9134         * localedata/locales/es_NI: Likewise.
9135         * localedata/locales/es_PA: Likewise.
9136         * localedata/locales/es_PE: Likewise.
9137         * localedata/locales/es_PR: Likewise.
9138         * localedata/locales/es_PY: Likewise.
9139         * localedata/locales/es_SV: Likewise.
9140         * localedata/locales/es_US: Likewise.
9141         * localedata/locales/es_UY: Likewise.
9142         * localedata/locales/es_VE: Likewise.
9143         * localedata/locales/et_EE: Likewise.
9144         * localedata/locales/eu_ES: Likewise.
9145         * localedata/locales/eu_ES@euro: Likewise.
9146         * localedata/locales/fa_IR: Likewise.
9147         * localedata/locales/ff_SN: Likewise.
9148         * localedata/locales/fi_FI: Likewise.
9149         * localedata/locales/fil_PH: Likewise.
9150         * localedata/locales/fo_FO: Likewise.
9151         * localedata/locales/fr_BE: Likewise.
9152         * localedata/locales/fr_CA: Likewise.
9153         * localedata/locales/fr_CH: Likewise.
9154         * localedata/locales/fr_FR: Likewise.
9155         * localedata/locales/fr_LU: Likewise.
9156         * localedata/locales/fur_IT: Likewise.
9157         * localedata/locales/fy_DE: Likewise.
9158         * localedata/locales/fy_NL: Likewise.
9159         * localedata/locales/ga_IE: Likewise.
9160         * localedata/locales/gd_GB: Likewise.
9161         * localedata/locales/gez_ER: Likewise.
9162         * localedata/locales/gez_ET: Likewise.
9163         * localedata/locales/gl_ES: Likewise.
9164         * localedata/locales/gu_IN: Likewise.
9165         * localedata/locales/gv_GB: Likewise.
9166         * localedata/locales/ha_NG: Likewise.
9167         * localedata/locales/hak_TW: Likewise.
9168         * localedata/locales/he_IL: Likewise.
9169         * localedata/locales/hi_IN: Likewise.
9170         * localedata/locales/hif_FJ: Likewise.
9171         * localedata/locales/hne_IN: Likewise.
9172         * localedata/locales/hr_HR: Likewise.
9173         * localedata/locales/hsb_DE: Likewise.
9174         * localedata/locales/ht_HT: Likewise.
9175         * localedata/locales/hu_HU: Likewise.
9176         * localedata/locales/hy_AM: Likewise.
9177         * localedata/locales/i18n: Likewise.
9178         * localedata/locales/ia_FR: Likewise.
9179         * localedata/locales/id_ID: Likewise.
9180         * localedata/locales/ig_NG: Likewise.
9181         * localedata/locales/ik_CA: Likewise.
9182         * localedata/locales/is_IS: Likewise.
9183         * localedata/locales/it_CH: Likewise.
9184         * localedata/locales/it_IT: Likewise.
9185         * localedata/locales/iu_CA: Likewise.
9186         * localedata/locales/ja_JP: Likewise.
9187         * localedata/locales/ka_GE: Likewise.
9188         * localedata/locales/kk_KZ: Likewise.
9189         * localedata/locales/kl_GL: Likewise.
9190         * localedata/locales/kn_IN: Likewise.
9191         * localedata/locales/ko_KR: Likewise.
9192         * localedata/locales/kok_IN: Likewise.
9193         * localedata/locales/ks_IN: Likewise.
9194         * localedata/locales/ks_IN@devanagari: Likewise.
9195         * localedata/locales/ku_TR: Likewise.
9196         * localedata/locales/kw_GB: Likewise.
9197         * localedata/locales/ky_KG: Likewise.
9198         * localedata/locales/lb_LU: Likewise.
9199         * localedata/locales/lg_UG: Likewise.
9200         * localedata/locales/li_BE: Likewise.
9201         * localedata/locales/li_NL: Likewise.
9202         * localedata/locales/lij_IT: Likewise.
9203         * localedata/locales/ln_CD: Likewise.
9204         * localedata/locales/lo_LA: Likewise.
9205         * localedata/locales/lt_LT: Likewise.
9206         * localedata/locales/lv_LV: Likewise.
9207         * localedata/locales/lzh_TW: Likewise.
9208         * localedata/locales/mag_IN: Likewise.
9209         * localedata/locales/mai_IN: Likewise.
9210         * localedata/locales/mg_MG: Likewise.
9211         * localedata/locales/mhr_RU: Likewise.
9212         * localedata/locales/mi_NZ: Likewise.
9213         * localedata/locales/mk_MK: Likewise.
9214         * localedata/locales/ml_IN: Likewise.
9215         * localedata/locales/mn_MN: Likewise.
9216         * localedata/locales/mni_IN: Likewise.
9217         * localedata/locales/mr_IN: Likewise.
9218         * localedata/locales/ms_MY: Likewise.
9219         * localedata/locales/mt_MT: Likewise.
9220         * localedata/locales/my_MM: Likewise.
9221         * localedata/locales/nan_TW: Likewise.
9222         * localedata/locales/nan_TW@latin: Likewise.
9223         * localedata/locales/nb_NO: Likewise.
9224         * localedata/locales/nds_DE: Likewise.
9225         * localedata/locales/nds_NL: Likewise.
9226         * localedata/locales/ne_NP: Likewise.
9227         * localedata/locales/nhn_MX: Likewise.
9228         * localedata/locales/niu_NU: Likewise.
9229         * localedata/locales/niu_NZ: Likewise.
9230         * localedata/locales/nl_AW: Likewise.
9231         * localedata/locales/nl_BE: Likewise.
9232         * localedata/locales/nl_NL: Likewise.
9233         * localedata/locales/nn_NO: Likewise.
9234         * localedata/locales/nr_ZA: Likewise.
9235         * localedata/locales/nso_ZA: Likewise.
9236         * localedata/locales/oc_FR: Likewise.
9237         * localedata/locales/om_ET: Likewise.
9238         * localedata/locales/om_KE: Likewise.
9239         * localedata/locales/or_IN: Likewise.
9240         * localedata/locales/os_RU: Likewise.
9241         * localedata/locales/pa_IN: Likewise.
9242         * localedata/locales/pa_PK: Likewise.
9243         * localedata/locales/pap_AW: Likewise.
9244         * localedata/locales/pap_CW: Likewise.
9245         * localedata/locales/pl_PL: Likewise.
9246         * localedata/locales/ps_AF: Likewise.
9247         * localedata/locales/pt_BR: Likewise.
9248         * localedata/locales/pt_PT: Likewise.
9249         * localedata/locales/quz_PE: Likewise.
9250         * localedata/locales/raj_IN: Likewise.
9251         * localedata/locales/ro_RO: Likewise.
9252         * localedata/locales/ru_RU: Likewise.
9253         * localedata/locales/ru_UA: Likewise.
9254         * localedata/locales/rw_RW: Likewise.
9255         * localedata/locales/sa_IN: Likewise.
9256         * localedata/locales/sat_IN: Likewise.
9257         * localedata/locales/sc_IT: Likewise.
9258         * localedata/locales/sd_IN: Likewise.
9259         * localedata/locales/sd_IN@devanagari: Likewise.
9260         * localedata/locales/se_NO: Likewise.
9261         * localedata/locales/sgs_LT: Likewise.
9262         * localedata/locales/shs_CA: Likewise.
9263         * localedata/locales/si_LK: Likewise.
9264         * localedata/locales/sid_ET: Likewise.
9265         * localedata/locales/sk_SK: Likewise.
9266         * localedata/locales/sl_SI: Likewise.
9267         * localedata/locales/sm_WS: Likewise.
9268         * localedata/locales/so_DJ: Likewise.
9269         * localedata/locales/so_ET: Likewise.
9270         * localedata/locales/so_KE: Likewise.
9271         * localedata/locales/so_SO: Likewise.
9272         * localedata/locales/sq_AL: Likewise.
9273         * localedata/locales/sq_MK: Likewise.
9274         * localedata/locales/sr_ME: Likewise.
9275         * localedata/locales/sr_RS: Likewise.
9276         * localedata/locales/sr_RS@latin: Likewise.
9277         * localedata/locales/ss_ZA: Likewise.
9278         * localedata/locales/st_ZA: Likewise.
9279         * localedata/locales/sv_FI: Likewise.
9280         * localedata/locales/sv_SE: Likewise.
9281         * localedata/locales/sw_KE: Likewise.
9282         * localedata/locales/sw_TZ: Likewise.
9283         * localedata/locales/szl_PL: Likewise.
9284         * localedata/locales/ta_IN: Likewise.
9285         * localedata/locales/ta_LK: Likewise.
9286         * localedata/locales/tcy_IN: Likewise.
9287         * localedata/locales/te_IN: Likewise.
9288         * localedata/locales/tg_TJ: Likewise.
9289         * localedata/locales/th_TH: Likewise.
9290         * localedata/locales/the_NP: Likewise.
9291         * localedata/locales/ti_ER: Likewise.
9292         * localedata/locales/ti_ET: Likewise.
9293         * localedata/locales/tig_ER: Likewise.
9294         * localedata/locales/tk_TM: Likewise.
9295         * localedata/locales/tl_PH: Likewise.
9296         * localedata/locales/tn_ZA: Likewise.
9297         * localedata/locales/to_TO: Likewise.
9298         * localedata/locales/tpi_PG: Likewise.
9299         * localedata/locales/tr_CY: Likewise.
9300         * localedata/locales/tr_TR: Likewise.
9301         * localedata/locales/ts_ZA: Likewise.
9302         * localedata/locales/tt_RU: Likewise.
9303         * localedata/locales/tt_RU@iqtelif: Likewise.
9304         * localedata/locales/ug_CN: Likewise.
9305         * localedata/locales/uk_UA: Likewise.
9306         * localedata/locales/unm_US: Likewise.
9307         * localedata/locales/ur_IN: Likewise.
9308         * localedata/locales/ur_PK: Likewise.
9309         * localedata/locales/uz_UZ: Likewise.
9310         * localedata/locales/uz_UZ@cyrillic: Likewise.
9311         * localedata/locales/ve_ZA: Likewise.
9312         * localedata/locales/vi_VN: Likewise.
9313         * localedata/locales/wa_BE: Likewise.
9314         * localedata/locales/wae_CH: Likewise.
9315         * localedata/locales/wal_ET: Likewise.
9316         * localedata/locales/wo_SN: Likewise.
9317         * localedata/locales/xh_ZA: Likewise.
9318         * localedata/locales/yi_US: Likewise.
9319         * localedata/locales/yo_NG: Likewise.
9320         * localedata/locales/yue_HK: Likewise.
9321         * localedata/locales/yuw_PG: Likewise.
9322         * localedata/locales/zh_CN: Likewise.
9323         * localedata/locales/zh_HK: Likewise.
9324         * localedata/locales/zh_SG: Likewise.
9325         * localedata/locales/zh_TW: Likewise.
9326         * localedata/locales/zu_ZA: Likewise.
9328 2017-11-13  Florian Weimer  <fweimer@redhat.com>
9330         * support/next_to_fault.h, support/next_to_fault.c: New files.
9331         * support/Makefile (libsupport-routines): Add next_to_fault.
9332         * resolv/tst-inet_pton.c (struct next_to_fault)
9333         (next_to_fault_allocate, next_to_fault_free): Remove.
9334         (run_one_test): Switch to <support/next_to_fault.h> interfaces.
9336 2017-11-13  H.J. Lu  <hongjiu.lu@intel.com>
9338         * elf/dl-support.c: Include <dl-procruntime.c>.
9339         * include/link.h: Include <link_map.h>.
9340         * sysdeps/generic/dl-procruntime.c: New file.
9341         * sysdeps/generic/link_map.h: Likewise.
9342         * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
9343         the writable ld.so namespace.
9345 2017-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9347         timezone: pacify GCC -Wstringop-truncation
9348         Problem reported by Martin Sebor in:
9349         https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
9350         * timezone/zic.c (writezone): Use memcpy, not strncpy.
9352 2017-11-12  Florian Weimer  <fweimer@redhat.com>
9354         * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
9355         tst-xreadlink.
9356         (tests): Add tst-xreadlink.
9357         * support/support.h (xstrndup): Declare.
9358         * support/xunistd.h (xunlink, xreadlink): Declare.
9359         * support/temp_file.h (support_create_temp_directory): Declare.
9360         * support/temp_file.c (support_create_temp_directory): New function.
9361         * support/support_chroot.c (support_chroot_create): Use it.
9362         * support/xreadlink.c: New file.
9363         * support/xstrndup.c: Likewise.
9364         * support/xunlink.c: Likewise.
9365         * support/tst-xreadlink.c: Likewise.
9367 2017-11-11  John David Anglin  <danglin@gcc.gnu.org>
9369         * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
9371 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9373         [BZ #22409]
9374         [BZ #22412]
9375         * resolv/res_comp.c (printable_string, binary_hnok)
9376         (binary_leading_dash): New functions.
9377         (res_hnok): Reimplement using these functions and ns_name_pton.
9378         (res_ownok): Likewise.
9379         (res_mailok): Reimplement using printable_string, ns_name_pton and
9380         binary_hnok.
9381         (res_dnok): Reimplement using printable_string and ns_name_pton.
9382         * resolv/tst-res_hnok.c (tests): Add additional tests.
9383         (LETTERDIGITS, PRINTABLE): Define.
9384         (do_test): Adjust one_char results.
9386 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9388         [BZ #22413]
9389         * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
9390         * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
9392 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9394         * resolv/tst-ns_name_pton.c: New file.
9395         * resolv/Makefile (tests): Add tst-ns_name_pton.
9396         (tst-ns_name_pton): Link against libresolv.
9398 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9400         * resolv/tst-res_hnok.c: New file.
9401         * resolv/Makefile (tests): Add tst-res_hnok.
9402         (tst-res_hnok): Link against libresolv.
9404 2017-11-11  Florian Weimer  <fweimer@redhat.com>
9406         * resolv/tst-resolv-network.c: Use test framework instead explicit
9407         main function.
9409 2017-11-09  H.J. Lu  <hongjiu.lu@intel.com>
9411         * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
9412         <jmp_buf-macros.h>.
9413         [!_ISOMAC] (STR_HELPER): New.
9414         [!_ISOMAC] (STR): Likewise.
9415         [!_ISOMAC] (TEST_SIZE): Likewise.
9416         [!_ISOMAC] (TEST_ALIGN): Likewise.
9417         [!_ISOMAC] (TEST_OFFSET): Likewise.
9418         [!_ISOMAC] Add _Static_assert to check sizes, alignments and
9419         field offsets of jmp_buf as well as sigjmp_buf.
9420         * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
9421         * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
9422         * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
9423         * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
9424         * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
9425         * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
9426         * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
9427         * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
9428         * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
9429         * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
9430         Likewise.
9431         * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
9432         Likewise.
9433         * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
9434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
9435         Likewise.
9436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
9437         Likewise.
9438         * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
9439         * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
9440         * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
9441         * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
9442         * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
9443         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
9444         Likewise.
9445         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
9446         Likewise.
9447         * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
9448         * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
9449         * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
9451 2017-11-07  Joseph Myers  <joseph@codesourcery.com>
9453         * include/float.h
9454         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9455         && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
9456         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9457         && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
9458         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9459         && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
9460         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9461         && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
9462         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9463         && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
9464         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9465         && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
9466         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9467         && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
9468         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9469         && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
9470         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9471         && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
9472         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9473         && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
9474         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9475         && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
9476         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9477         && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
9478         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9479         && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
9480         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9481         && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
9482         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9483         && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
9484         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9485         && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
9486         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9487         && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
9488         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9489         && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
9490         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9491         && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
9492         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9493         && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
9494         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9495         && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
9496         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9497         && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
9498         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9499         && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
9500         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9501         && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
9502         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9503         && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
9504         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9505         && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
9506         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9507         && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
9508         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9509         && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
9510         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9511         && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
9512         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9513         && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
9514         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9515         && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
9516         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9517         && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
9518         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9519         && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
9520         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9521         && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
9522         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9523         && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
9524         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9525         && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
9526         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9527         && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
9528         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9529         && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
9530         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9531         && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
9532         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9533         && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
9534         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9535         && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
9536         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9537         && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
9538         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9539         && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
9540         [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
9541         && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
9543         * stdlib/tst-strtod.h (F16): New macro.
9544         (F32): Likewise.
9545         (F64): Likewise.
9546         (F32X): Likewise.
9547         (F64X): Likewise.
9548         (F128X): Likewise.
9549         (IF_FLOAT16): Likewise.
9550         (IF_FLOAT32): Likewise.
9551         (IF_FLOAT64): Likewise.
9552         (IF_FLOAT32X): Likewise.
9553         (IF_FLOAT64X): Likewise.
9554         (IF_FLOAT128X): Likewise.
9555         (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
9556         _Float32, _Float64, _Float32x, _Float64x and _Float128x.
9557         (STRTOD_TEST_FOREACH): Likewise.
9558         * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
9559         (CHOOSE_f64): Likewise.
9560         (CHOOSE_f32x): Likewise.
9561         (CHOOSE_f64x): Likewise.
9563 2017-11-07  Andreas Schwab  <schwab@suse.de>
9565         * nptl/Makefile (tests-internal): Remove tst-typesizes.
9567 2017-11-07  Mike FABIAN  <mfabian@redhat.com>
9569         [BZ #22403]
9570         * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
9571         to be escaped.
9572         * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
9573         to be escaped.
9575 2017-11-07  Claude Paroz  <claude@2xlibre.net>
9577         [BZ #22403]
9578         * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
9579         to be escaped.
9580         * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
9581         to be escaped.
9582         * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
9583         to be escaped.
9585 2017-11-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9587         [BZ #22298]
9588         * nptl/allocatestack.c (allocate_stack): Check if
9589         __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
9590         __PTHREAD_MUTEX_HAVE_PREV is defined.
9591         * nptl/descr.h (pthread): Likewise.
9592         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
9593         Likewise.
9594         * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
9595         * sysdeps/nptl/fork.c (__libc_fork): Likewise.
9596         * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
9597         * sysdeps/nptl/bits/thread-shared-types.h
9598         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
9599         defines.
9600         (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
9601         of __WORDSIZE for internal layout.
9602         (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
9603         of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
9604         instead of __WORDSIZE whether to use an union for __spins and __list
9605         fields.
9606         (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
9607         case.
9608         * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
9609         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
9610         defines.
9611         * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
9612         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9613         Likewise.
9614         * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
9615         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9616         Likewise.
9617         * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
9618         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9619         Likewise.
9620         * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
9621         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9622         Likewise.
9623         * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
9624         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9625         Likewise.
9626         * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
9627         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9628         Likewise.
9629         * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
9630         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9631         Likewise.
9632         * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
9633         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9634         Likewise.
9635         * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
9636         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9637         Likewise.
9638         * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
9639         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9640         Likewise.
9641         * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
9642         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9643         Likewise.
9644         * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
9645         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9646         Likewise.
9647         * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
9648         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9649         Likewise.
9650         * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
9651         (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
9652         Likewise.
9654         * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
9655         New macros.
9656         * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
9657         checks for expected input type size.
9658         * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
9659         * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
9660         Likewise.
9661         * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
9662         * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
9663         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
9664         * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
9665         * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
9666         * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
9667         * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
9668         * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
9669         superflous runtime assert check.
9670         * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
9671         Likewise.
9672         * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
9673         Likewise.
9674         * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
9675         Likewise.
9676         * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
9677         Likewise.
9678         * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
9679         Likewise.
9680         * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
9681         Likewise.
9682         * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
9683         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
9684         * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
9685         Likewise.
9686         * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
9687         Likewise.
9688         * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
9689         Likewise.
9690         * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
9691         Likewise.
9692         * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
9693         Likewise.
9694         * nptl/pthread_attr_setinheritsched.c
9695         (__pthread_attr_setinheritsched): Likewise.
9696         * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
9697         Likewise.
9698         * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
9699         Likewise.
9700         * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
9701         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
9702         __old_pthread_attr_setstack): Likewise.
9703         * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
9704         Likewise.
9705         * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
9706         Likewise.
9707         * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
9708         Likewise.
9709         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
9710         * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
9711         Likewise.
9712         * nptl/tst-typesizes.c: Remove file.
9714         * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
9715         ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
9716         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
9717         checks for internal pthread_mutex_t offsets.
9718         * sysdeps/aarch64/nptl/pthread-offsets.h
9719         (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
9720         __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
9721         __PTHREAD_MUTEX_LIST_OFFSET): New macro.
9722         * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
9723         * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
9724         * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
9725         * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
9726         * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
9727         * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
9728         * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
9729         * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
9730         * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
9731         * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
9732         * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
9733         * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
9734         * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
9735         * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
9736         * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
9738 2017-11-07  Florian Weimer  <fweimer@redhat.com>
9740         * bits/mman-linux.h: Move ...
9741         * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here.  Update
9742         comment.
9743         * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
9744         outdated comment.
9746 2017-11-07  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
9748         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
9749         Redefine STRNLEN as __strnlen_power8.
9751 2017-11-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
9753         * signal/sighold.c (sighold): Optimize implementation.
9755         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
9756         __NR_rt_sigqueueinfo.
9758         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
9759         __sigtimedwait.
9760         * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
9761         assume __NR_rt_sigtimedwait.
9762         * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
9763         and add LIBC_CANCEL_HANDLED for cancellation marking.
9764         * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
9766         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
9767         (sysdeps_routines): Add memchr_noneon.
9768         * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
9769         * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
9770         * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
9771         * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
9772         * sysdeps/arm/armv7/multiarch/memchr.c: New file.
9773         * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
9774         * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
9776         * sysdeps/arm/arm-ifunc.h: New file.
9777         * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
9778         * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
9779         * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
9780         * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
9781         * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
9782         (__memcpy_neon): Avoid create hidden alias.
9783         * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
9784         (__memcpy_vfp): Likewise.
9785         * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
9786         (sysdep_routines): Add memcpy_arm.
9787         * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
9789 2017-11-06  H.J. Lu  <hongjiu.lu@intel.com>
9791         [BZ #22362]
9792         * Makerules (make-link-multidir): New.
9793         * config.make.in (multidir): New.
9794         * configure.ac (libc_cv_multidir): New.  AC_SUBST.
9795         * configure: Regenerated.
9796         * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
9797         [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
9798         [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
9799         New target.
9801 2017-11-06  Joseph Myers  <joseph@codesourcery.com>
9803         [BZ #22402]
9804         * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
9805         [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
9807 2017-11-04  Mike FABIAN  <mfabian@redhat.com>
9809         * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
9810         to be escaped.
9812 2017-11-04  Florian Weimer  <fweimer@redhat.com>
9814         * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
9816 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
9818         * math/math.h [__HAVE_DISTINCT_FLOAT16
9819         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
9820         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
9821         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
9822         [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
9823         [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
9824         && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
9825         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
9826         (__MATH_TG_F32): New macro.
9827         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
9828         (__MATH_TG_F64X): Likewise.
9829         [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
9830         (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
9832 2017-11-03  Dmitry V. Levin  <ldv@altlinux.org>
9834         * po/de.po: Update translations.
9835         * po/ru.po: Likewise.
9837 2017-11-03  Florian Weimer  <fweimer@redhat.com>
9839         * manual/filesys.texi (Hard Links): Document linkat.
9841 2017-11-03  Joseph Myers  <joseph@codesourcery.com>
9843         * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
9844         || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
9845         || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
9846         || __HAVE_DISTINCT_FLOAT128X]: Use #error.
9847         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
9848         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
9849         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
9850         the same as _Float128.
9851         [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
9852         && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
9853         && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
9855         * stdlib/stdlib.h
9856         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
9857         Declare.
9858         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
9859         Likewise.
9860         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
9861         Likewise.
9862         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9863         (strtof32x): Likewise.
9864         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9865         (strtof64x): Likewise.
9866         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9867         (strtof128x): Likewise.
9868         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9869         (strfromf16): Likewise.
9870         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9871         (strfromf32): Likewise.
9872         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9873         (strfromf64): Likewise.
9874         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9875         (strfromf32x): Likewise.
9876         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9877         (strfromf64x): Likewise.
9878         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9879         (strfromf128x): Likewise.
9880         [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
9881         [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
9882         [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
9883         [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
9884         [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
9885         [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
9887 2017-11-03  Richard Henderson  <rth@twiddle.net>
9889         * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
9891 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9893         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
9895 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9897         * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
9898         DT_TLSDESC_GOT initialization.
9899         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
9900         (_dl_tlsdesc_resolve_hold): Likewise.
9901         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
9902         (_dl_tlsdesc_resolve_hold): Likewise.
9903         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
9904         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
9906 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9908         * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
9910 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9912         [BZ #18572]
9913         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
9914         non-lazily for R_ARM_TLS_DESC.
9916 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9918         [BZ #17078]
9919         * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
9920         R_ARM_TLS_DESC case.
9921         (elf_machine_lazy_rel): Remove the prelink check.
9923 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9925         * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
9926         DT_TLSDESC_GOT initialization.
9927         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
9928         (_dl_tlsdesc_resolve_rela): Likewise.
9929         (_dl_tlsdesc_resolve_hold): Likewise.
9930         (_dl_tlsdesc_undefweak): Remove ldar.
9931         (_dl_tlsdesc_dynamic): Likewise.
9932         * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
9933         (_dl_tlsdesc_resolve_rela): Likewise.
9934         (_dl_tlsdesc_resolve_hold): Likewise.
9935         * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
9936         (_dl_tlsdesc_resolve_hold_fixup): Likewise.
9937         (_dl_tlsdesc_resolve_rela): Likewise.
9938         (_dl_tlsdesc_resolve_hold): Likewise.
9940 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9942         * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
9943         binding and initialization non-lazily for R_AARCH64_TLSDESC.
9945 2017-11-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
9947         * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
9948         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9950 2017-11-02  Joseph Myers  <joseph@codesourcery.com>
9952         * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
9953         Declare.
9954         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
9955         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
9956         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
9957         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
9958         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
9959         [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
9960         [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
9961         [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
9962         [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
9963         [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
9964         [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
9966 2017-11-02  Mike FABIAN  <mfabian@redhat.com>
9968         [BZ #22382]
9969         * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
9970         * localedata/locales/tpi_PG: Add standard header.
9972 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9974         test-errno-linux: quotactl can fail with EPERM in containers.
9975         * sysdeps/unix/sysv/linux/test-errno-linux.c
9976         (LIST, LIST_FORWARD): New macros.
9977         (check_error_in_list): New function.
9978         (test_wrp_rv): Accept list of permitted error codes.
9979         (test_wrp_rv2): Remove.
9980         (test_wrp): Call test_wrp_rv with list of error codes.
9981         (test_wrp2): Accept list of error codes.
9982         (do_test): Adjust.  Allow EPERM for quotactl.
9984 2017-11-02  Florian Weimer  <fweimer@redhat.com>
9986         * stdio-common/bug16.c (do_test): Use array_length.
9987         * stdio-common/errlist.c (_sys_nerr): Likewise.
9988         * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
9989         * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
9990         * stdio-common/psiginfo.c (psiginfo): Use array_length.
9991         * stdio-common/test-vfprintf.c (nlocs): Remove definition.
9992         (do_test): Use array_length.
9993         * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
9994         * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
9995         * stdio-common/tst-printf-round.c (do_test): Likewise.
9996         * stdio-common/tst-swprintf.c (nbuf): Remove definition.
9997         (CHECK): Use array_length.
9998         * stdio-common/tstdiomisc.c (t3, F): Likewise.
9999         * stdio-common/tstscanf.c (main): Likewise.
10000         * stdio-common/vfprintf.c (process_string_arg): Likewise.
10002 2017-11-02  Florian Weimer  <fweimer@redhat.com>
10004         Add array_length and array_end macros.
10005         * include/array_length.h: New file.
10007 2017-11-02  Florian Weimer  <fweimer@redhat.com>
10009         [BZ #22332]
10010         * posix/tst-glob-tilde.c (do_noescape): New variable.
10011         (one_test): Process it.
10012         (do_test): Set do_noescape.  Add unescaping test case.
10014 2017-11-01  Joseph Myers  <joseph@codesourcery.com>
10016         * math/complex.h
10017         [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
10018         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
10019         with appropriate macros defined and undefined.
10020         [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
10021         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
10022         [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
10023         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
10024         [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
10025         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
10026         [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
10027         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
10028         [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
10029         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
10031         * math/complex.h
10032         [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
10033         && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
10034         that for long double.  Do not condition define and undefine of
10035         _Mdouble_complex_ on [__CFLOAT128].
10037 2017-11-01  H.J. Lu  <hongjiu.lu@intel.com>
10039         * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
10040         of <sysdeps/generic/sysdep.h>.
10041         (ALIGNARG): Removed.
10042         (ASM_SIZE_DIRECTIVE): Likewise.
10043         (ENTRY): Likewise.
10044         (END): Likewise.
10045         (ENTRY_CHK): Likewise.
10046         (END_CHK): Likewise.
10047         (syscall_error): Likewise.
10048         (mcount): Likewise.
10049         (PSEUDO_END): Likewise.
10050         (L): Likewise.
10051         (atom_text_section): Likewise.
10052         * sysdeps/x86/sysdep.h: New file.
10053         * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
10054         of <sysdeps/generic/sysdep.h>.
10055         (ALIGNARG): Removed.
10056         (ASM_SIZE_DIRECTIVE): Likewise.
10057         (ENTRY): Likewise.
10058         (END): Likewise.
10059         (ENTRY_CHK): Likewise.
10060         (END_CHK): Likewise.
10061         (syscall_error): Likewise.
10062         (mcount): Likewise.
10063         (PSEUDO_END): Likewise.
10064         (L): Likewise.
10065         (atom_text_section): Likewise.
10067 2017-10-31  Rafal Luzynski  <digitalfreak@lingonborough.com>
10069         * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
10070         category of LC_CTYPE set to "i18n:2012".
10071         * localedata/locales/i18n_ctype: Regenerate.
10073 2017-10-31  Yury Norov  <ynorov@caviumnetworks.com>
10075         * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
10076         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
10077         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
10078         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
10080         * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
10081         * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
10082         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
10083         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
10085 2017-10-31  Joseph Myers  <joseph@codesourcery.com>
10087         * math/complex.h
10088         [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
10089         New macro.
10090         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
10091         Likewise.
10092         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
10093         Likewise.
10094         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10095         (CMPLXF32X): Likewise.
10096         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10097         (CMPLXF64X): Likewise.
10098         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10099         (CMPLXF128X): Likewise.
10101         * math/math.h
10102         [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
10103         (__MATH_EVAL_FMT2): Define to add 0.0f.
10105 2017-10-31  Alan Modra  <amodra@gmail.com>
10107         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
10108         include sysdep.h.
10109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
10110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
10111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10112         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10113         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
10114         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
10115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
10116         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
10117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
10118         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
10119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
10122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
10123         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
10124         * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
10125         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
10126         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
10127         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
10128         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
10129         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
10130         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
10131         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
10132         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
10133         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
10134         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
10135         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
10136         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
10137         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
10138         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
10139         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
10140         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
10141         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
10142         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
10143         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
10144         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
10145         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
10146         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
10147         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
10148         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
10149         * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
10150         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
10151         * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
10152         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
10153         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
10154         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
10155         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
10156         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
10157         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
10158         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
10159         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
10160         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
10161         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
10162         * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
10163         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
10164         * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
10165         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
10166         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
10167         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
10168         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
10169         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
10170         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
10171         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
10172         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
10173         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
10174         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
10175         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
10176         * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
10177         * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
10179         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
10180         include sysdep.h and math_ldbl_opt.h.
10182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
10183         include sysdep.h and math_ldbl_opt.h.  Include shlib-compat.h.
10184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
10185         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
10186         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
10187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
10188         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
10189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
10190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
10191         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
10192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
10193         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
10194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
10195         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
10196         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
10197         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
10198         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
10199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
10200         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
10201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
10202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
10203         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
10204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
10205         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
10206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
10207         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
10209 2017-10-31  Alan Modra  <amodra@gmail.com>
10211         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
10212         string/strncase_l.c, not string/strncase.c.
10213         (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
10214         (libc_hidden_def): Redefine.
10216 2017-10-31  Alan Modra  <amodra@gmail.com>
10218         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
10219         (__STRCMP, STRCMP, __strcasecmp_l): Define.
10220         (__strcasecmp): Don't define.
10222 2017-10-31  Alan Modra  <amodra@gmail.com>
10224         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
10225         IS_IN (libc).
10226         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
10227         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
10228         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
10230 2017-10-31  Alan Modra  <amodra@gmail.com>
10232         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
10233         USE_AS_STPNCPY.
10235 2017-10-31  Alan Modra  <amodra@gmail.com>
10237         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
10238         Redefine only when SHARED.
10240 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
10242         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
10243         Include <bits/math-finite.h> with appropriate macros defined and
10244         undefined.
10245         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
10246         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
10247         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
10248         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
10249         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
10251         * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
10252         [!_Mlong_double_] (_Mlong_double_): Likewise.
10253         [!_Mfloat16_] (_Mfloat16_): Likewise.
10254         [!_Mfloat32_] (_Mfloat32_): Likewise.
10255         [!_Mfloat64_] (_Mfloat64_): Likewise.
10256         [!_Mfloat128_] (_Mfloat128_): Likewise.
10257         [!_Mfloat32x_] (_Mfloat32x_): Likewise.
10258         [!_Mfloat64x_] (_Mfloat64x_): Likewise.
10259         [!_Mfloat128x_] (_Mfloat128x_): Likewise.
10260         (_Mdouble_): Define without indirection through those macros.
10261         * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
10262         [!_Mfloat128_] (_Mfloat128_): Likewise.
10263         [_Mlong_double_] (_Mlong_double_): Likewise.
10264         (_Mdouble_): Define without indirection through those macros.
10265         * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
10266         not add -D_Mlong_double_=double.
10267         * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
10268         * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
10270 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
10272         * sysdeps/x86/libc-start.c: Add /* !SHARED */.
10274 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
10276         * sysdeps/x86/libc-start.c: Reformat.
10278 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
10280         [BZ #22353]
10281         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
10282         (1): Renamed to ...
10283         (L(Src0)): This.
10284         (L(Src1)): New.
10285         (L(Src2)): Likewise.
10286         (L(1)): Renamed to ...
10287         (L(Src3)): This.
10289 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
10291         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
10292         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
10293         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
10294         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
10295         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
10296         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
10297         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
10298         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
10299         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
10300         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
10301         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
10302         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
10303         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
10304         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
10305         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
10306         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
10307         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
10308         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
10309         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
10310         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
10311         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
10312         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
10313         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
10314         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
10315         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
10316         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
10317         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
10318         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
10319         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
10320         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
10321         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
10322         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
10323         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
10324         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
10325         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
10326         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
10327         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
10328         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
10329         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
10330         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
10331         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
10332         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
10333         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
10334         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
10335         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
10336         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
10337         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
10338         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
10339         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
10340         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
10341         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
10342         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
10343         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
10344         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
10345         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
10346         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
10347         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
10348         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
10349         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
10350         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
10351         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
10352         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
10353         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
10354         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
10355         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
10356         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
10358 2017-10-30  Florian Weimer  <fweimer@redhat.com>
10360         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
10361         always defined.
10362         * io/tst-mkdirat.c (do_test): Likewise.
10363         * io/tst-mkfifoat.c (do_test): Likewise.
10364         * io/tst-mknodat.c (do_test): Likewise.
10365         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
10366         * locale/programs/locale.c (select_dirs): Likewise.
10367         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
10368         * posix/bug-glob2.c (my_readdir): Likewise.
10369         * posix/tst-dir.c (main): Likewise.
10370         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
10371         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
10373 2017-10-30  Florian Weimer  <fweimer@redhat.com>
10375         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
10376         just __USE_GNU.
10378 2017-10-30  Florian Weimer  <fweimer@redhat.com>
10380         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
10381         Convert to support/test-driver.c.
10382         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
10383         New macro parameters.
10384         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
10385         * posix/tst-gnuglob.c: New file.
10386         * posix/tst-gnuglob64.c: Likewise.
10387         * posix/Makefile (tests): Add tst-gnuglob64.
10389 2017-10-30  Michal Ostrowski  <ostrowski.michal@gmail.com>
10391         [BZ #19485]
10392         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
10393         and use a better translation for March in “mon”.
10394         * localedata/locales/csb_PL: Use more ASCII to improve the
10395         readability of the source.
10397 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
10399         [BZ #13953]
10400         * localedata/locales/km_KH: Use ASCII as much
10401         as possible for better readability of the source and
10402         remove useless comments.
10403         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
10404         was commented out and apparently wrong anyway because it was
10405         using Lao characters. If Buddhist era should be used
10406         for km_KH, a native speaker should write the correct formaat
10407         for Khmer.
10408         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
10409         (According to CLDR, the first weekday for Cambodia is Sunday).
10410         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
10411         (These were using Lao characters which must be wrong. If we get
10412         the correct data from a native speaker, we could add it back, until
10413         then it is better not to have name_mr and name_mrs at all than
10414         having it wrong).
10416 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
10418         * locale/loadlocale.c: Correct size of
10419         _nl_value_type_LC_<category> arrays.
10421 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
10423         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
10424         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
10425         with appropriate macros defined and undefined.
10426         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
10427         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
10428         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
10429         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
10430         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
10432 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
10434         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
10435         "-O2 -march=i586".
10437 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
10439         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
10440         with lowercase letters to make it agree with CLDR.
10442 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
10444         [BZ #15260]
10445         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
10446         first letters of yesstr and nostr in yesexpr and noexpr,
10447         not for the full words.
10448         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
10449         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
10450         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
10451         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
10452         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
10453         first letters of yesstr and nostr in yesexpr and noexpr,
10454         until now only English was matched in yesexpr and noexpr.
10455         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
10456         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
10457         fil but not for tl. As tl and fil are very similar, using fil
10458         is probably better than using English.
10460 2017-10-27  Thierry Vignaud  <thierry.vignaud@gmail.com>
10462         [BZ #21706]
10463         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
10464         in yesstr and nostr.
10466 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
10468         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
10469         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
10470         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
10471         Likewise.
10472         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
10473         Likewise.
10474         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
10475         Likewise.
10476         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
10477         Likewise.
10478         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10479         (SNANF128X): Likewise.
10481         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
10482         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
10483         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10484         (HUGE_VAL_F32): Likewise.
10485         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10486         (HUGE_VAL_F64): Likewise.
10487         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10488         (HUGE_VAL_F32X): Likewise.
10489         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10490         (HUGE_VAL_F64X): Likewise.
10491         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
10492         (HUGE_VAL_F128X): Likewise.
10494 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
10496         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
10497         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
10498         for the br_FR locale.
10500 2017-10-26  Thierry Vignaud  <thierry.vignaud@gmail.com>
10502         [BZ #21706]
10503         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
10505 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
10507         * locale/programs/record-status.h: Define globals, and function
10508         prototypes. Move function bodies...
10509         * locale/programs/record-status.c: ... to here. New file.
10510         * iconv/Makefile (iconv_prog-modules): Add record-status.
10511         * locale/Makefile (lib-modules): Likewise.
10512         * iconv/iconv_prog.c: Remove verbose.
10513         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
10514         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
10515         record a warning about ASCII compatibility.
10516         * locale/programs/ld-monetary.c (monetary_finish): If
10517         warn_int_curr_symbol is true then record a warning about the symbol
10518         not being in our ISO 4217 list.
10519         * locale/programs/locale.c: Include record-status.h. Remove verbose.
10520         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
10521         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
10522         (OPT_NO_WARN): Define.
10523         (OPT_WARN): Define.
10524         (options): Add entry for --no-warnings, and --warnings.
10525         (set_warnings): New function to enable/disable warnings.
10526         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
10527         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
10528         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
10529         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
10530         Pass flags to generate_locale.
10531         (generate_locale): Accept new flag argument and pass it to localedef
10532         invocation.
10533         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
10534         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
10536         * localedata/Makefile (test-input-data): Use full file name.
10537         * localedata/da_DK.in: Rename to...
10538         * localedata/da_DK.ISO-8859-1.in: ...this.
10539         * localedata/de_DE.in: Rename to...
10540         * localedata/de_DE.ISO-8859-1.in: ...this.
10541         * localedata/en_US.in: Rename to...
10542         * localedata/en_US.ISO-8859-1.in: ...this.
10543         * localedata/fr_FR.in: Rename to...
10544         * localedata/fr_FR.UTF-8.in: ... this.
10545         * localedata/hr_HR.in: Rename to...
10546         * localedata/hr_HR.ISO-8859-2.in: ...this.
10547         * localedata/hu_HU.in: Rename to...
10548         * localedata/hu_HU.UTF-8.in: ...this.
10549         * localedata/si_LK.in: Rename to...
10550         * localedata/si_LK.UTF-8.in: ...this.
10551         * localedata/sv_SE.in: Rename to...
10552         * localedata/sv_SE.ISO-8859-1.in: ...this.
10553         * localedata/tr_TR.in: Rename to...
10554         * localedata/tr_TR.UTF-8.in: ...this.
10555         * localedata/uk_UA.in: Rename to...
10556         * localedata/uk_UA.UTF-8.in: ...this.
10557         * localedata/sort-test.sh: Test file is locale name with the
10558         suffix.
10560         * localedata/unicode-gen/Makefile (check_i18n): Rename to
10561         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
10562         file.
10563         * localedata/locales/i18n_ctype: Regenerate.
10564         * localedata/locales/tr_TR: Likewise.
10565         * localedata/locales/translit_circle: Likewise.
10566         * localedata/locales/translit_cjk_compat: Likewise.
10567         * localedata/locales/translit_combining: Likewise.
10568         * localedata/locales/translit_compat: Likewise.
10569         * localedata/locales/translit_font: Likewise.
10570         * localedata/locales/translit_fraction: Likewise.
10572 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
10574         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
10575         lxvd2x/stxvd2x with lvx/stvx.
10576         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
10578 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
10580         * include/alloc_buffer.h: Replace "if if " with "if " in
10581         comments.
10582         * sysdeps/mips/memcpy.S: Likkewise.
10583         * sysdeps/mips/memset.S: Likewise.
10584         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
10585         Likewise.
10586         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
10587         Likewise.
10588         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
10589         Likewise.
10591 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10593         [BZ #15261]
10594         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
10595         yesexpr and noexpr.
10596         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
10597         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
10598         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
10599         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
10600         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
10601         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
10602         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
10604 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10606         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
10607         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
10608         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
10609         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
10610         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
10611         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
10612         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
10613         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
10614         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
10615         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
10616         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
10617         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
10619 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10621         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
10622         as possible for better readability of the source.
10623         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
10624         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
10625         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
10626         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
10627         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
10628         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
10629         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
10630         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
10631         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
10632         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
10633         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
10634         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
10635         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
10636         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
10637         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
10638         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
10639         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
10640         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
10641         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
10642         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
10643         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
10644         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
10645         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
10646         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
10647         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
10648         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
10649         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
10650         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
10651         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
10652         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
10653         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
10654         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
10655         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
10656         * localedata/locales/en_US (LC_MESSAGES): Likewise.
10657         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
10658         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
10659         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
10660         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
10661         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
10662         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
10663         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
10664         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
10665         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
10666         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
10667         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
10668         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
10669         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
10670         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
10671         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
10672         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
10673         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
10674         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
10675         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
10676         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
10677         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
10678         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
10679         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
10680         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
10681         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
10682         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
10683         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
10684         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
10685         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
10686         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
10687         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
10688         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
10689         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
10690         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
10691         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
10692         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
10693         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
10694         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
10695         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
10696         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
10697         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
10698         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
10699         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
10700         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
10701         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
10702         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
10703         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
10704         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
10705         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
10706         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
10707         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
10708         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
10709         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
10710         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
10711         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
10712         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
10713         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
10714         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
10715         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
10716         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
10717         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
10718         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
10719         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
10720         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
10721         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
10722         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
10723         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
10724         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
10725         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
10726         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
10727         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
10728         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
10729         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
10730         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
10731         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
10732         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
10733         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
10734         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
10735         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
10736         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
10737         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
10738         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
10739         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
10740         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
10741         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
10742         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
10743         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
10744         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
10745         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
10746         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
10747         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
10748         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
10749         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
10750         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
10751         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
10752         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
10753         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
10754         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
10755         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
10756         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
10757         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
10758         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
10759         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
10760         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
10761         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
10762         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
10763         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
10764         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
10765         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
10766         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
10767         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
10768         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
10769         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
10770         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
10771         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
10772         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
10773         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
10774         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
10775         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
10776         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
10777         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
10778         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
10779         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
10780         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
10781         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
10782         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
10783         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
10784         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
10785         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
10786         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
10787         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
10788         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
10789         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
10790         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
10791         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
10792         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
10793         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
10794         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
10795         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
10796         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
10798 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10800         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
10801         (Use first letters of yesstr and nostr correctly instead of using
10802         full words).
10804 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10806         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
10807         (Use first letters of yesstr and nostr correctly).
10809 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10811         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
10812         also check for the first characters of yesstr and nostr.
10813         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
10814         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
10816 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10818         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
10819         also check for Chinese characters.
10821 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10823         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
10824         match also for the contents of yesstr and nostr. As the first letter
10825         of yesstr and nostr is equal, checking only for the first letter
10826         is not enough.
10828 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10830         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
10831         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
10833 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10835         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
10836         of main contributor.
10838 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10840         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
10841         instead of using English.
10843 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10845         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
10846         by including the first letters of nostr and yesexpr in the regexp.
10847         Also make it more readable by using ASCII where possible.
10849 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
10851         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
10852         the first letter of nostr in the regexp. It agrees with CLDR now.
10853         Also make it more readable by using ASCII where possible.
10855 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10857         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
10858         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
10859         these strings contain a U+17D6 (which somewhat looks like a colon)
10860         instead of a real colon to separate the full words for “yes”
10861         and “no” from the single letter responses.
10863 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10865         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
10866         it agree with CLDR (include the first letter of yesstr).
10867         Also make it more readable by using ASCII where possible.
10869 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10871         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
10872         and improve yesexpr and noexpr. The yesstr and nostr apparently
10873         came from CLDR. And CLDR has a bug there: these strings contain
10874         a U+0903 (which looks like a colon) instead of a real colon
10875         to separate the full words for “yes” and “no” from the single
10876         letter responses.
10878 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10880         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
10881         letters of the full yesstr and nostr in yesexpr and noexpr.
10883 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10885         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
10886         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
10887         * localedata/locales/an_ES: Make source more readable by using ASCII
10888         where possible.
10890 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
10892         [BZ #20952]
10893         * localedata/locales/yuw_PG: New file.
10894         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
10895         * locale/iso-639.def: Add Yau (Uruwa).
10897 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
10899         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
10901 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
10903         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
10904         (__libc_realloc): Likewise.
10905         (_mid_memalign): Likewise.
10906         (__libc_calloc): Likewise.
10908 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
10910         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
10911         by adding the generic +1 and -0 as in all other locales.
10912         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
10913         day names and make it more readable by using ASCII where possible.
10915 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
10917         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
10918         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
10920 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
10922         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
10923         WNOHANG in waitpid call.
10925 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
10927         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
10928         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
10930         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
10931         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
10932         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
10933         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
10934         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
10935         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
10936         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
10937         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
10938         variables.
10940 2017-10-23  Michael Collison  <michael.collison@arm.com>
10942         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
10943         with __builtin_sqrt.
10944         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
10945         with __builtin_sqrtf.
10946         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
10947         with __builtin_ceil.
10948         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
10949         with __builtin_ceilf.
10950         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
10951         with __builtin_floor.
10952         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
10953         with __builtin_floorf.
10954         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
10955         with __builtin_fma.
10956         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
10957         with __builtin_fmaf.
10958         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
10959         with __builtin_fmax.
10960         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
10961         with __builtin_fmaxf.
10962         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
10963         with __builtin_fmin.
10964         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
10965         with __builtin_fminf.
10966         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
10967         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
10968         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
10969         with builtin_rint and conversion to int.
10970         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
10971         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
10972         with builtin_llround.
10973         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
10974         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
10975         with builtin_rint and conversion to long int.
10976         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
10977         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
10978         with builtin_lround.
10979         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
10980         with builtin_lroundf.
10981         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
10982         statements with __builtin_nearbyint.
10983         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
10984         statements with __builtin_nearbyintf.
10985         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
10986         with __builtin_rint.
10987         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
10988         with __builtin_rintf.
10989         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
10990         with __builtin_round.
10991         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
10992         with __builtin_roundf.
10993         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
10994         with __builtin_trunc.
10995         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
10996         with __builtin_truncf.
10997         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
10998         and s_l[l]round[f].c too.
11000 2017-10-23  Alan Modra  <amodra@gmail.com>
11002         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
11003         Adjust stack after restoring regs.  Add missing LR cfi_restore.
11005 2017-10-23  Alan Modra  <amodra@gmail.com>
11007         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
11008         Move LR save and frame setup/teardown and LR restore to
11009         immediately around memset call.  Provide cfi.
11011 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11013         * sysdeps/i386/fpu/e_powf.S: Removed.
11014         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
11015         * sysdeps/i386/fpu/w_powf.c: Likewise.
11016         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
11017         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11018         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11019         Add e_powf-sse2.
11020         (CFLAGS-e_powf-sse2.c): New.
11021         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
11022         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
11024 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11026         * sysdeps/i386/fpu/e_log2f.S: Removed.
11027         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
11028         * sysdeps/i386/fpu/w_log2f.c: Likewise.
11029         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
11030         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11031         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11032         Add e_log2f-sse2.
11033         (CFLAGS-e_log2f-sse2.c): New.
11034         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
11035         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
11037 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11039         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11040         Add e_powf-fma.
11041         (CFLAGS-e_powf-fma.c): New.
11042         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
11043         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
11045 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11047         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11048         Add e_log2f-fma.
11049         (CFLAGS-e_log2f-fma.c): New.
11050         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
11051         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
11053 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11055         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11056         Add e_logf-fma.
11057         (CFLAGS-e_logf-fma.c): New.
11058         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
11059         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
11061 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11063         * sysdeps/i386/fpu/e_logf.S: Removed.
11064         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
11065         * sysdeps/i386/fpu/w_logf.c: Likewise.
11066         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
11067         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
11068         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11069         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11070         Add e_logf-sse2.
11071         (CFLAGS-e_logf-sse2.c): New.
11072         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
11073         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
11075 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11077         * sysdeps/i386/fpu/e_exp2f.S: Removed.
11078         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
11079         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
11080         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11081         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11082         Add e_exp2f-sse2.
11083         (CFLAGS-e_exp2f-sse2.c): New.
11084         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
11085         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
11087 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11089         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11090         Add e_exp2f-fma.
11091         (CFLAGS-e_exp2f-fma.c): New.
11092         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
11093         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
11095 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11097         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
11098         * sysdeps/i386/fpu/e_expf.S: Likewise.
11099         * sysdeps/i386/fpu/math_errf.c: Likewise.
11100         * sysdeps/i386/fpu/w_expf.c: Likewise.
11101         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
11102         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
11103         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
11104         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
11105         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11106         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
11107         Remove e_expf-ia32.
11108         (CFLAGS-e_expf-sse2.c): New.
11109         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
11110         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
11112 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
11114         * sysdeps/x86_64/fpu/e_expf.S: Removed.
11115         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
11116         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
11117         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
11118         e_expf.c.
11119         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
11120         New.
11121         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
11122         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
11123         Renamed to ...
11124         (__redirect_expf): This.
11125         (SYMBOL_NAME): Changed to expf.
11126         (__ieee754_expf): Renamed to ...
11127         (__expf): This.
11128         (__GI___expf): This.
11129         (__ieee754_expf): Add strong_alias.
11130         (__expf_finite): Likewise.
11131         (__expf): New.
11132         Include <sysdeps/ieee754/flt-32/e_expf.c>.
11134 2017-10-22  Paul Eggert  <eggert@cs.ucla.edu>
11136         [BZ #22332]
11137         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
11138         unescaping.
11140 2017-10-21  Florian Weimer  <fweimer@redhat.com>
11142         * posix/Makefile (tests): Add tst-glob-tilde.
11143         (tests-special): Add tst-glob-tilde-mem.out
11144         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
11145         (tst-glob-tilde-mem.out): Add mtrace check.
11146         * posix/tst-glob-tilde.c: New file.
11148 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
11150         * bits/floatn-common.h: New file.
11151         * math/Makefile (headers): Add bits/floatn-common.h.
11152         * bits/floatn.h: Include <bits/floatn-common.h>.
11153         * sysdeps/ia64/bits/floatn.h: Likewise.
11154         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
11155         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
11156         * sysdeps/powerpc/bits/floatn.h: Likewise.
11157         * sysdeps/x86/bits/floatn.h: Likewise.
11159 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11161         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
11162         indicates whether compiler emits an warning for alias for
11163         functions with incompatible types.
11165         [BZ #22273]
11166         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
11167         the auxiliary process is terminated by a signal before calling _exit
11168         or execve.
11170 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11172         [BZ #21265]
11173         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
11174         New.
11175         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
11176         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
11177         and bit_arch_XSAVEC_Usable if needed.
11178         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
11179         and bit_arch_Use_dl_runtime_resolve_opt.
11180         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
11181         Removed.
11182         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
11183         (bit_arch_Prefer_No_AVX512): Updated.
11184         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
11185         (bit_arch_XSAVEC_Usable): New.
11186         (STATE_SAVE_OFFSET): Likewise.
11187         (STATE_SAVE_MASK): Likewise.
11188         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
11189         (cpu_features): Add xsave_state_size and xsave_state_full_size.
11190         (index_arch_Use_dl_runtime_resolve_opt): Removed.
11191         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
11192         (index_arch_XSAVEC_Usable): New.
11193         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11194         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
11195         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
11196         is enabled.
11197         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
11198         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
11199         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
11200         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
11201         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
11202         _dl_runtime_resolve_xsavec.
11203         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
11204         Removed.
11205         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
11206         instead of VEC_SIZE.
11207         (REGISTER_SAVE_BND0): Removed.
11208         (REGISTER_SAVE_BND1): Likewise.
11209         (REGISTER_SAVE_BND3): Likewise.
11210         (REGISTER_SAVE_RAX): Always defined to 0.
11211         (VMOV): Removed.
11212         (_dl_runtime_resolve_avx): Likewise.
11213         (_dl_runtime_resolve_avx_slow): Likewise.
11214         (_dl_runtime_resolve_avx_opt): Likewise.
11215         (_dl_runtime_resolve_avx512): Likewise.
11216         (_dl_runtime_resolve_avx512_opt): Likewise.
11217         (_dl_runtime_resolve_sse): Likewise.
11218         (_dl_runtime_resolve_sse_vex): Likewise.
11219         (USE_FXSAVE): New.
11220         (_dl_runtime_resolve_fxsave): Likewise.
11221         (USE_XSAVE): Likewise.
11222         (_dl_runtime_resolve_xsave): Likewise.
11223         (USE_XSAVEC): Likewise.
11224         (_dl_runtime_resolve_xsavec): Likewise.
11225         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
11226         Removed.
11227         (_dl_runtime_resolve_avx512_opt): Likewise.
11228         (_dl_runtime_resolve_avx): Likewise.
11229         (_dl_runtime_resolve_avx_opt): Likewise.
11230         (_dl_runtime_resolve_sse): Likewise.
11231         (_dl_runtime_resolve_sse_vex): Likewise.
11232         (_dl_runtime_resolve_fxsave): New.
11233         (_dl_runtime_resolve_xsave): Likewise.
11234         (_dl_runtime_resolve_xsavec): Likewise.
11236 2017-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11238         [BZ #22320]
11239         CVE-2017-15670
11240         * posix/glob.c (__glob): Fix one-byte overflow.
11242 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
11244         * malloc/malloc.c (sysdep-cancel.h): Add include.
11246 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
11248         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
11250 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
11252         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
11253         (tests): Remove $(objpfx)ga_test depdendency.
11254         * resolv/ga_test.c: Remove file.
11256 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
11258         [BZ #18812]
11259         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
11260         * localedata/locales/kab_DZ: New file.
11262 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11264         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
11265         _dl_relocate_static_pie instead of _dl_start to compute load
11266         address in static PIE.
11268 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11270         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
11272 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
11274         [BZ #13605]
11275         * localedata/SUPPORTED: Add shn_MM/UTF-8.
11276         * localedata/locales/shn_MM: New file.
11278 2017-10-20  Florian Weimer  <fweimer@redhat.com>
11280         [BZ #22321]
11281         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
11282         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
11283         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
11284         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
11285         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
11286         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
11288 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
11290         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
11292 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
11294         * sysdeps/mips/ieee754/bits/floatn.h: New file.
11296         [BZ #22322]
11297         * sysdeps/mips/bits/long-double.h: Move to ....
11298         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
11300 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
11302         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
11304 2017-10-19  Valery Reznic  <valery_reznic@yahoo.com>
11305             H.J. Lu  <hongjiu.lu@intel.com>
11307         [BZ #22299]
11308         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
11309         GLRO(dl_platform) to NULL.
11310         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
11311         (modules-names): Add tst-platformmod-1 and
11312         x86_64/tst-platformmod-2.
11313         (CFLAGS-tst-platform-1.c): New.
11314         (CFLAGS-tst-platformmod-1.c): Likewise.
11315         (CFLAGS-tst-platformmod-2.c): Likewise.
11316         (LDFLAGS-tst-platformmod-2.so): Likewise.
11317         ($(objpfx)tst-platform-1): Likewise.
11318         ($(objpfx)tst-platform-1.out): Likewise.
11319         (tst-platform-1-ENV): Likewise.
11320         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
11321         * sysdeps/x86_64/tst-platform-1.c: New file.
11322         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
11323         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
11325 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
11327         [BZ #13994]
11328         * locale/iso-639.def: Add Karbi.
11329         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
11330         * localedata/locales/mjw_IN: New file.
11332 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
11334         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
11335         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
11336         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
11337         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
11338         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
11339         (libm_alias_ldouble_other_r): Also create _Float128 alias.
11340         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
11341         <bits/floatn.h>.
11342         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
11343         (libm_alias_ldouble_other_r): Also create _Float128 alias.
11344         * manual/math.texi (Mathematics): Document additional architecture
11345         support for _Float128.
11346         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
11347         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11348         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11349         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11350         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11351         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11352         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11353         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11354         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11355         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11356         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11357         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11358         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11359         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11360         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11362 2017-10-18  Renlin Li  <renlin.li@arm.com>
11364         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
11365         _DYNAMIC symbol to calculate load address.
11367 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
11369         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
11370         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
11371         summary bits.
11372         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
11373         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
11375 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
11377         [BZ #16777]
11378         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
11379         and improve readability by using more ASCII.
11380         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
11381         and improve readability by using more ASCII.
11383 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
11385         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
11386         not all targets support atomics on bool.
11388 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
11390         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
11391         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
11392         __f128.
11393         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
11394         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
11395         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
11396         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
11397         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
11398         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
11400 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11402         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
11403         defines.
11405 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
11407         [BZ #22159]
11408         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
11409         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
11410         (do_check_remalloced_chunk): Fix build bug.
11411         (do_check_malloc_state): Add assert that checks arena->top.
11412         (malloc_consolidate): Remove initialization.
11413         (int_mallinfo): Remove call to malloc_consolidate.
11414          (__libc_mallopt): Clarify why malloc_consolidate is needed.
11416 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
11418         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
11419         (have_fastchunks): Remove.
11420         (clear_fastchunks): Remove.
11421         (set_fastchunks): Remove.
11422         (malloc_state): Add have_fastchunks.
11423         (malloc_init_state): Use have_fastchunks.
11424         (do_check_malloc_state): Remove incorrect invariant checks.
11425         (_int_malloc): Use have_fastchunks.
11426         (_int_free): Likewise.
11427         (malloc_consolidate): Likewise.
11429 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
11431         * malloc/malloc.c (tcache_put): Inline.
11432         (tcache_get): Inline.
11434 2017-10-17  Jordi Mallach  <jordi@gnu.org>
11436         Aurelien Jarno  <aurelien@aurel32.net>
11437         [BZ #2522]
11438         * localedata/locales/ca_ES@valencia: New file.
11439         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
11441 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
11443         [BZ #22296]
11444         * math/math.h: Let signbit use the builtin in C++ mode with gcc
11445         < 6.x
11447 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11449         * scripts/build-many-glibcs.py (Context.add_all_configs):
11450         Add arm-linux-gnueabihf multiarch extra_glibcs.
11452         * sysdeps/generic/ifunc-init.h: New file.
11453         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
11455 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
11457         [BZ #22019]
11458         * localedata/locales/el_GR: Set n_cs_precedes to 0.
11459         * localedata/locales/el_CY: copy "el_GR" because it is identical.
11460         * stdlib/tst-strfmon_l.c: adapt test case.
11462 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
11464         * sysdeps/generic/float128-abi.h: New file.
11465         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
11466         non-__prefixed symbols to ....
11467         * math/Versions: ... here.  Include <float128-abi.h>.
11468         * stdlib/Versions ... and here.  Include <float128-abi.h>
11470 2017-10-16  Florian Weimer  <fweimer@redhat.com>
11472         * version.h (VERSION): Switch to ".9000" as the development
11473         version suffix.
11475 2017-10-16  Florian Weimer  <fweimer@redhat.com>
11477         [BZ #22050]
11478         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
11479         compat_symbol_reference to access non-default version.
11481 2017-10-16  Florian Weimer  <fweimer@redhat.com>
11483         * malloc/Makefile (others-extras): Set to mcheck-init.o.
11485 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
11487         * include/shlib-compat.h (compat_symbol_reference): Update
11488         comment.
11490 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
11492         * math/Makefile (test-types): Add
11493         $(type-float128-$(float128-alias-fcts)).
11494         * math/test-float128.h (TYPE_STR): Define conditional on
11495         [FLT128_MANT_DIG == LDBL_MANT_DIG].
11496         (ULP_IDX): Likewise.
11497         (ULP_I_IDX): Likewise.
11499         * stdlib/strtold.c: Include <bits/floatn.h>
11500         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
11501         and later undefine as macro.  Define as weak alias if
11502         [!USE_WIDE_CHAR].
11503         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
11504         and later undefine as macro.  Define as weak alias if
11505         [USE_WIDE_CHAR].
11506         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
11507         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
11508         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
11509         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
11510         Define and later undefine as macro.  Define as weak alias if
11511         [USE_WIDE_CHAR].
11512         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
11513         <bits/floatn.h>.
11514         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
11515         Define and later undefine as macro.  Define as weak alias if
11516         [!USE_WIDE_CHAR].
11517         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
11518         Define and later undefine as macro.  Define as weak alias if
11519         [USE_WIDE_CHAR].
11521 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
11523         * localedata/collate-test.c (allocate_arrays): Don't use \n in
11524         record_verbose messages.
11526 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
11528         [BZ #22052]
11529         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
11530         to silence -O3 -Wall warning with GCC 7.
11532 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
11534         * Makeconfig (+link-static-before-libc): Use the first of
11535         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
11536         * gmon/Makefile (tests): Add tst-gmon-static.
11537         (tests-static): Likewise.
11538         (CFLAGS-tst-gmon-static.c): New.
11539         (CRT-tst-gmon-static): Likewise.
11540         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
11541         (tst-gmon-static-ENV): Likewise.
11542         (tests-special): Likewise.
11543         ($(objpfx)tst-gmon-static.out): Likewise.
11544         (clean-tst-gmon-static-data): Likewise.
11545         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
11546         * gmon/tst-gmon-static-gprof.sh: New file.
11547         * gmon/tst-gmon-static.c: Likewise.
11549 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
11551         [BZ #22295]
11552         * locale/programs/linereader.c (get_string): Don't warn on
11553         non-symbolic character.
11555         [BZ #22294]
11556         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
11557         int_curr_symbol.
11559         [BZ #22292]
11560         * locale/programs/record-status.h: New file
11561         * locale/programs/locale.c: Add comment.
11562         * locale/programs/charmap-dir.c: Don't include error.h.
11563         (charmap_opendir): Use record_error.
11564         * locale/programs/charmap.c: Don't include error.h.
11565         (charmap_read): Use record_error, and record_warning.
11566         (parse_charmap): Likewise.
11567         * locale/programs/ld-address.c: Don't include error.h.
11568         (address_finish): Use record_error, and record_warning.
11569         * locale/programs/ld-collate.c: Don't include error.h.
11570         (collate_finish): Use record_error, and record_error_at_line.
11571         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
11572         (ctype_class_new): Likewise.
11573         (ctype_map_new): Likewise.
11574         (set_one_default): Likewise.
11575         (set_class_defaults): Likewise.
11576         (translit_flatten): Likewise.
11577         (allocate_arrays): Use record_error, and record_verbose.
11578         * locale/programs/ld-identification.c: Don't include error.h.
11579         (indentation_finish): Use record_error and record_warning.
11580         * locale/programs/ld-measurement.c: Don't include error.h.
11581         (measurement_finish): Use record_error.
11582         * locale/programs/ld-messages.c
11583         (message_finish): Likewise.
11584         * locale/programs/ld-monetary.c
11585         (monetary_finish): Likewise.
11586         * locale/programs/ld-name.c (name_finish): Use record_error
11587         and record_warning.
11588         * locale/programs/ld-numeric.c
11589         (numeric_finish): Use record_error.
11590         * locale/programs/ld-paper.c: Don't include error.h.
11591         (paper_finish): Use record_error.
11592         * locale/programs/ld-telephone.c: Don't include error.h.
11593         (telephone_finish): Use record_error.
11594         * locale/programs/ld-time.c (time_finish): Likewise.
11595         * locale/programs/linereader.h (lr_error): Make inline func.
11596         * locale/programs/localedef.c: Define recorded_warning_count,
11597         and recorded_error_count.
11598         (main): Use record_error. Use recorded_error_count and
11599         recorded_warning_count to issue correct error returns.
11600         (add_to_readlist): Use record_error.
11601         (find_locale): Likewise.
11602         (load_locale): Likewise.
11603         * locale/programs/localedef.h: Remove be_quiet
11604         and WITH_CUR_LOCALE.
11605         * locale/programs/locarchive.c (compare_from_file): Use
11606         record_error.
11607         * locale/programs/locfile.c (write_locale_data): Use
11608         record_error.
11609         * locale/programs/repertoire.c: Dont include error.h.
11610         (repertoire_complain): Use record_error.
11611         * localedata/tst-fmon.sh: Expect failures from localedef.
11612         * localedata/tst-locale.sh: Likewise.
11613         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
11615         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
11616         (REPORTS): Likewise.
11617         (check): Likewise.
11618         (i18n): Rename to...
11619         (i18n_ctype): ...this.
11620         (i18n-report): Rename to...
11621         (i18n_ctype-report): ...this.
11622         * localedata/locales/i18n_ctype: Regenerate.
11623         * localedata/locales/i18n: copy i18n_ctype.
11625 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
11627         * stdlib/strfroml.c: Include <bits/floatn.h>.
11628         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
11629         Define before include of <stdlib.h> and undefine afterwards, then
11630         define as weak alias.
11632         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
11633         Undefine and restore default definition.  Use
11634         libm_alias_ldouble_other.
11636 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
11638         [BZ #22153]
11639         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
11640         in coredumps.
11642 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
11644         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
11645         Assign sym_map to be map for local symbols, as TLS relocations
11646         use sym_map to determine whether the symbol is defined and to
11647         extract the TLS information.
11648         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
11649         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
11651 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11653         [BZ #22189]
11654         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
11655         (math_force_eval): Add powerpc version.
11657         [BZ #22142]
11658         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
11659         -DBL_MAX.
11660         (do_test): Likewise.
11661         * stdio-common/tst-printf.sh: Likewise.
11662         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
11663         ifdef clause in order to set the carry bit right.  Replace r0 by
11664         0 without changing the behavior.
11666 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
11668         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
11669         <libm-alias-ldouble.h>.
11670         (fabsl): Define using libm_alias_ldouble.
11671         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
11672         <libm-alias-ldouble.h>.
11673         (fabsl): Define using libm_alias_ldouble.
11675         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
11676         Remove conditional code.
11678         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
11679         Rename to __clog10_internal_l.
11680         (__clog10_internal_l): Define aliases using
11681         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
11682         with __clog10.
11684 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11686         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
11687         * benchtests/sincosf-inputs: New file.
11688         * benchtests/cosf-inputs: New file.
11689         * benchtests/sinf-inputs: New file.
11691 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11693         * posix/tst-spawn.c (do_test): Wait for both children.
11695 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11697         [BZ #22284]
11698         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
11699         tests-pie): Add tst-gmon-pie.
11700         (CFLAGS-tst-gmon-pie.c): New.
11701         (CRT-tst-gmon-pie): Likewise.
11702         (tst-gmon-pie-ENV): Likewise.
11703         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
11704         ($(objpfx)tst-gmon-pie.out): Likewise.
11705         (clean-tst-gmon-pie-data): Likewise.
11706         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
11707         * gmon/gmon.c [PIC]: Include <link.h>.
11708         [PIC] (callback): New function.
11709         (write_hist): Add an argument for load address.  Subtract load
11710         address from PCs.
11711         (write_call_graph): Likewise.
11712         (write_gmon): Call __dl_iterate_phdr to get load address, pass
11713         it to write_hist and write_call_graph.
11714         * gmon/tst-gmon-pie.c: New file.
11716 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
11718         * math/Makefile (test-types-basic): New variable.
11719         (test-types): Likewise.
11720         (libm-test-support): Use $(test-types) instead of $(types).
11721         (libm-tests-base-normal): Likewise.
11722         (libm-tests-base-finite): Likewise.
11723         (libm-tests-base-inline): Likewise.
11724         (generated): Likewise.
11725         ($(objpfx)libm-test-support-$(t).c): Likewise.
11726         (libm-tests-for-type iterator): Likewise.
11727         (libm-test-support iterator): Likewise.
11728         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
11729         (ulp_idx): Use ULP_IDX.
11730         * math/test-ldouble.h: Include <float.h>.
11731         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
11732         (ULP_IDX): New macro.
11733         (ULP_I_IDX): Likewise.
11734         * math/test-double.h (ULP_IDX): Likewise.
11735         (ULP_I_IDX): Likewise.
11736         * math/test-float.h (ULP_IDX): Likewise.
11737         (ULP_I_IDX): Likewise.
11738         * math/test-float128.h (ULP_IDX): Likewise.
11739         (ULP_I_IDX): Likewise.
11741 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11743         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
11744         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
11745         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
11746         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
11747         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
11748         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
11749         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
11750         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
11751         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
11752         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
11753         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
11754         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
11755         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
11756         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
11757         (SINGLE_THREAD_BY_GLOBAL): Define.
11758         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11759         Likewise.
11760         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11761         Likewise.
11762         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11763         Likewise.
11764         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11765         Likewise.
11766         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
11767         (SINGLE_THREAD_BY_GLOBAL): Likewise.
11768         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
11769         Likewise.
11771 2017-10-11  Andreas Schwab  <schwab@suse.de>
11773         * nis/Makefile (aux): Remove.
11774         * nscd/Makefile (aux): Add nscd_hash.
11775         (nscd-modules): Likewise.
11776         ($(objpfx)nscd): Don't depend on libnsl.
11777         * nscd/nscd_hash.c: New file.
11778         * nscd/nscd_hash.h: Likewise.
11779         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
11780         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
11781         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
11782         instead of <nis/rpcsvc/nis.h>.
11783         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
11785 2017-10-11  Florian Weimer  <fweimer@redhat.com>
11787         [BZ #22078]
11788         Avoid large NSS buffers with many addresses, aliases.
11789         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
11790         using dynarrays and struct alloc_buffer.
11791         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
11792         (tst-nss-files-hosts-multi): Link with -ldl.
11793         * nss/tst-nss-files-hosts-multi.c: New file.
11795 2017-10-11  Florian Weimer  <fweimer@redhat.com>
11797         [BZ #18023]
11798         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
11799         scratch_buffer.  Eliminate gotos.
11801 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
11803         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
11804         libm_alias_ldouble_other.
11805         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
11806         undefine and redefine.
11807         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
11808         (exp10l): Do not define here.
11809         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
11810         (weak_alias): Undefine and redefine.
11811         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
11812         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
11813         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
11814         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
11816         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
11817         [!__fma] (fma): Define using libm_alias_double.
11818         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
11819         [!__fmaf] (fmaf): Define using libm_alias_float.
11820         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
11821         (fmal): Define using libm_alias_ldouble.
11823 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
11825         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
11826         New macro.
11827         (libm_alias_double_other): Likewise.
11828         (libm_alias_double_r): Use libm_alias_double_other_r.
11829         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
11830         New macro.
11831         (libm_alias_float_other): Likewise.
11832         (libm_alias_float_r): Use libm_alias_float_other_r.
11833         * sysdeps/generic/libm-alias-float128.h
11834         (libm_alias_float128_other_r): New macro.
11835         (libm_alias_float128_other): Likewise.
11836         (libm_alias_float128_r): Use libm_alias_float128_other_r.
11837         * sysdeps/generic/libm-alias-ldouble.h
11838         (libm_alias_ldouble_other_r): New macro.
11839         (libm_alias_ldouble_other): Likewise.
11840         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
11841         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
11842         (libm_alias_double_other_r): New macro.
11843         (libm_alias_double_other): Likewise.
11844         (libm_alias_double_r): Use libm_alias_double_other_r.
11845         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
11846         (libm_alias_ldouble_other_r): New macro.
11847         (libm_alias_ldouble_other): Likewise.
11848         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
11849         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
11850         [!USE_AS_COMPAT]: Use libm_alias_double_other.
11851         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
11852         [!USE_AS_COMPAT]: Use libm_alias_float_other.
11853         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
11854         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
11855         * math/w_exp2f.c: Use libm_alias_float_other.
11856         * math/w_expf.c: Likewise.
11857         * math/w_log2f.c: Likewise.
11858         * math/w_logf.c: Likewise.
11859         * math/w_powf.c: Likewise.
11860         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
11861         [!__exp2f]: Use libm_alias_float_other.
11862         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
11863         [!__expf]: Use libm_alias_float_other.
11864         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
11865         [!__log2f]: Use libm_alias_float_other.
11866         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
11867         [!__logf]: Use libm_alias_float_other.
11868         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
11869         [!__powf]: Use libm_alias_float_other.
11871 2017-10-10  Florian Weimer  <fweimer@redhat.com>
11873         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
11874         function.
11875         (_nss_files_gethostbyname3_r): Call it.
11877 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
11879         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
11880         error.  Remove default definition of declare_mgen_alias.
11881         [!declare_mgen_alias_r]: Likewise.
11882         * sysdeps/generic/math-type-macros-double.h
11883         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
11884         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
11885         (declare_mgen_alias_r): Likewise.
11886         * sysdeps/generic/math-type-macros-float128.h
11887         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
11888         * sysdeps/generic/math-type-macros-ldouble.h
11889         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
11890         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
11891         macro.
11892         (declare_mgen_alias_r_s): Likewise.
11893         (declare_mgen_alias_r): Likewise.
11894         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
11895         (lgamma_r): Define using libm_alias_double_r.
11896         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
11897         (lgammaf_r): Define using libm_alias_float_r.
11898         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
11899         (lgammal_r): Define using libm_alias_ldouble_r.
11900         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
11901         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
11903 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
11905         * lib/glob.c (__glob_pattern_type): Remove now-spurious
11906         extern declaration.
11908 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
11910         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
11912 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
11914         [BZ #21326]
11915         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
11916         [__cplusplus >= 201103] (__USE_ISOC99): Define.
11917         * math/Makefile (test-math-cxx11): New test.
11918         * math/test-math-cxx11.cc: New file.
11920 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
11922         * login/openpty.c (openpty): Close slave pty file descriptor on error.
11924         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
11925         call to allocate the slave pty file descriptor.
11927 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
11929         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
11930         [!__fma] (fma): Define using libm_alias_double.
11931         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
11932         [!__fma] (fma): Define using libm_alias_double.
11934         * sysdeps/ieee754/float128/float128_private.h: Include
11935         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
11936         (libm_alias_ldouble_r): Undefine and redefine.
11937         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
11938         <libm-alias-ldouble.h>.
11939         (asinhl): Define using libm_alias_ldouble.
11940         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
11941         <libm-alias-ldouble.h>.
11942         (atanl): Define using libm_alias_ldouble.
11943         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
11944         <libm-alias-ldouble.h>.
11945         (cbrtl): Define using libm_alias_ldouble.
11946         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
11947         <libm-alias-ldouble.h>.
11948         (ceill): Define using libm_alias_ldouble.
11949         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
11950         <libm-alias-ldouble.h>.
11951         (copysignl): Define using libm_alias_ldouble.
11952         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
11953         <libm-alias-ldouble.h>.
11954         (cosl): Define using libm_alias_ldouble.
11955         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
11956         <libm-alias-ldouble.h>.
11957         (erfl): Define using libm_alias_ldouble.
11958         (erfcl): Likewise.
11959         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
11960         <libm-alias-ldouble.h>.
11961         (expm1l): Define using libm_alias_ldouble.
11962         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
11963         <libm-alias-ldouble.h>.
11964         (fabsl): Define using libm_alias_ldouble.
11965         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
11966         <libm-alias-ldouble.h>.
11967         (floorl): Define using libm_alias_ldouble.
11968         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
11969         <libm-alias-ldouble.h>.
11970         (fmal): Define using libm_alias_ldouble.
11971         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
11972         <libm-alias-ldouble.h>.
11973         (frexpl): Define using libm_alias_ldouble.
11974         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
11975         libm_alias_ldouble.
11976         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
11977         <libm-alias-ldouble.h>.
11978         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
11979         libm_alias_ldouble.
11980         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
11981         <libm-alias-ldouble.h>.
11982         (getpayloadl): Define using libm_alias_ldouble.
11983         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
11984         <libm-alias-ldouble.h>.
11985         (llrintl): Define using libm_alias_ldouble.
11986         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
11987         <libm-alias-ldouble.h>.
11988         (llroundl): Define using libm_alias_ldouble.
11989         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
11990         <libm-alias-ldouble.h>.
11991         (logbl): Define using libm_alias_ldouble.
11992         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
11993         <libm-alias-ldouble.h>.
11994         (lrintl): Define using libm_alias_ldouble.
11995         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
11996         <libm-alias-ldouble.h>.
11997         (lroundl): Define using libm_alias_ldouble.
11998         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
11999         <libm-alias-ldouble.h>.
12000         (modfl): Define using libm_alias_ldouble.
12001         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
12002         <libm-alias-ldouble.h>.
12003         (nearbyintl): Define using libm_alias_ldouble.
12004         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
12005         <libm-alias-ldouble.h>.
12006         (nextafterl): Define using libm_alias_ldouble.
12007         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
12008         <libm-alias-ldouble.h>.
12009         (nextupl): Define using libm_alias_ldouble.
12010         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
12011         <libm-alias-ldouble.h>.
12012         (remquol): Define using libm_alias_ldouble.
12013         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
12014         <libm-alias-ldouble.h>.
12015         (rintl): Define using libm_alias_ldouble.
12016         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
12017         <libm-alias-ldouble.h>.
12018         (roundevenl): Define using libm_alias_ldouble.
12019         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
12020         <libm-alias-ldouble.h>.
12021         (roundl): Define using libm_alias_ldouble.
12022         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
12023         using libm_alias_ldouble.
12024         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
12025         <libm-alias-ldouble.h>.
12026         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
12027         Define using libm_alias_ldouble.
12028         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
12029         <libm-alias-ldouble.h>.
12030         (sincosl): Define using libm_alias_ldouble.
12031         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
12032         <libm-alias-ldouble.h>.
12033         (sinl): Define using libm_alias_ldouble.
12034         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
12035         <libm-alias-ldouble.h>.
12036         (tanhl): Define using libm_alias_ldouble.
12037         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
12038         <libm-alias-ldouble.h>.
12039         (tanl): Define using libm_alias_ldouble.
12040         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
12041         <libm-alias-ldouble.h>.
12042         (totalorderl): Define using libm_alias_ldouble.
12043         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
12044         <libm-alias-ldouble.h>.
12045         (totalordermagl): Define using libm_alias_ldouble.
12046         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
12047         <libm-alias-ldouble.h>.
12048         (truncl): Define using libm_alias_ldouble.
12049         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
12050         libm_alias_ldouble.
12051         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
12052         libm_alias_ldouble.
12053         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
12054         <libm-alias-ldouble.h>.
12055         (weak_alias): Do not undefine and redefine.
12056         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
12057         (copysignl): Define with long_double_symbol only if [IS_IN
12058         (libc)].
12059         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
12060         <libm-alias-ldouble.h>.
12061         (weak_alias): Do not undefine and redefine.
12062         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
12063         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
12064         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
12065         <libm-alias-ldouble.h>.
12066         (weak_alias): Do not undefine and redefine.
12067         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
12068         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
12069         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
12070         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
12071         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
12072         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
12073         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
12074         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
12075         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
12076         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
12077         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
12078         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
12079         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
12080         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
12081         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
12082         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
12083         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
12084         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
12085         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
12086         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
12087         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
12088         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
12089         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
12090         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
12091         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
12092         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
12094 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
12096         [BZ #22111]
12097         * malloc/malloc.c (tcache_shutting_down): Use bool type.
12098         (tcache_thread_freeres): Set tcache_shutting_down before
12099         freeing the tcache.
12100         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
12101         * malloc/tst-malloc-tcache-leak.c: New file.
12103 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12105         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
12106         back to powerpc32 file.
12107         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
12108         (memrchr): Add __memrchr_power8 to ifunc list.
12109         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
12110         extra bytes for unaligned inputs.
12112 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
12114         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
12115         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
12116         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
12117         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
12118         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
12120 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
12122         * sysdeps/arm/libm-test-ulps: Update.
12124         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
12125         <libm-alias-ldouble.h>.
12126         (asinhl): Define using libm_alias_ldouble.
12127         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
12128         <libm-alias-ldouble.h>.
12129         (cbrtl): Define using libm_alias_ldouble.
12130         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
12131         <libm-alias-ldouble.h>.
12132         (copysignl): Define using libm_alias_ldouble.
12133         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
12134         <libm-alias-ldouble.h>.
12135         (cosl): Define using libm_alias_ldouble.
12136         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
12137         <libm-alias-ldouble.h>.
12138         (erfl): Define using libm_alias_ldouble.
12139         (erfcl): Likewise.
12140         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
12141         <libm-alias-ldouble.h>.
12142         (fmal): Define using libm_alias_ldouble.
12143         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
12144         <libm-alias-ldouble.h>.
12145         (frexpl): Define using libm_alias_ldouble.
12146         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
12147         libm_alias_ldouble.
12148         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
12149         <libm-alias-ldouble.h>.
12150         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
12151         libm_alias_ldouble.
12152         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
12153         <libm-alias-ldouble.h>.
12154         (getpayloadl): Define using libm_alias_ldouble.
12155         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
12156         <libm-alias-ldouble.h>.
12157         (llrintl): Define using libm_alias_ldouble.
12158         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
12159         <libm-alias-ldouble.h>.
12160         (llroundl): Define using libm_alias_ldouble.
12161         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
12162         <libm-alias-ldouble.h>.
12163         (lrintl): Define using libm_alias_ldouble.
12164         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
12165         <libm-alias-ldouble.h>.
12166         (lroundl): Define using libm_alias_ldouble.
12167         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
12168         <libm-alias-ldouble.h>.
12169         (modfl): Define using libm_alias_ldouble.
12170         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
12171         <libm-alias-ldouble.h>.
12172         (nextupl): Define using libm_alias_ldouble.
12173         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
12174         <libm-alias-ldouble.h>.
12175         (remquol): Define using libm_alias_ldouble.
12176         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
12177         <libm-alias-ldouble.h>.
12178         (roundevenl): Define using libm_alias_ldouble.
12179         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
12180         <libm-alias-ldouble.h>.
12181         (roundl): Define using libm_alias_ldouble.
12182         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
12183         using libm_alias_ldouble.
12184         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
12185         <libm-alias-ldouble.h>.
12186         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
12187         <libm-alias-ldouble.h>.
12188         (setpayloadsigl): Define using libm_alias_ldouble.
12189         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
12190         <libm-alias-ldouble.h>.
12191         (sincosl): Define using libm_alias_ldouble.
12192         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
12193         <libm-alias-ldouble.h>.
12194         (sinl): Define using libm_alias_ldouble.
12195         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
12196         <libm-alias-ldouble.h>.
12197         (tanhl): Define using libm_alias_ldouble.
12198         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
12199         <libm-alias-ldouble.h>.
12200         (tanl): Define using libm_alias_ldouble.
12201         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
12202         <libm-alias-ldouble.h>.
12203         (totalorderl): Define using libm_alias_ldouble.
12204         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
12205         <libm-alias-ldouble.h>.
12206         (totalordermagl): Define using libm_alias_ldouble.
12207         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
12208         libm_alias_ldouble.
12209         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
12210         libm_alias_ldouble.
12212 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
12214         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
12215         memmove_falkor.
12216         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
12217         (__libc_ifunc_impl_list): Likewise.
12218         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
12219         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
12221         * benchtests/bench-memmove-walk.c: New file.
12222         * benchtests/Makefile (string-benchset): Add it.
12224         * benchtests/bench-memset-walk.c: New file.
12225         * benchtests/Makefile (string-benchset): Add it.
12227         * benchtests/bench-memcpy-walk.c: New file.
12228         * benchtests/Makefile (string-benchset): Add it.
12230 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12232         nscd: Eliminate compilation time dependency in the build output.
12233         * nscd/nscd_stat.c (STATDATA_VERSION)
12234         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
12235         (STATDATA_VERSION_FULL): New macro definitions.
12236         (compilation): Remove.
12237         (struct statdata): Adjust version member.
12238         (send_stats): Set version from STATDATA_VERSION_FULL.
12239         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
12241 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
12243         * configure.ac (--enable-add-ons): Remove option.
12244         (machine): Do not mention add-ons in comment.
12245         (LIBC_PRECONFIGURE): Likewise.
12246         (add_ons): Remove variable and sanity checks and logic to locate
12247         add-ons.
12248         (add_ons_automatic): Remove variable.
12249         (configured_add_ons): Likewise.
12250         (add_ons_sfx): Likewise.
12251         (add_ons_pfx): Likewise.
12252         (add_on_subdirs): Likewise.
12253         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
12254         consideration of add-ons in Implies handling.
12255         (sysdeps_add_ons): Likewise.
12256         * configure: Regenerated.
12257         * libidn/configure.ac: Remove.
12258         * libidn/configure: Likewise.
12259         * sysdeps/unix/inet/configure.ac: New file.
12260         * sysdeps/unix/inet/configure: New generated file.
12261         * sysdeps/unix/inet/Subdirs: Add libidn.
12262         * Makeconfig (sysdeps-srcdirs): Remove variable.
12263         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
12264         ($(common-objpfx)config.status): Do not depend on add-on files.
12265         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
12266         comment.
12267         (all-subdirs): Do not include $(add-on-subdirs).
12268         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
12269         * config.make.in (add-ons): Remove variable.
12270         (add-on-subdirs): Likewise.
12271         (sysdeps-add-ons): Likewise.
12272         * manual/Makefile (add-chapters): Remove.
12273         ($(objpfx)texis): Do not depend on $(add-chapters).
12274         (nonexamples): Do not handle $(add-chapters).
12275         (examples): Do not handle $(add-ons).
12276         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
12277         libc-texinfo.sh.
12278         * manual/install.texi (Installation): Do not mention add-ons.
12279         (--enable-add-ons): Do not document configure option.
12280         * INSTALL: Regenerated.
12281         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
12282         * manual/maint.texi (Hierarchy Conventions): Do not mention
12283         add-ons.
12284         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
12285         --enable-add-ons.
12286         * scripts/gen-sorted.awk: Do not handle Subdirs files from
12287         add-ons.
12288         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
12289         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
12291 2017-10-05  Andreas Schwab  <schwab@suse.de>
12293         [BZ #15142]
12294         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
12295         (_IO_flush_all_lockp): Always lock list_all_lock.
12296         (_IO_flush_all_linebuffered): Likewise.
12297         (_IO_unbuffer_all): Likewise.
12299 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12301         [BZ #15436]
12302         Do not flush stdio streams on abort.
12303         * stdlib/abort.c (fflush): Remove macro definition.
12304         (abort): Remove stages related to stdio flushing.
12306 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12308         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
12310 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
12312         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12314 2017-10-05  Florian Weimer  <fweimer@redhat.com>
12316         * support/support_format_hostent.c (support_format_hostent): Add
12317         more error information for NETDB_INTERNAL.
12319 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12321         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
12322         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
12323         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
12324         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
12325         AC_DEFINE if multi-arch is enabled.
12326         * sysdeps/i386/configure: Regenerated.
12328 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12330         * Makeconfig (+link-static-before-libc): Use
12331         $(DEFAULT-LDFLAGS-$(@F)).
12332         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
12333         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
12334         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
12336 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12338         * elf/Makefile (tests): Add tst-main1.
12339         (modules-names): Add tst-main1mod.
12340         ($(objpfx)tst-main1): New.
12341         (CRT-tst-main1): Likewise.
12342         (LDFLAGS-tst-main1): Likewise.
12343         (LDLIBS-tst-main1): Likewise.
12344         (tst-main1mod.so-no-z-defs): Likewise.
12345         * elf/tst-main1.c: New file.
12346         * elf/tst-main1mod.c: Likewise.
12348 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
12350         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
12352 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
12354         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
12355         (fma): Define using libm_alias_double.
12356         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
12357         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
12358         <math_ldbl_opt.h>.
12359         (fmal): Do not define as compat symbol here.
12360         * sysdeps/alpha/fpu/s_fma.c: New file.
12362 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12364         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
12366 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
12368         [BZ #22229]
12369         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
12370         <math_ldbl_opt.h>
12371         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
12372         and libc.
12373         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
12374         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
12375         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
12376         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
12377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12378         Include <math_ldbl_opt.h>
12379         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
12380         and libc.
12381         (compat_symbol): Undefine and redefine.
12382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
12383         <math_ldbl_opt.h>
12384         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
12385         (compat_symbol): Undefine and redefine.
12386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
12387         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
12388         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
12389         GLIBC_2_1 for libm.
12390         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
12391         GLIBC_2.0 copysignl symbol.
12392         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
12393         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
12395         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
12397 2017-10-04  Florian Weimer  <fweimer@redhat.com>
12399         * scripts/check-local-headers.sh: Ignore nspr4 header file
12400         directory in addition to nspr.
12402 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
12404         [BZ #17956]
12405         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
12406         * configure: Regenerate.
12407         * crypt/Makefile (nss-cpp-flags): New variable.
12408         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
12409         (CPPFLAGS-md5-crypt.c): Use it.
12410         * scripts/check-local-headers.sh: Ignore nspr header file
12411         directory.
12413 2017-10-04  Andreas Schwab  <schwab@suse.de>
12415         * nis/Makefile (services): Remove compat.
12416         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
12417         ($(objpfx)libnss_compat.so): Remove rule.
12418         * nis/Versions (libnss_compat): Remove.
12419         * nss/Makefile (services): Add compat.
12420         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
12421         * nss/Versions (libnss_compat): Define.
12422         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
12423         Don't include <rpc/types.h>.  Replace bool_t by bool.
12424         * nss/nss_compat/compat-initgroups.c: Likewise.
12425         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
12426         instead of <rpcsrv/ypclnt.h>.
12427         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
12428         yp_get_default_domain.
12429         * nss/nss_compat/compat-pwd.c: Likewise.
12430         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
12431         yp_get_default_domain.
12432         * nss/nss_compat/nisdomain.c: New file.
12433         * nss/nss_compat/nisdomain.h: Likewise.
12435 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12437         [BZ #22244]
12438         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
12439         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
12441 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12443         [BZ #22243]
12444         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
12445         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
12447 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12449         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
12450         "movl main@GOTOFF(%ebx), %eax".
12452 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12454         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
12455         allow undefined _DYNAMIC in PIE libc.a.
12456         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
12457         Likewse.
12459 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12461         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
12462         check _DYNAMIC.
12464 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12466         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
12467         check _DYNAMIC.
12469 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12471         * math/test-math-iscanonical.cc (error): Replace bool with int.
12473 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
12475         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
12476         (modf): Define using libm_alias_double, only if [!__modf].
12477         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
12478         <libm-alias-double.h>.
12479         (modf): Define using libm_alias_double, only if [!__modf].
12480         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
12481         compat symbol here.
12482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
12483         (weak_alias): Do not undefine and redefine.
12484         (strong_alias): Likewise.
12485         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
12486         (weak_alias): Likewise.
12487         (strong_alias): Likewise.
12489         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
12490         (logb): Define using libm_alias_double, only if [!__logb].
12491         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
12492         <libm-alias-double.h>.
12493         (logb): Define using libm_alias_double, only if [!__logb].
12494         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
12495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
12496         (weak_alias): Do not undefine and redefine.
12497         (strong_alias): Likewise.
12498         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
12499         (weak_alias): Likewise.
12500         (strong_alias): Likewise.
12502 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12504         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
12505         Check SHARED instead PIC.
12507 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
12509         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
12510         [!__fmaf] (fmaf): Define using libm_alias_float.
12512         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
12513         (frexp): Define using libm_alias_double.
12514         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
12515         <libm-alias-double.h>.
12516         (frexp): Define using libm_alias_double.
12517         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
12518         compat symbol here.
12520 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
12522         [BZ #22235]
12523         * math/math.h: Trivial fix for unbalanced parentheses in comment.
12524         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
12525         (CFLAGS-test-math-iscanonical.cc): New variable.
12526         * math/test-math-iscanonical.cc: New file.
12527         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
12528         Provide a C++ implementation based on function overloading,
12529         rather than using __MATH_TG, which uses C-only builtins.
12530         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
12531         Likewise.
12532         * sysdeps/powerpc/powerpc64le/Makefile
12533         (CFLAGS-test-math-iscanonical.cc): New variable.
12535 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
12537         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
12538         (ceil): Define using libm_alias_double.
12539         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
12540         (floor): Define using libm_alias_double.
12541         * sysdeps/ieee754/dbl-64/s_llround.c: Include
12542         <libm-alias-double.h>.
12543         (llround): Define using libm_alias_double.
12544         * sysdeps/ieee754/dbl-64/s_lround.c: Include
12545         <libm-alias-double.h>.
12546         (lround): Define using libm_alias_double.
12547         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
12548         <libm-alias-double.h>.
12549         (nearbyint): Define using libm_alias_double.
12550         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
12551         <libm-alias-double.h>.
12552         (remquo): Define using libm_alias_double.
12553         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
12554         (rint): Define using libm_alias_double.
12555         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
12556         (round): Define using libm_alias_double.
12557         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
12558         (trunc): Define using libm_alias_double.
12559         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
12560         <libm-alias-double.h>.
12561         (ceil): Define using libm_alias_double.
12562         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
12563         <libm-alias-double.h>.
12564         (floor): Define using libm_alias_double.
12565         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
12566         <libm-alias-double.h>.
12567         (llround): Define using libm_alias_double.
12568         [_LP64] (lround): Likewise.
12569         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
12570         <libm-alias-double.h>.
12571         [!_LP64] (lround): Define using libm_alias_double.
12572         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
12573         <libm-alias-double.h>.
12574         (nearbyint): Define using libm_alias_double.
12575         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
12576         <libm-alias-double.h>.
12577         (remquo): Define using libm_alias_double.
12578         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
12579         <libm-alias-double.h>.
12580         (rint): Define using libm_alias_double.
12581         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
12582         <libm-alias-double.h>.
12583         (round): Define using libm_alias_double.
12584         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
12585         <libm-alias-double.h>.
12586         (trunc): Define using libm_alias_double.
12587         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
12588         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
12589         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
12590         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
12591         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
12592         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
12593         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
12594         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
12595         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
12597 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12599         * math/w_remainder.c: New file.
12600         * math/w_remainderf.c: New file.
12601         * math/w_remainderl.c: New file.
12603 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
12605         * elf/rtld.c (BOOTSTRAP_MAP): New.
12606         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
12607         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12608         Likewise.
12609         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12610         Likewise.
12611         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
12612         Likewise.
12614 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12616         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
12617         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
12618         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
12619         rtld_hidden_data_ver): Define to empty.
12620         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
12621         __assert_perror_fail): Likewise.
12622         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12623         (__rewinddir): Likewise.
12624         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12625         (__profile_frequency): Likewise.
12626         * include/setjmp.h (__sigsetjmp): Likewise.
12627         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
12628         __libc_sigaction): Likewise.
12629         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
12630         not set hidden attribute.
12631         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
12632         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
12633         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
12634         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
12635         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
12636         __fxstatat64): Likewise.
12637         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12638         (__uname): Likewise.
12639         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
12640         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
12641         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
12642         (NO_RTLD_HIDDEN): Set.
12643         * sysdeps/mach/hurd/configure: Refresh.
12644         * config.h.in: Refresh.
12646 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
12648         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
12649         (atan): Define using libm_alias_double.
12650         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
12651         (tan): Define using libm_alias_double.
12652         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
12653         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
12655         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
12656         define as weak alias of __atan.  Do not define any aliases if
12657         [__atan].
12658         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
12659         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
12660         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
12661         as weak alias of __tan.  Do not define any aliases if [__tan].
12662         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
12663         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
12664         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
12665         __atan.
12666         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
12667         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
12668         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
12669         and define as weak alias of __atan.
12670         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
12671         __atan.
12672         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
12673         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
12674         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
12675         define as weak alias of __tan.
12677 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12679         * math/w_lgamma.c: New file.
12680         * math/w_lgammaf.c: New file.
12681         * math/w_lgammal.c: New file.
12683 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12685         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
12686         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
12687         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
12688         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
12689         * sysdeps/ieee754/flt-32/w_logf.c: New file.
12690         * sysdeps/ieee754/flt-32/w_powf.c: New file.
12691         * sysdeps/i386/fpu/w_log2f.c: New file.
12692         * sysdeps/i386/fpu/w_logf.c: New file.
12693         * sysdeps/i386/fpu/w_powf.c: New file.
12694         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
12695         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
12696         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
12698 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12699             H.J. Lu  <hongjiu.lu@intel.com>
12701         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
12702         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
12703         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
12704         * sysdeps/ieee754/flt-32/w_expf.c: New file.
12705         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
12706         the new expf code.
12707         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
12708         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
12709         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
12710         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
12711         * sysdeps/i386/fpu/w_exp2f.c: New file.
12712         * sysdeps/i386/fpu/w_expf.c: New file.
12713         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
12714         * sysdeps/x86_64/fpu/w_expf.c: New file.
12716 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
12718         * math/Versions (logf): New libm symbol at GLIBC_2.27.
12719         (log2f): Likewise.
12720         (powf): Likewise.
12721         * math/w_log2f.c: New file.
12722         * math/w_logf.c: New file.
12723         * math/w_powf.c: New file.
12724         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
12725         * math/w_logf_compat.c (__logf_compat): Likewise.
12726         * math/w_powf_compat.c (__powf_compat): Likewise.
12727         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
12728         * sysdeps/ia64/fpu/e_logf.S: Likewise.
12729         * sysdeps/ia64/fpu/e_powf.S: Likewise.
12730         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
12731         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12732         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12733         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12734         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12735         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12736         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12737         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12738         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12739         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12740         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12741         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
12743         Likewise.
12744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12745         Likewise.
12746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
12747         Likewise.
12748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
12749         Likewise.
12750         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12751         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12752         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12753         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12754         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
12756         Likewise.
12757         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
12758         Likewise.
12759         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
12760         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12761         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12763 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
12765         * sysdeps/powerpc/powerpc64/multiarch/Makefile
12766         (sysdep_routines): Add memrchr_power8.
12767         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
12768         (memrchr): Add __memrchr_power8 to list of memrchr functions.
12769         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
12770         New file.
12771         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
12772         (memrchr): Add __memrchr_power8 to ifunc list.
12773         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
12775 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12777         [BZ #18822]
12778         * sysdeps/unix/sysv/linux/posix_fadvise64.c
12779         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
12780         libc_hidden_def.
12781         * sysdeps/unix/sysv/linux/posix_fallocate64.c
12782         (__posix_fallocate64_l64): Likewise.
12784 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12786         [BZ #18822]
12787         * sysdeps/unix/sysv/linux/sched_setaffinity.c
12788         (__sched_setaffinity_new): Add libc_hidden_proto and
12789         libc_hidden_def.
12791 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12793         [BZ #18822]
12794         * include/glob.h (__glob64): Add libc_hidden_proto.
12795         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
12796         libc_hidden_def.
12798 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12800         [BZ #18822]
12801         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
12802         attribute_hidden.
12804 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12806         [BZ #18822]
12807         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
12809 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12811         [BZ #18822]
12812         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
12813         libc_hidden_def.
12815 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12817         [BZ #18822]
12818         * csu/version.c (__libc_print_version): Add attribute_hidden.
12820 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12822         [BZ #18822]
12823         * include/libc-internal.h (__init_misc): Add attribute_hidden.
12825 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12827         [BZ #18822]
12828         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
12830 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12832         [BZ #18822]
12833         * nscd/nscd_helper.c (__nis_hash): New prototype.
12835 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12837         [BZ #18822]
12838         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
12839         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
12840         libc_hidden_def.
12841         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
12842         * termios/tcgetattr.c (__tcgetattr): Likewise.
12844 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12846         [BZ #18822]
12847         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
12848         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
12849         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
12850         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
12851         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
12853 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12855         [BZ #18822]
12856         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
12858 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12860         [BZ #18822]
12861         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
12862         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
12864 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12866         [BZ #18822]
12867         * intl/hash-string.h (__hash_string): Add attribute_hidden.
12869 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12871         [BZ #18822]
12872         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
12873         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
12875 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12877         [BZ #18822]
12878         * include/ifreq.h: New file.
12879         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
12880         (__ifreq): Likewise.
12881         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
12882         (__ifreq): Likewise.
12884 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12886         [BZ #18822]
12887         * include/idna.h: New file.
12888         * inet/getnameinfo.c: Include <idna.h> instead of
12889         <libidn/idna.h>.
12890         (__idna_to_unicode_lzlz): Removed.
12891         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
12892         <libidn/idna.h>.
12893         (__idna_to_ascii_lz): Removed.
12894         (__idna_to_unicode_lzlz): Likewise.
12896 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12898         [BZ #18822]
12899         * include/plural-exp.h: New file.
12900         * intl/plural-exp.c: Include <plural-exp.h> instead of
12901         "plural-exp.h".
12903 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12905         [BZ #18822]
12906         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
12907         "getsourcefilter.h".
12908         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
12909         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
12910         "getsourcefilter.h".
12911         (__get_sol): Removed.
12913 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12915         [BZ #18822]
12916         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
12917         to ...
12918         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
12920 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12922         [BZ #18822]
12923         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
12924         attribute_hidden.
12926 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12928         [BZ #18822]
12929         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
12931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12933         [BZ #18822]
12934         * include/search.h (__tdestroy): Add libc_hidden_proto.
12935         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
12937 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12939         [BZ #18822]
12940         * include/assert.h (__assert_fail_base): Add attribute_hidden.
12942 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12944         [BZ #18822]
12945         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
12946         attribute_hidden.
12948 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12950         [BZ #18822]
12951         * include/signal.h (__kill): Add libc_hidden_proto.
12952         (__sigblock): Likewise.
12953         (__sigprocmask): Likewise.
12954         (__sigaltstack): Likewise.
12955         * signal/kill.c (__kill): Add libc_hidden_def.
12956         * signal/sigblock.c (__sigblock): Likewise.
12957         * signal/sigprocmask.c (__sigprocmask): Likewise.
12958         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
12959         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
12960         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
12961         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
12962         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
12963         Likewise.
12964         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
12965         Likewise.
12966         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
12967         (__sigprocmask): Likewise.
12968         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
12969         Likewise.
12970         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
12971         (__sigprocmask): Likewise.
12972         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
12973         Likewise.
12975 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12977         [BZ #18822]
12978         * include/string.h (__strsep): Add libc_hidden_proto.
12979         * string/strsep.c (__strsep): Add libc_hidden_def.
12981 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12983         [BZ #18822]
12984         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
12985         attribute_hidden.
12986         (__spawni): Likewise.
12988 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12990         [BZ #18822]
12991         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
12992         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
12993         libc_hidden_def.
12995 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
12997         [BZ #18822]
12998         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
13000 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13002         [BZ #18822]
13003         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
13004         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
13005         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
13006         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
13007         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
13008         Likewise.
13009         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
13010         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
13012 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13014         [BZ #18822]
13015         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
13016         (__dcigettext): Likewise.
13018 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13020         [BZ #18822]
13021         * include/sys/sysinfo.h (__get_nprocs_conf): Add
13022         libc_hidden_proto.
13023         (__get_nprocs): Likewise.
13024         (__get_phys_pages): Likewise.
13025         (__get_avphys_pages): Likewise.
13026         (__get_child_max): Add attribute_hidden.
13027         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
13028         (__get_nprocs): Likewise.
13029         (__get_phys_pages): Likewise.
13030         (__get_avphys_pages): Likewise.
13031         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
13032         libc_hidden_def.
13033         (__get_nprocs): Likewise.
13034         (__get_phys_pages): Likewise.
13035         (__get_avphys_pages): Likewise.
13036         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
13037         libc_hidden_def.
13038         (__get_nprocs_conf): Likewise.
13039         (__get_phys_pages): Likewise.
13040         (__get_avphys_pages): Likewise.
13042 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13044         [BZ #18822]
13045         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
13046         attribute_hidden.
13047         (__netlink_close): Likewise.
13048         (__netlink_free_handle): Likewise.
13049         (__netlink_request): Likewise.
13051 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13053         [BZ #18822]
13054         * include/rpc/rpc.h (__rpc_thread_variables): Add
13055         attribute_hidden.
13056         (__rpc_thread_svc_cleanup): Likewise.
13057         (__rpc_thread_clnt_cleanup): Likewise.
13058         (__rpc_thread_key_cleanup): Likewise.
13060 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13062         [BZ #18822]
13063         * include/sys/uio.h (__readv): Add libc_hidden_proto.
13064         (__writev): Likewise.
13065         * misc/readv.c (__readv): Add libc_hidden_def.
13066         * misc/writev.c (__writev): Likewise.
13067         * sysdeps/posix/readv.c (__readv): Likewise.
13068         * sysdeps/posix/writev.c (__writev): Likewise.
13069         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
13070         (__readv): Likewise.
13071         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
13072         (__writev): Likewise.
13074 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13076         [BZ #18822]
13077         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
13078         (__regcomp): Add libc_hidden_proto.
13079         (__regexec): Likewise.
13080         (__regfree): Likewise.
13081         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
13082         (__regfree): Likewise.
13083         * posix/regexec.c (__regexec): Likewise.
13085 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13087         [BZ #18822]
13088         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
13089         (__getutent): Likewise.
13090         (__getutid): Likewise.
13091         (__getutline): Likewise.
13092         (__pututline): Likewise.
13093         (__getutent_r): Likewise.
13094         (__getutid_r): Likewise.
13095         (__getutline_r): Likewise.
13096         (__utmpname): Add attribute_hidden.
13097         (__setutent): Likewise.
13098         (__endutent): Likewise.
13099         * login/getutent.c (__getutent): Add libc_hidden_def.
13100         * login/getutent_r.c (__getutent_r): Likewise.
13101         (__pututline): Likewise.
13102         * login/getutid.c (__getutid): Likewise.
13103         * login/getutid_r.c (__getutid_r): Likewise.
13104         * login/getutline.c (__getutline): Likewise.
13105         * login/getutline_r.c (__getutline_r): Likewise.
13106         * login/updwtmp.c (__updwtmp): Likewise.
13108 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13110         [BZ #18822]
13111         * include/dirent.h (__opendir): Always add attribute_hidden.
13112         (__fdopendir): Likewise.
13113         (__closedir): Likewise.
13114         (__readdir): Likewise.
13115         (__readdir64): Add libc_hidden_proto.
13116         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
13117         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
13118         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
13119         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
13120         New alias.
13122 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13124         [BZ #18822]
13125         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
13126         * include/netdb.h (__gethostbyaddr_r): Likewise.
13127         (__gethostbyname_r): Likewise.
13128         (__gethostbyname2_r): Likewise.
13129         (__getnetbyaddr_r): Likewise.
13130         (__getnetbyname_r): Likewise.
13131         (__getservbyname_r): Likewise.
13132         (__getservbyport_r): Likewise.
13133         (__getprotobyname_r): Likewise.
13134         (__getprotobynumber_r): Likewise.
13135         (__getnetgrent_r): Likewise.
13136         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
13137         (__getrpcbynumber_r): Likewise.
13138         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
13140 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13142         [BZ #18822]
13143         * include/stdio.h (__fcloseall): Add attribute_hidden.
13144         (__getline): Likewise.
13145         (__path_search): Likewise.
13146         (__gen_tempname): Likewise.
13147         (__libc_message): Likewise.
13148         (__flockfile): Likewise.
13149         (__funlockfile): Likewise.
13150         (__fxprintf): Likewise.
13151         (__fxprintf_nocancel): Likewise.
13153 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13155         [BZ #18822]
13156         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
13157         (__sgetsgent_r): Likewise.
13159 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13161         [BZ #18822]
13162         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
13163         (__statfs64): Likewise.
13164         (__fstatfs64): Likewise.
13165         * include/sys/statvfs.h (__statvfs64): Likewise.
13166         (__fstatvfs64): Likewise.
13167         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
13168         (__statfs_filesize_max): Likewise.
13169         (__statfs_symlinks): Likewise.
13170         (__statfs_chown_restricted): Likewise.
13172 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13174         [BZ #18822]
13175         * include/time.h (__tzstring): Add attribute_hidden.
13176         (__tzfile_read): Likewise.
13177         (__tzfile_compute): Likewise.
13178         (__tzfile_default): Likewise.
13179         (__tzset_parse_tz): Likewise.
13180         (__offtime): Likewise.
13181         (__asctime_r): Likewise.
13182         (__tzset): Likewise.
13183         (__tz_convert): Likewise.
13184         (__getdate_r): Likewise.
13185         (__getclktck): Likewise.
13187 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13189         [BZ #18822]
13190         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
13191         (__nscd_unmap): Likewise.
13192         (__nscd_cache_search): Likewise.
13193         (__nscd_get_nl_timestamp): Likewise.
13194         (__nscd_getpwnam_r): Likewise.
13195         (__nscd_getpwuid_r): Likewise.
13196         (__nscd_getgrnam_r): Likewise.
13197         (__nscd_getgrgid_r): Likewise.
13198         (__nscd_gethostbyname_r): Likewise.
13199         (__nscd_gethostbyname2_r): Likewise.
13200         (__nscd_gethostbyaddr_r): Likewise.
13201         (__nscd_getai): Likewise.
13202         (__nscd_getgrouplist): Likewise.
13203         (__nscd_getservbyname_r): Likewise.
13204         (__nscd_getservbyport_r): Likewise.
13205         (__nscd_innetgr): Likewise.
13206         (__nscd_setnetgrent): Likewise.
13208 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13210         [BZ #18822]
13211         * include/gmp.h: Declare internal functions only if _ISOMAC is
13212         undefined.
13213         (__mpn_extract_double): Add attribute_hidden.
13214         (__mpn_extract_long_double): Likewise.
13215         (__mpn_extract_float128): Likewise.
13216         (__mpn_construct_float): Likewise.
13217         (__mpn_construct_double): Likewise.
13218         (__mpn_construct_long_double): Likewise.
13219         (__mpn_construct_float128): Likewise.
13220         (mpn_add_1): Likewise.
13221         (mpn_addmul_1): Likewise.
13222         (mpn_add_n): Likewise.
13223         (mpn_cmp): Likewise.
13224         (mpn_divrem): Likewise.
13225         (mpn_lshift): Likewise.
13226         (mpn_mul): Likewise.
13227         (mpn_mul_1): Likewise.
13228         (mpn_rshift): Likewise.
13229         (mpn_sub_1): Likewise.
13230         (mpn_submul_1): Likewise.
13231         (mpn_sub_n): Likewise.
13233 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13235         [BZ #18822]
13236         * include/wchar.h (__wcsnlen): Add attribute_hidden.
13237         (__wcscat): Likewise.
13238         (__btowc): Likewise.
13239         (__wcrtomb): Likewise.
13240         (__mbsrtowcs): Likewise.
13241         (__wcsrtombs): Likewise.
13242         (__mbsnrtowcs): Likewise.
13243         (__wcsnrtombs): Likewise.
13244         (__wcsncpy): Likewise.
13245         (__wcpncpy): Likewise.
13246         (__wmemcpy): Likewise.
13247         (__wmempcpy): Likewise.
13248         (__wmemmove): Likewise.
13249         (__wcschrnul): Likewise.
13250         (__vfwscanf): Likewise.
13251         (__vswprintf): Likewise.
13252         (__fwprintf): Likewise.
13253         (__vfwprintf): Likewise.
13255 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13257         [BZ #18822]
13258         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
13259         (__getgrgid_r): Likewise.
13260         (__getgrnam_r): Likewise.
13261         * include/pwd.h (__getpwuid_r): Likewise.
13262         (__getpwnam_r): Likewise.
13263         (__fgetpwent_r): Likewise.
13264         * include/shadow.h (__getspnam_r): Likewise.
13265         (__sgetspent_r): Likewise.
13266         (__fgetspent_r): Likewise.
13268 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13270         [BZ #18822]
13271         * include/unistd.h (__access): Add attribute_hidden.
13272         (__lseek64): Likewise.
13273         (__libc_pread64): Likewise.
13274         (__pipe2): Likewise.
13275         (__sleep): Likewise.
13276         (__chdir): Likewise.
13277         (__fchdir): Likewise.
13278         (__getcwd): Likewise.
13279         (__rmdir): Likewise.
13280         (__execvpe): Likewise.
13281         (__execve): Likewise.
13282         (__setsid): Likewise.
13283         (__getuid): Likewise.
13284         (__geteuid): Likewise.
13285         (__getgid): Likewise.
13286         (__getegid): Likewise.
13287         (__getgroups): Likewise.
13288         (__group_member): Likewise.
13289         (__ttyname_r): Likewise.
13290         (__isatty): Likewise.
13291         (__readlink): Likewise.
13292         (__unlink): Likewise.
13293         (__gethostname): Likewise.
13294         (__profil): Likewise.
13295         (__getdtablesize): Likewise.
13296         (__brk): Likewise.
13297         (__ftruncate): Likewise.
13298         (__ftruncate64): Likewise.
13300 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13302         [BZ #18822]
13303         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
13304         * argp/argp-fs-xinl.c: Likewise.
13305         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
13306         * argp/argp-parse.c: Include <argp.h>.
13307         * argp/argp-xinl.c: Likewise.
13308         * include/argp-fmtstream.h: New file.
13309         * include/argp.h (__argp_error): Add attribute_hidden.
13310         (__argp_failure): Likewise.
13311         (__argp_input): Likewise.
13312         (__argp_state_help): Likewise.
13314 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13316         [BZ #18822]
13317         * include/wchar.h (____wcstof_l_internal): New prototype.
13318         (____wcstod_l_internal): Likewise.
13319         (____wcstold_l_internal): Likewise.
13320         (____wcstol_l_internal): Likewise.
13321         (____wcstoul_l_internal): Likewise.
13322         (____wcstoll_l_internal): Likewise.
13323         (____wcstoull_l_internal): Likewise.
13324         (____wcstof128_l_internal): Likewise.
13325         * sysdeps/ieee754/float128/wcstof128.c
13326         (____wcstof128_l_internal): Removed.
13327         * sysdeps/ieee754/float128/wcstof128_l.c
13328         (____wcstof128_l_internal): Likewise.
13329         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
13330         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
13331         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
13332         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
13333         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
13334         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
13335         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
13336         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
13337         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
13338         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
13340 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13342         [BZ #18822]
13343         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
13344         instead of <sys/statvfs.h>.
13345         (__internal_statvfs): Removed.
13346         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
13347         instead of <sys/statvfs.h>.
13348         (__internal_statvfs64): Removed.
13349         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
13350         "internal_statvfs.h" instead of <sys/statvfs.h>.
13351         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
13352         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
13353         instead of <sys/statvfs.h>.
13354         (__internal_statvfs): Removed.
13355         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
13356         instead of <sys/statvfs.h>.
13357         (__internal_statvfs64): Removed.
13359 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13361         [BZ #18822]
13362         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
13363         (__gconv_close): Likewise.
13364         (__gconv): Likewise.
13365         (__gconv_find_transform): Likewise.
13366         (__gconv_lookup_cache): Likewise.
13367         (__gconv_compare_alias_cache): Likewise.
13368         (__gconv_load_cache): Likewise.
13369         (__gconv_get_path): Likewise.
13370         (__gconv_close_transform): Likewise.
13371         (__gconv_release_cache): Likewise.
13372         (__gconv_find_shlib): Likewise.
13373         (__gconv_release_shlib): Likewise.
13374         (__gconv_get_builtin_trans): Likewise.
13375         (__gconv_compare_alias): Likewise.
13376         * include/dlfcn.h (_dlerror_run): Likewise.
13377         * include/stdio.h (__fortify_fail_abort): Likewise.
13378         * include/time.h (__tz_compute): Likewise.
13379         (__strptime_internal): Likewise.
13380         * intl/gettextP.h (_nl_find_domain): Likewise.
13381         (_nl_load_domain): Likewise.
13382         (_nl_find_msg): Likewise.
13383         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
13384         (EXTRACT_PLURAL_EXPRESSION): Likewise.
13385         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
13386         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
13387         (__gai_find_request): Likewise.
13388         (__gai_remove_request): Likewise.
13389         (__gai_notify): Likewise.
13390         (__gai_notify_only): Likewise.
13391         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
13392         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
13393         (_dl_non_dynamic_init): Likewise.
13394         (_dl_aux_init): Likewise.
13395         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
13396         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
13397         Likewise.
13398         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
13399         (__wcsmbs_clone_conv): Likewise.
13400         (__wcsmbs_named_conv): Likewise.
13402 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13404         [BZ #18822]
13405         * include/stdlib.h (__random): Add attribute_hidden.
13406         (__random_r): Likewise.
13407         (__srandom_r): Likewise.
13408         (__initstate_r): Likewise.
13409         (__setstate_r): Likewise.
13410         (__erand48_r): Likewise.
13411         (__nrand48_r): Likewise.
13412         (__jrand48_r): Likewise.
13413         (__srand48_r): Likewise.
13414         (__seed48_r): Likewise.
13415         (__lcong48_r): Likewise.
13416         (__drand48_iterate): Likewise.
13417         (__setenv): Likewise.
13418         (__unsetenv): Likewise.
13419         (__clearenv): Likewise.
13420         (__ptsname_r): Likewise.
13421         (__posix_openpt): Likewise.
13422         (__add_to_environ): Likewise.
13423         (__realpath): Add libc_hidden_proto.
13424         (__ecvt_r): Likewise.
13425         (__fcvt_r): Likewise.
13426         (__qecvt_r): Likewise.
13427         (__qfcvt_r): Likewise.
13428         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
13429         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
13431 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13433         [BZ #18822]
13434         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
13435         * include/time.h (__mktime_internal): Likewise.
13436         * libio/iolibio.h (__fopen_internal): Likewise.
13438 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
13440         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
13441         pointer in frame.
13442         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
13443         Correct offset used to restore PIC register.
13445 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
13447         [BZ libc/22165]
13448         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
13449         code to load address of __getcontext_ret when generating PIC code.
13451 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
13453         * elf/Makefile (tests-static-internal): Add
13454         tst-tls1-static-non-pie.
13455         (LDFLAGS-tst-tls1-static-non-pie): New.
13456         * elf/tst-tls1-static-non-pie.c: New file.
13458 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
13460         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
13461         (asinh): Define using libm_alias_double.
13462         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
13463         (cbrt): Define using libm_alias_double.
13464         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
13465         <libm-alias-double.h>.
13466         (copysign): Define using libm_alias_double.
13467         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
13468         (erf): Define using libm_alias_double.
13469         (erfc): Likewise.
13470         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
13471         (expm1): Define using libm_alias_double.
13472         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
13473         (fabs): Define using libm_alias_double.
13474         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
13475         libm_alias_double.
13476         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
13477         <libm-alias-double.h>.
13478         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
13479         libm_alias_double.
13480         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
13481         <libm-alias-double.h>.
13482         (getpayload): Define using libm_alias_double.
13483         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
13484         <libm-alias-double.h>.
13485         (llrint): Define using libm_alias_double.
13486         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
13487         (lrint): Define using libm_alias_double.
13488         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
13489         <libm-alias-double.h>.
13490         (nextup): Define using libm_alias_double.
13491         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
13492         <libm-alias-double.h>.
13493         (roundeven): Define using libm_alias_double.
13494         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
13495         libm_alias_double.
13496         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
13497         <libm-alias-double.h>.
13498         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
13499         using libm_alias_double.
13500         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
13501         (cos): Define using libm_alias_double.
13502         (sin): Likewise.
13503         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
13504         <libm-alias-double.h>.
13505         (sincos): Define using libm_alias_double.
13506         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
13507         (tanh): Define using libm_alias_double.
13508         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
13509         <libm-alias-double.h>.
13510         (totalorder): Define using libm_alias_double.
13511         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
13512         <libm-alias-double.h>.
13513         (totalordermag): Define using libm_alias_double.
13514         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
13515         libm_alias_double.
13516         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
13517         libm_alias_double.
13518         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
13519         <libm-alias-double.h>.
13520         (getpayload): Define using libm_alias_double.
13521         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
13522         <libm-alias-double.h>.
13523         (roundeven): Define using libm_alias_double.
13524         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
13525         <libm-alias-double.h>.
13526         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
13527         <libm-alias-double.h>.
13528         (totalorder): Define using libm_alias_double.
13529         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
13530         <libm-alias-double.h>.
13531         (totalordermag): Define using libm_alias_double.
13532         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
13533         libc compat symbol here.
13534         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
13535         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
13536         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
13537         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
13538         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
13539         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
13540         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
13541         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
13542         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
13543         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
13545 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13547         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
13548         _dl_relocate_static_pie instead of _dl_start to compute load
13549         address in static PIE.  Return 0 if _DYNAMIC is undefined for
13550         static executable.
13552 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13554         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
13555         _DYNAMIC is undefined for static executable.
13557 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13559         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
13561 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
13563         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13565 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
13567         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
13568         (__ieee754_lgamma_r): Use fabs rather than __fabs.
13569         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
13570         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
13571         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
13572         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
13573         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
13574         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
13575         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
13576         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
13577         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
13578         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
13579         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
13580         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
13581         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13582         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13583         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
13585 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
13587         * math/bits/cmathcalls.h (cimag): Remove inline.
13588         (creal): Remove inline.
13589         (conj): Remove inline.
13591 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13593         * math/Makefile (type-float-routines): Add e_powf_log2_data.
13594         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
13595         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
13596         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
13597         (issignalingf_inline): Likewise.
13598         (POWF_LOG2_TABLE_BITS): Likewise.
13599         (POWF_LOG2_POLY_ORDER): Likewise.
13600         (POWF_SCALE_BITS): Likewise.
13601         (POWF_SCALE): Likewise.
13602         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
13603         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
13604         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
13606 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13608         * math/Makefile (type-float-routines): Add e_log2f_data.
13609         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
13610         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
13611         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
13612         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
13613         * sysdeps/i386/fpu/e_log2f_data.c: New file.
13614         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
13615         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
13617 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13619         * math/Makefile (type-float-routines): Add e_logf_data.
13620         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
13621         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
13622         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
13623         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
13624         * sysdeps/i386/fpu/e_logf_data.c: New file.
13625         * sysdeps/ia64/fpu/e_logf_data.c: New file.
13626         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
13628 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
13630         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
13631         undefined _DYNAMIC in PIE libc.a.
13632         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
13633         Likewse.
13635 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
13637         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
13638         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
13639         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
13640         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
13641         (__signbit): Remove.
13642         (__signbitl): Remove.
13643         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
13644         (__signbit): Remove.
13645         (__signbitl): Remove.
13646         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
13647         (__signbit): Remove.
13648         (__signbitl): Remove.
13649         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
13650         (__signbit): Remove.
13651         (__signbitl): Remove.
13652         * sysdeps/tile/bits/mathinline.h: Delete file.
13653         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
13654         (__signbit): Remove.
13655         (__signbitl): Remove.
13657 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
13659         * math/math.h: Improve handling of C99 isgreater macros.
13660         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
13661         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
13662         * sysdeps/powerpc/bits/mathinline.h: Likewise.
13663         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13664         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
13666 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13668         * sysdeps/aarch64/libm-test-ulps: Update.
13670 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
13672         [BZ #22225]
13673         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
13674         math_opt_barrier on argument when doing arithmetic on it.
13675         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
13676         Likewise.  Use math_force_eval not math_opt_barrier after
13677         arithmetic.
13678         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
13679         math_opt_barrier on argument when doing arithmetic on it.
13680         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
13681         Likewise.
13683 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
13685         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
13686         libc_hidden_def.
13687         (__freeifaddrs): Likewise.
13689 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13691         * include/dirent.h (__dirfd): New declaration.
13692         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
13693         alias.
13694         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
13695         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
13696         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
13697         * include/unistd.h (__revoke): New declaration.
13698         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
13699         alias.
13700         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
13701         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
13702         revoke.
13703         * include/dirent.h (__seekdir): New declaration.
13704         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
13705         redefine as weak alias.
13706         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
13707         of seekdir.
13708         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
13709         and use libc_hidden_def on them.
13710         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
13711         them.
13712         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
13713         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
13714         instead of getifaddrs and freeifaddrs.
13716 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
13718         [BZ #18822]
13719         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
13720         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
13721         (__dso_handle): Remove declaration.
13722         * dlfcn/tstatexit.c (__dso_handle): Removed.
13723         (main): Don't check __dso_handle.
13724         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
13725         (main): Don't check __dso_handle.
13726         * include/dso_handle.h: New file.
13727         * malloc/mtrace.c: Include <dso_handle.h>.
13728         (mtrace): Pass __dso_handle directly.
13729         * nptl/pthread_atfork.c: Include <dso_handle.h>.
13730         (__dso_handle): Remove declaration.
13731         (__pthread_atfork): Pass __dso_handle directly.
13732         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
13733         (__dso_handle): Removed.
13734         * posix/wordexp-test.c: Include <dso_handle.h>.
13735         (__dso_handle): Remove declaration.
13736         (__app_register_atfork): Pass __dso_handle directly.
13737         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
13738         (__dso_handle): Remove declaration.
13739         (at_quick_exit): Pass __dso_handle directly.
13740         * stdlib/atexit.c: Include <dso_handle.h>.
13741         (__dso_handle): Remove declaration.
13742         (atexit): Pass __dso_handle directly.
13743         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
13744         (__dso_handle): Removed.
13746 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
13748         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
13749         using VDSO.
13751 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
13753         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
13754         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
13755         values to correct default value for given type.
13757 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
13759         [BZ #22101]
13760         * elf/Makefile (tests): Add tst-debug1.
13761         ($(objpfx)tst-debug1): New.
13762         ($(objpfx)tst-debug1.out): Likewise.
13763         ($(objpfx)tst-debug1mod1.so): Likewise.
13764         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
13765         with p_filesz == 0.
13766         * elf/tst-debug1.c: New file.
13768 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
13770         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
13771         Define using __ifunc.
13773 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13775         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
13776         exp2f() values.
13778 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
13780         [BZ #22156]
13781         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
13783 2017-09-26  Florian Weimer  <fweimer@redhat.com>
13785         * resolv/Makefile (tests-internal): Fix typo in comment.
13787 2017-09-26  Florian Weimer  <fweimer@redhat.com>
13789         * resolv/nss_dns/dns-host.c: Fix typo in comment.
13791 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
13793         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
13794         Use an union instead of a max_align_t array for __space,
13795         so that __space is the same size on all platforms.
13796         * malloc/scratch_buffer_grow_preserve.c
13797         (__libc_scratch_buffer_grow_preserve): Likewise.
13799         [BZ #22183]
13800         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
13801         version to 2.
13802         * posix/Makefile (routines): Add glob-lstat-compat and
13803         glob64-lstat-compat.
13804         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
13805         * posix/glob-lstat-compat.c: New file.
13806         * posix/glob64-lstat-compat.c: Likewise.
13807         * posix/tst-glob_lstat_compat.c: Likewise.
13808         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
13809         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
13810         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
13811         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
13812         Likewise.
13813         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
13814         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
13815         * posix/glob.c (glob_lstat): New function.
13816         (glob): Rename to __glob and add versioned symbol to 2.27.
13817         (glob_in_dir): Use glob_lstat.
13818         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
13819         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
13820         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
13821         2.27.
13822         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
13823         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
13824         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
13825         gl_lstat on glob call.
13826         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
13827         and glob64 symbols.
13828         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
13829         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
13830         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
13831         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
13832         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
13833         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
13834         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
13835         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
13836         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
13837         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
13838         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
13839         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
13840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
13841         Likewise.
13842         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
13843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
13844         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
13845         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
13846         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
13847         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
13848         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
13849         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
13850         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
13851         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
13852         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
13853         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
13855 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13857         * configure.ac (AS): Require binutils 2.25 or later.
13858         * configure: Regenerated.
13860 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
13862         [BZ #22207]
13863         * stdlib/test-atexit-race-common.c (do_test): Minimize required
13864         VM size.
13866 2017-09-25  DJ Delorie  <dj@redhat.com>
13868         [BZ #22161]
13869         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
13870         resetting timeout.
13872 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
13874         * sysdeps/ieee754/dbl-64/sincos32.h
13875         [SINCCOS32_H]: Remove define.
13876         [SINCOS32_H]: Define.
13878 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13880         * math/Versions (expf): New libm symbol at GLIBC_2.27.
13881         (exp2f): Likewise.
13882         * math/w_exp2f.c: New file.
13883         * math/w_expf.c: New file.
13884         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
13885         * math/w_expf_compat.c (__expf_compat): Likewise.
13886         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
13887         * sysdeps/ia64/fpu/e_expf.S: Likewise.
13888         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
13889         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13890         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13891         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13892         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13893         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13894         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13895         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13896         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13897         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13898         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13899         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
13901         Likewise.
13902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
13903         Likewise.
13904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
13905         Likewise.
13906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
13907         Likewise.
13908         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13909         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13910         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13911         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13912         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13913         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
13914         Likewise.
13915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
13916         Likewise.
13917         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
13918         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13919         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13921 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13923         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
13924         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
13925         (roundtoint, converttoint): Likewise.
13926         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
13927         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
13928         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
13929         * sysdeps/ieee754/flt-32/math_config.h: New file.
13930         * sysdeps/ieee754/flt-32/math_errf.c: New file.
13931         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
13932         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
13933         * sysdeps/i386/fpu/math_errf.c: New file.
13934         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
13935         * sysdeps/ia64/fpu/math_errf.c: New file.
13936         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
13937         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
13939 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13941         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
13942         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
13943         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
13944         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
13945         to make sure that these symbols are defined.
13946         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
13947         of <limits.h>
13948         (__need_NULL): Do not define.
13949         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
13950         alignment.
13951         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
13952         CMGROUP_MAX, cmsgcred): Do not define.
13953         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
13954         NULL.
13955         * bits/socket.h: Likewise.
13956         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
13957         __gettimeofday instead of gettimeofday.
13958         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
13959         instead of settimeofday.
13961 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
13963         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
13964         (asinhf): Define using libm_alias_float.
13965         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
13966         (atanf): Define using libm_alias_float.
13967         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
13968         (cbrtf): Define using libm_alias_float.
13969         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
13970         (ceilf): Define using libm_alias_float.
13971         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
13972         <libm-alias-float.h>.
13973         (copysignf): Define using libm_alias_float.
13974         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
13975         (cosf): Define using libm_alias_float.
13976         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
13977         (erff): Define using libm_alias_float.
13978         (erfcf): Likewise.
13979         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
13980         (expm1f): Define using libm_alias_float.
13981         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
13982         (fabsf): Define using libm_alias_float.
13983         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
13984         (floorf): Define using libm_alias_float.
13985         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
13986         (frexpf): Define using libm_alias_float.
13987         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
13988         libm_alias_float.
13989         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
13990         <libm-alias-float.h>.
13991         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
13992         libm_alias_float.
13993         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
13994         <libm-alias-float.h>.
13995         (getpayloadf): Define using libm_alias_float.
13996         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
13997         <libm-alias-float.h>.
13998         (llrintf): Define using libm_alias_float.
13999         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
14000         <libm-alias-float.h>.
14001         (llroundf): Define using libm_alias_float.
14002         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
14003         (logbf): Define using libm_alias_float.
14004         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
14005         (lrintf): Define using libm_alias_float.
14006         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
14007         (lroundf): Define using libm_alias_float.
14008         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
14009         (modff): Define using libm_alias_float.
14010         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
14011         <libm-alias-float.h>.
14012         (nearbyintf): Define using libm_alias_float.
14013         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
14014         <libm-alias-float.h>.
14015         (nextafterf): Define using libm_alias_float.
14016         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
14017         <libm-alias-float.h>.
14018         (nextupf): Define using libm_alias_float.
14019         * sysdeps/ieee754/flt-32/s_remquof.c: Include
14020         <libm-alias-float.h>.
14021         (remquof): Define using libm_alias_float.
14022         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
14023         (rintf): Define using libm_alias_float.
14024         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
14025         <libm-alias-float.h>.
14026         (roundevenf): Define using libm_alias_float.
14027         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
14028         (roundf): Define using libm_alias_float.
14029         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
14030         using libm_alias_float.
14031         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
14032         <libm-alias-float.h>.
14033         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
14034         Define using libm_alias_float.
14035         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
14036         <libm-alias-float.h>.
14037         (sincosf): Define using libm_alias_float.
14038         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
14039         (sinf): Define using libm_alias_float.
14040         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
14041         (tanf): Define using libm_alias_float.
14042         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
14043         (tanhf): Define using libm_alias_float.
14044         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
14045         <libm-alias-float.h>.
14046         (totalorderf): Define using libm_alias_float.
14047         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
14048         <libm-alias-float.h>.
14049         (totalordermagf): Define using libm_alias_float.
14050         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
14051         (truncf): Define using libm_alias_float.
14052         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
14053         libm_alias_float.
14054         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
14055         libm_alias_float.
14057 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14059         [BZ #22146]
14060         math/math.h: Let fpclassify use the builtin in C++ mode, even
14061         when optimazing for size.
14063 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
14065         * csu/Makefile (generated): Do not add version-info.h.
14066         (before-compile): Likewise.
14067         (all-Banner-files): Remove variable.
14068         ($(objpfx)version-info.h): Remove rule.
14069         * csu/version.c (banner): Do not include "version-info.h".
14070         * libidn/Banner: Remove.
14071         * manual/contrib.texi (Simon Josefsson): New entry.
14073 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14075         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
14076         Remove conditionals on LDBL_MANT_DIG.
14077         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
14078         (__ieee754_lgammal_r): Likewise.
14080 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14082         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
14083         _Float128 and L().
14084         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
14085         _Float128 and L(). Replace _Float128 with long double and L(x)
14086         with xL, throughout the file.
14087         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14088         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
14089         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
14090         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
14092 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14094         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
14095         sysdeps/ieee754/ldbl-128ibm.
14096         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
14097         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
14098         of including it.  Keep _Float128 and L() intact.  These will be
14099         reviewed by a separate patch.
14100         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14101         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
14102         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
14103         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
14105 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14107         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
14108         (__finitef128): Define to __redirect___finitef128.
14109         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
14110         (__isinff128): Define to __redirect___isinff128.
14111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
14112         (__isnanf128): Define to __redirect___isnanf128.
14114 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
14116         * sysdeps/powerpc/powerpc64le/Makefile
14117         (CFLAGS-tst-strtod-nan-locale.c): New variable.
14118         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
14120 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
14121             Carlos O'Donell  <carlos@redhat.com>
14123         [BZ #22180]
14124         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
14125         * stdlib/test-dlclose-exit-race.c: New file.
14126         * stdlib/test-dlclose-exit-race-helper.c: New file.
14127         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
14129 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
14131         * crypt/Banner: Remove file.
14132         * nptl/Banner: Likewise.
14133         * resolv/Banner: Likewise.
14134         * soft-fp/Banner: Likewise.
14135         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
14136         ($(objpfx)version.d): Remove dependency on banner.h.
14137         ($(objpfx)version.os): Likewise.
14138         * nptl/version.c (banner): Do not include banner.h.
14139         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
14140         Jelinek and BIND code.
14142 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
14143             Carlos O'Donell  <carlos@redhat.com>
14145         * support/xdlfcn.h: New file.
14146         * support/xdlfcn.c: New file.
14147         * support/Makefile (libsupport-routines): Add xdlfcn.
14148         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
14150 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
14152         [BZ #20142]
14153         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14154         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
14155         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
14156         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
14157         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
14158         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
14159         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
14160         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
14162 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
14163             Ricky Zhou  <rickyz@google.com>
14164             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
14166         [BZ #14333]
14167         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
14168         Remove atomics.
14169         (__new_exitfn): Fail registration when we finished at_exit processing.
14170         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
14171         * stdlib/on_exit.c (__on_exit): Likewise.
14172         * stdlib/exit.c (__exit_funcs_done): New variable.
14173         (__run_exit_handlers): Use __exit_funcs_lock.
14174         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
14175         declarations.
14176         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
14177         (test-cxa_atexit-race, test-on_exit-race): New tests.
14178         * stdlib/test-atexit-race-common.c: New file.
14179         * stdlib/test-atexit-race.c: New file.
14180         * stdlib/test-at_quick_exit-race.c: New file.
14181         * stdlib/test-cxa_atexit-race.c: New file.
14182         * stdlib/test-on_exit-race.c: New file.
14184 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14186         * benchtests/Makefile: Add exp2f and log2f benchmarks.
14187         * benchtests/exp2f-inputs: Copy of expf-inputs.
14188         * benchtests/log2f-inputs: Copy of logf-inputs.
14190 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
14192         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
14193         Explicitly take address of first element of array arguments in
14194         call to INLINE_SYSCALL.
14196 2017-09-19  Andreas Schwab  <schwab@suse.de>
14198         [BZ #22134]
14199         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
14200         execveat first.
14201         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
14202         unimplemented.
14203         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
14204         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
14205         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14206         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
14207         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14208         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
14209         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14210         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
14211         * posix/Makefile (tests): Add tst-fexecve.
14212         * posix/tst-fexecve.c: New file.
14214 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
14216         * benchtests/Makefile: Add logf benchmark.
14217         * benchtests/logf-inputs: Add reduced trace from wrf_r.
14219 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
14221         * benchtests/Makefile: Add expf benchmark.
14222         * benchtests/expf-inputs: Add reduced trace from wrf_r.
14224 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
14226         * csu/Makefile: Add -funwind-tables to libc-start.c.
14227         * debug/Makefile: Add -funwind-tables to backtrace.c.
14228         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
14229         * sysdeps/arm/Makefile: Likewise.
14230         * sysdeps/i386/Makefile: Likewise.
14231         * sysdeps/m68k/Makefile: Likewise.
14232         * sysdeps/mips/Makefile: Likewise.
14233         * sysdeps/nios2/Makefile: Likewise.
14234         * sysdeps/sh/Makefile: Likewise.
14235         * sysdeps/sparc/Makefile: Likewise.
14237 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
14239         * benchtests/Makefile (bench-math): Add trunc and truncf.
14240         (CFLAGS-bench-trunc.c): New variable.
14241         (CFLAGS-bench-truncf.c): Likewise.
14242         * benchtests/trunc-inputs: New file.
14243         * benchtests/truncf-inputs: Likewise.
14245 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14247         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
14249 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
14251         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
14252         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
14253         redefine.
14254         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
14255         (exp10l): Define as weak alias.
14256         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
14257         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
14258         and redefine.
14259         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
14260         (remainderl): Define as weak alias.
14262         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
14263         (fmal): Define using libm_alias_ldouble.
14264         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
14265         (acoshl): Define using libm_alias_ldouble.
14266         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
14267         (acosl): Define using libm_alias_ldouble.
14268         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
14269         (asinl): Define using libm_alias_ldouble.
14270         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
14271         (atan2l): Define using libm_alias_ldouble.
14272         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
14273         (atanhl): Define using libm_alias_ldouble.
14274         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
14275         (coshl): Define using libm_alias_ldouble.
14276         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
14277         (exp10l): Define using libm_alias_ldouble.
14278         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
14279         (exp2l): Define using libm_alias_ldouble.
14280         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
14281         (expl): Define using libm_alias_ldouble.
14282         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
14283         (fmodl): Define using libm_alias_ldouble.
14284         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
14285         (hypotl): Define using libm_alias_ldouble.
14286         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
14287         (j0l): Define using libm_alias_ldouble.
14288         (y0l): Likewise.
14289         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
14290         (j1l): Define using libm_alias_ldouble.
14291         (y1l): Likewise.
14292         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
14293         (jnl): Define using libm_alias_ldouble.
14294         (ynl): Likewise.
14295         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
14296         (log10l): Define using libm_alias_ldouble.
14297         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
14298         (log2l): Define using libm_alias_ldouble.
14299         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
14300         (logl): Define using libm_alias_ldouble.
14301         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
14302         (powl): Define using libm_alias_ldouble.
14303         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
14304         (remainderl): Define using libm_alias_ldouble.
14305         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
14306         (sinhl): Define using libm_alias_ldouble.
14307         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
14308         (sqrtl): Define using libm_alias_ldouble.
14309         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
14310         (tgammal): Define using libm_alias_ldouble.
14311         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
14312         (exp10l): Do not use long_double_symbol here.
14313         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
14314         [LIBM_SVID_COMPAT] (remainderl): Likewise.
14315         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
14316         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
14317         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
14318         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
14319         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
14320         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
14321         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
14322         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
14323         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
14324         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
14325         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
14326         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
14327         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
14328         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
14329         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
14330         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
14331         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
14332         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
14333         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
14334         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
14336 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
14338         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
14339         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
14341 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14343         * io/read.c (read): Add libc_hidden_weak.
14344         * sysdeps/mach/hurd/read.c (read): Likewise.
14345         * io/write.c (write): Likewise.
14346         * sysdeps/mach/hurd/write.c (write): Likewise.
14347         * io/pread64.c (__pread64): Likewise.
14348         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
14349         * posix/pread64.c (__pread64): Add libc_hidden_def.
14351 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14353         * benchtests/scripts/compare_strings.py: New option -g.
14354         (draw_graph): Print a message that a graph is being generated.
14355         (process_results): Generate graph only if -g is passed.
14356         (main): Process option -g.
14358         * benchtests/scripts/compare_strings.py (process_results):
14359         Better spacing for output.
14361         * benchtests/scripts/compare_strings.py: Use argparse.
14362         * benchtests/README: Document existence of compare_strings.py.
14364 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
14366         * math/s_fma.c: Include <libm-alias-double.h>.
14367         (fma): Define using libm_alias_double.
14368         * math/s_nextafter.c: Include <libm-alias-double.h>.
14369         (nextafter): Define using libm_alias_double.
14370         * math/w_acos_compat.c: Include <libm-alias-double.h>.
14371         (acos): Define using libm_alias_double.
14372         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
14373         (aocsh): Define using libm_alias_double.
14374         * math/w_asin_compat.c: Include <libm-alias-double.h>.
14375         (asin): Define using libm_alias_double.
14376         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
14377         (atan2): Define using libm_alias_double.
14378         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
14379         (atanh): Define using libm_alias_double.
14380         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
14381         (cosh): Define using libm_alias_double.
14382         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
14383         (exp10): Define using libm_alias_double.
14384         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
14385         (exp2): Define using libm_alias_double.
14386         * math/w_exp_compat.c: Include <libm-alias-double.h>.
14387         (exp): Define using libm_alias_double.
14388         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
14389         (fmod): Define using libm_alias_double.
14390         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
14391         (hypot): Define using libm_alias_double.
14392         * math/w_j0_compat.c: Include <libm-alias-double.h>.
14393         (j0): Define using libm_alias_double.
14394         (y0): Likewise.
14395         * math/w_j1_compat.c: Include <libm-alias-double.h>.
14396         (j1): Define using libm_alias_double.
14397         (y1): Likewise.
14398         * math/w_jn_compat.c: Include <libm-alias-double.h>.
14399         (jn): Define using libm_alias_double.
14400         (yn): Likewise.
14401         * math/w_log10_compat.c: Include <libm-alias-double.h>.
14402         (log10): Define using libm_alias_double.
14403         * math/w_log2_compat.c: Include <libm-alias-double.h>.
14404         (log2): Define using libm_alias_double.
14405         * math/w_log_compat.c: Include <libm-alias-double.h>.
14406         (log): Define using libm_alias_double.
14407         * math/w_pow_compat.c: Include <libm-alias-double.h>.
14408         (pow): Define using libm_alias_double.
14409         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
14410         (remainder): Define using libm_alias_double.
14411         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
14412         (sinh): Define using libm_alias_double.
14413         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
14414         (sqrt): Define using libm_alias_double.
14415         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
14416         (tgamma): Define using libm_alias_double.
14417         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
14418         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
14419         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
14420         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
14421         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
14422         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
14423         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
14424         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
14425         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
14426         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
14427         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
14428         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
14429         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
14430         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
14431         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
14432         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
14433         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
14434         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
14435         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
14436         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
14437         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
14438         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
14439         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
14440         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
14441         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
14443         * math/e_acoshl.c: Remove.
14444         * math/e_acosl.c: Likewise.
14445         * math/e_asinl.c: Likewise.
14446         * math/e_atan2l.c: Likewise.
14447         * math/e_atanhl.c: Likewise.
14448         * math/e_coshl.c: Likewise.
14449         * math/e_expl.c: Likewise.
14450         * math/e_fmodl.c: Likewise.
14451         * math/e_gammal_r.c: Likewise.
14452         * math/e_hypotl.c: Likewise.
14453         * math/e_j0l.c: Likewise.
14454         * math/e_j1l.c: Likewise.
14455         * math/e_jnl.c: Likewise.
14456         * math/e_lgammal_r.c: Likewise.
14457         * math/e_log10l.c: Likewise.
14458         * math/e_log2l.c: Likewise.
14459         * math/e_logl.c: Likewise.
14460         * math/e_powl.c: Likewise.
14461         * math/e_rem_pio2l.c: Likewise.
14462         * math/e_sinhl.c: Likewise.
14463         * math/e_sqrtf128.c: Likewise.
14464         * math/e_sqrtl.c: Likewise.
14465         * math/k_cosl.c: Likewise.
14466         * math/k_sinl.c: Likewise.
14467         * math/k_tanl.c: Likewise.
14468         * math/s_asinhl.c: Likewise.
14469         * math/s_atanl.c: Likewise.
14470         * math/s_cbrtl.c: Likewise.
14471         * math/s_erfl.c: Likewise.
14472         * math/s_expm1l.c: Likewise.
14473         * math/s_log1pl.c: Likewise.
14474         * math/s_tanhl.c: Likewise.
14476 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14478         [BZ #21745]
14479         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
14480         [$(subdir) = math] (sysdep_calls): New variable.  Has the
14481         previous contents of sysdep_routines, but re-sorted..
14482         [$(subdir) = math] (sysdep_routines): Re-use the contents from
14483         sysdep_calls.
14484         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
14485         defined in sysdep_calls and replace by the respective m_* names.
14486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
14487         (compat_symbol): Undefine to avoid duplicated compat symbols in
14488         libc.
14490 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
14492         * math/s_fmaf.c: Include <libm-alias-float.h>.
14493         (fmaf): Define using libm_alias_float.
14494         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
14495         (acosf): Define using libm_alias_float.
14496         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
14497         (acoshf): Define using libm_alias_float.
14498         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
14499         (asinf): Define using libm_alias_float.
14500         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
14501         (atan2f): Define using libm_alias_float.
14502         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
14503         (atanhf): Define using libm_alias_float.
14504         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
14505         (coshf): Define using libm_alias_float.
14506         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
14507         (exp10f): Define using libm_alias_float.
14508         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
14509         (fmodf): Define using libm_alias_float.
14510         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
14511         (hypotf): Define using libm_alias_float.
14512         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
14513         (j0f): Define using libm_alias_float.
14514         (y0f): Likewise.
14515         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
14516         (j1f): Define using libm_alias_float.
14517         (y1f): Likewise.
14518         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
14519         (jnf): Define using libm_alias_float.
14520         (ynf): Likewise.
14521         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
14522         (log10f): Define using libm_alias_float.
14523         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
14524         (log2f): Define using libm_alias_float.
14525         * math/w_logf_compat.c: Include <libm-alias-float.h>.
14526         (logf): Define using libm_alias_float.
14527         * math/w_powf_compat.c: Include <libm-alias-float.h>.
14528         (powf): Define using libm_alias_float.
14529         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
14530         (remainderf): Define using libm_alias_float.
14531         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
14532         (sinhf): Define using libm_alias_float.
14533         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
14534         (sqrtf): Define using libm_alias_float.
14535         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
14536         (tgammaf): Define using libm_alias_float.
14538 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
14540         * include/math.h (roundeven): Change hidden_proto call to
14541         __roundeven.
14542         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
14543         alias.
14544         [NO_LONG_DOUBLE] (__j0l): New strong alias.
14545         (y0): Rename to __y0 and define as weak alias.
14546         [NO_LONG_DOUBLE] (__y0l): New strong alias.
14547         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
14548         alias.
14549         (y0f): Rename to __y0f and define as weak alias.
14550         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
14551         alias.
14552         [NO_LONG_DOUBLE] (__j1l): New strong alias.
14553         (y1): Rename to __y1 and define as weak alias.
14554         [NO_LONG_DOUBLE] (__y1l): New strong alias.
14555         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
14556         alias.
14557         (y1f): Rename to __y1f and define as weak alias.
14558         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
14559         alias.
14560         [NO_LONG_DOUBLE] (__jnl): New strong alias.
14561         (yn): Rename to __yn and define as weak alias.
14562         [NO_LONG_DOUBLE] (__ynl): New strong alias.
14563         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
14564         alias.
14565         (ynf): Rename to __ynf and define as weak alias.
14566         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
14567         (fromfp): Define as weak alias.
14568         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
14569         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
14570         (fromfpx): Define as weak alias.
14571         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
14572         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
14573         __getpayload and define as weak alias.
14574         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
14575         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
14576         __roundeven and define as weak alias.
14577         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
14578         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
14579         __setpayload.
14580         (setpayload): Define as weak alias.
14581         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
14582         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
14583         __setpayloadsig.
14584         (setpayloadsig): Define as weak alias.
14585         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
14586         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
14587         __totalorder and define as weak alias.
14588         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
14589         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
14590         to __totalordermag and define as weak alias.
14591         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
14592         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
14593         (ufromfp): Define as weak alias.
14594         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
14595         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
14596         __ufromfpx.
14597         (ufromfpx): Define as weak alias.
14598         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
14599         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
14600         Rename to __getpayload and define as weak alias.
14601         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
14602         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
14603         Rename to __roundeven and define as weak alias.
14604         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
14605         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
14606         Rename to __totalorder and define as weak alias.
14607         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
14608         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
14609         (totalordermag): Rename to __totalordermag and define as weak
14610         alias.
14611         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
14612         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
14613         macro.
14614         (__roundevenl): Likewise.
14615         (__totalorderl): Likewise.
14616         (__totalordermagl): Likewise
14617         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
14618         __fromfpf128.
14619         (fromfpf128): Define as weak alias.
14620         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
14621         __fromfpxf128.
14622         (fromfpxf128): Define as weak alias.
14623         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
14624         __setpayloadf128.
14625         (setpayloadf128): Define as weak alias.
14626         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
14627         __setpayloadsigf128.
14628         (setpayloadsigf128): Define as weak alias.
14629         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
14630         __ufromfpf128.
14631         (ufromfpf128): Define as weak alias.
14632         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
14633         __ufromfpxf128.
14634         (ufromfpxf128): Define as weak alias.
14635         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
14636         (fromfpf): Define as weak alias.
14637         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
14638         __fromfpxf.
14639         (fromfpxf): Define as weak alias.
14640         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
14641         __getpayloadf and define as weak alias.
14642         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
14643         __roundevenf and define as weak alias.
14644         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
14645         __setpayloadf.
14646         (setpayloadf): Define as weak alias.
14647         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
14648         __setpayloadsigf.
14649         (setpayloadsigf): Define as weak alias.
14650         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
14651         __totalorderf and define as weak alias.
14652         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
14653         Rename to __totalordermagf and define as weak alias.
14654         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
14655         __ufromfpf.
14656         (ufromfpf): Define as weak alias.
14657         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
14658         __ufromfpxf.
14659         (ufromfpxf): Define as weak alias.
14660         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
14661         __fromfpl.
14662         (fromfpl): Define as weak alias.
14663         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
14664         __fromfpxl.
14665         (fromfpxl): Define as weak alias.
14666         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
14667         to __getpayloadl and define as weak alias.
14668         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
14669         __roundevenl and define as weak alias.
14670         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
14671         __setpayloadl.
14672         (setpayloadl): Define as weak alias.
14673         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
14674         __setpayloadsigl.
14675         (setpayloadsigl): Define as weak alias.
14676         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
14677         to __totalorderl and define as weak alias.
14678         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
14679         Rename to __totalordermagl and define as weak alias.
14680         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
14681         __ufromfpl.
14682         (ufromfpl): Define as weak alias.
14683         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
14684         __ufromfpxl.
14685         (ufromfpxl): Define as weak alias.
14686         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
14687         __fromfpl.
14688         (fromfpl): Define as weak alias.
14689         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
14690         __fromfpxl.
14691         (fromfpxl): Define as weak alias.
14692         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
14693         Rename to __getpayloadl and define as weak alias.
14694         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
14695         to __roundevenl and define as weak alias.  Call __roundeven
14696         instead of roundeven.
14697         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
14698         __setpayloadl.
14699         (setpayloadl): Define as weak alias.
14700         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
14701         __setpayloadsigl.
14702         (setpayloadsigl): Define as weak alias.
14703         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
14704         Rename to __totalorderl and define as weak alias.
14705         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
14706         Rename to __totalordermagl and define as weak alias.
14707         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
14708         __ufromfpl.
14709         (ufromfpl): Define as weak alias.
14710         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
14711         __ufromfpxl.
14712         (ufromfpxl): Define as weak alias.
14713         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
14714         __fromfpl.
14715         (fromfpl): Define as weak alias.
14716         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
14717         __fromfpxl.
14718         (fromfpxl): Define as weak alias.
14719         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
14720         __getpayloadl and define as weak alias.
14721         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
14722         __roundevenl and define as weak alias.
14723         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
14724         __setpayloadl.
14725         (setpayloadl): Define as weak alias.
14726         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
14727         __setpayloadsigl.
14728         (setpayloadsigl): Define as weak alias.
14729         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
14730         __totalorderl and define as weak alias.
14731         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
14732         Rename to __totalordermagl and define as weak alias.
14733         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
14734         __ufromfpl.
14735         (ufromfpl): Define as weak alias.
14736         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
14737         __ufromfpxl.
14738         (ufromfpxl): Define as weak alias.
14740 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14742         * benchtests/bench-string.h (realloc_bufs): New function.
14743         (test_init): Call it.
14744         * benchtests/bench-memset-large.c (do_test): Likewise.
14745         * benchtests/bench-memset.c (do_test): Likewise.
14747         * benchtests/bench-memset-large.c: Print output in JSON
14748         format.
14749         * benchtests/bench-memset.c: Likewise.
14751 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
14753         [BZ #21084]
14754         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
14755         * iconvdata/Makefile: Add IBM858.
14756         * iconvdata/gconv-modules: Likewise.
14757         * iconvdata/tst-tables.sh: Likewise.
14758         * iconvdata/ibm858.c: New file.
14759         * localedata/charmaps/IBM858: Likewise.
14761 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
14763         [BZ #22023]
14764         * locales/niu_NZ (LC_TIME): copy "niu_NU".
14765         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
14767 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
14769         [BZ #22112]
14770         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
14771         and add tel_int_fmt.
14773 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
14775         * sysdeps/generic/libm-alias-float128.h: New file.
14776         * sysdeps/generic/math-type-macros-float128.h: Include
14777         <libm-alias-float128.h>.
14778         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
14780 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
14782         * sysdeps/generic/libm-alias-ldouble.h: New file.
14783         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
14784         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
14785         * sysdeps/generic/math-type-macros-ldouble.h: Include
14786         <libm-alias-ldouble.h>.
14787         [!declare_mgen_alias] (declare_mgen_alias): Define to use
14788         libm_alias_ldouble.
14790 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14792         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
14793         * math/w_exp_compat.c: ... here.
14794         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
14795         * math/w_expf_compat.c: ... here.
14796         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
14797         * math/w_expl_compat.c: ... here.
14798         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
14799         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
14800         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
14801         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
14803 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
14805         * math/w_scalbln_template.c (strong_alias): Do not undefine and
14806         redefine.
14807         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
14808         macro.
14809         (ldexpl): Only define as compat symbol for libc, not libm.
14810         (scalbnl): Define as compat symbol for libc here.
14811         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
14812         define for [IS_IN (libc)].
14813         (__ldexpl_2): Remove alias.
14814         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
14815         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
14816         name in long_double_symbol call.
14817         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
14818         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
14819         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
14820         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
14821         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
14822         Remove macro.
14823         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
14824         Define as compat symbol.
14826 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
14828         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
14829         * sysdeps/unix/sysv/linux/alpha/Makefile
14830         [$(subdir) = csu] (sysdep_routines): Remove rule.
14832 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
14834         * sysdeps/generic/libm-alias-double.h: New file.
14835         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
14836         * sysdeps/generic/math-type-macros-double.h: Include
14837         <libm-alias-double.h>.
14838         [declare_mgen_alias] (declare_mgen_alias): Define to use
14839         libm_alias_double.
14840         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
14841         (M_LIBM_NEED_COMPAT): Remove macro.
14842         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
14843         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
14844         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
14845         code.
14846         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14847         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14848         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14849         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14850         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14851         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14852         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14853         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14854         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14855         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14856         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14857         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14858         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14859         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14860         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14861         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14862         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14863         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14864         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14865         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14866         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14867         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14868         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14869         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14870         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14871         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14872         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
14873         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
14874         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
14875         macro.
14876         (declare_mgen_alias): New macro.
14877         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
14878         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
14879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
14880         (M_LIBM_NEED_COMPAT): Remove macro.
14881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
14882         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
14883         <first-versions.h>.
14884         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
14885         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
14887 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
14889         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
14890         (declare_mgen_alias_2): Remove.
14891         * sysdeps/generic/math-type-macros-double.h
14892         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
14893         Likewise.
14894         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
14895         alias.
14896         (ldexp): Define with declare_mgen_alias.
14897         (scalbn): Likewise.
14899 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
14901         * grp/initgroups.c: Include config.h.
14902         (DEFAULT_CONFIG): New macro.
14903         (internal_getgrouplist): Use DEFAULT_CONFIG.
14904         * nscd/initgrcache.c (addinitgroupsX): Likewise.
14905         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
14906         (DEFAULT_DEFCONFIG): New macro.
14907         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
14908         * nss/grp-lookup.c: Include config.h
14909         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
14910         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
14911         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
14912         * manual/nss.texi: Update default values section.
14914 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
14916         [BZ #21967]
14917         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
14918         New.
14919         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
14920         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14921         Handle MathVec_Prefer_No_AVX512.
14922         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
14923         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
14924         is set.
14926 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14928         * posix/sched_primax.c (__sched_get_priority_max): Add
14929         libc_hidden_def.
14930         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
14931         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
14932         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
14933         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
14934         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
14935         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
14936         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
14937         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
14938         Add aliases.
14940 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
14942         * sysdeps/generic/libm-alias-float.h: New file.
14943         * sysdeps/generic/math-type-macros-float.h: Include
14944         <libm-alias-float.h>.
14945         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
14947 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
14949         [BZ #22093]
14950         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
14951         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
14952         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
14953         (HWCAP_IMPORTANT): Likewise.
14954         (HWCAP_X86_64): New enum.
14955         (HWCAP_X86_AVX512_1): Updated.
14956         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
14957         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
14958         (modules-names): Add x86_64/tst-x86_64mod-1.
14959         (LDFLAGS-tst-x86_64mod-1.so): New.
14960         ($(objpfx)tst-x86_64-1): Likewise.
14961         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
14962         (tst-x86_64-1-clean): Likewise.
14963         * sysdeps/x86_64/tst-x86_64-1.c: New file.
14964         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
14966 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
14968         * po/sv.po: Update translations.
14969         * po/fr.po: Likewise.
14971 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14973         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
14974         seconds.
14975         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
14976         seconds.
14977         * elf/rtld-Rules: Fix $(error) use.
14979 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
14981         [BZ #14925]
14982         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
14983         * locale/iso-639.def: Change “Bengali” to “Bangla”.
14984         * localedata/locales/bn_BD: “Bengali” was still used in some
14985         comments. Change it to “Bangla”.
14987 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
14989         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
14991 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
14993         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
14994         thunderx2t99p1 to list of cpu names.
14995         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
14996         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
14998 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
15000         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
15001         Use strcmp instead of tunable_is_name.
15003 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
15005         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
15006         (F_GET_RW_HINT): New macro.
15007         [__USE_GNU] (F_SET_RW_HINT): Likewise.
15008         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
15009         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
15010         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
15011         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
15012         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
15013         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
15014         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
15015         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
15017         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
15018         (F_ADD_SEALS): New macro.
15019         [__USE_GNU] (F_GET_SEALS): Likewise.
15020         [__USE_GNU] (F_SEAL_SEAL): Likewise.
15021         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
15022         [__USE_GNU] (F_SEAL_GROW): Likewise.
15023         [__USE_GNU] (F_SEAL_WRITE): Likewise.
15025 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15027         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
15028         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
15029         * posix/glob_internal.h (__glob_pattern_type):
15030         * posix/glob.c (glob):
15031         * posix/glob_pattern_p.c (__glob_pattern_p):
15032         Use them.
15034         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
15035         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15036         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
15037         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
15038         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
15039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
15040         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
15041         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
15042         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
15043         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
15044         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
15045         * sysdeps/wordsize-64/glob.c: Likewise.
15046         * sysdeps/wordsize-64/glob64.c: Likewise.
15047         * sysdeps/wordsize-64/globfree.c: Likewise.
15048         * sysdeps/wordsize-64/globfree64.c: Likewise.
15049         * sysdeps/unix/sysv/linux/glob.c: New file.
15050         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
15051         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
15052         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
15053         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
15054         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
15055         adds !GLOB_NO_OLD_VERSION as an extra condition.
15056         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
15057         using relative path instead of absolute one.
15058         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15059         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15060         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15061         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15062         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
15063         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
15065         [BZ #1062]
15066         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
15067         (glob): Use the same scratch buffer for both getlogin_r and
15068         getpwnam_r.  Don’t require preallocation of the login name.  This
15069         simplifies storage allocation, and corrects the handling of
15070         long login names.
15072         [BZ #1062]
15073         * posix/glob.c (glob): Port recent patches to platforms
15074         lacking getpwnam_r.
15075         (glob): Fix longstanding misuse of errno after getpwnam_r, which
15076         returns an error number rather than setting errno.
15078         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
15079         instead of GCC extension.
15080         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
15081         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
15082         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
15084         [BZ #866]
15085         [BZ #1062]
15086         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
15087         * posix/bug-glob1.c: Remove file.
15088         * posix/tst-glob_symlinks.c: New file.
15089         * posix/glob.c (__lstat64): New macro.
15090         (is_dir): New function.
15091         (glob, glob_in_dir): Match symlinks even if they are dangling.
15092         (link_stat, link_exists_p): Remove.  All uses removed.
15094         [BZ #1062]
15095         [BZ #19971]
15096         * posix/glob.c (struct readdir_result): Remove skip_entry member.
15097         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
15098         All uses removed.
15100         [BZ #1062]
15101         CVE-2017-15671
15102         * posix/Makefile (routines): Add globfree, globfree64, and
15103         glob_pattern_p.
15104         * posix/flexmember.h: New file.
15105         * posix/glob_internal.h: Likewise.
15106         * posix/glob_pattern_p.c: Likewise.
15107         * posix/globfree.c: Likewise.
15108         * posix/globfree64.c: Likewise.
15109         * sysdeps/gnu/globfree64.c: Likewise.
15110         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
15111         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
15112         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
15113         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
15114         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
15115         * sysdeps/wordsize-64/globfree.c: Likewise.
15116         * sysdeps/wordsize-64/globfree64.c: Likewise.
15117         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
15118         [NDEBUG): Remove comments.
15119         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
15120         (dirent_type): New type.  Use uint_fast8_t not
15121         uint8_t, as C99 does not require uint8_t.
15122         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
15123         (struct readdir_result): Use dirent_type.  Do not define skip_entry
15124         unless it is needed; this saves a byte on platforms lacking d_ino.
15125         (readdir_result_type, readdir_result_skip_entry):
15126         New functions, replacing ...
15127         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
15128          these functions, which were removed.  This makes the callers
15129         easier to read.  All callers changed.
15130         (D_INO_TO_RESULT): Now empty if there is no d_ino.
15131         (size_add_wrapv, glob_use_alloca): New static functions.
15132         (glob, glob_in_dir): Check for size_t overflow in several places,
15133         and fix some size_t checks that were not quite right.
15134         Remove old code using SHELL since Bash no longer
15135         uses this.
15136         (glob, prefix_array): Separate MS code better.
15137         (glob_in_dir): Remove old Amiga and VMS code.
15138         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
15139         separate files.
15140         (glob_in_dir): Do not rely on undefined behavior in accessing
15141         struct members beyond their bounds.  Use a flexible array member
15142         instead
15143         (link_stat): Rename from link_exists2_p and return -1/0 instead of
15144         0/1.  Caller changed.
15145         (glob): Fix memory leaks.
15146         * posix/glob64 (globfree64): Move to separate file.
15147         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
15148         (globfree64): Remove hidden alias.
15149         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
15150         oldglob.
15151         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
15152         separate file.
15153         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
15154         define.
15155         Move compat code to separate file.
15156         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
15157         separate file.
15159 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
15161         * resolv/tst-resolv-qtypes.c (domain): Changed to
15162         "const char domain[] =".
15164 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
15166         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
15167         version to 3.1.6.
15169         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
15170         (TCP_MD5SIG_EXT): Likewise.
15171         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
15172         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
15173         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
15175         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
15177 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
15179         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
15181 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
15183         [BZ #22100]
15184         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
15186 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15188         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
15189         before assuming that the file is empty.  Avoid testing buffer content
15190         when nread == 0.
15192 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15194         [BZ #18858]
15195         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
15196         Remove define.
15197         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
15198         Likewise.
15199         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
15200         Likewise.
15201         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
15202         Likewise.
15203         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
15204         Likewise.
15205         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
15206         Likewise.
15207         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
15208         Likewise.
15210 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15212         * malloc/dynarray_emplace_enlarge.c
15213         (__libc_dynarray_emplace_enlarge): Add missing else.
15215 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15217         [BZ #22096]
15218         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
15219         case of failure to obtain the global conf object.
15221 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15223         [BZ #22095]
15224         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
15225         dynarray allocation failure.
15227 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15229         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
15230         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
15231         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
15232         New functions.
15233         (response): Call them.  Add 'p', '6' flag processing.
15234         (test_reverse): New function.
15235         (test_get2_any): Call it.
15236         (test_no_inet6): Add 'p' test.
15237         (test_inet6): Likewise.
15239 2017-09-06  Florian Weimer  <fweimer@redhat.com>
15241         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
15242         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
15243         the QNAME.
15244         (test_gai): Adjust query names.  Add additional tests.
15245         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
15246         test_get2.  Adjust query names.  Add additional tests.
15247         (test_no_inet6): New function, extracted from threadfunc.
15248         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
15249         Add additional tests.
15251 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
15253         [BZ #22070]
15254         * localedata/unicode-gen/utf8_gen.py: Set the width for
15255         characters with Prepended_Concatenation_Mark property to 1
15256         * localedata/charmaps/UTF-8: Updated using the improved script.
15258 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
15260         [BZ #21750]
15261         * localedata/unicode-gen/utf8_gen.py: Improve the script to
15262         use the range notation for all ranges of neighbouring characters
15263         with the same width.
15265 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
15267         * sysdeps/generic/math-type-macros-double.h: Include
15268         <math-svid-compat.h>.
15269         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
15270         * sysdeps/generic/math-type-macros-float.h: Include
15271         <math-svid-compat.h>.
15272         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
15273         * sysdeps/generic/math-type-macros-ldouble.h: Include
15274         <math-svid-compat.h>.
15275         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
15276         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
15277         condition.
15278         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
15279         * math/w_acosf_compat.c: Likewise.
15280         * math/w_acosh_compat.c: Likewise.
15281         * math/w_acoshf_compat.c: Likewise.
15282         * math/w_acoshl_compat.c: Likewise.
15283         * math/w_acosl_compat.c: Likewise.
15284         * math/w_asin_compat.c: Likewise.
15285         * math/w_asinf_compat.c: Likewise.
15286         * math/w_asinl_compat.c: Likewise.
15287         * math/w_atan2_compat.c: Likewise.
15288         * math/w_atan2f_compat.c: Likewise.
15289         * math/w_atan2l_compat.c: Likewise.
15290         * math/w_atanh_compat.c: Likewise.
15291         * math/w_atanhf_compat.c: Likewise.
15292         * math/w_atanhl_compat.c: Likewise.
15293         * math/w_cosh_compat.c: Likewise.
15294         * math/w_coshf_compat.c: Likewise.
15295         * math/w_coshl_compat.c: Likewise.
15296         * math/w_exp10_compat.c: Likewise.
15297         * math/w_exp10f_compat.c: Likewise.
15298         * math/w_exp10l_compat.c: Likewise.
15299         * math/w_exp2_compat.c: Likewise.
15300         * math/w_exp2f_compat.c: Likewise.
15301         * math/w_exp2l_compat.c: Likewise.
15302         * math/w_fmod_compat.c: Likewise.
15303         * math/w_fmodf_compat.c: Likewise.
15304         * math/w_fmodl_compat.c: Likewise.
15305         * math/w_hypot_compat.c: Likewise.
15306         * math/w_hypotf_compat.c: Likewise.
15307         * math/w_hypotl_compat.c: Likewise.
15308         * math/w_j0_compat.c: Likewise.
15309         * math/w_j0f_compat.c: Likewise.
15310         * math/w_j0l_compat.c: Likewise.
15311         * math/w_j1_compat.c: Likewise.
15312         * math/w_j1f_compat.c: Likewise.
15313         * math/w_j1l_compat.c: Likewise.
15314         * math/w_jn_compat.c: Likewise.
15315         * math/w_jnf_compat.c: Likewise.
15316         * math/w_jnl_compat.c: Likewise.
15317         * math/w_lgamma_r_compat.c: Likewise.
15318         * math/w_lgammaf_r_compat.c: Likewise.
15319         * math/w_lgammal_r_compat.c: Likewise.
15320         * math/w_log10_compat.c: Likewise.
15321         * math/w_log10f_compat.c: Likewise.
15322         * math/w_log10l_compat.c: Likewise.
15323         * math/w_log2_compat.c: Likewise.
15324         * math/w_log2f_compat.c: Likewise.
15325         * math/w_log2l_compat.c: Likewise.
15326         * math/w_log_compat.c: Likewise.
15327         * math/w_logf_compat.c: Likewise.
15328         * math/w_logl_compat.c: Likewise.
15329         * math/w_pow_compat.c: Likewise.
15330         * math/w_powf_compat.c: Likewise.
15331         * math/w_powl_compat.c: Likewise.
15332         * math/w_remainder_compat.c: Likewise.
15333         * math/w_remainderf_compat.c: Likewise.
15334         * math/w_remainderl_compat.c: Likewise.
15335         * math/w_sinh_compat.c: Likewise.
15336         * math/w_sinhf_compat.c: Likewise.
15337         * math/w_sinhl_compat.c: Likewise.
15338         * math/w_sqrt_compat.c: Likewise.
15339         * math/w_sqrtf_compat.c: Likewise.
15340         * math/w_sqrtl_compat.c: Likewise.
15341         * math/w_tgamma_compat.c: Likewise.
15342         * math/w_tgammaf_compat.c: Likewise.
15343         * math/w_tgammal_compat.c: Likewise.
15344         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
15345         [LIBM_SVID_COMPAT].
15346         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
15347         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
15348         [LIBM_SVID_COMPAT].
15349         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
15350         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
15351         [LIBM_SVID_COMPAT].
15352         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
15353         * sysdeps/i386/fpu/w_sqrt.c: New file.
15354         * sysdeps/ia64/fpu/w_acos.c: Likewise.
15355         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
15356         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
15357         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
15358         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
15359         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
15360         * sysdeps/ia64/fpu/w_asin.c: Likewise.
15361         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
15362         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
15363         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
15364         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
15365         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
15366         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
15367         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
15368         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
15369         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
15370         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
15371         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
15372         * sysdeps/ia64/fpu/w_exp.c: Likewise.
15373         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
15374         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
15375         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
15376         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
15377         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
15378         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
15379         * sysdeps/ia64/fpu/w_expf.c: Likewise.
15380         * sysdeps/ia64/fpu/w_expl.c: Likewise.
15381         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
15382         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
15383         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
15384         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
15385         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
15386         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
15387         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
15388         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
15389         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
15390         * sysdeps/ia64/fpu/w_log.c: Likewise.
15391         * sysdeps/ia64/fpu/w_log10.c: Likewise.
15392         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
15393         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
15394         * sysdeps/ia64/fpu/w_log2.c: Likewise.
15395         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
15396         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
15397         * sysdeps/ia64/fpu/w_logf.c: Likewise.
15398         * sysdeps/ia64/fpu/w_logl.c: Likewise.
15399         * sysdeps/ia64/fpu/w_pow.c: Likewise.
15400         * sysdeps/ia64/fpu/w_powf.c: Likewise.
15401         * sysdeps/ia64/fpu/w_powl.c: Likewise.
15402         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
15403         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
15404         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
15405         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
15406         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
15407         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
15408         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
15409         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
15410         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
15411         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
15412         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
15413         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
15414         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
15415         [LIBM_SVID_COMPAT].
15416         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
15417         * sysdeps/ieee754/k_standard.c: Likewise.
15418         * sysdeps/ieee754/k_standardf.c: Likewise.
15419         * sysdeps/ieee754/k_standardl.c: Likewise.
15420         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
15421         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
15422         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
15423         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
15424         long_double_symbol call on [LIBM_SVID_COMPAT].
15425         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
15426         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
15427         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
15428         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
15429         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
15430         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
15431         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
15432         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
15433         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
15434         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
15435         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
15436         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
15437         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
15438         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
15439         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
15440         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
15441         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
15442         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
15443         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
15444         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
15445         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
15446         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
15448 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
15450         * include/shlib-compat.h (TEST_COMPAT): New Macro.
15451         * malloc/tst-mallocstate.c: Convert from test-skeleton
15452         to test-driver.  Ifdef code using TEST_COMPAT macro.
15453         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
15454         * math/test-matherr.c: Likewise.
15456 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
15458         [BZ #22086]
15459         * debug/pcprofiledump.c (main): Use byte-swapped mask when
15460         comparing word with byte-swapped constant.
15462 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
15464         [BZ #20498]
15465         * locale/iso-639.def: add Miskito.
15466         * localedata/SUPPORTED: Add miq_NI/UTF-8.
15467         * localedata/locales/miq_NI: New file.
15469 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
15471         [BZ #18822]
15472         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
15473         (__mkdir): Likewise.
15474         * io/chmod.c (__chmod): Add libc_hidden_def.
15475         * io/mkdir.c (__mkdir): Likewise.
15476         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
15477         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
15478         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
15479         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
15481 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
15483         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15484         version to 4.13.
15486         [BZ #22082]
15487         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
15488         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
15490 2017-09-04  Florian Weimer  <fweimer@redhat.com>
15492         * math/math.h: Issue warning if log is defined.
15494 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
15496         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15497         kernel version to 4.13.
15499 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15501         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
15502         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
15503         parameter.
15504         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
15505         just <bits/types.h>.
15506         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
15507         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
15508         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
15509         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
15510         * misc/preadv2.c: Include <errno.h>.
15511         * misc/preadv64v2.c: Include <errno.h>.
15512         * misc/pwritev2.c: Include <errno.h>.
15513         * misc/pwritev64v2.c: Include <errno.h>.
15514         * sysdeps/posix/preadv2.c: Include <errno.h>.
15515         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
15516         Fix <unistd.h> inclusion.
15517         * sysdeps/posix/pwritev2.c: Include <errno.h>.
15518         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
15519         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
15520         __strtoul_internal): New functions.
15521         * sysdeps/posix/pause.c: Include <sigsetops.h>.
15522         * sysdeps/posix/system.c: Include <sigsetops.h>.
15523         * sysdeps/mach/hurd/i386/Makefile
15524         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
15525         [$(subdir) = csu] (sysdep-only-routines): Likewise.
15526         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
15527         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
15528         __feraiseexcept_renamed to feraiseexcept instead of
15529         __GI_feraiseexcept.
15530         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
15531         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
15532         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
15533         RWF_NOWAIT): Define to 0 if undefined already.
15534         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
15535         boils down to 0.
15536         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
15537         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
15539 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
15541         * manual/math.texi (pow10): Do not document.
15542         (pow10f): Likewise.
15543         (pow10l): Likewise.
15544         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
15545         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
15546         * math/libm-test-exp10.inc (pow10_test): Remove.
15547         (do_test): Do not call pow10.
15548         * math/w_exp10_compat.c (pow10): Make into compat symbol.
15549         [NO_LONG_DOUBLE] (pow10l): Likewise.
15550         * math/w_exp10f_compat.c (pow10f): Likewise.
15551         * math/w_exp10l_compat.c (pow10l): Likewise.
15552         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
15553         (pow10): Make into compat symbol.
15554         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
15555         (pow10f): Make into compat symbol.
15556         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
15557         (pow10l): Make into compat symbol.
15558         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
15559         pow10.
15560         (CFLAGS-nldbl-pow10.c): Remove variable..
15561         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
15562         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
15563         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
15564         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
15565         Undefine and redefine.
15566         (pow10l): Make into compat symbol.
15567         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
15568         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
15569         * sysdeps/arm/libm-test-ulps: Likewise.
15570         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
15571         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
15572         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
15573         * sysdeps/microblaze/libm-test-ulps: Likewise.
15574         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
15575         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
15576         * sysdeps/nios2/libm-test-ulps: Likewise.
15577         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
15578         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
15579         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
15580         * sysdeps/sh/libm-test-ulps: Likewise.
15581         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
15582         * sysdeps/tile/libm-test-ulps: Likewise.
15583         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15585 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
15587         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
15589 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
15591         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
15592         "../ChangeLog.old/ChangeLog.8".
15593         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
15594         "../ChangeLog.old/ChangeLog.14".
15596 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
15598         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
15599         Threads Library.
15601 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
15603         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
15605 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
15607         * csu/version.c (banner): Remove "by Roland McGrath et al.".
15608         * nptl/Banner: Remove "by Ulrich Drepper et al.".
15610 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
15612         * stdlib/tst-atexit-common.c (do_test): Test support for at least
15613         32 atexit handlers.
15615 2017-09-01  Zack Weinberg  <zackw@panix.com>
15617         * math/math.h (HUGE_VAL): Improve commentary.
15619 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15620             Andreas Schwab  <schwab@suse.de>
15622         [BZ #21530]
15623         * include/stdio.h (__gen_tempfd): New function.
15624         * stdio-common/Makefile (routines): Add gentempfd.
15625         * stdio-common/gentempfd.c: New file.
15626         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
15627         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
15628         unnamed file first.
15630 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15632         [BZ #21915]
15633         [BZ #21922]
15634         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
15635         result to determine success or failure, not the errno value.
15636         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
15637         (tst-nss-files-hosts-erange): Link with -ldl.
15638         * nss/tst-nss-files-hosts-erange.c: New file.
15639         * nss/tst-resolv-basic.c (response): Handle nodata.example.
15640         (do_test): Add NO_DATA tests.
15641         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
15642         (do_test): Call it.
15644 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15646         [BZ #21922]
15647         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
15648         coming from gethostbyname2_r.
15650 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15652         * support/namespace.h (struct support_chroot_configuration): Add
15653         hosts, host_conf.
15654         (struct support_chroot): Add path_hosts, path_host_conf.
15655         * support/support_chroot.c (write_file): New function.
15656         (support_chroot_create): Call it to process /etc/resolv.conf,
15657         /etc/hosts, /etc/host.conf.
15658         (support_chroot_free): Update.
15660 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15662         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
15663         status indicates it is set.
15665 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15667         [BZ #20532]
15668         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
15669         function lookup failures more reliable.
15671 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15673         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
15674         (getcanonname): Likewise.
15675         (gaih_inet): Likewise.
15677 2017-09-01  Florian Weimer  <fweimer@redhat.com>
15679         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
15680         (getcanonname): Likewise.
15681         (gaih_inet): Likewise.
15683 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
15684             Richard Henderson <rth@twiddle.net>
15686         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
15687         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
15688         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
15689         (IREG_SIZE, OREG_SIZE): New macros.
15690         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
15691         (IREG_SIZE, OREG_SIZE): New macros.
15692         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
15693         (IREG_SIZE): New macro.
15694         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
15695         (IREG_SIZE): New macro.
15696         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
15697         New includes.
15698         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
15699         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
15700         (__CONCATX): Handle exceptions correctly on large values that may
15701         set FE_INVALID.
15702         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
15703         Initialize if not already set.
15704         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
15706 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
15708         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
15709         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
15710         Likewise.
15711         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
15712         Likewise.
15713         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
15714         Likewise.
15715         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
15716         Likewise.
15717         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
15718         Likewise.
15719         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
15720         Likewise.
15721         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
15722         Likewise.
15723         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
15724         (NO_CANCELLATION): Likewise.
15725         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
15726         Likewise.
15727         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
15728         Likewise.
15729         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
15730         Likewise.
15731         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
15732         (NO_CANCELLATION): Likewise.
15733         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
15734         (NO_CANCELLATION): Likewise.
15735         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
15736         Likewise
15737         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
15738         Likewise.
15739         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
15740         Likewise.
15741         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
15742         Likewise.
15743         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
15744         hidden prototype.
15745         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
15746         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
15748 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
15750         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
15751         in resolver call.
15753 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15755         * include/libc-symbols.h (internal_function): Remove.
15757 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15759         * stdlib/fmtmsg.c (internal_addseverity): Remove
15760         internal_function.
15762 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15764         * stdio-common/printf_fp.c (group_number): Remove
15765         internal_function.
15766         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
15768 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15770         * posix/fnmatch.c (internal_function): Remove definition.
15771         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
15772         * posix/regcomp.c (peek_token, init_word_char)
15773         (duplicate_node_closure, fetch_token, peek_token)
15774         (peek_token_bracket, build_range_exp, build_collating_symbol):
15775         Likewise.
15776         * posix/regex_internal.c (re_string_construct_common)
15777         (create_ci_newstate, create_cd_newstate, re_string_allocate)
15778         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
15779         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
15780         (re_string_translate_buffer, re_string_reconstruct)
15781         (re_string_peek_byte_case, re_string_fetch_byte_case)
15782         (re_string_destruct, re_string_context_at, re_node_set_alloc)
15783         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
15784         (re_node_set_add_intersect, re_node_set_init_union)
15785         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
15786         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
15787         (re_dfa_add_node, calc_state_hash, re_acquire_state)
15788         (re_acquire_state_context): Likewise.
15789         * posix/regex_internal.h (internal_function): Remove definition.
15790         (re_string_realloc_buffers, build_wcs_buffer)
15791         (build_wcs_upper_buffer, build_upper_buffer)
15792         (re_string_translate_buffer, re_string_context_at)
15793         (re_string_char_size_at, re_string_wchar_at)
15794         (re_string_elem_size_at): Likewise.
15795         * posix/regexec.c (match_ctx_init, match_ctx_clean)
15796         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
15797         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
15798         (re_search_internal, re_search_2_stub, re_search_stub)
15799         (re_copy_regs, prune_impossible_nodes, check_matching)
15800         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
15801         (free_fail_stack_return, sift_states_iter_mb)
15802         (sift_states_backward, build_sifted_states)
15803         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
15804         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
15805         (check_subexp_limits, sift_states_bkref, merge_state_array)
15806         (find_recover_state, transit_state, merge_state_with_log)
15807         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
15808         (transit_state_mb, transit_state_bkref, get_subexp)
15809         (get_subexp_sub, find_subexp_node, check_arrival)
15810         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
15811         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
15812         (check_node_accept_bytes, find_collation_sequence_value)
15813         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
15814         (acquire_init_state_context, check_halt_node_context)
15815         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
15816         (sub_epsilon_src_nodes): Likewise.
15817         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
15818         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
15819         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
15820         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
15821         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
15822         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
15823         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
15824         * sysdeps/posix/ttyname.c (getttyname): Likewise.
15825         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
15826         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
15827         (PREADV): Likewise.
15828         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
15829         (PREADV): Likewise.
15830         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
15831         (PWRITEV): Likewise.
15832         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
15833         (PWRITEV): Likewise.
15834         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
15835         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
15837 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15839         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
15840         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
15841         Remove internal_function.
15842         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
15843         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
15844         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
15845         (__deallocate_stack, __libc_pthread_init)
15846         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
15847         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
15848         (__libc_disable_asynccancel, __librt_disable_asynccancel):
15849         Likewise.
15850         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
15851         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
15852         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
15853         Likewise.
15854         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
15855         (__pthread_mutex_unlock_usercnt): Likewise.
15857 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15859         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
15860         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
15861         (fts_safe_changedir): Remove internal_function.
15862         * io/ftw.c (internal_function): Remove definition.
15863         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
15865 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15867         * inet/deadline.c (__deadline_current_time)
15868         (__deadline_from_timeval, __deadline_to_ms): Remove
15869         internal_function.
15870         * inet/getnameinfo.c (nrl_domainname): Likewise.
15871         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
15872         * inet/inet6_option.c (add_pad): Likewise.
15873         * inet/net-internal.h (__deadline_current_time)
15874         (__deadline_from_timeval, __deadline_to_ms): Likewise.
15875         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
15876         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
15877         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
15879 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
15881         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
15882         include <bits/nan.h>.
15883         * math/Makefile (headers): Remove bits/nan.h.
15884         * bits/nan.h: Remove.
15885         * sysdeps/ieee754/bits/nan.h: Likewise.
15886         * sysdeps/mips/bits/nan.h: Likewise.
15888         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
15889         not include <bits/inf.h>.
15890         * math/Makefile (headers): Remove bits/inf.h.
15891         * bits/inf.h: Remove.
15892         * sysdeps/ieee754/bits/inf.h: Likewise.
15894         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
15895         bits/huge_vall.h or bits/huge_val_flt128.h.
15896         (HUGE_VAL): Define directly here.
15897         [__USE_ISOC99] (HUGE_VALF): Likewise.
15898         [__USE_ISOC99] (HUGE_VALL): Likewise.
15899         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
15900         (HUGE_VAL_F128): Likewise.
15901         * math/Makefile (headers): Remove bits/huge_val.h,
15902         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
15903         * bits/huge_val.h: Remove.
15904         * bits/huge_val_flt128.h: Likewise.
15905         * bits/huge_valf.h: Likewise.
15906         * bits/huge_vall.h: Likewise.
15907         * sysdeps/ia64/bits/huge_vall.h: Likewise.
15908         * sysdeps/ieee754/bits/huge_val.h: Likewise.
15909         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
15910         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
15911         * sysdeps/sh/bits/huge_val.h: Likewise.
15912         * sysdeps/sparc/bits/huge_vall.h: Likewise.
15913         * sysdeps/x86/bits/huge_vall.h: Likewise.
15915 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15917         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
15918         internal_function.
15919         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
15920         Likewise.
15921         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
15922         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
15923         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
15924         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
15925         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15926         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
15927         * elf/dl-libc.c (dlerror_run): Likewise.
15928         * elf/dl-load.c (add_name_to_object, decompose_rpath)
15929         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
15930         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
15931         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
15932         Likewise.
15933         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
15934         (_dl_higher_prime_number, _dl_strtoul): Likewise.
15935         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
15936         * elf/dl-profile.c (_dl_start_profile): Likewise.
15937         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
15938         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
15939         Likewise.
15940         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
15941         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
15942         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
15943         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
15944         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
15945         (_dl_allocate_tls_storage): Likewise.
15946         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
15947         (_dl_check_all_versions): Likewise.
15948         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
15949         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
15950         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
15951         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15952         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
15953         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
15954         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
15955         internal_function from __dl_start.
15956         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
15957         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
15958         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
15959         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
15960         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
15961         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
15962         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
15963         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
15964         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
15965         (_dl_next_ld_env_entry, _dl_important_hwcaps)
15966         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
15967         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
15968         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
15969         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
15970         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
15971         Likewise.
15972         (struct rtld_global_ro): Remove internal_function from the
15973         _dl_lookup_symbol_x member.
15974         (_dl_symbol_value): Remove.  No longer defined anywhere.
15975         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
15976         internal_function.
15977         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15978         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
15979         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
15980         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
15981         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
15982         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
15983         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
15984         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
15985         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
15986         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
15987         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
15988         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
15990 2017-08-31  Florian Weimer  <fweimer@redhat.com>
15992         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
15993         Remove internal_function.
15994         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
15995         Likewise.
15996         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
15997         Likewise.
15999 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16001         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
16002         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
16003         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
16005 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16007         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
16008         (__gai_enqueue_request): Remove internal_function.
16009         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
16010         (__gai_remove_request, __gai_notify, __gai_notify_only)
16011         (__gai_sigqueue): Likewise.
16012         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
16013         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
16014         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
16015         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
16016         Likewise.
16018 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16020         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
16021         * include/dirent.h (__opendirat, __getdents, __getdents64)
16022         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
16023         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
16024         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
16025         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
16026         Likewise.
16027         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
16029 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16031         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
16032         internal_function.
16033         (GETCWD_RETURN_TYPE): Likewise.
16035 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16037         * include/time.h (__tz_compute, __strptime_internal): Remove
16038         internal_function.
16039         * time/strptime_l.c (__strptime_internal): Likewise.
16040         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
16042 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16044         * iconv/gconv.c (__gconv): Remove internal_function.
16045         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
16046         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
16047         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
16048         (__gconv_release_cache): Likewise.
16049         * iconv/gconv_close.c (__gconv_close): Likewise.
16050         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
16051         (read_conf_file, __gconv_get_path): Likewise.
16052         * iconv/gconv_db.c (derivation_lookup, add_derivation)
16053         (__gconv_release_step, gen_steps, increment_counter)
16054         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
16055         (__gconv_close_transform, free_modules_db): Likewise.
16056         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
16057         Likewise.
16058         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
16059         (__gconv_find_transform, __gconv_lookup_cache)
16060         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
16061         (__gconv_close_transform, __gconv_release_cache)
16062         (__gconv_loaded_object, __gconv_release_shlib)
16063         (__gconv_compare_alias): Likewise.
16064         * iconv/gconv_open.c (__gconv_open): Likewise.
16065         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
16066         * iconv/iconvconfig.c (add_module): Likewise.
16067         * intl/dcigettext.c (plural_lookup, guess_category_value)
16068         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
16069         * intl/eval-plural.h (plural_eval): Likewise.
16070         * intl/finddomain.c (_nl_find_domain): Likewise.
16071         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
16072         (_nl_load_domain, _nl_find_msg): Likewise.
16073         (internal_function): Remove definition.
16074         * intl/loadinfo.h (internal_function): Likewise.
16075         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
16076         internal_function.
16077         * intl/localealias.c (internal_function): Remove definition.
16078         (read_alias_file): Remove internal_function.
16079         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
16080         * intl/plural-exp.h (internal_function): Remove definition.
16081         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
16082         internal_function.
16083         * intl/plural.c: Regenerate.
16084         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
16085         * locale/coll-lookup.c (__collidx_table_lookup)
16086         (__collseq_table_lookup): Likewise.
16087         * locale/coll-lookup.h (__collidx_table_lookup)
16088         (__collseq_table_lookup): Likewise.
16089         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
16090         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
16091         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
16092         (_nl_unload_locale): Likewise.
16093         * locale/localeinfo.h (struct __locale_data): Remove
16094         internal_function from cleanup member.
16095         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
16096         (_nl_remove_locale, _nl_load_locale_from_archive)
16097         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
16098         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
16099         (_nl_cleanup_time): Remove internal_function.
16100         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
16101         (_nl_parse_alt_digit): Likewise.
16102         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
16103         (_nl_select_era_entry): Likewise.
16104         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
16105         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
16106         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
16107         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
16108         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
16110 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16112         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
16113         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
16114         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
16115         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
16116         Likewise.
16117         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
16118         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
16119         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
16120         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
16121         Likewise.
16122         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
16124 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16126         * misc/getttyent.c (skip, value): Remove internal_function.
16127         * misc/syslog.c (openlog_internal): Likewise.
16128         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
16130 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16132         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
16133         (__nss_rewrite_field): Remove internal_function.
16134         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
16135         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
16136         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
16137         * nss/nsswitch.c (nss_parse_file, nss_getline)
16138         (nss_parse_service_list, nss_new_service): Likewise.
16139         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
16140         * nss/valid_field.c (__nss_valid_field): Likewise.
16141         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
16143 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16145         * malloc/arena.c (__malloc_fork_lock_parent)
16146         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
16147         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
16148         internal_function from defintions.
16149         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
16150         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
16151         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
16152         internal_function from declarations.
16153         * malloc/malloc.c (internal_function): Do not define.
16154         (mem2mem_check): Remove internal_function from declaration.
16155         (munmap_chunk, mremap_chunk): Remove internal_function.
16156         * malloc/mtrace.c (tr_where): Likewise.
16158 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16160         * include/rpc/pmap_clnt.h (__get_socket): Remove
16161         internal_function.
16162         * sunrpc/auth_des.c (synchronize): Likewise.
16163         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
16164         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
16165         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
16166         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
16167         (key_call): Likewise.
16168         * sunrpc/pm_getport.c (__get_socket): Likewise.
16169         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
16170         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
16171         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
16172         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
16173         (invalidate): Likewise.
16174         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
16175         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
16176         (set_input_fragment, get_input_bytes): Likewise.
16178 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16180         * malloc/malloc.c (_int_free): Remove locked variable and related
16181         asserts.
16183 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
16185         [BZ #22051]
16186         * Makerules (build-module-helper-objlist): Filter out
16187         $(elf-objpfx)sofini.os.
16188         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
16189         needed.
16191 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16193         * libio/fcloseall.c: Assume weak_alias is defined.
16194         * libio/feof.c: Likewise.
16195         * libio/fileno.c: Likewise.
16196         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
16197         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
16198         definitions.
16199         (_IO_file_open): Call __open directly.
16200         (_IO_new_file_sync): Assume ESPIPE is defined.
16201         (_IO_file_seekoff_maybe_mmap): Call __read directly.
16202         (_IO_new_file_write): Call __write directly.
16203         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
16204         * libio/ftello64.c (__ftello64): Assume EIO is defined.
16205         * libio/genops.c: Assume _LIBC is defined.
16206         (save_for_backup): Remove internal_function.
16207         * libio/getc.c: Assume weak_alias is defined.
16208         * libio/getwc.c: Likewise.
16209         * libio/iofclose.c: Assume _LIBC is defined.
16210         * libio/iofdopen.c: Likewise.
16211         (_IO_fcntl): Remove macro definition.
16212         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
16213         Call __fcntl directly.
16214         * libio/iofflush.c: Assume weak_alias is defined.
16215         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
16216         defined.
16217         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
16218         * libio/iofgets.c: Likewise.
16219         * libio/iofopen.c: Assume _LIBC is defined.
16220         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
16221         * libio/iofputs.c: Assume weak_alias is defined.
16222         * libio/iofread.c: Likewise.
16223         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
16224         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
16225         * libio/ioftell.c: Assume weak_alias is defined.
16226         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
16227         * libio/iofwide.c: Assume _LIBC is defined.
16228         (_IO_fwide): Drop SHARED conditional because it is implied by
16229         SHLIB_COMPAT.
16230         * libio/iofwrite.c: Assume weak_alias is defined.
16231         * libio/iogetdelim.c: Likewise.
16232         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
16233         * libio/iogetwline.c (wmemcpy): Remove macro definition.
16234         (_IO_getwline): Call __wmemcpy directly.
16235         * libio/iopopen.c: Assume _LIBC is defined.
16236         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
16237         (_IO_close): Remove macro definitions.
16238         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
16239         _exit directly.
16240         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
16241         directly.
16242         * libio/ioputs.c: Assume weak_alias is defined.
16243         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
16244         * libio/iosetbuffer.c: Assume weak_alias is defined.
16245         * libio/iosetvbuf.c: Likewise.
16246         * libio/ioungetc.c: Likewise.
16247         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
16248         libc_hidden_def, libc_hidden_weak, NULL are defined.
16249         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
16250         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
16251         defined.
16252         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
16253         definitions.
16254         (_IO_old_file_init_internal): Drop SHARED conditional because it
16255         is implied by SHLIB_COMPAT.
16256         (_IO_old_file_fopen): Call __open directly.
16257         (_IO_old_file_sync): Assume ESPIPE is defined.
16258         (_IO_old_file_write): Call __write directly.
16259         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
16260         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
16261         Call __fcntl directly.
16262         * libio/oldiofgetpos.c: Assume weak_alias is defined.
16263         (_IO_old_fgetpos): Assume EIO is defined.
16264         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
16265         (_IO_old_fgetpos64): Assume EIO is defined.
16266         * libio/oldiofsetpos.c: Assume weak_alias is defined.
16267         (_IO_old_fsetpos): Assume EIO is defined.
16268         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
16269         (_IO_old_fsetpos64): Assume EIO is defined.
16270         * libio/oldiopopen.c:  Assume _LIBC is defined.
16271         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
16272         (_IO_close): Remove macro definitions.
16273         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
16274         directly.
16275         (_IO_old_proc_close): Call __close, __waitpid directly.
16276         * libio/put.c: Assume weak_alias is defined.
16277         * libio/stdfiles.c: Assume _LIBC is defined.
16278         * libio/stdio.c: Likewise.
16279         * libio/wfileops.c: Likewise.
16280         (_IO_wfile_sync): Assume ESPIPE is defined.
16281         * libio/wgenops.c: Assume _LIBC is defined.
16282         (save_for_wbackup): Remove internal_function.
16284 2017-08-31  Florian Weimer  <fweimer@redhat.com>
16286         * malloc/malloc.c (top_check): Change return type to void.  Remove
16287         internal_function.
16288         * malloc/hooks.c (top_check): Likewise.
16289         (malloc_check, realloc_check, memalign_check): Adjust.
16291 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
16293         [BZ #21457]
16294         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
16295         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
16296         sigcontext and namespace requirements.
16297         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
16298         * sysdeps/m68k/sys/ucontext.h: Likewise.
16299         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
16300         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
16301         <bits/sigcontext.h>.
16302         (__ctx): Define earlier.
16303         (mcontext_t): Define structure contents rather than using struct
16304         sigcontext.
16305         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
16306         __glibc_reserved1 instead of __reserved.
16307         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
16308         <bits/sigcontext.h>.
16309         (__ctx): Define earlier.
16310         (mcontext_t): Define structure contents rather than using struct
16311         sigcontext.
16312         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
16313         mcontext_t instead of struct sigcontext.
16314         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
16315         <bits/sigcontext.h>.
16316         (__ctx): Define earlier.
16317         (mcontext_t): Define structure contents rather than using struct
16318         sigcontext.
16319         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
16320         <bits/sigcontext.h>.
16321         (__ctx): Define earlier.
16322         (mcontext_t): Define structure contents rather than using struct
16323         sigcontext.
16324         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
16325         mcontext_t instead of struct sigcontext.
16326         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
16327         mcontext_t instead of struct sigcontext.
16328         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
16329         <bits/sigcontext.h>.
16330         (__ctx): New macro.
16331         (struct __ia64_fpreg_mcontext): New type.
16332         (mcontext_t): Define structure contents rather than using struct
16333         sigcontext.
16334         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
16335         (uc_sigmask): Define using __ctx.
16336         (uc_stack): Likewise.
16337         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
16338         <bits/sigcontext.h>.
16339         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16340         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
16341         <bits/sigcontext.h>.
16342         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
16343         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
16344         <bits/sigcontext.h>.
16345         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
16346         <bits/sigcontext.h>.
16347         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
16348         <bits/sigcontext.h>.
16349         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
16350         <bits/sigcontext.h>.
16351         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
16352         <bits/sigcontext.h>.
16353         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
16354         <bits/sigcontext.h>.
16355         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
16356         <bits/sigcontext.h>.
16357         (__ctx): Define earlier.
16358         (mcontext_t): Define structure contents rather than using struct
16359         sigcontext.
16360         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
16361         <bits/sigcontext.h>.  Include <bits/types.h>.
16362         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
16363         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
16364         (test-xfail-XPG42/ucontext.h/conform): Likewise.
16365         (test-xfail-UNIX98/signal.h/conform): Likewise.
16366         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
16367         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
16368         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
16369         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
16370         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
16371         (test-xfail-POSIX2008/signal.h/conform): Likewise.
16372         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
16373         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
16374         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
16376 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16378         * malloc/dynarray_emplace_enlarge.c
16379         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
16380         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
16381         * malloc/tst-dynarray.c (test_long_overflow): New function.
16382         (do_test): Call it.
16384 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16386         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
16387         (set_arena_corrupt): Remove definitions.
16388         (mtrim): Do not check for corrupt arena.
16389         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
16390         Likewise.
16392 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16394         [BZ #21754]
16395         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
16396         check_action.
16397         (ptmalloc_init): Do not set or use check_action.
16398         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
16399         call to malloc_printerr.  Remove return statement.
16400         (free_check): Likewise.  Remove arena unlock.
16401         (top_check): Update comment.  Adjust call to malloc_printerr.
16402         Remove heap repair code.
16403         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
16404         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
16405         (sysmalloc): Adjust call to malloc_printerr.
16406         (munmap_chunk, __libc_realloc): Likewise.  Remove return
16407         statement.
16408         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
16409         Remove errout label and corresponding gotos.
16410         (_int_free): Likewise.  Remove arena unlock.
16411         (do_set_mallopt_check): Do not set check_action.
16412         (malloc_printerr): Adjust parameter list.  Do not mark arena as
16413         corrupt.
16414         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
16415         comment.
16416         * manual/probes.texi (Memory Allocation Probes): Remove
16417         memory_mallopt_check_action.
16419 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
16421         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
16422         Use pointer to uint64_t instead of long int for sp.
16424 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16426         [BZ #21754]
16427         * malloc/malloc.c (malloc_printerr): Always terminate the process,
16428         without printing a backtrace.  Do not leak any information in the
16429         error message.
16430         * manual/memory.texi (Heap Consistency Checking): Update.
16431         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
16433 2017-08-30  Florian Weimer  <fweimer@redhat.com>
16435         Do not scale NPTL tests with available number of CPUs.
16436         * nptl/tst-cond16.c (count): Set to constant value of 8.
16437         * nptl/tst-cond18.c (count): Likewise.
16439 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
16441         [BZ #22035]
16442         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
16443         Define to take a second argument that is a macro that
16444         concatentates a suffix, not the suffix itself.
16445         (__CONCAT_d): New macro.
16446         (__CONCAT_f): Likewise.
16447         (__CONCAT_l): Likewise.
16449 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
16451         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
16452         by child.
16454 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16455             Aurelien Jarno  <aurelien@aurel32.net>
16456             Maciej W. Rozycki  <macro@imgtec.com>
16458         [BZ #21956]
16459         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
16460         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
16461         `mips16-syscall6' and `mips16-syscall7'.
16462         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
16463         (CFLAGS-mips16-syscall7.c): Remove.
16464         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
16465         Remove `__mips16_syscall5', `__mips16_syscall6' and
16466         `__mips16_syscall7'.
16467         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
16468         (__mips16_syscall0): Rename `__mips16_syscall_return' to
16469         `__mips_syscall_return'.
16470         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
16471         (__mips16_syscall1): Likewise.
16472         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
16473         (__mips16_syscall2): Likewise.
16474         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
16475         (__mips16_syscall3): Likewise.
16476         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
16477         (__mips16_syscall4): Likewise.
16478         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
16479         Remove.
16480         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
16481         Remove.
16482         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
16483         Remove.
16484         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
16485         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
16486         `__mips16_syscall5'.  Remove prototype.
16487         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
16488         `__mips16_syscall6'.  Remove prototype.
16489         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
16490         `__mips16_syscall7'.  Remove prototype.
16491         (__nomips16, __mips16_syscall_return): Move to...
16492         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
16493         (__nomips16, __mips_syscall_return): ... here.
16494         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
16495         `__mips16_syscall_return' to `__mips_syscall_return'.
16496         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
16497         `internal_syscall##nr'.
16498         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
16499         `internal_syscall##nr'.
16500         (FORCE_FRAME_POINTER): Remove.
16501         (__mips_syscall5): New prototype.
16502         (internal_syscall5): Rewrite to call `__mips_syscall5'.
16503         (__mips_syscall6): New prototype.
16504         (internal_syscall6): Rewrite to call `__mips_syscall6'.
16505         (__mips_syscall7): New prototype.
16506         (internal_syscall7): Rewrite to call `__mips_syscall7'.
16507         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
16508         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
16509         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
16510         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
16511         (sysdep_routines): Add libc-do-syscall.
16512         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
16513         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
16515 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16517         [BZ #21672]
16518         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
16519         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
16520         (advise_stack_range): New function.
16521         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
16522         stack non required to advise_stack_range at allocatestack.c
16524 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16526         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
16528 2017-08-29  Florian Weimer  <fweimer@redhat.com>
16530         [BZ #22026]
16531         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
16532         __end_fct.  Mangle __end_fct after setting it to NULL.
16533         * iconv/Makefile (tests): Add tst-gconv-init-failure.
16534         (modules-names, modules-names-tests): Add
16535         tst-gconv-init-failure-mod.
16536         (gconv-modules): New target.
16537         (tst-gconv-init-failure-mod.so): Link against libsupport.
16538         (tst-gconv-init-failure): Depend on gconv-modules,
16539         tst-gconv-init-failure-mod.so.
16540         * iconv/tst-gconv-init-failure-mod.c: New file.
16541         * iconv/tst-gconv-init-failure.c: Likewise.
16542         * iconv/test-gconv-modules: Likewise.
16544 2017-08-29  Florian Weimer  <fweimer@redhat.com>
16546         [BZ #22025]
16547         * iconv/gconv_db.c (free_derivation): Remove redundant
16548         parentheses.
16549         (gen_steps): Unconditionally mangle __btowc_fct after
16550         initialization.
16551         (increment_counter): Likewise.  Do not call init_fct for internal
16552         modules.
16554 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
16556         [BZ #22028]
16557         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
16558         (_MSUF_): Remove macro.
16559         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
16560         Likewise.
16561         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
16562         (__REDIRFROM_X): New macro.
16563         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
16564         Likewise.
16565         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
16566         (__REDIRTO_X): Likewise.
16567         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
16568         arguments.
16569         (__MATH_REDIRCALL_2): Likewise.
16570         (__MATH_REDIRCALL_INTERNAL): Likewise.
16571         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
16572         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
16573         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
16574         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
16575         * math/test-finite-macros.c: New file.
16576         * math/Makefile (tests): Add test-finite-macros.
16577         (CFLAGS-test-finite-macros.c): New variable.
16579 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
16580             Jeff Law  <law@redhat.com>
16582         [BZ #22025]
16583         Mangle NULL pointers in iconv/gconv.
16584         * iconv/gconv_cache.c (find_module): Demangle init_fct before
16585         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
16586         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
16587         is non-NULL before demangling the end_fct.  Check for NULL
16588         end_fct after demangling.
16589         (__gconv_release_step): Demangle the end_fct before checking
16590         it for NULL.   Remove assert on __shlibc_handle != NULL.
16591         (gen_steps): Don't check btowc_fct for NULL before mangling.
16592         Demangle init_fct before checking for NULL.
16593         (increment_counter): Likewise.
16594         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
16595         end_fct for NULL before mangling.
16596         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
16597         for NULL.
16599 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
16601         [BZ #21971]
16602         * locale/iso-639.def: add Morisyen.
16604 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16606         [BZ #21930]
16607         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
16608         (iszero): New C++ implementation that does not use
16609         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
16610         signaling nans are enabled, since __builtin_types_compatible_p
16611         is a C-only feature.
16612         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
16613         defined, include ieee754_float128.h for access to the union and
16614         member ieee854_float128.ieee.
16615         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
16616         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
16617         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
16618         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
16619         options of test-math-zero on powerpc64le.
16621 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
16623         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
16624         Change double to float.
16626 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
16628         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
16629         unconditional.
16630         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
16631         conditional code; define contents only for [LIBM_SVID_COMPAT].
16633 2017-08-28  Florian Weimer  <fweimer@redhat.com>
16635         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
16636         (abi-lp64_be-options): Remove.
16637         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
16638         (abi-hard-options): Likewise.
16639         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
16640         (abi-o32_hard-options, abi-o32_soft_2008-options)
16641         (abi-o32_hard_2008-options, abi-n32_soft-options)
16642         (abi-n32_hard-options, abi-n32_soft_2008-options)
16643         (abi-n32_hard_2008-options, abi-n64_soft-options)
16644         (abi-n64_hard-options, abi-n64_soft_2008-options)
16645         (abi-n64_hard_2008-options): Likewise.
16646         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
16647         (abi-64-v1-options, abi-64-v2-options): Likewise.
16648         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
16649         (abi-64-options): Likewise.
16650         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
16651         (abi-64-options): Likewise.
16652         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
16653         (abi-64-options): Likewise.
16654         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
16655         (abi-64-options, abi-x32-options): Likewise.
16657 2017-08-28  Florian Weimer  <fweimer@redhat.com>
16659         Store supported list of SYS_* system calls in the source tree.
16660         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
16661         (bits/syscall.h): Generate from list file.
16662         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
16663         [$(subdir) = misc] (tests): Add tst-syscall-list.
16664         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
16665         [$(subdir) = misc] (tst-syscall-list-macros.list)
16666         [$(subdir) = misc] (tst-syscall-list-nr.list)
16667         (tst-syscall-list-sys.list): Helper targets for new
16668         tst-syscall-list test.
16669         [$(subdir) = misc] (tst-syscall-list.out): Run test script
16670         tst-syscall-list.sh.
16671         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
16672         target. Do not include bits/syscall.d.
16673         [$(subdir) = misc] (generated): Do not update.
16674         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
16675         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
16676         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
16677         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
16679 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
16681         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
16682         (tst-cxa_atexit, tst-on_exit): Likewise.
16683         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
16684         tst-cxa_atexit, and tst-on_exit.
16685         * stdlib/tst-atexit-common.c: New file.
16686         * stdlib/tst-atexit.c: New file.
16687         * stdlib/tst-at_quick_exit.c: New file.
16688         * stdlib/tst-cxa_atexit.c: New file.
16689         * stdlib/tst-on_exit.c: New file.
16691 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16693         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
16694         * mach/stack_chk_fail_local.c: New file.
16695         * hurd/stack_chk_fail_local.c: New file.
16696         * mach/Machrules ($(interface-library)-routines): Add
16697         stack_chk_fail_local.
16698         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
16699         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
16700         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
16701         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
16702         * hurd/Makefile (CFLAGS-hurdstartup.o,
16703         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
16705 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
16707         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
16708         (index_cpu_*, index_arch_*): Removed.
16710 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16712         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
16713         Use uint64_t instead of unsigned long.
16715 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
16717         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
16718         [__HAVE_DISTINCT_FLOAT128].
16720         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
16721         of <bits/math-finite.h>.
16722         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
16723         inclusion of <bits/math-finite.h>.
16724         * math/bits/math-finite.h (__REDIRTO_X): Do not define
16725         conditionally on [__MATH_DECLARING_LDOUBLE && defined
16726         __NO_LONG_DOUBLE_MATH].
16727         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
16728         (__MATH_REDIRCALL_2): Likewise.
16729         (__MATH_REDIRCALL_INTERNAL): Likewise.
16730         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
16731         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
16732         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
16734         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
16735         Remove file.
16736         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
16737         Likewise.
16738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
16739         Likewise.
16740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
16741         Likewise.
16742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
16743         Likewise.
16744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
16745         Likewise.
16746         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
16747         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
16748         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
16749         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
16750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
16751         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
16752         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
16753         w_sqrtf_compat-ppc32.
16755 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16757         * math/math.h [defined __cplusplus] (issignaling): In the long
16758         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
16759         is not defined.  Call __issignaling, otherwise.
16761 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16763         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
16764         syscall definitions and replace __builtin_expect with __glibc_likely.
16765         * sysdeps/unix/syscall-template.S: Update comment about cancellable
16766         syscall.
16767          (SYSCALL_CANCELLABLE): Removedefinition
16768         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
16769         definition.
16770         (PSEUDO_END): Likewise.
16771         [IS_IN (libpthread)] (CENABLE): Likewise.
16772         [IS_IN (libpthread)] (CDISABLE): Likewise.
16773         [IS_IN (libc)] (CENABLE): Likewise.
16774         [IS_IN (libc)] (CENABLE): Likewise.
16775         [IS_IN (librt)] (CDISABLE): Likewise.
16776         [IS_IN (librt)] (CDISABLE): Likewise.
16777         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16778         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
16779         definition.
16780         (PSEUDO_END): Likewise.
16781         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
16782         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
16783         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
16784         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
16785         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
16786         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
16787         (CENABLE): Likewise.
16788         (CDISABLE): Likewise.
16789         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16790         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
16791         defintion.
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/hppa/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/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
16811         definition.
16812         (PSEUDO_END): Likewise.
16813         [IS_IN (libpthread)] (CENABLE): Likewise.
16814         [IS_IN (libpthread)] (CDISABLE): Likewise.
16815         [IS_IN (libc)] (CENABLE): Likewise.
16816         [IS_IN (libc)] (CENABLE): Likewise.
16817         [IS_IN (librt)] (CDISABLE): Likewise.
16818         [IS_IN (librt)] (CDISABLE): Likewise.
16819         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16820         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
16821         definition.
16822         (PSEUDO_END): Likewise.
16823         [IS_IN (libpthread)] (CENABLE): Likewise.
16824         [IS_IN (libpthread)] (CDISABLE): Likewise.
16825         [IS_IN (libc)] (CENABLE): Likewise.
16826         [IS_IN (libc)] (CENABLE): Likewise.
16827         [IS_IN (librt)] (CDISABLE): Likewise.
16828         [IS_IN (librt)] (CDISABLE): Likewise.
16829         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16830         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
16831         definition.
16832         (PSEUDO_END): Likewise.
16833         [IS_IN (libpthread)] (CENABLE): Likewise.
16834         [IS_IN (libpthread)] (CDISABLE): Likewise.
16835         [IS_IN (libc)] (CENABLE): Likewise.
16836         [IS_IN (libc)] (CENABLE): Likewise.
16837         [IS_IN (librt)] (CDISABLE): Likewise.
16838         [IS_IN (librt)] (CDISABLE): Likewise.
16839         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16840         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
16841         definition.
16842         (PSEUDO_END): Likewise.
16843         [IS_IN (libpthread)] (CENABLE): Likewise.
16844         [IS_IN (libpthread)] (CDISABLE): Likewise.
16845         [IS_IN (libc)] (CENABLE): Likewise.
16846         [IS_IN (libc)] (CENABLE): Likewise.
16847         [IS_IN (librt)] (CDISABLE): Likewise.
16848         [IS_IN (librt)] (CDISABLE): Likewise.
16849         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16850         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
16851         Remove definition.
16852         (PSEUDO_END): Likewise.
16853         [IS_IN (libpthread)] (CENABLE): Likewise.
16854         [IS_IN (libpthread)] (CDISABLE): Likewise.
16855         [IS_IN (libc)] (CENABLE): Likewise.
16856         [IS_IN (libc)] (CENABLE): Likewise.
16857         [IS_IN (librt)] (CDISABLE): Likewise.
16858         [IS_IN (librt)] (CDISABLE): Likewise.
16859         (SINGLE_THREAD_P): Likewise.
16860         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
16861         definition.
16862         (PSEUDO_END): Likewise.
16863         [IS_IN (libpthread)] (CENABLE): Likewise.
16864         [IS_IN (libpthread)] (CDISABLE): Likewise.
16865         [IS_IN (libc)] (CENABLE): Likewise.
16866         [IS_IN (libc)] (CENABLE): Likewise.
16867         [IS_IN (librt)] (CDISABLE): Likewise.
16868         [IS_IN (librt)] (CDISABLE): Likewise.
16869         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16870         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
16871         definition.
16872         (PSEUDO_END): Likewise.
16873         [IS_IN (libpthread)] (CENABLE): Likewise.
16874         [IS_IN (libpthread)] (CDISABLE): Likewise.
16875         [IS_IN (libc)] (CENABLE): Likewise.
16876         [IS_IN (libc)] (CENABLE): Likewise.
16877         [IS_IN (librt)] (CDISABLE): Likewise.
16878         [IS_IN (librt)] (CDISABLE): Likewise.
16879         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16880         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
16881         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
16882         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
16883         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
16884         definition.
16885         (PSEUDO_END): Likewise.
16886         [IS_IN (libpthread)] (CENABLE): Likewise.
16887         [IS_IN (libpthread)] (CDISABLE): Likewise.
16888         [IS_IN (libc)] (CENABLE): Likewise.
16889         [IS_IN (libc)] (CENABLE): Likewise.
16890         [IS_IN (librt)] (CDISABLE): Likewise.
16891         [IS_IN (librt)] (CDISABLE): Likewise.
16892         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16893         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
16894         definition.
16895         (PSEUDO_END): Likewise.
16896         [IS_IN (libpthread)] (CENABLE): Likewise.
16897         [IS_IN (libpthread)] (CDISABLE): Likewise.
16898         [IS_IN (libc)] (CENABLE): Likewise.
16899         [IS_IN (libc)] (CENABLE): Likewise.
16900         [IS_IN (librt)] (CDISABLE): Likewise.
16901         [IS_IN (librt)] (CDISABLE): Likewise.
16902         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16903         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
16904         definition.
16905         (PSEUDO_END): Likewise.
16906         [IS_IN (libpthread)] (CENABLE): Likewise.
16907         [IS_IN (libpthread)] (CDISABLE): Likewise.
16908         [IS_IN (libc)] (CENABLE): Likewise.
16909         [IS_IN (libc)] (CENABLE): Likewise.
16910         [IS_IN (librt)] (CDISABLE): Likewise.
16911         [IS_IN (librt)] (CDISABLE): Likewise.
16912         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16913         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
16914         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
16915         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
16916         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
16917         definition.
16918         (PSEUDO_END): Likewise.
16919         [IS_IN (libpthread)] (CENABLE): Likewise.
16920         [IS_IN (libpthread)] (CDISABLE): Likewise.
16921         [IS_IN (libc)] (CENABLE): Likewise.
16922         [IS_IN (libc)] (CENABLE): Likewise.
16923         [IS_IN (librt)] (CDISABLE): Likewise.
16924         [IS_IN (librt)] (CDISABLE): Likewise.
16925         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16926         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
16927         definition.
16928         (PSEUDO_END): Likewise.
16929         [IS_IN (libpthread)] (CENABLE): Likewise.
16930         [IS_IN (libpthread)] (CDISABLE): Likewise.
16931         [IS_IN (libc)] (CENABLE): Likewise.
16932         [IS_IN (libc)] (CENABLE): Likewise.
16933         [IS_IN (librt)] (CDISABLE): Likewise.
16934         [IS_IN (librt)] (CDISABLE): Likewise.
16935         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
16937 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16939         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
16941 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16943         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
16945 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16947         [BZ #21982]
16948         * string/stratcliff.c (do_test): Declare size, nchars, inner,
16949         middle and outer with size_t instead of int.  Repleace %d and
16950         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
16951         "MAX (outer, nchars - 64)" to support unsigned outer and
16952         nchars.  Also exit loop when outer == 0.
16954 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16956         * include/fcntl.h (__fcntl_nocancel): Remove definition.
16957         * include/signal.h (__sigsuspend_nocancel): Likewise.
16958         * include/time.h (__nanosleep_nocancel): Likewise.
16959         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
16960         * login/utmp_file.c: Include non cancellable syscall header.
16961         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
16962         prototype.
16964 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
16966         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
16967         .byte sequences with AVX512F instructions.
16968         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
16969         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
16970         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
16971         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
16972         Likewise.
16973         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
16974         Likewise.
16976 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16977             Steve Ellcey  <sellcey@cavium.com>
16979         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
16980         Use PTR_REG macro in cmp instruction.
16982 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
16984         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
16985         Change the return type of the ifunc resolver to match the return
16986         type of the target function.
16988 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
16990         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
16991         (preadv64): Likewise.
16992         (pwrite64(: Likewise.
16993         (pwritev64): Likewise.
16995         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
16996         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
16997         (LOAD_ARGS_0): Likewise.
16998         (LOAD_ARGS_1): Likewise.
16999         (LOAD_ARGS_2): Likewise.
17000         (LOAD_ARGS_3): Likewise.
17001         (LOAD_ARGS_4): Likewise.
17002         (LOAD_ARGS_5): Likewise.
17003         (LOAD_ARGS_6): Likewise.
17004         (LOAD_REGS_0): Likewise.
17005         (LOAD_REGS_1): Likewise.
17006         (LOAD_REGS_2): Likewise.
17007         (LOAD_REGS_3): Likewise.
17008         (LOAD_REGS_4): Likewise.
17009         (LOAD_REGS_5): Likewise.
17010         (LOAD_REGS_6): Likewise.
17011         (ASM_ARGS_0): Likewise.
17012         (ASM_ARGS_1): Likewise.
17013         (ASM_ARGS_2): Likewise.
17014         (ASM_ARGS_3): Likewise.
17015         (ASM_ARGS_4): Likewise.
17016         (ASM_ARGS_5): Likewise.
17017         (ASM_ARGS_6): Likewise.
17018         (LOAD_ARGS_TYPES_1): Likewise.
17019         (LOAD_ARGS_TYPES_2): Likewise.
17020         (LOAD_ARGS_TYPES_3): Likewise.
17021         (LOAD_ARGS_TYPES_4): Likewise.
17022         (LOAD_ARGS_TYPES_5): Likewise.
17023         (LOAD_ARGS_TYPES_6): Likewise.
17024         (LOAD_REGS_TYPES_1): Likewise.
17025         (LOAD_REGS_TYPES_2): Likewise.
17026         (LOAD_REGS_TYPES_3): Likewise.
17027         (LOAD_REGS_TYPES_4): Likewise.
17028         (LOAD_REGS_TYPES_5): Likewise.
17029         (LOAD_REGS_TYPES_6): Likewise.
17030         (TYPEFY): New define.
17031         (ARGIFY): Likewise.
17032         (internal_syscall0): Likewise.
17033         (internal_syscall1): Likewise.
17034         (internal_syscall2): Likewise.
17035         (internal_syscall3): Likewise.
17036         (internal_syscall4): Likewise.
17037         (internal_syscall5): Likewise.
17038         (internal_syscall6): Likewise.
17039         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
17040         (INTERNAL_SYSCALL_NCS): Remove define.
17041         (internal_syscall1): Add define.
17043 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17045         * math/w_remainder_compat.c: Remove duplicate inclusion of
17046         math-svid-compat.h.
17047         * math/w_remainderf_compat.c: Likewise.
17048         * math/w_remainderl_compat.c: Likewise.
17050 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17052         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17054 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
17056         [BZ #21684]
17057         * math/tgmath.h (__floating_type): Simplify definitions.
17058         (__real_integer_type): New macro.
17059         (__complex_integer_type): Likewise.
17060         (__expr_is_real): Likewise.
17061         (__tgmath_real_type_sub): Update comment to describe handling of
17062         complex types.
17063         (__tgmath_complex_type_sub): New macro.
17064         (__tgmath_complex_type): Likewise.
17065         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
17066         (__TGMATH_CF128): Use __expr_is_real.
17067         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
17068         __expr_is_real.
17069         (__TGMATH_BINARY_REAL_IMAG): Likewise.
17070         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
17071         * math/gen-tgmath-tests.py (Type.create_type): Create complex
17072         integer types.
17074 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17076         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
17077         macro.
17078         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
17079         alias.
17080         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
17081         Likewise.
17083         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
17084         nanosleep_not_cancel with __nanosleep_nocancel.
17085         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
17086         (__nanosleep_nocancel): New macro.
17087         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
17088         function.
17089         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
17090         macro.
17091         (__nanosleep_nocancel): New prototype.
17093         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
17094         pause_not_cancel with __pause_nocancel.
17095         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
17096         (__pause_nocancel): New macro.
17097         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
17098         macro.
17099         (__pause_nocancel): New prototype.
17100         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
17102 2017-08-22  Martin Sebor  <msebor@redhat.com>
17104         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
17105         to return a pointer to the same type as the target function.
17107 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
17109         [BZ #18822]
17110         [BZ #21986]
17111         * include/printf.h (__printf_fphex): Add attribute_hidden.
17112         (__guess_grouping): New prototype.
17113         * stdio-common/printf_fp.c (__guess_grouping): Removed.
17114         * stdio-common/reg-printf.c (__register_printf_specifier): Add
17115         libc_hidden_proto and libc_hidden_def.
17116         * stdlib/strfmon_l.c (__guess_grouping): Removed.
17117         (__vstrfmon_l): Remove the third argument passed to
17118         __guess_grouping.
17120 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17122         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
17123         definition for issignaling that does not rely on __MATH_TG,
17124         since __MATH_TG uses __builtin_types_compatible_p, which is only
17125         available in C mode.
17126         (CFLAGS-test-math-issignaling.cc): New variable.
17127         * math/Makefile [CXX] (tests): Add test-math-issignaling.
17128         * math/test-math-issignaling.cc: New test for C++ implementation
17129         of type-generic issignaling.
17130         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
17131         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
17132         options of test-math-issignaling on powerpc64le.
17134 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
17136         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
17137         building libc.a.
17138         (hidden_proto): Likewise.
17139         (hidden_tls_proto): Likewise.
17140         (__hidden_proto): Likewise.
17142 2017-08-22  Florian Weimer  <fweimer@redhat.com>
17144         math: Statically link tests of internal functionality.
17145         * math/Makefile (tests): Remove atest-exp, atest-sincos,
17146         atest-exp2.
17147         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
17148         (gmp-objs): Remove assignment.
17149         (atest-exp, atest-sincos, atest-exp2): Remove targets.
17151 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
17153         [BZ #21987]
17154         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
17155         and copy to ...
17156         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
17157         ... here.
17158         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
17159         ... and here.
17161         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
17162         variable definitions above inclusion of ../Rules.
17164 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
17166         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
17167         case calling __builtin_unreachable.
17169 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17171         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
17172         __waitpid_nocancel.
17173         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
17174         (__waitpid_nocancel): New macro.
17175         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
17176         macro.
17177         (__waitpid_nocancel): Replace macro with a function.
17178         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
17179         function.
17181         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
17182         __fcntl_nocancel.
17183         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
17184         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
17186         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
17187         __writev_nocancel_nostatus.
17188         (write_call_graph): Likewise.
17189         (write_bb_counts): Likewise.
17190         * resolv/herror.c (herror): Likewise.
17191         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
17192         macro.
17193         (__writev_nocancel_nostatus): New macro.
17194         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
17195         Remove macro.
17196         (__writev_nocancel_nostatus): New function.
17198 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
17200         Revert:
17201         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17203         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
17204         building libc.a.
17205         (hidden_proto): Likewise.
17206         (hidden_tls_proto): Likewise.
17207         (__hidden_proto): Likewise.
17209         [BZ #21973]
17210         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
17211         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
17212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
17213         Likewise.
17214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
17215         Likewise.
17216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
17217         Likewise.
17218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
17219         Likewise.
17220         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
17221         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
17222         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
17223         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
17224         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
17225         GLIBC_2.0 sqrtl symbol.
17227         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
17228         [__USE_MISC] (_LIB_VERSION): Likewise.
17229         [__USE_MISC] (struct exception): Likewise.
17230         [__USE_MISC] (matherr): Likewise.
17231         [__USE_MISC] (DOMAIN): Likewise.
17232         [__USE_MISC] (SING): Likewise.
17233         [__USE_MISC] (OVERFLOW): Likewise.
17234         [__USE_MISC] (UNDERFLOW): Likewise.
17235         [__USE_MISC] (TLOSS): Likewise.
17236         [__USE_MISC] (PLOSS): Likewise.
17237         [__USE_MISC] (HUGE): Likewise.
17238         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
17239         * math/math-svid-compat.h: New file.
17240         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
17241         and matherrl.
17242         * include/math.h [!_ISOMAC] (__matherr): Remove.
17243         * manual/arith.texi (FP Exceptions): Do not document matherr.
17244         * math/Makefile (tests): Change test-matherr to test-matherr-3.
17245         (tests-internal): New variable.
17246         (install-lib): Do not add libieee.a.
17247         (non-lib.a): Likewise.
17248         (extra-objs): Do not add libieee.a and ieee-math.o.
17249         (CPPFLAGS-s_lib_version.c): Remove variable.
17250         ($(objpfx)libieee.a): Remove rule.
17251         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
17252         * math/ieee-math.c: Remove.
17253         * math/libm-test-support.c (matherr): Remove.
17254         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
17255         and license notices.  Include <math-svid-compat.h> and
17256         <shlib-compat.h>.
17257         (matherr): Undefine as macro.  Use compat_symbol_reference.
17258         (_LIB_VERSION): Likewise.
17259         * math/test-matherr-2.c: New file.
17260         * math/test-matherr-3.c: Likewise.
17261         * sysdeps/generic/math_private.h (__kernel_standard): Remove
17262         declaration.
17263         (__kernel_standard_f): Likewise.
17264         (__kernel_standard_l): Likewise.
17265         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
17266         <math_private.h>.  Include <math-svid-compat.h>.
17267         (_LIB_VERSION): Undefine as macro.
17268         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
17269         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
17270         [LIBM_SVID_COMPAT], use compat_symbol.
17271         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
17272         <math_private.h>.  Include <math-svid-compat.h>.
17273         (matherr): Undefine as macro.
17274         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
17275         compat_symbol.
17276         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
17277         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
17278         compat_symbol_reference.
17279         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
17280         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
17281         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
17282         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
17283         (MATHERR_D): Remove declaration.
17284         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
17285         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
17286         [LIBM_BUILD] (pmatherrf): Likewise.
17287         [LIBM_BUILD] (pmatherr): Likewise.
17288         [LIBM_BUILD] (pmatherrl): Likewise.
17289         (DOMAIN): Likewise.
17290         (SING): Likewise.
17291         (OVERFLOW): Likewise.
17292         (UNDERFLOW): Likewise.
17293         (TLOSS): Likewise.
17294         (PLOSS): Likewise.
17295         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
17296         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
17297         compat_symbol.
17298         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
17299         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
17300         compat_symbol.
17301         * math/lgamma-compat.h: Include <math-svid-compat.h>.
17302         * math/w_acos_compat.c: Likewise.
17303         * math/w_acosf_compat.c: Likewise.
17304         * math/w_acosh_compat.c: Likewise.
17305         * math/w_acoshf_compat.c: Likewise.
17306         * math/w_acoshl_compat.c: Likewise.
17307         * math/w_acosl_compat.c: Likewise.
17308         * math/w_asin_compat.c: Likewise.
17309         * math/w_asinf_compat.c: Likewise.
17310         * math/w_asinl_compat.c: Likewise.
17311         * math/w_atan2_compat.c: Likewise.
17312         * math/w_atan2f_compat.c: Likewise.
17313         * math/w_atan2l_compat.c: Likewise.
17314         * math/w_atanh_compat.c: Likewise.
17315         * math/w_atanhf_compat.c: Likewise.
17316         * math/w_atanhl_compat.c: Likewise.
17317         * math/w_cosh_compat.c: Likewise.
17318         * math/w_coshf_compat.c: Likewise.
17319         * math/w_coshl_compat.c: Likewise.
17320         * math/w_exp10_compat.c: Likewise.
17321         * math/w_exp10f_compat.c: Likewise.
17322         * math/w_exp10l_compat.c: Likewise.
17323         * math/w_exp2_compat.c: Likewise.
17324         * math/w_exp2f_compat.c: Likewise.
17325         * math/w_exp2l_compat.c: Likewise.
17326         * math/w_fmod_compat.c: Likewise.
17327         * math/w_fmodf_compat.c: Likewise.
17328         * math/w_fmodl_compat.c: Likewise.
17329         * math/w_hypot_compat.c: Likewise.
17330         * math/w_hypotf_compat.c: Likewise.
17331         * math/w_hypotl_compat.c: Likewise.
17332         * math/w_j0_compat.c: Likewise.
17333         * math/w_j0f_compat.c: Likewise.
17334         * math/w_j0l_compat.c: Likewise.
17335         * math/w_j1_compat.c: Likewise.
17336         * math/w_j1f_compat.c: Likewise.
17337         * math/w_j1l_compat.c: Likewise.
17338         * math/w_jn_compat.c: Likewise.
17339         * math/w_jnf_compat.c: Likewise.
17340         * math/w_jnl_compat.c: Likewise.
17341         * math/w_lgamma_main.c: Likewise.
17342         * math/w_lgamma_r_compat.c: Likewise.
17343         * math/w_lgammaf_main.c: Likewise.
17344         * math/w_lgammaf_r_compat.c: Likewise.
17345         * math/w_lgammal_main.c: Likewise.
17346         * math/w_lgammal_r_compat.c: Likewise.
17347         * math/w_log10_compat.c: Likewise.
17348         * math/w_log10f_compat.c: Likewise.
17349         * math/w_log10l_compat.c: Likewise.
17350         * math/w_log2_compat.c: Likewise.
17351         * math/w_log2f_compat.c: Likewise.
17352         * math/w_log2l_compat.c: Likewise.
17353         * math/w_log_compat.c: Likewise.
17354         * math/w_logf_compat.c: Likewise.
17355         * math/w_logl_compat.c: Likewise.
17356         * math/w_pow_compat.c: Likewise.
17357         * math/w_powf_compat.c: Likewise.
17358         * math/w_powl_compat.c: Likewise.
17359         * math/w_remainder_compat.c: Likewise.
17360         * math/w_remainderf_compat.c: Likewise.
17361         * math/w_remainderl_compat.c: Likewise.
17362         * math/w_scalb_compat.c: Likewise.
17363         * math/w_scalbf_compat.c: Likewise.
17364         * math/w_scalbl_compat.c: Likewise.
17365         * math/w_sinh_compat.c: Likewise.
17366         * math/w_sinhf_compat.c: Likewise.
17367         * math/w_sinhl_compat.c: Likewise.
17368         * math/w_sqrt_compat.c: Likewise.
17369         * math/w_sqrtf_compat.c: Likewise.
17370         * math/w_sqrtl_compat.c: Likewise.
17371         * math/w_tgamma_compat.c: Likewise.
17372         * math/w_tgammaf_compat.c: Likewise.
17373         * math/w_tgammal_compat.c: Likewise.
17374         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
17375         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
17376         * sysdeps/ieee754/k_standard.c: Likewise.
17377         * sysdeps/ieee754/k_standardf.c: Likewise.
17378         * sysdeps/ieee754/k_standardl.c: Likewise.
17379         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
17380         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
17381         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
17382         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
17383         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
17384         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
17385         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
17386         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
17387         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
17388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
17389         Likewise.
17390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
17391         Likewise.
17392         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
17393         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
17394         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
17395         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
17397 2017-08-21  Florian Weimer  <fweimer@redhat.com>
17399         [BZ #21864]
17400         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
17401         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
17402         Move before inclusion of ../Rules.
17404 2017-08-21  Florian Weimer  <fweimer@redhat.com>
17406         [BZ #21972]
17407         * assert/assert.h (assert): Use static_cast (bool) for C++.
17408         Use the ternary operator in the warning branch for GNU C.
17409         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
17410         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
17411         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
17412         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
17413         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
17415 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17417         [BZ #18822]
17418         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17419         (__syscall_clock_gettime): Add attribute_hidden.
17420         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
17421         (__start_context): Likewise.
17423 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17425         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
17426         building libc.a.
17427         (hidden_proto): Likewise.
17428         (hidden_tls_proto): Likewise.
17429         (__hidden_proto): Likewise.
17431 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17433         * include/libc-symbols.h (attribute_hidden): Enable hidden
17434         visibility in libc.a compiled with PIE.
17436 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17438         [BZ #18822]
17439         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
17440         Add attribute_hidden.
17442 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17444         [BZ #21864]
17445         * Makerules (all-nonlib): Add $(others-extras).
17446         * catgets/Makefile (others-extras): New.
17447         * elf/Makefile (others-extras): Likewise.
17448         * nss/Makefile (others-extras): Likewise.
17450 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17452         [BZ #18822]
17453         * csu/libc-start.c (__libc_multiple_libcs): Removed.
17454         * elf/dl-open.c: Include <libc-internal.h>.
17455         (__libc_multiple_libcs): Removed.
17456         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
17457         <hp-timing.h>.
17458         * include/libc-internal.h (__libc_multiple_libcs): New.
17459         * misc/sbrk.c: Include <libc-internal.h>.
17460         (__libc_multiple_libcs): Removed.
17462 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
17464         [BZ #18822]
17465         * grp/initgroups.c (__nss_group_database): Removed.
17466         (__nss_initgroups_database): Likewise.
17467         * nscd/gai.c (__nss_hosts_database): Likewise.
17468         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
17469         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17470         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17471         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17472         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
17473         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
17474         attribute_hidden.
17475         * nss/nsswitch.c (__nss_database_custom): Define only if
17476         USE_NSCD is defined.
17477         (__nss_configure_lookup): Use __nss_database_custom only if
17478         USE_NSCD is defined.
17479         * nss/nsswitch.h (__nss_database_custom): Declare only if
17480         USE_NSCD is defined.  Add attribute_hidden.
17481         (__nss_setent): Add attribute_hidden.
17482         (__nss_endent): Likewise.
17483         (__nss_getent_r): Likewise.
17484         (__nss_getent): Likewise.
17485         (DEFINE_DATABASE): Declare __nss_##arg##_database.
17487 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17489         [BZ #18822]
17490         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
17491         libc_hidden_proto and libc_hidden_def.
17493 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17495         [BZ #18822]
17496         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
17497         Add libc_hidden_proto.
17498         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
17499         Add libc_hidden_def.
17501 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17503         [BZ #21974]
17504         * gmon/Makefile (routines): Remove bb_init_func and
17505         bb_exit_func.
17506         (elide-routines.os): Removed.
17507         * gmon/bb_exit_func.c: Likewise.
17508         * gmon/bb_init_func.c: Likewise.
17509         * include/sys/gmon.h (__bb): Likewise.
17510         (__bb_init_func): Likewise.
17511         (__bb_exit_func): Likewise.
17512         * sysdeps/alpha/bb_init_func.S: Likewise.
17514 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
17516         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
17517         * include/setjmp.h (____longjmp_chk): Here.  Add
17518         attribute_hidden.
17520 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
17522         [BZ #18822]
17523         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
17524         attribute_hidden.
17525         (__strspn_sse2): Likewise.
17527 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17529         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
17530         (close_not_cancel_no_status): Likewise.
17531         (__close_nocancel): New macro.
17532         (__close_nocancel_nostatus): Likewise.
17533         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
17534         macro.
17535         (close_not_cancel): Likewise.
17536         (close_not_cancel_no_status): Likewise.
17537         (__close_nocancel): New prototype.
17538         (__close_nocancel_nostatus): New function.
17539         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
17540         * catgets/open_catalog.c (__open_catalog): Replace
17541         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
17542         * gmon/gmon.c (write_gmon): Likewise.
17543         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
17544         * intl/loadmsgcat.c (close): Likewise.
17545         * io/ftw.c (open_dir_stream): Likewise.
17546         (ftw_startup): Likewise.
17547         * libio/fileops.c (_IO_file_open): Likewise.
17548         (_IO_file_close_mmap): Likewise.
17549         (_IO_file_close): Likewise.
17550         * libio/iopopen.c (_IO_dup2): Likewise.
17551         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
17552         * locale/loadlocale.c (_nl_load_locale): Likewise.
17553         * login/utmp_file.c (pututline_file): Likewise.
17554         (endutent_file): Likewise.
17555         * misc/daemon.c (daemon): Likewise.
17556         * nscd/nscd_getai.c (__nscd_getai): Likewise.
17557         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
17558         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
17559         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
17560         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17561         * nscd/nscd_helper.c (open_socket): Likewise.
17562         (__nscd_open_socket): Likewise.
17563         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
17564         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
17565         (__nscd_innetgr): Likewise.
17566         * nss/nss_db/db-open.c (internal_setent): Likewise.
17567         * resolv/res-close.c (__res_iclose): Likewise.
17568         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
17569         * sysdeps/posix/closedir.c (__closedir): Likewise.
17570         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
17571         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
17572         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
17573         (opendir_tail): Likewise.
17574         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
17575         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
17576         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
17577         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
17578         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
17579         (gethostid): Likewise.
17580         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
17581         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17582         Likewise.
17583         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
17584         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
17585         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
17586         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
17587         Likewise.
17588         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
17589         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
17590         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
17591         Likewise.
17592         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
17593         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
17594         Likewise.
17595         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
17596         Likewise.
17597         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
17598         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
17599         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17600         __close_nocancel.
17602         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
17603         (openat_not_cancel_3): Likewise.
17604         (openat64_not_cancel_3): Likewise).
17605         (openat_not_cancel_3): Likewise).
17606         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
17607         macro.
17608         (openat_not_cancel_3): Likewise.
17609         (openat64_not_cancel): Likewise.
17610         (openat64_not_cancel_3): Likewise.
17611         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
17612         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
17613         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
17614         __open{64}_nocancel.
17615         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
17616         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
17617         * sysdeps/posix/opendir.c (__opendirat): Likewise.
17619 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17621         [BZ #18822]
17622         * include/argz.h (__argz_create_sep): New function prototype.
17623         (__argz_append): Likewise.
17624         (__argz_add): Likewise.
17625         (__argz_add_sep): Likewise.
17626         (__argz_delete): Likewise.
17627         (__argz_insert): Likewise.
17628         (__argz_replace): Likewise.
17629         * string/argz.h (__argz_create_sep): Removed.
17630         (__argz_append): Likewise.
17631         (__argz_add): Likewise.
17632         (__argz_add_sep): Likewise.
17633         (__argz_delete): Likewise.
17634         (__argz_insert): Likewise.
17635         (__argz_replace): Likewise.
17637 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17639         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
17640         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
17641         (GNU_PROPERTY_STACK_SIZE): Likewie.
17642         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
17643         (GNU_PROPERTY_LOPROC): Likewise.
17644         (GNU_PROPERTY_HIPROC): Likewise.
17645         (GNU_PROPERTY_LOUSER): Likewise.
17646         (GNU_PROPERTY_HIUSER): Likewise.
17647         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
17648         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
17649         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
17650         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
17651         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
17652         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
17653         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
17654         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
17655         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
17656         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
17657         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
17658         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
17659         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
17660         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
17661         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
17662         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
17663         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
17664         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
17665         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
17666         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
17667         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
17668         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
17669         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
17671 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17673         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
17674         in C++ mode.
17676 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
17678         [BZ #21930]
17679         * math/math.h (isinf): Check if in C or C++ mode before using
17680         __builtin_types_compatible_p, since this is a C mode feature.
17682 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17684         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
17685         (__write_nocancel): New macro.
17686         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
17687         Rewrite as a function prototype.
17688         (write_not_cancel): Remove macro.
17689         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
17690         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
17691         (write_gmon): Likewise.
17692         * libio/fileops.c (_IO_new_file_write): Likewise.
17693         * login/utmp_file.c (pututline_file): Likewise.
17694         (updwtmp_file): Likewise.
17695         * stdio-common/psiginfo.c (psiginfo): Likewise.
17696         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
17697         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
17698         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
17699         Likewise.
17700         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
17701         Likewise.
17703         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
17704         (__read_nocancel): New macro.
17705         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17706         __read_nocancel.
17707         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
17708         macro.
17709         (__read_nocancel): New prototype.
17710         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
17711         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
17712         with __read_nocancel.
17713         * intl/loadmsgcat.c (read): Likewise.
17714         * libio/fileops.c (_IO_file_read): Likewise.
17715         * locale/loadlocale.c (_nl_load_locale): Likewise.
17716         * login/utmp_file.c (getutent_r_file): Likewise.
17717         (internal_getut_r): Likewise.
17718         (getutline_r_file): Likewise.
17719         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
17720         * sysdeps/unix/sysv/linux/gethostid.c (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 (next_line): Likewise.
17725         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
17726         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
17727         Likewise.
17728         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
17729         Likewise.
17730         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
17731         Likewise.
17732         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
17733         Likewise.
17734         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
17736 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
17738         [BZ #21966]
17739         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
17740         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
17741         usable.
17743 2017-08-17  DJ Delorie  <dj@redhat.com>
17745         * bug17079.c: Update to new test harness.
17746         * test-digits-dots.c: Likewise.
17747         * test-netdb.c: Likewise.
17748         * tst-field.c: Likewise.
17749         * tst-nss-getpwent.c: Likewise.
17750         * tst-nss-static.c: Likewise.
17751         * tst-nss-test1.c: Likewise.
17752         * tst-nss-test2.c: Likewise.
17753         * tst-nss-test3.c: Likewise.
17754         * tst-nss-test4.c: Likewise.
17755         * tst-nss-test5.c: Likewise.
17757 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17759         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
17760         (open_not_cancel_2): Likewise.
17761         (open_nocancel): New macro.
17762         (open64_nocancel): Likewise.
17763         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
17764         (open_not_cancel_2): Likewise.
17765         (__open_nocancel): New prototype.
17766         (__open64_nocancel): Likewise.
17767         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
17768         __open_nocancel.
17769         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
17770         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
17771         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
17772         with __open_nocancel.
17773         * csu/check_fds.c (check_one_fd): Likewise.
17774         * gmon/gmon.c (write_gmon): Likewise.
17775         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
17776         * intl/loadmsgcat.c (open): Likewise.
17777         * libio/fileops.c (_IO_file_open): Likewise.
17778         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
17779         * locale/loadlocale.c (_nl_load_locale): Likewise.
17780         * login/utmp_file.c (setutent_file): Likewise.
17781         * misc/daemon.c (daemon): Likewise.
17782         * nss/nss_db/db-open.c (internal_setent): Likewise.
17783         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
17784         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
17785         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
17786         (__opendir): Likewise.
17787         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
17788         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
17789         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
17790         (gethostid): Likewise.
17791         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
17792         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
17793         Likewise.
17794         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
17795         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
17796         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
17797         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
17798         Likewise.
17799         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
17800         Likewise.
17801         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
17802         Likewise.
17803         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
17804         Likewise.
17805         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
17806         Likewise.
17807         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
17808         Likewise.
17809         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
17810         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
17812 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
17814         * benchtests/bench-skeleton.c (main): Add support for
17815         latency benchmarking.
17816         * benchtests/scripts/bench.py: Add support for latency benchmarking.
17818 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
17820         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
17821         the startup object.
17823 2017-08-17  Florian Weimer  <fweimer@redhat.com>
17825         * include/sys/socket.h (__opensock): Remove internal_function.
17826         * socket/opensock.c (__opensock): Likewise.
17827         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
17829 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
17831         [BZ #21944]
17832         * signal/bits/types/__sigval_t.h: New file.
17833         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
17834         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
17835         and define sigval_t using __sigval_t.
17836         * include/bits/types/__sigval_t.h: New file.
17837         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
17838         instead of <bits/types/__sigval_t.h>.
17839         (struct sigevent): Use __sigval_t instead of sigval_t.
17840         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
17841         instead of <bits/types/__sigval_t.h>.
17842         (siginfo_t): Use __sigval_t instead of sigval_t.
17843         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
17844         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
17845         (struct sigevent): Use __sigval_t instead of sigval_t.
17846         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
17847         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
17848         (siginfo_t): Use __sigval_t instead of sigval_t.
17849         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
17851 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17853         * NEWS: Remove "[Add new features here]" for 2.27.
17855 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
17857         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
17858         libc.so.
17860 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17862         * NEWS: Mention x86-64 FMA optimization.
17864 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
17866         [BZ #21912]
17867         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17868         Add e_expf-fma.
17869         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
17870         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
17871         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
17873 2017-08-16  Andreas Schwab  <schwab@suse.de>
17875         [BZ #16750]
17876         CVE-2009-5064
17877         * elf/ldd.bash.in: Never run file directly.
17879 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
17881         [BZ #21955]
17882         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
17883         (L(SP_INF_0)): Likewise.
17885 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17887         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
17888         run-built-tests.
17890 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17892         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
17893         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
17894         BROKEN_THREAD_SIGNALS code.
17895         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
17896         request_list): Remove caller_pid member used for
17897         BROKEN_THREAD_SIGNALS.
17898         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
17899         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
17900         Remove BROKEN_THREAD_SIGNALS support.
17901         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
17902         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
17904 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17906         * gmon/Makefile (tests): Add tst-gmon.
17907         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
17908         Set.
17909         (tests-special): Add tst-gmon-prof.out.
17910         (tst-gmon.out): Depend on clean-tst-gmon-data.
17911         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
17912         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
17913         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
17914         startup object.
17915         * aclocal.m4 (GPROF): Set and substitute.
17916         * config.amke.in (GPROF): Set.
17917         * configure: Regenerate.
17919 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
17921         * elf/elf.h A (NT_PPC_TAR): New macro.
17922         (NT_PPC_PPR): Likewise.
17923         (NT_PPC_DSCR): Likewise.
17924         (NT_PPC_EBB): Likewise.
17925         (NT_PPC_PMU): Likewise.
17926         (NT_PPC_TM_CGPR): Likewise.
17927         (NT_PPC_TM_CFPR): Likewise.
17928         (NT_PPC_TM_CVMX): Likewise.
17929         (NT_PPC_TM_CVSX): Likewise.
17930         (NT_PPC_TM_SPR): Likewise.
17931         (NT_PPC_TM_CTAR): Likewise.
17932         (NT_PPC_TM_CPPR): Likewise.
17933         (NT_PPC_TM_CDSCR): Likewise.
17935 2017-08-15  Florian Weimer  <fweimer@redhat.com>
17937         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
17938         regparm (2) instead of internal_function.
17939         (_MCOUNT_DECL): Adjust.
17941 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
17943         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
17944         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
17946 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
17948         * conform/data/sys/wait.h-data (si_value): Do not expect for
17949         XPG42.
17951 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17953         [BZ #21962]
17954         NSS: Create stubs for accidentally exported lookup functions.
17955         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
17956         Remove declaration.
17957         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
17958         (ether_hostton): Call __nss_ethers_lookup2 instead.
17959         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
17960         (ether_ntohost): Call __nss_ethers_lookup2 instead.
17961         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
17962         (setup): Call __nss_netgroup_lookup2 instead.
17963         * nss/Makefile (routines): Add compat-lookup.
17964         * nss/Versions (GLIBC_2.27): Add symbol version.
17965         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
17966         (DB_COMPAT_FCT): Remove.
17967         * nss/compat-lookup.c: New file.
17968         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
17969         from databases.def.
17970         * nss/service-lookup.c (NO_COMPAT): Remove definition.
17971         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
17972         (netname2user): Call __nss_publickey_lookup2 instead.
17973         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
17974         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
17975         instead.
17977 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
17978             Sergei Trofimovich  <slyfox@inbox.ru>
17980         [BZ #21908]
17981         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
17982         Rename to MMAP2_PAGE_UNIT.
17983         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
17984         __OFF_T_MATCHES_OFF64_T is not defined.
17985         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
17986         uint64_t.
17987         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
17988         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
17990 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17992         i386: Do not set internal_function.
17993         * config.h.in (USE_REGPARMS, internal_function): Remove.
17994         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
17995         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
17997 2017-08-14  Florian Weimer  <fweimer@redhat.com>
17999         * elf/dl-init.c (_dl_init): Remove internal_function.
18000         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
18001         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
18003 2017-08-14  Florian Weimer  <fweimer@redhat.com>
18005         * elf/rtld.c (_dl_start): Remove internal_function.
18006         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
18007         _dl_start.
18009 2017-08-14  Florian Weimer  <fweimer@redhat.com>
18011         * elf/dl-fini.c (_dl_fini): Remove internal_function
18012         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
18014 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
18016         * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
18017         (bit_cpu_SHSTK): Likewise.
18018         (index_cpu_IBT): Likewise.
18019         (index_cpu_SHSTK): Likewise.
18020         (reg_IBT): Likewise.
18021         (reg_SHSTK): Likewise.
18022         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
18023         Handle index_cpu_IBT and index_cpu_SHSTK.
18025 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
18027         [BZ #19982]
18028         * po/fr.po: Fix spelling mistake.
18030 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18032         * elf/dl-addr.c (_dl_addr): Remove internal_function.
18033         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
18034         (_dl_catch_error, _dl_receive_error): Likewise.
18035         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
18036         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
18037         (_dl_deallocate_tls): Likewise.
18038         * include/dlfcn.h (_dl_addr): Likewise.
18039         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
18040         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
18041         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
18042         Likewise.
18044 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18046         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
18047         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
18048         internal_function.
18049         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
18051 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18053         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
18054         internal_function.
18055         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
18056         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
18057         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
18058         internal_function from _dl_make_stack_executable_hook member.
18059         (_dl_make_stack_executable): Remove internal_function.
18060         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
18061         Likewise.
18062         * sysdeps/unix/sysv/linux/dl-execstack.c
18063         (_dl_make_stack_executable): Likewise.
18065 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18067         * sysdeps/unix/sysv/linux/netlinkaccess.h
18068         (__netlink_assert_response): Remove internal_function.
18069         * sysdeps/unix/sysv/linux/netlink_assert_response.c
18070         (__netlink_assert_response): Likewise.
18072 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18074         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
18075         internal_function.
18076         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
18078 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18080         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
18081         internal_function.
18082         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
18083         * inet/netgroup.h (__internal_setnetgrent)
18084         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
18085         * inet/getnetgrent_r.c (__internal_setnetgrent)
18086         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
18087         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
18088         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
18089         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
18090         * nss/nsswitch.h (db_lookup_function): Likewise.
18092 2017-08-13  Florian Weimer  <fweimer@redhat.com>
18094         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
18095         Remove internal_function.
18096         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
18097         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
18098         message argument on the stack.
18099         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
18100         Likeweise.
18102 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
18104         Adapt test case data to the changes in the thousands
18105         separators.
18107         [BZ #20756]
18108         * localedata/tst-langinfo.sh: Adapt test case data.
18109         * stdlib/tst-strfmon_l.c: Likewise.
18110         * stdlib/tst-strtod4.c: Likewise.
18111         * stdlib/tst-strtod5i.c: Likewise.
18113 2017-08-11  Florian Weimer  <fweimer@redhat.com>
18115         [BZ #21242]
18116         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
18117         Suppress pedantic warning resulting from statement expression.
18118         (__ASSERT_FUNCTION): Add missing __extension__.
18120 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18122         * benchtests/bench-memmove-large.c: Print output in JSON
18123         format.
18124         * benchtests/bench-memmove.c: Likewise.
18126         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
18127         * benchtests/bench-memchr.c (do_one_test): Likewise.
18128         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
18129         * benchtests/bench-memcpy.c (do_one_test): Likewise.
18130         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
18131         * benchtests/bench-memmove.c (do_one_test): Likewise.
18132         * benchtests/bench-memset-large.c (do_one_test): Likewise.
18133         * benchtests/bench-memset.c (do_one_test): Likewise.
18134         * benchtests/bench-string.h (test_init): Remove memsets.
18136 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
18138         * manual/lang.texi
18139         (Computing the Width of an Integer Data Type): Rename section to
18140         "Width of an Integer Type".  Remove inaccurate statement regarding
18141         lack of C language facilities for determining width of integer
18142         types, and reorder content to improve flow and context of
18143         discussion.
18145 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
18147         * lang.texi (va_copy): Change standard from ISO to C99.
18148         (__va_copy): Add standard and header annotation.
18149         Update description for clarity of origins and current use.
18151 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
18153         [BZ #21941]
18154         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
18155         xssqrtqp requires operands to be in Vector Registers
18156         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
18157         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
18158         (__ieee754_sqrtf128): Likewise.
18160 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
18162         * sysdeps/aarch64/memcmp.S (memcmp):
18163         Rewrite of optimized memcmp.
18165 2017-08-10  Florian Weimer  <fweimer@redhat.com>
18167         Introduce ld.so exceptions.
18168         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
18169         (_dl_exception_create, _dl_exception_create_format)
18170         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
18171         (_dl_catch_exception): Declare.
18172         (_dl_catch_error): Update comment.
18173         * elf/dl-error-skeleton.c (struct catch): Replace objname,
18174         errstring, malloced members with exception member.
18175         (_dl_out_of_memory): Remove.
18176         (fatal_error): New function, extracted from _dl_signal_error.
18177         (_dl_signal_exception, _dl_signal_cexception): New functions.
18178         (_dl_signal_error): Call _dl_exception_create to allocate an
18179         exception object.
18180         (_dl_catch_exception): New function, based on _dl_catch_error.
18181         (_dl_catch_error): Implement using _dl_catch_exception.
18182         * elf/dl-exception.c: New file.
18183         * elf/Makefile (dl-routines): Add dl-exception.
18184         (elide-routines.os): Likewise.
18185         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
18186         _dl_exception_create_format, _dl_exception_free.
18187         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
18188         _dl_signal_exception.
18189         * elf/dl-lookup.c (make_string): Remove.
18190         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
18191         _dl_signal_cexception, _dl_exception_free.
18192         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
18193         _dl_signal_exception.
18194         * elf/dl-sym.c (do_sym): Likewise.
18195         * elf/dl-version.c (make_string): Remove.
18196         (match_symbol): Use _dl_exception_create_format,
18197         _dl_signal_cexception, _dl_exception_free.
18198         (_dl_check_map_versions): Likewise.
18199         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
18200         _dl_catch_exception.
18201         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
18202         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
18203         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
18204         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
18205         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
18206         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
18207         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
18208         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
18209         Likewise.
18210         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
18211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
18212         (ld.so): Likewise.
18213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
18214         (ld.so): Likewise.
18215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
18216         Likewise.
18217         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
18218         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
18219         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
18220         Likewise.
18221         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
18222         Likewise.
18223         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
18225 2017-08-10  Florian Weimer  <fweimer@redhat.com>
18227         * inet/net-internal.h (__inet6_scopeid_pton): Remove
18228         attribute_hidden, internal_function.
18229         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
18230         internal_function.
18232 2017-08-10  Florian Weimer  <fweimer@redhat.com>
18234         * malloc/malloc.c (get_max_fast): Reimplement as an inline
18235         function which calls __builtin_unreachable.
18237 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
18239         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
18240         Indian monetary formatting
18241         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
18242         test cases.
18244 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
18246         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
18247         Fix typo in comment.
18249         [BZ #21928]
18250         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
18251         PTRACE_SEIZE_DEVEL): Remove.
18252         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18253         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18254         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18255         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18256         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18258 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
18260         * posix/bits/types.h (__qaddr_t): Remove.
18262         [BZ #21457]
18263         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
18264         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18265         __glibc_reserved1.
18266         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
18267         (ucontext_t): Use __ctx with uc_flags.
18268         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
18269         (__ctxt): Likewise.
18270         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18271         __glibc_reserved1.
18272         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
18273         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18274         __glibc_reserved1.
18275         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
18276         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18277         __glibc_reserved1.
18278         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
18279         macro.
18280         (ucontext_t): Use __ctx with uc_flags.
18281         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
18282         (ucontext_t): Use __ctx with uc_flags.
18283         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
18284         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
18285         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
18286         (ucontext_t): Use __ctx with uc_flags.
18287         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
18288         undefine further down.
18289         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
18290         __glibc_reserved1.
18291         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
18292         undefine further down.
18293         (ucontext_t): Use __ctx with uc_flags.
18294         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
18295         undefine further down.
18296         (ucontext_t): Use __ctx with uc_flags.
18297         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
18298         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
18299         Rename uc_pad to __glibc_reserved1.
18300         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
18301         undefine further down.
18302         (ucontext_t): Use __ctx with uc_flags.
18303         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
18304         further down.
18305         (ucontext_t): Use __ctx with uc_flags.
18306         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
18307         __ctx with uc_flags.
18308         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
18309         (ucontext_t): Use __ctx with uc_flags.
18310         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
18311         __ctx with uc_flags.
18313 2017-08-09  Florian Weimer  <fweimer@redhat.com>
18315         [BZ #21932]
18316         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
18317         before early return.
18319 2017-08-09  Andreas Schwab  <schwab@suse.de>
18321         [BZ #21041]
18322         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
18323         renamed alias.
18325         [BZ #21041]
18326         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
18327         tst-compat-forwarder.
18328         (modules-names): Add tst-compat-forwarder-mod.
18329         ($(objpfx)tst-compat-forwarder): Depend on
18330         $(objpfx)tst-compat-forwarder-mod.so.
18331         * nptl/tst-compat-forwarder.c: New file.
18332         * nptl/tst-compat-forwarder-mod.c: New file.
18334 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18336         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
18337         comments.
18339         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
18340         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
18341         memcpy_falkor.
18342         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
18343         Bump.
18344         (__libc_ifunc_impl_list): Add __memcpy_falkor.
18345         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
18346         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
18347         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
18348         Add falkor.
18349         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
18350         New macro.
18352 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18354         [BZ #759]
18355         * manual/setjmp.texi (getcontex): Document uc_stack value
18356         compatibility differences.
18358 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
18360         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
18361         (old_malloc_hook): Likewise.
18362         (old_memalign_hook): Likewise.
18363         (old_realloc_hook): Likewise.
18364         (struct hdr): Likewise.
18365         (flood): Likewise.
18366         (freehook): Likewise.
18367         (mallochook): Likewise.
18368         (memalignhook): Likewise.
18369         (reallochook): Likewise.
18370         (mprobe): Likewise.
18371         * malloc/mtrace.c (mallwatch): Likewise.
18372         (tr_old_free_hook): Likewise.
18373         (tr_old_malloc_hook): Likewise.
18374         (tr_old_realloc_hook): Likewise.
18375         (tr_old_memalign_hook): Likewise.
18376         (tr_where): Likewise.
18377         (lock_and_info): Likewise.
18378         (tr_freehook): Likewise.
18379         (tr_mallochook): Likewise.
18380         (tr_reallochook): Likewise.
18381         (tr_memalignhook): Likewise.
18382         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
18383         * misc/mmap.c (__mmap): Likewise.
18384         * misc/mmap64.c (__mmap64): Likewise.
18385         * misc/mprotect.c (__mprotect): Likewise.
18386         * misc/msync.c (msync): Likewise.
18387         * misc/munmap.c (__munmap): Likewise.
18388         * posix/posix_madvise.c (posix_madvise): Likewise.
18389         * socket/send.c (__send): Likewise.
18390         * socket/sendto.c (__sendto): Likewise.
18391         * socket/setsockopt.c (__setsockopt): Likewise.
18392         * string/memcmp.c (__ptr_t): Remove macro.
18393         (MEMCMP): Use void * instead of ptr_t.
18394         * string/memrchr.c (__ptr_t): Remove macro.
18395         (__memrchr): Use void * instead of ptr_t.
18396         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
18397         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
18398         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
18399         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
18400         * sysdeps/mach/msync.c (msync): Likewise.
18401         * sysdeps/mach/munmap.c (__munmap): Likewise.
18402         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
18403         Likewise.
18404         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
18405         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
18406         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
18407         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
18408         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
18409         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
18410         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
18411         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
18412         Likewise.
18413         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
18414         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
18415         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
18416         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
18417         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
18418         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
18419         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
18420         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
18421         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
18422         Likewise.
18423         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
18424         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
18425         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
18426         (MEMCMP): Use void * instead of ptr_t.
18427         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
18428         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
18430 2017-08-08  Florian Weimer  <fweimer@redhat.com>
18432         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
18433         return statement.
18435 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
18437         [BZ #21913]
18438         * csu/libc-tls.c: Include <startup.h> first.
18439         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
18440         * elf/dl-tunables.c: Include <startup.h> first.
18441         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
18442         * sysdeps/generic/startup.h: New file.
18443         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
18444         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
18445         (I386_USE_SYSENTER): New.  Defined to 0.
18447 2017-08-08  Andreas Schwab  <schwab@suse.de>
18449         [BZ #21041]
18450         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
18451         * nptl/pt-system.c (system): Likewise.
18453 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
18455         [BZ #21780]
18456         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
18457         EOPNOTSUPP.
18458         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18459         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18460         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
18461         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18462         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18463         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18464         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
18466 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
18468         [BZ #21899]
18469         * bits/sigaction.h (struct sigaction): Define sa_handler and
18470         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
18471         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18472         [__USE_XOPEN_EXTENDED].
18473         (SA_RESTART): Likewise.
18474         (SA_NODEFER): Likewise.
18475         (SA_RESETHAND): Likewise.
18476         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
18477         (struct sigaction): Define sa_handler and sa_sigaction using union
18478         also for [__USE_XOPEN_EXTENDED].
18479         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18480         [__USE_XOPEN_EXTENDED].
18481         (SA_RESTART): Likewise.
18482         (SA_NODEFER): Likewise.
18483         (SA_RESETHAND): Likewise.
18484         * sysdeps/unix/sysv/linux/bits/sigaction.h
18485         (struct sigaction): Define sa_handler and sa_sigaction using union
18486         also for [__USE_XOPEN_EXTENDED].
18487         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18488         [__USE_XOPEN_EXTENDED].
18489         (SA_RESTART): Likewise.
18490         (SA_NODEFER): Likewise.
18491         (SA_RESETHAND): Likewise.
18492         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
18493         (struct sigaction): Define sa_handler and sa_sigaction using union
18494         also for [__USE_XOPEN_EXTENDED].
18495         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18496         [__USE_XOPEN_EXTENDED].
18497         (SA_RESTART): Likewise.
18498         (SA_NODEFER): Likewise.
18499         (SA_RESETHAND): Likewise.
18500         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
18501         (struct sigaction): Define sa_handler and sa_sigaction using union
18502         also for [__USE_XOPEN_EXTENDED].
18503         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18504         [__USE_XOPEN_EXTENDED].
18505         (SA_RESTART): Likewise.
18506         (SA_NODEFER): Likewise.
18507         (SA_RESETHAND): Likewise.
18508         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
18509         (struct sigaction): Define sa_handler and sa_sigaction using union
18510         also for [__USE_XOPEN_EXTENDED].
18511         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18512         [__USE_XOPEN_EXTENDED].
18513         (SA_RESTART): Likewise.
18514         (SA_NODEFER): Likewise.
18515         (SA_RESETHAND): Likewise.
18516         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
18517         (struct sigaction): Define sa_handler and sa_sigaction using union
18518         also for [__USE_XOPEN_EXTENDED].
18519         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18520         [__USE_XOPEN_EXTENDED].
18521         (SA_RESTART): Likewise.
18522         (SA_NODEFER): Likewise.
18523         (SA_RESETHAND): Likewise.
18524         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
18525         (struct sigaction): Define sa_handler and sa_sigaction using union
18526         also for [__USE_XOPEN_EXTENDED].
18527         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18528         [__USE_XOPEN_EXTENDED].
18529         (SA_RESTART): Likewise.
18530         (SA_NODEFER): Likewise.  Define directly rather than as alias.
18531         (SA_RESETHAND): Likewise.
18532         (SA_INTERRUPT): Define only for [__USE_MISC].
18533         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
18534         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
18535         [__USE_MISC].
18536         (SA_STACK): Define only for [__USE_MISC].
18537         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
18538         (struct sigaction): Define sa_handler and sa_sigaction using union
18539         also for [__USE_XOPEN_EXTENDED].
18540         (SA_ONSTACK): Change [__USE_UNIX98] condition to
18541         [__USE_XOPEN_EXTENDED].
18542         (SA_RESTART): Likewise.
18543         (SA_NODEFER): Likewise.
18544         (SA_RESETHAND): Likewise.
18545         (SA_NOPTRACE): Define only for [__USE_MISC].
18547         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
18548         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
18549         (struct catalog_info): Likewise.
18550         * inet/htontest.c (lo): Likewise.
18551         (foo): Likewise.
18552         * inet/inet_lnaof.c (inet_lnaof): Likewise.
18553         * inet/inet_net.c (inet_network): Likewise.
18554         * inet/inet_netof.c (inet_netof): Likewise.
18555         * inet/rcmd.c (__ivaliduser): Likewise.
18556         (iruserok): Likewise.
18557         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
18558         * locale/programs/locale-spec.c (locale_special): Likewise.
18559         * nis/nis_findserv.c (struct findserv_req): Likewise.
18560         (__nis_findfastest_with_timeout): Likewise.
18561         * nss/test-netdb.c (test_network): Likewise.
18562         * resolv/inet_neta.c (inet_neta): Likewise.
18563         * resolv/ns_date.c (ns_datetosecs): Likewise.
18564         (SECS_PER_DAY): Likewise.
18565         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
18566         Likewise.
18567         * resolv/res_comp.c (__putlong): Likewise.
18568         (__putshort): Likewise.
18569         (_getlong): Likewise.
18570         (_getshort): Likewise.
18571         * resolv/res_debug.c (p_time): Likewise.
18572         (precsize_ntoa): Likewise.
18573         (precsize_aton): Likewise.
18574         (latlon2ul): Likewise.
18575         (loc_aton): Likewise.
18576         (loc_ntoa): Likewise.
18577         * resolv/res_hconf.c (struct netaddr): Likewise.
18578         (_res_hconf_reorder_addrs): Likewise.
18579         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
18580         (clnttcp_control): Likewise.
18581         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
18582         (clntudp_control): Likewise.
18583         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
18584         (clntunix_control): Likewise.
18585         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
18586         * sunrpc/rpc/auth.h (union des_block): Likewise.
18587         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
18588         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
18589         (xdrrec_create): Likewise.
18590         (xdrrec_endofrecord): Likewise.
18591         (flush_out): Likewise.
18592         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
18593         (xdrstdio_putlong): Likewise.
18594         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
18595         Likewise.
18597         * misc/sys/cdefs.h (__long_double_t): Remove.
18598         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
18599         instead of __long_double_t,
18600         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
18602 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
18604         * benchtests/scripts/compare_strings.py: Avoid display error when
18605         running on a text terminal.
18607         * benchtests/scripts/compare_strings.py (main): Add an
18608         optional -base option.
18609         (process_results): New argument base_func.
18611         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
18612         hardcoding memcpy.
18613         * benchtests/bench-memcpy-large.c (test_name): Likewise.
18614         * benchtests/bench-memcpy-random.c (test_name): Likewise.
18616 2017-08-07  Andreas Schwab  <schwab@suse.de>
18618         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
18619         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
18620         * intl/Makefile ($(objpfx)tst-gettext.out)
18621         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
18622         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
18623         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
18624         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
18625         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
18626         * posix/Makefile ($(objpfx)globtest.out)
18627         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
18628         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
18629         ($(objpfx)tst-printf.out): Likewise.
18630         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
18631         ($(objpfx)tst-setcontext3.out): Likewise.
18633 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18635         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18636         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
18637         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
18638         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
18639         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
18640         and mptan-fma.
18641         (CFLAGS-doasin-fma.c): New.
18642         (CFLAGS-dosincos-fma.c): Likewise.
18643         (CFLAGS-e_asin-fma.c): Likewise.
18644         (CFLAGS-e_atan2-fma.c): Likewise.
18645         (CFLAGS-e_exp-fma.c): Likewise.
18646         (CFLAGS-e_log-fma.c): Likewise.
18647         (CFLAGS-e_pow-fma.c): Likewise.
18648         (CFLAGS-halfulp-fma.c): Likewise.
18649         (CFLAGS-mpa-fma.c): Likewise.
18650         (CFLAGS-mpatan-fma.c): Likewise.
18651         (CFLAGS-mpatan2-fma.c): Likewise.
18652         (CFLAGS-mpexp-fma.c): Likewise.
18653         (CFLAGS-mplog-fma.c): Likewise.
18654         (CFLAGS-mpsqrt-fma.c): Likewise.
18655         (CFLAGS-mptan-fma.c): Likewise.
18656         (CFLAGS-s_atan-fma.c): Likewise.
18657         (CFLAGS-sincos32-fma.c): Likewise.
18658         (CFLAGS-slowexp-fma.c): Likewise.
18659         (CFLAGS-slowpow-fma.c): Likewise.
18660         (CFLAGS-s_sin-fma.c): Likewise.
18661         (CFLAGS-s_tan-fma.c): Likewise.
18662         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
18663         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
18664         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
18665         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
18666         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
18667         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18668         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
18669         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
18670         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
18671         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
18672         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
18673         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
18674         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
18675         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18676         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18677         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
18678         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
18679         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
18680         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
18681         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
18682         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
18683         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18684         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18685         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
18686         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
18687         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
18688         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
18689         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
18690         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
18691         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
18692         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
18694 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
18696         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
18697         (min_of_type_f): New macro.
18698         (min_of_type_): Likewise.
18699         (min_of_type_l): Likewise.
18700         (min_of_type_f128): Likewise.
18701         (min_of_type): Define using __MATH_TG and taking an expression
18702         argument.
18703         (math_check_force_underflow): Pass expression instead of type to
18704         min_of_type.
18705         (math_check_force_underflow_nonneg): Likewise.
18707 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18709         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
18710         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
18711         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
18713 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18715         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18716         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
18717         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
18718         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
18719         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
18720         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
18721         memcpy_chk-nonshared, mempcpy_chk-nonshared,
18722         memmove_chk-nonshared and memset_chk-nonshared
18723         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
18724         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
18725         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
18726         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
18727         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
18728         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
18729         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
18730         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
18731         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
18732         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
18733         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
18734         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
18735         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
18736         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
18737         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
18738         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
18739         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
18740         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
18741         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
18742         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
18743         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
18744         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
18745         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
18746         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
18747         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
18748         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
18749         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
18750         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
18751         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
18752         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
18753         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
18754         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
18755         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
18756         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
18757         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
18758         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
18759         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
18760         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
18761         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
18762         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
18763         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
18764         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
18765         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
18766         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
18767         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
18768         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
18769         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
18770         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
18771         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
18772         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
18773         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
18774         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
18775         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
18776         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
18777         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
18778         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
18779         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
18780         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
18781         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
18782         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
18783         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
18784         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
18785         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
18786         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
18787         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
18788         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
18789         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
18790         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
18791         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
18792         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
18793         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
18794         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
18795         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
18796         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
18797         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
18798         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
18799         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
18800         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
18801         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
18802         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
18803         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
18804         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
18805         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
18806         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
18807         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
18808         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
18809         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
18810         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
18811         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
18812         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
18813         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
18814         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
18815         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
18816         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
18817         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
18818         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
18819         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
18820         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
18821         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
18822         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
18823         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
18824         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
18825         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
18826         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
18827         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
18828         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
18829         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
18830         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
18832 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
18834         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
18835         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
18836         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
18837         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
18838         svml_d_log2_core-sse2, svml_d_log4_core-sse,
18839         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
18840         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
18841         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
18842         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
18843         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
18844         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
18845         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
18846         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
18847         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
18848         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
18849         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
18850         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
18851         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
18852         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
18853         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
18854         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
18855         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
18856         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
18857         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
18858         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
18859         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
18860         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
18861         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
18862         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
18863         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
18864         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
18865         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
18866         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
18867         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
18868         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
18869         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
18870         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
18871         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
18872         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
18873         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
18874         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
18875         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
18876         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
18877         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
18878         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
18879         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
18880         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
18881         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
18882         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
18883         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
18884         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
18885         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
18886         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
18887         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
18888         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
18889         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
18890         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
18891         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
18892         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
18893         ...
18894         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
18895         Don't include <sysdep.h> nor <init-arch.h>.
18896         (_ZGVbN2v_cos): Removed.
18897         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
18898         ...
18899         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
18900         Don't include <sysdep.h> nor <init-arch.h>.
18901         (_ZGVdN4v_cos): Removed.
18902         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
18903         ...
18904         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
18905         Don't include <sysdep.h> nor <init-arch.h>.
18906         (_ZGVeN8v_cos): Removed.
18907         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
18908         ...
18909         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
18910         Don't include <sysdep.h> nor <init-arch.h>.
18911         (_ZGVbN2v_exp): Removed.
18912         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
18913         ...
18914         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
18915         Don't include <sysdep.h> nor <init-arch.h>.
18916         (_ZGVdN4v_exp): Removed.
18917         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
18918         ...
18919         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
18920         Don't include <sysdep.h> nor <init-arch.h>.
18921         (_ZGVeN8v_exp): Removed.
18922         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
18923         ...
18924         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
18925         Don't include <sysdep.h> nor <init-arch.h>.
18926         (_ZGVbN2v_log): Removed.
18927         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
18928         ...
18929         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
18930         Don't include <sysdep.h> nor <init-arch.h>.
18931         (_ZGVdN4v_log): Removed.
18932         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
18933         ...
18934         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
18935         Don't include <sysdep.h> nor <init-arch.h>.
18936         (_ZGVeN8v_log): Removed.
18937         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
18938         ...
18939         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
18940         Don't include <sysdep.h> nor <init-arch.h>.
18941         (_ZGVbN2vv_pow): Removed.
18942         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
18943         ...
18944         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
18945         Don't include <sysdep.h> nor <init-arch.h>.
18946         (_ZGVdN4vv_pow): Removed.
18947         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
18948         ...
18949         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
18950         Don't include <sysdep.h> nor <init-arch.h>.
18951         (_ZGVeN8vv_pow): Removed.
18952         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
18953         ...
18954         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
18955         Don't include <sysdep.h> nor <init-arch.h>.
18956         (_ZGVbN2v_sin): Removed.
18957         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
18958         ...
18959         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
18960         Don't include <sysdep.h> nor <init-arch.h>.
18961         (_ZGVbN4v_sin): Removed.
18962         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
18963         ...
18964         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
18965         Don't include <sysdep.h> nor <init-arch.h>.
18966         (_ZGVbN8v_sin): Removed.
18967         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
18968         ...
18969         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
18970         Don't include <sysdep.h> nor <init-arch.h>.
18971         (_ZGVbN2vvv_sincos): Removed.
18972         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
18973         ...
18974         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
18975         Don't include <sysdep.h> nor <init-arch.h>.
18976         (_ZGVdN4vvv_sincos): Removed.
18977         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
18978         ...
18979         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
18980         Don't include <sysdep.h> nor <init-arch.h>.
18981         (_ZGVeN8vvv_sincos): Removed.
18982         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
18983         ...
18984         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
18985         Don't include <sysdep.h> nor <init-arch.h>.
18986         (_ZGVeN16v_cosf): Removed.
18987         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
18988         ...
18989         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
18990         Don't include <sysdep.h> nor <init-arch.h>.
18991         (_ZGVbN4v_cosf): Removed.
18992         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
18993         ...
18994         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
18995         Don't include <sysdep.h> nor <init-arch.h>.
18996         (_ZGVdN8v_cosf): Removed.
18997         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
18998         ...
18999         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
19000         Don't include <sysdep.h> nor <init-arch.h>.
19001         (_ZGVeN16v_expf): Removed.
19002         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
19003         ...
19004         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
19005         Don't include <sysdep.h> nor <init-arch.h>.
19006         (_ZGVbN4v_expf): Removed.
19007         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
19008         ...
19009         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
19010         Don't include <sysdep.h> nor <init-arch.h>.
19011         (_ZGVdN8v_expf): Removed.
19012         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
19013         ...
19014         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
19015         Don't include <sysdep.h> nor <init-arch.h>.
19016         (_ZGVeN16v_logf): Removed.
19017         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
19018         ...
19019         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
19020         Don't include <sysdep.h> nor <init-arch.h>.
19021         (_ZGVbN4v_logf): Removed.
19022         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
19023         ...
19024         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
19025         Don't include <sysdep.h> nor <init-arch.h>.
19026         (_ZGVdN8v_logf): Removed.
19027         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
19028         ...
19029         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
19030         Don't include <sysdep.h> nor <init-arch.h>.
19031         (_ZGVeN16vv_powf): Removed.
19032         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
19033         ...
19034         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
19035         Don't include <sysdep.h> nor <init-arch.h>.
19036         (_ZGVbN4vv_powf): Removed.
19037         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
19038         ...
19039         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
19040         Don't include <sysdep.h> nor <init-arch.h>.
19041         (_ZGVdN8vv_powf): Removed.
19042         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
19043         ...
19044         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
19045         Don't include <sysdep.h> nor <init-arch.h>.
19046         (_ZGVeN16vvv_sincosf): Removed.
19047         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
19048         ...
19049         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
19050         Don't include <sysdep.h> nor <init-arch.h>.
19051         (_ZGVbN4vvv_sincosf): Removed.
19052         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
19053         ...
19054         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
19055         Don't include <sysdep.h> nor <init-arch.h>.
19056         (_ZGVdN8vvv_sincosf): Removed.
19057         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
19058         ...
19059         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
19060         Don't include <sysdep.h> nor <init-arch.h>.
19061         (_ZGVeN16v_sinf): Removed.
19062         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
19063         ...
19064         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
19065         Don't include <sysdep.h> nor <init-arch.h>.
19066         (_ZGVbN4v_sinf): Removed.
19067         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
19068         ...
19069         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
19070         Don't include <sysdep.h> nor <init-arch.h>.
19071         (_ZGVdN8v_sinf): Removed.
19073 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19075         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19076         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
19077         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
19078         s_rint-sse4_1 and s_rintf-sse4_1.
19079         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
19080         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
19081         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
19082         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
19083         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
19084         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
19085         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
19086         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
19087         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
19088         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
19089         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
19090         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19091         (__ceil): Removed.
19092         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
19093         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
19094         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19095         (__ceilf): Removed.
19096         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
19097         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
19098         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19099         (__floor): Removed.
19100         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
19101         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
19102         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19103         (__floorf): Removed.
19104         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
19105         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
19106         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19107         (__nearbyint): Removed.
19108         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
19109         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
19110         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19111         (__nearbyintf): Removed.
19112         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
19113         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
19114         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19115         (__rint): Removed.
19116         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
19117         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
19118         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
19119         (__rintf): Removed.
19121 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19123         * sysdeps/i386/start.S (_start): Check Check PIC instead of
19124         SHARED.  Avoid dynamic relocation against main in static PIE.
19126 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19128         [BZ #21815]
19129         * elf/Makefile (CFLAGS-tst-prelink.c): New.
19130         (LDFLAGS-tst-prelink): Likewise.
19132 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19134         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
19135         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
19136         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
19137         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
19138         (INTERNAL_SYSCALL_NCS): Likewise.
19139         (LOADARGS_1): Likewise.
19140         (LOADARGS_5): Likewise.
19141         (RESTOREARGS_1): Likewise.
19142         (RESTOREARGS_5): Likewise.
19144 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19146         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
19147         (MEMPCPY_SYMBOL): Likewise.
19148         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
19149         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
19150         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
19151         in libc.a.
19152         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
19153         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
19154         Likewise.
19155         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
19156         (__hidden_ver1): Don't use in libc.a.
19157         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
19158         (__mempcpy): Don't create a weak alias in libc.a.
19159         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
19160         libc.a.
19161         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
19162         (__hidden_ver1): Don't use in libc.a.
19164 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19166         * config.make.in (have-insert): New.
19167         * configure.ac (libc_cv_insert): New.  Set to yes if linker
19168         supports INSERT in linker script.
19169         (AC_SUBST(libc_cv_insert): New.
19170         * configure: Regenerated.
19171         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
19172         if $(have-insert) == yes.
19174 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19176         * elf/Makefile (tests): Add vismain only if
19177         $(have-protected-data) == yes.
19178         (tests-pie): Likewise.
19180 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19182         [BZ #21871]
19183         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
19184         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
19186 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
19188         [BZ #21790]
19189         * sysdeps/i386/i586/memset.S
19190         (__memset_zero_constant_len_parameter): Removed.
19191         * sysdeps/i386/i686/memset.S
19192         (__memset_zero_constant_len_parameter): Likewise.
19193         * sysdeps/i386/i686/multiarch/memset_chk.S
19194         (__memset_zero_constant_len_parameter): Likewise.
19195         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
19196         Likewise.
19198 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
19200         * stdlib/getentropy.c (getentropy): Change return type to int.
19202 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
19204         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
19206 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
19208         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
19209         u_intN_t.
19210         * math/s_nexttowardf.c (__nexttowardf): Likewise.
19211         * sysdeps/generic/math_private.h (ieee_double_shape_type):
19212         Likewise.
19213         (ieee_float_shape_type): Likewise.
19214         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
19215         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
19216         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
19217         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
19218         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
19219         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
19220         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
19221         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
19222         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
19223         Likewise.
19224         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
19225         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
19226         (__ieee754_yn): Likewise.
19227         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
19228         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
19229         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
19230         Likewise.
19231         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
19232         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
19233         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
19234         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
19235         (__erfc): Likewise.
19236         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
19237         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
19238         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
19239         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
19240         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
19241         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
19242         Likewise.
19243         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
19244         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
19245         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
19246         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
19247         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
19248         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
19249         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
19250         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
19251         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
19252         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
19253         (__issignaling): Likewise.
19254         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
19255         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
19256         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
19257         Likewise.
19258         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
19259         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
19260         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
19261         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
19262         Likewise.
19263         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
19264         Likewise.
19265         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
19266         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
19267         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
19268         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
19269         (__erfcf): Likewise.
19270         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
19271         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
19272         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
19273         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
19274         Likewise.
19275         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
19276         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
19277         Likewise.
19278         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
19279         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
19280         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
19281         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
19282         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
19283         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
19284         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
19285         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
19286         Likewise.
19287         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
19288         Likewise.
19289         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
19290         Likewise.
19291         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
19292         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
19293         Likewise.
19294         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
19295         Likewise.
19296         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
19297         (__ieee754_ynl): Likewise.
19298         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
19299         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
19300         Likewise.
19301         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
19302         Likewise.
19303         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
19304         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
19305         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
19306         Likewise.
19307         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
19308         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
19309         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
19310         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
19311         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
19312         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
19313         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
19314         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
19315         Likewise.
19316         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
19317         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
19318         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
19319         Likewise.
19320         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
19321         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
19322         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
19323         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
19324         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
19325         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
19326         Likewise.
19327         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
19328         Likewise.
19329         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
19330         Likewise.
19331         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
19332         Likewise.
19333         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
19334         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
19335         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
19336         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
19337         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
19338         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
19339         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
19340         Likewise.
19341         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
19342         Likewise.
19343         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
19344         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
19345         Likewise.
19346         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
19347         (__ieee754_remainderl): Likewise.
19348         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
19349         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
19350         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
19351         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
19352         Likewise.
19353         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
19354         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
19355         Likewise.
19356         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
19357         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
19358         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
19359         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
19360         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
19361         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
19362         Likewise.
19363         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
19364         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
19365         (__ieee754_y0l): Likewise.
19366         (pzero): Likewise.
19367         (qzero): Likewise.
19368         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
19369         (__ieee754_y1l): Likewise.
19370         (pone): Likewise.
19371         (qone): Likewise.
19372         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
19373         (__ieee754_ynl): Likewise.
19374         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
19375         (__ieee754_lgammal_r): Likewise.
19376         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
19377         Likewise.
19378         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
19379         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
19380         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
19381         (__erfcl): Likewise.
19382         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
19383         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
19384         Likewise.
19385         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
19386         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
19387         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
19388         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
19389         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
19390         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
19391         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
19392         Likewise.
19393         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
19394         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
19395         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
19396         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
19397         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
19398         Likewise.
19399         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
19400         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
19401         Likewise.
19402         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
19403         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
19404         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
19405         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
19406         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
19408 2017-08-03  Florian Weimer  <fweimer@redhat.com>
19410         [BZ #21885]
19411         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
19412         on memory allocation failure.
19414 2017-08-03  Alan Modra  <amodra@gmail.com>
19416         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
19417         tst-tlsopt-powerpc.c with function name change and no test harness.
19418         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
19419         Call tls_get_addr_opt_test.
19420         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
19421         (modules-names): Add mod-tlsopt-powerpc.
19422         (mod-tlsopt-powerpc.so-no-z-defs): Define.
19423         (tst-tlsopt-powerpc): Depend on .so.
19424         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
19425         define.  Expand use in TLS_GD and TLS_LD.
19427 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19429         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
19430         function.
19431         * sysdeps/posix/shm_open.c: Include <pthread.h>.
19433 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
19435         [BZ #21686]
19436         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
19437         comparing size with that of double.
19438         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
19439         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
19440         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
19441         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
19442         (__TGMATH_BINARY_REAL_IMAG): Likewise.
19443         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
19444         unsigned __int128 types.
19446 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
19448         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
19449         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
19450         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
19451         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
19452         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
19454 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
19456         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
19458 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
19460         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
19461         of SHARED.
19462         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
19463         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
19464         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19465         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
19466         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
19467         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
19468         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
19470 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
19472         [BZ #21685]
19473         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
19474         bit-field expressions passed to sizeof or typeof.
19475         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19476         (__TGMATH_F128): Likewise.
19477         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
19478         (__TGMATH_CF128): Likewise.
19479         (__TGMATH_UNARY_REAL_ONLY): Likewise.
19480         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
19481         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
19482         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
19483         (__TGMATH_BINARY_REAL_ONLY): Likewise.
19484         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
19485         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
19486         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
19487         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
19488         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
19489         (__TGMATH_UNARY_REAL_IMAG): Likewise.
19490         (__TGMATH_UNARY_IMAG): Likewise.
19491         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
19492         (__TGMATH_BINARY_REAL_IMAG): Likewise.
19493         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
19494         type.
19495         (define_vars_for_type): Handle bit_field type specially.
19496         (Tests.__init__): Declare structure with bit-field element.
19498 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
19500         [BZ #21791]
19501         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
19502         (MEMCPY_CHK): Define only if SHARED is defined.
19503         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
19504         Likewise.
19505         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
19506         Likewise.
19508 See ChangeLog.18 for earlier changes.