Fix ChangeLog indentation.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #16681]
4         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
5         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
6         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
7         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
8         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
9         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
10         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
11         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
12         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
13
14 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
15
16         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
17
18 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
19
20         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
21         defined operator.
22
23         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
24         $TIMEOUTFACTOR.
25
26 2014-06-16  Florian Weimer  <fweimer@redhat.com>
27
28         [BZ #17058]
29         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
30         non-executed part of the test.
31
32 2014-06-16  Andreas Schwab  <schwab@suse.de>
33
34         * string/bits/string2.h (strdup, strndup): Update feature guard.
35
36 2014-06-14  David S. Miller  <davem@davemloft.net>
37
38         * sysdeps/sparc/fpu/libm-test-ulps: Update.
39
40 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
41
42         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
43         that was previously under [RESET_PID].
44         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
45
46         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
47         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
48         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
49         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
50         (__libc_vfork): New strong alias.
51         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
52
53 2014-06-14 Andi Kleen  <ak@linux.intel.com>
54
55         * sysdeps/generic/elide.h: New file.
56
57 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
58
59         * Makefile (installed-headers): Adjust path of pthread.h header.
60
61 2014-06-13  Roland McGrath  <roland@hack.frob.com>
62
63         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
64         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
65         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
66         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
67
68         * nptl/sysdeps/s390/Makefile: Moved ...
69         * sysdeps/s390/nptl/Makefile: ... here.
70         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
71         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
72         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
73         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
74         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
75         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
76         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
77         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
78         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
79         * sysdeps/s390/nptl/pthreaddef.h: ... here.
80         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
81         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
82         * nptl/sysdeps/s390/tls.h: Moved ...
83         * sysdeps/s390/nptl/tls.h: ... here.
84
85         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
86         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
87
88 2014-06-13  David S. Miller  <davem@davemloft.net>
89
90         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
91         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
92         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
93         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
94         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
95         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
96         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
97         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
98         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
99         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
100         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
101         Remove RESET_PID cpp guards.
102         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
103         Remove RESET_PID cpp guards.
104         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
105
106 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
107
108         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
109         __sp to uintptr_t.
110
111 2014-06-13  Andi Kleen  <ak@linux.intel.com>
112
113         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
114         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
115         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
116         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
117         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
118         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
119         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
120         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
121         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
122         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
123         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
124         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
125         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
126         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
127         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
128         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
129         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
130         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
131         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
132         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
133
134         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
135         (pthread_rwlock_rdlock): Add elision.
136         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
137         (pthread_rwlock_wrlock): Add elision.
138         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
139         (pthread_rwlock_trywrlock): Add elision.
140         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
141         (pthread_rwlock_tryrdlock): Add elision.
142         * nptl/pthread_rwlock_unlock.c: Include elide.h.
143         (pthread_rwlock_tryrdlock): Add elision unlock.
144         * nptl/sysdeps/pthread/pthread.h:
145         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
146         (PTHREAD_RWLOCK_INITIALIZER,
147         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
148         Handle new elision field.
149         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
150         * sysdeps/arm/nptl/bits/pthreadtypes.h
151         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
152         * sysdeps/sh/nptl/bits/pthreadtypes.h
153         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
154         * sysdeps/tile/nptl/bits/pthreadtypes.h
155         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
156         * sysdeps/a/nptl/bits/pthreadtypes.h
157         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
158         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
159         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
160         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
161         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
162         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
163         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
164         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
165         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
166         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
167         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
168         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
169         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
170         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
171         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
172         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
173         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
174         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
175         (elision_init): Set try_xbegin to zero when no RTM.
176         * sysdeps/x86/nptl/bits/pthreadtypes.h
177         (pthread_rwlock_t): Change __pad1 to __rwelision.
178         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
179
180 2014-06-13  Andi Kleen  <ak@linux.intel.com>
181
182         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
183         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
184         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
185         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
186
187 2014-06-13  Meador Inge  <meadori@codesourcery.com>
188
189         [BZ #16996]
190         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
191         that the cached result has been set before returning it.
192
193 2014-06-12  Roland McGrath  <roland@hack.frob.com>
194
195         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
196         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
197         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
198         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
199         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
200         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
201
202         * nptl/sysdeps/sparc/Makefile: Moved ...
203         * sysdeps/sparc/nptl/Makefile: ... here.
204         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
205         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
206         * nptl/sysdeps/sparc/tls.h: Moved ...
207         * sysdeps/sparc/nptl/tls.h: ... here.
208         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
209         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
210         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
211         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
212         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
213         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
214         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
215         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
216         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
217         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
218         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
219         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
220         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
221         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
222         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
223         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
224         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
225         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
226         Update #include.
227         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
228         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
229         Update #include.
230         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
231         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
232         Update #include.
233         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
234         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
235         Update #include.
236
237         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
238
239         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
240         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
241
242         * sysdeps/pthread/posix-timer.h: Include <list.h>.
243         (struct list_links): Type removed.
244         (struct thread_node, struct timer_node): Replace struct list_links
245         with struct list_head.
246         (list_unlink_ip): Likewise.
247         * sysdeps/pthread/timer_routines.c
248         (timer_free_list, thread_free_list, thread_active_list): Likewise.
249         (list_append, list_insbefore): Likewise.
250         (list_init): Function removed.
251         (thread_init, init_module): Use INIT_LIST_HEAD instead.
252         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
253         * sysdeps/pthread/Makefile: ... here, new file.
254
255         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
256         * sysdeps/nptl/Implies: ... here.
257         * sysdeps/unix/sysv/linux/Implies: Add nptl.
258         * nptl/sysdeps/pthread/list.h: Moved ...
259         * include/list.h: ... here.
260         * nptl/sysdeps/pthread/createthread.c: Moved ...
261         * nptl/createthread.c: ... here.
262         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
263         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
264         * nptl/pt-longjmp.c: ... here.
265         * nptl/sysdeps/pthread/Makefile: Moved ...
266         * sysdeps/nptl/Makefile: ... here.
267         * nptl/sysdeps/pthread/Subdirs: Moved ...
268         * sysdeps/nptl/Subdirs: ... here.
269         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
270         * sysdeps/nptl/aio_misc.h: ... here.
271         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
272         * sysdeps/nptl/bits/libc-lock.h: ... here.
273         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
274         * sysdeps/nptl/bits/libc-lockP.h: ... here.
275         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
276         * sysdeps/nptl/bits/stdio-lock.h: ... here.
277         * nptl/sysdeps/pthread/configure: Moved ...
278         * sysdeps/nptl/configure: ... here.
279         * nptl/sysdeps/pthread/configure.ac: Moved ...
280         * sysdeps/nptl/configure.ac: ... here.
281         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
282         * sysdeps/nptl/gai_misc.h: ... here.
283         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
284         * sysdeps/nptl/librt-cancellation.c: ... here.
285         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
286         * sysdeps/nptl/malloc-machine.h: ... here.
287         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
288         * sysdeps/nptl/pthread-functions.h: ... here.
289         * nptl/sysdeps/pthread/pthread.h: Moved ...
290         * sysdeps/nptl/pthread.h: ... here.
291         * nptl/sysdeps/pthread/setxid.h: Moved ...
292         * sysdeps/nptl/setxid.h: ... here.
293         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
294         * sysdeps/nptl/sigfillset.c: ... here.
295         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
296         * sysdeps/nptl/tcb-offsets.h: ... here.
297         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
298         * sysdeps/nptl/tst-mqueue8x.c: ... here.
299         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
300         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
301         * nptl/sysdeps/pthread/allocalim.h: Moved ...
302         * sysdeps/pthread/allocalim.h: ... here.
303         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
304         * sysdeps/pthread/bits/sigthread.h: ... here.
305         * nptl/sysdeps/pthread/flockfile.c: Moved ...
306         * sysdeps/pthread/flockfile.c: ... here.
307         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
308         * sysdeps/pthread/ftrylockfile.c: ... here.
309         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
310         * sysdeps/pthread/funlockfile.c: ... here.
311         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
312         * sysdeps/pthread/posix-timer.h: ... here.
313         * nptl/sysdeps/pthread/timer_create.c: Moved ...
314         * sysdeps/pthread/timer_create.c: ... here.
315         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
316         * sysdeps/pthread/timer_delete.c: ... here.
317         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
318         * sysdeps/pthread/timer_getoverr.c: ... here.
319         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
320         * sysdeps/pthread/timer_gettime.c: ... here.
321         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
322         * sysdeps/pthread/timer_routines.c: ... here.
323         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
324         * sysdeps/pthread/timer_settime.c: ... here.
325         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
326         * sysdeps/pthread/tst-timer.c: ... here.
327         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
328         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
329
330         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
331         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
332
333         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
334         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
335         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
336         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
337         Update #include target.
338         * nptl/sysdeps/i386/i686/Makefile: Moved ...
339         * sysdeps/i386/i686/nptl/Makefile: ... here.
340         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
341         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
342         Update #include target.
343         * nptl/sysdeps/i386/i686/tls.h: Moved ...
344         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
345         * nptl/sysdeps/i386/Makefile: Moved ...
346         * sysdeps/i386/nptl/Makefile: ... here.
347         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
348         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
349         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
350         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
351         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
352         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
353         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
354         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
355         * sysdeps/i386/nptl/pthreaddef.h: ... here.
356         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
357         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
358         * nptl/sysdeps/i386/tls.h: Moved ...
359         * sysdeps/i386/nptl/tls.h: ... here.
360
361         * sysdeps/sh/Makefile [$(subdir) = csu]
362         (gen-as-const-headers): Add tcb-offsets.sym.
363         * nptl/sysdeps/sh/Makefile: File removed.
364         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
365         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
366         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
367         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
368         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
369         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
370         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
371         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
372         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
373         * sysdeps/sh/nptl/pthreaddef.h: ... here.
374         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
375         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
376         * nptl/sysdeps/sh/tls.h: Moved ...
377         * sysdeps/sh/nptl/tls.h: ... here.
378         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
379         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
380         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
381         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
382         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
383         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
384         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
385         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
386         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
387         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
388         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
389         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
390         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
391         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
392         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
393         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
394         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
395         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
396         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
397         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
398         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
399         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
400         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
401         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
402         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
403         Moved ...
404         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
405         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
406         Moved ...
407         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
408         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
409         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
410         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
411         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
412         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
413         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
414         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
415         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
416         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
417         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
418         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
419         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
420         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
421         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
422         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
423         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
424         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
425         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
426
427 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
428
429         * posix/spawn_faction_addopen.c: Include string.h.
430
431 2014-06-11  Roland McGrath  <roland@hack.frob.com>
432
433         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
434         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
435         * nptl/sysdeps/x86_64/Makefile: Moved ...
436         * sysdeps/x86_64/nptl/Makefile: ... here.
437         * nptl/sysdeps/x86_64/configure: Moved ...
438         * sysdeps/x86_64/nptl/configure: ... here.
439         * nptl/sysdeps/x86_64/configure.ac: Moved ...
440         * sysdeps/x86_64/nptl/configure.ac: ... here.
441         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
442         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
443         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
444         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
445         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
446         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
447         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
448         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
449         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
450         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
451         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
452         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
453         * nptl/sysdeps/x86_64/tls.h: Moved ...
454         * sysdeps/x86_64/nptl/tls.h: ... here.
455         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
456         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
457         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
458         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
459
460         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
461
462 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
463
464         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
465
466 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
467
468         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
469         type.
470         [POSIX] (off_t): Likewise.
471         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
472         [POSIX] (S_ISBLK): Require macro.
473         [POSIX] (S_ISCHR): Likewise.
474         [POSIX] (S_ISDIR): Likewise.
475         [POSIX] (S_ISFIFO): Likewise.
476         [POSIX] (S_ISREG): Likewise.
477         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
478         optional-macro.
479         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
480         type.
481         [POSIX] (time_t): Likewise.
482         [POSIX] (timer_t): Likewise.
483
484 2014-06-11  Florian Weimer  <fweimer@redhat.com>
485
486         [BZ #17048]
487         * posix/spawn_int.h (struct __spawn_action): Make the path string
488         non-const to support deallocation.
489         * posix/spawn_faction_addopen.c
490         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
491         * posix/spawn_faction_destroy.c
492         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
493         path in all spawn_do_open actions.
494         * posix/tst-spawn.c (do_test): Exercise the copy operation in
495         posix_spawn_file_actions_addopen.
496
497 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
498
499         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
500         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
501         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
502         conditional code always true.
503         (__libc_vfork): New alias.
504
505 2014-06-11  Roland McGrath  <roland@hack.frob.com>
506
507         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
508         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
509
510         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
511
512         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
513         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
514
515         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
516         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
517
518         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
519         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
520
521 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
522
523         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
524         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
525         multiarch strcmp for PPC64.
526         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
527         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
529         multiarch optimizations.
530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
531         (__libc_ifunc_impl_list): Likewise.
532
533 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
534
535         * benchtests/scripts/validate_benchout.py: New script.
536         * benchtests/Makefile (bench-func): Call it.
537         * benchtests/scripts/benchout.schema.json: New file.
538
539 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
540
541         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
542         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
543         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
544         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
545         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
546         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
547         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
548         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
549         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
550         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
551         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
552         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
553         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
554         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
555         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
556         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
557         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
558         Moved ...
559         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
560         ... here.
561         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
562         Moved ...
563         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
564         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
565         Moved ...
566         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
567         ... here.
568         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
569         Moved ...
570         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
571         ... here.
572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
573         Moved ...
574         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
575         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
576         Moved ...
577         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
578         ... here.
579         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
580         Moved ...
581         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
582         ... here.
583         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
584         Moved ...
585         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
586         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
587         Moved ...
588         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
589         ... here.
590         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
591         Moved ...
592         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
593         ... here.
594         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
595         Moved ...
596         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
597         ... here.
598         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
599         Moved ...
600         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
601         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
602         Moved ...
603         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
604         ... here.
605         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
606         Moved ...
607         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
608         ... here.
609         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
610         Moved ...
611         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
612         ... here.
613         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
614         Moved ...
615         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
616         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
617         Moved ...
618         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
619         ... here.
620         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
621         Moved ...
622         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
623         ... here.
624         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
625         Moved ...
626         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
627         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
628         Moved ...
629         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
630         ... here.
631         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
632         Moved ...
633         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
634         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
635         Moved ...
636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
637         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
638         Moved ...
639         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
640         ... here.
641         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
642         Moved ...
643         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
644         ... here.
645         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
646         Moved ...
647         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
648         ... here.
649         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
650         Moved ...
651         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
652         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
653         Moved ...
654         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
655         ... here.
656         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
657         Moved ...
658         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
659         ... here.
660         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
661         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
662         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
663         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
664         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
665         Moved ...
666         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
667         ... here.
668         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
669         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
670         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
671         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
672         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
673         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
674         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
675         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
676         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
677         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
678         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
679         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
680         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
681         Moved ...
682         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
683         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
684         Moved ...
685         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
686         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
687         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
688         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
689         Moved ...
690         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
691         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
692         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
693         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
694         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
695         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
696         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
697
698 2014-06-10  Wilco  <wdijkstr@arm.com>
699
700         * math/test-fenv-return.c: New file.
701         * math/Makefile: Add new test test-fenv-return.
702
703 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
704
705         [BZ #17042]
706         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
707         when x - 1 is zero.
708         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
709         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
710         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
711         0.0L for an argument of 1.0L.
712         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
713         Likewise.
714         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
715         value when x - 1 is zero.
716         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
717         * sysdeps/i386/fpu/libm-test-ulps: Update.
718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
719
720 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
721
722         [BZ #15119]
723         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
724
725 2014-06-09  Roland McGrath  <roland@hack.frob.com>
726
727         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
728         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
729
730 2014-06-09  Roland McGrath  <roland@hack.frob.com>
731
732         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
733         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
734
735         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
736         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
737
738         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
739         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
740
741         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
742         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
743
744         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
745         if not already defined.
746         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
747         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
748         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
749         (TLS_INIT_TP): Use it.
750         (TLS_DEFINE_INIT_TP): New macro.
751         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
752
753 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
754
755         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
756         constant.
757         [POSIX] (IXANY): Likewise.
758         [POSIX] (OLCUC): Likewise.
759         [POSIX || POSIX2008] (CBAUD): Do not allow.
760         [POSIX || POSIX2008] (DEFECHO): Likewise.
761         [POSIX || POSIX2008] (ECHOCTL): Likewise.
762         [POSIX || POSIX2008] (ECHOKE): Likewise.
763         [POSIX || POSIX2008] (ECHOPRT): Likewise.
764         [POSIX || POSIX2008] (EXTA): Likewise.
765         [POSIX || POSIX2008] (EXTB): Likewise.
766         [POSIX || POSIX2008] (FLUSHO): Likewise.
767         [POSIX || POSIX2008] (LOBLK): Likewise.
768         [POSIX || POSIX2008] (PENDIN): Likewise.
769         [POSIX || POSIX2008] (SWTCH): Likewise.
770         [POSIX || POSIX2008] (VDISCARD): Likewise.
771         [POSIX || POSIX2008] (VDSUSP): Likewise.
772         [POSIX || POSIX2008] (VLNEXT): Likewise.
773         [POSIX || POSIX2008] (VREPRINT): Likewise.
774         [POSIX || POSIX2008] (VSTATUS): Likewise.
775         [POSIX || POSIX2008] (VWERASE): Likewise.
776         (B*): Change to B[0123456789]*.
777         * conform/data/time.h-data [POSIX || UNIX98]
778         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
779         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
780         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
781         [POSIX] (tm_*): Do not allow.
782
783 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
784
785         * Makefile (install): Don't set LANGUAGE.
786         * Makefile.in (install): Likewise.
787         * assert/Makefile (test-assert-ENV): Remove variable.
788         (test-assert-perr-ENV): Likewise.
789         * elf/Makefile (neededtest4-ENV): Likewise.
790         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
791         [$(cross-compiling) = no]: Don't set LANGUAGE.
792         * io/ftwtest-sh (LANG): Remove variable.
793         * libio/Makefile (tst-widetext-ENV): Likewise.
794         * manual/install.texi (Running make install): Don't refer to
795         environment settings for make install.
796         * INSTALL: Regenerated.
797         * nptl/tst-tls6.sh: Don't set LANG.
798         * posix/globtest.sh (LANG): Remove variable.
799         * string/Makefile (tester-ENV): Likewise.
800         (inl-tester-ENV): Likewise.
801         (noinl-tester-ENV): Likewise.
802         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
803         [$(cross-compiling) = no]: Don't set LANGUAGE.
804         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
805         without explicit environment settings.
806
807 2014-06-06  Roland McGrath  <roland@hack.frob.com>
808
809         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
810         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
811         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
812         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
813
814 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
815
816         * crypt/crypt-private.h [DOS]: Add some includes taken from the
817         other files in the crypt directory.
818         * crypt/crypt.c: Remove duplicate includes.
819         * crypt/crypt-entry.c: Likewise.
820         * crypt/crypt_util.c: Likewise.
821
822 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
823
824         * Makeconfig (run-program-env): New variable.
825         (run-program-prefix-before-env): Likewise.
826         (run-program-prefix-after-env): Likewise.
827         (run-program-prefix): Define in terms of new variables.
828         (built-program-cmd-before-env): New variable.
829         (built-program-cmd-after-env): Likewise.
830         (built-program-cmd): Define in terms of new variables.
831         (test-program-prefix-before-env): New variable.
832         (test-program-prefix-after-env): Likewise.
833         (test-program-prefix): Define in terms of new variables.
834         (test-program-cmd-before-env): New variable.
835         (test-program-cmd-after-env): Likewise.
836         (test-program-cmd): Define in terms of new variables.
837         * Rules (make-test-out): Use $(run-program-env).
838         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
839         (help): Do not mention environment variables.  Mention
840         --timeoutfactor option.
841         (timeoutfactor): New variable.
842         (blacklist_exports): Remove function.
843         (exports): Remove variable.
844         (command): Do not include ${exports}.
845         * manual/install.texi (Configuring and compiling): Do not mention
846         test wrappers preserving environment variables.  Mention that last
847         assignment to a variable must take precedence.
848         * INSTALL: Regenerated.
849         * benchtests/Makefile (run-bench): Use $(run-program-env).
850         * catgets/Makefile ($(objpfx)test1.cat): Use
851         $(built-program-cmd-before-env), $(run-program-env) and
852         $(built-program-cmd-after-env).
853         ($(objpfx)test2.cat): Do not specify environment variables
854         explicitly.
855         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
856         $(run-program-env) and $(built-program-cmd-after-env).
857         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
858         $(run-program-env) and $(test-program-cmd-after-env).
859         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
860         explicitly.
861         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
862         run_program_env and test_program_cmd_after_env arguments.
863         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
864         * elf/tst-pathopt.sh: Use run_program_env argument.
865         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
866         $(test-wrapper-env) and $(run-program-env).
867         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
868         run_program_env arguments.
869         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
870         * intl/Makefile ($(objpfx)tst-gettext.out): Use
871         $(test-program-prefix-before-env), $(run-program-env) and
872         $(test-program-prefix-after-env).
873         ($(objpfx)tst-gettext2.out): Likewise.
874         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
875         run_program_env and test_program_prefix_after_env arguments.
876         * intl/tst-gettext2.sh: Likewise.
877         * intl/tst-gettext4.sh: Do not set environment variables
878         explicitly.
879         * intl/tst-gettext6.sh: Likewise.
880         * intl/tst-translit.sh: Likewise.
881         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
882         $(test-program-prefix-before-env), $(run-program-env) and
883         $(test-program-prefix-after-env).
884         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
885         run_program_env and test_program_prefix_after_env arguments.
886         * math/Makefile (run-regen-ulps): Use $(run-program-env).
887         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
888         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
889         explicitly with each use of ${test_wrapper_env}.
890         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
891         $(test-program-prefix-before-env), $(run-program-env) and
892         $(test-program-prefix-after-env).
893         * posix/tst-getconf.sh: Do not set environment variables
894         explicitly.
895         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
896         run_program_env and test_program_prefix_after_env arguments.
897         * stdio-common/tst-printf.sh: Do not set environment variables
898         explicitly.
899         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
900         $(test-program-prefix-before-env), $(run-program-env) and
901         $(test-program-prefix-after-env).
902         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
903         run_program_env and test_program_prefix_after_env arguments.
904         Split $test calls into $test_pre and $test.
905         * timezone/Makefile (build-testdata): Use
906         $(built-program-cmd-before-env), $(run-program-env) and
907         $(built-program-cmd-after-env).
908
909 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
910
911         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
912         strlen for non SHARED builds.
913
914 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
915
916         * nptl/allocatestack.c (check_list): Inlined function...
917         (__reclaim_stacks): ... here.
918
919 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
920
921         [BZ #15698]
922         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
923         memory overrun.
924
925 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
926
927         * Rules (make-test-out): Include
928         LOCPATH=$(common-objpfx)localedata in default environment.
929         * debug/Makefile (tst-chk1-ENV): Remove variable.
930         (tst-chk2-ENV): Likewise.
931         (tst-chk3-ENV): Likewise.
932         (tst-chk4-ENV): Likewise.
933         (tst-chk5-ENV): Likewise.
934         (tst-chk6-ENV): Likewise.
935         (tst-lfschk1-ENV): Likewise.
936         (tst-lfschk2-ENV): Likewise.
937         (tst-lfschk3-ENV): Likewise.
938         (tst-lfschk4-ENV): Likewise.
939         (tst-lfschk5-ENV): Likewise.
940         (tst-lfschk6-ENV): Likewise.
941         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
942         (tst-iconv7-ENV): Likewise.
943         * intl/Makefile (LOCPATH-ENV): Likewise.
944         (tst-codeset-ENV): Likewise.
945         (tst-gettext3-ENV): Likewise.
946         (tst-gettext5-ENV): Likewise.
947         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
948         (tst-fopenloc-ENV): Likewise.
949         (tst-fgetws-ENV): Remove variable.
950         (tst-ungetwc1-ENV): Likewise.
951         (tst-ungetwc2-ENV): Likewise.
952         (bug-ungetwc2-ENV): Likewise.
953         (tst-swscanf-ENV): Likewise.
954         (bug-ftell-ENV): Likewise.
955         (tst-fgetwc-ENV): Likewise.
956         (tst-fseek-ENV): Likewise.
957         (tst-ftell-partial-wide-ENV): Likewise.
958         (tst-ftell-active-handler-ENV): Likewise.
959         (tst-ftell-append-ENV): Likewise.
960         * posix/Makefile (tst-fnmatch-ENV): Likewise.
961         (tst-regexloc-ENV): Likewise.
962         (bug-regex1-ENV): Likewise.
963         (tst-regex-ENV): Likewise.
964         (tst-regex2-ENV): Likewise.
965         (bug-regex5-ENV): Likewise.
966         (bug-regex6-ENV): Likewise.
967         (bug-regex17-ENV): Likewise.
968         (bug-regex18-ENV): Likewise.
969         (bug-regex19-ENV): Likewise.
970         (bug-regex20-ENV): Likewise.
971         (bug-regex22-ENV): Likewise.
972         (bug-regex23-ENV): Likewise.
973         (bug-regex25-ENV): Likewise.
974         (bug-regex26-ENV): Likewise.
975         (bug-regex30-ENV): Likewise.
976         (bug-regex32-ENV): Likewise.
977         (bug-regex33-ENV): Likewise.
978         (bug-regex34-ENV): Likewise.
979         (bug-regex35-ENV): Likewise.
980         (tst-rxspencer-ENV): Likewise.
981         (tst-rxspencer-no-utf8-ENV): Likewise.
982         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
983         (tst-sscanf-ENV): Likewise.
984         (tst-swprintf-ENV): Likewise.
985         (tst-swscanf-ENV): Likewise.
986         (test-vfprintf-ENV): Likewise.
987         (scanf13-ENV): Likewise.
988         (bug14-ENV): Likewise.
989         (tst-grouping-ENV): Likewise.
990         * stdlib/Makefile (tst-strtod-ENV): Likewise.
991         (tst-strtod3-ENV): Likewise.
992         (tst-strtod4-ENV): Likewise.
993         (tst-strtod5-ENV): Likewise.
994         (testmb2-ENV): Likewise./
995         * string/Makefile (tst-strxfrm-ENV): Likewise.
996         (tst-strxfrm2-ENV): Likewise.
997         (bug-strcoll1-ENV): Likewise.
998         (test-strcasecmp-ENV): Likewise.
999         (test-strncasecmp-ENV): Likewise.
1000         * time/Makefile (tst-strptime-ENV): Likewise.
1001         (tst-ftime_l-ENV): Likewise.
1002         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1003         (tst-mbrtowc-ENV): Likewise.
1004         (tst-wcrtomb-ENV): Likewise.
1005         (tst-mbrtowc2-ENV): Likewise.
1006         (tst-c16c32-1-ENV): Likewise.
1007         (tst-mbsnrtowcs-ENV): Likewise.
1008
1009 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1010
1011         * manual/resource.texi (How to get information about the memory
1012         subsystem?): Fix typo.
1013         Reported by Peon de la Parra Ivan <peon@keba.com>
1014
1015 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1016
1017         [BZ #16882]
1018         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1019         (pthread_spin_lock): Branch out of spin loop to proper location.
1020         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1021         (pthread_spin_lock): Likewise.
1022
1023         * nptl/tst-spin4.c: New test.
1024         * nptl/Makefile (tests): Add tst-spin4.
1025
1026 2014-06-03  Andreas Schwab  <schwab@suse.de>
1027
1028         [BZ #15946]
1029         * resolv/res_send.c (send_dg): Reload file descriptor after
1030         calling reopen.
1031
1032 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1033
1034         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1035
1036 2014-06-03  Richard Henderson  <rth@redhat.com>
1037
1038         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1039         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1040         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1041         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1042         in the SAVE_PID block.
1043         (__libc_vfork): New alias.
1044         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1045
1046         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1047         child in registers, not on the stack.  Remove RESET_PID conditionals.
1048         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1049
1050 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1051
1052         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1053
1054 2014-06-03  Wilco  <wdijkstr@arm.com>
1055
1056         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1057         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1058         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1059         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1060         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1061         Likewise.
1062
1063 2014-06-03  Wilco  <wdijkstr@arm.com>
1064
1065         * sysdeps/aarch64/fpu/math_private.h
1066         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1067         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1068         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1069         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1070         Fix declarations.
1071
1072 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1073
1074         * crypt/crypt-private.h: Include ufc-crypt.h.
1075         (__b64_from_24bit): Declare extern.
1076         * crypt/crypt_util.c(__b64_from_24bit): New function.
1077         (b64t): New static const variable.
1078         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1079         (b64t): Remove variable.
1080         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1081         * crypt/sha256-crypt.c: Include crypt-private.h.
1082         (b64t): Remove variable.
1083         (__sha256_crypt_r): Remove b64_from_24bit and replace
1084         with __b64_from_24bit.
1085         * crypt/sha512-crypt.c: Likewise.
1086
1087 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1088
1089         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1090         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1091         Label the code __libc_vfork rather than __vfork.
1092         [!NOT_IN_libc] (vfork): Define as weak alias.
1093         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
1094         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1095         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
1096
1097 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1098
1099         * malloc/malloc.c (malloc_info): Fix format specifier for
1100         n_mmaps.
1101
1102 2014-06-02  Wilco  <wdijkstr@arm.com>
1103
1104         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
1105         FPCR write.
1106
1107 2014-06-02  Wilco  <wdijkstr@arm.com>
1108
1109         [BZ #17009]
1110         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
1111         Rewrite to reduce FPCR/FPSR accesses.
1112
1113 2014-06-01  David S. Miller  <davem@davemloft.net>
1114
1115         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1116
1117 2014-05-31  David S. Miller  <davem@davemloft.net>
1118
1119         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
1120         to occur in round to nearest mode when |x| >= 2.0
1121
1122 2014-05-30  Richard Henderson  <rth@twiddle.net>
1123
1124         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
1125         (PSEUDO_RET_NOERRNO): Remove.
1126         (ret): Don't redefine.
1127         (ret_NOERRNO): Define in terms of ret.
1128         (ret_ERRVAL): Likewise.
1129
1130         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
1131         use of PSEUDO_RET; perform the error check directly.
1132
1133 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
1134
1135         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
1136         with __int128_t.
1137
1138 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1139
1140         * malloc/malloc (malloc_info): Fix formatting.
1141
1142 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1143             Roland McGrath  <roland@hack.frob.com>
1144
1145         * malloc/malloc (malloc_info): Also print mmapped statistics.
1146
1147 2014-05-30  Roland McGrath  <roland@hack.frob.com>
1148
1149         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
1150         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
1151
1152 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
1153
1154         * malloc/malloc.c (malloc_info): Inline mi_arena.
1155
1156 2014-05-29  Richard Henderson  <rth@twiddle.net>
1157
1158         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
1159         Remove comma before expanding ASM_ARGS_##nr.
1160         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
1161         Make _x0 a strict output; make _x8 a strict input; adjust expansion
1162         of ASM_ARGS_##nr.
1163         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
1164         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
1165         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
1166         (ASM_ARGS_1): Add leading comma.
1167
1168         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
1169         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
1170         to __errno_location.
1171         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
1172         Remove the expected plt for __errno_location.
1173
1174         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1175         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
1176         call to __read_tp.
1177
1178         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1179         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
1180         it and break it down.
1181         (DOCARGS_0, DOCARGS_1): Do nothing.
1182         (DOCARGS_2): Update to store into the new stack frame.
1183         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
1184         (UNDOCARGS_1): Update to restore from the new stack frame.
1185         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
1186         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
1187
1188         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1189         (SINGLE_THREAD_P): New parameter for result regno.
1190         (PSEUDO): Update to match; use cbz instead of beq.
1191
1192         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1193         Use ENTRY to define the _nocancel entry point.  Share the syscall
1194         and syscall error check paths with the cancel path.
1195         (PSEUDO_END): New.
1196
1197         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
1198         whitespace; tabs before and after asm mnemonics.
1199
1200 2014-05-29  Eric Wong  <normalperson@yhbt.net>
1201
1202         [BZ #15132]
1203         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1204         Call fstat64 or stat64 internally, depending on arguments passed.
1205         Replace stat buffer argument with file descriptor argument.
1206         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
1207         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
1208         Pass fd to __internal_statvfs instead of calling fstat64.
1209         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
1210         Pass fd to __internal_statvfs64 instead of calling fstat64.
1211         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
1212         Pass -1 to __internal_statvfs instead of calling stat64.
1213         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
1214         Pass -1 to __internal_statvfs64 instead of calling stat64.
1215
1216 2014-05-28  Roland McGrath  <roland@hack.frob.com>
1217
1218         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
1219         that was previously under [RESET_PID].
1220         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
1221
1222         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
1223         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
1224
1225 2014-05-27  Roland McGrath  <roland@hack.frob.com>
1226
1227         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
1228
1229         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
1230         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
1231
1232 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
1233
1234         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
1235
1236 2014-05-27  Andreas Schwab  <schwab@suse.de>
1237
1238         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
1239         TLS_INIT_TP macro.
1240         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1241         * elf/rtld.c (init_tls, dl_main): Likewise.
1242         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
1243         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
1244         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
1245         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
1246         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
1247         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1248         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
1249         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
1250         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
1251         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
1252         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
1253         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
1254         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
1255         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
1256         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
1257         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
1258         * sysdeps/generic/tls.h: Update description.
1259
1260 2014-05-27  Will Newton  <will.newton@linaro.org>
1261
1262         [BZ #16990]
1263         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
1264         and restore r2 rather than just restoring.
1265
1266 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1267
1268         [BZ #16724]
1269         * libio/tst-ftell-append.c: New test case.
1270         * libio/Makefile (tests): Add test case.
1271         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
1272         append mode.
1273         * libio/wfileops.c (do_ftell_wide): Likewise.
1274
1275 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1276
1277         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1278
1279         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
1280         ...
1281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
1282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
1283         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
1284         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
1285         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
1286         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
1287         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
1288         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
1289         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
1290         Moved ...
1291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
1292         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
1293         Moved ...
1294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
1295         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
1296         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
1297         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
1298         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
1299         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
1300         ...
1301         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
1302         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
1303         Moved ...
1304         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
1305         here.
1306         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
1307         ...
1308         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
1309         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
1310         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
1311
1312         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
1313         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
1314         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
1315         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
1316
1317         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
1318         merge into ...
1319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
1320         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
1321         ...
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
1323         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
1324         ...
1325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
1326         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
1327         Moved ...
1328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
1329         here.
1330         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
1331         Moved ...
1332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
1333         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
1334         Moved ...
1335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
1336
1337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
1338         conditional [RESET_PID].
1339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1340         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
1341         removed.
1342         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
1343         removed.
1344
1345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
1346         <tcb-offsets.h>.
1347         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1348         (__libc_vfork): New strong alias.
1349         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
1350         removed.
1351         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
1352         Removed.
1353
1354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
1355         <tcb-offsets.h>.
1356         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
1357         (__libc_vfork): New strong alias.
1358         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
1359         removed.
1360         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
1361         removed.
1362
1363 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
1364
1365         * malloc/malloc.c (mi_arena): New function.
1366         (malloc_info): Remove nested function mi_arena. Call non-nosted
1367         function mi_arena.
1368
1369 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1370
1371         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
1372         by insrwi.
1373         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1374         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
1375         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
1376         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
1377         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
1378         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
1379         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
1380
1381 2014-05-26  Andreas Schwab  <schwab@suse.de>
1382
1383         [BZ #16984]
1384         * locale/programs/repertoire.c (repertoire_read): Add slash
1385         between I18NPATH element and file name.
1386         * locale/programs/locfile.c (locfile_read): Likewise.
1387
1388 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1389
1390         * nptl/pthread_mutexattr_settype.c
1391         (__pthread_mutexattr_settype):
1392         Disable lock elision for PTHREAD_MUTEX_NORMAL.
1393
1394 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1395
1396         * nptl/tst-mutex5 (do_test):
1397         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
1398
1399 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1400
1401         * benchtests/README: Document 'init' directive.
1402         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
1403         BENCH_INIT.
1404         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
1405         (parse_file): Recognize 'init' directive.
1406
1407 2014-05-26  Kyle McMartin  <kyle@redhat.com>
1408
1409         [BZ #16796]
1410         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
1411         alignment of struct pthread.
1412
1413 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1414
1415         [BZ #16878]
1416         * nscd/netgroupcache.c (addgetnetgrentX): Look for
1417         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1418         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
1419         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1420
1421 2014-05-25  Richard Henderson  <rth@twiddle.net>
1422
1423         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1424         (SINGLE_THREAD_P_PIC): Remove.
1425         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
1426         (SINGLE_THREAD_P_PIC): Remove.
1427
1428         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
1429         branch to syscall error ...
1430         (PSEUDO): ... here.
1431         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
1432         from __local_syscall_error to .Lsyscall_error.
1433         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
1434         (SYSCALL_ERROR): Update label name.
1435
1436         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1437         Do not use DOARGS/UNDOARGS.
1438         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
1439         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
1440         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
1441         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
1442         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
1443
1444         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
1445         block comment.
1446
1447         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
1448         define if !NOT_IN_libc.
1449         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
1450         define with non-default symbol versions.
1451
1452 2014-05-23  Richard Henderson  <rth@twiddle.net>
1453
1454         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
1455         (vfork, __vfork): Define via compat_symbol.
1456
1457         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
1458         [!HAVE_IFUNC] (vfork_compat): Remove.
1459         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
1460
1461 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1462
1463         [BZ #16978]
1464         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
1465         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
1466         variable.
1467
1468 2014-05-23  Richard Henderson  <rth@twiddle.net>
1469
1470         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
1471         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
1472         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
1473         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
1474
1475         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
1476         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
1477         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
1478         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
1479         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
1480         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
1481         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
1482         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
1483         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
1484         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
1485         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
1486         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
1487         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
1488         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
1489         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
1490         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
1491         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
1492         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
1493         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
1494         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
1495         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
1496         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
1497         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
1498         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
1499         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
1500         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
1501         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
1502         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
1503         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
1504         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
1505         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
1506         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
1507         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
1508         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
1509         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
1510         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
1511         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
1512         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
1513         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
1514         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
1515         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
1516         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
1517         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
1518         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
1519         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
1520         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
1521         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
1522         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
1523         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
1524         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
1525         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
1526         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
1527         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
1528         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
1529         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
1530         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
1531
1532         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
1533         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
1534         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
1535         before exiting on error.
1536         (__libc_vfork): New strong alias.
1537         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
1538         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
1539
1540         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
1541         that was previously under [RESET_PID].
1542         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
1543
1544         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
1545
1546 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1547
1548         [BZ #16977]
1549         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
1550         value when x - 1 is zero.
1551         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
1552         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1553         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
1554         0.0L for an argument of 1.0L.
1555         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
1556         Likewise.
1557         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
1558         value when x - 1 is zero.
1559         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
1560         * sysdeps/i386/fpu/libm-test-ulps: Update.
1561         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1562
1563 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
1564
1565         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
1566         alphasort and versionsort.
1567
1568 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1569
1570         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
1571         macro.
1572         [copysignf]: Likewise.
1573
1574 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1575
1576         * crypt/md5-crypt.c: Fix formatting.
1577
1578 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1579
1580         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
1581         (b64_from_24bit): New function.
1582
1583 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1584
1585         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
1586         libc_hidden_builtin_def to ifunc.
1587         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
1588         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
1589
1590 2014-05-21  Roland McGrath  <roland@hack.frob.com>
1591
1592         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
1593         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
1594
1595 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
1596
1597         * nscd/Depend (linuxthreads): Remove.
1598         (nptl): Add.
1599         * resolv/Depend (linuxthreads): Remove.
1600         * rt/Depend (linuxthreads): Remove.
1601
1602         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
1603         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
1604         $(common-objpfx)elf/.
1605         (link-libc-before-gnulib): Likewise.
1606         (elfobjdir): Remove variable.
1607         * Makefile (install): Use $(elf-objpfx) instead of
1608         $(common-objpfx)elf/.
1609         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
1610         $(elfobjdir)/.
1611         (link-libc-deps): Likewise.
1612         ($(common-objpfx)libc.so): Likewise.
1613         ($(common-objpfx)linkobj/libc.so): Likewise.
1614         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
1615         instead of $(common-objpfx)elf/.
1616         (symbolic-link-list): Likewise.
1617         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1618         [$(cross-compiling) = no]: Likewise.
1619         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
1620         $(elfobjdir)/.
1621         (static-gnulib-arch): Likewise.
1622         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1623         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
1624         $(common-objpfx)elf/.
1625
1626 2014-05-21  Richard Henderson  <rth@redhat.com>
1627
1628         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1629         (SINGLE_THREAD_P): Use the correct width load.  Fold
1630         into the ldr offset.
1631
1632         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
1633         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
1634
1635 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
1636
1637         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
1638         (libgcc_s_resume): Use __attribute_used__.
1639         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
1640         Likewise.
1641
1642 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1643
1644         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
1645         optimization when used with float constants.
1646
1647         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1648
1649 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
1650
1651         [BZ #16915]
1652         * locale/nl_langinfo_l.c: Make direct reference to every
1653         _nl_current_CATEGORY symbol.
1654         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
1655         (tests-static): Add tst-langinfo-static.
1656         (tests-special): Add tst-langinfo-static.out.
1657         ($(objpfx)tst-langinfo.out): Redirect output.
1658         ($(objpfx)tst-langinfo-static.out): New.
1659         * localedata/tst-langinfo.sh: Send output to stdout.
1660         * localedata/tst-langinfo-static.c: New file.
1661
1662         [BZ #16965]
1663         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
1664         when the shift amount is modulo the limb size.
1665
1666 2014-05-20  Richard Henderson  <rth@redhat.com>
1667
1668         [BZ #16967]
1669         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
1670         Change type of sa_flags from unsigned int to int.
1671
1672         [BZ #16966]
1673         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
1674
1675         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
1676
1677 2014-05-20  Will Newton  <will.newton@linaro.org>
1678
1679         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1680         Test the return value of the system call in the nocancel case.
1681
1682 2014-05-20  Will Newton  <will.newton@linaro.org>
1683             Yvan Roux  <yvan.roux@linaro.org>
1684
1685         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
1686         #include of asm/ptrace.h.
1687         (PTRACE_GET_THREAD_AREA): Remove #undef.
1688         (PTRACE_GETHBPREGS): Likewise.
1689         (PTRACE_SETHBPREGS): Likewise.
1690         (struct user_regs_struct): New structure.
1691         (struct user_fpsimd_struct): New structure.
1692         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
1693         #include of asm/ptrace.h and second #include of sys/user.h.
1694         (PTRACE_GET_THREAD_AREA): Remove #undef.
1695         (PTRACE_GETHBPREGS): Likewise.
1696         (PTRACE_SETHBPREGS): Likewise.
1697         (ELF_NGREG): Use new struct user_regs_struct.
1698         (elf_fpregset_t): Use new struct user_fpsimd_struct.
1699
1700 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1701
1702         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
1703         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
1704
1705 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
1706
1707         [BZ #16958]
1708         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
1709         membar to avoid block loads/stores to overlap previous stores.
1710
1711 2014-05-17  Richard Henderson  <rth@redhat.com>
1712
1713         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
1714         Create the __##syscall_name##_nocancel entry point.
1715         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
1716         Remove; let the sysdep-cancel.h code create it.
1717
1718 2014-05-17  David S. Miller  <davem@davemloft.net>
1719
1720         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
1721         Protect with __USE_GNU.
1722         (TIOCSET_TEMPT): Likewise.
1723         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
1724         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
1725         these are already provided in bits/ioctl-types.h
1726
1727 2014-05-16  Roland McGrath  <roland@hack.frob.com>
1728
1729         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
1730         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
1731
1732         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
1733         Use wait4 regardless of [__NR_waitpid].
1734
1735 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
1736
1737         PR libgcc/60166
1738         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
1739         (_FP_NANSIGN_Q): Set the quiet bit.
1740
1741 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
1742
1743         * benchtests/Makefile
1744         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
1745         not $(common-objpfx)math/libm.so.
1746         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
1747         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
1748         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
1749         $(common-objpfx)dlfcn/libdl.so.
1750         ($(objpfx)tst-audit8): Depend on $(libm), not
1751         $(common-objpfx)math/libm.so.
1752         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
1753         not $(common-objpfx)dlfcn/libdl.so.
1754         * math/Makefile
1755         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1756         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
1757         [$(build-shared) = yes].
1758         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
1759         $(common-objpfx)nptl/libpthread.so.
1760         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
1761         $(common-objpfx)math/libm.so$(libm.so-version) or
1762         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
1763         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
1764         $(common-objpfx)dlfcn/libdl.so.
1765         * setjmp/Makefile (link-libm): Remove variable.
1766         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
1767         * stdio-common/Makefile (link-libm): Remove variable.
1768         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
1769         * stdlib/Makefile (link-libm): Remove variable.
1770         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
1771         ($(objpfx)tst-strtod-round): Likewise.
1772         ($(objpfx)tst-tininess): Likewise.
1773         ($(objpfx)tst-strtod-underflow): Likewise.
1774         ($(objpfx)tst-strtod6): Likewise.
1775         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
1776         $(libdl), not $(common-objpfx)nptl/libpthread.so and
1777         $(common-objpfx)dlfcn/libdl.so.
1778
1779 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1780
1781         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
1782         BSD terminal modes definitions.
1783
1784 2014-05-16  Roland McGrath  <roland@hack.frob.com>
1785
1786         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
1787         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
1788
1789         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
1790         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
1791         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
1792         Don't do #include_next.
1793         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
1794         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
1795         Don't do #include_next.
1796         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
1797         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
1798         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
1799         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
1800
1801 2014-05-16  Allan McRae  <allan@archlinux.org>
1802
1803         * po/sv.po: Update Swedish translation from translation project.
1804
1805         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
1806         in sed expression.
1807
1808 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
1809
1810         [BZ #16917]
1811         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
1812         errno if the TIOCGPTN ioctl fails with an error different than
1813         EINVAL.
1814         * login/tst-ptsname.c: New file.
1815         * login/Makefile (tests): Add tst-ptsname.
1816
1817         [BZ #16943]
1818         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
1819         and prlimit64.
1820
1821 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1822
1823         [BZ #16849]
1824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
1825         herrno to return EAI_AGAIN.
1826
1827 2014-05-14  Roland McGrath  <roland@hack.frob.com>
1828
1829         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
1830         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
1831         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
1832         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
1833         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
1834         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
1835         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
1836         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
1837         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
1838         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
1839         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
1840         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
1841         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
1842         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
1843         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
1844         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
1845         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
1846         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
1847         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
1848         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
1849         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
1850         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
1851         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
1852         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
1853         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
1854         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
1855         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
1856         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
1857         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
1858         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
1859         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
1860         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
1861         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
1862         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
1863         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1864         Moved ...
1865         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
1866         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
1867         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
1868         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
1869         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
1870         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
1871         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
1872         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
1873         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
1874         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
1875         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
1876         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
1877         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
1878         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
1879         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
1880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
1881         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
1882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
1883         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
1884         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
1885         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
1886         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
1887         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
1888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
1889         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
1890         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
1891         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
1892         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1893         Moved ...
1894         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
1895         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
1896         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
1897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
1898         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
1899         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
1900         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
1901         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
1902         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
1903         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
1904         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
1905         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
1906         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
1907         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
1908         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
1909         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
1910         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
1911         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
1912         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
1913         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1914         Moved ...
1915         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
1916         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
1917         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
1918
1919         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
1920         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
1921         (libpthread-sysdep_routines): Add elision-related stuff here instead.
1922         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
1923         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
1924         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
1925         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
1926         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
1927         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
1928         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
1929         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
1930         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
1931         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
1932         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
1933         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
1934         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
1935         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
1936         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
1937         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
1938         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
1939         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
1940         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
1941         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
1942         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
1943         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
1944         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
1945         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
1946         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
1947         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
1948         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
1949         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
1950
1951         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
1952         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
1953
1954         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
1955         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
1956         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
1957         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
1958         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
1959         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
1960         Moved ...
1961         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
1962         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
1963         Moved ...
1964         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
1965         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
1966         Moved ...
1967         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
1968         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
1969         Moved ...
1970         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
1971         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
1972         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
1973         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
1974         Moved ...
1975         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
1976         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
1977         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
1978         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
1979         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
1980         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
1981         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
1982         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
1983         Moved ...
1984         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
1985         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1986         Moved ...
1987         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
1988         ... here.
1989         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
1990         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
1991         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
1992         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
1993         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1994         Moved ...
1995         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
1996         ... here.
1997         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
1998         Moved ...
1999         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2000         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2001         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2002         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2003         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2004         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2005         Moved ...
2006         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2007         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2008         Moved ...
2009         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2010         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2011         Moved ...
2012         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2013         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2014         Moved ...
2015         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2016         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2017         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2018         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2019         Moved ...
2020         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2021         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2022         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2023         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2024         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2025         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2026         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2027         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2028         Moved ...
2029         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2030         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2031         Moved ...
2032         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2033         ... here.
2034         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2035         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2036         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2037         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2038         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2039         Moved ...
2040         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2041         ... here.
2042         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2043         Moved ...
2044         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2045         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2046         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2047         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2048         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2049         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2050         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2051         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2052         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2053         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2054         Moved ...
2055         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2056         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2057         Moved ...
2058         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2059         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2060         Moved ...
2061         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2062         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2063         Moved ...
2064         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2065         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2066         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2067         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2068         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2069         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2070         Moved ...
2071         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2072         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2073         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2074         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2075         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2076         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2077         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2078         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2079         Moved ...
2080         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2081         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2082         Moved ...
2083         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2084         ... here.
2085         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2086         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2087         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2088         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2089         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2090         Moved ...
2091         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2092         ... here.
2093         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
2094         Moved ...
2095         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
2096         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
2097         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
2098         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
2099         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
2100         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
2101         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
2102         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
2103         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
2104         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
2105         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
2106
2107         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
2108         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
2109
2110         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
2111         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
2112
2113         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
2114         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
2115         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
2116         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
2117         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
2118         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
2119         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
2120         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
2121         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
2122         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
2123         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
2124         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
2125         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
2126         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
2127         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
2128         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
2129         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
2130         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
2131         Moved ...
2132         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
2133         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
2134         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
2135         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
2136         Moved ...
2137         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
2138         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
2139         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
2140         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
2141         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
2142         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
2143         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
2144         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2145         Moved ...
2146         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
2147         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2148         Moved ...
2149         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
2150         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
2151         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
2152         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
2153         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
2154         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
2155         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
2156         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
2157         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
2158         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
2159         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
2160         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
2161         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
2162         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
2163         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
2164         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
2165         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
2166
2167         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
2168         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
2169         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
2170         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
2171         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
2172
2173         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
2174         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
2175         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
2176         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
2177         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
2178         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
2179         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
2180         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
2181         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
2182         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
2183
2184         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
2185         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
2186
2187         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
2188         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
2189         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
2190         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
2191         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
2192         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
2193         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
2194         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
2195         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
2196         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
2197         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
2198         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
2199         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
2200         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
2201         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
2202         Update #include.
2203         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
2204         Likewise.
2205         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2206         Likewise.
2207         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2208         Likewise.
2209         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2210         Likewise.
2211         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
2212         Likewise.
2213         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
2214         Likewise.
2215         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
2216         Likewise.
2217         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
2218         Likewise.
2219         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
2220         Likewise.
2221         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
2222         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
2223         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
2224         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
2225         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
2226         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
2227         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
2228         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
2229         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
2230         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
2231         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
2232         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
2233         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
2234         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
2235         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
2236
2237         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
2238         that was previously under [RESET_PID].
2239         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2240         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
2241         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
2242
2243         * sysdeps/i386/nptl/Implies: New file.
2244         * sysdeps/x86_64/nptl/Implies: New file.
2245         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
2246         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
2247         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
2248         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
2249
2250         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
2251         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2252         (__libc_vfork): New strong alias.
2253         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
2254         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
2255
2256         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
2257         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2258         (__libc_vfork): New strong alias.
2259         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
2260         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
2261
2262         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
2263         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2264         (__libc_vfork): New strong alias.
2265         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
2266         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
2267         * nptl/pt-vfork.c: New file.
2268         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
2269         (libpthread: GLIBC_2.20): New version set (empty).
2270
2271 2014-05-14  Will Newton  <will.newton@linaro.org>
2272
2273         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
2274         rather than #if.
2275
2276 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2277
2278         [BZ #16564]
2279         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
2280         arguments with exponent 65 or above.
2281         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
2282         arguments 0x1p113L or above.
2283         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
2284         to arguments 0x1p107L or above.
2285         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
2286         positive arguments with exponent 65 or above.
2287         * math/auto-libm-test-in: Add more tests of log1p.
2288         * math/auto-libm-test-out: Regenerated.
2289
2290         [BZ #16928]
2291         * math/s_cacos.c (__cacos): Ensure zero real part of result from
2292         non-finite arguments is +0.
2293         * math/s_cacosf.c (__cacosf): Likewise.
2294         * math/s_cacosl.c (__cacosl): Likewise.
2295         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
2296         * sysdeps/i386/fpu/libm-test-ulps: Update.
2297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2298
2299         [BZ #16927]
2300         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
2301         value.
2302         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
2303         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
2304         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
2305         for explicit high bit of mantissa when testing for argument equal
2306         to 1.
2307         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
2308         * sysdeps/i386/fpu/libm-test-ulps: Update.
2309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2310
2311         [BZ #16516]
2312         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
2313         (__erf): Scale by 16 instead of 8 in potentially underflowing
2314         case.  Ensure exception if result actually underflows.
2315         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
2316         (__erff): Scale by 16 instead of 8 in potentially underflowing
2317         case.  Ensure exception if result actually underflows.
2318         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
2319         (efx8): Remove variable.
2320         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2321         case.  Ensure exception if result actually underflows.
2322         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
2323         (efx8): Remove variable.
2324         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2325         case.  Ensure exception if result actually underflows.
2326         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
2327         (efx8): Remove variable.
2328         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2329         case.  Ensure exception if result actually underflows.
2330         * math/auto-libm-test-in: Add more tests of erf.
2331         * math/auto-libm-test-out: Regenerated.
2332
2333 2014-05-14  Andreas Schwab  <schwab@suse.de>
2334
2335         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
2336         Remove code conditionalized on USE___THREAD.
2337
2338         * config.h.in (HAVE_PT_CHOWN): Define as 0.
2339         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
2340         not definedness.
2341
2342 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2343
2344         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
2345         Define unconditionally.
2346         (__ASSUME_O_CLOEXEC): Likewise.
2347         (__ASSUME_SOCK_CLOEXEC): Likewise.
2348         (__ASSUME_IN_NONBLOCK): Likewise.
2349         (__ASSUME_PIPE2): Likewise.
2350         (__ASSUME_EVENTFD2): Likewise.
2351         (__ASSUME_SIGNALFD4): Likewise.
2352         (__ASSUME_DUP3): Likewise.
2353         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
2354         (__ASSUME_DUP3): Do not define.
2355         (__ASSUME_EVENTFD2): Likewise.
2356         (__ASSUME_IN_NONBLOCK): Likewise.
2357         (__ASSUME_O_CLOEXEC): Likewise.
2358         (__ASSUME_PIPE2): Likewise.
2359         (__ASSUME_SIGNALFD4): Likewise.
2360         (__ASSUME_SOCK_CLOEXEC): Likewise.
2361         (__ASSUME_UTIMES): Undefine.
2362         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2363         (__ASSUME_UTIMES): Do not define.
2364         (__ASSUME_O_CLOEXEC): Likewise.
2365         (__ASSUME_SOCK_CLOEXEC): Likewise.
2366         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
2367         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
2368         0x020621].
2369         (__ASSUME_PIPE2): Likewise.
2370         (__ASSUME_EVENTFD2): Likewise.
2371         (__ASSUME_SIGNALFD4): Likewise.
2372         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
2373         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
2374         Do not define.
2375         (__ASSUME_EVENTFD2): Likewise.
2376         (__ASSUME_SIGNALFD4): Likewise.
2377         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2378         (__ASSUME_32BITUIDS): Likewise.
2379         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2380         (__ASSUME_IPC64): Likewise.
2381         (__ASSUME_ST_INO_64_BIT): Likewise.
2382         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
2383         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
2384         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2385         (__ASSUME_UTIMES): Do not define.
2386         (__ASSUME_PSELECT): Likewise.
2387         (__ASSUME_PPOLL): Likewise.
2388         (__ASSUME_O_CLOEXEC): Likewise.
2389         (__ASSUME_SOCK_CLOEXEC): Likewise.
2390         (__ASSUME_IN_NONBLOCK): Likewise.
2391         (__ASSUME_PIPE2): Likewise.
2392         (__ASSUME_EVENTFD2): Likewise.
2393         (__ASSUME_SIGNALFD4): Likewise.
2394         (__ASSUME_DUP3): Likewise.
2395         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2396         (__ASSUME_UTIMES): Likewise.
2397         (__ASSUME_O_CLOEXEC): Likewise.
2398         (__ASSUME_SOCK_CLOEXEC): Likewise.
2399         (__ASSUME_IN_NONBLOCK): Likewise.
2400         (__ASSUME_PIPE2): Likewise.
2401         (__ASSUME_EVENTFD2): Likewise.
2402         (__ASSUME_SIGNALFD4): Likewise.
2403         (__ASSUME_DUP3): Likewise.
2404         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2405         (__ASSUME_UTIMES): Likewise.
2406         (__ASSUME_O_CLOEXEC): Likewise.
2407         (__ASSUME_SOCK_CLOEXEC): Likewise.
2408         (__ASSUME_IN_NONBLOCK): Likewise.
2409         (__ASSUME_PIPE2): Likewise.
2410         (__ASSUME_EVENTFD2): Likewise.
2411         (__ASSUME_SIGNALFD4): Likewise.
2412         (__ASSUME_DUP3): Likewise.
2413         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
2414         Likewise.
2415         (__ASSUME_UTIMES): Likewise.
2416         (__ASSUME_EVENTFD2): Likewise.
2417         (__ASSUME_SIGNALFD4): Likewise.
2418         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2419         (__ASSUME_O_CLOEXEC): Likewise.
2420         (__ASSUME_SOCK_CLOEXEC): Likewise.
2421         (__ASSUME_IN_NONBLOCK): Likewise.
2422         (__ASSUME_PIPE2): Likewise.
2423         (__ASSUME_EVENTFD2): Likewise.
2424         (__ASSUME_SIGNALFD4): Likewise.
2425         (__ASSUME_DUP3): Likewise.
2426         (__ASSUME_UTIMES): Undefine.
2427
2428         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
2429         feclearexcept.  Remove symbol versioning code.
2430         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
2431         symbol versioning code.
2432         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
2433         symbol versioning code.
2434         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
2435         feupdateenv.  Remove symbol versioning code.
2436         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
2437         fegetexceptflag.  Remove symbol versioning code.
2438         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
2439         fesetexceptflag.  Remove symbol versioning code.
2440         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
2441         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
2442         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
2443         (__posix_fadvise64_l32): Remove prototype.
2444         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
2445         code.
2446
2447 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2448
2449         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
2450         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
2451         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
2452         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
2453
2454 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
2455
2456         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
2457         current working directory
2458
2459 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2460
2461         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
2462         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
2463         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
2464         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
2465         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
2466         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
2467         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
2468         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
2469         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
2470         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
2471         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
2472         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
2473         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
2474         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
2475         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
2476         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
2477         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
2478         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
2479         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
2480         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
2481         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
2482         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
2483         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
2484         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
2485         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
2486         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
2487         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
2488         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
2489         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
2490         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
2491         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
2492         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
2493         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
2494         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
2495         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
2496         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
2497         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
2498         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
2499         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
2500         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
2501         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
2502         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
2503
2504         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
2505         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
2506
2507         * sysdeps/unix/sysv/linux/arm/Makefile
2508         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
2509         Add rt-aeabi_unwind_cpp_pr1.
2510         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
2511         Add nptl-aeabi_unwind_cpp_pr1.
2512         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
2513         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
2514         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
2515         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
2516         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
2517         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
2518
2519         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
2520         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
2521         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
2522         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
2523
2524         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
2525         Deconditionalize the code that was previously under [RESET_PID].
2526         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
2527
2528         * sysdeps/generic/exit-thread.h: New file.
2529         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
2530         * include/unistd.h (__exit_thread): Remove declaration.
2531         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
2532         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
2533         * csu/libc-start.c: Include <exit-thread.h>.
2534         (LIBC_START_MAIN): Pass no argument to __exit_thread.
2535         * nptl/pthread_create.c: Include <exit-thread.h>.
2536         (start_thread): Call __exit_thread in place of __exit_thread_inline.
2537         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
2538         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
2539         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
2540         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
2541         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
2542         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
2543         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
2544         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
2545         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
2546         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
2547         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
2548         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
2549         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
2550         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
2551         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
2552         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
2553
2554 2014-05-13  Andreas Schwab  <schwab@suse.de>
2555
2556         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
2557
2558 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
2559
2560         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
2561         (__ASSUME_UTIMES): Do not condition on kernel version.
2562         (__ASSUME_PSELECT): Define unconditionally.
2563         (__ASSUME_PPOLL): Likewise.
2564         (__ASSUME_ATFCTS): Likewise.
2565         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
2566         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
2567         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
2568         (__ASSUME_UTIMENSAT): Define unconditionally.
2569         (__ASSUME_PRIVATE_FUTEX): Likewise.
2570         (__ASSUME_FALLOCATE): Likewise.
2571         (__ASSUME_O_CLOEXEC): Likewise.
2572         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
2573         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
2574         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
2575         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
2576         (__ASSUME_IN_NONBLOCK): Likewise.
2577         (__ASSUME_PIPE2): Likewise.
2578         (__ASSUME_EVENTFD2): Likewise.
2579         (__ASSUME_SIGNALFD4): Likewise.
2580         (__ASSUME_DUP3): Likewise.
2581         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
2582         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
2583         (__ASSUME_AT_RANDOM): Likewise.
2584         (__ASSUME_PREADV): Likewise.
2585         (__ASSUME_PWRITEV): Likewise.
2586         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
2587         (__ASSUME_F_GETOWN_EX): Define unconditionally.
2588         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
2589         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2590         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
2591         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2592         (__ASSUME_O_CLOEXEC): Define unconditionally.
2593         (__ASSUME_PSELECT): Do not undefine conditionally.
2594         (__ASSUME_PPOLL): Likewise.
2595         (__ASSUME_ATFCTS): Likewise.
2596         (__ASSUME_SET_ROBUST_LIST): Likewise.
2597         (__ASSUME_UTIMENSAT): Likewise.
2598         (__ASSUME_FDATASYNC): Define unconditionally.
2599         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2600         (__ASSUME_SIGFRAME_V2): Likewise.
2601         )__ASSUME_EVENTFD2): Likewise.
2602         (__ASSUME_SIGNALFD4): Likewise.
2603         (__ASSUME_PSELECT): Do not undefine conditionally.
2604         (__ASSUME_PPOLL): Likewise.
2605         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2606         (__ASSUME_PSELECT): Define unconditionally.
2607         (__ASSUME_PPOLL): Likewise.
2608         (__ASSUME_O_CLOEXEC): Likewise.
2609         (__ASSUME_SOCK_CLOEXEC): Likewise.
2610         (__ASSUME_IN_NONBLOCK): Likewise.
2611         (__ASSUME_PIPE2): Likewise.
2612         (__ASSUME_EVENTFD2): Likewise.
2613         (__ASSUME_SIGNALFD4): Likewise.
2614         (__ASSUME_DUP3): Likewise.
2615         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2616         (__ASSUME_O_CLOEXEC): Likewise.
2617         (__ASSUME_SOCK_CLOEXEC): Likewise.
2618         (__ASSUME_IN_NONBLOCK): Likewise.
2619         (__ASSUME_PIPE2): Likewise.
2620         (__ASSUME_EVENTFD2): Likewise.
2621         (__ASSUME_SIGNALFD4): Likewise.
2622         (__ASSUME_DUP3): Likewise.
2623         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2624         (__ASSUME_EVENTFD2): Likewise.
2625         (__ASSUME_SIGNALFD4): Likewise.
2626         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
2627
2628 2014-05-12  Andreas Schwab  <schwab@suse.de>
2629
2630         [BZ #16932]
2631         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
2632         (_nss_nis_gethostbyname4_r): Return error if item length is larger
2633         than maximum RPC packet size.
2634         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
2635         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
2636         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
2637         (_nss_nis_getservbyport_r): Likewise.
2638
2639 2014-05-12  Will Newton  <will.newton@linaro.org>
2640
2641         * malloc/Makefile (tests): Add tst-mallopt.
2642         * malloc/tst-mallopt.c: New file.
2643
2644 2014-05-09  Roland McGrath  <roland@hack.frob.com>
2645
2646         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
2647         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
2648
2649 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2650
2651         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
2652         (tst-tlsmod6.so): Likewise.
2653
2654 2014-05-09  Roland McGrath  <roland@hack.frob.com>
2655
2656         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
2657
2658 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
2659
2660         [BZ #16064]
2661         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
2662         and <dl-procinfo.h>.
2663         (__fegetenv): Save SSE state in envp->__eip if supported.
2664         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
2665         envp->__eip if supported.
2666         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
2667         and <dl-procinfo.h>.
2668         (__fesetenv): Always set __eip, __cs_selector, __opcode,
2669         __data_offset and __data_selector in environment to 0.  Set SSE
2670         state if supported.
2671         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
2672         test-fenv-sse.
2673         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
2674         -mfpmath=sse.
2675         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
2676
2677 2014-05-09  Will Newton  <will.newton@linaro.org>
2678
2679         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
2680         and libc_relro_required for ARM.
2681         * sysdeps/arm/preconfigure: Regenerate.
2682
2683 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2684             Stefan Liebler  <stli@linux.vnet.ibm.com>
2685
2686         * config.make.in (enable-lock-elision): New Makefile variable.
2687         * configure.ac: Likewise.
2688         * configure: Regenerate.
2689         * sysdeps/s390/configure.ac:
2690         Add check for gcc transactions support.
2691         * sysdeps/s390/configure: Regenerate.
2692         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
2693         Build elision files if enabled.
2694         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
2695         Add lock elision support for s390.
2696         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
2697         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
2698         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2699         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
2700         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
2701         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
2702         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
2703         Likewise.
2704         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
2705         Likewise.
2706         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
2707         Likewise.
2708         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
2709         Likewise.
2710         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
2711         (__lll_timedlock_elision, __lll_lock_elision)
2712         (__lll_unlock_elision, __lll_trylock_elision)
2713         (lll_timedlock_elision, lll_lock_elision)
2714         (lll_unlock_elision, lll_trylock_elision): Add.
2715         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2716         (pthread_mutex_t): Add lock elision support for s390.
2717
2718 2014-05-14  Wilco  <wdijkstr@arm.com>
2719
2720         * sysdeps/arm/fclrexcpt.c: Cleanup.
2721         * sysdeps/arm/fedisblxcpt.c: Cleanup.
2722         * sysdeps/arm/feenablxcpt.c: Cleanup.
2723         * sysdeps/arm/fegetenv.c: Cleanup.
2724         * sysdeps/arm/fegetexcept.c: Cleanup.
2725         * sysdeps/arm/fegetround.c: Cleanup.
2726         * sysdeps/arm/feholdexcpt.c: Cleanup.
2727         * sysdeps/arm/fesetenv.c: Cleanup.
2728         * sysdeps/arm/fesetround.c: Cleanup.
2729         * sysdeps/arm/feupdateenv.c: Cleanup.
2730         * sysdeps/arm/fgetexcptflg.c: Cleanup.
2731         * sysdeps/arm/fraiseexcpt.c: Cleanup.
2732         * sysdeps/arm/fsetexcptflg.c: Cleanup.
2733         * sysdeps/arm/ftestexcept.c: Cleanup.
2734         * sysdeps/arm/get-rounding-mode.h: Cleanup.
2735         * sysdeps/arm/setfpucw.c: Cleanup.
2736
2737 2014-05-09  Will Newton  <will.newton@linaro.org>
2738
2739         * sysdeps/arm/armv7/strcmp.S: New file.
2740         * NEWS: Mention addition of ARMv7 optimized strcmp.
2741
2742 2014-05-08  Roland McGrath  <roland@hack.frob.com>
2743
2744         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
2745         look for %.ac rather than %.in.
2746
2747         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
2748         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
2749         * sysdeps/mach/hurd/configure: Regenerated.
2750         * sysdeps/unix/sysv/linux/configure: Regenerated.
2751
2752         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
2753
2754 2014-05-07  Steve Ellcey  <sellcey@mips.com>
2755
2756         [BZ# 16922]
2757         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
2758         (LONG_SUB): Ditto.
2759         (PTR_SUB): Ditto.
2760
2761 2014-05-07  Andreas Schwab  <schwab@suse.de>
2762
2763         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
2764         when skipping over non-matching result from nscd.
2765
2766 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
2767
2768         [BZ #16876]
2769         * nptl/sockperf.c (client): Check socket return value.
2770
2771         [BZ #16877]
2772         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
2773         nscd security class.
2774
2775 2014-05-06  Roland McGrath  <roland@hack.frob.com>
2776
2777         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
2778         * sysdeps/arm/unwind.h: ... here.
2779
2780 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
2781
2782         [BZ# 16916]
2783         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
2784         Define.
2785
2786 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2787
2788         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
2789         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
2790         multiarch strncpy for PPC64.
2791         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
2792         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
2793         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
2794         multiarch optimizations.
2795         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2796         (__libc_ifunc_impl_list): Likewise.
2797         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
2798         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
2799         multiarch stpncpy for PPC64.
2800         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
2801         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
2802
2803 2014-05-06  Andreas Schwab  <schwab@suse.de>
2804
2805         [BZ #16912]
2806         * gmon/mcount.c (_MCOUNT_DECL): Use
2807         atomic_compare_and_exchange_bool_acq instead of
2808         catomic_compare_and_exchange_bool_acq.
2809
2810 2014-05-05  Roland McGrath  <roland@hack.frob.com>
2811
2812         * elf/Makefile (others, install-bin): Remove pldd.
2813         (pldd-modules): Variable removed.
2814         ($(objpfx)pldd): Target removed.
2815         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
2816         (others, install-bin): Append pldd here.
2817         ($(objpfx)pldd): New target.
2818
2819         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
2820         to 0, so the first #if test emitted later doesn't see it undefined.
2821         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
2822         * sysdeps/gnu/errlist.c: Regenerated.
2823
2824 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2825
2826         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2827         [libc_hidden_builtin_def]: Define to empty value.
2828         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
2829         [libc_hidden_builtin_def]: Likewise.
2830         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
2831         [libc_hidden_builtin_def]: Likewise.
2832         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
2833         [libc_hidden_builtin_def]: Likewise.
2834         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
2835         __redirect_memcpy and define ifunc as default hidden symbol.
2836         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
2837         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
2838
2839 2014-05-04  Adam Conrad  <adconrad@0c3.net>
2840
2841         * locale/iso-4217.def: Reintroduce XDR currency.
2842
2843 2014-05-04  Allan McRae  <allan@archlinux.org>
2844
2845         * po/eo.po: Update Esperanto translation from translation project.
2846
2847 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
2848
2849         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
2850         and FEATURE_INDEX_MAX to 1.
2851         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
2852
2853 2014-05-01  Steve Ellcey  <sellcey@mips.com>
2854
2855         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
2856         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
2857         * iconvdata/big5.c (ONE_DIRECTION): Define.
2858         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
2859         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
2860         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
2861         * iconvdata/cp932.c (ONE_DIRECTION): Define.
2862         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
2863         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
2864         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
2865         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
2866         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
2867         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
2868         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
2869         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
2870         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
2871         * iconvdata/gbk.c (ONE_DIRECTION): Define.
2872         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
2873         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
2874         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
2875         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
2876         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
2877         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
2878         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
2879         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
2880         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
2881         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
2882         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
2883         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
2884         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
2885         * iconvdata/iso646.c (ONE_DIRECTION): Define.
2886         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
2887         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
2888         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
2889         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
2890         * iconvdata/johab.c (ONE_DIRECTION): Define.
2891         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
2892         * iconvdata/sjis.c (ONE_DIRECTION): Define.
2893         * iconvdata/t.61.c (ONE_DIRECTION): Define.
2894         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
2895         * iconvdata/tscii.c (ONE_DIRECTION): Define.
2896         * iconvdata/uhc.c (ONE_DIRECTION): Define.
2897         * iconvdata/unicode.c (ONE_DIRECTION): Define.
2898         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
2899         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
2900         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
2901
2902 2014-05-01  Roland McGrath  <roland@hack.frob.com>
2903
2904         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
2905         (_IO_JUMPS_OFFSET): Define to 0.
2906
2907         * nptl/sysdeps/pthread/bits/libc-lock.h
2908         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
2909         (__libc_lock_define_initialized_recursive): Always define using
2910         initializer.  Modern compilers treat uninitialized (implicit zero) and
2911         explicit zero initializers the same (i.e. put the datum in bss).
2912
2913 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2914
2915         * nscd/nscd-client.h: Include <string.h>.
2916
2917 2014-05-01  David S. Miller  <davem@davemloft.net>
2918
2919         [BZ #16885]
2920         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
2921         multiple zero bytes exist at the end of a string.
2922         Reported by Aurelien Jarno <aurelien@aurel32.net>
2923
2924         * string/test-strcmp.c (check): Add explicit test for situations where
2925         there are multiple zero bytes after the first.
2926
2927 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
2928
2929         [BZ #16890]
2930         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
2931         when compiling wprintf.
2932         * stdio-common/tstdiomisc.c (t3): New function.
2933         (main): Call it.
2934
2935 2014-05-01  Steve Ellcey  <sellcey@mips.com>
2936
2937         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
2938         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
2939         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
2940         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
2941
2942 2014-05-01  Steve Ellcey  <sellcey@mips.com>
2943
2944         * stdlib/longlong.h: Updated from GCC.
2945
2946 2014-05-01  Will Newton  <will.newton@linaro.org>
2947             Bernard Ogden  <bernie.ogden@linaro.org>
2948
2949         * NEWS: Update fixed bug list.
2950
2951         [BZ #15119]
2952         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
2953
2954 2014-04-30  David S. Miller  <davem@davemloft.net>
2955
2956         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
2957         (libc_feholdexcept_setround_sparc_ctx): New function.
2958         (libc_fesetenv_sparc_ctx): Likewise.
2959         (libc_feupdateenv_sparc_ctx): Likewise.
2960         (libc_feholdsetround_sparc_ctx): Likewise.
2961         (libc_feholdexcept_setround_ctx): Define.
2962         (libc_feholdexcept_setroundf_ctx): Likewise.
2963         (libc_feholdexcept_setroundl_ctx): Likewise.
2964         (libc_fesetenv_ctx): Likewise.
2965         (libc_fesetenvf_ctx): Likewise.
2966         (libc_fesetenvl_ctx): Likewise.
2967         (libc_feupdateenv_ctx): Likewise.
2968         (libc_feupdateenvf_ctx): Likewise.
2969         (libc_feupdateenvl_ctx): Likewise.
2970         (libc_feresetround_ctx): Likewise.
2971         (libc_feresetroundf_ctx): Likewise.
2972         (libc_feresetroundl_ctx): Likewise.
2973         (libc_feholdsetround_ctx): Likewise.
2974         (libc_feholdsetroundf_ctx): Likewise.
2975         (libc_feholdsetroundl_ctx): Likewise.
2976
2977         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
2978         with __USE_GNU instead of XOPEN cpp guards.
2979
2980         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
2981         0.
2982
2983         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
2984         with XOPEN cpp guards.
2985
2986 2014-04-30  Julian Brown  <julian@codesourcery.com>
2987
2988         [BZ #16888]
2989         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
2990         handling.
2991
2992 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
2993
2994         [BZ #9894]
2995         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
2996         Change to 2.6.32.
2997         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
2998         * sysdeps/unix/sysv/linux/configure: Regenerated.
2999         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3000         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3001         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3002         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3003         * README: Update reference to required Linux kernel version.
3004         * manual/install.texi (Linux): Update reference to required Linux
3005         kernel headers version.
3006         * INSTALL: Regenerated.
3007
3008         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3009         header inclusion.
3010         [POSIX] (limits.h): Likewise.
3011         [POSIX] (math.h): Likewise.
3012         [POSIX] (sys/wait.h): Likewise.
3013         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3014         function.
3015         [POSIX] (stddef.h): Do not allow header inclusion.
3016
3017 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3018
3019         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3020
3021 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3022
3023         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3024         Return immediately after lll_futex_wake.
3025
3026 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3027
3028         [BZ #16791]
3029         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3030         structure.
3031         (datahead_init_pos): Call datahead_init_common early.
3032         (datahead_init_neg): Likewise.
3033
3034         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3035         datahead_init_neg): New functions.
3036         * nscd/aicache.c (addhstaiX): Use them.
3037         * nscd/grpcache.c (cache_addgr): Likewise.
3038         * nscd/hstcache.c (cache_addhst): Likewise.
3039         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3040         * nscd/netgroupcache.c (do_notfound): Likewise.
3041         (addgetnetgrentX): Likewise.
3042         (addinnetgrX): Likewise.
3043         * nscd/pwdcache.c (cache_addpw): Likewise.
3044         * nscd/servicescache.c (cache_addserv): Likewise.
3045
3046 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3047             Atsushi Onoe  <atsushi@onoe.org>
3048
3049         [BZ #14308]
3050         [BZ #12994]
3051         [BZ #13651]
3052         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3053         one response is valid.
3054         * resolv/res_send.c (send_dg): Check for validity of other
3055         response if the current response is a referral.
3056
3057 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3058
3059         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3060
3061 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3062
3063         [BZ #16823]
3064         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3065         Always divide by positive zero when computing -Inf result.
3066         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3067         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3068
3069 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3070
3071         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3072         FPSCR if value do not change.
3073         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3074         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3075         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3076         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3077         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3078         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3079         function.
3080
3081 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3082
3083         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3084         * sysdeps/unix/sysv/linux/hppa: Move directory from
3085         ports/systeps/unix/sysv/linux/hppa.
3086         * README: Update listing for hppa-*-linux-gnu.
3087
3088 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3089
3090         [BZ #16754]
3091         * manual/stdio.texi (Hook functions): Fix types of stream hook
3092         functions.
3093         [BZ #16854]
3094         * socket/sys/socket.h: Fix typo in comment.
3095
3096 2014-04-28  Wilco  <wdijkstr@arm.com>
3097
3098         * sysdeps/arm/fenv_private.h: New file.
3099         * sysdeps/arm/math_private.h: New file.
3100         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
3101
3102 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3103
3104         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
3105         with __int128_t.
3106         (La_x86_64_retval): Likewise.
3107
3108 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
3109
3110         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
3111         fpsr if value didn't change.
3112         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
3113         to fpcr if value didn't change.
3114         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
3115         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
3116         fpsr or fpcr if value didn't change.
3117         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3118         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
3119         fpcr if value didn't change.
3120         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
3121         to fpsr if value didn't change.
3122
3123 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3124
3125         * nptl/tst-sem3.c: Use test-skeleton.c
3126         (main): Rename to do_test.  Use return instead of
3127         exit.
3128         * nptl/tst-sem4.c: Use test-skeleton.c
3129         (main): Rename to do_test.
3130
3131 2014-04-22  David S. Miller  <davem@davemloft.net>
3132
3133         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
3134         (struct sigaction): New struct member __glibc_reserved0, change
3135         type of sa_flags to int.
3136
3137 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
3138
3139         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
3140         (COUNT_LEADING_ZEROS_0): Define for AArch64.
3141
3142 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3143
3144         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
3145         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3146
3147 2014-04-22  Will Newton  <will.newton@linaro.org>
3148             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
3149
3150         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
3151         (__longjmp): Add longjmp and longjmp_target SystemTap
3152         probes.
3153         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
3154         (__sigsetjmp): Add setjmp SystemTap probe.
3155
3156 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
3157
3158         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
3159         match manual order.
3160
3161 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3162
3163         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
3164
3165         * sysdeps/powerpc/fpu/fenv_private.h
3166         (libc_feholdexcept_setroundl_ctx): Define to
3167         libc_feholdexcept_setround_ppc_ctx.
3168         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
3169         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
3170         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
3171         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
3172
3173 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3174
3175         * sysdeps/aarch64/math-tests.h: New file.
3176
3177 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
3178
3179         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
3180         New.
3181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3182         Check and set bit_AVX2_Usable.
3183         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
3184         macro.
3185         (bit_AVX2): Likewise.
3186         (index_AVX2_Usable): Likewise.
3187         (CPUID_AVX2): Likewise.
3188         (HAS_AVX2): Likewise.
3189
3190 2014-04-17  Will Newton  <will.newton@linaro.org>
3191
3192         * manual/setjmp.texi (System V contexts): Add note that
3193         calling setcontext on a context created by a call to a
3194         signal handler is undefined.  Update text to note that
3195         setcontext from a signal handler is possible but not
3196         recommended.
3197
3198         [BZ #16629]
3199         * stdlib/tst-setcontext.c: Include signal.h.
3200         (main): Check that the signal stack before and
3201         after swapcontext is the same.
3202
3203         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
3204         Re-implement to restore registers in user code and avoid
3205         rt_sigreturn system call.
3206
3207 2014-04-17  Wilco  <wdijkstr@arm.com>
3208
3209         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
3210         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
3211         * math/test-fenv.c: Skip exception trap tests on targets which only
3212         support non-stop mode.
3213
3214 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3215             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3216
3217         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
3218         (libc_feholdsetround_aarch64_ctx)
3219         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
3220         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
3221         (libc_feresetround_ctx, libc_feresetroundf_ctx)
3222         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
3223         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
3224         (libc_feresetround_noexl_ctx): Define.
3225
3226 2014-04-16  Richard Henderson  <rth@redhat.com>
3227
3228         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
3229
3230         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
3231         unwind tables.
3232
3233         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
3234         const from the non-libc, non-ldso copy.
3235
3236         * sysdeps/alpha/libm-test-ulps: Regenerate.
3237
3238 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
3239             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3240
3241         * sysdeps/aarch64/fpu/math_private.h: New file.
3242
3243 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3244
3245         * sysdeps/aarch64/libm-test-ulps: Regenerate.
3246
3247 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3248
3249         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
3250         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
3251         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3252         Intel MPX bound registers before _dl_profile_fixup.
3253         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
3254         registers after _dl_profile_fixup.  Save and restore bound
3255         registers bnd0/bnd1 when calling _dl_call_pltexit.
3256         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
3257         (LR_BND_OFFSET): Likewise.
3258         (LRV_BND0_OFFSET): Likewise.
3259         (LRV_BND1_OFFSET): Likewise.
3260
3261 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3262
3263         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
3264         to...
3265         * sysdeps/mach/hurd/i386/tls.h: ... here.
3266         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
3267         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
3268         fields.
3269
3270 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3271
3272         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
3273
3274 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3275
3276         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3277
3278 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3279
3280         [BZ #14770]
3281         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
3282         * sysdeps/s390/configure: Regenerate.
3283
3284         [BZ #16824]
3285         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
3286         Set round-to-nearest internally to reduce error accumulation.
3287
3288 2014-04-16  Alan Modra  <amodra@gmail.com>
3289
3290         [BZ #16740]
3291         [BZ #16619]
3292         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
3293         * math/libm-test.inc (frexp_test_data): Add tests.
3294         * NEWS: Update fixed bug list.
3295
3296 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3297
3298         * benchtests/Makefile: Depend on libraries in build directory.
3299         (bench-math): Separate out math tests.
3300         (bench-pthread): Separate out pthread tests.
3301         (bench): Include math and pthread tests.
3302
3303 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
3304
3305         [BZ #16831]
3306         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
3307         _dl_debug_initialize.
3308
3309         * configure.ac: Remove SELinux header check.
3310         * configure: Regenerate.
3311         * nscd/selinux.c (perms): Array of const char* to permission names.
3312         (nscd_request_avc_has_perm): Call security_deny_unknown to find
3313         default policy. Call string_to_security_class and string_to_av_perm to
3314         translate strings. Enforce default policy and call avs_has_perm with
3315         results of translated strings.
3316
3317 2014-04-13  David S. Miller  <davem@davemloft.net>
3318
3319         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3320
3321 2014-04-12  Allan McRae  <allan@archlinux.org>
3322
3323         [BZ #16838]
3324         * manual/string.texi (Collation Functions): Fix qsort argument
3325         order in example.
3326         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3327
3328 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
3329
3330         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
3331         Make the test a no-op if there are no exceptions defined.
3332
3333 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
3334
3335         * elf/Makefile (tests): make tst-dlopen-aout conditional on
3336         enable-hardcoded-path-in-tests
3337
3338 2014-04-11  Will Newton  <will.newton@linaro.org>
3339
3340         * benchtests/Makefile (extra-objs): Add json-lib.o.
3341         (bench-func): Tidy up JSON output.
3342         * benchtests/bench-skeleton.c: Include json-lib.h.
3343         (main): Use JSON library functions to do output of
3344         benchmark results.
3345         * benchtests/bench-timing-type.c (main): Output the
3346         timing type simply, leaving formatting to the user.
3347         * benchtests/json-lib.c: New file.
3348         * benchtests/json-lib.h: Likewise.
3349
3350 2014-04-11  Torvald Riegel  <triegel@redhat.com>
3351
3352         [BZ #15215]
3353         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
3354         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
3355         memory barriers.  Add comments.
3356         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
3357         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
3358         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
3359         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
3360         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
3361         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
3362
3363 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
3364
3365         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
3366         * sysdeps/s390/s390-64/configure.ac: ... this ...
3367         * sysdeps/s390/configure.ac: ... to here.
3368         * sysdeps/s390/s390-32/configure: Delete file.
3369         * sysdeps/s390/s390-64/configure: Delete file.
3370         * sysdeps/s390/configure: Regenerate.
3371
3372 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
3373
3374         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
3375
3376 2014-04-11  Will Newton  <will.newton@linaro.org>
3377
3378         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
3379         to zero if it is not defined elsewhere.  (mtrim): Test
3380         the value of MALLOC_DEBUG with #if rather than #ifdef.
3381
3382 2014-04-10 Torvald Riegel  <triegel@redhat.com>
3383
3384         * benchtests/pthread_once-inputs: New file.
3385         * benchtests/pthread_once-source.c: New file.
3386         * benchtests/README: Update documentation.
3387
3388 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
3389             H.J. Lu  <hongjiu.lu@intel.com>
3390
3391         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
3392         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
3393         * sysdeps/x86_64/configure: Regenerated.
3394         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
3395         macro.
3396         (REGISTER_SAVE_RAX): Likewise.
3397         (REGISTER_SAVE_RCX): Likewise.
3398         (REGISTER_SAVE_RDX): Likewise.
3399         (REGISTER_SAVE_RSI): Likewise.
3400         (REGISTER_SAVE_RDI): Likewise.
3401         (REGISTER_SAVE_R8): Likewise.
3402         (REGISTER_SAVE_R9): Likewise.
3403         (REGISTER_SAVE_BND0): Likewise.
3404         (REGISTER_SAVE_BND1): Likewise.
3405         (REGISTER_SAVE_BND2): Likewise.
3406         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
3407         bound registers when calling _dl_fixup.
3408
3409 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3410
3411         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
3412         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
3413         of its definition.
3414         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
3415         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
3416         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
3417         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
3418         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
3419         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
3420         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
3421
3422 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
3423
3424         [BZ #15514]
3425         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
3426         pathconf(_PC_NAME_MAX).
3427
3428 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3429
3430         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
3431         Remove macro usage.
3432         (__PTHREAD_SPINS): Move definition to ...
3433         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3434         (__PTHREAD_SPINS): ... here.
3435         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3436         (__PTHREAD_SPIN): Likewise.
3437         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
3438         (__PTHREAD_SPIN): Likewise.
3439         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3440         (__PTHREAD_SPIN): Likewise.
3441         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
3442         (__PTHREAD_SPIN): Likewise.
3443         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
3444         (__PTHREAD_SPIN): Likewise.
3445         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
3446         (__PTHREAD_SPIN): Likewise.
3447         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
3448         (__PTHREAD_SPIN): Likewise.
3449         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
3450         (__PTHREAD_SPIN): Likewise.
3451         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
3452         (__PTHREAD_SPIN): Likewise.
3453         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
3454         (__PTHREAD_SPIN): Likewise.
3455         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
3456         (__PTHREAD_SPIN): Likewise.
3457         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
3458         (__PTHREAD_SPIN): Likewise.
3459
3460         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3461         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
3462         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
3463         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
3464         imply folder.
3465         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
3466         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3467         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
3468         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
3469         correct imply path.
3470         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
3471         strlen symbol for non multi-arch builds.
3472         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
3473         missing hidden_def and weak_alias.
3474
3475 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
3476
3477         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
3478
3479 2014-04-07  Will Newton  <will.newton@linaro.org>
3480
3481         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
3482         and contents.  [!_LIBC] Remove #ifndef and contents.
3483         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
3484         * string/memccpy.c (__memccpy): Use ANSI prototype.
3485         * string/memfrob.c (memfrob): Likewise.
3486         * string/strcoll.c (STRCOLL): Likewise.
3487         * string/strlen.c (strlen): Likewise.
3488         * string/strtok.c (STRTOK): Likewise.
3489         * string/strcat.c: Remove unused #include of memcopy.h.
3490         (strcat): Use ANSI prototype.
3491         * string/strchr.c: Remove unused #include of memcopy.h.
3492         (strchr): Use ANSI prototype.
3493         * string/strcmp.c: Remove unused #include of memcopy.h.
3494         (strcmp): Use ANSI prototype.
3495         * string/strcpy.c: Remove unused #include of memcopy.h.
3496         (strcpy): Use ANSI prototype.
3497
3498 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3499
3500         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
3501         * config.make.in (config-extra-cppflags): Set it from
3502         libc_extra_cppflags.
3503         * configure.ac (libc_extra_cflags): Make it accumulate over
3504         configure fragments.
3505         (libc_extra_cppflags): New flag.
3506         * configure. Regenerate.
3507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3508         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
3509         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
3510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3511
3512         [BZ #16815]
3513         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
3514         result for FE_DOWNWARD rounding mode.
3515         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
3516         Likewise.
3517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3518
3519 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
3520
3521         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
3522         in function argument name.
3523
3524 2014-04-03  David Svoboda  <svoboda@cert.org>
3525
3526         [BZ #5666]
3527         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
3528         explicitly.
3529
3530 2014-04-03  Roland McGrath  <roland@hack.frob.com>
3531
3532         * elf/dl-unmap-segments.h: New file.
3533         * sysdeps/generic/ldsodefs.h
3534         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
3535         * elf/dl-close.c: Include <dl-unmap-segments.h>.
3536         * elf/dl-fptr.c: Likewise.
3537         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
3538         * sysdeps/aarch64/tlsdesc.c: Likewise.
3539         * sysdeps/arm/tlsdesc.c: Likewise.
3540         * sysdeps/i386/tlsdesc.c: Likewise.
3541         * sysdeps/tile/dl-runtime.c: Likewise.
3542         * sysdeps/x86_64/tlsdesc.c: Likewise.
3543         * elf/dl-load.h: New file.
3544         * elf/dl-load.c: Include it.
3545         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
3546         Macros moved to dl-load.h.
3547         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
3548         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
3549         Use _dl_unmap_segments in place of __munmap.
3550         Break out segment-mapping loop into ...
3551         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
3552
3553 2014-04-03  Will Newton  <will.newton@linaro.org>
3554
3555         * elf/dl-lookup.c (do_lookup_x): Remove comment
3556         referring to nested function and move variable
3557         declarations down to before first use.
3558
3559 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
3560
3561         [BZ #16799]
3562         [BZ #16800]
3563         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
3564         with 0 numerator.
3565         * math/s_catanf.c (__catanf): Likewise.
3566         * math/s_catanh.c (__catanh): Likewise.
3567         * math/s_catanhf.c (__catanhf): Likewise.
3568         * math/s_catanhl.c (__catanhl): Likewise.
3569         * math/s_catanl.c (__catanl): Likewise.
3570         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
3571         by positive zero when computing -Inf result.
3572         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
3573         (catanh_test): Likewise.
3574         * sysdeps/i386/fpu/libm-test-ulps: Update.
3575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3576
3577         [BZ #16789]
3578         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
3579         instead of using underflowing value in computing result.
3580         * math/s_clog10.c (__clog10): Likewise.
3581         * math/s_clog10f.c (__clog10f): Likewise.
3582         * math/s_clog10l.c (__clog10l): Likewise.
3583         * math/s_clogf.c (__clogf): Likewise.
3584         * math/s_clogl.c (__clogl): Likewise.
3585         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
3586         (clog10_test): Likewise.
3587         * sysdeps/i386/fpu/libm-test-ulps: Update.
3588         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3589
3590 2014-04-02  Alan Modra  <amodra@gmail.com>
3591
3592         [BZ #16739]
3593         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
3594         output when value is near a power of two.  Use int64_t for lx and
3595         remove casts.  Use decimal rather than hex exponent constants.
3596         Don't use long double multiplication when double will suffice.
3597         * math/libm-test.inc (nextafter_test_data): Add tests.
3598         * NEWS: Add 16739 and 16786 to bug list.
3599
3600         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
3601
3602         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
3603
3604 2014-04-01  Will Newton  <will.newton@linaro.org>
3605
3606         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
3607         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
3608
3609 2014-04-01  Florian Weimer  <fweimer@redhat.com>
3610
3611         [BZ #13347]
3612         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
3613         * nptl/tst-setuid2.c: New file.
3614         * nptl/Makefile (xtests): Add tst-setuid2.
3615
3616 2014-04-01  Alan Modra  <amodra@gmail.com>
3617
3618         [BZ #16786]
3619         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
3620
3621 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
3622
3623         [BZ #6803]
3624         [BZ #6804]
3625         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
3626         set errno as appropriate.
3627         * math/w_scalbf.c (__scalbf): Likewise.
3628         * math/w_scalbl.c (__scalbl): Likewise.
3629         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
3630         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
3631         * math/libm-test.inc (scalb_test_data): Add errno expectations.
3632         Add more NaN tests.
3633
3634         [BZ #16349]
3635         * math/w_atan2.c: Include <errno.h>.
3636         (__atan2): Set errno for result underflowing to zero.
3637         * math/w_atan2f.c: Include <errno.h>.
3638         (__atan2f): Set errno for result underflowing to zero.
3639         * math/w_atan2l.c: Include <errno.h>.
3640         (__atan2l): Set errno for result underflowing to zero.
3641         * math/auto-libm-test-in: Don't allow missing errno for some atan2
3642         tests.
3643         * math/auto-libm-test-out: Regenerated.
3644
3645 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3646
3647         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
3648         Encode instruction correctly in little endian.
3649         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
3650         Likewise.
3651         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
3652         Likewise.
3653         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
3654         Likewise.
3655         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
3656         Likewise.
3657
3658 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
3659
3660         [BZ #9894]
3661         * sysdeps/unix/sysv/linux/kernel-features.h
3662         [__sparc__ && !__arch64__ && !__sparc_v9__]
3663         (__ASSUME_SET_ROBUST_LIST): Do not define.
3664         [__sparc__ && !__arch64__ && !__sparc_v9__]
3665         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3666         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
3667         Likewise.
3668         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3669         (__ASSUME_FUTEX_LOCK_PI): Undefine.
3670         (__ASSUME_REQUEUE_PI): Likewise.
3671         (__ASSUME_SET_ROBUST_LIST): Likewise.
3672         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3673         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
3674         Undefine.
3675         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3676         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
3677         Likewise.
3678         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
3679         Likewise.
3680         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
3681         Likewise.
3682         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3683         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
3684         Undefine.
3685         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
3686         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
3687         Likewise.
3688
3689         [BZ #16648]
3690         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3691         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
3692         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
3693
3694 2014-03-31  Will Newton  <will.newton@linaro.org>
3695
3696         * benchtests/Makefile (bench): Add ffs and ffsll to list
3697         of tests.
3698         * benchtests/ffs-inputs: New file.
3699         * benchtests/ffsll-inputs: Likewise.
3700
3701 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
3702
3703         [BZ #16770]
3704         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
3705         too large before casting to int.
3706         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
3707         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
3708         * math/libm-test.inc (scalb_test_data): Add more tests.
3709
3710 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3711
3712         * benchtests/Makefile (DETAILED_OPT): New make option.
3713         (bench-func): Run benchmark program with -d if DETAILED_OPT is
3714         set.
3715         * benchtests/bench-skeleton.c: Include stdbool.h.
3716         (main): Store and print timings per input.
3717         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
3718         member to each argument value.
3719         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
3720         (_print_arg_data): Initialize per-input timing to 0.
3721
3722         * benchtests/Makefile (timing-type): New binary.
3723         (bench-clean): Also remove bench-timing-type.
3724         (bench): New target for timing-type.
3725         (bench-func): Print output in JSON format.
3726         * benchtests/bench-skeleton.c (main): Print output in JSON
3727         format.
3728         * benchtests/bench-timing-type.c: New file.
3729         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
3730         (TIMING_PRINT_STATS): Remove.
3731         * benchtests/scripts/bench.py (_print_arg_data): Store variant
3732         name separately.
3733
3734         * benchtests/bench-modf.c: Remove.
3735         * benchtests/modf-inputs: New inputs file.
3736
3737 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
3738
3739         [BZ #16362]
3740         * math/s_clog10.c (M_PI_LOG10E): New macro.
3741         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
3742         imaginary parts are 0.
3743         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
3744         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
3745         imaginary parts are 0.
3746         * math/s_clog10l.c (M_PI_LOG10El): New macro.
3747         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
3748         imaginary parts are 0.
3749         * math/libm-test.inc (clog10_test_data): Update expected results
3750         for when real and imaginary parts are 0.
3751
3752 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
3753
3754         * elf/dl-load.c: Finish conversion of __builtin_expect into
3755         __glibc_{un}likely.
3756
3757 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
3758
3759         [BZ #16348]
3760         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
3761         1+x for argument with exponent below -67.
3762         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
3763         Likewise.
3764         * math/auto-libm-test-in: Add more tests of exp.
3765         * math/auto-libm-test-out: Regenerated.
3766
3767 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3768
3769         [BZ #16759]
3770         * inet/getnetgrent_r.c (get_nonempty_val): New function.
3771         (nscd_getnetgrent): Use it.
3772
3773         [BZ #16760]
3774         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
3775         of stpcpy.
3776
3777 2014-03-27  Andi Kleen  <ak@linux.intel.com>
3778
3779         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
3780         (lll_robust_lock, lll_cond_lock, lll_timedlock)
3781         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
3782         (lll_robust_unlock): Remove out of line section. Use cfi
3783         intrinsics.
3784         (LLL_STUB_UNWIND_INFO*): Remove.
3785         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
3786         (lll_robust_lock, lll_cond_lock, lll_timedlock)
3787         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
3788         (lll_robust_unlock): Remove out of line section. Use cfi
3789         intrinsics.
3790         (LLL_STUB_UNWIND_INFO*): Remove.
3791
3792 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3793
3794         [BZ #16758]
3795         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
3796         blank values.
3797
3798 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
3799
3800         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
3801
3802 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
3803
3804         [BZ #16198]
3805         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
3806         fnstenv.
3807         * math/test-fenv-preserve.c: New file.
3808         * math/Makefile (tests): Add test-fenv-preserve.
3809
3810 2014-03-26  Will Newton <will.newton@linaro.org>
3811
3812         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
3813
3814 2014-03-25  Roland McGrath  <roland@hack.frob.com>
3815
3816         * scripts/versionlist.awk: Partition the version sets and emit all
3817         GLIBC_* (sorted) before all others (sorted).
3818
3819 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
3820
3821         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
3822         GLIBC_2.2.5 version.
3823
3824 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3825
3826         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
3827         calls.
3828
3829         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
3830         previous change.
3831
3832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3833
3834 2014-03-25  Andreas Schwab  <schwab@suse.de>
3835
3836         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
3837         label to be used after in6ailist is initialized.
3838
3839 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3840
3841         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3842         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
3843
3844 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
3845
3846         [BZ #16357]
3847         [BZ #16599]
3848         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
3849         min_plus_half.
3850         (fp_formats): Update initializers.
3851         (init_fp_formats): Initialize new field.
3852         (output_for_one_input_case): Allow underflow for results up to
3853         min_plus_half.
3854         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
3855         * math/auto-libm-test-in: Don't mark some underflows from asin and
3856         atanh as spurious.
3857         * math/auto-libm-test-out: Regenerated.
3858         * sysdeps/i386/fpu/libm-test-ulps: Update.
3859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3860
3861 2014-03-25  Andreas Schwab  <schwab@suse.de>
3862
3863         * libio/Makefile (tst-ftell-partial-wide-ENV)
3864         (tst-ftell-active-handler-ENV): Define.
3865
3866 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
3867
3868         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
3869
3870 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
3871
3872         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
3873
3874 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
3875
3876         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
3877         * sysdeps/x86_64/fpu/multiarch/e_exp.c
3878         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
3879
3880 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
3881
3882         [BZ #16634]
3883         * elf/dl-load.c (open_verify): Add mode parameter.
3884         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
3885         (open_path): Change from boolean 'secure' to complete flag 'mode'
3886         (_dl_map_object): Adjust.
3887         * elf/Makefile (tests): Add tst-dlopen-aout.
3888         * elf/tst-dlopen-aout.c: New test.
3889
3890 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
3891
3892         [BZ #16714]
3893         * sysdeps/unix/sysv/linux/s390/bits/stat.h
3894         (struct stat): Rename member pad0 to __glibc_reserved0.
3895
3896         [BZ #16712]
3897         * sysdeps/s390/s390-32/bits/wordsize.h
3898         (__WORDSIZE32_SIZE_ULONG): New define.
3899         * sysdeps/s390/s390-64/bits/wordsize.h
3900         (__WORDSIZE32_SIZE_ULONG): Likewise.
3901         * sysdeps/generic/stdint.h (SIZE_MAX):
3902         Define as UL if __WORDSIZE32_SIZE_ULONG.
3903
3904         [BZ #16713]
3905         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
3906         (__glibc_reserved0): New variable.
3907         (sa_flags): Change type to int.
3908
3909         * posix/Makefile (before-compile): Use += before-compile instead
3910         of a :=.
3911
3912         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3913         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
3914
3915 2014-03-20  Andreas Schwab  <schwab@suse.de>
3916
3917         [BZ #16743]
3918         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
3919         non-matching result from nscd.
3920
3921 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
3922
3923         * scripts/bench.py: Moved to ...
3924         * benchtests/scripts/bench.py: ... here.
3925         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
3926
3927 2014-03-24  Andreas Schwab  <schwab@suse.de>
3928
3929         [BZ #16002]
3930         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
3931         alloca_account and account alloca use for struct in6ailist.
3932
3933 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
3934
3935         [BZ #16284]
3936         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
3937         rounding mode to recompute results that overflow to infinity or
3938         underflow to zero.
3939         * math/auto-libm-test-in: Don't mark tests as expected to fail for
3940         bug 16284.
3941         * math/auto-libm-test-out: Regenerated.
3942         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
3943         (ccosh_test): Likewise.
3944         (csin_test_data): Use plus_oflow.
3945         (csin_test): Use ALL_RM_TEST.
3946         (csinh_test_data): Use plus_oflow.
3947         (csinh_test): Use ALL_RM_TEST.
3948         * sysdeps/i386/fpu/libm-test-ulps: Update.
3949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3950
3951 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
3952
3953         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
3954         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
3955         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
3956
3957         [BZ #16731]
3958         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
3959         when x - 1 is zero.
3960         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
3961         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
3962         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
3963         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
3964         argument is 1.
3965         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
3966         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
3967         zero.
3968         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
3969         * sysdeps/i386/fpu/libm-test-ulps: Update.
3970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3971
3972 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3973
3974         * scripts/bench.pl: Remove file.
3975         * scripts/bench.py: New benchmark script.
3976         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
3977         * benchtests/README: Mention python dependency.
3978         * scripts/pylintrc: New file.
3979         * scripts/pylint: New file.
3980
3981         * bits/mathdef.h: Use #ifdef instead of #if.
3982         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
3983         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
3984         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
3985         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
3986         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
3987         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
3988
3989 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3990             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3991
3992         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
3993         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
3994         and strpbrk-ppc64 objects.
3995         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
3996         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
3997         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
3998         multiarch strpbrk for POWER7.
3999         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4000         multiarch strpbrk for PPC64.
4001         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4002         ifunc selector.
4003         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4004         strpbrk for POWER7.
4005
4006 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4007
4008         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4009         (atan_test): Likewise.
4010         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4011         (atanh_test): Use ALL_RM_TEST.
4012         (atan2_test_data): Likewise.
4013         (cabs_test): Likewise.
4014         (cacosh_test): Likewise.
4015         (carg_test): Likewise.
4016         (casin_test): Likewise.
4017         (casinh_test): Likewise.
4018         (cbrt_test): Likewise.
4019         (csqrt_test): Likewise.
4020         (erf_test): Likewise.
4021         (erfc_test): Likewise.
4022         (pow10_test): Likewise.
4023         (exp2_test): Likewise.
4024         (hypot_test): Likewise.
4025         (j0_test): Likewise.
4026         (j1_test): Likewise.
4027         (lgamma_test): Likewise.
4028         (gamma_test): Likewise.
4029         (sincos_test): Likewise.
4030         (tanh_test): Likewise.
4031         (y0_test): Likewise.
4032         (y1_test): Likewise.
4033         * sysdeps/i386/fpu/libm-test-ulps: Update.
4034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4035
4036 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4037
4038         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4039         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4040         and strcspn-ppc64 objects.
4041         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4042         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4043         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4044         multiarch strcspn for POWER7.
4045         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4046         multiarch strcspn for PPC64.
4047         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4048         ifunc selector.
4049         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4050         strcspn for POWER7.
4051
4052 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4053
4054         * math/gen-libm-test.pl (generate_testfile): Expect only function
4055         name as argument to AUTO_TESTS_* and pass results for all rounding
4056         modes to parse_args.
4057         (parse_auto_input): Separate inputs of automatic tests from
4058         outputs before storing in %auto_tests.
4059         * math/libm-test.inc (acos_test_data): Update call to
4060         AUTO_TESTS_f_f.
4061         (acos_test): Use ALL_RM_TEST.
4062         (acos_tonearest_test_data): Remove.
4063         (acos_test_tonearest): Likewise.
4064         (acos_towardzero_test_data): Likewise.
4065         (acos_test_towardzero): Likewise.
4066         (acos_downward_test_data): Likewise.
4067         (acos_test_downward): Likewise.
4068         (acos_upward_test_data): Likewise.
4069         (acos_test_upward): Likewise.
4070         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4071         (asin_test_data): Likewise.
4072         (asin_test): Use ALL_RM_TEST.
4073         (asin_tonearest_test_data): Remove.
4074         (asin_test_tonearest): Likewise.
4075         (asin_towardzero_test_data): Likewise.
4076         (asin_test_towardzero): Likewise.
4077         (asin_downward_test_data): Likewise.
4078         (asin_test_downward): Likewise.
4079         (asin_upward_test_data): Likewise.
4080         (asin_test_upward): Likewise.
4081         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4082         (atan_test_data): Likewise.
4083         (atanh_test_data): Likewise.
4084         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4085         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4086         (carg_test_data): Likewise.
4087         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4088         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4089         (ccosh_test_data): Likewise.
4090         (cexp_test_data): Likewise.
4091         (clog_test_data): Likewise.
4092         (clog10_test_data): Likewise.
4093         (cos_test_data): Update call to AUTO_TESTS_f_f.
4094         (cos_test): Use ALL_RM_TEST.
4095         (cos_tonearest_test_data): Remove.
4096         (cos_test_tonearest): Likewise.
4097         (cos_towardzero_test_data): Likewise.
4098         (cos_test_towardzero): Likewise.
4099         (cos_downward_test_data): Likewise.
4100         (cos_test_downward): Likewise.
4101         (cos_upward_test_data): Likewise.
4102         (cos_test_upward): Likewise.
4103         (cosh_test_data): Update call to AUTO_TESTS_f_f.
4104         (cosh_test): Use ALL_RM_TEST.
4105         (cosh_tonearest_test_data): Remove.
4106         (cosh_test_tonearest): Likewise.
4107         (cosh_towardzero_test_data): Likewise.
4108         (cosh_test_towardzero): Likewise.
4109         (cosh_downward_test_data): Likewise.
4110         (cosh_test_downward): Likewise.
4111         (cosh_upward_test_data): Likewise.
4112         (cosh_test_upward): Likewise.
4113         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
4114         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
4115         (ctan_test_data): Likewise.
4116         (ctan_test): Use ALL_RM_TEST.
4117         (ctan_tonearest_test_data): Remove.
4118         (ctan_test_tonearest): Likewise.
4119         (ctan_towardzero_test_data): Likewise.
4120         (ctan_test_towardzero): Likewise.
4121         (ctan_downward_test_data): Likewise.
4122         (ctan_test_downward): Likewise.
4123         (ctan_upward_test_data): Likewise.
4124         (ctan_test_upward): Likewise.
4125         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
4126         (ctanh_test): Use ALL_RM_TEST.
4127         (ctanh_tonearest_test_data): Remove.
4128         (ctanh_test_tonearest): Likewise.
4129         (ctanh_towardzero_test_data): Likewise.
4130         (ctanh_test_towardzero): Likewise.
4131         (ctanh_downward_test_data): Likewise.
4132         (ctanh_test_downward): Likewise.
4133         (ctanh_upward_test_data): Likewise.
4134         (ctanh_test_upward): Likewise.
4135         (erf_test_data): Update call to AUTO_TESTS_f_f.
4136         (erfc_test_data): Likewise.
4137         (exp_test_data): Likewise.
4138         (exp_test): Use ALL_RM_TEST.
4139         (exp_tonearest_test_data): Remove.
4140         (exp_test_tonearest): Likewise.
4141         (exp_towardzero_test_data): Likewise.
4142         (exp_test_towardzero): Likewise.
4143         (exp_downward_test_data): Likewise.
4144         (exp_test_downward): Likewise.
4145         (exp_upward_test_data): Likewise.
4146         (exp_test_upward): Likewise.
4147         (exp10_test_data): Update call to AUTO_TESTS_f_f.
4148         (exp10_test): Use ALL_RM_TEST.
4149         (exp10_tonearest_test_data): Remove.
4150         (exp10_test_tonearest): Likewise.
4151         (exp10_towardzero_test_data): Likewise.
4152         (exp10_test_towardzero): Likewise.
4153         (exp10_downward_test_data): Likewise.
4154         (exp10_test_downward): Likewise.
4155         (exp10_upward_test_data): Likewise.
4156         (exp10_test_upward): Likewise.
4157         (exp2_test_data): Update call to AUTO_TESTS_f_f.
4158         (expm1_test_data): Likewise.
4159         (expm1_test): Use ALL_RM_TEST.
4160         (expm1_tonearest_test_data): Remove.
4161         (expm1_test_tonearest): Likewise.
4162         (expm1_towardzero_test_data): Likewise.
4163         (expm1_test_towardzero): Likewise.
4164         (expm1_downward_test_data): Likewise.
4165         (expm1_test_downward): Likewise.
4166         (expm1_upward_test_data): Likewise.
4167         (expm1_test_upward): Likewise.
4168         (fma_test_data): Update call to AUTO_TESTS_fff_f.
4169         (fma_test): Use ALL_RM_TEST.
4170         (fma_towardzero_test_data): Remove.
4171         (fma_test_towardzero): Likewise.
4172         (fma_downward_test_data): Likewise.
4173         (fma_test_downward): Likewise.
4174         (fma_upward_test_data): Likewise.
4175         (fma_test_upward): Likewise.
4176         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
4177         (j0_test_data): Update call to AUTO_TESTS_f_f.
4178         (j1_test_data): Likewise.
4179         (jn_test_data): Update call to AUTO_TESTS_if_f.
4180         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
4181         (log_test_data): Update call to AUTO_TESTS_f_f.
4182         (log10_test_data): Likewise.
4183         (log1p_test_data): Likewise.
4184         (log2_test_data): Likewise.
4185         (pow_test_data): Update call to AUTO_TESTS_ff_f.
4186         (pow_tonearest_test_data): Likewise.
4187         (sin_test_data): Update call to AUTO_TESTS_f_f.
4188         (sin_test): Use ALL_RM_TEST.
4189         (sin_tonearest_test_data): Remove.
4190         (sin_test_tonearest): Likewise.
4191         (sin_towardzero_test_data): Likewise.
4192         (sin_test_towardzero): Likewise.
4193         (sin_downward_test_data): Likewise.
4194         (sin_test_downward): Likewise.
4195         (sin_upward_test_data): Likewise.
4196         (sin_test_upward): Likewise.
4197         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
4198         (sinh_test_data): Update call to AUTO_TESTS_f_f.
4199         (sinh_test): Use ALL_RM_TEST.
4200         (sinh_tonearest_test_data): Remove.
4201         (sinh_test_tonearest): Likewise.
4202         (sinh_towardzero_test_data): Likewise.
4203         (sinh_test_towardzero): Likewise.
4204         (sinh_downward_test_data): Likewise.
4205         (sinh_test_downward): Likewise.
4206         (sinh_upward_test_data): Likewise.
4207         (sinh_test_upward): Likewise.
4208         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
4209         (sqrt_test): Use ALL_RM_TEST.
4210         (sqrt_tonearest_test_data): Remove.
4211         (sqrt_test_tonearest): Likewise.
4212         (sqrt_towardzero_test_data): Likewise.
4213         (sqrt_test_towardzero): Likewise.
4214         (sqrt_downward_test_data): Likewise.
4215         (sqrt_test_downward): Likewise.
4216         (sqrt_upward_test_data): Likewise.
4217         (sqrt_test_upward): Likewise.
4218         (tan_test_data): Update call to AUTO_TESTS_f_f.
4219         (tan_test): Use ALL_RM_TEST.
4220         (tan_tonearest_test_data): Remove.
4221         (tan_test_tonearest): Likewise.
4222         (tan_towardzero_test_data): Likewise.
4223         (tan_test_towardzero): Likewise.
4224         (tan_downward_test_data): Likewise.
4225         (tan_test_downward): Likewise.
4226         (tan_upward_test_data): Likewise.
4227         (tan_test_upward): Likewise.
4228         (tanh_test_data): Update call to AUTO_TESTS_f_f.
4229         (tgamma_test_data): Likewise.
4230         (y0_test_data): Likewise.
4231         (y1_test_data): Likewise.
4232         (yn_test_data): Update call to AUTO_TESTS_if_f.
4233         (main): Do not call removed functions.
4234
4235 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4236
4237         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
4238         (ldexp_test_data): Remove.
4239         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
4240         scalbn_test_data.
4241         (scalb_test): Use ALL_RM_TEST.
4242
4243 2014-03-19  Andreas Schwab  <schwab@suse.de>
4244
4245         * nscd/nscd.service: Also invalidate netgroup cache on reload.
4246
4247 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4248
4249         [BZ #16649]
4250         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4251         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
4252         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
4253         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4254         (__ASSUME_PREADV): Undefine.
4255         (__ASSUME_PWRITEV): Likewise.
4256
4257 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4258
4259         * bits/mman-linux.h: Add comment about non-Linux use.
4260         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
4261         bits/mman-linux.h resting place.
4262
4263         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
4264         * bits/mman-linux.h: ... here.
4265
4266 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4267
4268         * conform/conformtest.pl: Add standard definition when calling C
4269         preprocessor on data files.
4270         (checknamespace): Remove unused variable.
4271
4272 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4273
4274         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
4275         minus_oflow, plus_uflow and minus_uflow in expected results.
4276         * math/libm-test.inc (scalbn_test_data): Add more tests of
4277         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
4278         minus_uflow.
4279         (scalbn_test): Use ALL_RM_TEST.
4280         (scalbln_test_data): Add more tests of negative arguments.  Use
4281         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
4282         (scalbln_test): Use ALL_RM_TEST.
4283
4284 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4285
4286         * scripts/abilist.awk: Ignore symbols marked with .hidden.
4287
4288 2014-03-18  Will Newton  <will.newton@linaro.org>
4289
4290         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
4291         inaccurate comment.
4292
4293 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4294
4295         * Makerules [!subdir] (check-abi): Exit with error status if a
4296         test failed.
4297
4298 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4299
4300         * math/libm-test.inc (nearbyint_test_data): Include all tests used
4301         for rint.  Include results for all rounding modes.
4302         (nearbyint_test): Use ALL_RM_TEST.
4303         (rint_test_data): Include all tests used for nearbyint.
4304
4305 2014-03-17  Will Newton  <will.newton@linaro.org>
4306
4307         * nptl/sysdeps/pthread/pthread.h: Revert previous
4308         change.
4309
4310         * sysdeps/generic/ldsodefs.h: Revert previous
4311         change.
4312
4313         * libio/genops.c: Revert previous change.
4314         * libio/libioP.h: Likewise.
4315         * stdio-common/vfprintf.c: Likewise.
4316
4317         * sysdeps/generic/math_private.h: Revert previous
4318         change.
4319
4320         * sysdeps/generic/math_private.h: Check whether
4321         HAVE_RM_CTX is defined with #ifdef rather
4322         than #if.
4323
4324         * argp/argp-fmtstream.h: Check whether
4325         __STRICT_ANSI__ is defined with #ifdef rather
4326         than #if.
4327         * argp/argp.h: Likewise.
4328
4329         * libio/genops.c: Check whether
4330         _IO_JUMPS_OFFSET is defined with #ifdef rather
4331         than #if.
4332         * libio/libioP.h: Likewise.
4333         * stdio-common/vfprintf.c: Likewise.
4334
4335         * sysdeps/generic/ldsodefs.h: Check whether
4336         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
4337         than #if.
4338
4339         * nptl/sysdeps/pthread/pthread.h: Check
4340         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
4341         its value.
4342
4343 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4344
4345         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
4346         setting O_APPEND.
4347         * libio/tst-ftell-active-handler.c (do_append_test): Add a
4348         test case.
4349
4350         [BZ #16680]
4351         * libio/fileops.c (_IO_file_open): Seek to end of file but
4352         don't cache the offset.
4353         (get_file_offset): Remove function.
4354         (do_ftell): Use cached offset when available.
4355         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
4356         don't cache the offset.
4357         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
4358         case.
4359         (do_one_test): Call it.
4360         (do_ftell_test): Fix up expected old offset for a+ mode.
4361         * libio/wfileops.c (do_ftell_wide): Used cached offset when
4362         available.
4363
4364         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
4365         up test status with function return status.
4366         (do_write_test): Likewise.
4367         (do_append_test): Likewise.
4368
4369         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
4370         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
4371         Remove.
4372
4373 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4374
4375         * math/gen-libm-test.pl (parse_args): Handle results specified for
4376         each rounding mode separately.
4377         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
4378         tests and results from lrint_tonearest_test_data,
4379         lrint_towardzero_test_data, lrint_downward_test_data and
4380         lrint_upward_test_data.
4381         (lrint_test): Use ALL_RM_TEST.
4382         (lrint_tonearest_test_data): Remove.
4383         (lrint_test_tonearest): Likewise.
4384         (lrint_towardzero_test_data): Likewise.
4385         (lrint_test_towardzero): Likewise.
4386         (lrint_downward_test_data): Likewise.
4387         (lrint_test_downward): Likewise.
4388         (lrint_upward_test_data): Likewise.
4389         (lrint_test_upward): Likewise.
4390         (llrint_test_data): Merge in per-rounding-mode tests and results
4391         from llrint_tonearest_test_data, llrint_towardzero_test_data,
4392         llrint_downward_test_data and llrint_upward_test_data.
4393         (llrint_test): Use ALL_RM_TEST.
4394         (llrint_tonearest_test_data): Remove.
4395         (llrint_test_tonearest): Likewise.
4396         (llrint_towardzero_test_data): Likewise.
4397         (llrint_test_towardzero): Likewise.
4398         (llrint_downward_test_data): Likewise.
4399         (llrint_test_downward): Likewise.
4400         (llrint_upward_test_data): Likewise.
4401         (llrint_test_upward): Likewise.
4402         (rint_test_data): Merge in per-rounding-mode tests and results
4403         from rint_tonearest_test_data, rint_towardzero_test_data,
4404         rint_downward_test_data and rint_upward_test_data.  Add
4405         per-rounding-mode results for tests not in those arrays.
4406         (rint_test): Use ALL_RM_TEST.
4407         (rint_tonearest_test_data): Remove.
4408         (rint_test_tonearest): Likewise.
4409         (rint_towardzero_test_data): Likewise.
4410         (rint_test_towardzero): Likewise.
4411         (rint_downward_test_data): Likewise.
4412         (rint_test_downward): Likewise.
4413         (rint_upward_test_data): Likewise.
4414         (rint_test_upward): Likewise.
4415         (main): Don't call removed functions.
4416
4417 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4418
4419         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
4420         "Compiled on ..." crapola.  It is anti-useful.
4421
4422 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
4423
4424         * scripts/evaluate-test.sh: Handle fourth argument to determine
4425         whether test run should stop on failure.
4426         * Makeconfig (stop-on-test-failure): New variable.
4427         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
4428         $(stop-on-test-failure).
4429         * Makefile (tests): Give a summary of results from testing and
4430         exit with failure status if they include an ERROR or FAIL.
4431         (xtests): Likewise.
4432         * manual/install.texi (Configuring and compiling): Mention
4433         stop-on-test-failure=y.
4434         * INSTALL: Regenerated.
4435
4436 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4437
4438         * scripts/versionlist.awk: New file.
4439         * Makerules [$(build-shared) = yes]
4440         (postclean-generated): Add Versions.def, not Versions.def.v and
4441         Versions.def.v.i.
4442         ($(common-objpfx)Versions.def.v.i): Target removed.
4443         ($(common-objpfx)Versions.def): New target.
4444         ($(common-objpfx)Versions.all): Depend on that rather that
4445         $(common-objpfx)Versions.def.v.
4446         * Versions.def: File removed.
4447
4448         * Makeconfig (+gccwarn): Add -Wundef.
4449         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
4450         a dl-sysdep.h breaking its contract.
4451         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
4452         * include/stackinfo.h: New file.
4453         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
4454         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
4455         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
4456         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
4457         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
4458         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
4459         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4460         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4461         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4462         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4463         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4464         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
4465         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4466         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4467         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4468
4469 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4470
4471         [BZ #16707]
4472         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
4473         implementation.
4474         * math/libm-test.inc (round_test_data): Add more tests.
4475
4476         [BZ #16706]
4477         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
4478         implementation.
4479         * math/libm-test.inc (nearbyint_test_data): Add more tests.
4480
4481         [BZ #16701]
4482         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
4483         implementation.
4484         * math/libm-test.inc (ceil_test_data): Add more tests.
4485
4486         * math/libm-test.inc (trunc_test_data): Add more tests related to
4487         BZ#16414.
4488
4489 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4490
4491         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
4492         with #if rather than #ifdef.
4493         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
4494
4495 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
4496
4497         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
4498         first.  Disable AVX-512 GCC support if assembler doesn't support
4499         it.
4500         * sysdeps/x86_64/configure: Regenerated.
4501
4502 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
4503
4504         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
4505         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
4506         (__old_pthread_attr_setstack): Likewise.
4507         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
4508         [!_STACK_GROWS_DOWN]: Likewise.
4509
4510 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
4511
4512         * config.make.in (have-bash2): Delete.
4513         * configure.ac (libc_cv_have_bash2): Delete.
4514         * configure: Regenerate.
4515         * elf/Makefile (common-ldd-rewrite): Rename to ...
4516         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
4517         (sh-ldd-rewrite): Delete.
4518         (bash-ldd-rewrite): Delete.
4519         (have-bash2): Delete checks.
4520         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
4521         ldd-rewrite.
4522
4523         * config.make.in (have-ksh): Delete.
4524         (KSH): Delete.
4525         * configure.ac (libc_cv_have_ksh): Delete.
4526         * configure: Regenerate.
4527
4528         * elf/Makefile: Delete $(have-ksh) check.
4529         ($(objpfx)sotruss): Change KSH to BASH.
4530         * elf/sotruss.ksh: Rename to ...
4531         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
4532         function style to match POSIX.  Drop ksh vim mode setting.
4533
4534         * manual/time.texi (Specifying the Time Zone with TZ): Change
4535         Tuesday to Thursday.
4536
4537         * debug/tst-longjmp_chk2.c: Update header comment.
4538         (stackoverflow_handler): Add comment.  Call assert on pass value.
4539
4540 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
4541
4542         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
4543         (HAVE_AVX512_ASM_SUPPORT): Likewise.
4544         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
4545         (La_x86_64_vector): Add zmm.
4546         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
4547         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
4548         ($(objpfx)tst-audit10): New target.
4549         ($(objpfx)tst-audit10.out): Likewise.
4550         (tst-audit10-ENV): New.
4551         (AVX512-CFLAGS): Likewise.
4552         (CFLAGS-tst-audit10.c): Likewise.
4553         (CFLAGS-tst-auditmod10a.c): Likewise.
4554         (CFLAGS-tst-auditmod10b.c): Likewise.
4555         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
4556         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
4557         * sysdeps/x86_64/configure: Regenerated.
4558         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
4559         AVX-512 zmm register support.
4560         (_dl_x86_64_save_sse): Likewise.
4561         (_dl_x86_64_restore_sse): Likewise.
4562         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
4563         size vector registers.
4564         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
4565         (ZMM_SIZE): Likewise.
4566         * sysdeps/x86_64/tst-audit10.c: New file.
4567         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
4568         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
4569
4570 2014-03-13  Roland McGrath  <roland@hack.frob.com>
4571
4572         * configure.ac (HAVE_EHDR_START): New check.
4573         * configure: Regenerated.
4574         * config.h.in (HAVE_EHDR_START): New #undef.
4575         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
4576         assuming the lowest-addressed segment maps the start of the file.
4577
4578 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
4579
4580         * INSTALL: Regenerated.
4581
4582 2014-03-13  Will Newton  <will.newton@linaro.org>
4583
4584         * manual/setjmp.texi (System V contexts): Improve
4585         clarity and grammar of documentation.
4586
4587 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
4588
4589         [BZ #16381]
4590         * elf/Makefile (tests): Add tst-pie2.
4591         (tests-pie): Add tst-pie2.
4592         * elf/tst-pie2.c: New file.
4593         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
4594         for ET_EXEC.
4595         * elf/rtld.c (map_doit): Load executable as lt_executable.
4596         (dl_main): Likewise.
4597
4598 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
4599
4600         [BZ #16642]
4601         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4602         (__ASSUME_PSELECT): Undefine.
4603
4604 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4605
4606         [BZ #16689]
4607         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
4608         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
4609         static build.
4610         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
4611         selector for static builds.
4612
4613 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
4614
4615         [BZ #16695]
4616         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
4617         key in the buffer.
4618
4619 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4620
4621         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
4622         IFUNC selector for static builds.
4623
4624 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
4625
4626         * sysdeps/mips/math_private.h [__mips_hard_float]
4627         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
4628         libc_feresetround_mips_ctx.
4629         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
4630         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
4631         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
4632
4633         [BZ #16677]
4634         * math/s_nextafter.c (__nextafter): Do not return value from
4635         overflowing computation.
4636         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
4637         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
4638         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
4639         Likewise.
4640         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4641         Likewise.
4642         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
4643         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
4644
4645 2014-03-11  Roland McGrath  <roland@hack.frob.com>
4646
4647         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
4648         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
4649         Move sfi_sp use from the load-multiple (that no longer sets sp) to
4650         the new mov targetting sp.
4651
4652 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4653
4654         [BZ #16683]
4655         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
4656         Define it for static builds as well.
4657         (NO_BZERO_IMPL): Likewise.
4658
4659 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4660
4661         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
4662         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
4663         multiarch strspn for PPC64.
4664         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
4665         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
4666         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4667         (__libc_ifunc_impl_list): Likewise.
4668         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
4669         multiarch optimizations
4670         * string/strspn.c (strspn): Using macro to redefine symbol name.
4671
4672 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4673             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4674
4675         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
4676         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
4677         multiarch strncat for PPC64.
4678         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
4679         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
4680         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4681         (__libc_ifunc_impl_list): Likewise.
4682         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
4683         multiarch optimizations
4684
4685 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4686
4687         [BZ #16639]
4688         * nscd/nscd.service: Make service type forking.
4689
4690 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4691
4692         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
4693         sign in non default rounding modes.
4694         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
4695
4696 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
4697
4698         * math/libm-test.inc (ALL_RM_TEST): New macro.
4699         (ceil_test): Use ALL_RM_TEST.
4700         (cimag_test): Likewise.
4701         (conj_test): Likewise.
4702         (copysign_test): Likewise.
4703         (cproj_test): Likewise.
4704         (creal_test): Likewise.
4705         (fabs_test): Likewise.
4706         (floor_test): Likewise.
4707         (fmax_test): Likewise.
4708         (fmin_test): Likewise.
4709         (fmod_test): Likewise.
4710         (fpclassify_test): Likewise.
4711         (frexp_test): Likewise.
4712         (ilogb_test): Likewise.
4713         (isfinite_test): Likewise.
4714         (finite_test): Likewise.
4715         (isgreater_test): Likewise.
4716         (isgreaterequal_test): Likewise.
4717         (isinf_test): Likewise.
4718         (isless_test): Likewise.
4719         (islessequal_test): Likewise.
4720         (islessgreater_test): Likewise.
4721         (isnan_test): Likewise.
4722         (isnormal_test): Likewise.
4723         (issignaling_test): Likewise.
4724         (isunordered_test): Likewise.
4725         (logb_test): Likewise.
4726         (logb_downward_test_data): Remove.
4727         (logb_test_downward): Likewise.
4728         (lround_test): Use ALL_RM_TEST.
4729         (llround_test): Likewise.
4730         (modf_test): Likewise.
4731         (nexttoward_test): Likewise.
4732         (remainder_test): Likewise.
4733         (drem_test): Likewise.
4734         (remainder_tonearest_test_data): Likewise.
4735         (remainder_test_tonearest): Likewise.
4736         (drem_test_tonearest): Likewise.
4737         (remainder_towardzero_test_data): Likewise.
4738         (remainder_test_towardzero): Likewise.
4739         (drem_test_towardzero): Likewise.
4740         (remainder_downward_test_data): Likewise.
4741         (remainder_test_downward): Likewise.
4742         (drem_test_downward): Likewise.
4743         (remainder_upward_test_data): Likewise.
4744         (remainder_test_upward): Likewise.
4745         (drem_test_upward): Likewise.
4746         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
4747         (round_test): Use ALL_RM_TEST.
4748         (signbit_test): Likewise.
4749         (trunc_test): Likewise.
4750         (significand_test): Likewise.
4751         (main): Don't call removed functions.
4752
4753 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
4754
4755         [BZ #16674]
4756         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
4757         || __USE_XOPEN2K8].
4758         (ILL_ILLOPN): Likewise.
4759         (ILL_ILLADR): Likewise.
4760         (ILL_ILLTRP): Likewise.
4761         (ILL_PRVOPC): Likewise.
4762         (ILL_PRVREG): Likewise.
4763         (ILL_COPROC): Likewise.
4764         (ILL_BADSTK): Likewise.
4765         (FPE_INTDIV): Likewise.
4766         (FPE_INTOVF): Likewise.
4767         (FPE_FLTDIV): Likewise.
4768         (FPE_FLTOVF): Likewise.
4769         (FPE_FLTUND): Likewise.
4770         (FPE_FLTRES): Likewise.
4771         (FPE_FLTINV): Likewise.
4772         (FPE_FLTSUB): Likewise.
4773         (SEGV_MAPERR): Likewise.
4774         (SEGV_ACCERR): Likewise.
4775         (BUS_ADRALN): Likewise.
4776         (BUS_ADRERR): Likewise.
4777         (BUS_OBJERR): Likewise.
4778         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4779         (TRAP_TRACE): Likewise.
4780         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4781         __USE_XOPEN2K8].
4782         (CLD_KILLED): Likewise.
4783         (CLD_DUMPED): Likewise.
4784         (CLD_TRAPPED): Likewise.
4785         (CLD_STOPPED): Likewise.
4786         (CLD_CONTINUED): Likewise.
4787         (POLL_IN): Likewise.
4788         (POLL_OUT): Likewise.
4789         (POLL_MSG): Likewise.
4790         (POLL_ERR): Likewise.
4791         (POLL_PRI): Likewise.
4792         (POLL_HUP): Likewise.
4793         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
4794         Likewise.
4795         (ILL_ILLOPN): Likewise.
4796         (ILL_ILLADR): Likewise.
4797         (ILL_ILLTRP): Likewise.
4798         (ILL_PRVOPC): Likewise.
4799         (ILL_PRVREG): Likewise.
4800         (ILL_COPROC): Likewise.
4801         (ILL_BADSTK): Likewise.
4802         (FPE_INTDIV): Likewise.
4803         (FPE_INTOVF): Likewise.
4804         (FPE_FLTDIV): Likewise.
4805         (FPE_FLTOVF): Likewise.
4806         (FPE_FLTUND): Likewise.
4807         (FPE_FLTRES): Likewise.
4808         (FPE_FLTINV): Likewise.
4809         (FPE_FLTSUB): Likewise.
4810         (SEGV_MAPERR): Likewise.
4811         (SEGV_ACCERR): Likewise.
4812         (BUS_ADRALN): Likewise.
4813         (BUS_ADRERR): Likewise.
4814         (BUS_OBJERR): Likewise.
4815         (BUS_MCEERR_AR): Likewise.
4816         (BUS_MCEERR_AO): Likewise.
4817         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4818         (TRAP_TRACE): Likewise.
4819         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4820         __USE_XOPEN2K8].
4821         (CLD_KILLED): Likewise.
4822         (CLD_DUMPED): Likewise.
4823         (CLD_TRAPPED): Likewise.
4824         (CLD_STOPPED): Likewise.
4825         (CLD_CONTINUED): Likewise.
4826         (POLL_IN): Likewise.
4827         (POLL_OUT): Likewise.
4828         (POLL_MSG): Likewise.
4829         (POLL_ERR): Likewise.
4830         (POLL_PRI): Likewise.
4831         (POLL_HUP): Likewise.
4832         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
4833         (ILL_ILLOPN): Likewise.
4834         (ILL_ILLADR): Likewise.
4835         (ILL_ILLTRP): Likewise.
4836         (ILL_PRVOPC): Likewise.
4837         (ILL_PRVREG): Likewise.
4838         (ILL_COPROC): Likewise.
4839         (ILL_BADSTK): Likewise.
4840         (FPE_INTDIV): Likewise.
4841         (FPE_INTOVF): Likewise.
4842         (FPE_FLTDIV): Likewise.
4843         (FPE_FLTOVF): Likewise.
4844         (FPE_FLTUND): Likewise.
4845         (FPE_FLTRES): Likewise.
4846         (FPE_FLTINV): Likewise.
4847         (FPE_FLTSUB): Likewise.
4848         (SEGV_MAPERR): Likewise.
4849         (SEGV_ACCERR): Likewise.
4850         (BUS_ADRALN): Likewise.
4851         (BUS_ADRERR): Likewise.
4852         (BUS_OBJERR): Likewise.
4853         (BUS_MCEERR_AR): Likewise.
4854         (BUS_MCEERR_AO): Likewise.
4855         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4856         (TRAP_TRACE): Likewise.
4857         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4858         __USE_XOPEN2K8].
4859         (CLD_KILLED): Likewise.
4860         (CLD_DUMPED): Likewise.
4861         (CLD_TRAPPED): Likewise.
4862         (CLD_STOPPED): Likewise.
4863         (CLD_CONTINUED): Likewise.
4864         (POLL_IN): Likewise.
4865         (POLL_OUT): Likewise.
4866         (POLL_MSG): Likewise.
4867         (POLL_ERR): Likewise.
4868         (POLL_PRI): Likewise.
4869         (POLL_HUP): Likewise.
4870         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
4871         Likewise.
4872         (ILL_ILLOPN): Likewise.
4873         (ILL_ILLADR): Likewise.
4874         (ILL_ILLTRP): Likewise.
4875         (ILL_PRVOPC): Likewise.
4876         (ILL_PRVREG): Likewise.
4877         (ILL_COPROC): Likewise.
4878         (ILL_BADSTK): Likewise.
4879         (ILL_BADIADDR): Likewise.
4880         (ILL_BREAK): Likewise.
4881         (FPE_INTDIV): Likewise.
4882         (FPE_INTOVF): Likewise.
4883         (FPE_FLTDIV): Likewise.
4884         (FPE_FLTOVF): Likewise.
4885         (FPE_FLTUND): Likewise.
4886         (FPE_FLTRES): Likewise.
4887         (FPE_FLTINV): Likewise.
4888         (FPE_FLTSUB): Likewise.
4889         (FPE_DECOVF): Likewise.
4890         (FPE_DECDIV): Likewise.
4891         (FPE_DECERR): Likewise.
4892         (FPE_INVASC): Likewise.
4893         (FPE_INVDEC): Likewise.
4894         (SEGV_MAPERR): Likewise.
4895         (SEGV_ACCERR): Likewise.
4896         (SEGV_PSTKOVF): Likewise.
4897         (BUS_ADRALN): Likewise.
4898         (BUS_ADRERR): Likewise.
4899         (BUS_OBJERR): Likewise.
4900         (BUS_MCEERR_AR): Likewise.
4901         (BUS_MCEERR_AO): Likewise.
4902         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4903         (TRAP_TRACE): Likewise.
4904         (TRAP_BRANCH): Likewise.
4905         (TRAP_HWBKPT): Likewise.
4906         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4907         __USE_XOPEN2K8].
4908         (CLD_KILLED): Likewise.
4909         (CLD_DUMPED): Likewise.
4910         (CLD_TRAPPED): Likewise.
4911         (CLD_STOPPED): Likewise.
4912         (CLD_CONTINUED): Likewise.
4913         (POLL_IN): Likewise.
4914         (POLL_OUT): Likewise.
4915         (POLL_MSG): Likewise.
4916         (POLL_ERR): Likewise.
4917         (POLL_PRI): Likewise.
4918         (POLL_HUP): Likewise.
4919         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
4920         (ILL_ILLOPN): Likewise.
4921         (ILL_ILLADR): Likewise.
4922         (ILL_ILLTRP): Likewise.
4923         (ILL_PRVOPC): Likewise.
4924         (ILL_PRVREG): Likewise.
4925         (ILL_COPROC): Likewise.
4926         (ILL_BADSTK): Likewise.
4927         (FPE_INTDIV): Likewise.
4928         (FPE_INTOVF): Likewise.
4929         (FPE_FLTDIV): Likewise.
4930         (FPE_FLTOVF): Likewise.
4931         (FPE_FLTUND): Likewise.
4932         (FPE_FLTRES): Likewise.
4933         (FPE_FLTINV): Likewise.
4934         (FPE_FLTSUB): Likewise.
4935         (SEGV_MAPERR): Likewise.
4936         (SEGV_ACCERR): Likewise.
4937         (BUS_ADRALN): Likewise.
4938         (BUS_ADRERR): Likewise.
4939         (BUS_OBJERR): Likewise.
4940         (BUS_MCEERR_AR): Likewise.
4941         (BUS_MCEERR_AO): Likewise.
4942         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4943         (TRAP_TRACE): Likewise.
4944         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4945         __USE_XOPEN2K8].
4946         (CLD_KILLED): Likewise.
4947         (CLD_DUMPED): Likewise.
4948         (CLD_TRAPPED): Likewise.
4949         (CLD_STOPPED): Likewise.
4950         (CLD_CONTINUED): Likewise.
4951         (POLL_IN): Likewise.
4952         (POLL_OUT): Likewise.
4953         (POLL_MSG): Likewise.
4954         (POLL_ERR): Likewise.
4955         (POLL_PRI): Likewise.
4956         (POLL_HUP): Likewise.
4957         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
4958         (ILL_ILLOPN): Likewise.
4959         (ILL_ILLADR): Likewise.
4960         (ILL_ILLTRP): Likewise.
4961         (ILL_PRVOPC): Likewise.
4962         (ILL_PRVREG): Likewise.
4963         (ILL_COPROC): Likewise.
4964         (ILL_BADSTK): Likewise.
4965         (FPE_INTDIV): Likewise.
4966         (FPE_INTOVF): Likewise.
4967         (FPE_FLTDIV): Likewise.
4968         (FPE_FLTOVF): Likewise.
4969         (FPE_FLTUND): Likewise.
4970         (FPE_FLTRES): Likewise.
4971         (FPE_FLTINV): Likewise.
4972         (FPE_FLTSUB): Likewise.
4973         (SEGV_MAPERR): Likewise.
4974         (SEGV_ACCERR): Likewise.
4975         (BUS_ADRALN): Likewise.
4976         (BUS_ADRERR): Likewise.
4977         (BUS_OBJERR): Likewise.
4978         (BUS_MCEERR_AR): Likewise.
4979         (BUS_MCEERR_AO): Likewise.
4980         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4981         (TRAP_TRACE): Likewise.
4982         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4983         __USE_XOPEN2K8].
4984         (CLD_KILLED): Likewise.
4985         (CLD_DUMPED): Likewise.
4986         (CLD_TRAPPED): Likewise.
4987         (CLD_STOPPED): Likewise.
4988         (CLD_CONTINUED): Likewise.
4989         (POLL_IN): Likewise.
4990         (POLL_OUT): Likewise.
4991         (POLL_MSG): Likewise.
4992         (POLL_ERR): Likewise.
4993         (POLL_PRI): Likewise.
4994         (POLL_HUP): Likewise.
4995         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
4996         (ILL_ILLOPN): Likewise.
4997         (ILL_ILLADR): Likewise.
4998         (ILL_ILLTRP): Likewise.
4999         (ILL_PRVOPC): Likewise.
5000         (ILL_PRVREG): Likewise.
5001         (ILL_COPROC): Likewise.
5002         (ILL_BADSTK): Likewise.
5003         (FPE_INTDIV): Likewise.
5004         (FPE_INTOVF): Likewise.
5005         (FPE_FLTDIV): Likewise.
5006         (FPE_FLTOVF): Likewise.
5007         (FPE_FLTUND): Likewise.
5008         (FPE_FLTRES): Likewise.
5009         (FPE_FLTINV): Likewise.
5010         (FPE_FLTSUB): Likewise.
5011         (SEGV_MAPERR): Likewise.
5012         (SEGV_ACCERR): Likewise.
5013         (BUS_ADRALN): Likewise.
5014         (BUS_ADRERR): Likewise.
5015         (BUS_OBJERR): Likewise.
5016         (BUS_MCEERR_AR): Likewise.
5017         (BUS_MCEERR_AO): Likewise.
5018         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5019         (TRAP_TRACE): Likewise.
5020         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5021         __USE_XOPEN2K8].
5022         (CLD_KILLED): Likewise.
5023         (CLD_DUMPED): Likewise.
5024         (CLD_TRAPPED): Likewise.
5025         (CLD_STOPPED): Likewise.
5026         (CLD_CONTINUED): Likewise.
5027         (POLL_IN): Likewise.
5028         (POLL_OUT): Likewise.
5029         (POLL_MSG): Likewise.
5030         (POLL_ERR): Likewise.
5031         (POLL_PRI): Likewise.
5032         (POLL_HUP): Likewise.
5033         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5034         (ILL_ILLOPN): Likewise.
5035         (ILL_ILLADR): Likewise.
5036         (ILL_ILLTRP): Likewise.
5037         (ILL_PRVOPC): Likewise.
5038         (ILL_PRVREG): Likewise.
5039         (ILL_COPROC): Likewise.
5040         (ILL_BADSTK): Likewise.
5041         (ILL_DBLFLT): Likewise.
5042         (ILL_HARDWALL): Likewise.
5043         (FPE_INTDIV): Likewise.
5044         (FPE_INTOVF): Likewise.
5045         (FPE_FLTDIV): Likewise.
5046         (FPE_FLTOVF): Likewise.
5047         (FPE_FLTUND): Likewise.
5048         (FPE_FLTRES): Likewise.
5049         (FPE_FLTINV): Likewise.
5050         (FPE_FLTSUB): Likewise.
5051         (SEGV_MAPERR): Likewise.
5052         (SEGV_ACCERR): Likewise.
5053         (BUS_ADRALN): Likewise.
5054         (BUS_ADRERR): Likewise.
5055         (BUS_OBJERR): Likewise.
5056         (BUS_MCEERR_AR): Likewise.
5057         (BUS_MCEERR_AO): Likewise.
5058         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5059         (TRAP_TRACE): Likewise.
5060         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5061         __USE_XOPEN2K8].
5062         (CLD_KILLED): Likewise.
5063         (CLD_DUMPED): Likewise.
5064         (CLD_TRAPPED): Likewise.
5065         (CLD_STOPPED): Likewise.
5066         (CLD_CONTINUED): Likewise.
5067         (POLL_IN): Likewise.
5068         (POLL_OUT): Likewise.
5069         (POLL_MSG): Likewise.
5070         (POLL_ERR): Likewise.
5071         (POLL_PRI): Likewise.
5072         (POLL_HUP): Likewise.
5073         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5074         (ILL_ILLOPN): Likewise.
5075         (ILL_ILLADR): Likewise.
5076         (ILL_ILLTRP): Likewise.
5077         (ILL_PRVOPC): Likewise.
5078         (ILL_PRVREG): Likewise.
5079         (ILL_COPROC): Likewise.
5080         (ILL_BADSTK): Likewise.
5081         (FPE_INTDIV): Likewise.
5082         (FPE_INTOVF): Likewise.
5083         (FPE_FLTDIV): Likewise.
5084         (FPE_FLTOVF): Likewise.
5085         (FPE_FLTUND): Likewise.
5086         (FPE_FLTRES): Likewise.
5087         (FPE_FLTINV): Likewise.
5088         (FPE_FLTSUB): Likewise.
5089         (SEGV_MAPERR): Likewise.
5090         (SEGV_ACCERR): Likewise.
5091         (BUS_ADRALN): Likewise.
5092         (BUS_ADRERR): Likewise.
5093         (BUS_OBJERR): Likewise.
5094         (BUS_MCEERR_AR): Likewise.
5095         (BUS_MCEERR_AO): Likewise.
5096         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5097         (TRAP_TRACE): Likewise.
5098         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5099         __USE_XOPEN2K8].
5100         (CLD_KILLED): Likewise.
5101         (CLD_DUMPED): Likewise.
5102         (CLD_TRAPPED): Likewise.
5103         (CLD_STOPPED): Likewise.
5104         (CLD_CONTINUED): Likewise.
5105         (POLL_IN): Likewise.
5106         (POLL_OUT): Likewise.
5107         (POLL_MSG): Likewise.
5108         (POLL_ERR): Likewise.
5109         (POLL_PRI): Likewise.
5110         (POLL_HUP): Likewise.
5111         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
5112         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5113
5114         [BZ #16670]
5115         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
5116         before #include of <time.h>.
5117         [!__USE_XOPEN2K] (__need_timespec): Likewise.
5118         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
5119         (test-xfail-UNIX98/sched.h/conform): Likewise.
5120
5121 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5122
5123         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
5124         error absence of trapping exception support.
5125         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
5126
5127 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5128
5129         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
5130         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
5131         * timezone/Makefile (testdata): Move definition above include of
5132         Rules.
5133         (test-zones): New variable.
5134         (tests-special): Add zone files.
5135         (build-testdata): Use $(evaluate-test).
5136
5137         * elf/Makefile (tests-special): Rename tests to end with .out.
5138         ($(objpfx)noload-mem): Likewise.
5139         ($(objpfx)tst-leaks1-mem): Likewise.
5140         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
5141         * iconv/Makefile (xtests-special): Change test-iconvconfig to
5142         $(objpfx)test-iconvconfig.out.
5143         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
5144         set -e inside subshell and redirect output to file.
5145         * iconvdata/Makefile (generated): Rename tests to end with .out.
5146         Correct type.
5147         (tests-special): Rename tests to end with .out.
5148         ($(objpfx)mtrace-tst-loading): Likewise.
5149         * intl/Makefile (generated): Likewise.
5150         (tests-special): Likewise.
5151         ($(objpfx)mtrace-tst-gettext): Likewise.
5152         * misc/Makefile (generated): Likewise.
5153         (tests-special): Likewise.
5154         ($(objpfx)tst-error1-mem): Likewise.
5155         * nptl/Makefile (tests-special): Likewise.
5156         ($(objpfx)tst-stack3-mem): Likewise.
5157         (generated): Likewise.
5158         * posix/Makefile (generated): Likewise.
5159         (tests-special): Likewise.
5160         (xtests-special): Likewise.
5161         ($(objpfx)tst-fnmatch-mem): Likewise.
5162         ($(objpfx)bug-regex2-mem): Likewise.
5163         ($(objpfx)bug-regex14-mem): Likewise.
5164         ($(objpfx)bug-regex21-mem): Likewise.
5165         ($(objpfx)bug-regex31-mem): Likewise.
5166         ($(objpfx)tst-vfork3-mem): Likewise.
5167         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
5168         ($(objpfx)tst-pcre-mem): Likewise.
5169         ($(objpfx)tst-boost-mem): Likewise.
5170         ($(objpfx)bug-ga2-mem): Likewise.
5171         ($(objpfx)bug-glob2-mem): Likewise.
5172         * resolv/Makefile (generate): Likewise.
5173         (tests-special): Likewise.
5174         (xtests-special): Likewise.
5175         (generated): Likewise.
5176         ($(objpfx)mtrace-tst-leaks): Likewise.
5177         ($(objpfx)mtrace-tst-leaks2): Likewise.
5178
5179         * scripts/merge-test-results.sh: New file.
5180         * Makefile (tests-special-notdir): New variable.
5181         (tests): Run merge-test-results.sh.
5182         (xtests): Likewise.
5183         * Rules (tests-special-notdir): New variable.
5184         (xtests-special-notdir): Likewise.
5185         (tests): Run merge-test-results.sh
5186         (xtests): Likewise.
5187
5188         * Makeconfig (test-xfail-name): New variable.
5189         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
5190         compute variable name for expected failures.
5191         * conform/Makefile (conformtest-headers-data): New variable.
5192         (conformtest-standards): Likewise.
5193         (conformtest-headers-ISO): Likewise.
5194         (conformtest-headers-ISO99): Likewise.
5195         (conformtest-headers-ISO11): Likewise.
5196         (conformtest-headers-POSIX): Likewise.
5197         (conformtest-headers-XPG3): Likewise.
5198         (conformtest-headers-XPG4): Likewise.
5199         (conformtest-headers-UNIX98): Likewise.
5200         (conformtest-headers-XOPEN2K): Likewise.
5201         (conformtest-headers-POSIX2008): Likewise.
5202         (conformtest-headers-XOPEN2K8): Likewise.
5203         (conformtest-header-list-base): Likewise.
5204         (conformtest-header-list-tests): Likewise.
5205         (conformtest-header-base): Likewise.
5206         (conformtest-header-tests): Likewise.
5207         (tests-special): Add $(conformtest-header-list-tests).  If
5208         [$(fast-check) && !$(cross-compiling)], add
5209         $(conformtest-header-tests) instead of
5210         $(objpfx)run-conformtest.out.
5211         (generated): Add $(conformtest-header-list-base).  If
5212         [$(fast-check) && !$(cross-compiling)], add
5213         $(conformtest-header-base).  Remove previous setting.
5214         ($(conformtest-header-list-tests)): New target.
5215         (test-xfail-run-conformtest): Remove variable.
5216         ($(objpfx)run-conformtest.out): Remove target.
5217         (test-xfail-ISO11/complex.h/conform): New variable.
5218         (test-xfail-ISO11/stdalign.h/conform): Likewise.
5219         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
5220         (test-xfail-XPG3/varargs.h/conform): Likewise.
5221         (test-xfail-XPG4/varargs.h/conform): Likewise.
5222         (test-xfail-UNIX98/varargs.h/conform): Likewise.
5223         (test-xfail-XPG4/ndbm.h/conform): Likewise.
5224         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
5225         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
5226         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
5227         (test-xfail-XPG3/fcntl.h/conform): Likewise.
5228         (test-xfail-XPG3/ftw.h/conform): Likewise.
5229         (test-xfail-XPG3/grp.h/conform): Likewise.
5230         (test-xfail-XPG3/langinfo.h/conform): Likewise.
5231         (test-xfail-XPG3/limits.h/conform): Likewise.
5232         (test-xfail-XPG3/pwd.h/conform): Likewise.
5233         (test-xfail-XPG3/search.h/conform): Likewise.
5234         (test-xfail-XPG3/signal.h/conform): Likewise.
5235         (test-xfail-XPG3/stdio.h/conform): Likewise.
5236         (test-xfail-XPG3/stdlib.h/conform): Likewise.
5237         (test-xfail-XPG3/string.h/conform): Likewise.
5238         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
5239         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
5240         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
5241         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
5242         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
5243         (test-xfail-XPG3/sys/types.h/conform): Likewise.
5244         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
5245         (test-xfail-XPG3/termios.h/conform): Likewise.
5246         (test-xfail-XPG3/time.h/conform): Likewise.
5247         (test-xfail-XPG3/unistd.h/conform): Likewise.
5248         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
5249         (test-xfail-XPG4/fcntl.h/conform): Likewise.
5250         (test-xfail-XPG4/langinfo.h/conform): Likewise.
5251         (test-xfail-XPG4/netdb.h/conform): Likewise.
5252         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
5253         (test-xfail-XPG4/signal.h/conform): Likewise.
5254         (test-xfail-XPG4/stdio.h/conform): Likewise.
5255         (test-xfail-XPG4/stdlib.h/conform): Likewise.
5256         (test-xfail-XPG4/stropts.h/conform): Likewise.
5257         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
5258         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
5259         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
5260         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
5261         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
5262         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
5263         (test-xfail-XPG4/sys/time.h/conform): Likewise.
5264         (test-xfail-XPG4/sys/types.h/conform): Likewise.
5265         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
5266         (test-xfail-XPG4/termios.h/conform): Likewise.
5267         (test-xfail-XPG4/ucontext.h/conform): Likewise.
5268         (test-xfail-XPG4/unistd.h/conform): Likewise.
5269         (test-xfail-XPG4/utmpx.h/conform): Likewise.
5270         (test-xfail-POSIX/sched.h/conform): Likewise.
5271         (test-xfail-POSIX/signal.h/conform): Likewise.
5272         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5273         (test-xfail-POSIX/tar.h/conform): Likewise.
5274         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
5275         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
5276         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
5277         (test-xfail-UNIX98/netdb.h/conform): Likewise.
5278         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
5279         (test-xfail-UNIX98/sched.h/conform): Likewise.
5280         (test-xfail-UNIX98/signal.h/conform): Likewise.
5281         (test-xfail-UNIX98/stdio.h/conform): Likewise.
5282         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5283         (test-xfail-UNIX98/stropts.h/conform): Likewise.
5284         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
5285         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
5286         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
5287         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
5288         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
5289         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
5290         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5291         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5292         (test-xfail-UNIX98/unistd.h/conform): Likewise.
5293         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
5294         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
5295         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
5296         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
5297         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
5298         (test-xfail-XOPEN2K/math.h/conform): Likewise.
5299         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
5300         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
5301         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
5302         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
5303         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5304         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
5305         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
5306         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
5307         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
5308         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
5309         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
5310         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
5311         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
5312         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5313         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
5314         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
5315         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5316         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
5317         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
5318         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
5319         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
5320         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
5321         (test-xfail-POSIX2008/signal.h/conform): Likewise.
5322         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
5323         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
5324         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5325         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
5326         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
5327         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
5328         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
5329         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
5330         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
5331         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5332         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
5333         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
5334         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
5335         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
5336         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
5337         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
5338         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
5339         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
5340         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
5341         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5342         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
5343         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
5344         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
5345         (conformtest-cc-flags): Likewise.
5346         ($(conformtest-header-tests): New target.
5347         * conform/check-header-lists.sh: New file.
5348         * conform/run-conformtest.sh: Remove.
5349
5350         * conform/conformtest.pl: Allow ' and \ in values given for
5351         constants.
5352         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
5353         inclusion.
5354         [POSIX] (sys/types.h): Likewise.
5355         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
5356         inclusion.
5357         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
5358         inclusion.
5359         * conform/data/signal.h-data (SIGIO): Remove expectation.
5360         [XPG3] (SIGBUS): Do not expect.
5361         [POSIX || XPG3] (SIGPOLL): Likewise.
5362         [POSIX || XPG3] (SIGPROF): Likewise.
5363         [POSIX || XPG3] (SIGSYS): Likewise.
5364         [XPG3] (SIGTRAP): Likewise.
5365         [POSIX || XPG3] (SIGURG): Likewise.
5366         [POSIX || XPG3] (SIGVTALRM): Likewise.
5367         [POSIX || XPG3] (SIGXCPU): Likewise.
5368         [POSIX || XPG3] (SIGXFSZ): Likewise.
5369         [POSIX] (SA_SIGINFO): Expect.
5370         [XPG3] (siginfo_t): Do not expect type or contents.
5371         [POSIX] (si_pid): Do not expect element.
5372         [POSIX] (si_uid): Likewise.
5373         [POSIX] (si_addr): Likewise.
5374         [POSIX] (si_status): Likewise.
5375         [POSIX] (si_band): Likewise.
5376         [XPG4] (si_value): Likewise.
5377         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
5378         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
5379         [POSIX || XPG3] (ILL_ILLADR): Likewise.
5380         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
5381         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
5382         [POSIX || XPG3] (ILL_PRVREG): Likewise.
5383         [POSIX || XPG3] (ILL_COPROC): Likewise.
5384         [POSIX || XPG3] (ILL_BADSTK): Likewise.
5385         [POSIX || XPG3] (FPE_INTDIV): Likewise.
5386         [POSIX || XPG3] (FPE_INTOVF): Likewise.
5387         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
5388         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
5389         [POSIX || XPG3] (FPE_FLTUND): Likewise.
5390         [POSIX || XPG3] (FPE_FLTRES): Likewise.
5391         [POSIX || XPG3] (FPE_FLTINV): Likewise.
5392         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
5393         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
5394         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
5395         [POSIX || XPG3] (BUS_ADRALN): Likewise.
5396         [POSIX || XPG3] (BUS_ADRERR): Likewise.
5397         [POSIX || XPG3] (BUS_OBJERR): Likewise.
5398         [POSIX || XPG3] (CLD_EXITED): Likewise.
5399         [POSIX || XPG3] (CLD_KILLED): Likewise.
5400         [POSIX || XPG3] (CLD_DUMPED): Likewise.
5401         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
5402         [POSIX || XPG3] (CLD_STOPPED): Likewise.
5403         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
5404         [POSIX || XPG3] (POLL_IN): Likewise.
5405         [POSIX || XPG3] (POLL_OUT): Likewise.
5406         [POSIX || XPG3] (POLL_MSG): Likewise.
5407         [POSIX || XPG3] (POLL_ERR): Likewise.
5408         [POSIX || XPG3] (POLL_PRI): Likewise.
5409         [POSIX || XPG3] (POLL_HUP): Likewise.
5410         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
5411         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
5412         (SIG*): Do not allow.
5413         [XPG3] (si_*): Likewise.
5414         [XPG3] (SI_*): Likewise.
5415         [XPG3 || XPG4] (sigev_*): Likewise.
5416         [XPG3 || XPG4] (SIGEV_*): Likewise.
5417         [XPG3 || XPG4] (sival_*): Likewise.
5418         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
5419         [POSIX || XPG3] (BUS_*): Likewise.
5420         [POSIX || XPG3] (CLD_*): Likewise.
5421         [POSIX || XPG3] (FPE_*): Likewise.
5422         [POSIX || XPG3] (ILL_*): Likewise.
5423         [POSIX || XPG3] (POLL_*): Likewise.
5424         [POSIX || XPG3] (SEGV_*): Likewise.
5425         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
5426         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
5427         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
5428         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
5429         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
5430         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
5431         Specify type and value.
5432         (TVERSLEN): Likewise.
5433         (REGTYPE): Likewise.
5434         (AREGTYPE): Likewise.
5435         (LNKTYPE): Likewise.
5436         (SYMTYPE): Likewise.
5437         (CHRTYPE): Likewise.
5438         (BLKTYPE): Likewise.
5439         (DIRTYPE): Likewise.
5440         (FIFOTYPE): Likewise.
5441         (CONTTYPE): Likewise.
5442         (TSUID): Likewise.
5443         (TSGID): Likewise.
5444         (TSVTX): Likewise.
5445         (TUREAD): Likewise.
5446         (TUWRITE): Likewise.
5447         (TUEXEC): Likewise.
5448         (TGREAD): Likewise.
5449         (TGWRITE): Likewise.
5450         (TGEXEC): Likewise.
5451         (TOREAD): Likewise.
5452         (TOWRITE): Likewise.
5453         (TOEXEC): Likewise.
5454         [POSIX] (TSVTX): Expect constant.
5455
5456 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
5457
5458         * Makefile (tests): Change dependencies to ....
5459         (tests-special): ... additions to this variable.
5460         (tests): Depend on $(tests-special).
5461         * Makerules (check-abi-list): New variable.
5462         (check-abi): Depend on $(check-abi-list).
5463         [$(subdir) = elf] (tests-special): Add
5464         $(objpfx)check-abi-libc.out.
5465         [$(build-shared) = yes && subdir] (tests-special): Add
5466         $(check-abi-list).
5467         [$(build-shared) = yes && subdir] (tests): Do not depend on
5468         check-abi.
5469         * Rules (tests): Depend on $(tests-special).
5470         (xtests): Depend on $(xtests-special).
5471         * catgets/Makefile (tests): Change dependencies to ....
5472         (tests-special): ... additions to this variable.
5473         * conform/Makefile (tests): Change dependencies to ....
5474         (tests-special): ... additions to this variable.
5475         * elf/Makefile (tests): Change dependencies to ....
5476         (tests-special): ... additions to this variable.
5477         * grp/Makefile (tests): Change dependencies to ....
5478         (tests-special): ... additions to this variable.
5479         * iconv/Makefile (xtests): Change dependencies to ....
5480         (xtests-special): ... additions to this variable.
5481         * iconvdata/Makefile (tests): Change dependencies to ....
5482         (tests-special): ... additions to this variable.
5483         * intl/Makefile (tests): Change dependencies to ....
5484         (tests-special): ... additions to this variable.  Also add
5485         $(objpfx)tst-gettext.out.
5486         * io/Makefile (tests): Change dependencies to ....
5487         (tests-special): ... additions to this variable.
5488         * libio/Makefile (tests): Change dependencies to ....
5489         (tests-special): ... additions to this variable.
5490         * malloc/Makefile (tests): Change dependencies to ....
5491         (tests-special): ... additions to this variable.
5492         * misc/Makefile (tests): Change dependencies to ....
5493         (tests-special): ... additions to this variable.
5494         * nptl/Makefile (tests): Change dependencies to ....
5495         (tests-special): ... additions to this variable.
5496         * nptl_db/Makefile (tests): Change dependencies to ....
5497         (tests-special): ... additions to this variable.
5498         * posix/Makefile (tests): Change dependencies to ....
5499         (tests-special): ... additions to this variable.
5500         (xtests): Change dependencies to ....
5501         (xtests-special): ... additions to this variable.
5502         * resolv/Makefile (tests): Change dependencies to ....
5503         (tests-special): ... additions to this variable.
5504         (xtests): Change dependencies to ....
5505         (xtests-special): ... additions to this variable.
5506         * stdio-common/Makefile (tests): Change dependencies to ....
5507         (tests-special): ... additions to this variable.
5508         (do-tst-unbputc): Remove target.
5509         (do-tst-printf): Likewise.
5510         * stdlib/Makefile (tests): Change dependencies to ....
5511         (tests-special): ... additions to this variable.
5512         * string/Makefile (tests): Change dependencies to ....
5513         (tests-special): ... additions to this variable.
5514         * sysdeps/x86/Makefile (tests): Change dependencies to ....
5515         (tests-special): ... additions to this variable.
5516
5517         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
5518         whole file.
5519         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
5520         whole file.
5521         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
5522         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
5523
5524         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
5525         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
5526         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
5527         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
5528         * conform/data/libgen.h-data [XPG3]: Likewise.
5529         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
5530         * conform/data/ndbm.h-data [XPG3]: Likewise.
5531         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
5532         * conform/data/netdb.h-data [XPG3]: Likewise.
5533         * conform/data/netinet/in.h-data [XPG3]: Likewise.
5534         * conform/data/poll.h-data [XPG3]: Likewise.
5535         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
5536         * conform/data/strings.h-data [XPG3]: Likewise.
5537         * conform/data/stropts.h-data [XPG3]: Likewise.
5538         * conform/data/sys/mman.h-data [XPG3]: Likewise.
5539         * conform/data/sys/resource.h-data [XPG3]: Likewise.
5540         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
5541         Likewise.
5542         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
5543         * conform/data/sys/time.h-data [XPG3]: Likewise.
5544         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
5545         * conform/data/sys/uio.h-data [XPG3]: Likewise.
5546         * conform/data/sys/un.h-data [XPG3]: Likewise.
5547         * conform/data/syslog.h-data [XPG3]: Likewise.
5548         * conform/data/ucontext.h-data [XPG3]: Likewise.
5549         * conform/data/utmpx.h-data [XPG3]: Likewise.
5550         * conform/data/varargs.h-data [UNIX98]: Enable file.
5551
5552         * manual/Makefile (INSTALL_INFO): Remove variable setting.
5553
5554         * math/libm-test.inc (struct test_f_f_data): Move expected results
5555         into structure for each rounding mode.
5556         (struct test_ff_f_data): Likewise.
5557         (struct test_ff_f_data_nexttoward): Likewise.
5558         (struct test_fi_f_data): Likewise.
5559         (struct test_fl_f_data): Likewise.
5560         (struct test_if_f_data): Likewise.
5561         (struct test_fff_f_data): Likewise.
5562         (struct test_c_f_data): Likewise.
5563         (struct test_f_f1_data): Likewise.
5564         (struct test_fF_f1_data): Likewise.
5565         (struct test_ffI_f1_data): Likewise.
5566         (struct test_c_c_data): Likewise.
5567         (struct test_cc_c_data): Likewise.
5568         (struct test_f_i_data): Likewise.
5569         (struct test_ff_i_data): Likewise.
5570         (struct test_f_l_data): Likewise.
5571         (struct test_f_L_data): Likewise.
5572         (struct test_fFF_11_data): Likewise.
5573         (RM_): New macro.
5574         (RM_FE_DOWNWARD): Likewise.
5575         (RM_FE_TONEAREST): Likewise.
5576         (RM_FE_TOWARDZERO): Likewise.
5577         (RM_FE_UPWARD): Likewise.
5578         (RUN_TEST_LOOP_f_f): Update references to expected results.
5579         (RUN_TEST_LOOP_2_f): Likewise.
5580         (RUN_TEST_LOOP_fff_f): Likewise.
5581         (RUN_TEST_LOOP_c_f): Likewise.
5582         (RUN_TEST_LOOP_f_f1): Likewise.
5583         (RUN_TEST_LOOP_fF_f1): Likewise.
5584         (RUN_TEST_LOOP_fI_f1): Likewise.
5585         (RUN_TEST_LOOP_ffI_f1): Likewise.
5586         (RUN_TEST_LOOP_c_c): Likewise.
5587         (RUN_TEST_LOOP_cc_c): Likewise.
5588         (RUN_TEST_LOOP_f_i): Likewise.
5589         (RUN_TEST_LOOP_f_i_tg): Likewise.
5590         (RUN_TEST_LOOP_ff_i_tg): Likewise.
5591         (RUN_TEST_LOOP_f_b): Likewise.
5592         (RUN_TEST_LOOP_f_b_tg): Likewise.
5593         (RUN_TEST_LOOP_f_l): Likewise.
5594         (RUN_TEST_LOOP_f_L): Likewise.
5595         (RUN_TEST_LOOP_fFF_11): Likewise.
5596         * math/gen-libm-test.pl (parse_args): Output four copies of
5597         expected results for each test.
5598
5599         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5600         (__ASSUME_UTIMES): Remove.
5601         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5602         (__ASSUME_UTIMES): Likewise.
5603
5604         * math/gen-auto-libm-tests.c: Update comment on output format.
5605         (output_for_one_input_case): Generate before-rounding and
5606         after-rounding information as conditions on output flags not
5607         floating-point format.
5608         * math/auto-libm-test-out: Regenerated.
5609         * math/gen-libm-test.pl (cond_value): New function.
5610         (or_cond_value): Use cond_value.
5611         (generate_testfile): Handle conditional exceptions.
5612
5613 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
5614
5615         * math/libm-test.inc (max_valid_error): New variable.
5616         (init_max_error): Take new argument specifying whether function
5617         results are exactly determined.  Set max_valid_error and bound
5618         other variables for errors based on this argument.
5619         (set_max_error): Do not record results above max_valid_error.
5620         (check_float_internal): Only accept errors of up to 0.5ulps if
5621         also at most max_valid_error.
5622         (START): Take new argument EXACT and pass it to init_max_error.
5623         (acos_test): Update call to START.
5624         (acos_test_tonearest): Likewise.
5625         (acos_test_towardzero): Likewise.
5626         (acos_test_downward): Likewise.
5627         (acos_test_upward): Likewise.
5628         (acosh_test): Likewise.
5629         (asin_test): Likewise.
5630         (asin_test_tonearest): Likewise.
5631         (asin_test_towardzero): Likewise.
5632         (asin_test_downward): Likewise.
5633         (asin_test_upward): Likewise.
5634         (asinh_test): Likewise.
5635         (atan_test): Likewise.
5636         (atanh_test): Likewise.
5637         (atan2_test): Likewise.
5638         (cabs_test): Likewise.
5639         (cacos_test): Likewise.
5640         (cacosh_test): Likewise.
5641         (carg_test): Likewise.
5642         (casin_test): Likewise.
5643         (casinh_test): Likewise.
5644         (catan_test): Likewise.
5645         (catanh_test): Likewise.
5646         (cbrt_test): Likewise.
5647         (ccos_test): Likewise.
5648         (ccosh_test): Likewise.
5649         (ceil_test): Likewise.
5650         (cexp_test): Likewise.
5651         (cimag_test): Likewise.
5652         (clog_test): Likewise.
5653         (clog10_test): Likewise.
5654         (conj_test): Likewise.
5655         (copysign_test): Likewise.
5656         (cos_test): Likewise.
5657         (cos_test_tonearest): Likewise.
5658         (cos_test_towardzero): Likewise.
5659         (cos_test_downward): Likewise.
5660         (cos_test_upward): Likewise.
5661         (cosh_test): Likewise.
5662         (cosh_test_tonearest): Likewise.
5663         (cosh_test_towardzero): Likewise.
5664         (cosh_test_downward): Likewise.
5665         (cosh_test_upward): Likewise.
5666         (cpow_test): Likewise.
5667         (cproj_test): Likewise.
5668         (creal_test): Likewise.
5669         (csin_test): Likewise.
5670         (csinh_test): Likewise.
5671         (csqrt_test): Likewise.
5672         (ctan_test): Likewise.
5673         (ctan_test_tonearest): Likewise.
5674         (ctan_test_towardzero): Likewise.
5675         (ctan_test_downward): Likewise.
5676         (ctan_test_upward): Likewise.
5677         (ctanh_test): Likewise.
5678         (ctanh_test_tonearest): Likewise.
5679         (ctanh_test_towardzero): Likewise.
5680         (ctanh_test_downward): Likewise.
5681         (ctanh_test_upward): Likewise.
5682         (erf_test): Likewise.
5683         (erfc_test): Likewise.
5684         (exp_test): Likewise.
5685         (exp_test_tonearest): Likewise.
5686         (exp_test_towardzero): Likewise.
5687         (exp_test_downward): Likewise.
5688         (exp_test_upward): Likewise.
5689         (exp10_test): Likewise.
5690         (exp10_test_tonearest): Likewise.
5691         (exp10_test_towardzero): Likewise.
5692         (exp10_test_downward): Likewise.
5693         (exp10_test_upward): Likewise.
5694         (pow10_test): Likewise.
5695         (exp2_test): Likewise.
5696         (expm1_test): Likewise.
5697         (expm1_test_tonearest): Likewise.
5698         (expm1_test_towardzero): Likewise.
5699         (expm1_test_downward): Likewise.
5700         (expm1_test_upward): Likewise.
5701         (fabs_test): Likewise.
5702         (fdim_test): Likewise.
5703         (floor_test): Likewise.
5704         (fma_test): Likewise.
5705         (fma_test_towardzero): Likewise.
5706         (fma_test_downward): Likewise.
5707         (fma_test_upward): Likewise.
5708         (fmax_test): Likewise.
5709         (fmin_test): Likewise.
5710         (fmod_test): Likewise.
5711         (fpclassify_test): Likewise.
5712         (frexp_test): Likewise.
5713         (hypot_test): Likewise.
5714         (ilogb_test): Likewise.
5715         (isfinite_test): Likewise.
5716         (finite_test): Likewise.
5717         (isgreater_test): Likewise.
5718         (isgreaterequal_test): Likewise.
5719         (isinf_test): Likewise.
5720         (isless_test): Likewise.
5721         (islessequal_test): Likewise.
5722         (islessgreater_test): Likewise.
5723         (isnan_test): Likewise.
5724         (isnormal_test): Likewise.
5725         (issignaling_test): Likewise.
5726         (isunordered_test): Likewise.
5727         (j0_test): Likewise.
5728         (j1_test): Likewise.
5729         (jn_test): Likewise.
5730         (ldexp_test): Likewise.
5731         (lgamma_test): Likewise.
5732         (gamma_test): Likewise.
5733         (lrint_test): Likewise.
5734         (lrint_test_tonearest): Likewise.
5735         (lrint_test_towardzero): Likewise.
5736         (lrint_test_downward): Likewise.
5737         (lrint_test_upward): Likewise.
5738         (llrint_test): Likewise.
5739         (llrint_test_tonearest): Likewise.
5740         (llrint_test_towardzero): Likewise.
5741         (llrint_test_downward): Likewise.
5742         (llrint_test_upward): Likewise.
5743         (log_test): Likewise.
5744         (log10_test): Likewise.
5745         (log1p_test): Likewise.
5746         (log2_test): Likewise.
5747         (logb_test): Likewise.
5748         (logb_test_downward): Likewise.
5749         (lround_test): Likewise.
5750         (llround_test): Likewise.
5751         (modf_test): Likewise.
5752         (nearbyint_test): Likewise.
5753         (nextafter_test): Likewise.
5754         (nexttoward_test): Likewise.
5755         (pow_test): Likewise.
5756         (pow_test_tonearest): Likewise.
5757         (pow_test_towardzero): Likewise.
5758         (pow_test_downward): Likewise.
5759         (pow_test_upward): Likewise.
5760         (remainder_test): Likewise.
5761         (drem_test): Likewise.
5762         (remainder_test_tonearest): Likewise.
5763         (drem_test_tonearest): Likewise.
5764         (remainder_test_towardzero): Likewise.
5765         (drem_test_towardzero): Likewise.
5766         (remainder_test_downward): Likewise.
5767         (drem_test_downward): Likewise.
5768         (remainder_test_upward): Likewise.
5769         (drem_test_upward): Likewise.
5770         (remquo_test): Likewise.
5771         (rint_test): Likewise.
5772         (rint_test_tonearest): Likewise.
5773         (rint_test_towardzero): Likewise.
5774         (rint_test_downward): Likewise.
5775         (rint_test_upward): Likewise.
5776         (round_test): Likewise.
5777         (scalb_test): Likewise.
5778         (scalbn_test): Likewise.
5779         (scalbln_test): Likewise.
5780         (signbit_test): Likewise.
5781         (sin_test): Likewise.
5782         (sin_test_tonearest): Likewise.
5783         (sin_test_towardzero): Likewise.
5784         (sin_test_downward): Likewise.
5785         (sin_test_upward): Likewise.
5786         (sincos_test): Likewise.
5787         (sinh_test): Likewise.
5788         (sinh_test_tonearest): Likewise.
5789         (sinh_test_towardzero): Likewise.
5790         (sinh_test_downward): Likewise.
5791         (sinh_test_upward): Likewise.
5792         (sqrt_test): Likewise.
5793         (sqrt_test_tonearest): Likewise.
5794         (sqrt_test_towardzero): Likewise.
5795         (sqrt_test_downward): Likewise.
5796         (sqrt_test_upward): Likewise.
5797         (tan_test): Likewise.
5798         (tan_test_tonearest): Likewise.
5799         (tan_test_towardzero): Likewise.
5800         (tan_test_downward): Likewise.
5801         (tan_test_upward): Likewise.
5802         (tanh_test): Likewise.
5803         (tgamma_test): Likewise.
5804         (trunc_test): Likewise.
5805         (y0_test): Likewise.
5806         (y1_test): Likewise.
5807         (yn_test): Likewise.
5808         (significand_test): Likewise.
5809
5810         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
5811         individual tests in comment.
5812         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
5813         (prev_max_error): New variable.
5814         (prev_real_max_error): Likewise.
5815         (prev_imag_max_error): Likewise.
5816         (compare_ulp_data): Don't refer to test names in comment.
5817         (find_test_ulps): Remove function.
5818         (find_function_ulps): Likewise.
5819         (find_complex_function_ulps): Likewise.
5820         (init_max_error): Take function name as argument.  Look up ulps
5821         for that function.
5822         (print_ulps): Remove function.
5823         (print_max_error): Use prev_max_error instead of calling
5824         find_function_ulps.
5825         (print_complex_max_error): Use prev_real_max_error and
5826         prev_imag_max_error instead of calling find_complex_function_ulps.
5827         (check_float_internal): Take max_ulp parameter instead of calling
5828         find_test_ulps.  Don't call print_ulps.
5829         (check_float): Update call to check_float_internal.
5830         (check_complex): Update calls to check_float_internal.
5831         (START): Pass argument to init_max_error.
5832         * math/gen-libm-test.pl (%results): Don't include "kind"
5833         information.
5834         (parse_ulps): Don't handle ulps of individual tests.
5835         (print_ulps_file): Likewise.
5836         (output_ulps): Likewise.
5837         * math/README.libm-test: Update.
5838         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
5839         individual tests.
5840         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
5841         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5842         * sysdeps/arm/libm-test-ulps: Likewise.
5843         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5844         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
5845         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
5846         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
5847         * sysdeps/microblaze/libm-test-ulps: Likewise.
5848         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5849         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5850         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5851         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5852         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5853         * sysdeps/sh/libm-test-ulps: Likewise.
5854         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5855         * sysdeps/tile/libm-test-ulps: Likewise.
5856         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5857
5858 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
5859
5860         * math/libm-test.inc (print_complex_max_error): Check separately
5861         whether real and imaginary errors are within allowed range and
5862         pass 0 to print_complex_function_ulps instead of value within
5863         allowed range.
5864
5865 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5866
5867         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
5868         formatting.
5869         (get_handles_fopen): Likewise.
5870         (do_write_test): Likewise.
5871
5872         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
5873
5874         * libio/fileops.c (do_ftell): Use cached offset when
5875         available.
5876         * libio/iofwide.c (do_ftell_wide): Likewise.
5877         * libio/iofdopen.c (_IO_new_fdopen): Don't use
5878         _IO_file_attach.
5879         * libio/wfileops.c (_IO_fwide): Don't cache offset.
5880
5881         [BZ #16532]
5882         * libio/libioP.h (get_file_offset): New function.
5883         * libio/fileops.c (get_file_offset): Likewise.
5884         (do_ftell): Likewise.
5885         (_IO_new_file_seekoff): Split out ftell logic.
5886         * libio/wfileops.c (do_ftell_wide): Likewise.
5887         (_IO_wfile_seekoff): Split out ftell logic.
5888         * libio/tst-ftell-active-handler.c: New test case.
5889         * libio/Makefile (tests): Add it.
5890
5891 2014-03-03  Roland McGrath  <roland@hack.frob.com>
5892
5893         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
5894         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
5895
5896 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
5897
5898         [BZ #16639]
5899         * nscd/connections.c (nscd_init): Call do_exit.
5900         (start_threads): Call do_exit and notify_parent.
5901         (begin_drop_privileges): Call do_exit.
5902         (finish_drop_privileges): Likewise.
5903         * nscd/selinux.c (preserve_capabilities): Likewise.
5904         (install_real_capabilities): Likewise.
5905         (nscd_selinux_enabled): Likewise.
5906         (avc_create_thread): Likewise.
5907         (avc_alloc_lock): Likewise.
5908         (nscd_avc_init): Likewise.
5909         * nscd/nscd.c (parent_fd): New static variable.
5910         (main): Create a pipe between parent and child processes.
5911         Skip closing parent_fd.
5912         (monitor_child): New function.
5913         (do_exit): Likewise.
5914         (notify_parent): Likewise.
5915         * nscd/nscd.h (notify_parent): Likewise.
5916         (do_exit): Likewise.
5917
5918 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
5919
5920         * malloc/malloc.c (__libc_calloc): Revert last change.
5921
5922 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5923
5924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5925
5926 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
5927
5928         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
5929         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
5930         implementation.
5931         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5932         (__libc_ifunc_impl_list): Likewise.
5933         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
5934         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
5935         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
5936         * string/strrchr.c: Define STRRCHR.
5937
5938 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
5939
5940         * benchtest/bench-strtok.c (simple_strtok): Delete.
5941         (strtok_string): Use as benchmark.
5942         * string/strtok (STRTOK): New macro.
5943
5944 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
5945
5946         * manual/threads.texi: Add header and standard comments to all
5947         functions.
5948
5949         * elf/dl-lookup.c (check_match): New function.
5950         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
5951         (do_lookup_x): Remove nested function check_match. Use non-nested
5952         function check_match.
5953
5954 2014-02-28  Roland McGrath  <roland@hack.frob.com>
5955
5956         * csu/Makefile (generated, before-compile): Use += rather than =.
5957         * catgets/Makefile (generated, generated-dirs): Likewise.
5958         * debug/Makefile (generated): Likewise.
5959         * dlfcn/Makefile (generated): Likewise.
5960         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
5961         * iconvdata/Makefile (before-compile, generated): Likewise.
5962         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
5963         * libio/Makefile (generated): Likewise.
5964         * malloc/Makefile (generated): Likewise.
5965         * manual/Makefile (generated, generated-dirs): Likewise.
5966         * misc/Makefile (generated): Likewise.
5967         * posix/Makefile (generated): Likewise.
5968         * resolv/Makefile (generated): Likewise.
5969         * sunrpc/Makefile (generated, generated-dirs): Likewise.
5970         * timezone/Makefile (generated, generated-dirs): Likewise.
5971
5972         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
5973
5974 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5975
5976         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
5977         power8 implementation.
5978         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
5979         file: POWER8 llround ifunc implementation.
5980         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
5981         (__lllround): Add POWER8 implementation.
5982         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
5983         POWER8 llround implementation.
5984
5985         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
5986         power8 implementation.
5987         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
5988         file: POWER8 llrint ifunc implementation.
5989         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
5990         Add POWER8 implementation.
5991         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
5992         POWER8 llrint implementation.
5993
5994         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
5995         power8 implementation.
5996         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
5997         file: POWER8 finite ifunc implementation.
5998         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
5999         Add POWER8 implementation.
6000         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6001         Likewise.
6002         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6003         POWER8 finite implementation.
6004         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6005
6006         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6007         power8 implementation.
6008         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6009         file: POWER8 isinf ifunc implementation.
6010         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6011         POWER8 implementation.
6012         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6013         Likewise.
6014         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6015         isinf implementation.
6016         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6017
6018         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6019         (INIT_ARCH): Add hwcap2 initialization.
6020         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6021         power8 implementation.
6022         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6023         file: POWER8 isnan ifunc implementation.
6024         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6025         POWER8 implementation.
6026         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6027         Likewise.
6028         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6029         isnan implementation.
6030         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6031
6032 2014-02-27  Joey Ye  <joey.ye@arm.com>
6033
6034         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6035         (_FP_NANFRAC_Q): Set to zero.
6036
6037 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6038
6039         [BZ #16623]
6040         * math/auto-libm-test-in: New test inputs.
6041         * math/auto-libm-test-out: Regenerate.
6042         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6043         and DA.
6044         (__cos): Likewise.
6045         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6046
6047 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6048
6049         * scripts/evaluate-test.sh: Take new argument indicating whether
6050         failure is expected.
6051         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6052         indicating whether failure is expected.
6053         * conform/Makefile (test-xfail-run-conformtest): New variable.
6054         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6055         level.
6056         * posix/Makefile (test-xfail-annexc): New variable.
6057         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6058
6059 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6060
6061         * argp/Makefile: Include Makeconfig immediately after defining
6062         subdir.
6063         * assert/Makefile: Likewise.
6064         * benchtests/Makefile: Likewise.
6065         * catgets/Makefile: Likewise.
6066         * conform/Makefile: Likewise.
6067         * crypt/Makefile: Likewise.
6068         * csu/Makefile: Likewise.
6069         (all): Remove target.
6070         * ctype/Makefile: Include Makeconfig immediately after defining
6071         subdir.
6072         * debug/Makefile: Likewise.
6073         * dirent/Makefile: Likewise.
6074         * dlfcn/Makefile: Likewise.
6075         * gmon/Makefile: Likewise.
6076         * gnulib/Makefile: Likewise.
6077         * grp/Makefile: Likewise.
6078         * gshadow/Makefile: Likewise.
6079         * hesiod/Makefile: Likewise.
6080         * hurd/Makefile: Likewise.
6081         (all): Remove target.
6082         * iconvdata/Makefile: Include Makeconfig immediately after
6083         defining subdir.
6084         * inet/Makefile: Likewise.
6085         * intl/Makefile: Likewise.
6086         * io/Makefile: Likewise.
6087         * libio/Makefile: Likewise.
6088         (all): Remove target.
6089         * locale/Makefile: Include Makeconfig immediately after defining
6090         subdir.
6091         * login/Makefile: Likewise.
6092         * mach/Makefile: Likewise.
6093         (all): Remove target.
6094         * malloc/Makefile: Include Makeconfig immediately after defining
6095         subdir.
6096         (all): Remove target.
6097         * manual/Makefile: Include Makeconfig immediately after defining
6098         subdir.
6099         * math/Makefile: Likewise.
6100         * misc/Makefile: Likewise.
6101         * nis/Makefile: Likewise.
6102         * nss/Makefile: Likewise.
6103         * po/Makefile: Likewise.
6104         (all): Remove target.
6105         * posix/Makefile: Include Makeconfig immediately after defining
6106         subdir.
6107         * pwd/Makefile: Likewise.
6108         * resolv/Makefile: Likewise.
6109         * resource/Makefile: Likewise.
6110         * rt/Makefile: Likewise.
6111         * setjmp/Makefile: Likewise.
6112         * shadow/Makefile: Likewise.
6113         * signal/Makefile: Likewise.
6114         * socket/Makefile: Likewise.
6115         * soft-fp/Makefile: Likewise.
6116         * stdio-common/Makefile: Likewise.
6117         * stdlib/Makefile: Likewise.
6118         * streams/Makefile: Likewise.
6119         * string/Makefile: Likewise.
6120         * sunrpc/Makefile: Likewise.
6121         (all): Remove target.
6122         * sysvipc/Makefile: Include Makeconfig immediately after defining
6123         subdir.
6124         * termios/Makefile: Likewise.
6125         * time/Makefile: Likewise.
6126         * timezone/Makefile: Likewise.
6127         (all): Remove target.
6128         * wcsmbs/Makefile: Include Makeconfig immediately after defining
6129         subdir.
6130         * wctype/Makefile: Likewise.
6131
6132 2014-02-26  Steve Ellcey  <sellcey@mips.com>
6133
6134         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
6135         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
6136         (libc_feholdexcept_setround_mips): Ditto.
6137         (libc_feholdsetround): New.
6138         (libc_feholdsetroundf): New.
6139         (libc_feholdsetroundl): New.
6140         (libc_feupdateenv_test_mips): New.
6141         (libc_feupdateenv_test): New.
6142         (libc_feupdateenv_testf): New.
6143         (libc_feupdateenv_testl): New.
6144         (libc_feresetround): New.
6145         (libc_feresetroundf): New.
6146         (libc_feresetroundl): New.
6147         (libc_fetestexcept_mips): New.
6148         (libc_fetestexcept): New.
6149         (libc_fetestexceptf): New.
6150         (libc_fetestexceptl): New.
6151         (HAVE_RM_CTX): New.
6152         (libc_feholdexcept_setround_mips_ctx): New.
6153         (libc_feholdexcept_setround_ctx): New.
6154         (libc_feholdexcept_setroundf_ctx): New.
6155         (libc_feholdexcept_setroundl_ctx): New.
6156         (libc_fesetenv_mips_ctx): New.
6157         (libc_fesetenv_ctx): New.
6158         (libc_fesetenv_ctxf): New.
6159         (libc_fesetenv_ctxl): New.
6160         (libc_feupdateenv_mips_ctx): New.
6161         (libc_feupdateenv_ctx): New.
6162         (libc_feupdateenvf_ctx): New.
6163         (libc_feupdateenvl_ctx): New.
6164         (libc_feholdsetround_mips_ctx): New.
6165         (libc_feholdsetround_ctx): New.
6166         (libc_feholdsetroundf_ctx): New.
6167         (libc_feholdsetroundl_ctx): New.
6168         (libc_feresetround_mips_ctx): New.
6169         (libc_feresetround_ctx): New.
6170         (libc_feresetroundf_ctx): New.
6171         (libc_feresetroundl_ctx): New.
6172
6173 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
6174
6175         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
6176
6177         * manual/ipc.texi: New file.
6178         * manual/Makefile (chapters): Add ipc.
6179         * manual/job.texi: Add "Inter-Process Communication" to next.
6180         * manual/process.texi: Add "Inter-Process Communication" to prev.
6181
6182 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6183
6184         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6185
6186 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
6187
6188         * malloc/malloc.c (__libc_calloc): Simplify implementation.
6189
6190         * manual/arith.texi: Fix spaces after sentences.
6191         * manual/charset.texi: Likewise.
6192         * manual/errno.texi: Likewise.
6193         * manual/install.texi: Likewise.
6194         * manual/llio.texi: Likewise.
6195         * manual/locale.texi: Likewise.
6196         * manual/maint.texi: Likewise.
6197         * manual/math.texi: Likewise.
6198         * manual/memory.texi: Likewise.
6199         * manual/message.texi: Likewise.
6200         * manual/probes.texi: Likewise.
6201         * manual/resource.texi: Likewise.
6202         * manual/signal.texi: Likewise.
6203         * manual/socket.texi: Likewise.
6204         * manual/stdio.texi: Likewise.
6205         * manual/string.texi: Likewise.
6206         * manual/time.texi: Likewise.
6207         * manual/users.texi: Likewise.
6208
6209 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
6210
6211         [BZ #16632]
6212         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
6213         _DEFAULT_SOURCE is defined.
6214
6215 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
6216             Carlos O'Donell  <carlos@redhat.com>
6217
6218         [BZ #16613]
6219         * elf/dl-tls.c (_dl_count_modids): New function.
6220         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
6221         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
6222         audit library and increment generation counter.
6223         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
6224         * elf/tst-audit9.c: New file.
6225         * elf/tst-auditmod9a.c: New file.
6226         * elf/tst-auditmod9b.c: New file.
6227         * elf/Makefile: Add rules to build and run tst-audit9.
6228
6229 2014-02-25  Florian Weimer  <fweimer@redhat.com>
6230
6231         [BZ #15347]
6232         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
6233
6234 2014-02-25  Will Newton  <will.newton@linaro.org>
6235
6236         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
6237         (__longjmp): Restore sp and lr before restoring callee
6238         saved registers.  Add longjmp and longjmp_target
6239         SystemTap probe point.
6240         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
6241         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
6242         Define to zero to match jmpbuf layout.
6243         * sysdeps/arm/setjmp.S: Include stap-probe.h.
6244         (__sigsetjmp): Save sp and lr before saving callee
6245         saved registers.  Add setjmp SystemTap probe point.
6246
6247 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
6248
6249         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6250
6251 2014-02-24  Andreas Schwab  <schwab@suse.de>
6252
6253         [BZ #15804]
6254         * elf/pldd.c (wait_for_ptrace_stop): New function.
6255         (main): Call it after attaching.
6256
6257 2014-02-22  Roland McGrath  <roland@hack.frob.com>
6258
6259         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
6260         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
6261         Versions files is now verboten.
6262         * hurd/Versions (libc: GLIBC_2.0):
6263         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
6264         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
6265         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
6266         * mach/Versions: Likewise.
6267
6268         * csu/Versions: Remove unused %include.
6269         * resolv/Versions: Likewise.
6270
6271 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
6272
6273         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
6274         ($(objpfx)check-local-headers.out): Likewise.
6275         ($(objpfx)begin-end-check.out): Likewise.
6276         * Makerules (check-abi-%.out): Likewise.
6277         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
6278         ($(objpfx)test2.cat): Likewise.
6279         ($(objpfx)de/libc.cat): Likewise.
6280         ($(objpfx)test-gencat.out): Likewise.
6281         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
6282         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
6283         ($(objpfx)noload-mem): Likewise.
6284         ($(objpfx)tst-pathopt.out): Likewise.
6285         ($(objpfx)tst-rtld-load-self.out): Likewise.
6286         ($(objpfx)tst-array1-cmp.out): Likewise.
6287         ($(objpfx)tst-array1-static-cmp.out): Likewise.
6288         ($(objpfx)tst-array2-cmp.out): Likewise.
6289         ($(objpfx)tst-array3-cmp.out): Likewise.
6290         ($(objpfx)tst-array4-cmp.out): Likewise.
6291         ($(objpfx)tst-array5-cmp.out): Likewise.
6292         ($(objpfx)tst-array5-static-cmp.out): Likewise.
6293         ($(objpfx)check-textrel.out): Likewise.
6294         ($(objpfx)check-execstack.out): Likewise.
6295         ($(objpfx)check-localplt.out): Likewise.
6296         ($(objpfx)order2-cmp.out): Likewise.
6297         ($(objpfx)tst-leaks1-mem): Likewise.
6298         ($(objpfx)tst-leaks1-static-mem): Likewise.
6299         ($(objpfx)tst-initorder-cmp.out): Likewise.
6300         ($(objpfx)tst-initorder2-cmp.out): Likewise.
6301         ($(objpfx)tst-unused-dep.out): Likewise.
6302         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
6303         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6304         * iconv/Makefile (test-iconvconfig): Likewise.
6305         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
6306         ($(objpfx)iconv-test.out): Likewise.
6307         ($(objpfx)tst-tables.out): Likewise.
6308         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
6309         ($(objpfx)tst-gettext.out): Likewise.
6310         ($(objpfx)tst-translit.out): Likewise.
6311         ($(objpfx)tst-gettext2.out): Likewise.
6312         ($(objpfx)tst-gettext4.out): Likewise.
6313         ($(objpfx)tst-gettext6.out): Likewise.
6314         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
6315         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6316         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
6317         ($(objpfx)tst-fopenloc-mem.out): Likewise.
6318         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6319         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
6320         * posix/Makefile ($(objpfx)globtest.out): Likewise.
6321         ($(objpfx)wordexp-tst.out): Likewise.
6322         ($(objpfx)annexc.out): Likewise.
6323         ($(objpfx)tst-fnmatch-mem): Likewise.
6324         ($(objpfx)bug-regex2-mem): Likewise.
6325         ($(objpfx)bug-regex14-mem): Likewise.
6326         ($(objpfx)bug-regex21-mem): Likewise.
6327         ($(objpfx)bug-regex31-mem): Likewise.
6328         ($(objpfx)tst-vfork3-mem): Likewise.
6329         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6330         ($(objpfx)tst-pcre-mem): Likewise.
6331         ($(objpfx)tst-boost-mem): Likewise.
6332         ($(objpfx)tst-getconf.out): Likewise.
6333         ($(objpfx)bug-ga2-mem): Likewise.
6334         ($(objpfx)bug-glob2-mem): Likewise.
6335         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
6336         ($(objpfx)mtrace-tst-leaks2): Likewise.
6337         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
6338         ($(objpfx)tst-printf.out): Likewise.
6339         ($(objpfx)tst-setvbuf1.out): Likewise.
6340         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
6341         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
6342         ($(objpfx)tst-fmtmsg.out): Likewise.
6343         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
6344         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
6345
6346         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
6347         * bits/sigaction.h [__USE_MISC]: Likewise.
6348         * bits/waitstatus.h: Update #endif comments.
6349         * ctype/ctype.h: Likewise.
6350         * dirent/dirent.h: Likewise.
6351         [__USE_MISC]: Remove redundant conditionals.
6352         * grp/grp.h: Update #endif comments.
6353         [__USE_GNU]: Remove redundant conditionals.
6354         [__USE_MISC]: Likewise.
6355         * inet/netinet/in.h [__USE_GNU]: Likewise.
6356         * io/sys/stat.h [__USE_MISC]: Likewise.
6357         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
6358         * libio/bits/stdio.h: Update #endif comments.
6359         [__USE_MISC]: Remove redundant conditionals.
6360         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
6361         * libio/stdio.h: Update #endif comments.
6362         [__USE_MISC]: Remove redundant conditionals.
6363         * math/bits/math-finite.h [__USE_MISC]: Likewise.
6364         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
6365         * math/math.h: Update #else and #endif comments.
6366         [__USE_MISC]: Remove redundant conditionals.
6367         * misc/sys/uio.h: Update #endif comments.
6368         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
6369         * posix/glob.h [__USE_MISC]: Likewise.
6370         * posix/sys/types.h: Update #endif comments.
6371         [__USE_MISC]: Remove redundant conditionals.
6372         * posix/sys/wait.h: Update #endif comments.
6373         [__USE_MISC]: Remove redundant conditionals.
6374         * posix/unistd.h: Update #endif comments.
6375         [__USE_MISC]: Remove redundant conditionals.
6376         * pwd/pwd.h [__USE_GNU]: Likewise.
6377         [__USE_MISC]: Likewise.
6378         * resolv/netdb.h [__USE_GNU]: Likewise.
6379         * signal/signal.h: Update #endif comments.
6380         [__USE_MISC]: Remove redundant conditionals.
6381         * stdlib/stdlib.h: Update #else and #endif comments.
6382         [__USE_MISC]: Remove redundant conditionals.
6383         [__USE_GNU]: Likewise.
6384         * string/bits/string2.h [__USE_MISC]: Likewise.
6385         * string/string.h: Update #endif comments.
6386         [__USE_MISC]: Remove redundant conditionals.
6387         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
6388         Likewise.
6389         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
6390         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
6391         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
6392         Likewise.
6393         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
6394         Likewise.
6395         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
6396         comments.
6397         [__USE_MISC]: Remove redundant conditionals.
6398         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
6399         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
6400         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
6401         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
6402         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
6403         Likewise.
6404         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
6405         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
6406         Likewise.
6407         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
6408         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
6409         Likewise.
6410         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
6411         Likewise.
6412         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
6413         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
6414         Likewise.
6415         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
6416         Likewise.
6417         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
6418         * sysdeps/x86/bits/string.h: Update #endif comments.
6419         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
6420         conditionals.
6421         * time/sys/time.h: Update #endif comments.
6422         * time/time.h: Likewise.
6423         [__USE_MISC]: Remove redundant conditionals.
6424
6425 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
6426
6427         [BZ #16600]
6428         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
6429
6430 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
6431
6432         * Versions.def (librt): Add GLIBC_2.17.
6433
6434 2014-02-21  Adam Conrad  <adconrad@0c3.net>
6435
6436         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
6437         synonym for _SYS_AUXV_H to allow direct inclusion.
6438         * sysdeps/sparc/bits/hwcap.h: Likewise.
6439         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
6440         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
6441         * sysdeps/sparc/sysdep.h: Likewise.
6442
6443 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6444
6445         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
6446
6447 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6448
6449         * benchtests/bench-strrchr.c: Print length instead of position.
6450
6451 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
6452
6453         [BZ #16611]
6454         * sysdeps/unix/sysv/linux/kernel-features.h
6455         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
6456         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
6457         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
6458         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
6459         Likewise.
6460         [__i386__ || __powerpc__ || __sh__ || __sparc__]
6461         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6462         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
6463         (__ASSUME_SENDMMSG): Define instead of using previous
6464         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
6465         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6466         (__ASSUME_SENDMMSG_SYSCALL): Define.
6467         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6468         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
6469         Likewise.
6470         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6471         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6472         Likewise.
6473         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6474         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6475         Likewise.
6476         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
6477         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6478         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6479         [__ASSUME_SENDMMSG]: Change conditionals to
6480         [__ASSUME_SENDMMSG_SOCKETCALL].
6481         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6482         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
6483         Define.
6484         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6485         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
6486         Likewise.
6487         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
6488         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6489         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6490         [!__ASSUME_SENDMMSG]: Change conditional to
6491         [!__ASSUME_SENDMMSG_SOCKETCALL].
6492         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6493         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6494         Define.
6495
6496         [BZ #16610]
6497         * sysdeps/unix/sysv/linux/kernel-features.h
6498         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
6499         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
6500         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
6501         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
6502         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
6503         [__i386__ || __sparc__]
6504         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6505         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
6506         (__ASSUME_RECVMMSG): Define instead of using previous
6507         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
6508         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6509         (__ASSUME_RECVMMSG_SYSCALL): Define.
6510         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6511         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6512         Likewise.
6513         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6514         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6515         Likewise.
6516         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6517         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6518         Likewise.
6519         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
6520         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
6521         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
6522         [__ASSUME_RECVMMSG]: Change condition to
6523         [__ASSUME_RECVMMSG_SOCKETCALL].
6524         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6525         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6526         Define.
6527         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6528         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6529         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6530         Likewise.
6531         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
6532         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
6533         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
6534         [!__ASSUME_RECVMMSG]: Change condition to
6535         [!__ASSUME_RECVMMSG_SOCKETCALL].
6536         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6537         (__ASSUME_RECVMMSG_SYSCALL): Define.
6538
6539         [BZ #16609]
6540         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
6541         __powerpc__ || __s390__ || __sh__ || __sparc__]
6542         (__ASSUME_SOCKETCALL): Define.
6543         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
6544         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
6545         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
6546         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
6547         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
6548         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
6549         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
6550         (__ASSUME_ACCEPT4): Define instead of using previous
6551         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
6552         __powerpc__ || __sparc__ || __s390__)] condition.
6553         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6554         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
6555         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
6556         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
6557         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
6558         [!__ASSUME_ACCEPT4]: Change condition to
6559         [!__ASSUME_ACCEPT4_SOCKETCALL].
6560         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6561         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
6562         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
6563         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6564         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
6565         __ASSUME_ACCEPT4_SYSCALL.
6566         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
6567         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
6568         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6569         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
6570         __ASSUME_ACCEPT4_SYSCALL.
6571         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
6572         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
6573         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
6574         [__ASSUME_ACCEPT4]: Change condition to
6575         [__ASSUME_ACCEPT4_SOCKETCALL].
6576         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6577         (__ASSUME_SOCKETCALL): Define.
6578         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
6579         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6580         (__ASSUME_SOCKETCALL): Define.
6581         (__ASSUME_ACCEPT4): Remove.
6582         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
6583         Define.
6584         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6585         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
6586         Likewise.
6587         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6588         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
6589
6590         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
6591         macro.
6592         (HWCAP_ARM_LPAE): Likewise.
6593         (HWCAP_ARM_EVTSTRM): Likewise.
6594         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
6595         Add vpfd32, lpae and evtstrm.
6596         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
6597         Increase to 22.
6598
6599 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
6600
6601         * math/auto-libm-test-in: Add tests of clog10.
6602         * math/auto-libm-test-out: Regenerated.
6603         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
6604         * sysdeps/i386/fpu/libm-test-ulps: Update.
6605         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6606
6607 2014-02-18  Andreas Schwab  <schwab@suse.de>
6608
6609         [BZ #16574]
6610         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
6611         Store non-zero if the second buffer was newly allocated.
6612         (send_dg): Likewise.
6613         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
6614         to send_vc and send_dg.
6615         (res_nsend): Pass NULL for ansp2_malloced.
6616         * resolv/res_query.c (__libc_res_nquery): Add parameter
6617         answerp2_malloced and pass it down to __libc_res_nsend.
6618         (res_nquery): Pass additional NULL to __libc_res_nquery.
6619         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
6620         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
6621         second answer buffer if answerp2_malloced was set.
6622         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
6623         (__libc_res_nquerydomain): Add parameter
6624         answerp2_malloced and pass it down to __libc_res_nquery.
6625         (res_nquerydomain): Pass additional NULL to
6626         __libc_res_nquerydomain.
6627         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
6628         additional NULL to __libc_res_nsend and __libc_res_nquery.
6629         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
6630         additional NULL to __libc_res_nsearch.
6631         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
6632         parameter of __libc_res_nsearch to check for separately allocated
6633         second buffer.
6634         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
6635         __libc_res_nquery.
6636         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
6637         additional NULL to __libc_res_nquery.
6638         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
6639         __libc_res_nsearch.
6640         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
6641         * include/resolv.h: Update prototypes of __libc_res_nquery,
6642         __libc_res_nsearch, __libc_res_nsend.
6643
6644 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
6645
6646         * math/auto-libm-test-in: Add tests of fma.
6647         * math/auto-libm-test-out: Regenerated.
6648         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
6649         (fma_towardzero_test_data): Likewise.
6650         (fma_downward_test_data): Likewise.
6651         (fma_upward_test_data): Likewise.
6652         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
6653         mpc_mode.
6654         (rounding_modes): Add values for new field.
6655         (func_calc_method): Add value mpfr_fff_f.
6656         (func_calc_desc): Add mpfr_fff_f union field.
6657         (test_function): Add field exact_args.
6658         (FUNC): Add macro argument EXACT_ARGS.
6659         (FUNC_mpfr_f_f): Update call to FUNC.
6660         (FUNC_mpfr_f_f): Likewise.
6661         (FUNC_mpfr_ff_f): Likewise.
6662         (FUNC_mpfr_if_f): Likewise.
6663         (FUNC_mpc_c_f): Likewise.
6664         (FUNC_mpc_c_c): Likewise.
6665         (test_functions): Add fma.  Update calls to FUNC.
6666         (handle_input_arg): Add argument exact_args.
6667         (add_test): Update call to handle_input_arg.
6668         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
6669         (output_for_one_input_case): Update call to calc_generic_results.
6670         Recalculate exact zero results in each rounding mode.
6671
6672         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
6673         non-negative before setting low bit.
6674         * math/auto-libm-test-in: Mark one asin test possibly having
6675         spurious underflow.
6676         * math/auto-libm-test-out: Regenerated.
6677         * sysdeps/i386/fpu/libm-test-ulps: Update.
6678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6679
6680 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
6681
6682         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
6683         * sysdeps/unix/sysv/linux/microblaze: Move directory from
6684         ports/sysdeps/unix/sysv/linux/microblaze.
6685         * README: Add missing listing for microblaze*-*-linux-gnu.
6686
6687 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
6688
6689         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
6690         * sysdeps/unix/sysv/linux/ia64: Move directory from
6691         ports/sysdeps/unix/sysv/linux/ia64.
6692         * README: Update listing for ia64-*-linux-gnu.
6693
6694 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
6695             Joseph Myers  <joseph@codesourcery.com>
6696
6697         * Makeconfig (test-name): New variable.
6698         (evaluate-test): Likewise.
6699         * Makerules (do-test-clean): Remove .test-result files.
6700         (common-mostlyclean): Likewise.
6701         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
6702         * scripts/evaluate-test.sh: New file.
6703
6704 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
6705
6706         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
6707         separate $(objpfx)tst-fopenloc-cmp.out and
6708         $(objpfx)tst-fopenloc-mem.out targets.
6709         (tests): Update dependencies.
6710         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
6711         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
6712         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
6713         (tst-rxspencer-no-utf8-ARGS): New variable.
6714         (tst-rxspencer-no-utf8-ENV): Likewise.
6715         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
6716         instead of $(objpfx)tst-rxspencer-mem.
6717         ($(objpfx)tst-rxspencer-mem): Change target to
6718         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
6719         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
6720         * posix/tst-rxspencer-no-utf8.c: New file.
6721
6722         * elf/Makefile ($(objpfx)order.out): Remove rule.
6723         [$(run-built-tests) = yes] (tests): Depend on
6724         $(objpfx)order-cmp.out.
6725         ($(objpfx)order-cmp.out): New rule.
6726         [$(run-built-tests) = yes] (tests): Depend on
6727         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
6728         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
6729         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
6730         $(objpfx)tst-array5-static-cmp.out.
6731         ($(objpfx)tst-array1.out): Remove rule.
6732         ($(objpfx)tst-array1-cmp.out): New rule.
6733         ($(objpfx)tst-array1-static.out): Remove rule.
6734         ($(objpfx)tst-array1-static-cmp.out): New rule.
6735         ($(objpfx)tst-array2.out): Remove rule.
6736         ($(objpfx)tst-array2-cmp.out): New rule.
6737         ($(objpfx)tst-array3.out): Remove rule.
6738         ($(objpfx)tst-array3-cmp.out): New rule.
6739         ($(objpfx)tst-array4.out): Remove rule.
6740         ($(objpfx)tst-array4-cmp.out): New rule.
6741         ($(objpfx)tst-array5.out): Remove rule.
6742         ($(objpfx)tst-array5-cmp.out): New rule.
6743         ($(objpfx)tst-array5-static.out): Remove rule.
6744         ($(objpfx)tst-array5-static-cmp.out): New rule.
6745         [$(run-built-tests) = yes] (tests): Depend on
6746         $(objpfx)order2-cmp.out.
6747         ($(objpfx)order2.out): Remove rule.
6748         ($(objpfx)order2-cmp.out): New rule.
6749         ($(objpfx)tst-initorder.out): Remove rule.
6750         [$(run-built-tests) = yes] (tests): Depend on
6751         $(objpfx)tst-initorder-cmp.out.
6752         ($(objpfx)tst-initorder-cmp.out): New rule.
6753         ($(objpfx)tst-initorder2.out): Remove rule.
6754         [$(run-built-tests) = yes] (tests): Depend on
6755         $(objpfx)tst-initorder2-cmp.out.
6756         ($(objpfx)tst-initorder2-cmp.out): New rule.
6757         [$(run-built-tests) = yes] (tests): Depend on
6758         $(objpfx)tst-unused-dep-cmp.out.
6759         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
6760         ($(objpfx)tst-unused-dep-cmp.out): New rule.
6761         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
6762         on $(objpfx)tst-setvbuf1-cmp.out.
6763         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
6764         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
6765         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
6766         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
6767         ($(objpfx)tst-svc.out): Remove rule.
6768         ($(objpfx)tst-svc-cmp.out): New rule.
6769
6770 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
6771
6772         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
6773         * ctype/ctype.h [__USE_MISC]: Likewise.
6774         * dirent/dirent.h [__USE_MISC]: Likewise.
6775         * grp/grp.h [__USE_MISC]: Likewise.
6776         * io/fcntl.h [__USE_MISC]: Likewise.
6777         * io/sys/stat.h [__USE_MISC]: Likewise.
6778         * libio/stdio.h [__USE_MISC]: Likewise.
6779         * posix/unistd.h [__USE_MISC]: Likewise.
6780         * pwd/pwd.h [__USE_MISC]: Likewise.
6781         * stdlib.h [__USE_MISC]: Likewise.
6782         * string/bits/string2.h [__USE_MISC]: Likewise.
6783         * string/string.h [__USE_MISC]: Likewise.
6784         * time/time.h [__USE_MISC]: Likewise.
6785
6786 2014-02-13  Andreas Schwab  <schwab@suse.de>
6787
6788         [BZ #16574]
6789         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
6790         second answer buffer if it was separately allocated.
6791
6792 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
6793
6794         * sysdeps/mips/math-tests.h: Include <features.h>.
6795         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
6796         (ROUNDING_TESTS_long_double): Do not define.
6797         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
6798         (EXCEPTION_TESTS_long_double): Likewise.
6799         * sysdeps/mips/mips64/libm-test-ulps: Update.
6800
6801         * include/features.h (__USE_BSD): Remove macro definitions.
6802         (__USE_SVID): Likewise.
6803         (_BSD_SOURCE): Likewise.
6804         (_SVID_SOURCE): Likewise.
6805         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
6806         from definition of _DEFAULT_SOURCE.
6807         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
6808         [_DEFAULT_SOURCE].
6809         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
6810         * bits/mman.h [__USE_BSD]: Likewise.
6811         * bits/termios.h [__USE_BSD]: Likewise.
6812         * bits/waitstatus.h [__USE_BSD]: Likewise.
6813         * ctype/ctype.h [__USE_SVID]: Likewise.
6814         * dirent/dirent.h [__USE_BSD]: Likewise.
6815         * grp/grp.h [__USE_SVID]: Likewise.
6816         [__USE_BSD]: Likewise.
6817         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
6818         * io/fcntl.h [__USE_BSD]: Likewise.
6819         * io/ftw.h [__USE_BSD]: Likewise.
6820         * io/sys/stat.h [__USE_BSD]: Likewise.
6821         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
6822         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
6823         * libio/stdio.h [__USE_SVID]: Likewise.
6824         [__USE_BSD]: Likewise.
6825         * math/math.h [__USE_SVID]: Likewise.
6826         [__USE_BSD]: Likewise.
6827         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
6828         * misc/bits/syslog.h [__USE_BSD]: Likewise.
6829         * misc/search.h [__USE_SVID]: Likewise.
6830         * misc/sys/mman.h [__USE_BSD]: Likewise.
6831         * misc/sys/syslog.h [__USE_BSD]: Likewise.
6832         * misc/sys/uio.h [__USE_BSD]: Likewise.
6833         * posix/bits/unistd.h [__USE_BSD]: Likewise.
6834         * posix/glob.h [__USE_BSD]: Likewise.
6835         * posix/regex.h [__USE_BSD]: Likewise.
6836         * posix/sys/types.h [__USE_BSD]: Likewise.
6837         [__USE_SVID]: Likewise.
6838         * posix/sys/utsname.h [__USE_SVID]: Likewise.
6839         * posix/sys/wait.h [__USE_BSD]: Likewise.
6840         [__USE_SVID]: Likewise.
6841         * posix/unistd.h [__USE_BSD]: Likewise.
6842         [__USE_SVID]: Likewise.
6843         * pwd/pwd.h [__USE_SVID]: Likewise.
6844         * resolv/netdb.h [__USE_BSD]: Likewise.
6845         * setjmp/setjmp.h [__USE_BSD]: Likewise.
6846         * signal/signal.h [__USE_BSD]: Likewise.
6847         [__USE_SVID]: Likewise.
6848         * socket/sys/socket.h [__USE_BSD]: Likewise.
6849         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
6850         * stdlib/stdlib.h [__USE_BSD]: Likewise.
6851         [__USE_SVID]: Likewise.
6852         * string/bits/string2.h [__USE_BSD]: Likewise.
6853         [__USE_SVID]: Likewise.
6854         * string/bits/string3.h [__USE_BSD]: Likewise.
6855         * string/endian.h [__USE_BSD]: Likewise.
6856         * string/string.h [__USE_SVID]: Likewise.
6857         [__USE_BSD]: Likewise.
6858         * string/strings.h [__USE_BSD]: Likewise.
6859         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
6860         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
6861         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
6862         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
6863         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
6864         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
6865         Likewise.
6866         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
6867         Likewise.
6868         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
6869         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
6870         Likewise.
6871         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
6872         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
6873         Likewise.
6874         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
6875         Likewise.
6876         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
6877         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
6878         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
6879         Likewise.
6880         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
6881         Likewise.
6882         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
6883         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
6884         * termios/termios.h [__USE_BSD]: Likewise.
6885         * time/sys/time.h [__USE_BSD]: Likewise.
6886         * time/time.h [__USE_BSD]: Likewise.
6887         [__USE_SVID]: Likewise.
6888
6889         * Makefile (subdir_targets): Remove subdir_lint.out.
6890
6891         * stdio-common/Makefile (do-tst-unbputc): Remove target.
6892         (do-tst-printf): Likewise.
6893         (tests): Depend directly on $(objpfx)tst-unbputc.out and
6894         $(objpfx)tst-printf.out.
6895
6896         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
6897
6898         * Makerules (check-abi-%): Change target to
6899         $(objpfx)check-abi-%.out.
6900         (check-abi target): Update dependencies.
6901         (check-abi-pattern variable): Redirect output of diff to $@.
6902         (check-abi variable): Likewise.
6903         * elf/Makefile (check-abi): Update dependencies.
6904
6905         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
6906         unused.
6907         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
6908         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
6909         subnormal range.
6910         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
6911         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
6912         value has largest subnormal exponent.
6913         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
6914         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
6915         * sysdeps/aarch64/soft-fp/sfp-machine.h
6916         (_FP_TININESS_AFTER_ROUNDING): New macro.
6917         * sysdeps/alpha/soft-fp/sfp-machine.h
6918         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6919         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
6920         Likewise.
6921         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
6922         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6923         * sysdeps/mips/soft-fp/sfp-machine.h
6924         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6925         * sysdeps/powerpc/soft-fp/sfp-machine.h
6926         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6927         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
6928         Likewise.
6929         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6930         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6931         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6932         (_FP_TININESS_AFTER_ROUNDING): Likewise.
6933         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
6934         Likewise.
6935
6936 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
6937
6938         [BZ #16545]
6939         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
6940         model 1.
6941
6942 2014-02-12  Richard Henderson  <rth@redhat.com>
6943
6944         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
6945         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
6946         * sysdeps/unix/sysv/linux/alpha: Move directory from
6947         ports/sysdeps/unix/sysv/linux/alpha.
6948         * README: Update listing for alpha-*-linux-gnu.
6949
6950 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
6951
6952         * include/features.h: Update comment documenting feature test
6953         macros.
6954         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
6955         _DEFAULT_SOURCE.
6956         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
6957         (_SVID_SOURCE): Likewise.
6958         (_DEFAULT_SOURCE): Update description of default features.
6959         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
6960         with _GNU_SOURCE.
6961         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
6962         (S_ISVTX): Likewise.
6963         * manual/math.texi (Mathematical Constants): Likewise.
6964         * manual/signal.texi (Interrupted Primitives): Likewise.
6965         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
6966         * math/test-matherr.c (_SVID_SOURCE): Do not define.
6967         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
6968         Don't refer to _SVID_SOURCE in warning text.
6969
6970         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6971
6972         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
6973         already defined.
6974         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
6975         * sysdeps/mips/dl-lookup.c: Remove.
6976         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
6977
6978 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
6979
6980         [BZ #16447]
6981         * math/auto-libm-test-in: Add testcase for expl.
6982         * math/auto-libm-test-out: Regenerate.
6983         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
6984         calculation of unsafe.
6985         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
6986
6987 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6988
6989         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
6990         * sysdeps/unix/sysv/linux/aarch64: Move directory from
6991         ports/sysdeps/unix/sysv/linux/aarch64.
6992         * README: Update listing for aarch64*-*-linux-gnu.
6993
6994 2014-02-11  Will Newton  <will.newton@linaro.org>
6995
6996         * manual/probes.texi (Mathematical Function Probes): Use
6997         "triggered" instead of "hit".
6998
6999         * manual/probes.texi (Internal Probes): Add documentation
7000         of setjmp, longjmp and longjmp_target probes.
7001
7002         * include/stap-probe.h: Add comment about probe argument
7003         format.
7004
7005         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7006         definition.  (tr_where, tr_freehook, tr_mallochook,
7007         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7008
7009 2014-02-11  David S. Miller  <davem@davemloft.net>
7010
7011         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7012         processing int_tests.
7013
7014 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7015
7016         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7017         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7018         * sysdeps/unix/sysv/linux/mips: Move directory from
7019         ports/sysdeps/unix/sysv/linux/mips.
7020         * README: Update listing for mips-*-linux-gnu and
7021         mips64-*-linux-gnu.
7022
7023 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7024
7025         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7026         * sysdeps/unix/sysv/linux/m68k: Move directory from
7027         ports/sysdeps/unix/sysv/linux/m68k.
7028         * README: Update listing for m68k-*-linux-gnu.
7029
7030 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7031
7032         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7033         * sysdeps/unix/sysv/linux/generic: Move directory from
7034         ports/sysdeps/unix/sysv/linux/generic.
7035         * sysdeps/unix/sysv/linux/tile: Move directory from
7036         ports/sysdeps/unix/sysv/linux/tile.
7037         * README: Update listing for tile*-*-linux-gnu.
7038
7039 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7040
7041         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7042         __builtin_expect.
7043         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7044         * catgets/open_catalog.c (__open_catalog): Likewise.
7045         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7046         * debug/confstr_chk.c: Likewise.
7047         * debug/fread_chk.c (__fread_chk): Likewise.
7048         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7049         * debug/getgroups_chk.c: Likewise.
7050         * debug/mbsnrtowcs_chk.c: Likewise.
7051         * debug/mbsrtowcs_chk.c: Likewise.
7052         * debug/mbstowcs_chk.c: Likewise.
7053         * debug/memcpy_chk.c: Likewise.
7054         * debug/memmove_chk.c: Likewise.
7055         * debug/mempcpy_chk.c: Likewise.
7056         * debug/memset_chk.c: Likewise.
7057         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7058         * debug/strcat_chk.c (__strcat_chk): Likewise.
7059         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7060         * debug/strncat_chk.c (__strncat_chk): Likewise.
7061         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7062         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7063         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7064         * debug/wcpncpy_chk.c: Likewise.
7065         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7066         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7067         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7068         * debug/wcsncpy_chk.c: Likewise.
7069         * debug/wcsnrtombs_chk.c: Likewise.
7070         * debug/wcsrtombs_chk.c: Likewise.
7071         * debug/wcstombs_chk.c: Likewise.
7072         * debug/wmemcpy_chk.c: Likewise.
7073         * debug/wmemmove_chk.c: Likewise.
7074         * debug/wmempcpy_chk.c: Likewise.
7075         * debug/wmemset_chk.c: Likewise.
7076         * dirent/scandirat.c (SCANDIRAT): Likewise.
7077         * dlfcn/dladdr1.c (dladdr1): Likewise.
7078         * dlfcn/dladdr.c (dladdr): Likewise.
7079         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7080         * dlfcn/dlerror.c (__dlerror): Likewise.
7081         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7082         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7083         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7084         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7085         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7086         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7087         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7088         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7089         Likewise.
7090         * elf/dl-conflict.c: Likewise.
7091         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7092         * elf/dl-dst.h: Likewise.
7093         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
7094         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
7095         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7096         * elf/dl-init.c (call_init, _dl_init): Likewise.
7097         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
7098         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
7099         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
7100         Likewise.
7101         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
7102         Likewise.
7103         * elf/dl-minimal.c (__libc_memalign): Likewise.
7104         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
7105         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7106         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7107         * elf/dl-sym.c (do_sym): Likewise.
7108         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
7109         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
7110         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
7111         * elf/dl-writev.h (_dl_writev): Likewise.
7112         * elf/ldconfig.c (search_dir): Likewise.
7113         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
7114         (dl_main): Likewise.
7115         * elf/setup-vdso.h (setup_vdso): Likewise.
7116         * grp/compat-initgroups.c (compat_call): Likewise.
7117         * grp/fgetgrent.c (fgetgrent): Likewise.
7118         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
7119         * grp/putgrent.c (putgrent): Likewise.
7120         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7121         Likewise.
7122         * hurd/hurdinit.c: Likewise.
7123         * iconvdata/8bit-gap.c (struct): Likewise.
7124         * iconvdata/ansi_x3.110.c : Likewise.
7125         * iconvdata/big5.c : Likewise.
7126         * iconvdata/big5hkscs.c : Likewise.
7127         * iconvdata/cp1255.c: Likewise.
7128         * iconvdata/cp1258.c : Likewise.
7129         * iconvdata/cp932.c : Likewise.
7130         * iconvdata/euc-cn.c: Likewise.
7131         * iconvdata/euc-jisx0213.c : Likewise.
7132         * iconvdata/euc-jp.c: Likewise.
7133         * iconvdata/euc-jp-ms.c : Likewise.
7134         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
7135         * iconvdata/gb18030.c : Likewise.
7136         * iconvdata/gbbig5.c (const): Likewise.
7137         * iconvdata/gbgbk.c: Likewise.
7138         * iconvdata/gbk.c : Likewise.
7139         * iconvdata/ibm1364.c : Likewise.
7140         * iconvdata/ibm930.c : Likewise.
7141         * iconvdata/ibm932.c: Likewise.
7142         * iconvdata/ibm933.c : Likewise.
7143         * iconvdata/ibm935.c : Likewise.
7144         * iconvdata/ibm937.c : Likewise.
7145         * iconvdata/ibm939.c : Likewise.
7146         * iconvdata/ibm943.c: Likewise.
7147         * iconvdata/iso_11548-1.c: Likewise.
7148         * iconvdata/iso-2022-cn.c : Likewise.
7149         * iconvdata/iso-2022-cn-ext.c : Likewise.
7150         * iconvdata/iso-2022-jp-3.c: Likewise.
7151         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
7152         * iconvdata/iso-2022-kr.c : Likewise.
7153         * iconvdata/iso646.c (gconv_end): Likewise.
7154         * iconvdata/iso_6937-2.c : Likewise.
7155         * iconvdata/iso_6937.c : Likewise.
7156         * iconvdata/iso8859-1.c: Likewise.
7157         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
7158         * iconvdata/shift_jisx0213.c : Likewise.
7159         * iconvdata/sjis.c : Likewise.
7160         * iconvdata/t.61.c : Likewise.
7161         * iconvdata/tcvn5712-1.c : Likewise.
7162         * iconvdata/tscii.c: Likewise.
7163         * iconvdata/uhc.c : Likewise.
7164         * iconvdata/unicode.c (gconv_end): Likewise.
7165         * iconvdata/utf-16.c (gconv_end): Likewise.
7166         * iconvdata/utf-32.c (gconv_end): Likewise.
7167         * iconvdata/utf-7.c (base64): Likewise.
7168         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7169         * iconv/gconv_close.c (__gconv_close): Likewise.
7170         * iconv/gconv_open.c (__gconv_open): Likewise.
7171         * iconv/gconv_simple.c (internal_ucs4_loop_single)
7172         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
7173         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
7174         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
7175         (ucs4le_internal_loop_single): Likewise.
7176         * iconv/iconv.c (iconv): Likewise.
7177         * iconv/iconv_close.c: Likewise.
7178         * iconv/loop.c (SINGLE): Likewise.
7179         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
7180         * include/atomic.h: Likewise.
7181         * inet/inet6_option.c (option_alloc): Likewise.
7182         * intl/bindtextdom.c (set_binding_values): Likewise.
7183         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
7184         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7185         * intl/localealias.c (read_alias_file): Likewise.
7186         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
7187         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
7188         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
7189         * libio/fmemopen.c (fmemopen): Likewise.
7190         * libio/iofgets.c (_IO_fgets): Likewise.
7191         * libio/iofgets_u.c (fgets_unlocked): Likewise.
7192         * libio/iofgetws.c (fgetws): Likewise.
7193         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
7194         * libio/iogetdelim.c (_IO_getdelim): Likewise.
7195         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
7196         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
7197         * locale/findlocale.c (_nl_find_locale): Likewise.
7198         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7199         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
7200         Likewise.
7201         * locale/setlocale.c (setlocale): Likewise.
7202         * login/programs/pt_chown.c (main): Likewise.
7203         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
7204         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
7205         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
7206         (mmap, mmap64, mremap, munmap): Likewise.
7207         * math/e_exp2l.c: Likewise.
7208         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
7209         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
7210         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
7211         * math/s_catan.c (__catan): Likewise.
7212         * math/s_catanf.c (__catanf): Likewise.
7213         * math/s_catanh.c (__catanh): Likewise.
7214         * math/s_catanhf.c (__catanhf): Likewise.
7215         * math/s_catanhl.c (__catanhl): Likewise.
7216         * math/s_catanl.c (__catanl): Likewise.
7217         * math/s_ccosh.c (__ccosh): Likewise.
7218         * math/s_ccoshf.c (__ccoshf): Likewise.
7219         * math/s_ccoshl.c (__ccoshl): Likewise.
7220         * math/s_cexp.c (__cexp): Likewise.
7221         * math/s_cexpf.c (__cexpf): Likewise.
7222         * math/s_cexpl.c (__cexpl): Likewise.
7223         * math/s_clog10.c (__clog10): Likewise.
7224         * math/s_clog10f.c (__clog10f): Likewise.
7225         * math/s_clog10l.c (__clog10l): Likewise.
7226         * math/s_clog.c (__clog): Likewise.
7227         * math/s_clogf.c (__clogf): Likewise.
7228         * math/s_clogl.c (__clogl): Likewise.
7229         * math/s_csin.c (__csin): Likewise.
7230         * math/s_csinf.c (__csinf): Likewise.
7231         * math/s_csinh.c (__csinh): Likewise.
7232         * math/s_csinhf.c (__csinhf): Likewise.
7233         * math/s_csinhl.c (__csinhl): Likewise.
7234         * math/s_csinl.c (__csinl): Likewise.
7235         * math/s_csqrt.c (__csqrt): Likewise.
7236         * math/s_csqrtf.c (__csqrtf): Likewise.
7237         * math/s_csqrtl.c (__csqrtl): Likewise.
7238         * math/s_ctan.c (__ctan): Likewise.
7239         * math/s_ctanf.c (__ctanf): Likewise.
7240         * math/s_ctanh.c (__ctanh): Likewise.
7241         * math/s_ctanhf.c (__ctanhf): Likewise.
7242         * math/s_ctanhl.c (__ctanhl): Likewise.
7243         * math/s_ctanl.c (__ctanl): Likewise.
7244         * math/w_pow.c: Likewise.
7245         * math/w_powf.c: Likewise.
7246         * math/w_powl.c: Likewise.
7247         * math/w_scalb.c (sysv_scalb): Likewise.
7248         * math/w_scalbf.c (sysv_scalbf): Likewise.
7249         * math/w_scalbl.c (sysv_scalbl): Likewise.
7250         * misc/error.c (error_tail): Likewise.
7251         * misc/pselect.c (__pselect): Likewise.
7252         * nis/nis_callback.c (__nis_create_callback): Likewise.
7253         * nis/nis_call.c (__nisfind_server): Likewise.
7254         * nis/nis_creategroup.c (nis_creategroup): Likewise.
7255         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
7256         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
7257         * nis/nis_getservlist.c (nis_getservlist): Likewise.
7258         * nis/nis_lookup.c (nis_lookup): Likewise.
7259         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
7260         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
7261         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
7262         * nis/nis_xdr.c (xdr_endpoint): Likewise.
7263         * nis/nss_compat/compat-grp.c (getgrent_next_file)
7264         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
7265         * nis/nss_compat/compat-initgroups.c (add_group)
7266         (internal_getgrent_r): Likewise.
7267         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
7268         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
7269         * nis/nss_compat/compat-spwd.c (getspent_next_file)
7270         (internal_getspnam_r): Likewise.
7271         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
7272         (_nss_nis_getaliasbyname_r): Likewise.
7273         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
7274         (_nss_nis_getntohost_r): Likewise.
7275         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
7276         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
7277         (_nss_nis_getgrgid_r): Likewise.
7278         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
7279         (internal_nis_gethostent_r, internal_gethostbyname2_r)
7280         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
7281         (_nss_nis_gethostbyname4_r): Likewise.
7282         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
7283         (initgroups_netid): Likewise.
7284         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
7285         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
7286         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
7287         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
7288         (_nss_nis_getprotobynumber_r): Likewise.
7289         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
7290         (_nss_nis_getsecretkey): Likewise.
7291         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
7292         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
7293         (_nss_nis_getpwuid_r): Likewise.
7294         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
7295         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
7296         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
7297         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
7298         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
7299         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
7300         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7301         Likewise.
7302         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
7303         (_nss_nisplus_getntohost_r): Likewise.
7304         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
7305         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7306         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
7307         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
7308         Likewise.
7309         * nis/nss_nisplus/nisplus-initgroups.c
7310         (_nss_nisplus_initgroups_dyn): Likewise.
7311         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
7312         (_nss_nisplus_getnetbyaddr_r): Likewise.
7313         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
7314         (_nss_nisplus_getprotobynumber_r): Likewise.
7315         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
7316         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
7317         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
7318         Likewise.
7319         * nis/nss_nisplus/nisplus-service.c
7320         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
7321         (_nss_nisplus_getservbyport_r): Likewise.
7322         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
7323         (_nss_nisplus_getspnam_r): Likewise.
7324         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
7325         Likewise.
7326         * nscd/aicache.c (addhstaiX): Likewise.
7327         * nscd/cache.c (cache_search, prune_cache): Likewise.
7328         * nscd/connections.c (register_traced_file, send_ro_fd)
7329         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
7330         (main_loop_epoll): Likewise.
7331         * nscd/grpcache.c (addgrbyX): Likewise.
7332         * nscd/hstcache.c (addhstbyX): Likewise.
7333         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7334         * nscd/mem.c (gc, mempool_alloc): Likewise.
7335         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
7336         (addinnetgrX): Likewise.
7337         * nscd/nscd-client.h (__nscd_acquire_maplock)
7338         (__nscd_drop_map_ref): Likewise.
7339         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7340         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7341         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
7342         Likewise.
7343         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7344         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7345         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
7346         (__nscd_get_map_ref): Likewise.
7347         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7348         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
7349         Likewise.
7350         * nscd/pwdcache.c (addpwbyX): Likewise.
7351         * nscd/selinux.c (preserve_capabilities): Likewise.
7352         * nscd/servicescache.c (addservbyX): Likewise.
7353         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
7354         * posix/fnmatch.c (fnmatch): Likewise.
7355         * posix/getopt.c (_getopt_internal_r): Likewise.
7356         * posix/glob.c (glob, glob_in_dir): Likewise.
7357         * posix/wordexp.c (exec_comm_child): Likewise.
7358         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
7359         (getanswer_r, gaih_getanswer_slice): Likewise.
7360         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
7361         * resolv/res_init.c: Likewise.
7362         * resolv/res_mkquery.c (res_nmkquery): Likewise.
7363         * resolv/res_query.c (__libc_res_nquery): Likewise.
7364         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
7365         Likewise.
7366         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
7367         * stdio-common/perror.c (perror): Likewise.
7368         * stdio-common/printf_fp.c (___printf_fp): Likewise.
7369         * stdio-common/tmpnam.c (tmpnam): Likewise.
7370         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7371         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
7372         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
7373         Likewise.
7374         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7375         * stdlib/putenv.c (putenv): Likewise.
7376         * stdlib/setenv.c (__add_to_environ): Likewise.
7377         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7378         * stdlib/strtol_l.c (INTERNAL): Likewise.
7379         * string/memmem.c (memmem): Likewise.
7380         * string/strerror.c (strerror): Likewise.
7381         * string/strnlen.c (__strnlen): Likewise.
7382         * string/test-memmem.c (simple_memmem): Likewise.
7383         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
7384         * sunrpc/pm_getport.c (__get_socket): Likewise.
7385         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
7386         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7387         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
7388         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
7389         Likewise.
7390         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7391         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
7392         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
7393         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
7394         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7395         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
7396         Likewise.
7397         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
7398         Likewise.
7399         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7400         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7401         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7402         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
7403         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7404         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
7405         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
7406         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
7407         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
7408         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7409         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7410         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7411         Likewise.
7412         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
7413         Likewise.
7414         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
7415         Likewise.
7416         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
7417         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7418         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
7419         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
7420         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7421         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
7422         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7423         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
7424         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
7425         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
7426         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
7427         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7428         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
7429         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
7430         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7431         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7432         Likewise.
7433         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
7434         Likewise.
7435         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
7436         Likewise.
7437         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
7438         Likewise.
7439         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7440         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7441         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
7442         Likewise.
7443         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
7444         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
7445         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7446         * sysdeps/posix/sleep.c: Likewise.
7447         * sysdeps/posix/tempname.c: Likewise.
7448         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
7449         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
7450         Likewise.
7451         * sysdeps/powerpc/powerpc32/dl-machine.h
7452         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
7453         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
7454         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7455         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
7456         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
7457         Likewise.
7458         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
7459         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
7460         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7461         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
7462         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7463         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
7464         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
7465         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
7466         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7467         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
7468         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
7469         (elf_machine_lazy_rel): Likewise.
7470         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
7471         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
7472         (elf_machine_lazy_rel): Likewise.
7473         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
7474         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
7475         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
7476         * sysdeps/unix/grantpt.c (grantpt): Likewise.
7477         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
7478         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
7479         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7480         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7481         Likewise.
7482         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
7483         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
7484         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
7485         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
7486         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
7487         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
7488         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
7489         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
7490         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7491         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7492         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7493         Likewise.
7494         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
7495         (__posix_fallocate64_l64): Likewise.
7496         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
7497         (posix_fallocate): Likewise.
7498         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7499         Likewise.
7500         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7501         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
7502         (getifaddrs_internal): Likewise.
7503         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
7504         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
7505         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
7506         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
7507         * sysdeps/unix/sysv/linux/posix_fallocate64.c
7508         (__posix_fallocate64_l64): Likewise.
7509         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
7510         Likewise.
7511         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7512         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
7513         (__get_clockfreq): Likewise.
7514         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
7515         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
7516         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
7517         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7518         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7519         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
7520         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
7521         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
7522         Likewise.
7523         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
7524         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
7525         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
7526         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
7527         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
7528         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
7529         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
7530         Likewise.
7531         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7532         (posix_fallocate): Likewise.
7533         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7534         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
7535         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
7536         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
7537         (elf_machine_rela, elf_machine_rela_relative)
7538         (elf_machine_lazy_rel): Likewise.
7539         * time/asctime.c (asctime_internal): Likewise.
7540         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
7541         * time/tzset.c (__tzset_parse_tz): Likewise.
7542         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
7543         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
7544         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
7545         * wcsmbs/wcsmbsload.h: Likewise.
7546
7547         [BZ #15894]
7548         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
7549
7550         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
7551         (arena_get2): Remove THREAD_STATS conditionals.
7552         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
7553         (__malloc_stats, int): Likewise.
7554
7555 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
7556
7557         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
7558         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
7559
7560         * manual/setjmp.texi: Fix typos/grammar errors.
7561
7562         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
7563         Only return early when n is <= 0.  Delete unused return statement.
7564
7565         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
7566         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
7567         * debug/tst-longjmp_chk3.c: New file.
7568
7569         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
7570         (test_main): Replace code with set_fortify_handler call.
7571         * debug/test-strcpy_chk.c: Likewise.
7572         * debug/tst-chk1.c: Likewise.
7573         * debug/tst-longjmp_chk.c: Likewise.
7574         * test-skeleton.c: Include fcntl.h & paths.h
7575         (set_fortify_handler): Define.
7576
7577         * debug/tst-longjmp_chk.c: Add header comment and include
7578         ../test-skeleton.c.
7579         (do_test): Mark static.
7580         (TEST_FUNCTION): Define.
7581
7582         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
7583         (IP_PMTUDISC_INTERFACE): Likewise.
7584         (IP_MULTICAST_IF): Likewise.
7585         (IP_MULTICAST_TTL): Likewise.
7586         (IP_MULTICAST_LOOP): Likewise.
7587         (IP_ADD_MEMBERSHIP): Likewise.
7588         (IP_DROP_MEMBERSHIP): Likewise.
7589         (IP_UNBLOCK_SOURCE): Likewise.
7590         (IP_BLOCK_SOURCE): Likewise.
7591         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
7592         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
7593         (IP_MSFILTER): Likewise.
7594         (MCAST_JOIN_GROUP): Likewise.
7595         (MCAST_BLOCK_SOURCE): Likewise.
7596         (MCAST_UNBLOCK_SOURCE): Likewise.
7597         (MCAST_LEAVE_GROUP): Likewise.
7598         (MCAST_JOIN_SOURCE_GROUP): Likewise.
7599         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
7600         (MCAST_MSFILTER): Likewise.
7601         (IP_MULTICAST_ALL): Likewise.
7602         (IP_UNICAST_IF): Likewise.
7603
7604         * timezone/Makefile: Delete $(have-ksh) check.
7605         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
7606         * timezone/tzselect.ksh: Add +x mode bits.
7607
7608         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
7609         (ANON_INODE_FS_MAGIC): Likewise.
7610         (BDEVFS_MAGIC): Likewise.
7611         (BINFMTFS_MAGIC): Likewise.
7612         (BTRFS_TEST_MAGIC): Likewise.
7613         (CRAMFS_MAGIC_WEND): Likewise.
7614         (DEBUGFS_MAGIC): Likewise.
7615         (ECRYPTFS_SUPER_MAGIC): Likewise.
7616         (EXT3_SUPER_MAGIC): Likewise.
7617         (EXT4_SUPER_MAGIC): Likewise.
7618         (FUTEXFS_SUPER_MAGIC): Likewise.
7619         (HOSTFS_SUPER_MAGIC): Likewise.
7620         (HUGETLBFS_MAGIC): Likewise.
7621         (MINIX3_SUPER_MAGIC): Likewise.
7622         (MTD_INODE_FS_MAGIC): Likewise.
7623         (NILFS_SUPER_MAGIC): Likewise.
7624         (OPENPROM_SUPER_MAGIC): Likewise.
7625         (PIPEFS_MAGIC): Likewise.
7626         (PSTOREFS_MAGIC): Likewise.
7627         (QNX6_SUPER_MAGIC): Likewise.
7628         (RAMFS_MAGIC): Likewise.
7629         (REISERFS_SUPER_MAGIC_STRING): Likewise.
7630         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
7631         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
7632         (SECURITYFS_MAGIC): Likewise.
7633         (SELINUX_MAGIC): Likewise.
7634         (SMACK_MAGIC): Likewise.
7635         (SOCKFS_MAGIC): Likewise.
7636         (SQUASHFS_MAGIC): Likewise.
7637         (STACK_END_MAGIC): Likewise.
7638         (TMPFS_MAGIC): Likewise.
7639         (USBDEVICE_SUPER_MAGIC): Likewise.
7640         (V9FS_MAGIC): Likewise.
7641         (XENFS_SUPER_MAGIC): Likewise.
7642         (CRAMFS_MAGIC): Fix typo in comment.
7643         (EXT2_SUPER_MAGIC): Update comment.
7644         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
7645
7646 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
7647
7648         * sysdeps/arm: Move directory from ports/sysdeps/arm.
7649         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
7650         * sysdeps/unix/sysv/linux/arm: Move directory from
7651         ports/sysdeps/unix/sysv/linux/arm.
7652         * README: Update listing for arm-*-linux-gnueabi.
7653
7654         * README: Remove mention of am33.
7655
7656 2014-02-07  Roland McGrath  <roland@hack.frob.com>
7657
7658         * bits/sigset.h (__sigemptyset): Use a statement expression rather
7659         than the comma operator, to avoid "rhs of comma has no effect"
7660         compiler warnings.
7661         (__sigfillset, __sigandset, __sigorset): Likewise.
7662         * include/signal.h (__sigemptyset): Likewise.
7663         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
7664
7665 2014-02-07  Allan McRae  <allan@archlinux.org>
7666
7667         * version.h (RELEASE): Set to "development".
7668         (VERSION): Set to "2.19.90"
7669         * NEWS: Add 2.20 section.
7670
7671 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
7672
7673         [BZ #16529]
7674         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
7675
7676 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
7677
7678         * manual/contrib.texi: Update entry for Carlos O'Donell,
7679         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
7680
7681 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
7682
7683         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
7684
7685         * sysdeps/unix/sysv/linux/kernel-features.h
7686         [__LINUX_KERNEL_VERSION >= 0x020621]
7687         (__ASSUME_PROC_PID_TASK_COMM): Define.
7688
7689 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7690
7691         [BZ #16398]
7692         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
7693         conversion when destination buffer does not have enough space.
7694         * libio/tst-ftell-partial-wide.c: New test case.
7695         * libio/Makefile (tests): Add tst-ftell-partial-wide.
7696
7697         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
7698         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
7699         Leonard and Allan McRae.
7700
7701 2014-02-04  David S. Miller  <davem@davemloft.net>
7702
7703         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
7704         32-bit.
7705
7706 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7707
7708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
7709         New file
7710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
7711         New file
7712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
7713         New file.
7714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
7715         New file.
7716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
7717         New file.
7718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
7719         New file.
7720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
7721         New file.
7722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
7723         New file.
7724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
7725         New file.
7726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
7727         New file.
7728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
7729         New file.
7730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
7731         New file.
7732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
7733         New file.
7734
7735 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7736
7737         * nptl/shlib-versions: Change powerpc*le start to 2.17.
7738         * shlib-versions: Likewise.
7739
7740 2014-02-04  Roland McGrath  <roland@hack.frob.com>
7741             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7742
7743         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
7744         (abilist-pattern): New variable, set to %-le.abilist.
7745
7746         * Makerules (abilist-pattern): New variable.
7747         (vpath): Use $(abilist-pattern) in place of %.abilist.
7748         (check-abi-% pattern rule): Likewise.
7749         (check-abi, update-abi): Likewise.
7750
7751 2014-02-04  Eric Wong  <normalperson@yhbt.net>
7752
7753         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7754
7755 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
7756
7757         * manual/startup.texi: Add next, previous, and top entries for
7758         the `Program Arguments' and `Environment Variables' nodes.
7759
7760 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
7761
7762         * manual/macros.texi: Add comments before MTASC-safety macros.
7763
7764         * manual/users.texi: Document MTASC-safety properties.
7765
7766         * manual/threads.texi (pthread_key_create, pthread_key_delete)
7767         (pthread_getspecific, pthread_setspecific): Format with
7768         @deftypefun, and add @safety note.
7769         * manual/signal.texi: Move comments that analyze the above
7770         functions to their home place.
7771
7772 2014-02-03  Allan McRae  <allan@archlinux.org>
7773
7774         * po/sl.po: Update Slovenian translation from translation project.
7775
7776 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
7777
7778         * manual/time.texi (timegm): Add missing blank after @c.
7779         Reported by Joseph Myers <joseph@codesourcery.com>.
7780
7781 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
7782
7783         * manual/check-safety.sh: New.
7784         * manual/Makefile ($(objpfx)stamp-summary): Run it.
7785
7786         * manual/terminal.texi: Document MTASC-safety properties.
7787
7788         * manual/filesys.texi: Document MTASC-safety properties.
7789
7790         * manual/errno.texi: Document MTASC-safety properties.
7791
7792         * manual/intro.texi: Document safety identifiers and
7793         conditionals.
7794
7795         * manual/string.texi (wcstok): Fix prototype.
7796         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
7797
7798         * manual/time.texi: Document MTASC-safety properties.
7799
7800         * manual/string.texi: Document MTASC-safety properties.
7801
7802         * manual/threads.texi: Document MTASC-safety properties.
7803
7804         * manual/stdio.texi: Document MTASC-safety properties.
7805
7806         * manual/syslog.texi: Document MTASC-safety properties.
7807
7808         * manual/sysinfo.texi: Document MTASC-safety properties.
7809
7810         * manual/startup.texi: Document MTASC-safety properties.
7811
7812         * manual/socket.texi: Document MTASC-safety properties.
7813
7814         * manual/signal.texi: Document MTASC-safety properties.
7815
7816 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
7817
7818         * manual/setjmp.texi: Document MTASC-safety properties.
7819
7820         * manual/search.texi: Document MTASC-safety properties.
7821
7822         * manual/resource.texi: Document MTASC-safety properties.
7823
7824         * manual/process.texi: Document MTASC-safety properties.
7825
7826         * manual/platform.texi: Document MTASC-safety properties.
7827
7828         * manual/pipe.texi: Document MTASC-safety properties.
7829
7830         * manual/pattern.texi: Document MTASC-safety properties.
7831
7832         * manual/message.texi: Document MTASC-safety properties.
7833
7834         [BZ #12751]
7835         * manual/memory.texi: Document MTASC-safety properties.
7836
7837         * manual/math.texi: Document MTASC-safety properties.
7838
7839         * manual/locale.texi: Document MTASC-safety properties.
7840
7841         * manual/llio.texi: Document MTASC-safety properties.
7842
7843         * manual/libdl.texi: New.
7844
7845         * manual/lang.texi: Document MTASC-safety properties.
7846
7847         * manual/job.texi: Document MTASC-safety properties.
7848
7849         * manual/getopt.texi: Document MTASC-safety properties.
7850
7851         * manual/ctype.texi: Document MTASC-safety properties.
7852
7853 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
7854
7855         [BZ #16046]
7856         * csu/libc-tls.c (static_map): Remove variable.
7857         (__libc_setup_tls): Use main executable's link map for TLS data.
7858         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
7859         casing for LM_ID_BASE and GL(dl_nns).
7860         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
7861         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
7862         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
7863         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
7864         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
7865         member.
7866         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
7867         l_phnum members.
7868
7869 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
7870
7871         * manual/debug.texi: Document MTASC-safety properties.
7872
7873 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
7874
7875         [BZ #16510]
7876         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
7877         of __x86_64__ when disabling x87 inline functions.
7878
7879 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
7880
7881         * manual/charset.texi: Document MTASC-safety properties.
7882
7883         * manual/crypt.texi: Document MTASC-safety properties.
7884
7885         * manual/conf.texi: Document MTASC-safety properties.
7886
7887         * manual/arith.texi: Document MTASC-safety properties.
7888
7889         * manual/argp.texi: Document MTASC-safety properties.
7890
7891         * manual/macros.texi: Introduce macros to document multi
7892         thread, asynchronous signal and asynchronous cancellation
7893         safety properties.
7894         * manual/intro.texi: Introduce the properties themselves.
7895
7896 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7897
7898         * sysdeps/sh/sh4/Makefile: New file.
7899
7900 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
7901
7902         * math/gen-libm-test.pl ($srcdir): New variable.
7903         ($auto_input): Use it.
7904
7905 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
7906
7907         [BZ #16506]
7908         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
7909         access beyond array bounds when parsing netgroups file.
7910
7911         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
7912         the old buffer before realloc.
7913
7914 2014-01-27  Allan McRae  <allan@archlinux.org>
7915
7916         * po/fr.po: Update French translation from translation project.
7917
7918 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7919
7920         * sysdeps/sh/libm-test-ulps: Regenerate.
7921
7922 2014-01-24  David S. Miller  <davem@davemloft.net>
7923
7924         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
7925
7926 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7927
7928         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
7929         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
7930
7931 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7932
7933         [BZ #16474]
7934         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
7935         string pointers after reallocation.
7936
7937 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7938
7939         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
7940         __SH4A__ instead of __SH_FPU_ANY__.
7941
7942 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7943
7944         * sysdeps/sh/fpu_control.h: New file.
7945         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
7946         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
7947         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
7948         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
7949         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
7950         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
7951         * sysdeps/sh/sys/ucontext.h: Remove.
7952         * sysdeps/sh/sys: Remove directory.
7953
7954 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7955
7956         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
7957         s390/sys/ucontext.h.
7958         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
7959         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
7960
7961 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
7962
7963         [BZ #15605]
7964         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
7965
7966 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7967
7968         [BZ#16431]
7969         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7970         Adjust the vDSO correctly for internal calls.
7971         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
7972
7973 2014-01-20  Allan McRae  <allan@archlinux.org>
7974
7975         * po/ca.po: Update Catalan translation from translation project.
7976
7977 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
7978
7979         * sysdeps/s390/sotruss-lib.c: New file.
7980
7981 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7982
7983         [BZ#16430]
7984         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
7985         (__GI___gettimeofday): Alias for a different internal symbol to avoid
7986         local calls issues by not having a PLT stub required for IFUNC calls.
7987         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
7988
7989 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
7990
7991         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
7992         * math/test-fpucw-static.c: Likewise.
7993
7994 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7995
7996         [BZ #16453]
7997         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
7998
7999 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8000
8001         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8002         implementation for powerpc.
8003
8004 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8005
8006         [BZ #14782]
8007         * sysdeps/posix/system.c (__libc_system): Do not enable
8008         asynchronous cancellation.
8009
8010 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8011
8012         [BZ #16427]
8013         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8014         handling only for numbers special also in the IEEE case.
8015
8016 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8017
8018         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8019
8020 2014-01-11  Allan McRae  <allan@archlinux.org>
8021
8022         * po/bg.po: Update Bulgarian translation from translation project.
8023
8024         * po/de.po: Update German translation from translation project.
8025
8026 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8027
8028         * sysdeps/generic/gcc-compat.h: New file.
8029
8030 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8031
8032         * benchtests/asin-inputs: Correct slow inputs.
8033         * benchtests/acos-inputs: Likewise.
8034
8035 2014-01-10  Allan McRae  <allan@archlinux.org>
8036
8037         * po:sv.po: Update Swedish translation from translation project.
8038
8039         * po/vi.po: Update Vietnamese translation from translation project.
8040
8041         * po/eo.po: Update Esperanto translation from translation project.
8042
8043         * po/cs.po: Update Czech translation from translation project.
8044
8045         * po/nl.po: Update Dutch translation from translation project.
8046
8047         * po/pl.po: Update Polish translation from translation project.
8048
8049         * po/ru.po: Update Russian translation from translation project.
8050
8051         * po/uk.po: Update Ukrainian translation from translation project.
8052
8053 2014-01-08  Brooks Moses  <bmoses@google.com>
8054
8055         * elf/dl-load.c: Fix comment typo.
8056
8057 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8058
8059         * po/header.pot: Rename to...
8060         * po/pot.header: ... this.
8061         * po/Makefile: Use pot.header.
8062
8063 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8064             Maxim Kuvyrkov  <maxim@kugelworks.com>
8065
8066         [BZ #16394]
8067         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8068         SRC and DEST against LEN.
8069
8070 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8071
8072         [BZ #16414]
8073         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8074         implementation.
8075         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8076
8077 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8078
8079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8080
8081 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8082
8083         [BZ #16408]
8084         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8085         for large positive arguments.
8086
8087 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8090
8091         * math/auto-libm-test-in: Mark various tests with
8092         xfail-rounding:ldbl-128ibm.
8093         * math/auto-libm-test-out: Regenerated.
8094
8095         [BZ #16407]
8096         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
8097         Increase overflow threshold.
8098
8099 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
8100
8101         [BZ #14286]
8102         * stdio-common/vfprintf.c: Check for integer overflow.
8103
8104 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8105
8106         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
8107         the first argument and return value of __tls_get_addr_internal.
8108
8109 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8110
8111         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
8112         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
8113
8114 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8115
8116         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
8117         * sysdeps/s390/rtld-global-offsets.sym: New file.
8118         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
8119         GLIBC_2.19 symbol.
8120         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
8121         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
8122         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
8123         ... this.
8124         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
8125         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
8126         ... this.
8127         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8128         Regenerate.
8129         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8130         Regenerate.
8131         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
8132         halfs of GPRs for high_gprs contexts.
8133         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
8134         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
8135         field.
8136         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
8137         uc_flags field.
8138         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
8139         64 bit versions:
8140         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
8141         for high GPRs (uc_high_gprs) and for future extensions
8142         (__reserved).
8143         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
8144         for future extensions (__reserved).
8145         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
8146         64 bit versions:
8147         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
8148         SC_HIGHGPRS offset definition.
8149         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
8150         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
8151
8152         * Versions.def: Add GLIBC_2.19 for libpthread.
8153         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
8154         siglongjmp for libpthread with GLIBC_2.19 symver.
8155         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
8156         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
8157         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
8158         * sysdeps/s390/__longjmp.c: New file.
8159         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
8160         * sysdeps/s390/longjmp.c: New file.
8161         * sysdeps/s390/setjmp.S: New file.
8162         * sysdeps/s390/sigjmp.S: New file.
8163         * sysdeps/s390/v1-longjmp.c: New file.
8164         * sysdeps/s390/v1-setjmp.h: New file.
8165         * sysdeps/s390/v1-sigjmp.c: New file.
8166         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
8167         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
8168         GLIBC_2.19 version.
8169         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
8170         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
8171         versioned symbols for ____longjmp_chk.
8172         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
8173         Likewise.
8174         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8175         Regenerate.
8176         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8177         Regenerate.
8178         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8179         Regenerate.
8180         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8181         Regenerate.
8182         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
8183         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
8184         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
8185         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
8186         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
8187         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
8188         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
8189         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
8190         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
8191         * sysdeps/s390/rtld-__longjmp.c: New file.
8192         * sysdeps/s390/rtld-setjmp.S: New file.
8193
8194 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
8195
8196         [BZ #16400]
8197         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8198         Return -__logl (x) for small positive arguments without evaluating
8199         a polynomial.
8200
8201 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
8202
8203         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
8204         Rename to ...
8205         (__ptrace_peeksiginfo_args): ... this.
8206         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8207         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8208         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8209
8210 2014-01-06  Allan McRae  <allan@archlinux.org>
8211
8212         * inet/netinet/in.h: Fix typo in comment.
8213
8214 2014-01-05  Andreas Jaeger  <aj@suse.de>
8215
8216         * sysdeps/i386/fpu/libm-test-ulps: Update.
8217
8218 2014-01-05  Allan McRae  <allan@archlinux.org>
8219
8220         * po/libc.pot: Regenerated.
8221
8222         * malloc/memusagestat.c: Fix gettext call formatting.
8223
8224 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
8225
8226         * nscd/nscd.c: Improve usage() output.
8227
8228 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
8229
8230         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
8231         * sysdeps/unix/sysv/linux/configure: Regenerated.
8232         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
8233         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
8234
8235 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8236
8237         [BZ #16390]
8238         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
8239         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
8240
8241 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8242
8243         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
8244         extra tokens at end of #undef directive.
8245         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
8246         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
8247         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
8248
8249 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8250
8251         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8252
8253         * math/auto-libm-test-in: Mark various tests with
8254         xfail-rounding:ldbl-128ibm.
8255         * math/auto-libm-test-out: Regenerated.
8256
8257 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
8258
8259         [BZ #16386]
8260         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
8261         numbers with subnormal high part when calculating exponent.
8262
8263         [BZ #16385]
8264         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
8265         fabs.
8266
8267         [BZ #16384]
8268         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
8269         M_LN2l.
8270         (__ieee754_acoshl): Use __log1pl not __log1p.
8271
8272 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
8273
8274         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
8275         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
8276         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
8277         (grow_heap, heap_trim, _int_new_arena, get_free_list)
8278         (reused_arena, arena_get2): Convert to GNU style.
8279         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
8280         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
8281         (memalign_check, __malloc_set_state): Likewise.
8282         * malloc/mallocbug.c (main): Likewise.
8283         * malloc/malloc.c (__malloc_assert, malloc_init_state)
8284         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
8285         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
8286         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
8287         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
8288         (__posix_memalign, malloc_info): Likewise.
8289         * malloc/malloc.h: Likewise.
8290         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
8291         (mallochook, memalignhook, reallochook, mabort): Likewise.
8292         * malloc/mcheck.h: Likewise.
8293         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
8294         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
8295         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
8296         * malloc/morecore.c (__default_morecore): Likewise.
8297         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
8298         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
8299         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
8300         (print_and_abort): Likewise.
8301         * malloc/obstack.h: Likewise.
8302         * malloc/set-freeres.c (__libc_freeres): Likewise.
8303         * malloc/tst-mallocstate.c (main): Likewise.
8304         * malloc/tst-mtrace.c (main): Likewise.
8305         * malloc/tst-realloc.c (do_test): Likewise.
8306
8307 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8308
8309         [BZ #16366]
8310         * nscd/netgroupcache.c (do_notfound): New function.
8311         (addgetnetgrentX): Use it.
8312
8313         [BZ # 16365]
8314         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
8315         NSS_STATUS_NOTFOUND.
8316
8317 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
8318
8319         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
8320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8321
8322 2014-01-01  Allan McRae  <allan@archlinux.org>
8323
8324         * scripts/update-copyrights: Update configure input file suffix.
8325
8326         * NEWS: Update copyright year.
8327         * catgets/gencat.c: Likewise.
8328         * csu/version.c: Likewise.
8329         * debug/catchsegv.sh: Likewise.
8330         * debug/pcprofiledump.c: Likewise.
8331         * debug/xtrace.sh: Likewise.
8332         * elf/ldconfig.c: Likewise.
8333         * elf/ldd.bash.in: Likewise.
8334         * elf/pldd.c: Likewise.
8335         * elf/sotruss.ksh: Likewise.
8336         * elf/sprof.c: Likewise.
8337         * iconv/iconv_prog.c: Likewise.
8338         * iconv/iconvconfig.c: Likewise.
8339         * locale/programs/locale.c: Likewise.
8340         * locale/programs/localedef.c: Likewise.
8341         * login/programs/pt_chown.c: Likewise.
8342         * malloc/memusage.sh: Likewise.
8343         * malloc/memusagestat.c: Likewise.
8344         * malloc/mtrace.pl: Likewise.
8345         * manual/libc.texinfo: Likewise.
8346         * nscd/nscd.c: Likewise.
8347         * nss/getent.c: Likewise.
8348         * nss/makedb.c: Likewise.
8349         * posix/getconf.c: Likewise.
8350         * scripts/test-installation.pl: Likewise.
8351
8352         * All files with FSF copyright notices: Update copyright dates
8353         using scripts/update-copyrights.
8354         * intl/plural.c: Regenerated.
8355         * locale/programs/charmap-kw.h: Likewise.
8356         * locale/programs/locfile-kw.h: Likewise.
8357
8358 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
8359
8360         * sysdeps/unix/sysv/linux/configure: Regenerated.
8361         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
8362         the linux/fanotify.h header.
8363         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
8364         HAVE_LINUX_FANOTIFY_H is defined.
8365
8366 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8367
8368         * benchtests/cos-inputs: New inputs.
8369         * benchtests/sin-inputs: Likewise.
8370
8371         * benchtests/atan-inputs: New inputs. Fix name of multiple
8372         precision fallback inputs.
8373
8374         * benchtests/atanh-inputs: New inputs.
8375         * benchtests/tanh-inputs: Likewise.
8376
8377         * benchtests/acosh-inputs: New inputs.
8378         * benchtests/asinh-inputs: Likewise.
8379
8380         * benchtests/cosh-inputs: New inputs.
8381         * benchtests/sinh-inputs: Likewise.
8382
8383         * benchtests/acos-inputs: Add more inputs.
8384         * benchtests/asin-inputs: Likewise.
8385
8386 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
8387
8388         [BZ #16375]
8389         * manual/arith.texi: Fix spelling.
8390         * manual/charset.texi: Likewise.
8391         * manual/errno.texi: Likewise.
8392         * manual/filesys.texi: Likewise.
8393         * manual/lang.texi: Likewise.
8394         * manual/llio.texi: Likewise.
8395         * manual/locale.texi: Likewise.
8396         * manual/message.texi: Likewise.
8397         * manual/resource.texi: Likewise.
8398         * manual/search.texi: Likewise.
8399         * manual/setjmp.texi: Likewise.
8400         * manual/stdio.texi: Likewise.
8401         * manual/string.texi: Likewise.
8402         * manual/sysinfo.texi: Likewise.
8403         * manual/time.texi: Likewise.
8404
8405 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
8406
8407         * po/sl.po: New file.
8408
8409 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
8410
8411         * .gitignore: Add core/.gdbinit/.gdb_history.
8412
8413 2013-12-27  Allan McRae  <allan@archlinux.org>
8414
8415         [BZ #16369]
8416         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
8417         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
8418
8419 2013-12-24  Brooks Moses  <bmoses@google.com>
8420
8421         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
8422         all compilers that claim C++98 compliance, not just GCC.
8423         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
8424         Likewise.
8425
8426 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8427
8428         * NEWS: Restore accidentally deleted bug-fix entries.
8429
8430 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8431             Ondřej Bílka  <neleai@seznam.cz>
8432
8433         [BZ #15073]
8434         * malloc/malloc.c (_int_free): Perform sanity check only if we
8435         have_lock.
8436
8437 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
8438
8439         [BZ #12986]
8440         * manual/stdio.texi (String Input Conversions): Clarify that character
8441         classes are not supported.
8442
8443 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8444
8445         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8446
8447 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
8448
8449         [BZ #16337]
8450         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8451         Calculate results for small negative arguments directly rather
8452         than using reflection formula with special underflow handling.
8453
8454         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
8455         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
8456         sysdeps/unix/bsd/bsd4.4/syscalls.list.
8457         (fchflags): Likewise.
8458         (revoke): Likewise.
8459         (setlogin): Likewise.
8460         (sigaltstack): Likewise.
8461         (wait4): Likewise.
8462         (sigblock): Remove.
8463         (sigsetmask): Likewise.
8464         (wait3): Likewise.
8465         (waitpid): Likewise.
8466         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
8467         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
8468         file.
8469         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
8470         * sysdeps/unix/bsd/Makefile: ... here.
8471         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
8472         * sysdeps/unix/bsd/Versions: ... here.
8473         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
8474         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
8475         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
8476         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
8477         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
8478         * sysdeps/unix/bsd/sigblock.c: ... here.
8479         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
8480         * sysdeps/unix/bsd/sigsetmask.c: ... here.
8481         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
8482         * sysdeps/unix/bsd/sigvec.c: ... here.
8483         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
8484         * sysdeps/unix/bsd/tcdrain.c: ... here.
8485         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
8486         * sysdeps/unix/bsd/tcgetattr.c: ... here.
8487         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
8488         * sysdeps/unix/bsd/tcsetattr.c: ... here.
8489         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
8490         * sysdeps/unix/bsd/wait.c: ... here.
8491         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
8492         * sysdeps/unix/bsd/wait3.c: ... here.
8493         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
8494         * sysdeps/unix/bsd/waitpid.c: ... here.
8495
8496 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
8497
8498         [BZ #16356]
8499         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
8500         round-to-nearest for [!USE_AS_EXPM1L].
8501         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
8502         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
8503         more tests of exp and exp10.  Expect some exp10 tests to miss
8504         exceptions or fail in directed rounding modes.
8505         * math/auto-libm-test-out: Regenerated.
8506         * math/libm-test.inc (exp10_tonearest_test_data): New array.
8507         (exp10_test_tonearest): New function.
8508         (exp10_towardzero_test_data): New array.
8509         (exp10_test_towardzero): New function.
8510         (exp10_downward_test_data): New array.
8511         (exp10_test_downward): New function.
8512         (exp10_upward_test_data): New array.
8513         (exp10_test_upward): New function.
8514         (main): Call the new functions.
8515         * sysdeps/i386/fpu/libm-test-ulps: Update.
8516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8517
8518 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
8521         asinh, atan, atan2, atanh, cbrt, cos and cosh.
8522         * math/auto-libm-test-out: Regenerated.
8523         * math/libm-test.inc (acosh_test_data): Add more tests.
8524         (atanh_test_data): Likewise.
8525         (ceil_test_data): Likewise.
8526         (copysign_test_data): Likewise.
8527         * sysdeps/i386/fpu/libm-test-ulps: Update.
8528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8529
8530         * timezone/checktab.awk: Update from tzcode 2013i.
8531         * timezone/private.h: Likewise.
8532         * timezone/scheck.c: Likewise.
8533         * timezone/tzfile.h: Likewise.
8534         * timezone/tzselect.ksh: Likewise.
8535         * timezone/zdump.c: Likewise.
8536         * timezone/zic.c: Likewise.
8537
8538         * math/auto-libm-test-in: Add tests of cpow.
8539         * math/auto-libm-test-out: Regenerated.
8540         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
8541         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8542         mpc_cc_c.
8543         (func_calc_desc): Add mpc_cc_c union field.
8544         (test_functions): Add cpow.
8545         (special_fill_2pi): New function.
8546         (special_real_inputs): Add 2pi.
8547         (calc_generic_results): Handle mpc_cc_c.
8548         * sysdeps/i386/fpu/libm-test-ulps: Update.
8549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8550
8551         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
8552         csqrt, ctan and ctanh.
8553         * math/auto-libm-test-out: Regenerated.
8554         * math/libm-test.inc (TEST_COND_x86_64): New macro.
8555         (TEST_COND_x86): Likewise.
8556         (ccos_test_data): Use AUTO_TESTS_c_c.
8557         (ccosh_test_data): Likewise.
8558         (cexp_test_data): Likewise.
8559         (clog_test_data): Likewise.
8560         (csqrt_test_data): Likewise.
8561         (ctan_test_data): Likewise.
8562         (ctan_tonearest_test_data): Likewise.
8563         (ctan_towardzero_test_data): Likewise.
8564         (ctan_downward_test_data): Likewise.
8565         (ctan_upward_test_data): Likewise.
8566         (ctanh_test_data): Likewise.
8567         (ctanh_tonearest_test_data): Likewise.
8568         (ctanh_towardzero_test_data): Likewise.
8569         (ctanh_downward_test_data): Likewise.
8570         (ctanh_upward_test_data): Likewise.
8571         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8572         mpc_c_c.
8573         (func_calc_desc): Add mpc_c_c union field.
8574         (FUNC_mpc_c_c): New macro.
8575         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
8576         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
8577         ctanh.
8578         (special_fill_min_subnorm_p120): New function.
8579         (special_real_inputs): Add min_subnorm_p120.
8580         (calc_generic_results): Handle mpc_c_c.
8581         * sysdeps/i386/fpu/libm-test-ulps: Update.
8582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8583
8584 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8585
8586         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
8587         (do_sin_slow): New functions.
8588         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
8589         (cslow2, csloww1, csloww2): Use the new functions.
8590
8591         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
8592         Use M to change sign of result instead of X.  Assume X is
8593         positive.
8594         (csloww1): Likewise.
8595         (__sin): Adjust.
8596         (__cos): Adjust.
8597
8598         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
8599         arguments A and DA.
8600         (__sin): Adjust.
8601         (__cos): Likewise.
8602
8603         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
8604         (__cos): Likewise.
8605         (sloww1): Don't adjust sign of DX.
8606         (csloww1): Likewise.
8607         (sloww2): Use X directly and don't adjust sign of DX.
8608         (csloww2): Likewise.
8609
8610 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8611
8612         * math/auto-libm-test-in: Add tests of cabs and carg.
8613         * math/auto-libm-test-out: Regenerated.
8614         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
8615         (carg_test_data): Likewise.
8616         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8617         mpc_c_f.
8618         (func_calc_desc): Add mpc_c_f union field.
8619         (test_functions): Add cabs and carg.
8620         (calc_generic_results): Handle mpc_c_f.
8621
8622         * sysdeps/powerpc/powerpc32/libgcc-compat.S
8623         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
8624         as a macro and a compat symbol.
8625         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
8626         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
8627         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
8628         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
8629         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
8630         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
8631         not use .hidden.
8632         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
8633         Likewise.
8634         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
8635         Likewise.
8636         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
8637         Likewise.
8638         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
8639         Likewise.
8640         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
8641         Likewise.
8642         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
8643         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
8644         from GLIBC_2.3.2.
8645
8646 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8647
8648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8649
8650 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8651
8652         * manual/texinfo.tex: Update to version 2013-11-26.10 with
8653         trailing whitespace removed.
8654         * scripts/config.guess: Update to version 2013-11-29.
8655         * scripts/config.sub: Update to version 2013-10-01.
8656
8657         * math/auto-libm-test-in: Add tests of sincos.
8658         * math/auto-libm-test-out: Regenerated.
8659         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
8660         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8661         mpfr_f_11.
8662         (func_calc_desc): Add mpfr_f_11 union field.
8663         (test_functions): Add sincos.
8664         (calc_generic_results): Handle mpfr_f_11.
8665         * sysdeps/i386/fpu/libm-test-ulps: Update.
8666         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8667
8668 2013-12-19  Andreas Schwab  <schwab@suse.de>
8669
8670         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
8671         CALL_MCOUNT.
8672         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
8673         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
8674         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
8675
8676 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8677
8678         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
8679         * sysdeps/i386/fpu/libm-test-ulps: Update.
8680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8681
8682         [BZ #16293]
8683         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
8684         round-to-nearest mode when using frndint.
8685         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
8686         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
8687         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
8688         Likewise.
8689         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
8690         sinh test to fail.
8691         * math/auto-libm-test-out: Regenerated.
8692         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
8693         (TEST_COND_x86): Likewise.
8694         (expm1_tonearest_test_data): New array.
8695         (expm1_test_tonearest): New function.
8696         (expm1_towardzero_test_data): New array.
8697         (expm1_test_towardzero): New function.
8698         (expm1_downward_test_data): New array.
8699         (expm1_test_downward): New function.
8700         (expm1_upward_test_data): New array.
8701         (expm1_test_upward): New function.
8702         (main): Run the new test functions.
8703         * sysdeps/i386/fpu/libm-test-ulps: Update.
8704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8705
8706         * include/features.h: Update comment documenting feature test
8707         macros.  Mention _DEFAULT_SOURCE in comment.
8708         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
8709         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
8710         _BSD_SOURCE and _SVID_SOURCE.
8711         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
8712         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
8713         !_SVID_SOURCE]: Likewise.
8714         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8715         (__USE_POSIX_IMPLICITLY): Define.
8716         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8717         (_POSIX_SOURCE): Undefine and redefine.
8718         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8719         (_POSIX_C_SOURCE): Likewise.
8720         * manual/creature.texi (_DEFAULT_SOURCE): Document.
8721         (Feature Test Macros): Update documentation of default features.
8722
8723 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8724
8725         * benchtests/Makefile: Add bench-strtok.
8726         * benchtests/bench-strtok.c: New file: strtok benchtest.
8727
8728 2013-12-19  Allan McRae  <allan@archlinux.org>
8729
8730         * manual/install.texi: Suppress menu for plain text output.
8731         * INSTALL: Regenerated.
8732
8733 2013-12-18  Brooks Moses  <bmoses@google.com>
8734
8735         [BZ #15846]
8736         * misc/getauxval.c: Include errno.h.
8737         (__getauxval): Set errno to ENOENT if the requested type is not
8738         found.
8739         * misc/sys/auxv.h (getauxval): Document that it may set errno;
8740         don't declare with __attribute_const__.
8741         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
8742         * manual/startup.texi: Document that getauxval sets errno.
8743
8744 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
8745
8746         * math/auto-libm-test-in: Add tests of jn and yn.
8747         * math/auto-libm-test-out: Regenerated.
8748         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
8749         (yn_test_data): Likewise.
8750         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8751         mpfr_if_f.
8752         (func_calc_desc): Add mpfr_if_f union field.
8753         (FUNC_mpfr_if_f): New macro.
8754         (test_functions): Add jn and yn.
8755         (calc_generic_results): Assert type of second input for
8756         mpfr_ff_f.  Handle mpfr_if_f.
8757         (output_for_one_input_case): Disable all checking for arguments
8758         fitting floating-point types in case of an integer argument.
8759         * sysdeps/i386/fpu/libm-test-ulps: Update.
8760         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8761
8762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
8763         Don't expect fegetround reference in libm.so.
8764
8765 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8766
8767         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
8768         $(config-cflags-nofma).
8769
8770 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
8771
8772         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
8773         * math/auto-libm-test-out: Regenerated.
8774
8775         [BZ #16338]
8776         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
8777         to determine exponent and adjust argument to have exponent of -1.
8778         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8779         log2.
8780         * math/auto-libm-test-out: Regenerated.
8781         * sysdeps/i386/fpu/libm-test-ulps: Update.
8782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8783
8784 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
8785
8786         * manual/probes.texi: Remove cases when per-thread arenas are
8787         disabled.
8788
8789 2013-12-18  Andreas Schwab  <schwab@suse.de>
8790
8791         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
8792         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
8793         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
8794         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
8795         * sysdeps/i386/i686/multiarch/Makefile: Update.
8796         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
8797
8798 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
8799
8800         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
8801         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
8802
8803 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8804
8805         [BZ #15968]
8806         Support TZ transition times < 00:00:00.
8807         This is needed for version-3 tz-format files; it supports time
8808         stamps past 2037 for America/Godthab (the only entry in the tz
8809         database for which this change is relevant).
8810         * manual/time.texi (TZ Variable): Document transition times
8811         from -167:59:59 through -00:00:01.
8812         * time/tzset.c (tz_rule): Time of day is now signed.
8813         (__tzset_parse_tz): Parse negative time of day.
8814
8815         Document TZ transition times >= 25:00:00.
8816         * manual/time.texi (TZ Variable): Document transition times from
8817         25:00:00 through 167:59:59.  These are already supported, and this
8818         support will help with version-3 tz-format files.
8819
8820         * manual/time.texi (TZ Variable): Modernize North America example
8821         to reflect current (i.e., 2007-and-later) daylight saving rules.
8822
8823         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
8824
8825 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
8826
8827         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
8828         * sysdeps/unix/bsd/bits/stat.h: Likewise.
8829         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
8830         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
8831         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
8832         * sysdeps/unix/bsd/bsdstat.h: Likewise.
8833         * sysdeps/unix/bsd/clock.c: Likewise.
8834         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
8835         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
8836         * sysdeps/unix/bsd/init-posix.c: Likewise.
8837         * sysdeps/unix/bsd/poll.c: Likewise.
8838         * sysdeps/unix/bsd/ptsname.c: Likewise.
8839         * sysdeps/unix/bsd/seekdir.c: Likewise.
8840         * sysdeps/unix/bsd/setegid.c: Likewise.
8841         * sysdeps/unix/bsd/seteuid.c: Likewise.
8842         * sysdeps/unix/bsd/setgid.c: Likewise.
8843         * sysdeps/unix/bsd/setrgid.c: Likewise.
8844         * sysdeps/unix/bsd/setruid.c: Likewise.
8845         * sysdeps/unix/bsd/setsid.c: Likewise.
8846         * sysdeps/unix/bsd/setuid.c: Likewise.
8847         * sysdeps/unix/bsd/sigaction.c: Likewise.
8848         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
8849         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
8850         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
8851         * sysdeps/unix/bsd/telldir.c: Likewise.
8852         * sysdeps/unix/bsd/times.c: Likewise.
8853         * sysdeps/unix/bsd/usleep.c: Likewise.
8854
8855         * misc/Makefile (install-lib): Remove libbsd-compat.a.
8856         ($(objpfx)libbsd-compat.a): Remove rule.
8857
8858         * include/features.h (__FAVOR_BSD): Do not define.
8859         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
8860         features conflicting with POSIX.
8861         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
8862         (_BSD_SOURCE): Remove description of not being a subset of other
8863         feature test macros.
8864         * manual/job.texi (getpgrp): Do not document BSD version.
8865         (getpgid): Do not document by reference to BSD getpgrp.
8866         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
8867         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
8868         * signal/signal.h [__FAVOR_BSD]: Likewise.
8869         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
8870         instead of making contents conditional on [__FAVOR_BSD].
8871         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
8872
8873 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8874
8875         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8876
8877 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
8878
8879         [BZ #16314]
8880         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
8881         values below 2**-450, not 2**-500.
8882         * math/auto-libm-test-in: Don't allow spurious underflow from
8883         hypot.
8884         * math/auto-libm-test-out: Regenerated.
8885
8886         [BZ #16316]
8887         [BZ #16330]
8888         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
8889         values of ha and hb and sort them after adjusting subnormal
8890         arguments.
8891         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
8892         Likewise.
8893         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
8894         values of ea and eb and sort them after adjusting subnormal
8895         arguments.
8896         * math/auto-libm-test-in: Do not expect some hypot tests of
8897         subnormals to fail.  Add more hypot tests.
8898         * math/auto-libm-test-out: Regenerated.
8899
8900 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8901
8902         [BZ #13304]
8903         * sysdeps/sh/s_fma.c: New file.
8904         * sysdeps/sh/s_fmaf.c: New file.
8905         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
8906         version.
8907         * sysdeps/sh/Implies: Add sh/soft-fp.
8908
8909 2013-12-16  Roland McGrath  <roland@hack.frob.com>
8910
8911         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
8912         level of indirection to members `objname', `errstring', `malloced'.
8913         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
8914         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
8915         it as the __longjmp argument (just pass 1 instead).
8916         (_dl_catch_error): Initialize C with argument pointers and address of
8917         volatile local ERRCODE rather than copying values out of C at return.
8918
8919 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
8920
8921         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
8922         * math/auto-libm-test-out: Regenerated.
8923         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
8924         (hypot_test_data): Likewise.
8925         (pow_test_data): Likewise.
8926         (pow_tonearest_test_data): Likewise.
8927         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8928         mpfr_ff_f.
8929         (func_calc_desc): Add mpfr_ff_f union field.
8930         (FUNC_mpfr_ff_f): New macro.
8931         (test_functions): Add atan2, hypot and pow.
8932         (special_fill_min): New function.
8933         (special_fill_minus_min): Likewise.
8934         (special_fill_min_subnorm): Likewise.
8935         (special_fill_minus_min_subnorm): Likewise.
8936         (special_real_inputs): Add min, -min, min_subnorm and
8937         -min_subnorm.
8938         (calc_generic_results): Handle mpfr_ff_f.
8939         * sysdeps/i386/fpu/libm-test-ulps: Update.
8940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8941
8942 2013-12-16  Will Newton  <will.newton@linaro.org>
8943
8944         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
8945         (Aligned Memory Blocks): Add documentation for aligned_alloc
8946         and suggest it as an alternative to posix_memalign.
8947         (Hooks for Malloc): Document __memalign_hook is also called
8948         for aligned_alloc.  (Summary of Malloc): Add summary for
8949         aligned alloc.  Document __memalign_hook is also called
8950         for aligned_alloc.
8951
8952 2013-12-16  Will Newton  <will.newton@linaro.org>
8953
8954         * manual/memory.texi (Malloc Examples): Clarify default
8955         alignment documentation.  Suggest posix_memalign rather
8956         than memalign or valloc.
8957         (Aligned Memory Blocks): Remove suggestion to use memalign
8958         or valloc.  Remove obsolete comment about BSD.
8959         Document memalign errno values and mark the function obsolete.
8960         Document posix_memalign returned error codes.  Mark valloc
8961         as obsolete.  (Hooks for Malloc): __memalign_hook is also
8962         called for posix_memalign and valloc.
8963         (Summary of Malloc): Add posix_memalign to function summary.
8964         __memalign_hook is also called for posix_memalign and valloc.
8965
8966 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8967
8968         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
8969         TAYLOR_SIN.
8970         (__sin): Adjust.
8971         (__cos): Likewise.
8972         (sloww): Use mynumber union.  Expand ternary operator into
8973         if-else statements.
8974         (cslow): use mynumber union.
8975
8976 2013-12-16  Allan McRae  <allan@archlinux.org>
8977
8978         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
8979         * configure: Regenerated.
8980
8981         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
8982
8983         [BZ #14120]
8984         * configure.ac: Added --enable-maintainer-mode. Check for
8985         autoconf when enabled.
8986         * configure: Regenerated.
8987
8988         * nscd/nscd.service: New file.
8989         * nscd/nscd.tmpfiles: New file.
8990
8991 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
8992
8993         [BZ #12100]
8994         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
8995         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
8996         * sysdeps/x86_64/multiarch/strstr.c: ... here.
8997         (strstr): Add __strstr_sse2_unaligned ifunc.
8998         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
8999         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9000         (strcasestr): Remove __strcasestr_sse42 ifunc.
9001         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9002         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9003         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9004
9005 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9006
9007         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9008         * sysdeps/sh/bits/fenv.h: ... here.
9009         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9010
9011 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9012
9013         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9014
9015         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9016         hypotf multiarch implementations.
9017         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9018         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9019         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9020         multiarch hypot for PPC64.
9021         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9022         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9023         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9024         multiarch hypotf for PPC64.
9025
9026         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9027         modff multiarch implementations.
9028         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9029         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9030         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9031         multiarch modf for PPC64.
9032         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9033         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9034         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9035         multiarch modff for PPC64.
9036
9037         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9038         and logl multiarch implementations.
9039         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9040         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9041         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9042         multiarch logb for PPC64.
9043         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9044         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9045         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9046         multiarch logb for PPC64.
9047         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9048         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9049         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9050         multiarch logb for PPC64.
9051
9052         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9053         isinff multiarch implementation.
9054         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9055         file.
9056         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9057         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9058         multiarch isinf for PPC64.
9059         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9060         file.
9061         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9062         multiarch isinff for PPC64.
9063
9064         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9065         finitef multiarch implementation.
9066         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9067         file.
9068         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9069         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9070         multiarch finite for PPC64.
9071         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9072         file.
9073         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9074         multiarch finitef for PPC64.
9075
9076         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9077         lrint multiarch implementation.
9078         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9079         file.
9080         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9081         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9082         multiarch llrint for PPC64.
9083         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9084         multiarch lrint for PPC64.
9085
9086         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9087         copysignf multiarch implementation.
9088         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9089         file.
9090         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9091         file.
9092         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
9093         multiarch copysign for PPC64.
9094         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
9095         multiarch copysignf for PPC64.
9096
9097         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
9098         multiarch implementation.
9099         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
9100         file.
9101         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
9102         file.
9103         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
9104         file.
9105         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
9106         file.
9107         multiarch llround for PPC64.
9108         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
9109         multiarch trunc for PPC64.
9110         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
9111         multiarch truncf for PPC64.
9112
9113         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
9114         multiarch implementation.
9115         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
9116         file.
9117         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
9118         file.
9119         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
9120         file.
9121         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
9122         file.
9123         multiarch llround for PPC64.
9124         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
9125         multiarch round for PPC64.
9126         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
9127         multiarch roundf for PPC64.
9128
9129         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
9130         multiarch implementation.
9131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
9132         file.
9133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
9134         file.
9135         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
9136         file.
9137         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
9138         file.
9139         multiarch llround for PPC64.
9140         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
9141         multiarch floor for PPC64.
9142         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
9143         multiarch floorf for PPC64.
9144
9145         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
9146         multiarch implementation.
9147         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
9148         file.
9149         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
9150         file.
9151         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
9152         file.
9153         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
9154         file.
9155         multiarch llround for PPC64.
9156         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
9157         multiarch ceil for PPC64.
9158         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
9159         multiarch ceilf for PPC64.
9160
9161         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
9162         multiarch implementation.
9163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
9164         file.
9165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
9166         file.
9167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
9168         file.
9169         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
9170         multiarch llround for PPC64.
9171         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
9172         multiarch lround for PPC64.
9173
9174         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
9175         multiarch implementation.
9176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
9177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
9178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
9179         file.
9180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
9181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
9182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
9183         multiarch isnan for PPC64.
9184         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
9185         multiarch isnanf for PPC64.
9186
9187         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
9188         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
9189         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
9190         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
9191         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
9192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
9193
9194         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
9195         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9196         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9197         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9198
9199         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
9200         multiarch implementations.
9201         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9202         (__libc_ifunc_impl_list): Likewise.
9203         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
9204         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
9205         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
9206         multiarch stpcpy for PPC64.
9207
9208         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
9209         multiarch implementations.
9210         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9211         (__libc_ifunc_impl_list): Likewise.
9212         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
9213         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
9214         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
9215         multiarch strcpy for PPC64.
9216
9217         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
9218         redefine function name.
9219         (_wordcopy_fwd_dest_aligned): Likewise.
9220         (_wordcopy_bwd_aligned): Likewise.
9221         (_wordcopy_bwd_dest_aligned): Likewise.
9222         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
9223         multiarch implementations.
9224         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9225         (__libc_ifunc_impl_list): Likewise.
9226         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
9227         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
9228         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
9229         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
9230         multiarch wcscpy for PPC64.
9231
9232         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
9233         multiarch implementations.
9234         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9235         (__libc_ifunc_impl_list): Likewise.
9236         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
9237         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
9238         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
9239         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
9240         multiarch wcscpy for PPC64.
9241
9242         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
9243         multiarch implementations.
9244         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9245         (__libc_ifunc_impl_list): Likewise.
9246         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
9247         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
9248         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
9249         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
9250         multiarch wcsrchr for PPC64.
9251
9252         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
9253         multiarch implementations.
9254         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9255         (__libc_ifunc_impl_list): Likewise.
9256         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
9257         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
9258         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
9259         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
9260         multiarch wcschr for PPC64.
9261
9262         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
9263         multiarch implementations.
9264         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9265         (__libc_ifunc_impl_list): Likewise.
9266         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
9267         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
9268         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
9269         multiarch strchrnul for PPC64.
9270
9271         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
9272         implementations.
9273         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9274         (__libc_ifunc_impl_list): Likewise.
9275         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
9276         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
9277         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
9278         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
9279         strchr for PPC64.
9280
9281         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
9282         implementations.
9283         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9284         (__libc_ifunc_impl_list): Likewise.
9285         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
9286         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
9287         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
9288         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
9289         strncmp for PPC64.
9290
9291         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
9292         multiarch implementations.
9293         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9294         (__libc_ifunc_impl_list): Likewise.
9295         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
9296         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
9297         strncasecmp for PPC64.
9298         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
9299         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
9300         multiarch strncasecmp_l for PPC64.
9301
9302         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
9303         multiarch implementations.
9304         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9305         (__libc_ifunc_impl_list): Likewise.
9306         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
9307         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
9308         multiarch strcasecmp for PPC64.
9309         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
9310         file.
9311         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
9312         multiarch strcasecmp_l for PPC64.
9313
9314         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
9315         implementations.
9316         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9317         (__libc_ifunc_impl_list): Likewise.
9318         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
9319         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
9320         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
9321         strnlen for PPC64.
9322
9323         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
9324         implementations.
9325         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9326         (__libc_ifunc_impl_list): Likewise.
9327         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
9328         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
9329         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
9330         strlen for PPC64.
9331
9332         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
9333         implementations.
9334         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9335         (__libc_ifunc_impl_list): Likewise.
9336         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
9337         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
9338         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
9339         rawmemrchr for PPC64.
9340
9341         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
9342         implementation.
9343         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9344         (__libc_ifunc_impl_list): Likewise.
9345         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
9346         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
9347         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
9348         memrchr for PPC64.
9349
9350         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
9351         implementation.
9352         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9353         (__libc_ifunc_impl_list): Likewise.
9354         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
9355         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
9356         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
9357         memchr for PPC64.
9358
9359         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
9360         implementation.
9361         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9362         (__libc_ifunc_impl_list): Likewise.
9363         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
9364         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
9365         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
9366         mempcpy for PPC64.
9367
9368         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
9369         avoid cretion of __bzero symbol.
9370         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
9371         Likewise.
9372         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
9373         Likewise.
9374         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
9375         Likewise.
9376         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
9377         multiarch implementations.
9378         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9379         (__libc_ifunc_impl_list): Likewise.
9380         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
9381         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
9382         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
9383         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
9384         bzero for PPC32.
9385         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
9386         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
9387         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
9388         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
9389         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
9390         memset for PPC64.
9391         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
9392
9393         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
9394         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
9395         implementations.
9396         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9397         (__libc_ifunc_impl_list): Likewise.
9398         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
9399         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
9400         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
9401         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
9402         memcmp for PPC64.
9403
9404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
9405         multiarch for POWER/PPC64.
9406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
9407         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
9408         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
9409         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
9410         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
9411         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
9412         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
9413         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
9414         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
9415         memcpy for PPC64.
9416
9417         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
9418         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
9419         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
9420         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
9421         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
9422         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
9423         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
9424         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
9425         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
9426         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
9427         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
9428         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
9429         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
9430         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
9431         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
9432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
9433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
9434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
9435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
9436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
9437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
9438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
9439
9440 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9441
9442         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
9443
9444 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9445
9446         * benchtests/Makefile (bench): Add exp2 and log2.
9447         (LDLIBS-bench-exp2): Add -lm.
9448         (LDLIBS-bench-log2): Likewise.
9449         * benchtests/exp2-inputs: New inputs file.
9450         * benchtests/log2-inputs: New inputs file.
9451         * benchtests/log-inputs: Add new inputs.
9452         * benchtests/tan-inputs: Likewise.
9453
9454 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9455
9456         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
9457         definition...
9458         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
9459         (csloww2): ... from here.
9460
9461         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
9462         instead of structures.
9463         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
9464         (POLYNOMIAL): Likewise.
9465         (TAYLOR_SLOW): Likewise.
9466         (__sin): Likewise.
9467         (__cos): Likewise.
9468         (slow1): Likewise.
9469         (slow2): Likewise.
9470         (sloww): Likewise.
9471         (sloww1); Likewise.
9472         (sloww2): Likewise.
9473         (bsloww1): Likewise.
9474         (bsloww2): Likewise.
9475         (cslow2): Likewise.
9476         (csloww): Likewise.
9477         (csloww1): Likewise.
9478         (csloww2): Likewise.
9479
9480 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
9481
9482         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
9483         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
9484         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
9485         * malloc/hooks.c (realloc_check): Likewise.
9486
9487         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
9488         * malloc/arena.c: Remove PER_THREAD conditional.
9489         [!PER_THREAD]: Remove code.
9490         (ptmalloc_unlock_all2): Likewise.
9491         (ptmalloc_init): Likewise.
9492         (_int_new_arena): Likewise.
9493         (arena_get2): Likewise.
9494         * malloc/hooks.c (__malloc_get_state): Likewise.
9495         (__malloc_set_state): Likewise.
9496         * malloc/malloc.c: Likewise.
9497         (struct malloc_state): Likewise.
9498         (struct malloc_par): Likewise.
9499         (__libc_realloc): Likewise.
9500         (__libc_mallopt): Likewise.
9501
9502 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9503
9504         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
9505
9506 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
9507
9508         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
9509         macro to a function.  Check for zero perturb_byte.
9510         (_int_malloc, _int_free): Remove zero perturb_byte checks.
9511
9512         * malloc/malloc.c: (force_reg): Remove.
9513         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
9514         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
9515         force_reg by atomic_forced_read.
9516         * malloc/arena.c (ptmalloc_init): Likewise.
9517         * malloc/hooks.c (top_check): Likewise.
9518
9519 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9520
9521         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9522
9523 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
9524
9525         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9526
9527 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
9528
9529         * math/auto-libm-test-in: Add tests of lgamma.
9530         * math/auto-libm-test-out: Regenerated.
9531         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
9532         (M_LOG_2_SQRT_PIl): Likewise.
9533         (lgamma_test_data): Use AUTO_TESTS_f_f1.
9534         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9535         mpfr_f_f1.
9536         (func_calc_desc): Add mpfr_f_f1 union field.
9537         (ARGS1): New macro.
9538         (ARGS2): Likewise.
9539         (ARGS3): Likewise.
9540         (ARGS4): Likewise.
9541         (RET1): Likewise.
9542         (RET2): Likewise.
9543         (CALC): Likewise.
9544         (FUNC): Likewise.
9545         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
9546         (test_functions): Add lgamma.
9547         (calc_generic_results): Handle mpfr_f_f1.
9548         * sysdeps/i386/fpu/libm-test-ulps: Update.
9549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9550
9551 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9552
9553         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
9554         __mpn_add_n for PowerPC64/POWER7.
9555         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
9556         __mpn_sub_n for PowerPC64/POWER7.
9557
9558         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
9559         __mpn_addmul_1 for PowerPC64.
9560         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
9561         __mpn_submul_1 for PowerPC64.
9562         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
9563         for PowerPC64.
9564         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
9565         for PowerPC64.
9566
9567 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
9568
9569         [BZ #15089]
9570         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
9571
9572 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9573
9574         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
9575
9576         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
9577         add multiarch folders.
9578         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
9579         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
9580         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
9581         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
9582         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
9583         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
9584         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
9585         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
9586         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
9587         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
9588         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
9589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
9590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
9591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
9592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
9593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
9594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
9595
9596         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
9597         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
9598         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
9599         New file.
9600         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
9601         New file.
9602         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
9603         multiarch __ieee754_hypot for PowerPC32.
9604         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
9605         New file.
9606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
9607         New file.
9608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
9609         multiarch __ieee754_hypotf for PowerPC32.
9610
9611         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
9612         long_double_symbol only if __logbl is defined.
9613         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
9614         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
9615         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
9616         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
9617         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
9618         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
9619         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
9620         path for implementation.
9621         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
9622         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
9623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
9624         logb, and logbl multiarch implementations for PowerPC32.
9625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
9626         file.
9627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
9628         file.
9629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
9630         multiarch logb for PowerPC32.
9631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
9632         file.
9633         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
9634         file.
9635         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
9636         multiarch logbf for PowerPC32.
9637         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
9638         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
9639         file.
9640         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
9641         multiarch logbl implementation for PowerPC32.
9642
9643         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
9644         and modff multiarch implementations.
9645         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
9646         New file.
9647         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
9648         New file.
9649         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
9650         multiarch modf for PowerPC32.
9651         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
9652         New file.
9653         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
9654         New file.
9655         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
9656         multiarch modff for PowerPC32.
9657
9658         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
9659         and lrintf multiarch implementations.
9660         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
9661         New file.
9662         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
9663         New file.
9664         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
9665         multiarch lrint for PowerPC32.
9666         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
9667         file: multiarch lrintf for PowerPC32.
9668
9669         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
9670         and lroundf multiarch implementations.
9671         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
9672         New file.
9673         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
9674         New file.
9675         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
9676         New file.
9677         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
9678         multiarch lround for PowerPC32.
9679         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
9680         file: multiarch lroundf for PowerPC32.
9681
9682         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
9683         copysign and copysignf multiarch implementations.
9684         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
9685         New file.
9686         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
9687         New file.
9688         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
9689         file: multiarch copysign for PowerPC32.
9690         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
9691         file: multiarch copysignf for PowerPC32.
9692
9693         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
9694         and truncf multiarch implementations.
9695         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
9696         New file.
9697         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
9698         file.
9699         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
9700         multiarch trunc for PowerPC32.
9701         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
9702         New file.
9703         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
9704         New file.
9705         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
9706         multiarch truncf for PowerPC32.
9707
9708         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
9709         and roundf multiarch implementations.
9710         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
9711         New file.
9712         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
9713         file.
9714         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
9715         multiarch round for PowerPC32.
9716         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
9717         New file.
9718         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
9719         New file.
9720         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
9721         multiarch roundf for PowerPC32.
9722
9723         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
9724         and floorf multiarch implementations.
9725         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
9726         New file.
9727         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
9728         file.
9729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
9730         multiarch floor for PowerPC32.
9731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
9732         New file.
9733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
9734         New file.
9735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
9736         multiarch floorf for PowerPC32.
9737
9738         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
9739         and ceilf multiarch implementations.
9740         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
9741         New file.
9742         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
9743         file.
9744         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
9745         multiarch ceil for PowerPC32.
9746         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
9747         New file.
9748         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
9749         file.
9750         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
9751         multiarch ceilf for PowerPC32.
9752
9753         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
9754         is defined.
9755         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
9756         FINITEF is defined.
9757         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
9758         and finitef multiarch implementations.
9759         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
9760         New file.
9761         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
9762         file.
9763         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
9764         multiarch finite for PowerPC32.
9765         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
9766         New file.
9767         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
9768         file: multiarch finitef for PowerPC32.
9769
9770         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
9771         and isinff multiarch implementations.
9772         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
9773         file.
9774         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
9775         file.
9776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
9777         multiarch isinf for PowerPC32.
9778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
9779         New file.
9780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
9781         multiarch isinff for PowerPC32.
9782
9783         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
9784         alias when __isnan is defined.
9785         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
9786         and isnanf multiarch implementations.
9787         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
9788         file.
9789         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
9790         file.
9791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
9792         file.
9793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
9794         file.
9795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
9796         multiarch isnan for PowerPC32.
9797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
9798         New file.
9799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
9800         New file.
9801         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
9802         multiarch isnanf for PowerPC32.
9803
9804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
9805         and sqrtf multiarch implementations.
9806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
9807         file.
9808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
9809         file.
9810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
9811         multiarch sqrt for PowerPC32.
9812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
9813         file.
9814         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
9815         file.
9816         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
9817         multiarch sqrtf for PowerPC32.
9818
9819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
9820         and llroundf multiarch implementations.
9821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
9822         New file.
9823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
9824         New file.
9825         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
9826         New file.
9827         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
9828         file: multiarch llround for PowerPC32.
9829         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
9830         file: multiarch llroundf for PowerPC32.
9831
9832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
9833         multiarch PowerPC32 fpu implementations.
9834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
9835         New file.
9836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
9837         New file.
9838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
9839         multiarch llrint for PowerPC32.
9840         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
9841         New file.
9842         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
9843         New file.
9844         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
9845         file.
9846
9847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
9848
9849         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
9850         file.
9851         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
9852         file.
9853         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
9854         file.
9855         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
9856         multiarch wordcopy for PPC32.
9857         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
9858         wordcopy objects.
9859         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9860         (__libc_ifunc_impl_list): Likewise.
9861         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
9862         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
9863         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
9864         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
9865         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
9866         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
9867
9868         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
9869         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
9870         file.
9871         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
9872         file.
9873         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
9874         file.
9875         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
9876         multiarch wcscpy for PPC32.
9877         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
9878         multiarch objects.
9879         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9880         (__libc_ifunc_impl_list): Likewise.
9881         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
9882         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
9883         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
9884         sysdeps/powerpc/power6/wcscpy.c.
9885
9886         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
9887         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
9888         file.
9889         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
9890         file.
9891         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
9892         file.
9893         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
9894         multiarch wcsrchr for PPC32.
9895         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
9896         multiarch objects.
9897         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9898         (__libc_ifunc_impl_list): Likewise.
9899         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
9900         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
9901         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
9902         sysdeps/powerpc/power6/wcsrchr.c.
9903
9904         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
9905         file.
9906         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
9907         file.
9908         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
9909         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
9910         multiarch wcschr for PPc32.
9911         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
9912         multiarch objects.
9913         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9914         (__libc_ifunc_impl_list): Likewise.
9915         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
9916         * sysdeps/powerpc/power6/wcschr.c: ... to here.
9917         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
9918         sysdeps/powerpc/power6/wcschr.c.
9919
9920         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
9921         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
9922         file.
9923         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
9924         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
9925         file: multiarch strchr for PPC32.
9926         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
9927         multiarch objects.
9928         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9929         (__libc_ifunc_impl_list): Likewise.
9930
9931         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
9932         name.
9933         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
9934         file.
9935         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
9936         file.
9937         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
9938         multiarch strchrnul for PPC32.
9939         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
9940         multiarch objects.
9941         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9942         (__libc_ifunc_impl_list): Likewise.
9943
9944         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
9945         file.
9946         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
9947         multiarch strncasecmp for PPC32.
9948         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
9949         file.
9950         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
9951         multiarch strncasecmp_l for PPC32.
9952         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
9953         strncasecmp multiarch objects.
9954         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9955         (__libc_ifunc_impl_list): Likewise.
9956
9957         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
9958         file.
9959         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
9960         multiarch strncasecmp for PPC32.
9961         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
9962         New file.
9963         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
9964         multiarch strcasecmp_l for PPC32.
9965         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
9966         multiarch objects.
9967         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9968         (__libc_ifunc_impl_list): Likewise.
9969
9970         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
9971         file.
9972         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
9973         file.
9974         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
9975         multiarch strncmp for PPC32.
9976         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
9977         multiarch objects.
9978         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9979         (__libc_ifunc_impl_list): Likewise.
9980
9981         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
9982         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
9983         file.
9984         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
9985         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
9986         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
9987         multiarch objects.
9988         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9989         (__libc_ifunc_impl_list): Likewise.
9990
9991         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
9992         file.
9993         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
9994         file.
9995         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
9996         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
9997         multiarch objects.
9998         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9999         (__libc_ifunc_impl_list): Likewise.
10000
10001         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10002         file.
10003         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10004         file.
10005         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10006         multiarch rawmemchr for PPC32.
10007         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10008         multiarch objects.
10009         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10010         (__libc_ifunc_impl_list): Likewise.
10011
10012         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10013         file.
10014         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10015         file.
10016         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10017         file: memrchr multiarch for PPC32.
10018         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10019         multiarch objects.
10020         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10021         (__libc_ifunc_impl_list): Likewise.
10022
10023         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10024         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10025         file.
10026         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10027         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10028         multiarch memchr for PPC32.
10029         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10030         multiarch objects.
10031         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10032         (__libc_ifunc_impl_list): Likewise.
10033
10034         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10035         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10036         file.
10037         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10038         file.
10039         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10040         file: multiarch mempcpy for PPC32.
10041         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10042         multiarch objects.
10043         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10044         (__libc_ifunc_impl_list): Likewise.
10045
10046         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10047         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10048         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10049         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10050         multiarch bzero for PPC32.
10051         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10052         file.
10053         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10054         file.
10055         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10056         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10057         file: multiarch memset for PPC32.
10058         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10059         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10060         memset multiarch objects.
10061         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10062         (__libc_ifunc_impl_list): Likewise.
10063
10064         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10065         file.
10066         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10067         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10068         memcmp for PPC32.
10069         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10070         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10071         multiarch objects.
10072         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10073         (__libc_ifunc_impl_list): Likewise.
10074
10075         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10076         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10077         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10078         file.
10079         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10080         file.
10081         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10082         file.
10083         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10084         multiarch memcpy for PPC32.
10085         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10086         multiarch objects.
10087         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10088         (__libc_ifunc_impl_list): Likewise.
10089
10090         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10091         support multiarch for POWER/PPC32.
10092         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
10093         Likewise.
10094         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
10095         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
10096         Implies file to make multiarch folder appers before the fpu and
10097         default folder for power4 configuration.
10098
10099 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10100
10101         * scripts/bench.pl: Append volatile keyword to type.
10102
10103 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10104
10105         * sysdeps/sh/sotruss-lib.c: New file.
10106         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
10107
10108 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10109
10110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10111
10112 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
10113
10114         [BZ #6810]
10115         * math/w_tgamma.c: Include <errno.h>.
10116         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
10117         * math/w_tgammaf.c: Include <errno.h>.
10118         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
10119         * math/w_tgammal.c: Include <errno.h>.
10120         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
10121         * math/auto-libm-test-in: Do not allow missing errno on tgamma
10122         underflow.  Add more tgamma tests.
10123         * math/auto-libm-test-out: Regenerated.
10124         * sysdeps/i386/fpu/libm-test-ulps: Update.
10125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10126
10127         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
10128         sin, sinh, tan, tanh, tgamma, y0 and y1.
10129         * math/auto-libm-test-out: Regenerated.
10130         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10131         (TEST_COND_x86): Likewise.
10132         (M_E2l): Remove macro.
10133         (M_E3l): Likewise.
10134         (M_2_SQRT_PIl): Likewise.
10135         (M_SQRT_PIl): Likewise.
10136         (M_1_DIV_El): Likewise.
10137         (log_test_data): Use AUTO_TESTS_f_f.
10138         (log10_test_data): Likewise.
10139         (log1p_test_data): Likewise.
10140         (log2_test_data): Likewise.
10141         (sin_test_data): Likewise.
10142         (sin_tonearest_test_data): Likewise.
10143         (sin_towardzero_test_data): Likewise.
10144         (sin_downward_test_data): Likewise.
10145         (sin_upward_test_data): Likewise.
10146         (sinh_test_data): Likewise.
10147         (sinh_tonearest_test_data): Likewise.
10148         (sinh_towardzero_test_data): Likewise.
10149         (sinh_downward_test_data): Likewise.
10150         (sinh_upward_test_data): Likewise.
10151         (tan_test_data): Likewise.
10152         (tan_tonearest_test_data): Likewise.
10153         (tan_towardzero_test_data): Likewise.
10154         (tan_downward_test_data): Likewise.
10155         (tan_upward_test_data): Likewise.
10156         (tanh_test_data): Likewise.
10157         (tgamma_test_data): Likewise.
10158         (y0_test_data): Likewise.
10159         (y1_test_data): Likewise.
10160         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
10161         (special_real_inputs): Add pi/4.
10162         * sysdeps/i386/fpu/libm-test-ulps: Update.
10163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10164
10165 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10166
10167         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
10168         "longjmp_target" static probes.
10169         (__longjmp): Rename to __longjmp_symbol.
10170         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10171         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
10172         on which longjmp to generate.
10173         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10174         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
10175         probe.
10176         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10177         (__sigjmp_save): Rename to __sigjmp_save_symbol.
10178         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
10179         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
10180         and __sigjmp_save_symbol based on which sigsetjmp to generated.
10181         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
10182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
10183         __longjmp_symbol based on which __longjmp to generate.
10184         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
10185         probe.
10186         (setjmp): Rename to setjmp_symbol.
10187         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10188         (_setjmp): Rename to _setjmp_symbol.
10189         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10190         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
10191         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
10192         which setjmp to generate.
10193         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
10194         "longjmp_target" static probes.
10195
10196 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10197
10198         * benchtests/README: Add note about output arguments.
10199         * benchtests/bench-sincos.c: Remove file.
10200         * benchtests/sincos-inputs: New file.
10201         * scripts/bench.pl: Identify output arguments and define
10202         static variables for them.
10203
10204         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
10205
10206         [BZ #15941]
10207         * Makefile (INSTALL): Add install-plain.texi as the primary
10208         dependency.
10209         * manual/install-plain.texi: New file.
10210         * manual/install.texi: Include node directive only for
10211         non-plaintext output.
10212
10213 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
10214
10215         * stdlib/longlong.h: Update from GCC.
10216
10217         [BZ #6807]
10218         [BZ #15901]
10219         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
10220         * math/w_j0f.c (y0f): Likewise.
10221         * math/w_j0l.c (__y0l): Likewise.
10222         * math/w_j1.c (y1): Likewise.
10223         * math/w_j1f.c (y1f): Likewise.
10224         * math/w_j1l.c (__y1l): Likewise
10225         * math/w_jn.c (yn): Likewise.
10226         * math/w_jnf.c (ynf): Likewise.
10227         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
10228         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
10229         value for Bessel function domain errors outside _SVID_ mode.
10230         Adjust sign of return value for yn (negative integer, 0).
10231         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
10232         by zero in return for negative x and set sign appropriately for
10233         negative n.
10234         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
10235         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10236         * math/libm-test.inc (y0_test_data): Add more tests and adjust
10237         expectations in error cases.
10238         (y1_test_data): Likewise.
10239         (yn_test_data): Likewise.
10240         * sysdeps/i386/fpu/libm-test-ulps: Update.
10241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10242
10243 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10244
10245         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
10246         "64" to "64-v1".  Add "64-v2".
10247         (abi-64-options): Rename to ...
10248         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
10249         (abi-64-condition): Rename to ...
10250         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
10251         (abi-64-ld-soname): Rename to ...
10252         (abi-64-v1-ld-soname): ... this.
10253         (abi-64-v2-options): Define.
10254         (abi-64-v2-condition): Likewise.
10255         (abi-64-v2-ld-soname): Likewise.
10256         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
10257         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
10258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
10259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
10260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
10261
10262 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10263             Alan Modra  <amodra@gmail.com>
10264
10265         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
10266         New versions for use with the ELFv2 ABI.
10267         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
10268         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
10269         declaration.
10270         (struct La_ppc64v2_retval): Likewise.
10271         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
10272         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
10273         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
10274         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
10275         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
10276         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
10277         Do not save or restore CR.
10278         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
10279         (_dl_profile_resolve): Do no save or restore CR.  Support extended
10280         return values for ELFv2 ABI.  Fix location of FPR return registers.
10281         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
10282         updated values for _CALL_ELF == 2.
10283         (La_regs, La_retval, int_retval): Likewise.
10284
10285 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10286
10287         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
10288         (FRAME_MIN_SIZE_PARM): Likewise.
10289         (FRAME_BACKCHAIN): Likewise.
10290         (FRAME_CR_SAVE): Likewise.
10291         (FRAME_LR_SAVE): Likewise.
10292         (FRAME_TOC_SAVE): Likewise.
10293         (FRAME_PARM_SAVE): Likewise.
10294         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
10295         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
10296         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10297         (call_mcount_parm_offset): New macro.
10298         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
10299         (PROF): Use symbolic stack frame offsets.
10300         (TAIL_CALL_SYSCALL_ERROR): Likewise.
10301         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
10302         Redefine in terms of FRAME_MIN_SIZE.
10303         (_dl_runtime_resolve): Use symbolic stack frame offsets.
10304         (_dl_profile_resolve): Likewise.  Update comment.
10305         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
10306         symbols stack frame offsets.
10307         (__sigsetjmp): Likewise.
10308         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10309         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
10310         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
10311         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
10312
10313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
10314         (FRAME_BACKCHAIN): Remove.
10315         (FRAME_CR_SAVE): Likewise.
10316         (FRAME_LR_SAVE): Likewise.
10317         (FRAME_COMPILER_DW): Likewise.
10318         (FRAME_LINKER_DW): Likewise.
10319         (FRAME_TOC_SAVE): Likewise.
10320         (FRAME_PARM_SAVE): Likewise.
10321         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
10322         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
10323         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
10325         (CHECK_SP): Use symbolic stack frame offsets.
10326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
10327         zone" instead of caller's parameter save area for temp storage.
10328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10329         Likewise.  Also, use symbolic stack frame offsets.
10330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
10331         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
10332         our own stack frame instead of the caller's.
10333         (__socket): Use symbolic stack frame offsets.
10334
10335 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10336             Alan Modra  <amodra@gmail.com>
10337
10338         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
10339         Define.
10340         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
10341         (PPC64_LOCAL_ENTRY_OFFSET): Define.
10342         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
10343         New function.
10344         (elf_machine_fixup_plt): Call it.
10345         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
10346         reloc arguments.
10347         (elf_machine_rela): Update call to elf_machine_plt_conflict.
10348         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10349         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
10350         r2 before calling target.
10351
10352 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10353             Alan Modra  <amodra@gmail.com>
10354
10355         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
10356         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
10357         versions of macros to support ELFv2 ABI.
10358         (LOCALENTRY): New macro.
10359         (ENTRY, EALIGN): Use it.
10360         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
10361         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
10362         fall through into ENTRY entry point.
10363         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
10364         Only define if _CALL_ELF != 2.
10365
10366         (elf_machine_matches_host): Verify ABI version matches.
10367         (RTLD_START): Use LOCALENTRY.
10368         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
10369         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
10370         (PLT_ENTRY_WORDS): New macro.
10371         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
10372         (elf_machine_runtime_setup): Support ELFv2 ABI.
10373         (elf_machine_fixup_plt): Likewise.
10374         (elf_machine_plt_conflict): Likewise.
10375         (resolve_ifunc): Likewise.
10376         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
10377         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
10378         Likewise.
10379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10380         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
10381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10382         (makecontext): Support ELFv2 ABI.
10383         * elf/elf.h (EF_PPC64_ABI): Define.
10384
10385 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10386
10387         * sysdeps/powerpc/powerpc64/sysdep.h
10388         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
10389         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
10390         (ENTRY) [ASSEMBLER]: ... but instead here ...
10391         (EALIGN) [ASSEMBLER]: ... and here.
10392         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
10393         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
10394         (ENTRY_2) [!ASSEMBLER]: Use it.
10395         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
10396         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
10397         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10398         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
10399         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
10400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
10401         Use PPC64_LOAD_FUNCPTR.
10402
10403         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
10404
10405 2013-12-04  Alan Modra  <amodra@gmail.com>
10406
10407         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
10408         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
10409         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
10410         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
10411
10412         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
10413         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
10414         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
10415         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
10416         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
10417         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
10418
10419 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10420
10421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10422         (__makecontext): Fix incorrect CFI when backtracing out of
10423         context created via makecontext.
10424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
10425         (__setcontext): Fix incorrect CFI during switch to new context.
10426         (__novec_setcontext): Likewise.
10427
10428 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10429
10430         [BZ #4772]
10431         * time/strptime_l.c (__strptime_internal): Allow modifiers
10432         in strptime.
10433         * time/tst-strptime.c (day_tests): Add testcase.
10434
10435 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10436
10437         * scripts/bench.pl: Skip over blank lines.
10438
10439 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
10440
10441         [BZ #926]
10442         * manual/time.texi (Calendar Time): Clarify what timezone functions
10443         use.
10444
10445 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10446
10447         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10448
10449 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10450
10451         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
10452         implementation.
10453         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
10454         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
10455         * debug/memset_chk.c (__memset_chk): Likewise.
10456         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
10457         * debug/strncpy_chk.c: Likewise.
10458
10459 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10460
10461         [BZ #15268]
10462         [BZ #15425]
10463         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
10464         (__ieee754_exp): For possibly underflowing results, check size of
10465         result and force underflow exception if required.
10466         * math/auto-libm-test-in: Add more tests of exp.
10467         * math/auto-libm-test-out: Regenerated.
10468         * sysdeps/i386/fpu/libm-test-ulps: Update.
10469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10470
10471         [BZ #16283]
10472         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
10473         * math/w_exp2f.c (__exp2f): Likewise.
10474         * math/w_exp2l.c (__exp2l): Likewise.
10475         * math/auto-libm-test-in: Do not allow missing errno on exp2
10476         underflow.
10477         * math/auto-libm-test-out: Regenerated.
10478
10479 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
10480
10481         [BZ #16274]
10482         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
10483         handle filename validation.
10484         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
10485         (do_open): Delete.
10486
10487 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10488
10489         [BZ #6786]
10490         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
10491         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
10492         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
10493         <float.h>.
10494         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
10495         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
10496         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10497         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
10498         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10499         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
10500         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10501         * math/auto-libm-test-in: Don't allow missing errno from erfc.
10502         Add more erfc tests.
10503         * math/auto-libm-test-out: Regenerated.
10504         * sysdeps/i386/fpu/libm-test-ulps: Update.
10505         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10506
10507         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
10508         exp2, expm1, j0 and j1.
10509         * math/auto-libm-test-out: Regenerated.
10510         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
10511         (erfc_test_data): Likewise.
10512         (exp_test_data): Likewise.
10513         (exp_tonearest_test_data): Likewise.
10514         (exp_towardzero_test_data): Likewise.
10515         (exp_downward_test_data): Likewise.
10516         (exp_upward_test_data): Likewise.
10517         (exp10_test_data): Likewise.
10518         (exp2_test_data): Likewise.
10519         (expm1_test_data): Likewise.
10520         (j0_test_data): Likewise.
10521         (j1_test_data): Likewise.
10522         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
10523         (input_flag_type): Add flag_xfail_rounding.
10524         (input_flags): Add xfail-rounding.
10525         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
10526         (output_for_one_input_case): Handle flag_xfail_rounding.
10527         * sysdeps/i386/fpu/libm-test-ulps: Update.
10528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10529
10530 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
10531
10532         [BZ #16289]
10533         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
10534         division by 0.
10535
10536 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10537
10538         [BZ #16195]
10539         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
10540         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
10541         (STAP_PROBE0): New macro.
10542         (STAP_PROBE1): Likewise.
10543         (STAP_PROBE2): Likewise.
10544         (STAP_PROBE3): Likewise.
10545         (STAP_PROBE4): Likewise.
10546
10547 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
10548
10549         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
10550
10551 2013-12-02  Steve Ellcey  <sellcey@mips.com>
10552
10553         * benchtests/Makefile (bench): Add sqrt.
10554         (LDLIBS-bench-sqrt): New.
10555         * benchtests/sqrt-input: New.
10556
10557 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
10558
10559         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
10560         (GAIH_EAI): Likewise.
10561         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
10562         (gaih_inet): Likewise.
10563         (getaddrinfo): Don't use GAIH_EAI.
10564
10565         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
10566         (struct gaih): Remove definition.
10567
10568 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10569
10570         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
10571         Use HERRNOP directly.
10572
10573 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10574
10575         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10576
10577 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
10578
10579         * math/gen-auto-libm-tests.c (test_functions): Add more
10580         single-argument functions.
10581         (special_fill_pi_2): New function.
10582         (special_fill_minus_pi_2): Likewise.
10583         (special_fill_pi_6): Likewise.
10584         (special_fill_minus_pi_6): Likewise.
10585         (special_fill_pi_3): Likewise.
10586         (special_fill_2pi_3): Likewise.
10587         (special_fill_e): Likewise.
10588         (special_fill_1_e): Likewise.
10589         (special_fill_e_minus_1): Likewise.
10590         (special_real_inputs): Add more special inputs.
10591         (output_for_one_input_case): Do not require ERANGE on underflow to
10592         zero if round-to-nearest result does not underflow to zero, unless
10593         exact results required.
10594         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
10595         atan, atanh, cbrt, cos and cosh.
10596         * math/auto-libm-test-out: Regenerated.
10597         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
10598         (acos_tonearest_test_data): Likewise.
10599         (acos_towardzero_test_data): Likewise.
10600         (acos_downward_test_data): Likewise.
10601         (acos_upward_test_data): Likewise.
10602         (acosh_test_data): Likewise.
10603         (asin_test_data): Likewise.
10604         (asin_tonearest_test_data): Likewise.
10605         (asin_towardzero_test_data): Likewise.
10606         (asin_upward_test_data): Likewise.
10607         (asinh_test_data): Likewise.
10608         (atan_test_data): Likewise.
10609         (atanh_test_data): Likewise.
10610         (cbrt_test_data): Likewise.
10611         (cos_test_data): Likewise.
10612         (cos_tonearest_test_data): Likewise.
10613         (cos_towardzero_test_data): Likewise.
10614         (cos_downward_test_data): Likewise.
10615         (cos_upward_test_data): Likewise.
10616         (cosh_test_data): Likewise.
10617         (cosh_tonearest_test_data): Likewise.
10618         (cosh_towardzero_test_data): Likewise.
10619         (cosh_downward_test_data): Likewise.
10620         (cosh_upward_test_data): Likewise.
10621         * sysdeps/i386/fpu/libm-test-ulps: Update.
10622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10623
10624 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
10625
10626         [BZ #6787]
10627         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
10628         * math/w_exp10f.c (__exp10f): Likewise.
10629         * math/w_exp10l.c (__exp10l): Likewise.
10630         * math/libm-test.inc (exp10_test_data): Add more tests and expect
10631         errno settings in existing tests.
10632
10633         [BZ #14032]
10634         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
10635         precision control set to double precision.
10636         * sysdeps/i386/fpu/w_sqrt.c: New file.
10637         * math/auto-libm-test-in: Add more tests.
10638         * math/auto-libm-test-out: Update.
10639
10640         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
10641         (sqrt_test_tonearest): New function.
10642         (sqrt_towardzero_test_data): New variable.
10643         (sqrt_test_towardzero): New function.
10644         (sqrt_downward_test_data): New variable.
10645         (sqrt_test_downward): New function.
10646         (sqrt_upward_test_data): New variable.
10647         (sqrt_test_upward): New function.
10648         (main): Call the new functions.
10649
10650         * math/gen-auto-libm-tests.c: New file.
10651         * math/auto-libm-test-in: Likewise.
10652         * math/auto-libm-test-out: New generated file.
10653         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
10654         variables.
10655         (%beautify): Add generated representations of zero.
10656         (top level): Set $auto_input and call parse_auto_input.
10657         (beautify): Remove trailing "f" from hex float constants.
10658         (parse_args): Handle XFAIL_TEST.
10659         (convert_condition): New function.
10660         (or_value): Likewise.
10661         (or_cond_value): Likewise.
10662         (generate_testfile): Handle AUTO_TESTS_* lines.
10663         (parse_auto_input): New function.
10664         * math/libm-test.inc (XFAIL_TEST): New macro.
10665         (ERRNO_UNCHANGED): Update value.
10666         (ERRNO_EDOM): Likewise.
10667         (ERRNO_ERANGE): Likewise.
10668         (IGNORE_RESULT): Likewise.
10669         (TEST_COND_flt_32): New macro.
10670         (TEST_COND_dbl_64): Likewise.
10671         (TEST_COND_ldbl_96_intel): Likewise.
10672         (TEST_COND_ldbl_96_m68k): Likewise.
10673         (TEST_COND_ldbl_128): Likewise.
10674         (TEST_COND_ldbl_128ibm): Likewise.
10675         (TEST_COND_long32): Likewise.
10676         (TEST_COND_long64): Likewise.
10677         (TEST_COND_before_rounding): Likewise.
10678         (TEST_COND_after_rounding): Likewise.
10679         (enable_test): Handle XFAIL_TEST flag.
10680         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
10681         with finite results.
10682         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
10683         auto-libm-test-out.
10684
10685 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10686             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10687
10688         [BZ #16214]
10689         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
10690         __tls_get_addr_internal instead of __tls_get_offset in order to
10691         avoid GOT pointer dependency.  Make rtld export
10692         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
10693         __tls_get_addr since we are a __tls_get_offset platform.
10694         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
10695         GOT pointer being set up before.
10696         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
10697
10698 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
10699
10700         * manual/math.texi (Errors in Math Functions): Document accuracy
10701         goals.
10702
10703         [BZ #15004]
10704         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
10705         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
10706         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10707         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10708         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10709         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10710         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10711         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10712         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10713         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10714         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10715         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10716         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10717         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10718         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10719         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10720
10721         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
10722         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
10723         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
10724         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
10725         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
10726         Likewise.
10727         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
10728         Likewise.
10729         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
10730         Likewise.
10731         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
10732         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10733         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
10734         atomic-feupdateenv and flt-rounds.
10735         * sysdeps/powerpc/nofpu/Versions (libc): Add
10736         __atomic_feholdexcept, __atomic_feclearexcept,
10737         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
10738         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
10739         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
10740         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
10741         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
10742         here.
10743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
10744         Update.
10745
10746         * manual/arith.texi (FP Exceptions): Document that exceptions may
10747         not be raised when matherr is used.
10748         (Math Error Reporting): Document overflow in directed rounding
10749         modes.  Document that errno may not be set when finite values are
10750         returned on overflow.  Document intent to set errno on underflow
10751         only for underflow to zero.
10752
10753         [BZ #16271]
10754         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
10755         round-to-nearest then adjust result for other rounding modes.
10756         * include/fenv.h (fegetround): Use libm_hidden_proto.
10757         * math/fegetround.c (fegetround): Use libm_hidden_def.
10758         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
10759         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
10760         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
10761         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
10762         Likewise.
10763         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
10764         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
10765         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
10766         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
10767
10768 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10769
10770         [BZ #16077]
10771         * nss/Versions (libnss_files): Add
10772         _nss_files_gethostbyname3_r.
10773         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
10774         New function.
10775         (HOST_DB_LOOKUP): Remove macro.
10776         (_nss_files_gethostbyname_r): Implement function without the
10777         HOST_DB_LOOKUP macro.
10778         (_nss_files_gethostbyname2_r): Likewise.
10779
10780 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
10781
10782         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
10783
10784 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
10785
10786         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
10787         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
10788         warning.
10789
10790 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10791
10792         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
10793         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
10794         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
10795         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
10796         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
10797         __fe_nomask_env_priv and attribute_hidden.
10798         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
10799         (libc_feupdateenv_test_ppc): Likewise.
10800         (libc_feresetround_ppc): Likewise.
10801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10802         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
10803         compat_symbol macro.
10804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10805         (__fe_nomask_env): Likewise.
10806         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
10807
10808 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
10809
10810         * string/Makefile: Remove ifunc tests.
10811         * string/test-string.h: Define TEST_IFUNC.
10812         * string/test-bcopy-ifunc.c: Remove.
10813         * string/test-bzero-ifunc.c: Likewise.
10814         * string/test-memccpy-ifunc.c: Likewise.
10815         * string/test-memchr-ifunc.c: Likewise.
10816         * string/test-memcmp-ifunc.c: Likewise.
10817         * string/test-memcpy-ifunc.c: Likewise.
10818         * string/test-memmem-ifunc.c: Likewise.
10819         * string/test-memmove-ifunc.c: Likewise.
10820         * string/test-mempcpy-ifunc.c: Likewise.
10821         * string/test-memrchr-ifunc.c: Likewise.
10822         * string/test-memset-ifunc.c: Likewise.
10823         * string/test-rawmemchr-ifunc.c: Likewise.
10824         * string/test-stpcpy-ifunc.c: Likewise.
10825         * string/test-stpncpy-ifunc.c: Likewise.
10826         * string/test-strcasecmp-ifunc.c: Likewise.
10827         * string/test-strcasestr-ifunc.c: Likewise.
10828         * string/test-strcat-ifunc.c: Likewise.
10829         * string/test-strchr-ifunc.c: Likewise.
10830         * string/test-strchrnul-ifunc.c: Likewise.
10831         * string/test-strcmp-ifunc.c: Likewise.
10832         * string/test-strcpy-ifunc.c: Likewise.
10833         * string/test-strcspn-ifunc.c: Likewise.
10834         * string/test-strlen-ifunc.c: Likewise.
10835         * string/test-strncasecmp-ifunc.c: Likewise.
10836         * string/test-strncat-ifunc.c: Likewise.
10837         * string/test-strncmp-ifunc.c: Likewise.
10838         * string/test-strncpy-ifunc.c: Likewise.
10839         * string/test-strnlen-ifunc.c: Likewise.
10840         * string/test-strpbrk-ifunc.c: Likewise.
10841         * string/test-strrchr-ifunc.c: Likewise.
10842         * string/test-strspn-ifunc.c: Likewise.
10843         * string/test-strstr-ifunc.c: Likewise.
10844
10845 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
10846
10847         * benchtests/Makefile: Remove ifunc tests.
10848         * benchtests/bench-string.h: Define TEST_IFUNC.
10849         * benchtests/bench-bcopy-ifunc.c: Remove.
10850         * benchtests/bench-bzero-ifunc.c: Likewise.
10851         * benchtests/bench-memccpy-ifunc.c: Likewise.
10852         * benchtests/bench-memchr-ifunc.c: Likewise.
10853         * benchtests/bench-memcmp-ifunc.c: Likewise.
10854         * benchtests/bench-memcpy-ifunc.c: Likewise.
10855         * benchtests/bench-memmem-ifunc.c: Likewise.
10856         * benchtests/bench-memmove-ifunc.c: Likewise.
10857         * benchtests/bench-mempcpy-ifunc.c: Likewise.
10858         * benchtests/bench-memrchr-ifunc.c: Likewise.
10859         * benchtests/bench-memset-ifunc.c: Likewise.
10860         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
10861         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
10862         * benchtests/bench-stpcpy-ifunc.c: Likewise.
10863         * benchtests/bench-stpncpy-ifunc.c: Likewise.
10864         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
10865         * benchtests/bench-strcasestr-ifunc.c: Likewise.
10866         * benchtests/bench-strcat-ifunc.c: Likewise.
10867         * benchtests/bench-strchr-ifunc.c: Likewise.
10868         * benchtests/bench-strchrnul-ifunc.c: Likewise.
10869         * benchtests/bench-strcmp-ifunc.c: Likewise.
10870         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
10871         * benchtests/bench-strcpy-ifunc.c: Likewise.
10872         * benchtests/bench-strcspn-ifunc.c: Likewise.
10873         * benchtests/bench-strlen-ifunc.c: Likewise.
10874         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
10875         * benchtests/bench-strncat-ifunc.c: Likewise.
10876         * benchtests/bench-strncmp-ifunc.c: Likewise.
10877         * benchtests/bench-strncpy-ifunc.c: Likewise.
10878         * benchtests/bench-strnlen-ifunc.c: Likewise.
10879         * benchtests/bench-strpbrk-ifunc.c: Likewise.
10880         * benchtests/bench-strrchr-ifunc.c: Likewise.
10881         * benchtests/bench-strsep-ifunc.c: Likewise.
10882         * benchtests/bench-strspn-ifunc.c: Likewise.
10883         * benchtests/bench-strstr-ifunc.c: Likewise.
10884
10885 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
10886
10887         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
10888
10889 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
10890
10891         * resolv/netdb.h: Use __glibc_reserved instead __unused.
10892         * rt/aio.h: Likewise.
10893         * sysdeps/gnu/bits/utmp.h: Likewise.
10894         * sysdeps/gnu/bits/utmpx.h: Likewise.
10895         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
10896         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
10897         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
10898         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
10899         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
10900         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
10901         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
10902         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
10903         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
10904         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
10905         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
10906         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
10907         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
10908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
10909         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
10910         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
10911         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
10912         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
10913         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
10914         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
10915         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
10916         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
10917         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
10918         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
10919         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
10920         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10921         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
10922         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
10923         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
10924         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
10925         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
10926         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
10927         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
10928         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
10929         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
10930         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
10931         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
10932         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
10933         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
10934         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
10935         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
10936         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
10937
10938 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
10939
10940         [BZ #16245]
10941         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
10942         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
10943
10944 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
10945
10946         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
10947         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
10948         Likewise.
10949
10950 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10951
10952         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
10953         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
10954         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
10955         (__fesetround): Remove define.
10956         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
10957         rounding and exceptions handling.
10958         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
10959         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
10960         (__fe_nomask_env): Likewise.
10961         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
10962         __fegetround instead of fegetround.
10963         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
10964         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
10965
10966 2013-11-21  Roland McGrath  <roland@hack.frob.com>
10967
10968         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
10969         it's there.
10970
10971         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
10972
10973 2013-11-21  Meador Inge  <meadori@codesourcery.com>
10974
10975         [BZ #11157]
10976         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
10977         (encrypt_r): Likewise.
10978         * malloc/obstack.h (obstack_free): Likewise.
10979         * posix/unistd.h (encrypt): Likewise.
10980
10981 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
10982
10983         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
10984         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
10985         DL_CALL_DT_FINI() that call the functions directly.
10986         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
10987         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
10988         * elf/dl-fini.c: Likewise.
10989
10990 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
10991
10992         * malloc/hooks.c (memalign_check): Add alignment rounding.
10993         * malloc/malloc.c (_mid_memalign): New function.
10994         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
10995         Implement by calling _mid_memalign.
10996         * manual/probes.texi (Memory Allocation Probes): Remove
10997         memory_valloc_retry and memory_pvalloc_retry.
10998
10999 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11000
11001         * locale/programs/locarchive.c (open_archive): Add const
11002         qualifier to ARCHIVEFNAME and copy default fname to
11003         DEFAULT_FNAME.
11004
11005         [BZ #15601]
11006         * libio/tst-widetext.input: Rename Oriya to Odia.
11007         * locale/iso-639.def: Likewise.
11008
11009         * manual/probes.texi (Mathematical Function Probes): Add
11010         documentation for sin, cos, asin and acos probes.
11011         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11012         (__sin32): Add slowasin probe.
11013         (__cos32): Add slowacos probe.
11014         (__mpsin): Add slowsin probe.
11015         (__mpcos): Add slowcos probe.
11016
11017 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11018
11019         [BZ #15483]
11020         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11021         thread-local __sim_exceptions_thread and global
11022         __sim_exceptions_global.
11023         (__sim_disabled_exceptions): Change to thread-local
11024         __sim_disabled_exceptions_thread and global
11025         __sim_disabled_exceptions_global.
11026         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11027         and global __sim_round_mode_global.
11028         (__simulate_exceptions): Use thread-local floating-point state and
11029         set global state from it as needed.
11030         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11031         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11032         __sim_round_mode_thread.
11033         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11034         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11035         and global __sim_exceptions_global.
11036         (__sim_disabled_exceptions): Change to thread-local
11037         __sim_disabled_exceptions_thread and global
11038         __sim_disabled_exceptions_global.
11039         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11040         and global __sim_round_mode_global.
11041         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11042         (SIM_SET_GLOBAL): Likewise.
11043         * sysdeps/powerpc/soft-fp/sfp-machine.h
11044         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11045         __sim_round_mode_thread.
11046         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11047         __sim_disabled_exceptions_thread.
11048         (__sim_exceptions): Change to __sim_exceptions_thread.
11049         (__sim_disabled_exceptions): Change to
11050         __sim_disabled_exceptions_thread.
11051         (__sim_round_mode): Change to __sim_round_mode_thread.
11052         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11053         thread-local floating-point state and set global state from it as
11054         needed.
11055         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11056         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11057         (__sim_disabled_exceptions): Remove extern declaration.
11058         (feenableexcept): Use thread-local floating-point state and set
11059         global state from it as needed.
11060         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11061         extern declaration.
11062         (__sim_disabled_exceptions): Likewise.
11063         (__sim_round_mode): Likewise.
11064         (__fegetenv): Use thread-local floating-point state.
11065         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11066         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11067         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11068         floating-point state and set global state from it as needed.
11069         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11070         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11071         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11072         Likewise.
11073         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11074         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11075         Likewise.
11076         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11077         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11078         Use __sim_round_mode_thread.
11079         * math/test-fenv-tls.c: New file.
11080         * math/Makefile (tests): Add test-fenv-tls.
11081         ($(objpfx)test-fenv-tls): Depend on
11082         $(common-objpfx)nptl/libpthread.so.
11083
11084 2013-11-19  Andreas Schwab  <schwab@suse.de>
11085
11086         * locale/programs/locale.c (show_info): Decode wordarray elements.
11087         * locale/categories.def (LC_MONETARY): Add element for
11088         _NL_MONETARY_CRNCYSTR.
11089         * locale/C-monetary.c (conversion_rate): New variable.
11090         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11091         element.
11092
11093 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
11094
11095         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
11096         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
11097
11098 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11099
11100         * elf/Makefile (tst-auxv): New test.
11101         * elf/tst-auxv.c: New
11102         * elf/rtld.c (dl_main): Adjust AT_EXECFN
11103
11104 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
11105
11106         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
11107         (hidden_proto): Caller changed.
11108         (hidden_tls_proto): New macro.
11109         (libc_hidden_tls_proto): Likewise.
11110         (rtld_hidden_tls_proto): Likewise.
11111         (libm_hidden_tls_proto): Likewise.
11112         (libresolv_hidden_tls_proto): Likewise.
11113         (librt_hidden_tls_proto): Likewise.
11114         (libdl_hidden_tls_proto): Likewise.
11115         (libnss_files_hidden_tls_proto): Likewise.
11116         (libnsl_hidden_tls_proto): Likewise.
11117         (libnss_nisplus_hidden_tls_proto): Likewise.
11118         (libutil_hidden_tls_proto): Likewise.
11119
11120 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
11121
11122         [BZ #10253]
11123         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
11124         (decompose_rpath): Defer expansion to fillin_rpath.
11125         (_dl_init_paths): Pass linkmap to fillin_rpath.
11126
11127 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11128
11129         * benchtests/Makefile: Add strsep.
11130         * benchtests/bench-strsep.c: New file: strsep benchtest.
11131         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
11132
11133 2013-11-18  Andreas Schwab  <schwab@suse.de>
11134
11135         * locale/programs/locale.c (show_info) [case byte]: Check for
11136         '\377' instead of '\177'.
11137         * locale/C-monetary.c (not_available): Always use "\377".
11138         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
11139         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
11140         detect unavailable sign_posn locale elements.
11141         * locale/localeconv.c (__localeconv): For grouping and
11142         mon_grouping handle "\177" and "\377" like no grouping.
11143         (INT_ELEM): New macro.  Use it to set all numeric members.
11144         * locale/programs/ld-monetary.c (monetary_read)
11145         <tok_mon_grouping>: Normalize single -1 to the empty string.
11146         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
11147         Likewise.
11148
11149 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11150
11151         [BZ #16055]
11152         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
11153         when we match (nil).
11154         * stdio-common/tst-sscanf.c (struct test): Add testcase.
11155
11156 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
11157
11158         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
11159         (NO_TEST_INLINE): Update value.
11160         (ERRNO_UNCHANGED): Likewise.
11161         (ERRNO_EDOM): Likewise.
11162         (ERRNO_ERANGE): Likewise.
11163         (IGNORE_RESULT): Likewise.
11164         (check_float_internal): Check signs of NaN results if
11165         TEST_NAN_SIGN used.
11166         (check_complex): Pass TEST_NAN_SIGN flag through to second
11167         check_float_internal call.
11168         (copysign_test_data): Add tests with quiet NaNs as second
11169         argument.  Use TEST_NAN_SIGN.
11170         (fabs_test_data): Add test of negative quiet NaN argument.  Use
11171         TEST_NAN_SIGN.
11172         (signbit_test_data): Add tests of quiet NaN argument.
11173         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
11174
11175         * math/gen-libm-test.pl (show_exceptions): Take extra argument
11176         $ignore_result.
11177         (parse_args): Handle function results specified as IGNORE.
11178         * math/libm-test.inc (IGNORE_RESULT): New macro.
11179         (check_float_internal): Do not check numerical result if flag
11180         IGNORE_RESULT set.
11181         (check_complex): Pass through IGNORE_RESULT to second
11182         check_float_internal call.
11183         (check_int): Do not check numerical result if flag IGNORE_RESULT
11184         set.
11185         (check_long): Likewise.
11186         (check_bool): Likewise.
11187         (check_longlong): Likewise.
11188         (lrint_test_data): Add tests of infinite and NaN arguments.
11189         (lrint_tonearest_test_data): Likewise.
11190         (lrint_towardzero_test_data): Likewise.
11191         (lrint_downward_test_data): Likewise.
11192         (lrint_upward_test_data): Likewise.
11193         (llrint_test_data): Likewise.
11194         (llrint_tonearest_test_data): Likewise.
11195         (llrint_towardzero_test_data): Likewise.
11196         (llrint_downward_test_data): Likewise.
11197         (llrint_upward_test_data): Likewise.
11198         (lround_test_data): Likewise.
11199         (llround_test_data): Likewise.
11200
11201         * math/libm-test.inc (NO_TEST_INLINE): New macro.
11202         (ERRNO_UNCHANGED): Update value.
11203         (ERRNO_EDOM): Likewise.
11204         (ERRNO_ERANGE): Likewise.
11205         (NO_TEST_INLINE_FLOAT): New macro.
11206         (NO_TEST_INLINE_DOUBLE): Likewise.
11207         (enable_test): New function.
11208         (RUN_TEST_f_f): Check enable_test before running test.
11209         (RUN_TEST_2_f): Likewise.
11210         (RUN_TEST_fff_f): Likewise.
11211         (RUN_TEST_c_f): Likewise.
11212         (RUN_TEST_f_f1): Likewise.
11213         (RUN_TEST_fF_f1): Likewise.
11214         (RUN_TEST_fI_f1): Likewise.
11215         (RUN_TEST_ffI_f1): Likewise.
11216         (RUN_TEST_c_c): Likewise.
11217         (RUN_TEST_cc_c): Likewise.
11218         (RUN_TEST_f_i): Likewise.
11219         (RUN_TEST_f_i_tg): Likewise.
11220         (RUN_TEST_ff_i_tg): Likewise.
11221         (RUN_TEST_f_b): Likewise.
11222         (RUN_TEST_f_b_tg): Likewise.
11223         (RUN_TEST_f_l): Likewise.
11224         (RUN_TEST_f_L): Likewise.
11225         (RUN_TEST_fFF_11): Likewise.
11226         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
11227         conditionals.
11228         (cosh_test_data): Likewise.
11229         (exp_test_data): Likewise.
11230         (expm1_test_data): Likewise.
11231         (hypot_test_data): Likewise.
11232         (pow_test_data): Likewise.
11233         (sinh_test_data): Likewise.
11234         (tanh_test_data): Likewise.
11235         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
11236         flags argument.
11237
11238         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
11239         tests with quiet NaN input and output.
11240         (acosh_test_data): Likewise.
11241         (asin_test_data): Likewise.
11242         (asinh_test_data): Likewise.
11243         (atan_test_data): Likewise.
11244         (atanh_test_data): Likewise.
11245         (atan2_test_data): Likewise.
11246         (cbrt_test_data): Likewise.
11247         (cos_test_data): Likewise.
11248         (cosh_test_data): Likewise.
11249         (erf_test_data): Likewise.
11250         (erfc_test_data): Likewise.
11251         (exp_test_data): Likewise.
11252         (exp10_test_data): Likewise.
11253         (exp2_test_data): Likewise.
11254         (expm1_test_data): Likewise.
11255         (hypot_test_data): Likewise.
11256         (j0_test_data): Likewise.
11257         (j1_test_data): Likewise.
11258         (jn_test_data): Likewise.
11259         (lgamma_test_data): Likewise.
11260         (log_test_data): Likewise.
11261         (log10_test_data): Likewise.
11262         (log1p_test_data): Likewise.
11263         (log2_test_data): Likewise.
11264         (pow_test_data): Likewise.
11265         (scalb_test_data): Likewise.
11266         (sin_test_data): Likewise.
11267         (sincos_test_data): Likewise.
11268         (sinh_test_data): Likewise.
11269         (tan_test_data): Likewise.
11270         (tanh_test_data): Likewise.
11271         (tgamma_test_data): Likewise.
11272         (y0_test_data): Likewise.
11273         (y1_test_data): Likewise.
11274         (yn_test_data): Likewise.
11275
11276         [BZ #16167]
11277         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
11278         argument being NaN and avoid computations with second argument in
11279         that case.
11280         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11281         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11282         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11283
11284 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
11285
11286         * locale/iso-639.def: Add Chitwani Tharu (the).
11287
11288 2013-11-14  Andreas Schwab  <schwab@suse.de>
11289
11290         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
11291         word instead of empty string.
11292
11293 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11294
11295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11296         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
11297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11298         (__fe_nomask_env): Likewise.
11299
11300 2013-11-13  Steve Ellcey  <sellcey@mips.com>
11301
11302         * benchtests/bench-timing.h: Include time.h.
11303
11304 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
11305
11306         [BZ #15997]
11307         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
11308         to 3.4.0 for x32.
11309         * sysdeps/unix/sysv/linux/configure: Regenerated.
11310
11311 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11312
11313         [BZ #16151]
11314         * stdlib/strtod_l.c (round_and_return): Do not consider
11315         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
11316         exponent one less than half the least subnormal exponent.
11317         * stdlib/test-strtod-round-data: Add more tests.
11318         * stdlib/tst-strtod-round.c (tests): Regenerated.
11319
11320 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11321
11322         [BZ #14143]
11323         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
11324         (__fe_mask_env): Likewise.
11325         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
11326         libm_hidden_proto and add function prototype.
11327         (__fe_mask_env): Add function prototype.
11328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11329         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
11330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11331         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
11332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11333         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
11334
11335 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11336
11337         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
11338         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
11339
11340 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11341
11342         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
11343         of htab_find_slot().
11344
11345 2013-11-11  David S. Miller  <davem@davemloft.net>
11346
11347         [BZ #16150]
11348         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
11349         symbol in the non-vis3 case in static builds.
11350         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
11351         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
11352         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
11353         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
11354
11355 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11356
11357         [BZ #387]
11358         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
11359         it is empty.
11360
11361 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11362
11363         * benchtests/Makefile: Add bench-strtod.
11364         * benchtests/bench-strtod.c: New file: strtod benchtest
11365
11366 2013-11-11  Andreas Schwab  <schwab@suse.de>
11367
11368         [BZ #16153]
11369         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
11370         terminating NUL in key length.
11371
11372 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11373
11374         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11375         Add artificial ODP entry for vDSO symbol for PPC64.
11376         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
11377         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
11378
11379 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11380
11381         [BZ #15374]
11382         * nss/getent.c (services_keys): Recognize services starting with digit.
11383
11384 2013-11-06  David S. Miller  <davem@davemloft.net>
11385
11386         [BZ #15985]
11387         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
11388         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
11389
11390 2013-11-06  Will Newton  <will.newton@linaro.org>
11391
11392         * manual/memory.texi (Malloc Examples): Remove register
11393         keyword from examples.
11394
11395 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
11396
11397         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
11398
11399 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11400
11401         [BZ #6981]
11402         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
11403         depending on [__GCC_IEC_559 > 0].
11404         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
11405         depending on [__GCC_IEC_559_COMPLEX > 0].
11406
11407 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
11408
11409         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
11410         to iso-639.def.
11411
11412 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
11413
11414         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
11415
11416 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
11417
11418         [BZ #16112]
11419         * malloc/malloc (malloc_info): Do not handle first bin as
11420         special case.
11421
11422 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
11423
11424         * locale/iso-639.def: Add Central Nahuatl (nhn).
11425
11426 2013-11-01  Bruno Haible  <bruno@clisp.org>
11427
11428         [BZ #7003]
11429         * manual/math.texi (BSD Random): Specify range upper bound as
11430         in POSIX.
11431
11432 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
11433
11434         * locale/iso-639.def: Add Meadow Mari (mhr).
11435
11436 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
11437
11438         [BZ #14752], [BZ #15763]
11439         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
11440         Validate name.
11441         * rt/tst_shm.c: Add test for escaping directory.
11442
11443 2013-10-31  Andreas Schwab  <schwab@suse.de>
11444
11445         [BZ #15917]
11446         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
11447         followed by 'x' as part of digit sequence.
11448         * stdio-common/tst-sscanf.c (double_tests2): New tests.
11449
11450 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11451
11452         [BZ #16037]
11453         * configure.ac: allow GNU Make 4.0 and greater.
11454         * configure: Regenerated.
11455
11456 2013-10-30  Will Newton  <will.newton@linaro.org>
11457
11458         [BZ #16038]
11459         * malloc/hooks.c (memalign_check): Limit alignment to the
11460         maximum representable power of two.
11461         * malloc/malloc.c (__libc_memalign): Likewise.
11462         * malloc/tst-memalign.c (do_test): Add test for very
11463         large alignment values.
11464         * malloc/tst-posix_memalign.c (do_test): Likewise.
11465
11466 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11467
11468         [BZ #11087]
11469         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
11470         (munmap_chunk): Likewise.
11471         (mremap_chunk): Likewise.
11472
11473 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11474
11475         [BZ #15799]
11476         * stdlib/div.c (div): Remove obsolete code.
11477         * stdlib/ldiv.c (ldiv): Likewise.
11478         * stdlib/lldiv.c (lldiv): Likewise.
11479
11480 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11481
11482         [BZ #16071]
11483         * nss/nss_files/files-XXX.c (get_contents_ret): New
11484         enumerator.
11485         (get_contents): New function.
11486         (internal_getent): Use it.  Expand size of LINEBUFLEN.
11487
11488 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
11489
11490         * configure.in: Moved to ...
11491         * configure.ac: ... here. Change reference to configure.in
11492         to configure.ac.
11493         * sysdeps/arm/preconfigure.ac: ... here.
11494         configure.in to configure.ac.
11495         * sysdeps/gnu/configure.in: Moved to ...
11496         * sysdeps/gnu/configure.ac: ... here.
11497         * sysdeps/i386/configure.in: Moved to ...
11498         * sysdeps/i386/configure.ac: ... here.
11499         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
11500         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
11501         * sysdeps/mach/configure.in: Moved to ...
11502         * sysdeps/mach/configure.ac: ... here.
11503         * sysdeps/mach/hurd/configure.in: Moved to ...
11504         * sysdeps/mach/hurd/configure.ac: ... here.
11505         * sysdeps/powerpc/configure.in: Moved to ...
11506         * sysdeps/powerpc/configure.ac: ... here.
11507         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
11508         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
11509         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
11510         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
11511         * sysdeps/s390/s390-32/configure.in: Moved to ...
11512         * sysdeps/s390/s390-32/configure.ac: ... here.
11513         * sysdeps/s390/s390-64/configure.in: Moved to ...
11514         * sysdeps/s390/s390-64/configure.ac: ... here.
11515         * sysdeps/sh/configure.in: Moved to ...
11516         * sysdeps/sh/configure.ac: ... here.
11517         * sysdeps/sparc/configure.in: Moved to ...
11518         * sysdeps/sparc/configure.ac: ... here.
11519         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
11520         * sysdeps/unix/sysv/linux/configure.ac: ... here.
11521         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
11522         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
11523         * sysdeps/x86_64/configure.in: Moved to ...
11524         * sysdeps/x86_64/configure.ac: ... here.
11525         * sysdeps/x86_64/preconfigure.in: Moved to ...
11526         * sysdeps/x86_64/preconfigure.ac: ... here.
11527         * aclocal.m4: Change reference to configure.in to configure.ac.
11528         * config.h.in: Likewise.
11529         * manual/install.texi: Likewise.
11530         * manual/maint.texi: Likewise.
11531         * Makefile: Likewise.
11532         * malloc/Makefile: Likewise.
11533         * nscd/Makefile: Likewise.
11534         * Makeconfig: Change reference to configure.in and
11535         preconfigure.in to configure.ac and preconfigure.ac
11536         respectively.
11537         * INSTALL: Regenerated.
11538         * configure: Likewise.
11539         * sysdeps/gnu/configure: Likewise.
11540         * sysdeps/i386/configure: Likewise.
11541         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
11542         * sysdeps/mach/configure: Likewise.
11543         * sysdeps/mach/hurd/configure: Likewise.
11544         * sysdeps/powerpc/configure: Likewise.
11545         * sysdeps/powerpc/powerpc32/configure: Likewise.
11546         * sysdeps/powerpc/powerpc64/configure: Likewise.
11547         * sysdeps/s390/s390-32/configure: Likewise.
11548         * sysdeps/s390/s390-64/configure: Likewise.
11549         * sysdeps/sh/configure: Likewise.
11550         * sysdeps/sparc/configure: Likewise.
11551         * sysdeps/unix/sysv/linux/configure: Likewise.
11552         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
11553         * sysdeps/x86_64/configure: Likewise.
11554         * sysdeps/x86_64/preconfigure: Likewise.
11555
11556 2013-10-29  Andreas Schwab  <schwab@suse.de>
11557
11558         * stdio-common/Makefile (tst-swscanf-ENV): Define.
11559
11560 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11561
11562         * benchtests/pow-inputs: Add new inputs.
11563
11564         * benchtests/exp-inputs: Add new inputs.
11565
11566         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
11567         conditional check for return value.
11568         (__cos32): Likewise.
11569
11570 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11571
11572         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
11573         to provide a boost for large inputs with word alignment.
11574         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
11575         implementation based on optimized PPC64 strcpy.
11576         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
11577         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
11578         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
11579         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
11580
11581 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11582
11583         [BZ #2801]
11584         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
11585
11586 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11587
11588         [BZ #14876]
11589         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
11590         * time/tst-strptime.c (day_tests): Add testcase.
11591
11592 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11593
11594         [BZ #14029]
11595         * manual/pattern.texi: Acknowledge that fnmatch can fail.
11596
11597 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
11598
11599         [BZ #16074]
11600         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
11601         MAP_FAILED on error.
11602
11603 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11604
11605         [BZ #16072]
11606         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
11607         heap for large requests.
11608
11609 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
11610
11611         [BZ #9954]
11612         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
11613         result if the result has no associated interface.
11614         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
11615         interface for all 127.X.Y.Z addresses.
11616
11617 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
11618
11619         * locale/iso-639.def: Add Ligurian (lij)
11620
11621 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
11622
11623         [BZ #15825]
11624         * sunrpc/rpc_main.c: Document rpcgen -5.
11625
11626 2013-10-19  Michael Stahl  <mstahl@redhat.com>
11627
11628         * elf/rtld.c (do_preload): Print the reason why preloading failed.
11629
11630 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
11631
11632         [BZ #10278]
11633         * posix/glob.c: Match only directories when trailing slash is present.
11634         * posix/tst-gnuglob.c (my_opendir): Do not open files.
11635         (main): Add testcase.
11636
11637 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
11638
11639         [BZ #15670]
11640         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
11641
11642 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
11643
11644         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
11645         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
11646         AUTH_DES and cindex for FIPS 140-2.
11647         (DES Encryption): Add cindex FIPS 46-3.
11648
11649         * locale/locarchive.h (struct locarhandle): Add fname.
11650         * locale/programs/localedef.c (main): Pass ARGV[remaining]
11651         if an optional argument was specified to --list-archive,
11652         otherwise NULL.
11653         * locale/programs/locarchive.c (show_archive_content): Take new
11654         argument fname and pass it via ah.fname to open_archive.
11655         * locale/programs/localedef.h: Update decl.
11656         (open_archive): If AH->fname is non-null, open that file
11657         rather than the default file name, and don't ignore ENOENT.
11658         (create_archive): Set AH.fname to NULL.
11659         (delete_locales_from_archive): Likewise.
11660         (add_locales_to_archive): Likewise.
11661         * locale/programs/locfile.c (write_all_categories): Likewise.
11662
11663 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
11664             Aldy Hernandez  <aldyh@redhat.com>
11665
11666         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
11667         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
11668         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
11669         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
11670         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
11671         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
11672         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
11673         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
11674         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
11675         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
11676         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
11677         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
11678         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
11679         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
11680         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
11681         Likewise.
11682         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
11683         Likewise.
11684         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
11685         Likewise.
11686         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
11687         Likewise.
11688         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
11689         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
11690         Likewise.
11691         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
11692         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
11693         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
11694         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
11695         Likewise.
11696         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
11697         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
11698         * sysdeps/powerpc/preconfigure: Likewise.
11699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11700         Likewise.
11701         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
11702         Replace contents of file by #include of <fenv_libc.h>.
11703         * sysdeps/powerpc/soft-fp/sfp-machine.h
11704         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
11705         and <sys/prctl.h>.
11706         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
11707         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
11708         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
11709         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
11710         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
11711         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
11712         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
11713         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
11714         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
11715         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
11716         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
11717         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
11718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
11719         Allow copysignl PLT reference to be missing.
11720
11721 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
11722             Joseph Myers  <joseph@codesourcery.com
11723
11724         [BZ #15948]
11725         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
11726         single character.
11727         (add_to_tablewc): Assert sequence of wide characters is nonempty.
11728
11729 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11730
11731         * elf/tst-tls-dlinfo.c: Don't include tls.h.
11732         * elf/tst-tls1.c: Likewise.
11733         * elf/tst-tls10.h: Likewise.
11734         * elf/tst-tls14.c: Likewise.
11735         * elf/tst-tls2.c: Likewise.
11736         * elf/tst-tls3.c: Likewise.
11737         * elf/tst-tls4.c: Likewise.
11738         * elf/tst-tls5.c: Likewise.
11739         * elf/tst-tls6.c: Likewise.
11740         * elf/tst-tls7.c: Likewise.
11741         * elf/tst-tls8.c: Likewise.
11742         * elf/tst-tls9.c: Likewise.
11743         * elf/tst-tlsmod1.c: Likewise.
11744         * elf/tst-tlsmod13.c: Likewise.
11745         * elf/tst-tlsmod13a.c: Likewise.
11746         * elf/tst-tlsmod14a.c: Likewise.
11747         * elf/tst-tlsmod16a.c: Likewise.
11748         * elf/tst-tlsmod16b.c: Likewise.
11749         * elf/tst-tlsmod2.c: Likewise.
11750         * elf/tst-tlsmod3.c: Likewise.
11751         * elf/tst-tlsmod4.c: Likewise.
11752         * elf/tst-tlsmod5.c: Likewise.
11753         * elf/tst-tlsmod6.c: Likewise.
11754
11755 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
11756
11757         [BZ #12486]
11758         * malloc/malloc.c: remove checks for statistics.
11759
11760 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
11761
11762         [BZ #15277]
11763         * inet/inet_net.c (inet_network): Detect additional invalid strings.
11764         * inet/tst-network.c: Add testcase.
11765
11766 2013-10-17  Andreas Schwab  <schwab@suse.de>
11767
11768         [BZ #15218]
11769         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
11770         to determine canonical name.
11771
11772 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
11773
11774         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
11775         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
11776         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11777         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11778         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11779         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11780         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11781         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11782         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11783         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11784         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
11785         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11786         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11787         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11788         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11789         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11790         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11791         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11792         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11793         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11794         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11795         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11796         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11797         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
11798         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
11799         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11800         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11801         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
11802         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11803         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
11804         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11805         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11806         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11807         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11808         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11809         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11810         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11811         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11812         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11813         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11814         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11815         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11816         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11817         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11818         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11819         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11820         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11821         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11822         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11823         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11824         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11825         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11826         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11827         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11828         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11829         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11830         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11831         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11832
11833 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
11834
11835         [BZ #16041]
11836         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
11837         make result into a quiet NaN.
11838
11839 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
11840
11841         * soft-fp/adddf3.c: Fix horizontal whitespace.
11842         * soft-fp/addsf3.c: Likewise.
11843         * soft-fp/addtf3.c: Likewise.
11844         * soft-fp/divdf3.c: Likewise.
11845         * soft-fp/divsf3.c: Likewise.
11846         * soft-fp/divtf3.c: Likewise.
11847         * soft-fp/double.h: Likewise.
11848         * soft-fp/eqdf2.c: Likewise.
11849         * soft-fp/eqsf2.c: Likewise.
11850         * soft-fp/eqtf2.c: Likewise.
11851         * soft-fp/extenddftf2.c: Likewise.
11852         * soft-fp/extended.h: Likewise.
11853         * soft-fp/extendsfdf2.c: Likewise.
11854         * soft-fp/extendsftf2.c: Likewise.
11855         * soft-fp/extendxftf2.c: Likewise.
11856         * soft-fp/fixdfdi.c: Likewise.
11857         * soft-fp/fixdfsi.c: Likewise.
11858         * soft-fp/fixdfti.c: Likewise.
11859         * soft-fp/fixsfdi.c: Likewise.
11860         * soft-fp/fixsfsi.c: Likewise.
11861         * soft-fp/fixsfti.c: Likewise.
11862         * soft-fp/fixtfdi.c: Likewise.
11863         * soft-fp/fixtfsi.c: Likewise.
11864         * soft-fp/fixtfti.c: Likewise.
11865         * soft-fp/fixunsdfdi.c: Likewise.
11866         * soft-fp/fixunsdfsi.c: Likewise.
11867         * soft-fp/fixunsdfti.c: Likewise.
11868         * soft-fp/fixunssfdi.c: Likewise.
11869         * soft-fp/fixunssfsi.c: Likewise.
11870         * soft-fp/fixunssfti.c: Likewise.
11871         * soft-fp/fixunstfdi.c: Likewise.
11872         * soft-fp/fixunstfsi.c: Likewise.
11873         * soft-fp/fixunstfti.c: Likewise.
11874         * soft-fp/floatdidf.c: Likewise.
11875         * soft-fp/floatdisf.c: Likewise.
11876         * soft-fp/floatditf.c: Likewise.
11877         * soft-fp/floatsidf.c: Likewise.
11878         * soft-fp/floatsisf.c: Likewise.
11879         * soft-fp/floatsitf.c: Likewise.
11880         * soft-fp/floattidf.c: Likewise.
11881         * soft-fp/floattisf.c: Likewise.
11882         * soft-fp/floattitf.c: Likewise.
11883         * soft-fp/floatundidf.c: Likewise.
11884         * soft-fp/floatundisf.c: Likewise.
11885         * soft-fp/floatunditf.c: Likewise.
11886         * soft-fp/floatunsidf.c: Likewise.
11887         * soft-fp/floatunsisf.c: Likewise.
11888         * soft-fp/floatunsitf.c: Likewise.
11889         * soft-fp/floatuntidf.c: Likewise.
11890         * soft-fp/floatuntisf.c: Likewise.
11891         * soft-fp/floatuntitf.c: Likewise.
11892         * soft-fp/fmadf4.c: Likewise.
11893         * soft-fp/fmasf4.c: Likewise.
11894         * soft-fp/fmatf4.c: Likewise.
11895         * soft-fp/gedf2.c: Likewise.
11896         * soft-fp/gesf2.c: Likewise.
11897         * soft-fp/getf2.c: Likewise.
11898         * soft-fp/ledf2.c: Likewise.
11899         * soft-fp/lesf2.c: Likewise.
11900         * soft-fp/letf2.c: Likewise.
11901         * soft-fp/muldf3.c: Likewise.
11902         * soft-fp/mulsf3.c: Likewise.
11903         * soft-fp/multf3.c: Likewise.
11904         * soft-fp/negdf2.c: Likewise.
11905         * soft-fp/negsf2.c: Likewise.
11906         * soft-fp/negtf2.c: Likewise.
11907         * soft-fp/op-1.h: Likewise.
11908         * soft-fp/op-2.h: Likewise.
11909         * soft-fp/op-4.h: Likewise.
11910         * soft-fp/op-8.h: Likewise.
11911         * soft-fp/op-common.h: Likewise.
11912         * soft-fp/quad.h: Likewise.
11913         * soft-fp/single.h: Likewise.
11914         * soft-fp/soft-fp.h: Likewise.
11915         * soft-fp/sqrtdf2.c: Likewise.
11916         * soft-fp/sqrtsf2.c: Likewise.
11917         * soft-fp/sqrttf2.c: Likewise.
11918         * soft-fp/subdf3.c: Likewise.
11919         * soft-fp/subsf3.c: Likewise.
11920         * soft-fp/subtf3.c: Likewise.
11921         * soft-fp/truncdfsf2.c: Likewise.
11922         * soft-fp/trunctfdf2.c: Likewise.
11923         * soft-fp/trunctfsf2.c: Likewise.
11924         * soft-fp/trunctfxf2.c: Likewise.
11925         * soft-fp/unorddf2.c: Likewise.
11926         * soft-fp/unordsf2.c: Likewise.
11927         * soft-fp/unordtf2.c: Likewise.
11928
11929 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
11930
11931         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
11932         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
11933
11934 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
11935
11936         * elf/dl-libc.c: Clear initfini list after freeing.
11937
11938 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
11939
11940         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
11941         * soft-fp/addsf3.c: Likewise.
11942         * soft-fp/addtf3.c: Likewise.
11943         * soft-fp/divdf3.c: Likewise.
11944         * soft-fp/divsf3.c: Likewise.
11945         * soft-fp/divtf3.c: Likewise.
11946         * soft-fp/double.h: Likewise.
11947         * soft-fp/eqdf2.c: Likewise.
11948         * soft-fp/eqsf2.c: Likewise.
11949         * soft-fp/eqtf2.c: Likewise.
11950         * soft-fp/extenddftf2.c: Likewise.
11951         * soft-fp/extended.h: Likewise.
11952         * soft-fp/extendsfdf2.c: Likewise.
11953         * soft-fp/extendsftf2.c: Likewise.
11954         * soft-fp/extendxftf2.c: Likewise.
11955         * soft-fp/fixdfdi.c: Likewise.
11956         * soft-fp/fixdfsi.c: Likewise.
11957         * soft-fp/fixdfti.c: Likewise.
11958         * soft-fp/fixsfdi.c: Likewise.
11959         * soft-fp/fixsfsi.c: Likewise.
11960         * soft-fp/fixsfti.c: Likewise.
11961         * soft-fp/fixtfdi.c: Likewise.
11962         * soft-fp/fixtfsi.c: Likewise.
11963         * soft-fp/fixtfti.c: Likewise.
11964         * soft-fp/fixunsdfdi.c: Likewise.
11965         * soft-fp/fixunsdfsi.c: Likewise.
11966         * soft-fp/fixunsdfti.c: Likewise.
11967         * soft-fp/fixunssfdi.c: Likewise.
11968         * soft-fp/fixunssfsi.c: Likewise.
11969         * soft-fp/fixunssfti.c: Likewise.
11970         * soft-fp/fixunstfdi.c: Likewise.
11971         * soft-fp/fixunstfsi.c: Likewise.
11972         * soft-fp/fixunstfti.c: Likewise.
11973         * soft-fp/floatdidf.c: Likewise.
11974         * soft-fp/floatdisf.c: Likewise.
11975         * soft-fp/floatditf.c: Likewise.
11976         * soft-fp/floatsidf.c: Likewise.
11977         * soft-fp/floatsisf.c: Likewise.
11978         * soft-fp/floatsitf.c: Likewise.
11979         * soft-fp/floattidf.c: Likewise.
11980         * soft-fp/floattisf.c: Likewise.
11981         * soft-fp/floattitf.c: Likewise.
11982         * soft-fp/floatundidf.c: Likewise.
11983         * soft-fp/floatundisf.c: Likewise.
11984         * soft-fp/floatunsidf.c: Likewise.
11985         * soft-fp/floatunsisf.c: Likewise.
11986         * soft-fp/floatuntidf.c: Likewise.
11987         * soft-fp/floatuntisf.c: Likewise.
11988         * soft-fp/floatuntitf.c: Likewise.
11989         * soft-fp/fmadf4.c: Likewise.
11990         * soft-fp/fmasf4.c: Likewise.
11991         * soft-fp/fmatf4.c: Likewise.
11992         * soft-fp/gedf2.c: Likewise.
11993         * soft-fp/gesf2.c: Likewise.
11994         * soft-fp/getf2.c: Likewise.
11995         * soft-fp/ledf2.c: Likewise.
11996         * soft-fp/lesf2.c: Likewise.
11997         * soft-fp/letf2.c: Likewise.
11998         * soft-fp/muldf3.c: Likewise.
11999         * soft-fp/mulsf3.c: Likewise.
12000         * soft-fp/multf3.c: Likewise.
12001         * soft-fp/negdf2.c: Likewise.
12002         * soft-fp/negsf2.c: Likewise.
12003         * soft-fp/negtf2.c: Likewise.
12004         * soft-fp/op-1.h: Likewise.
12005         * soft-fp/op-2.h: Likewise.
12006         * soft-fp/op-4.h: Likewise.
12007         * soft-fp/op-8.h: Likewise.
12008         * soft-fp/op-common.h: Likewise.
12009         * soft-fp/quad.h: Likewise.
12010         * soft-fp/single.h: Likewise.
12011         * soft-fp/soft-fp.h: Likewise.
12012         * soft-fp/sqrtdf2.c: Likewise.
12013         * soft-fp/sqrtsf2.c: Likewise.
12014         * soft-fp/sqrttf2.c: Likewise.
12015         * soft-fp/subdf3.c: Likewise.
12016         * soft-fp/subsf3.c: Likewise.
12017         * soft-fp/subtf3.c: Likewise.
12018         * soft-fp/truncdfsf2.c: Likewise.
12019         * soft-fp/trunctfdf2.c: Likewise.
12020         * soft-fp/trunctfsf2.c: Likewise.
12021         * soft-fp/trunctfxf2.c: Likewise.
12022         * soft-fp/unorddf2.c: Likewise.
12023         * soft-fp/unordsf2.c: Likewise.
12024         * soft-fp/unordtf2.c: Likewise.
12025
12026 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12027
12028         [BZ #15672]
12029         * misc/error.c (error_tail): Fix possible buffer overflow.
12030
12031 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12032
12033         [BZ #13028]
12034         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12035         address.
12036
12037 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12038
12039         [BZ #832]
12040         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12041         testing pipefail option.
12042
12043 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12044
12045         * soft-fp/double.h: Indent preprocessor directives inside #if.
12046         * soft-fp/extended.h: Likewise.
12047         * soft-fp/op-2.h: Likewise.
12048         * soft-fp/op-4.h: Likewise.
12049         * soft-fp/op-common.h: Likewise.
12050         * soft-fp/quad.h: Likewise.
12051         * soft-fp/single.h: Likewise.
12052         * soft-fp/soft-fp.h: Likewise.
12053
12054 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12055
12056         * iconv/iconv_prog.c: Fix typos.
12057         * stdio-common/psiginfo-data.h: Likewise.
12058
12059 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12060
12061         [BZ #15764]
12062         * locale/setlocale.c: Fix typo.
12063
12064 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12065
12066         [BZ #16036]
12067         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12068         signaling NaN arguments.
12069         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12070         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12071
12072         [BZ #14910]
12073         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12074         unordered operands.
12075         * soft-fp/gesf2.c (__gesf2): Likewise.
12076         * soft-fp/getf2.c (__getf2): Likewise.
12077         * soft-fp/ledf2.c (__ledf2): Likewise.
12078         * soft-fp/lesf2.c (__lesf2): Likewise.
12079         * soft-fp/letf2.c (__letf2): Likewise.
12080
12081         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12082         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12083         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12084         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12085         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12086         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12087         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12088         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12089         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12090         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12091         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12092         * soft-fp/fixtfti.c (__fixtfti): Likewise.
12093         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
12094         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
12095         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
12096         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
12097         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
12098         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
12099         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
12100         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
12101         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
12102         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
12103         * soft-fp/floatdisf.c (__floatdisf): Likewise.
12104         * soft-fp/floatsisf.c (__floatsisf): Likewise.
12105         * soft-fp/floattidf.c (__floattidf): Likewise.
12106         * soft-fp/floattisf.c (__floattisf): Likewise.
12107         * soft-fp/floattitf.c (__floattitf): Likewise.
12108         * soft-fp/floatundidf.c (__floatundidf): Likewise.
12109         * soft-fp/floatundisf.c (__floatundisf): Likewise.
12110         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
12111         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
12112         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
12113         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
12114         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
12115         * soft-fp/gesf2.c (__gesf2): Likewise.
12116         * soft-fp/getf2.c (__getf2): Likewise.
12117         * soft-fp/ledf2.c (__ledf2): Likewise.
12118         * soft-fp/lesf2.c (__lesf2): Likewise.
12119         * soft-fp/letf2.c (__letf2): Likewise.
12120
12121         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
12122         Undefine and redefine.
12123         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
12124         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
12125         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
12126         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
12127         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12128         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
12129         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12130         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
12131         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12132         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
12133         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12134         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
12135         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12136         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
12137         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12138
12139         [BZ #16032]
12140         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
12141         without decrementing exponent if mantissa >= that for the
12142         denominator, not >.
12143         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
12144         denominator, not >.  Decrement exponent in < case instead of
12145         incrementing in >= case.
12146         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
12147         without decrementing exponent if mantissa >= that for the
12148         denominator, not >.
12149
12150         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
12151         computing saturated result for unsigned overflow.
12152
12153 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
12154             Jeff Law  <law@redhat.com>
12155
12156         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
12157         (atan2Mp): Add systemtap probe marker.
12158         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
12159         (__ieee754_log): Add systemtap probe marker.
12160         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
12161         (atanMp): Add systemtap probe marker.
12162         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
12163         (tanMp): Add systemtap probe marker.
12164         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
12165         (__slowexp): Add systemtap probe marker.
12166         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
12167         (__slowpow): Add systemtap probe marker.
12168         * manual/probes.texi: Document probes.
12169
12170 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
12171
12172         [BZ #15362]
12173         * libio/fileops.c (_IO_new_file_write): Return count of bytes
12174         written.
12175         (_IO_new_file_xsputn): Don't return EOF if nothing has been
12176         written.
12177         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
12178         written to buffer but not flushed.
12179         * libio/iofwrite_u.c:  Likewise.
12180         * libio/iopadn.c:  Return bytes returned even if EOF was
12181         encountered.
12182         * libio/iowpadn.c:  Likewise.
12183         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
12184         if _IO_padn does not write the whole buffer.
12185         [!COMPILE_WPRINTF] (PAD): Likewise.
12186
12187 2013-10-10  David S. Miller  <davem@davemloft.net>
12188
12189         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
12190         directory block.
12191
12192 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12193
12194         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
12195         instead of FSF address.
12196         * soft-fp/fixdfti.c: Likewise.
12197         * soft-fp/fixsfti.c: Likewise.
12198         * soft-fp/fixtfti.c: Likewise.
12199         * soft-fp/fixunsdfti.c: Likewise.
12200         * soft-fp/fixunssfti.c: Likewise.
12201         * soft-fp/fixunstfti.c: Likewise.
12202         * soft-fp/floattidf.c: Likewise.
12203         * soft-fp/floattisf.c: Likewise.
12204         * soft-fp/floattitf.c: Likewise.
12205         * soft-fp/floatuntidf.c: Likewise.
12206         * soft-fp/floatuntisf.c: Likewise.
12207         * soft-fp/floatuntitf.c: Likewise.
12208         * soft-fp/trunctfxf2.c: Likewise.
12209
12210         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
12211         * soft-fp/fixdfti.c: Likewise.
12212         * soft-fp/fixsfti.c: Likewise.
12213         * soft-fp/fixtfti.c: Likewise.
12214         * soft-fp/fixunsdfti.c: Likewise.
12215         * soft-fp/fixunssfti.c: Likewise.
12216         * soft-fp/fixunstfti.c: Likewise.
12217         * soft-fp/floattidf.c: Likewise.
12218         * soft-fp/floattisf.c: Likewise.
12219         * soft-fp/floattitf.c: Likewise.
12220         * soft-fp/floatuntidf.c: Likewise.
12221         * soft-fp/floatuntisf.c: Likewise.
12222         * soft-fp/floatuntitf.c: Likewise.
12223         * soft-fp/trunctfxf2.c: Likewise.
12224
12225 2013-10-10  David S. Miller  <davem@davemloft.net>
12226
12227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12228
12229 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
12230
12231         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12232         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
12233         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
12234         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
12235         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
12236         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
12237         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
12238
12239         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
12240         for NaNs before doing comparisons on argument.
12241         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
12242         Likewise.
12243
12244 2013-10-10  Will Newton  <will.newton@linaro.org>
12245
12246         * malloc/hooks.c (memalign_check): Ensure the value of bytes
12247         passed to _int_memalign does not overflow.
12248
12249 2013-10-10  Torvald Riegel  <triegel@redhat.com>
12250
12251         * scripts/bench.pl: Add include-sources directive.
12252         * benchtests/README: Update documentation.
12253
12254 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12255
12256         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
12257         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
12258         instead of FP_INIT_ROUNDMODE.
12259         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
12260         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
12261
12262         [BZ #16034]
12263         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
12264         copy class of input value.
12265         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
12266         not handle exceptions.
12267         * soft-fp/negsf2.c (__negsf2): Likewise.
12268         * soft-fp/negtf2.c (__negtf2): Likewise.
12269         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
12270
12271 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
12272
12273         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
12274         semicolon.  From Linux kernel.
12275
12276 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
12277
12278         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
12279
12280 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
12281
12282         [BZ #156]
12283         * manual/socket.texi: Added statement about buffer
12284         for gethostbyname2_r.
12285
12286 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
12287
12288         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
12289         Use .p2align directive instead, throughout.
12290         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
12291         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
12292         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
12293         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12294         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12295         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
12296         * sysdeps/x86_64/strchr.S: Likewise.
12297         * sysdeps/x86_64/strrchr.S: Likewise.
12298
12299 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12300
12301         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
12302
12303         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
12304
12305         * sysdeps/generic/math_private.h (__mpsin1): Remove
12306         declaration.
12307         (__mpcos1): Likewise.
12308         (__mpsin): New argument __range_reduce.
12309         (__mpcos): Likewise.
12310         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12311         (slow): Use __mpsin and __mpcos.
12312         (slow1): Likewise.
12313         (slow2): Likewise.
12314         (sloww): Likewise.
12315         (sloww1): Likewise.
12316         (sloww2): Likewise.
12317         (bsloww): Likewise.
12318         (bsloww1): Likewise.
12319         (bsloww2): Likewise.
12320         (cslow2): Likewise.
12321         (csloww): Likewise.
12322         (csloww1): Likewise.
12323         (csloww2): Likewise.
12324         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
12325         range_reduce.  Merge in __mpsin1.
12326         (__mpcos): Likewise.
12327         (__mpsin1): Remove.
12328         (__mpcos1): Likewise.
12329
12330 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
12331
12332         * locale/loadlocale.c (_nl_intern_locale_data): Use
12333         LOCFILE_ALIGNED_P.
12334         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
12335         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
12336         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
12337         obstack data is appropriately aligned.
12338         (obstack_int32_grow_fast): Likewise.
12339         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
12340         * locale/programs/locfile.c (add_locale_uint32): Likewise.
12341         (add_locale_uint32_array): Likewise.
12342
12343 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12344
12345         * benchtests/Makefile: Remove ARGLIST and RET variables.
12346         ($(objpfx)bench-%.c): Pass only function name to the script.
12347         * benchtests/README: Update documentation.
12348         * benchtests/acos-inputs: Add new directives.
12349         * benchtests/acosh-inputs: Likewise.
12350         * benchtests/asin-inputs: Likewise.
12351         * benchtests/asinh-inputs: Likewise.
12352         * benchtests/atan-inputs: Likewise.
12353         * benchtests/atanh-inputs: Likewise.
12354         * benchtests/cos-inputs: Likewise.
12355         * benchtests/cosh-inputs: Likewise.
12356         * benchtests/exp-inputs: Likewise.
12357         * benchtests/log-inputs: Likewise.
12358         * benchtests/pow-inputs: Likewise.
12359         * benchtests/rint-inputs: Likewise.
12360         * benchtests/sin-inputs: Likewise.
12361         * benchtests/sinh-inputs: Likewise.
12362         * benchtests/tan-inputs: Likewise.
12363         * benchtests/tanh-inputs: Likewise.
12364         * scripts/bench.pl: Add support for new directives.
12365
12366 2013-10-07  Alan Modra  <amodra@gmail.com>
12367
12368         * README: Fix careless merge.
12369
12370 2013-10-05  Alan Modra  <amodra@gmail.com>
12371
12372         * NEWS: Mention powerpc64le support and bugs fixed.
12373         * README: Both big-endian and little-endian powerpc64 supported.
12374
12375 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12376
12377         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
12378         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
12379         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
12380         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
12381
12382 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
12383
12384         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
12385         match prototype.
12386
12387 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
12388
12389         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
12390         Move -mhard-float appending from
12391         ports/sysdeps/powerpc/powerpc32/Makefile.
12392         [$(with-fp) = yes] (ASFLAGS): Likewise.
12393         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
12394         * sysdeps/powerpc/nofpu: Move directory from
12395         ports/sysdeps/powerpc/nofpu.
12396         * sysdeps/powerpc/soft-fp: Move directory from
12397         ports/sysdeps/powerpc/soft-fp.
12398         * sysdeps/powerpc/powerpc32/405: Move directory from
12399         ports/sysdeps/powerpc/powerpc32/405.
12400         * sysdeps/powerpc/powerpc32/440: Move directory from
12401         ports/sysdeps/powerpc/powerpc32/440.
12402         * sysdeps/powerpc/powerpc32/464: Move directory from
12403         ports/sysdeps/powerpc/powerpc32/464.
12404         * sysdeps/powerpc/powerpc32/476: Move directory from
12405         ports/sysdeps/powerpc/powerpc32/476.
12406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
12407         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
12408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
12409         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
12410         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
12411         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
12412         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
12413         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
12414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
12415         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
12416         * README: Update for powerpc-*-linux-gnu software floating point
12417         support in libc.
12418
12419         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
12420         case to powerpc/powerpc32*.
12421         * sysdeps/unix/sysv/linux/configure: Regenerated.
12422
12423         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
12424         (_FPU_MASK_OM): Define as 0x04.
12425         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
12426         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
12427         0x00c10080.
12428         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
12429         0x0000003c.
12430         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
12431
12432         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
12433         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12434         getcontext_e500.
12435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
12436         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12437         setcontext_e500.
12438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
12439         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
12440         and setcontext_e500.
12441
12442 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
12443
12444         * locale/iso-3166.def: Update iso-1366.def and related occurrences
12445
12446 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12447
12448         * manual/threads.texi (Default Thread Attributes): Fix typo.
12449
12450 2013-10-04  Will Newton  <will.newton@linaro.org>
12451
12452         * malloc/Makefile: Add tst-memalign.
12453         * malloc/tst-memalign.c: New file.
12454
12455         * malloc/tst-posix_memalign.c: Add comments.
12456         (do_test): Add comments and call free on all potentially
12457         allocated pointers. Add space after cast.
12458
12459         * malloc/tst-pvalloc.c: Add comments.
12460         (do_test): Add comments and call free on all potentially
12461         allocated pointers. Remove duplicate check for NULL pointer.
12462         Add space after cast.
12463
12464         * malloc/tst-valloc.c: Add comments.
12465         (do_test): Add comments and call free on all potentially
12466         allocated pointers. Remove duplicate check for NULL pointer.
12467         Add space after cast.
12468
12469 2013-10-04  Alan Modra  <amodra@gmail.com>
12470
12471         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12472         Use stdint types in rather than __attribute__((mode())).
12473         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12474
12475 2013-10-04  Alan Modra  <amodra@gmail.com>
12476
12477         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12478         Correct handling of unaligned relocs for little-endian.
12479         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12480
12481 2013-10-04  Alan Modra  <amodra@gmail.com>
12482
12483         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
12484         * configure: Regenerate.
12485         * nptl/shlib-versions: Powerpc*le starts at 2.18.
12486         * shlib-versions: Likewise.
12487
12488 2013-10-04  Alan Modra  <amodra@gmail.com>
12489
12490         * string/tester.c (test_memrchr): Increment reported test cycle.
12491
12492 2013-10-04  Alan Modra  <amodra@gmail.com>
12493
12494         * string/test-memcpy.c (do_one_test): When reporting errors, print
12495         string address and don't overrun end of string.
12496
12497 2013-10-04  Alan Modra  <amodra@gmail.com>
12498
12499         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
12500         insrdi.  Make better use of reg selection to speed exit slightly.
12501         Schedule entry path a little better.  Remove useless "are we done"
12502         checks on entry to main loop.  Handle wrapping around zero address.
12503         Correct main loop count.  Handle single left-over word from main
12504         loop inline rather than by using loop_small.  Remove extra word
12505         case in loop_small caused by wrong loop count.  Add little-endian
12506         support.
12507         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
12508         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
12509         cache hint.
12510         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
12511         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
12512         support.  Avoid rlwimi.
12513         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
12514
12515 2013-10-04  Alan Modra  <amodra@gmail.com>
12516
12517         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
12518         insrdi.  Formatting.
12519         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
12520         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
12521         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
12522         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
12523         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
12524         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
12525
12526 2013-10-04  Alan Modra  <amodra@gmail.com>
12527
12528         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
12529         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
12530         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
12531         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
12532         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
12533         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
12534         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
12535         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12536         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
12537         use of regs.  Use power7 mtocrf.  Tidy function tails.
12538
12539 2013-10-04  Alan Modra  <amodra@gmail.com>
12540
12541         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
12542         Formatting.  Consistently use rXXX register defines or rN defines.
12543         Use early exit labels that avoid restoring unused non-volatile regs.
12544         Make cr field use more consistent with rWORDn compares.  Rename
12545         regs used as shift registers for unaligned loop, using rN defines
12546         for short lifetime/multiple use regs.
12547         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
12548         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
12549         addi 1,1,64 to pop stack frame.  Simplify return value code.
12550         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
12551
12552 2013-10-04  Alan Modra  <amodra@gmail.com>
12553
12554         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
12555         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
12556         rather than rlwimi.
12557         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
12558         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
12559         little-endian support.  Correct typos.
12560         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
12561         rather than rlwimi.
12562         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
12563         in loop and entry code to keep "and." results.
12564         (strchr): Add little-endian support.  Comment.  Move cntlzd
12565         earlier in tail.
12566         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
12567
12568 2013-10-04  Alan Modra  <amodra@gmail.com>
12569
12570         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
12571         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
12572         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
12573         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
12574
12575 2013-10-04  Alan Modra  <amodra@gmail.com>
12576
12577         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
12578         (rTMP): Define as r11.
12579         (strcmp): Add little-endian support.  Optimise tail.
12580         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
12581         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
12582         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
12583         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12584         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
12585         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12586         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12587
12588 2013-10-04  Alan Modra  <amodra@gmail.com>
12589
12590         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
12591         little-endian support.  Remove unnecessary "are we done" tests.
12592         Handle "s" wrapping around zero and extremely large "size".
12593         Correct main loop count.  Handle single left-over word from main
12594         loop inline rather than by using small_loop.  Correct comments.
12595         Delete "zero" tail, use "end_max" instead.
12596         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
12597
12598 2013-10-04  Alan Modra  <amodra@gmail.com>
12599
12600         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
12601         support.  Don't branch over align.
12602         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
12603         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
12604         support.  Rearrange tmp reg use to suit.  Comment.
12605         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
12606
12607 2013-10-04  Alan Modra  <amodra@gmail.com>
12608
12609         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
12610
12611 2013-10-04  Alan Modra  <amodra@gmail.com>
12612
12613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
12614         conditional form of branch and link when obtaining pc.
12615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
12616
12617 2013-10-04  Alan Modra  <amodra@gmail.com>
12618
12619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
12620         HIWORD/LOWORD.
12621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
12622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
12623
12624 2013-10-04  Alan Modra  <amodra@gmail.com>
12625
12626         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
12627         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
12628         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
12629         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
12630         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
12631         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
12632         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
12633         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
12634         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
12635         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
12636
12637 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12638             Alistair Popple <alistair@ozlabs.au.ibm.com>
12639             Alan Modra <amodra@gmail.com>
12640
12641         [BZ #15723]
12642         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
12643         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
12644         _dl_hwcap access for little-endian.
12645         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
12646         destroy vmx regs when saving unaligned.
12647         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
12648         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
12649         destroy vmx regs when saving unaligned.
12650
12651 2013-10-04  Alan Modra  <amodra@gmail.com>
12652
12653         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
12654         Don't use a union to pack hi/low value.
12655
12656 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12657
12658         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
12659         for little-endian.
12660         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
12661         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
12662         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
12663         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
12664         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
12665
12666 2013-10-04  Alan Modra  <amodra@gmail.com>
12667
12668         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
12669         constants to usual value for .cst8 section, and remove redundant
12670         high address load.
12671         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
12672         constant for 0x1p52.  Load little-endian words of double from
12673         correct stack offsets.
12674
12675 2013-10-04  Alan Modra  <amodra@gmail.com>
12676
12677         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
12678         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
12679         words of double from correct stack offsets.
12680         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
12681         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
12682         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
12683         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
12684         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
12685         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
12686         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
12687         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
12688         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
12689         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
12690         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
12691         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
12692         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12693         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12694         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12695         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
12696         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
12697
12698 2013-10-04  Alan Modra  <amodra@gmail.com>
12699
12700         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
12701         64-bit int/double union.
12702         (_FPU_SETCW): Likewise.
12703         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
12704         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
12705
12706 2013-10-04  Alan Modra  <amodra@gmail.com>
12707
12708         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
12709         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
12710
12711 2013-10-04  Alan Modra  <amodra@gmail.com>
12712
12713         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
12714         use vector int constants.
12715         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
12716
12717 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12718
12719         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
12720         array with long long.
12721         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
12722         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
12723         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
12724         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
12725         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
12726         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
12727         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
12728         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
12729         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
12730         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
12731         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
12732         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
12733         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
12734
12735 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12736
12737         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
12738         (__signbit): Likewise.  Correct for little-endian.
12739         (__signbitl): Call __signbit.
12740         (lrint): Correct for little-endian.
12741         (lrintf): Call lrint.
12742
12743 2013-10-04  Alan Modra  <amodra@gmail.com>
12744
12745         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
12746         union 32-bit int array member with 64-bit int array.
12747         (t515, tm256): Double rather than long double.
12748         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
12749
12750 2013-10-04  Alan Modra  <amodra@gmail.com>
12751
12752         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
12753         Delete.
12754         (IEEE854_LONG_DOUBLE_BIAS): Delete.
12755         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
12756         version of math_ldbl.h.
12757
12758 2013-10-04  Alan Modra  <amodra@gmail.com>
12759
12760         [BZ #15734], [BZ #15735]
12761         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
12762         all uses of ieee875 long double macros and unions.  Simplify test
12763         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
12764         ldbl_extract_mantissa value for ix,iy exponents.  Properly
12765         normalize after ldbl_extract_mantissa, and don't add hidden bit
12766         already handled.  Don't treat low word of ieee854 mantissa like
12767         low word of IBM long double and mask off bit when testing for
12768         zero.
12769         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
12770         all uses of ieee875 long double macros and unions.  Simplify tests
12771         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
12772         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
12773         two1022, instead use their values.  Recognise that tests for large
12774         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
12775         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
12776         Rewrite all uses of ieee875 long double macros and unions.  Simplify
12777         test for 0.0L and nan.  Correct negation.
12778         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
12779         ieee875 long double macros and unions.  Correct output for large
12780         magnitude x.  Correct absolute value calculation.
12781         (__erfcl): Likewise.
12782         * math/libm-test.inc: Add tests for errors discovered in IBM long
12783         double versions of fmodl, remainderl, erfl and erfcl.
12784
12785 2013-10-04  Alan Modra  <amodra@gmail.com>
12786
12787         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
12788         all uses of ieee854 long double macros and unions.  Simplify tests
12789         for long doubles that are fully specified by the high double.
12790         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12791         Likewise.
12792         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
12793         Remove dead code too.
12794         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12795         (__ieee754_ynl): Likewise.
12796         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
12797         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
12798         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12799         Remove dead code too.
12800         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
12801         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12802         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
12803         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
12804         Simplify.
12805         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
12806         Simplify.
12807         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
12808         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
12809         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
12810         Comment on variable precision.
12811         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
12812         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
12813         Likewise.
12814         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
12815         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12816         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12817         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
12818         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
12819
12820 2013-10-04  Alan Modra  <amodra@gmail.com>
12821
12822         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
12823         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
12824         all uses of ieee854 long double macros and unions.
12825         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
12826         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
12827         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
12828         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
12829         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
12830         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
12831         Likewise.
12832         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
12833         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
12834         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
12835         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
12836         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
12837         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
12838         Simplify sign and nan test too.
12839         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
12840         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
12841         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
12842         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
12843         Likewise.
12844         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
12845         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
12846         Likewise.
12847         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12848         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12849         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
12850         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
12851         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
12852         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
12853
12854 2013-10-04  Alan Modra  <amodra@gmail.com>
12855
12856         * stdio-common/printf_size.c (__printf_size): Don't use
12857         union ieee854_long_double in fpnum union.
12858         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
12859         signbit macro to retrieve sign from long double.
12860         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
12861         retrieve sign from long double.
12862         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
12863         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
12864         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
12865         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12866         * math/test-misc.c (main): Don't use union ieee854_long_double.
12867
12868 2013-10-04  Alan Modra  <amodra@gmail.com>
12869
12870         [BZ #15680]
12871         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
12872         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
12873         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
12874         calculation.  Remove unnecessary test for denormal exponent.
12875         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
12876         Correct handling of denormals.  Avoid undefined shift behaviour.
12877         Correct normalisation of low mantissa when low double is denormal.
12878         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
12879         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
12880         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
12881         Correct normalisation of low mantissa.  Test for overflow of high
12882         mantissa and normalise.
12883         (ldbl_nearbyint): Use more readable constant for two52.
12884         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
12885         (__mpn_construct_long_double): Fix test for overflow of high
12886         mantissa and correct normalisation.  Avoid undefined shift.
12887
12888 2013-10-04  Alan Modra  <amodra@gmail.com>
12889
12890         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
12891         (union ibm_extended_long_double): Define as an array of ieee754_double.
12892         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
12893         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
12894         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
12895         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
12896         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
12897         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
12898         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
12899         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
12900         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
12901         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
12902         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12903
12904 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
12905
12906         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
12907         page size instead of calling getpagesize.
12908
12909         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
12910         (LOCFILE_ALIGN_MASK): Likewise.
12911         (LOCFILE_ALIGN_UP): Likewise.
12912         (LOCFILE_ALIGNED_P): Likewise.
12913         * locale/programs/ld-collate.c (collate_output): Use the new
12914         macros instead of __alignof__ (int32_t).
12915         * locale/weight.h (findidx): Likewise.
12916
12917 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
12918
12919         [BZ #431]
12920         * manual/string.texi: Fix strncat and wcsncat.
12921
12922 2013-10-03  Brooks Moses  <bmoses@google.com>
12923
12924         [BZ #15915]
12925         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
12926         * Makerules: ...here, and adjust associated comments.
12927
12928 2013-10-02  Will Newton  <will.newton@linaro.org>
12929
12930         * malloc/Makefile: Add tst-pvalloc.
12931         * malloc/tst-pvalloc.c: New file.
12932
12933 2013-10-02  Will Newton  <will.newton@linaro.org>
12934
12935         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
12936         improve test coverage.
12937
12938 2013-10-02  Will Newton  <will.newton@linaro.org>
12939
12940         * malloc/Makefile: Add tst-posix_memalign.
12941         * malloc/tst-posix_memalign.c: New file.
12942
12943 2013-10-01  Eric Blake  <eblake@redhat.com>
12944
12945         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
12946         Use __THROWNL rather than __THROW on static functions.
12947
12948 2013-09-30  Petr Machata  <pmachata@redhat.com>
12949
12950         * elf/elf.h (R_AARCH64_ABS16): New macro.
12951         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
12952         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
12953         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
12954         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
12955         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
12956         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
12957         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
12958         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
12959         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
12960         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
12961         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
12962         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
12963         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
12964         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
12965         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
12966         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
12967         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
12968         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
12969         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
12970         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
12971         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
12972         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
12973         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
12974         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
12975         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
12976         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
12977         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
12978         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
12979         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
12980         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
12981         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
12982         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
12983         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
12984         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
12985         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
12986         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
12987         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
12988         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
12989         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
12990         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
12991         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
12992         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
12993         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
12994         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
12995         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
12996         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
12997         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
12998         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
12999         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13000         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13001         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13002         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13003         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13004         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13005         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13006         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13007         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13008         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13009         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13010         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13011         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13012         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13013         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13014         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13015         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13016         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13017         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13018         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13019         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13020         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13021         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13022         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13023         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13024         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13025         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13026         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13027         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13028         (R_AARCH64_TLSDESC_LDR): Likewise.
13029         (R_AARCH64_TLSDESC_ADD): Likewise.
13030         (R_AARCH64_TLSDESC_CALL): Likewise.
13031
13032 2013-09-30  Andreas Schwab  <schwab@suse.de>
13033
13034         [BZ #15048]
13035         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13036         the nss database lookup.
13037         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13038         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13039
13040 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13041
13042         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13043
13044 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13045
13046         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13047         ${Bash-specific parameter/pattern/string} parameter expansion.
13048         * sysdeps/unix/make-syscalls.sh: Likewise.
13049
13050 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13051
13052         * sysdeps/sh/stackguard-macros.h: New file.
13053
13054 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13055
13056         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13057         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13058         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13059         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13060         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13061         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13062
13063 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13064
13065         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13066         Fix thread ID register.
13067
13068 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13069
13070         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13071         [POSIX || UNIX98]: Require rather than permitting all symbols from
13072         <time.h>.
13073         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13074         element of struct sched_param.
13075         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13076         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13077         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13078         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13079         constant.
13080
13081 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13082
13083         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13084         argument calculation.
13085
13086 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13087
13088         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13089         Expect macro.
13090         [POSIX] (pthread_attr_t): Do not require type.
13091         [POSIX] (pthread_cond_t): Likewise.
13092         [POSIX] (pthread_condattr_t): Likewise.
13093         [POSIX] (pthread_key_t): Likewise.
13094         [POSIX] (pthread_mutex_t): Likewise.
13095         [POSIX] (pthread_mutexattr_t): Likewise.
13096         [POSIX] (pthread_once_t): Likewise.
13097         [POSIX] (pthread_t): Likewise.
13098         [POSIX-based standards] (pthread_atfork): Expect function.
13099
13100 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13101             Richard Sandiford  <richard@codesourcery.com>
13102
13103         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
13104         (swap_endianness_p): New extern variable.
13105         (set_big_endian): New inline function.
13106         (maybe_swap_uint32): Likewise.
13107         (maybe_swap_uint32_array): Likewise.
13108         (maybe_swap_uint32_obstack): Likewise.
13109         * locale/programs/locfile.c: Include <stdbool.h>.
13110         (swap_endianness_p): New variable.
13111         (add_locale_uint32): Call maybe_swap_uint32.
13112         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
13113         (write_locale_data): Call maybe_swap_uint32_array.
13114         * locale/programs/ld-collate.c (obstack_int32_grow): Call
13115         maybe_swap_uint32.
13116         (obstack_int32_grow_fast): Likewise.
13117         (output_weightwc): Call maybe_swap_uint32_obstack.
13118         (collate_output): Likewise.
13119         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
13120         (OPT_LITTLE_ENDIAN): Likewise.
13121         (options): Add --little-endian and --big-endian options.
13122         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
13123         * locale/programs/locarchive.c: Include "locfile.h".
13124         (GET): New macro.
13125         (SET): Likewise.
13126         (INC): Likewise.
13127         (create_archive): Use the new macros to access fields of
13128         structures directly mapped from or written to locale archives.
13129         (oldlocrecentcmp): Likewise.
13130         (enlarge_archive): Likewise.
13131         (insert_name): Likewise.
13132         (add_alias): Likewise.
13133         (add_locale): Likewise.
13134         (delete_locales_from_archive): Likewise.
13135         (show_archive_content): Likewise.
13136         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
13137         locale data.
13138
13139 2013-09-24  Roland McGrath  <roland@hack.frob.com>
13140
13141         * manual/freemanuals.texi: Updated from (newly) canonical copy at
13142         http://www.gnu.org/doc/freemanuals.texi.
13143         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
13144
13145 2013-09-24  Will Newton  <will.newton@linaro.org>
13146
13147         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
13148         macro.
13149
13150 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
13151
13152         * locale/hashval.h (compute_hashval): Interpret bytes of key as
13153         unsigned char.
13154
13155 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
13156
13157         * manual/threads.texi (POSIX Threads): Fix a typo.
13158
13159 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
13160
13161         [BZ #14547]
13162         * string/tst-strcoll-overflow.c: New test case.
13163         * string/Makefile (xtests): Add tst-strcoll-overflow.
13164         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
13165         cache if string sizes may cause integer overflow.
13166
13167         [BZ #14547]
13168         * string/strcoll_l.c (coll_seq): New members rule, idx,
13169         save_idx and back_us.
13170         (get_next_seq_nocache): New function.
13171         (do_compare_nocache): New function.
13172         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
13173         when malloc fails.
13174
13175 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
13176
13177         [BZ #15754]
13178         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
13179         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
13180         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
13181
13182         [BZ #15754]
13183         * elf/Makefile (tests): Add tst-ptrguard1.
13184         (tests-static): Add tst-ptrguard1-static.
13185         (tst-ptrguard1-ARGS): Define.
13186         (tst-ptrguard1-static-ARGS): Define.
13187         * elf/tst-ptrguard1.c: New file.
13188         * elf/tst-ptrguard1-static.c: New file.
13189         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
13190         * sysdeps/i386/stackguard-macros.h: Likewise.
13191         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13192         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13193         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13194         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13195         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13196         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13197
13198 2013-09-23  Hector Marco  <hecmargi@upv.es>
13199             Ismael Ripoll  <iripoll@disca.upv.es>
13200             Carlos O'Donell  <carlos@redhat.com>
13201
13202         [BZ #15754]
13203         * sysdeps/generic/stackguard-macros.h: Define
13204         __pointer_chk_guard_local and POINTER_CHK_GUARD.
13205         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
13206         Define __pointer_chk_guard_local.
13207         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
13208         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
13209
13210 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
13211
13212         [BZ #15859]
13213         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
13214
13215 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
13216
13217         * include/string.h (__ffs): Declare as hidden.
13218         * string/ffs.c (__ffs): Define as hidden.
13219         * sysdeps/i386/ffs.c (__ffs): Likewise.
13220         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
13221         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
13222         * sysdeps/s390/ffs.c (__ffs): Likewise.
13223         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
13224
13225 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
13226
13227         * NEWS: Mention malloc probes.
13228
13229         * malloc/arena.c (new_heap): New memory_heap_new probe.
13230         (grow_heap): New memory_heap_more probe.
13231         (shrink_heap): New memory_heap_less probe.
13232         (heap_trim): New memory_heap_free probe.
13233         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
13234         (systrim): New memory_sbrk_less probe.
13235         * manual/probes.texi: Document them.
13236
13237         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
13238         * manual/probes.texi: Document it.
13239
13240         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
13241         (__libc_realloc): Add memory_realloc_retry probe.
13242         (__libc_memalign): Add memory_memalign_retry probe.
13243         (__libc_valloc): Add memory_valloc_retry probe.
13244         (__libc_pvalloc): Add memory_pvalloc_retry probe.
13245         (__libc_calloc): Add memory_calloc_retry probe.
13246         * manual/probes.texi: Document them.
13247
13248         * malloc/arena.c (get_free_list): Add probe
13249         memory_arena_reuse_free_list.
13250         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
13251         and memory_arena_reuse.
13252         (arena_get2) [!PER_THREAD]: Likewise.
13253         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
13254         memory_arena_reuse_realloc.
13255         * manual/probes.texi: Document them.
13256
13257         * malloc/malloc.c (__libc_free): Add
13258         memory_mallopt_free_dyn_thresholds probe.
13259         (__libc_mallopt): Add multiple memory_mallopt probes.
13260         * manual/probes.texi: Document them.
13261
13262         * malloc/malloc.c: Include stap-probe.h.
13263         (__libc_mallopt): Add memory_mallopt probe.
13264         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
13265         * manual/probes.texi: New.
13266         * manual/Makefile (chapters): Add probes.
13267         * manual/threads.texi: Set next node.
13268
13269 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
13270
13271         [BZ #15963, #13985]
13272         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
13273         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
13274         Add `Chinese' to `nan' entry name.
13275
13276 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13277
13278         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
13279         (POLYNOMIAL): Likewise.
13280         (TAYLOR_SINCOS): Likewise.
13281         (TAYLOR_SLOW): Likewise.
13282         (__sin): Use TAYLOR_SINCOS.
13283         (__cos): Likewise.
13284         (slow): Use TAYLOR_SLOW.
13285         (sloww): Likewise.
13286         (bsloww): Likewise.
13287         (csloww): Likewise.
13288
13289 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13290
13291         * stdlib/strtod_l.c: Fix buffer overrun.
13292
13293 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13294
13295         * benchtests/Makefile (bench): Add sincos.
13296         * benchtests/bench-sincos.c: New file.
13297
13298         * math/libm-test.inc (cos_test_data): New test inputs.
13299         (sin_test_data): Likewise.
13300
13301         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
13302         macro.
13303         (__sin): Use it.
13304         (__cos): Likewise.
13305         (slow1): Likewise.
13306         (slow2): Likewise.
13307         (sloww1): Likewise.
13308         (sloww2): Likewise.
13309         (bsloww1): Likewise.
13310         (bsloww2): Likewise.
13311         (cslow2): Likewise.
13312         (csloww1): Likewise.
13313         (csloww2): Likewise.
13314
13315         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
13316         function.
13317         (__sin): Use it.
13318         (__cos): Likewise.
13319
13320         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
13321         gotos.
13322         (__cos): Likewise.
13323
13324 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
13325
13326         * config.h.in (HAVE_MIPS_NAN2008): New macro.
13327         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
13328         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
13329         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
13330         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
13331         * elf/cache.c (print_entry): Handle the new cache flags.
13332
13333 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13334             Aldy Hernandez  <aldyh@redhat.com>
13335
13336         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
13337         Change condition to [_SOFT_FLOAT].
13338         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
13339         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
13340         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
13341         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
13342         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
13343         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
13344         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
13345         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
13346         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
13347         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
13348         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
13349         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
13350         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
13351         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
13352         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
13353         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
13354         declaration.
13355
13356 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13357
13358         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
13359         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13360         (__longjmp): Use LOAD_GP to load saved GPRs.
13361         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
13362         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13363         (__sigsetjmp): Use SAVE_GP to save GPRs.
13364
13365         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
13366         Do not append -msoft-float.
13367         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
13368
13369 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13370
13371         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
13372
13373 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
13374
13375         [BZ #15966]
13376         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
13377         (_FPU_GETCW): Use initial "__" on variable and field names but not
13378         on macro parameter name.
13379         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
13380         parentheses around reference to macro parameter.
13381
13382 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
13383
13384         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
13385         prototype.
13386         (ctype_startup): Use uint32_t in cast and sizeof for
13387         ctype->charnames.
13388
13389 2013-09-11  Jia Liu  <proljc@gmail.com>
13390
13391         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
13392         __daddr_t_defined.
13393         [__FreeBSD__]: Likewise.
13394
13395 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
13396
13397         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13398         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
13399         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
13400         (strchr): Remove __strchr_sse42 ifunc selection.
13401         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
13402         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
13403
13404 2013-09-11  Will Newton  <will.newton@linaro.org>
13405
13406         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
13407         parameter to RES. Remove hardcoded 1000 value.
13408         * benchtests/bench-skeleton.c (main): Pass RES parameter
13409         to TIMING_INIT and multiply result by 1000.
13410
13411 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13412
13413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13414
13415 2013-09-11  Andreas Schwab  <schwab@suse.de>
13416
13417         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
13418         if not defined.
13419         (O_TMPFILE) [__USE_GNU]: Define.
13420         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
13421         Define.
13422
13423 2013-09-11  Will Newton  <will.newton@linaro.org>
13424
13425         [BZ #15857]
13426         * malloc/malloc.c (__libc_memalign): Check the value of bytes
13427         does not overflow.
13428
13429 2013-09-11  Will Newton  <will.newton@linaro.org>
13430
13431         [BZ #15856]
13432         * malloc/malloc.c (__libc_valloc): Check the value of bytes
13433         does not overflow.
13434
13435 2013-09-11  Will Newton  <will.newton@linaro.org>
13436
13437         [BZ #15855]
13438         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
13439         does not overflow.
13440
13441 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
13442
13443         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
13444         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13445         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13446         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13447         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13448
13449 2013-09-10  Allan McRae  <allan@archlinux.org>
13450
13451         [BZ #15748]
13452         * manual/arith.texi (Parsing of Floats): Clarify
13453         cross-reference.
13454
13455         [BZ #15849]
13456         * manual/install.texi (Running make install): Mention
13457         --enable-pt-chown.
13458         * INSTALL: Regenerated.
13459
13460 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
13461
13462         * csu/init-first.c (_init): Remove the !SHARED condition around
13463         FPU control word initialization.
13464         * elf/dl-support.c (_dl_fpu_control): New variable.
13465         (_dl_aux_init) <AT_FPUCW>: Initialize it.
13466         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
13467         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
13468         * math/test-fpucw-static.c: New file.
13469         * math/test-fpucw-ieee.c: New file.
13470         * math/test-fpucw-ieee-static.c: New file.
13471         * math/Makefile (tests): Add `test-fpucw-ieee' and
13472         `$(tests-static)'.
13473         (tests-static): New variable.
13474         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
13475         dependency to...
13476         [($(build-shared),yes)]
13477         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
13478         ... this.
13479         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
13480         New dependency.
13481
13482 2013-09-09  Allan McRae  <allan@archlinux.org>
13483
13484         [BZ #15939]
13485         * manual/string.texi (Collation Functions): Fix typo in
13486         strcoll example.
13487         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
13488
13489         [BZ #15893]
13490         * stdlib/isomac.c (get_null_defines): Fix memory leak.
13491
13492         [BZ #15892]
13493         * libio/memstream.c (open_memstream): Fix memory leak.
13494         * libio/wmemstream.c (open_wmemstream): Likewise.
13495
13496         [BZ #15895]
13497         * nscd/netgroupcache.c: Fix nesting of ifdefs.
13498
13499 2013-09-09  Will Newton  <will.newton@linaro.org>
13500
13501         * malloc/Makefile: Add tst-realloc to tests.
13502         * malloc/tst-realloc.c: New file.
13503
13504 2013-09-09  Allan McRae  <allan@archlinux.org>
13505
13506         [BZ #15844]
13507         * COPYING: Update from GNU website to fix FSF address.
13508         * COPYING.LIB: Likewise.
13509
13510 2013-09-06  David S. Miller  <davem@davemloft.net>
13511
13512         * po/zh_TW.po: Update Chinese (traditional) translation from
13513         translation project.
13514
13515 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
13516             Joseph Myers  <joseph@codesourcery.com>
13517
13518         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
13519         "localeinfo.h".
13520         (obstack_chunk_alloc): New macro.
13521         (obstack_chunk_free): Likewise.
13522         (record_offset): New function.
13523         (init_locale_data): Likewise.
13524         (align_locale_data): Likewise.
13525         (add_locale_empty): Likewise.
13526         (add_locale_raw_data): Likewise.
13527         (add_locale_raw_obstack): Likewise.
13528         (add_locale_string): Likewise.
13529         (add_locale_wstring): Likewise.
13530         (add_locale_uint32): Likewise.
13531         (add_locale_uint32_array): Likewise.
13532         (add_locale_char): Likewise.
13533         (start_locale_structure): Likewise.
13534         (end_locale_structure): Likewise.
13535         (start_locale_prelude): Likewise.
13536         (end_locale_prelude): Likewise.
13537         (write_locale_data): Take locale_file structure rather than an
13538         iovec.
13539         * locale/programs/locfile.h: Include "obstack.h".
13540         (struct locale_file): Change to store locale file contents instead
13541         of header.
13542         (init_locale_data): New prototype.
13543         (align_locale_data): Likewise.
13544         (add_locale_empty): Likewise.
13545         (add_locale_raw_data): Likewise.
13546         (add_locale_raw_obstack): Likewise.
13547         (add_locale_string): Likewise.
13548         (add_locale_wstring): Likewise.
13549         (add_locale_uint32): Likewise.
13550         (add_locale_uint32_array): Likewise.
13551         (add_locale_char): Likewise.
13552         (start_locale_structure): Likewise.
13553         (end_locale_structure): Likewise.
13554         (start_locale_prelude): Likewise.
13555         (end_locale_prelude): Likewise.
13556         (write_locale_data): Update prototype.
13557         * locale/programs/3level.h (struct TABLE): Remove result field.
13558         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
13559         Use new locale_file interface.
13560         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
13561         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
13562         * locale/programs/ld-address.c (address_output): Use new
13563         locale_file interface.
13564         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
13565         NO_ADD_LOCALE.
13566         (collate_finish): Don't call collseq_table_finalize.
13567         (collate_output): Use new locale_file interface.
13568         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
13569         in file.
13570         (NO_FINALIZE): Change to NO_ADD_LOCALE.
13571         (TABLE): Move defines earlier in file.
13572         (ELEMENT): Likewise.
13573         (DEFAULT): Likewise.
13574         (wctrans_table_add): Move macro and inline function earlier in
13575         file.
13576         (struct wctype_table): Move type earlier in file.
13577         (add_locale_wctype_table): New static prototype.
13578         (struct locale_ctype_t): Use logical types instead of struct iovec
13579         pointers for members.
13580         (ctype_output): Use new locale_file interface.
13581         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
13582         new locale_file interface.
13583         (allocate_arrays): Update for use of new locale_file interface.
13584         * locale/programs/ld-identification.c (identification_output): Use
13585         new locale_file interface.
13586         * locale/programs/ld-measurement.c (measurement_output): Likewise.
13587         * locale/programs/ld-messages.c (messages_output): Likewise.
13588         * locale/programs/ld-monetary.c (monetary_output): Likewise.
13589         * locale/programs/ld-name.c (name_output): Likewise.
13590         * locale/programs/ld-numeric.c (numeric_output): Likewise.
13591         * locale/programs/ld-paper.c (paper_output): Likewise.
13592         * locale/programs/ld-telephone.c (telephone_output): Likewise.
13593         * locale/programs/ld-time.c (time_output): Likewise.
13594
13595 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13596
13597         * benchtests/Makefile: Add memrchr benchmark.
13598         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
13599         benchmark as memrchr.
13600         * benchtests/bench-memrchr-ifunc.c: New file.
13601         * benchtests/bench-memrchr.c: New file.
13602
13603 2013-09-06   Will Newton  <will.newton@linaro.org>
13604
13605         * benchtests/Makefile (string-bench): Add memcpy.
13606
13607 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
13608             Cong Wang  <amwang@redhat.com>
13609
13610         [BZ #15850]
13611         * sysdeps/unix/sysv/linux/bits/in.h
13612         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
13613         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
13614         before __USE_KERNEL_IPV6_DEFS uses.
13615         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
13616         IPPROTO_BEETPH.
13617         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
13618         sockaddr_in6, or ipv6_mreq.
13619
13620 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13621
13622         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
13623         memory access for final bytes in some large inputs.
13624         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
13625
13626 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13627
13628         * string/test-memrchr.c: New file.
13629         * string/test-memrchr-ifunc.c: New file.
13630         * string/Makefile: Add new memrchr testcase.
13631
13632 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
13633
13634         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
13635         fanotify_init returns EPERM.
13636
13637 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
13638
13639         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
13640         errors.
13641         (top level): Treat second token from macro or constant entries for
13642         allowed headers as allowed.
13643         * include/complex.h: Condition internal declarations on
13644         [!_ISOMAC].
13645         * include/fenv.h: Condition include of <stdbool.h> and internal
13646         declarations on [!_ISOMAC].
13647
13648 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
13649
13650         [BZ #15923]
13651         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
13652
13653 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
13654
13655         * configure.in (--enable-versioning): Remove configure option.
13656         (libc_cv_asm_symver_directive): Remove configure test.
13657         (libc_cv_ld_version_script_option): Likewise.
13658         (VERSIONING): Remove variable and AC_SUBST.
13659         (DO_VERSIONING): Remove AC_DEFINE.
13660         * configure: Regenerated.
13661         * config.h.in (DO_VERSIONING): Remove macro.
13662         * Makerules [$(versioning) = yes]: Change conditionals to
13663         [$(build-shared) = yes].
13664         * config.make.in (versioning): Remove variable.
13665         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
13666         [$(build-shared) = yes].
13667         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
13668         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
13669         * elf/Makefile [$(versioning) = yes]: Change conditionals to
13670         [$(build-shared) = yes].
13671         * extra-lib.mk [$(versioning) = yes]: Likewise.
13672         * hurd/Makefile [$(versioning) = yes]: Likewise.
13673         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
13674         [SHARED].
13675         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
13676         [SHARED].
13677         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
13678         [SHARED && !NO_HIDDEN].
13679         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
13680         [SHARED].
13681         [SHARED && DO_VERSIONING]: Likewise..
13682         * libio/Makefile [$(versioning) = yes]: Change conditionals to
13683         [$(build-shared) = yes].
13684         * manual/install.texi (--disable-versioning): Remove
13685         documentation.
13686         * INSTALL: Regenerated.
13687         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
13688         to [SHARED].
13689         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
13690         [$(build-shared) = yes].
13691         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
13692         * sysdeps/i386/i686/multiarch/strstr-c.c
13693         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
13694         [SHARED && !NO_HIDDEN].
13695         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
13696         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
13697         * sysdeps/powerpc/powerpc32/dl-machine.c
13698         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
13699         * sysdeps/powerpc/powerpc32/sysdep.h
13700         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
13701         to [SHARED && PIC && !NO_HIDDEN].
13702         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
13703         conditional to [SHARED].
13704
13705 2013-09-04   Will Newton  <will.newton@linaro.org>
13706
13707         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
13708         * benchtests/bench-string.h: Include bench-timing.h instead
13709         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
13710         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
13711         call to HP_TIMING_DIFF_INIT.
13712         * benchtests/bench-memccpy.c: Use bench-timing.h macros
13713         instead of hp-timing.h macros.
13714         * benchtests/bench-memchr.c: Likewise.
13715         * benchtests/bench-memcmp.c: Likewise.
13716         * benchtests/bench-memcpy.c: Likewise.
13717         * benchtests/bench-memmem.c: Likewise.
13718         * benchtests/bench-memmove.c: Likewise.
13719         * benchtests/bench-memset.c: Likewise.
13720         * benchtests/bench-rawmemchr.c: Likewise.
13721         * benchtests/bench-strcasecmp.c: Likewise.
13722         * benchtests/bench-strcasestr.c: Likewise.
13723         * benchtests/bench-strcat.c: Likewise.
13724         * benchtests/bench-strchr.c: Likewise.
13725         * benchtests/bench-strcmp.c: Likewise.
13726         * benchtests/bench-strcpy.c: Likewise.
13727         * benchtests/bench-strcpy_chk.c: Likewise.
13728         * benchtests/bench-strlen.c: Likewise.
13729         * benchtests/bench-strncasecmp.c: Likewise.
13730         * benchtests/bench-strncat.c: Likewise.
13731         * benchtests/bench-strncmp.c: Likewise.
13732         * benchtests/bench-strncpy.c: Likewise.
13733         * benchtests/bench-strnlen.c: Likewise.
13734         * benchtests/bench-strpbrk.c: Likewise.
13735         * benchtests/bench-strrchr.c: Likewise.
13736         * benchtests/bench-strspn.c: Likewise.
13737         * benchtests/bench-strstr.c: Likewise.
13738
13739 2013-09-04  Will Newton  <will.newton@linaro.org>
13740
13741         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
13742
13743 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
13744
13745         [BZ #15427]
13746         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
13747         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
13748         * math/libm-test.inc (lgamma_test_data): Add more tests.
13749         * sysdeps/i386/fpu/libm-test-ulps: Update.
13750         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13751
13752 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
13753
13754         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
13755         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13756         Add ifunc.
13757         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
13758         Add strcmp-sse2-unaligned
13759         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
13760
13761 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
13762
13763         * Versions.def (libc): Add GLIBC_2.19.
13764
13765 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
13766
13767         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
13768         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
13769
13770 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
13771
13772         [BZ #14155]
13773         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
13774         intermediate calculations in recurrence.
13775         (__ieee754_ynf): Likewise.
13776         * math/libm-test.inc (jn_test_data): Do not allow spurious
13777         underflow exception.  Add more tests.
13778         (yn_test_data): Add more tests.
13779         * sysdeps/i386/fpu/libm-test-ulps: Update.
13780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13781
13782 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
13783
13784         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
13785
13786 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
13787
13788         * csu/init-first.c: Fix then/than typos.
13789         * locale/programs/ld-collate.c: Likewise.
13790         * locale/programs/linereader.h: Likewise.
13791         * manual/charset.texi: Likewise.
13792         * manual/filesys.texi: Likewise.
13793         * manual/stdio.texi: Likewise.
13794         * manual/string.texi: Likewise.
13795         * stdlib/fmtmsg.c: Likewise.
13796         * sysdeps/i386/stpncpy.S: Likewise.
13797         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13798         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13799         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13800         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13801
13802 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
13803
13804         * elf/dl-open.c: Fix typos.
13805         * iconvdata/gbbig5.c: Likewise.
13806         * iconvdata/iso-2022-jp.c: Likewise.
13807         * iconv/gconv_int.h: Likewise.
13808         * iconv/loop.c: Likewise.
13809         * nis/rpcsvc/nis.h: Likewise.
13810         * resolv/ns_name.c: Likewise.
13811         * stdio-common/vfscanf.c: Likewise.
13812         * streams/stropts.h: Likewise.
13813         * sunrpc/rpc_thread.c: Likewise.
13814         * sysdeps/i386/strpbrk.S: Likewise.
13815         * sysdeps/ieee754/k_standard.c: Likewise.
13816         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13817         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13818         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
13819         * sysdeps/mach/hurd/profil.c: Likewise.
13820         * sysdeps/s390/dl-procinfo.h: Likewise.
13821         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
13822         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
13823         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
13824         * sysdeps/x86_64/dl-trampoline.S: Likewise.
13825         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13826
13827 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
13828
13829         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
13830         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
13831
13832 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
13833
13834         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
13835         aix specific files.
13836         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
13837         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
13838         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
13839         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
13840         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
13841         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
13842         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
13843         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
13844
13845 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
13846             Roland McGrath  <roland@hack.frob.com>
13847
13848         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
13849         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13850
13851 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13852
13853         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
13854         __executable_start symbol instead of _start.
13855
13856 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
13857
13858         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
13859         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
13860         Move macros to...
13861         * sysdeps/gnu/ldsodefs.h: ... this new file.
13862
13863         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
13864         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
13865         instead of ELFOSABI_LINUX.
13866
13867         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
13868         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
13869         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
13870         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
13871         Likewise.
13872         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
13873         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
13874         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
13875         Likewise.
13876         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13877         (ibm_extended_long_double): Add ieee_nan member.
13878         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
13879         (do_test): New function.
13880
13881         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
13882         TEST_TRUNC.
13883         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
13884         functions, renamed from truncdfsf_test, trunctfsf_test,
13885         trunctfdf_test.
13886         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
13887         functions.
13888         (do_test): Run all these.
13889
13890 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
13891
13892         * argp/argp-help.c: Fix typos.
13893         * argp/argp-parse.c: Likewise.
13894         * debug/backtracesyms.c: Likewise.
13895         * elf/elf.h: Likewise.
13896         * malloc/malloc.c: Likewise.
13897         * nis/nis_print.c: Likewise.
13898         * resolv/res_comp.c: Likewise.
13899         * stdlib/stdlib.h: Likewise.
13900         * sunrpc/clnt_tcp.c: Likewise.
13901         * sunrpc/clnt_udp.c: Likewise.
13902         * sunrpc/clnt_unix.c: Likewise.
13903         * sysdeps/unix/bsd/ptsname.c: Likewise.
13904         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
13905         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
13906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
13907         Likewise.
13908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
13909         Likewise.
13910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
13911         Likewise.
13912         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
13913
13914 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13915
13916         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
13917         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13918
13919 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
13920
13921         [BZ #15897]
13922         * dlfcn/Makefile (tests): Add bug-dl-leaf.
13923         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
13924         ($(objpfx)bug-dl-leaf): New rule.
13925         ($(objpfx)bug-dl-leaf.so): Likewise.
13926         ($(objpfx)bug-dl-leaf.out): Likewise.
13927         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
13928         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
13929         * dlfcn/bug-dl-leaf.c: New test.
13930         * dlfcn/bug-dl-leaf-lib.c: Likewise.
13931         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
13932         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
13933         (dlclose): Likewise.
13934         (dlmopen): Likewise.
13935
13936 2013-08-27  Roland McGrath  <roland@hack.frob.com>
13937
13938         * include/netdb.h [!_ISOMAC]:
13939         Don't include <tls.h>.
13940         (h_errno, __libc_h_errno): Move declaration and macros out of
13941         [_LIBC_REENTRANT].
13942
13943         * include/resolv.h [_RESOLV_H_]:
13944         Don't include <tls.h>.
13945         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
13946         * resolv/res_libc.c: Don't include <tls.h>.
13947         (_res): Use __attribute__ ((nocommon)) in place of
13948         __attribute__ ((section (".bss"))).
13949
13950         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
13951         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
13952
13953         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
13954
13955         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
13956         only under [SIOCGIFCONF && SIOCGIFNETMASK].
13957
13958         * resolv/res_mkquery.c: Include <sys/time.h>.
13959
13960         * inet/ifreq.c: Moved to ...
13961         * sysdeps/unix/ifreq.c: ... here.
13962         * inet/ifreq.c: New file, true stub version.
13963
13964         * socket/sa_len.c: New file.
13965         * socket/Makefile (aux): Add it.
13966         * sysdeps/unix/sysv/linux/Makefile
13967         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
13968         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
13969         and #include <socket/sa_len.c>.
13970         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
13971         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
13972
13973         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
13974         * bits/socket.h: ... here.
13975
13976         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
13977         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
13978         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
13979
13980 2013-08-27  Andreas Schwab  <schwab@suse.de>
13981
13982         [BZ #15736]
13983         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
13984         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
13985         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
13986         * string/test-strcasecmp.c (test_main): Run tests in several
13987         locales.
13988         * string/test-strncasecmp.c (test_main): Likewise.
13989
13990         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
13991         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
13992         to __strcasecmp_nonascii and __strncasecmp_nonascii.
13993         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
13994         (__strncasecmp_ssse3) [PIC]: Likewise.
13995
13996 2013-08-26  Roland McGrath  <roland@hack.frob.com>
13997
13998         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
13999
14000         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14001         instead of explicitly declaring xdecrypt.
14002         * nis/nss_nis/nis-publickey.c: Likewise.
14003
14004 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14005
14006         [BZ #15890]
14007         * nscd/aicache.c: Include res_hconf.h.
14008         (addhstaiX): Initialize res_hconf.
14009
14010 2013-08-26  Andreas Schwab  <schwab@suse.de>
14011
14012         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14013         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14014
14015 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14016
14017         * nscd/aicache.c (addhstaiX): Fix indentation.
14018
14019 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14020
14021         * configure.ac: Quote $build_pt_chown test.
14022         * configure: Regenerated.
14023
14024 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14025
14026         [BZ #15532]
14027         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14028         * math/s_cexpf.c (__cexpf): Likewise.
14029         * math/s_cexpl.c (__cexpl): Likewise.
14030         * math/libm-test.inc (cexp_test_data): Correct expected return
14031         value for NaN + i0.  Add another test.
14032
14033 2013-08-22  David S. Miller  <davem@davemloft.net>
14034
14035         * po/ca.po: Update Catalan translation from translation project.
14036         * po/uk.po: Add Ukrainian translations from translation project.
14037
14038 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14039
14040         [BZ #15797]
14041         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14042         is infinite, not alongside NaN test.
14043         * math/s_fdimf.c (__fdimf): Likewise.
14044         * math/s_fdiml.c (__fdiml): Likewise.
14045         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14046         errno is unchanged.
14047
14048 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14049
14050         * argp/argp-help.c: Fix typos.
14051         * crypt/speeds.c: Likewise.
14052         * csu/check_fds.c: Likewise.
14053         * elf/dl-load.c: Likewise.
14054         * elf/dl-open.c: Likewise.
14055         * elf/reldep3.c: Likewise.
14056         * elf/reldep.c: Likewise.
14057         * elf/sprof.c: Likewise.
14058         * iconv/iconv_charmap.c: Likewise.
14059         * iconv/skeleton.c: Likewise.
14060         * iconv/strtab.c: Likewise.
14061         * io/lockf64.c: Likewise.
14062         * libio/libioP.h: Likewise.
14063         * resolv/gai_notify.c: Likewise.
14064         * resolv/ns_name.c: Likewise.
14065         * resolv/ns_samedomain.c: Likewise.
14066         * resolv/res_send.c: Likewise.
14067         * stdlib/random.c: Likewise.
14068         * sunrpc/rpc/xdr.h: Likewise.
14069         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14070         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14071         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14072         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14073         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14074         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14075         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14076         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14077         * sysdeps/mach/hurd/check_fds.c: Likewise.
14078         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14079         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14080         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14081         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14082         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14083         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14084         * sysdeps/pthread/aio_notify.c: Likewise.
14085         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14086         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14087         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14088         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14089         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14090
14091 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14092
14093         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
14094         version if bit_Slow_SSE4_2 is set.
14095         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14096         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14097
14098 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14099
14100         [BZ #15867]
14101         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
14102         trampoline stack frame information.
14103         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
14104         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
14105         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
14106         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
14107         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
14108         * sysdeps/unix/sysv/linux/powerpc/init-first.c
14109         (_libc_vdso_platform_setup): Initialize the signal trampolines.
14110         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
14111         sa_flags value.
14112         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
14113         interrupting a syscall and set with option SA_SIGINFO.
14114
14115 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14116
14117         [BZ #15531]
14118         * math/s_cproj.c (__cproj): Only return an infinity if one part of
14119         argument is infinite.
14120         * math/s_cprojf.c (__cprojf): Likewise.
14121         * math/s_cprojl.c (__cprojl): Likewise.
14122         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
14123         * math/libm-test.inc (cproj_test_data): Add more tests.
14124
14125         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
14126
14127         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
14128         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
14129         size.  Use __ffs to determine corresponding shift.
14130
14131 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14132             Roland McGrath  <roland@hack.frob.com>
14133
14134         * Makefile (INSTALL): Remove trailing blank lines from output of
14135         makeinfo.
14136
14137 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14138
14139         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
14140         Align 32 bit compat elf_greg to 8 bytes.
14141
14142 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14143
14144         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
14145
14146 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14147
14148         * string/strcoll_l.c (coll_seq): New structure.
14149         (get_next_seq_cached): New function.
14150         (get_next_seq): New function.
14151         (do_compare): New function.
14152         (STRCOLL): Use GNU style definition.  Simplify implementation
14153         by using get_next_seq, get_next_seq_cached and do_compare.
14154
14155 2013-08-16  Florian Weimer  <fweimer@redhat.com>
14156
14157         [BZ #14699]
14158         CVE-2013-4237
14159         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
14160         member.
14161         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
14162         member.
14163         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
14164         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
14165         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
14166         conditional.
14167         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
14168         GETDENTS_64BIT_ALIGNED.
14169         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14170         * manual/filesys.texi (Reading/Closing Directory): Document
14171         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
14172         strongly.
14173         * manual/conf.texi (Limits for Files): Add portability note to
14174         NAME_MAX, PATH_MAX.
14175         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
14176
14177 2013-08-13  Andreas Schwab  <schwab@suse.de>
14178
14179         [BZ #15749]
14180         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
14181         of fabs.
14182         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
14183         LDBL_MAX_EXP >= 16384]: Add tests for it.
14184
14185 2013-08-12  David S. Miller  <davem@davemloft.net>
14186
14187         * version.h (RELEASE): Set to "development".
14188         (VERSION): Set to "2.18.90".
14189         * NEWS: Add 2.19 section.
14190
14191 2013-08-03  David S. Miller  <davem@davemloft.net>
14192
14193         * po/ko.po: Update Korean translation from translation project.
14194
14195 2013-08-01  David S. Miller  <davem@davemloft.net>
14196
14197         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
14198         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
14199         Bilka.
14200
14201 2013-07-30  David S. Miller  <davem@davemloft.net>
14202
14203         * po/fr.po: Update French translation from translation project.
14204
14205 2013-07-28  David S. Miller  <davem@davemloft.net>
14206
14207         * po/cs.po: Update Czech translation from translation project.
14208
14209         * po/sv.po: Update Swedish translation from translation project.
14210
14211 2013-07-27  David S. Miller  <davem@davemloft.net>
14212
14213         * po/eo.po: Update Esperanto translation from translation project.
14214
14215         * po/vi.po: Update Vietnamese translation from translation project.
14216
14217         * po/de.po: Update German translation from translation project.
14218
14219 2013-07-26  David S. Miller  <davem@davemloft.net>
14220
14221         * po/bg.po: Update Bulgarian translation from translation project.
14222
14223         * po/nl.po: Update Dutch translation from translation project.
14224         * po/pl.po: Update Polish translation from translation project.
14225         * po/ru.po: Update Russian translation from translation project.
14226
14227 2013-07-24  David S. Miller  <davem@davemloft.net>
14228
14229         * po/libc.pot: Update.
14230
14231 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14232
14233         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
14234         variable page size.
14235         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
14236         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
14237         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
14238
14239 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14240
14241         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
14242
14243 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14244             Andreas Schwab  <schwab@suse.de>
14245             Roland McGrath  <roland@hack.frob.com>
14246             Joseph Myers  <joseph@codesourcery.com>
14247             Carlos O'Donell  <carlos@redhat.com>
14248
14249         [BZ #15755]
14250         * config.h.in: Define HAVE_PT_CHOWN.
14251         * config.make.in (build-pt-chown): New variable.
14252         * configure.in (--enable-pt_chown): New configure option.
14253         * configure: Regenerate.
14254         * login/Makefile: Include Makeconfig.  Build pt_chown only if
14255         build-pt-chown is enabled.
14256         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
14257         pt_chown to fix pty ownership.
14258         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
14259         CLOSE_ALL_FDS.
14260         * manual/install.texi (Configuring and compiling): Mention
14261         --enable-pt_chown. Add @findex for grantpt.
14262         * INSTALL: Regenerate.
14263
14264 2013-07-20  David S. Miller  <davem@davemloft.net>
14265
14266         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
14267         difference between 32-bit and 64-bit.
14268
14269 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
14270
14271         [BZ #15711]
14272         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
14273         Avoid system header dependency with -ffreestanding.
14274         ($(objpfx)bits/syscall%d): Likewise.
14275
14276 2013-07-13  David S. Miller  <davem@davemloft.net>
14277
14278         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
14279         underflows from atanl/atan2l due to bug 15319.
14280         (casinh_test_data): Likewise.
14281
14282 2013-07-07  David S. Miller  <davem@davemloft.net>
14283
14284         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
14285
14286 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
14287
14288         * sysdeps/i386/fpu/libm-test-ulps: Update.
14289         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14290
14291 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14292
14293         * configure.in (--enable-lock-elision): Fix message text.
14294         * INSTALL: Regenerate.
14295         * configure: Regenerate.
14296
14297 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14298
14299         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14300
14301 2013-07-03  Andreas Jaeger  <aj@suse.de>
14302
14303         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
14304         define.
14305         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
14306         (ptrace_peeksiginfo_args): Add.
14307         (__ptrace_peeksiginfo_flags): Add.
14308         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14309         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14310         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14311
14312 2013-07-03  Allan McRae  <allan@archlinux.org>
14313
14314         * sysdeps/i386/fpu/libm-test-ulps: Update.
14315
14316 2013-07-02  David S. Miller  <davem@davemloft.net>
14317
14318         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14319
14320 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
14321
14322         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14323
14324 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14325
14326         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
14327         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14328
14329 2013-07-02  Andi Kleen <ak@linux.intel.com>
14330
14331         * config.h.in (ENABLE_LOCK_ELISION): Add.
14332         * configure.in (--enable-lock-elision): Add option.
14333         * manual/install.texi: Document --enable lock elision.
14334         * configure: Regenerate
14335         * INSTALL: Regenerate.
14336
14337 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14338
14339         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
14340         SSE4.2 strcasecmp for libc.a.
14341         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
14342
14343 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14344
14345         [BZ #13304]
14346         * soft-fp/op-common.h (_FP_FMA): New macro.
14347         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
14348         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
14349         (_FP_MUL_MEAT_1_imm): ... here.
14350         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
14351         (_FP_MUL_MEAT_1_wide): ... here.
14352         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
14353         (_FP_MUL_MEAT_1_hard): ... here.
14354         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
14355         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
14356         (_FP_MUL_MEAT_2_wide): ... here.
14357         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
14358         (_FP_MUL_MEAT_2_wide_3mul): ... here.
14359         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
14360         (_FP_MUL_MEAT_2_gmp): ... here.
14361         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
14362         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
14363         (_FP_MUL_MEAT_4_wide): ... here.
14364         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
14365         (_FP_MUL_MEAT_4_gmp): ... here.
14366         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
14367         (_FP_WFRACBITS_DW_S): Likewise.
14368         (_FP_WFRACXBITS_DW_S): Likewise.
14369         (_FP_HIGHBIT_DW_S): Likewise.
14370         (FP_FMA_S): Likewise.
14371         (_FP_FRAC_HIGH_DW_S): Likewise.
14372         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
14373         (_FP_WFRACBITS_DW_D): Likewise.
14374         (_FP_WFRACXBITS_DW_D): Likewise.
14375         (_FP_HIGHBIT_DW_D): Likewise.
14376         (FP_FMA_D): Likewise.
14377         (_FP_FRAC_HIGH_DW_D): Likewise.
14378         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
14379         (_FP_WFRACBITS_DW_E): Likewise.
14380         (_FP_WFRACXBITS_DW_E): Likewise.
14381         (_FP_HIGHBIT_DW_E): Likewise.
14382         (FP_FMA_E): Likewise.
14383         (_FP_FRAC_HIGH_DW_E): Likewise.
14384         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
14385         (_FP_WFRACBITS_DW_Q): Likewise.
14386         (_FP_WFRACXBITS_DW_Q): Likewise.
14387         (_FP_HIGHBIT_DW_Q): Likewise.
14388         (FP_FMA_Q): Likewise.
14389         (_FP_FRAC_HIGH_DW_Q): Likewise.
14390         * soft-fp/fmasf4.c: New file.
14391         * soft-fp/fmadf4.c: Likewise.
14392         * soft-fp/fmatf4.c: Likewise.
14393
14394 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14395
14396         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14397         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
14398         Silvermont.
14399         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
14400         macro.
14401         (index_Slow_SSE4_2): Likewise.
14402         (index_Prefer_PMINUB_for_stringop): Likewise.
14403         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
14404         bit_Slow_SSE4_2 is set.
14405         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14406         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14407
14408 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14409
14410         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
14411         rtld_global._dl_hwcap2.
14412         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
14413         POWER8.
14414         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
14415         POWER8 feature descriptions defined in _dl_hwcap2.
14416         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
14417         string handling for POWER8 feature bits.
14418         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
14419         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
14420         _dl_powerpc_cap_flags.
14421         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
14422         * sysdeps/powerpc/rtld-global-offsets.sym
14423         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
14424         _dl_hwcap2 in the rtld_global_ro structure.
14425
14426 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14427
14428         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
14429         hardware capabilities in support of AT_HWCAP2.
14430         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
14431         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
14432         GLRO(dl_hwcap2).
14433         (_dl_show_auxv): Add support for calling _dl_procinfo to display
14434         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
14435         explicitly the unknown a_type display mechanism is used.
14436         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
14437         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
14438         struct member.
14439         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
14440         to macro prototype for AT_HWCAP2 support.
14441         * sysdeps/i386/dl-procinfo.h: Likewise.
14442         * sysdeps/s390/dl-procinfo.h: Likewise.
14443         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
14444         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
14445         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
14446         return -1 for unknown a_type display fallback.
14447         * sysdeps/sparc/dl-procinfo.h: Likewise.
14448         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
14449         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
14450
14451 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
14452
14453         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
14454         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
14455
14456 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
14457
14458         [BZ #12492]
14459         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
14460         mprotect making __stack_prot writable.
14461
14462 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
14463             Joseph Myers  <joseph@codesourcery.com>
14464
14465         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
14466         as being properly aligned.
14467
14468 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
14469
14470         * dlfcn/modstatic5.c: New file.
14471         * dlfcn/tststatic5.c: New file.
14472         * dlfcn/Makefile (tests): Add tststatic5.
14473         (tests-static): Likewise.
14474         (modules-names): Add modstatic5.
14475         (tststatic5-ENV): New variable.
14476         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
14477
14478         [BZ #15022]
14479         * elf/dl-support.c (_dl_main_map): New variable.
14480         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
14481         (_dl_nns, _dl_load_adds): Set to 1.
14482         (_dl_initial_searchlist): Refer to _dl_main_map.
14483         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
14484         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
14485         call to _dl_get_origin.
14486         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
14487         around call_map.
14488         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
14489         * dlfcn/modstatic3.c: New file.
14490         * dlfcn/tststatic3.c: New file.
14491         * dlfcn/tststatic4.c: New file.
14492         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
14493         (tests-static): Likewise.
14494         (modules-names): Add modstatic3.
14495         (tststatic3-ENV, tststatic4-ENV): New variables.
14496         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
14497         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
14498
14499 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
14500
14501         * configure.in (CC): Require GCC version 4.4 or later.
14502         * configure: Regenerated.
14503         * manual/install.texi (Tools for Compilation): Update GCC version
14504         requirement.
14505         * INSTALL: Regenerated.
14506
14507 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14508
14509         [BZ #15674]
14510         * string/test-memcmp.c (check2): New.
14511         (main): Call check2.
14512
14513         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
14514
14515 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
14516
14517         [BZ #15022]
14518         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
14519         over to...
14520         (dl_open_worker) [!SHARED]: ... here.
14521
14522 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14523
14524         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
14525
14526 2013-06-25  Richard Henderson  <rth@redhat.com>
14527
14528         * locale/programs/locarchive.c: Include <libc-internal.h>
14529
14530 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
14531
14532         * manual/texinfo.tex: Update to version 2013-06-21.17, with
14533         trailing whitespace removed.
14534
14535 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
14536
14537         [BZ #10283]
14538         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
14539         * locale/programs/locarchive.c: Include libc-mmap.h.
14540         (prepare_address_space): Take two new outputs (the mmap base and len).
14541         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
14542         values.
14543         (create_archive): Declare new mmap base and len values for
14544         prepare_address_space, and store the result in ah.
14545         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
14546         (enlarge_archive): If ah->mmap_base is not NULL, use that and
14547         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
14548         Declare new mmap base and len values for
14549         prepare_address_space, and store the result in new_ah.
14550         (open_archive): Declare new mmap base and len values for
14551         prepare_address_space, and store the result in ah.
14552         (close_archive): If ah->mmap_base is not NULL, use that and
14553         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
14554         * sysdeps/generic/libc-mmap.h: New file.
14555
14556 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
14557
14558         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
14559         (ALIGN_UP): Likewise.
14560         (PTR_ALIGN_DOWN): Likewise.
14561         (PTR_ALIGN_UP): Likewise.
14562
14563 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14564
14565         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
14566         entry mapped to PPC_PLATFORM_POWER8.
14567         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
14568         POWER8.
14569         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
14570         (_dl_string_platform): Add case for exporting platform position for
14571         POWER8.
14572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
14573         search path to sysdeps/powerpc/powerpc32/power8 directory.
14574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
14575         search path to sysdeps/powerpc/powerpc64/power8 directory.
14576         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
14577         power7 directories.
14578         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
14579         power7 directories.
14580
14581 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14582
14583         * INSTALL: Regenerate.
14584
14585         * nscd/connections.c (nscd_init): Fix comment.
14586
14587 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
14588
14589         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
14590
14591         [BZ #15667]
14592         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
14593         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
14594
14595 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
14596
14597         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
14598         DL_DST_REQ_STATIC.
14599         (DL_DST_REQ_STATIC): Remove macro.
14600
14601 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
14602
14603         [BZ #7006]
14604         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
14605         with a shift of 0 bits.
14606
14607 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
14608
14609         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
14610         $(tststatic-ENV).
14611
14612 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14613
14614         [BZ #15655]
14615         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
14616
14617 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14618
14619         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
14620         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
14621         accepts -fno-tree-loop-distribute-patterns.
14622         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
14623         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
14624         recursive call.
14625         * string/memset.c (memset): Likewise.
14626         * string/test-memmove.c (simple_memmove): Disable loop transformation
14627         to library calls.
14628         * string/test-memset.c (simple_memset): Likewise.
14629         * benchtests/bench-memmove.c (simple_memmove): Likewise.
14630         * benchtests/bench-memset.c (simple_memset): Likewise.
14631         * configure: Regenerated.
14632
14633 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
14634
14635         * math/test-misc.c (main): Ignore fesetround failure when failures
14636         of subsequent rounding tests would be ignored.
14637
14638         [BZ #15654]
14639         * math/fedisblxcpt.c (fedisableexcept): Return 0.
14640         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
14641         * math/fegetenv.c (__fegetenv): Return 0.
14642         * math/fegetexcept.c (fegetexcept): Return 0.
14643         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
14644         FE_TONEAREST.
14645         * math/feholdexcpt.c (feholdexcept): Return 0.
14646         * math/fesetenv.c (__fesetenv): Return 0.
14647         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
14648         argument FE_TONEAREST.
14649         * math/feupdateenv.c (__feupdateenv): Return 0.
14650         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
14651
14652 2013-06-18  Roland McGrath  <roland@hack.frob.com>
14653
14654         * elf/rtld-Rules (rtld-compile-command.S): New variable.
14655         (rtld-compile-command.s, rtld-compile-command.c): New variables.
14656         ($(objpfx)rtld-%.os rules): Use them.
14657
14658 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14659
14660         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
14661         fields.
14662
14663 2013-06-17  Roland McGrath  <roland@hack.frob.com>
14664
14665         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
14666         length of target pattern, then descending length of dependency pattern.
14667         * configure.in (AWK): Require gawk 3.1.2 or newer.
14668         * manual/install.texi (Tools for Compilation): Say that we do.
14669         * configure: Regenerated.
14670
14671         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
14672         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
14673         * scripts/sysd-rules.awk: ... this new script.
14674         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
14675         than a glob-style pattern.
14676
14677 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
14678
14679         * math/test-misc.c (main): Do not treat incorrectly rounded
14680         conversions as failure unless ROUNDING_TESTS passes.
14681
14682 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
14683
14684         [BZ #15631]
14685         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
14686         restore exception state around main square root computation, then
14687         check for inexactness explicitly.
14688
14689         * math/libm-test.inc (fma_test_data): Add another test.
14690
14691 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
14692
14693         * manual/threads.texi (Non-POSIX Extensions): New document
14694         node.  Document pthread_getattr_default_np and
14695         pthread_setattr_default_np.
14696
14697         * Versions.def (libpthread): Add GLIBC_2.18.
14698         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
14699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
14700         Likewise.
14701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14702         Likewise.
14703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14704         Likewise.
14705         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14706         Likewise.
14707         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
14708         Likewise.
14709         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14710         Likewise.
14711         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14712         Likewise.
14713         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
14714         Likewise.
14715         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14716         Likewise.
14717
14718 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14719
14720         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14721         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
14722
14723 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14724             H.J. Lu  <hjl.tools@gmail.com>
14725
14726         [BZ #15627]
14727         * sysdeps/x86_64/rtld-memset.c: Remove file.
14728         * sysdeps/x86_64/rtld-memset.S: New file.
14729
14730 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
14731
14732         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
14733         (test_in_one_mode): Take arguments for whether the rounding mode
14734         is supported for each floating-point type.
14735         (do_test): Pass new arguments to test_in_one_mode using
14736         ROUNDING_TESTS.
14737
14738 2013-06-13  Roland McGrath  <roland@hack.frob.com>
14739
14740         * posix/tst-waitid.c (do_test): Distinguish different instances of
14741         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
14742         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
14743         before entering the kernel for waitpid.
14744
14745 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
14746
14747         * NEWS: Fix note on clock function precision.  Text by Roland
14748         McGrath.
14749
14750 2013-06-13  Roland McGrath  <roland@hack.frob.com>
14751
14752         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
14753         it into place only when and if the sanity check passes.
14754
14755 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
14756
14757         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
14758         output for whether conversion result is exact.  Take argument
14759         indicating whether type is IBM long double.
14760         (round_for_all): Change need_exact field to ibm_ld.
14761         * stdlib/tst-strtod-round.c (struct exactness): New type.
14762         (struct test): Change bool ld_ok field to struct exactness exact.
14763         (TEST): Update all definitions for change to field.
14764         (tests): Regenerate array contents.
14765         (test_in_one_mode): Take pointer to new field instead of old ld_ok
14766         field value.  Check for IBM long double here.
14767         (do_test): Update calls to test_in_one_mode.
14768
14769 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
14770
14771         [BZ #12515]
14772         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
14773         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
14774
14775 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14776
14777         [BZ #15605]
14778         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
14779         generated by the compiler on loop optimizations.
14780         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
14781         general definitions.
14782
14783 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
14784
14785         * math/bug-nextafter.c: Include <math-tests.h>.
14786         (main): Only test for exceptions if EXCEPTION_TESTS is true for
14787         the relevant type.
14788         * math/bug-nexttoward.c: Include <math-tests.h>.
14789         (main): Only test for exceptions if EXCEPTION_TESTS is true for
14790         the relevant type.
14791         * math/test-misc.c: Include <math-tests.h>.
14792         (main): Only test for exceptions if EXCEPTION_TESTS is true for
14793         the relevant type.
14794
14795 2013-06-12  Andreas Jaeger  <aj@suse.de>
14796
14797         * po/ia.po: Update Interlingua translation from translation
14798         project.
14799
14800 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
14801
14802         * include/fenv.h: Include stdbool.h.
14803         (struct rm_ctx): New structure.
14804         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
14805         Define macro.
14806         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
14807         (SET_RESTORE_ROUNDF): Likewise.
14808         (SET_RESTORE_ROUNDL): Likewise.
14809         (SET_RESTORE_ROUND_NOEX): Likewise.
14810         (SET_RESTORE_ROUND_NOEXF): Likewise.
14811         (SET_RESTORE_ROUND_NOEXL): Likewise.
14812         (SET_RESTORE_ROUND_53BIT): Likewise.
14813         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
14814         (libc_feresetround_noexf_ctx): Likewise.
14815         (libc_feresetround_noexl_ctx): Likewise.
14816         (libc_feholdsetround_53bit_ctx): Likewise.
14817         (libc_feresetround_53bit_ctx): Likewise.
14818         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
14819         (libc_feholdexcept_setround_sse_ctx): New function.
14820         (libc_fesetenv_sse_ctx): Likewise.
14821         (libc_feupdateenv_sse_ctx): Likewise.
14822         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
14823         (libc_feholdexcept_setround_387_ctx): Likewise.
14824         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
14825         (libc_feholdsetround_387_prec_ctx): Likewise.
14826         (libc_feholdsetround_387_ctx): Likewise.
14827         (libc_feholdsetround_387_53bit_ctx): Likewise.
14828         (libc_feholdsetround_sse_ctx): Likewise.
14829         (libc_feresetround_sse_ctx): Likewise.
14830         (libc_feresetround_387_ctx): Likewise.
14831         (libc_feupdateenv_387_ctx): Likewise.
14832         (libc_feholdexcept_setroundf_ctx): Define macro.
14833         (libc_fesetenvf_ctx): Likewise.
14834         (libc_feupdateenvf_ctx): Likewise.
14835         (libc_feholdsetroundf_ctx): Likewise.
14836         (libc_feresetroundf_ctx): Likewise.
14837         (libc_feholdexcept_setround_ctx): Likewise.
14838         (libc_fesetenv_ctx): Likewise.
14839         (libc_feupdateenv_ctx): Likewise.
14840         (libc_feholdsetround_ctx): Likewise.
14841         (libc_feresetround_ctx): Likewise.
14842         (libc_feholdexcept_setroundl_ctx): Likewise.
14843         (libc_feupdateenvl_ctx): Likewise.
14844         (libc_feholdsetroundl_ctx): Likewise.
14845         (libc_feresetroundl_ctx): Likewise.
14846         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
14847         (libc_feresetround_53bit_ctx): Likewise.
14848
14849 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14850
14851         * locale/iso-639.def: Convert to UTF-8.
14852
14853 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
14854
14855         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
14856         (EXCEPTION_TESTS_double): Likewise.
14857         (EXCEPTION_TESTS_long_double): Likewise.
14858         (EXCEPTION_TESTS): Likewise.
14859         * math/libm-test.inc (test_exceptions): Only test exceptions if
14860         EXCEPTION_TESTS (FLOAT).
14861
14862 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14863
14864         * benchtests/Makefile (string-bench): Add strcpy_chk and
14865         stpcpy_chk.
14866         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
14867         * benchtests/bench-stpcpy_chk.c: New file.
14868         * benchtests/bench-strcpy_chk-ifunc.c: New file.
14869         * benchtests/bench-strcpy_chk.c: New file.
14870         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
14871         code.
14872         (do_test): Likewise.
14873
14874 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14875
14876         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
14877         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
14878         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
14879         with tabs where appropriate.
14880         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
14881         dl-procinfo.h.
14882         [PPC_PLATFORM_PPC440]: Likewise.
14883         [PPC_PLATFORM_PPC464]: Likewise.
14884         [PPC_PLATFORM_PPC476]: Likewise.
14885         (_dl_string_platform): Add support for detecting ppc405, ppc440,
14886         ppc464, and ppc476 platform strings merging from ports/
14887         dl-procinfo.h.
14888
14889 2013-06-11  Andreas Schwab  <schwab@suse.de>
14890
14891         [BZ #14991]
14892         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
14893         (from_ucs4_idx): Regenerate.
14894         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
14895         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
14896         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
14897         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
14898         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
14899         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
14900         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
14901         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
14902         from FROM_LOOP and TO_LOOP specific macros.
14903         (BODY): Handle combining characters.
14904         * iconvdata/BIG5HKSCS.irreversible: Update.
14905         * iconvdata/BIG5HKSCS.precomposed: New file.
14906         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
14907         characters.
14908         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
14909
14910 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14911
14912         * include/sys/time.h: Fix indentation and add copyright header.
14913
14914         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
14915         (do_test): Likewise.
14916         * string/test-memchr.c (do_one_test): Likewise.
14917         (do_test): Likewise.
14918         * string/test-memcmp.c (do_one_test): Likewise.
14919         (do_test): Likewise.
14920         * string/test-memcpy.c (do_one_test): Likewise.
14921         (do_test): Likewise.
14922         * string/test-memmem.c (do_one_test): Likewise.
14923         (do_test): Likewise.
14924         (do_random_tests): Likewise.
14925         * string/test-memmove.c (do_one_test): Likewise.
14926         (do_test): Likewise.
14927         * string/test-memset.c (do_one_test): Likewise.
14928         (do_test): Likewise.
14929         * string/test-rawmemchr.c (do_one_test): Likewise.
14930         (do_test): Likewise.
14931         * string/test-strcasecmp.c (do_one_test): Likewise.
14932         (do_test): Likewise.
14933         * string/test-strcasestr.c (do_one_test): Likewise.
14934         (do_test): Likewise.
14935         * string/test-strcat.c (do_one_test): Likewise.
14936         (do_test): Likewise.
14937         * string/test-strchr.c (do_one_test): Likewise.
14938         (do_test): Likewise.
14939         * string/test-strcmp.c (do_one_test): Likewise.
14940         (do_test): Likewise.
14941         * string/test-strcpy.c (do_one_test): Likewise.
14942         (do_test): Likewise.
14943         * string/test-string.h: Likewise.
14944         (test_init): Likewise.
14945         * string/test-strlen.c (do_one_test): Likewise.
14946         (do_test): Likewise.
14947         * string/test-strncasecmp.c (do_one_test): Likewise.
14948         (do_test): Likewise.
14949         * string/test-strncat.c (do_one_test): Likewise.
14950         (do_test): Likewise.
14951         * string/test-strncmp.c (do_one_test): Likewise.
14952         (do_test_limit): Likewise.
14953         (do_test): Likewise.
14954         * string/test-strncpy.c (do_one_test): Likewise.
14955         (do_test): Likewise.
14956         * string/test-strnlen.c (do_one_test): Likewise.
14957         (do_test): Likewise.
14958         * string/test-strpbrk.c (do_one_test): Likewise.
14959         (do_test): Likewise.
14960         * string/test-strrchr.c (do_one_test): Likewise.
14961         (do_test): Likewise.
14962         * string/test-strspn.c (do_one_test): Likewise.
14963         (do_test): Likewise.
14964         * string/test-strstr.c (do_one_test): Likewise.
14965         (do_test): Likewise.
14966
14967         * benchtests/Makefile (string-bench): Add string benchmarks.
14968         * benchtests/bench-bcopy-ifunc.c: New file.
14969         * benchtests/bench-bcopy.c: New file.
14970         * benchtests/bench-bzero-ifunc.c: New file.
14971         * benchtests/bench-bzero.c: New file.
14972         * benchtests/bench-memccpy-ifunc.c: New file.
14973         * benchtests/bench-memccpy.c: New file.
14974         * benchtests/bench-memchr-ifunc.c: New file.
14975         * benchtests/bench-memchr.c: New file.
14976         * benchtests/bench-memcmp-ifunc.c: New file.
14977         * benchtests/bench-memcmp.c: New file.
14978         * benchtests/bench-memmem-ifunc.c: New file.
14979         * benchtests/bench-memmem.c: New file.
14980         * benchtests/bench-memmove-ifunc.c: New file.
14981         * benchtests/bench-memmove.c: New file.
14982         * benchtests/bench-mempcpy-ifunc.c: New file.
14983         * benchtests/bench-mempcpy.c: New file.
14984         * benchtests/bench-memset-ifunc.c: New file.
14985         * benchtests/bench-memset.c: New file.
14986         * benchtests/bench-rawmemchr-ifunc.c: New file.
14987         * benchtests/bench-rawmemchr.c: New file.
14988         * benchtests/bench-stpcpy-ifunc.c: New file.
14989         * benchtests/bench-stpcpy.c: New file.
14990         * benchtests/bench-stpncpy-ifunc.c: New file.
14991         * benchtests/bench-stpncpy.c: New file.
14992         * benchtests/bench-strcasecmp-ifunc.c: New file.
14993         * benchtests/bench-strcasecmp.c: New file.
14994         * benchtests/bench-strcasestr-ifunc.c: New file.
14995         * benchtests/bench-strcasestr.c: New file.
14996         * benchtests/bench-strcat-ifunc.c: New file.
14997         * benchtests/bench-strcat.c: New file.
14998         * benchtests/bench-strchr-ifunc.c: New file.
14999         * benchtests/bench-strchr.c: New file.
15000         * benchtests/bench-strchrnul-ifunc.c: New file.
15001         * benchtests/bench-strchrnul.c: New file.
15002         * benchtests/bench-strcmp-ifunc.c: New file.
15003         * benchtests/bench-strcmp.c: New file.
15004         * benchtests/bench-strcpy-ifunc.c: New file.
15005         * benchtests/bench-strcpy.c: New file.
15006         * benchtests/bench-strcspn-ifunc.c: New file.
15007         * benchtests/bench-strcspn.c: New file.
15008         * benchtests/bench-strlen-ifunc.c: New file.
15009         * benchtests/bench-strlen.c: New file.
15010         * benchtests/bench-strncasecmp-ifunc.c: New file.
15011         * benchtests/bench-strncasecmp.c: New file.
15012         * benchtests/bench-strncat-ifunc.c: New file.
15013         * benchtests/bench-strncat.c: New file.
15014         * benchtests/bench-strncmp-ifunc.c: New file.
15015         * benchtests/bench-strncmp.c: New file.
15016         * benchtests/bench-strncpy-ifunc.c: New file.
15017         * benchtests/bench-strncpy.c: New file.
15018         * benchtests/bench-strnlen-ifunc.c: New file.
15019         * benchtests/bench-strnlen.c: New file.
15020         * benchtests/bench-strpbrk-ifunc.c: New file.
15021         * benchtests/bench-strpbrk.c: New file.
15022         * benchtests/bench-strrchr-ifunc.c: New file.
15023         * benchtests/bench-strrchr.c: New file.
15024         * benchtests/bench-strspn-ifunc.c: New file.
15025         * benchtests/bench-strspn.c: New file.
15026         * benchtests/bench-strstr-ifunc.c: New file.
15027         * benchtests/bench-strstr.c: New file.
15028
15029         * benchtests/Makefile: Disable parallel execution of targets.
15030         (string-bench): Add memcpy.
15031         (benchset): New variable to store a list of benchmark sets.
15032         (bench-func): Renamed from bench.
15033         (bench-set): New target.
15034         (bench): Depend on bench-func and bench-set.
15035         * benchtests/README: Add section on benchmark sets.
15036         * benchtests/bench-memcpy-ifunc.c: New file.
15037         * benchtests/bench-memcpy.c: New file.
15038         * benchtests/bench-string.h: New file.
15039
15040 2013-06-11  Andreas Schwab  <schwab@suse.de>
15041
15042         [BZ #15577]
15043         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15044         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15045         values in the triple.
15046         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15047         terminator in the group key.
15048
15049 2013-06-11  Andreas Jaeger  <aj@suse.de>
15050
15051         * po/zh_TW.po: Update Chinese (traditional) translation from
15052         translation project.
15053
15054 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15055
15056         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15057         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15058         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15059         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15060         (clock_getcpuclockid): Likewise.
15061         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15062         Add weak_alias and libc_hidden_def.
15063         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15064         * rt/clock_gettime.c (clock_gettime): Rename to
15065         __clock_gettime.  Add weak_alias and libc_hidden_def.
15066         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15067         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15068         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15069         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15070         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15071         Likewise.
15072         * rt/clock_settime.c (clock_settime): Rename to
15073         __clock_settime.  Add weak_alias and libc_hidden_def.
15074         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15075
15076 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15077
15078         * mach/err_boot.sub: Remove trailing whitespace.
15079         * mach/err_ipc.sub: Likewise.
15080         * mach/err_mach.sub: Likewise.
15081
15082         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15083         (ROUNDING_TESTS_double): Likewise.
15084         (ROUNDING_TESTS_long_double): Likewise.
15085         (ROUNDING_TESTS): Likewise.
15086         * math/libm-test.inc: Include <math-tests.h>.
15087         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15088         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15089         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15090         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15091
15092 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15093
15094         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
15095         of assigning.
15096
15097 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
15098
15099         * sysdeps/gnu/errlist.awk: Do not generate space at end of
15100         otherwise empty TRANS lines.
15101         * sysdeps/gnu/errlist.c: Regenerated.
15102
15103         * catgets/gencat.c (error_print): Use (void) in function
15104         definition.
15105         * crypt/crypt_util.c (__init_des): Likewise.
15106         * crypt/speeds.c (Stop): Likewise.
15107         (main): Likewise.
15108         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
15109         * inet/ruserpass.c (token): Likewise.
15110         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
15111         * intl/localealias.c (extend_alias_table): Likewise.
15112         * intl/plural-exp.c (init_germanic_plural): Likewise.
15113         * libio/fcloseall.c (__fcloseall): Likewise.
15114         * libio/genops.c (_IO_flush_all): Likewise.
15115         (_IO_flush_all_linebuffered): Likewise.
15116         (_IO_cleanup): Likewise.
15117         (_IO_iter_begin): Likewise.
15118         (_IO_iter_end): Likewise.
15119         (_IO_list_lock): Likewise.
15120         (_IO_list_unlock): Likewise.
15121         (_IO_list_resetlock): Likewise.
15122         * libio/getchar.c (getchar): Likewise.
15123         * libio/getchar_u.c (getchar_unlocked): Likewise.
15124         * libio/getwchar.c (getwchar): Likewise.
15125         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
15126         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
15127         * login/getpt.c (__getpt): Likewise.
15128         * login/tst-utmp.c (main): Likewise.
15129         * malloc/hooks.c (__malloc_check_init): Likewise.
15130         * malloc/malloc.c (__malloc_stats): Likewise.
15131         * malloc/mtrace.c (tr_break): Likewise.
15132         (mtrace): Likewise.
15133         (muntrace): Likewise.
15134         * misc/fstab.c (endfsent): Likewise.
15135         * misc/getclktck.c (__getclktck): Likewise.
15136         * misc/getdtsz.c (__getdtablesize): Likewise.
15137         * misc/gethostid.c (gethostid): Likewise.
15138         * misc/getpagesize.c (__getpagesize): Likewise.
15139         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
15140         (__get_nprocs): Likewise.
15141         (__get_phys_pages): Likewise.
15142         (__get_avphys_pages): Likewise.
15143         * misc/getttyent.c (getttyent): Likewise.
15144         (setttyent): Likewise.
15145         (endttyent): Likewise.
15146         * misc/getusershell.c (getusershell): Likewise.
15147         (endusershell): Likewise.
15148         (setusershell): Likewise.
15149         (initshells): Likewise.
15150         * misc/hsearch.c (__hdestroy): Likewise.
15151         * misc/sync.c (sync): Likewise.
15152         * misc/syslog.c (closelog_internal): Likewise.
15153         (closelog): Likewise.
15154         * misc/ttyslot.c (ttyslot): Likewise.
15155         * misc/vhangup.c (vhangup): Likewise.
15156         * posix/fork.c (__fork): Likewise.
15157         * posix/getegid.c (__getegid): Likewise.
15158         * posix/geteuid.c (__geteuid): Likewise.
15159         * posix/getgid.c (__getgid): Likewise.
15160         * posix/getpid.c (__getpid): Likewise.
15161         * posix/getppid.c (__getppid): Likewise.
15162         * posix/getuid.c (__getuid): Likewise.
15163         * posix/pause.c (pause): Likewise.
15164         * posix/setpgrp.c (setpgrp): Likewise.
15165         * posix/setsid.c (__setsid): Likewise.
15166         * posix/test-vfork.c (noop): Likewise.
15167         * resolv/gethnamaddr.c (_endhtent): Likewise.
15168         (_gethtent): Likewise.
15169         (ht_endhostent): Likewise.
15170         (gethostent): Likewise.
15171         (dns_service): Likewise.
15172         * stdlib/drand48.c (drand48): Likewise.
15173         * stdlib/lrand48.c (lrand48): Likewise.
15174         * stdlib/mrand48.c (mrand48): Likewise.
15175         * stdlib/rand.c (rand): Likewise.
15176         * stdlib/random.c (__random): Likewise.
15177         * stdlib/setenv.c (clearenv): Likewise.
15178         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
15179         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
15180         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
15181         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
15182         (__get_nprocs): Likewise.
15183         (__get_phys_pages): Likewise.
15184         (__get_avphys_pages): Likewise.
15185         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
15186         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
15187         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
15188         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
15189         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
15190         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
15191         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
15192         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
15193         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
15194         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
15195         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
15196         * sysdeps/mach/hurd/sync.c (sync): Likewise.
15197         * sysdeps/posix/clock.c (clock): Likewise.
15198         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
15199         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
15200         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
15201         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
15202         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
15203         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
15204         (__get_nprocs_conf): Likewise.
15205         (__get_phys_pages): Likewise.
15206         (__get_avphys_pages): Likewise.
15207         * time/clock.c (clock): Likewise.
15208         * time/tzset.c (__tzname_max): Likewise.
15209
15210 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
15211
15212         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
15213         (__bswap_32): Do not use "register".
15214         * crypt/crypt.c (_ufc_doit_r): Likewise.
15215         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
15216         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
15217         * gmon/gmon.c (__monstartup): Likewise.
15218         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
15219         * hurd/hurdmalloc.c (more_memory): Likewise.
15220         (malloc): Likewise.
15221         (free): Likewise.
15222         (realloc): Likewise.
15223         (malloc_fork_prepare): Likewise.
15224         (malloc_fork_parent): Likewise.
15225         (malloc_fork_child): Likewise.
15226         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
15227         (_svcauth_des): Likewise.
15228         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15229         * inet/inet_net.c (inet_network): Likewise.
15230         * inet/inet_netof.c (inet_netof): Likewise.
15231         * inet/rcmd.c (__validuser2_sa): Likewise.
15232         * io/fts.c (fts_open): Likewise.
15233         (fts_load): Likewise.
15234         (fts_close): Likewise.
15235         (fts_read): Likewise.
15236         (fts_children): Likewise.
15237         (fts_build): Likewise.
15238         (fts_stat): Likewise.
15239         (fts_sort): Likewise.
15240         (fts_alloc): Likewise.
15241         (fts_lfree): Likewise.
15242         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
15243         (_IO_file_xsgetn): Likewise.
15244         (_IO_file_xsgetn_mmap): Likewise.
15245         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15246         (_IO_cookie_write): Likewise.
15247         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
15248         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
15249         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
15250         * malloc/obstack.c (_obstack_begin): Likewise.
15251         (_obstack_begin_1): Likewise.
15252         (_obstack_newchunk): Likewise.
15253         (_obstack_allocated_p): Likewise.
15254         (obstack_free): Likewise.
15255         (_obstack_memory_used): Likewise.
15256         * misc/getttyent.c (getttynam): Likewise.
15257         (getttyent): Likewise.
15258         (skip): Likewise.
15259         (value): Likewise.
15260         * misc/getusershell.c (initshells): Likewise.
15261         * misc/syslog.c (__vsyslog_chk): Likewise.
15262         * misc/ttyslot.c (ttyslot): Likewise.
15263         * nis/nis_hash.c (__nis_hash): Likewise.
15264         * posix/fnmatch_loop.c (FCT): Likewise.
15265         * posix/getconf.c (print_all): Likewise.
15266         (main): Likewise.
15267         * posix/getopt.c (exchange): Likewise.
15268         * posix/glob.c (globfree): Likewise.
15269         (prefix_array): Likewise.
15270         (__glob_pattern_type): Likewise.
15271         * resolv/arpa/nameser.h (NS_GET16): Likewise.
15272         (NS_GET32): Likewise.
15273         (NS_PUT16): Likewise.
15274         (NS_PUT32): Likewise.
15275         * resolv/gethnamaddr.c (getanswer): Likewise.
15276         (gethostbyname2): Likewise.
15277         (gethostbyaddr): Likewise.
15278         (_gethtent): Likewise.
15279         (_gethtbyname2): Likewise.
15280         (_gethtbyaddr): Likewise.
15281         * resolv/ns_print.c (dst_s_get_int16): Likewise.
15282         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
15283         * resolv/res_init.c (__res_vinit): Likewise.
15284         (net_mask): Likewise.
15285         * resolv/res_mkquery.c (outchar): Likewise.
15286         (PRINT): Likewise.
15287         * stdio-common/printf_fp.c (outchar): Likewise.
15288         (PRINT): Likewise.
15289         * stdio-common/printf_fphex.c (outchar): Likewise.
15290         (PRINT): Likewise.
15291         * stdio-common/printf_size.c (outchar): Likewise.
15292         (PRINT): Likewise.
15293         * stdio-common/test_rdwr.c (main): Likewise.
15294         * stdio-common/tfformat.c (matches): Likewise.
15295         * stdio-common/vfprintf.c (outchar): Likewise.
15296         (printf_unknown): Likewise.
15297         (buffered_vfprintf): Likewise.
15298         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
15299         * stdio-common/xbug.c (AppendToBuffer): Likewise.
15300         (ReadFile): Likewise.
15301         * stdlib/qsort.c (SWAP): Likewise.
15302         (_quicksort): Likewise.
15303         * stdlib/setenv.c (__add_to_environ): Likewise.
15304         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15305         * stdlib/strtol_l.c (__strtol_l): Likewise.
15306         * stdlib/tst-strtod.c (main): Likewise.
15307         * stdlib/tst-strtol.c (main): Likewise.
15308         * stdlib/tst-strtoll.c (main): Likewise.
15309         * string/bits/string2.h (__strcmp_cc): Likewise.
15310         (__strcmp_cg): Likewise.
15311         (__strcspn_c1): Likewise.
15312         (__strcspn_c2): Likewise.
15313         (__strcspn_c3): Likewise.
15314         (__strspn_c1): Likewise.
15315         (__strspn_c2): Likewise.
15316         (__strspn_c3): Likewise.
15317         (__strsep_1c): Likewise.
15318         (__strsep_2c): Likewise.
15319         (__strsep_3c): Likewise.
15320         * string/memccpy.c (__memccpy): Likewise.
15321         * string/stpcpy.c (__stpcpy): Likewise.
15322         * string/strcmp.c (strcmp): Likewise.
15323         * string/strrchr.c (strrchr): Likewise.
15324         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
15325         Likewise.
15326         * sysdeps/mach/hurd/getcwd.c
15327         (_hurd_canonicalize_directory_name_internal): Likewise.
15328         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
15329         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
15330         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
15331         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
15332         Likewise, in both definitions.
15333         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
15334         definitions.
15335         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
15336         64] (__bswap_64): Likewise.
15337         * time/test_time.c (main): Likewise.
15338         * time/tzfile.c (__tzfile_read): Likewise.
15339         (__tzfile_compute): Likewise.
15340         * time/tzset.c (__tzset_parse_tz): Likewise.
15341         (tzset_internal): Likewise.
15342         (compute_change): Likewise.
15343         * wcsmbs/wcscat.c (__wcscat): Likewise.
15344         * wcsmbs/wcschr.c (wcschr): Likewise.
15345         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15346         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15347         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15348         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
15349         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15350         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15351         * wcsmbs/wmemchr.c (wmemchr): Likewise.
15352         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15353         * wcsmbs/wmemset.c (wmemset): Likewise.
15354
15355 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
15356
15357         * scripts/config.guess: Update to version 2013-05-16.
15358         * scripts/config.sub: Update to version 2013-04-24.
15359         * scripts/install-sh: Update to version 2011-11-20.07.
15360         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
15361         * scripts/move-if-change: Update to version 2012-01-06 07:23.
15362
15363 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
15364
15365         * debug/fgetws_u_chk.c: Fix leading whitespaces.
15366         * elf/sln.c: Likewise.
15367         * hurd/hurd/ioctl.h: Likewise.
15368         * hurd/hurdmalloc.c: Likewise.
15369         * hurd/xattr.c: Likewise.
15370         * include/shlib-compat.h: Likewise.
15371         * inet/ruserpass.c: Likewise.
15372         * libio/iofgets_u.c: Likewise.
15373         * libio/iofgetws_u.c: Likewise.
15374         * locale/programs/ld-identification.c: Likewise.
15375         * locale/programs/ld-time.c: Likewise.
15376         * mach/msg-destroy.c: Likewise.
15377         * nss/nss_files/files-netgrp.c: Likewise.
15378         * resolv/res_data.c: Likewise.
15379         * soft-fp/op-1.h: Likewise.
15380         * soft-fp/op-2.h: Likewise.
15381         * soft-fp/op-4.h: Likewise.
15382         * soft-fp/op-common.h: Likewise.
15383         * stdio-common/printf_fphex.c: Likewise.
15384         * stdlib/strtod_l.c: Likewise.
15385         * sunrpc/rpc/clnt.h: Likewise.
15386         * sysdeps/generic/framestate.c: Likewise.
15387         * sysdeps/i386/bsd-_setjmp.S: Likewise.
15388         * sysdeps/i386/bsd-setjmp.S: Likewise.
15389         * sysdeps/i386/__longjmp.S: Likewise.
15390         * sysdeps/i386/setjmp.S: Likewise.
15391         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15392         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15393         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15394         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15395         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15396         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
15397         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15398         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15399         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15400         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15401         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15402         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15403         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15404         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15405         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15406         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15407         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15408         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
15409         * sysdeps/ieee754/support.c: Likewise.
15410         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15411         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
15412         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
15413         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
15414         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
15415         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
15416         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
15417         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
15418         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
15419         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
15420         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
15421         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
15422         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
15423         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
15424         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
15425         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
15426         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
15427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
15428
15429 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
15430
15431         * posix/transbug.c: Remove executable mode.
15432
15433 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
15434
15435         * crypt/speeds.c: Remove trailing whitespace.
15436         * dlfcn/default.c: Likewise.
15437         * elf/ifuncdep2.c: Likewise.
15438         * elf/ifuncmain1.c: Likewise.
15439         * elf/ifuncmain1vis.c: Likewise.
15440         * elf/testobj.h: Likewise.
15441         * elf/tst-stackguard1.c: Likewise.
15442         * gmon/sys/gmon.h: Likewise.
15443         * hurd/hurdmsg.c: Likewise.
15444         * hurd/new-fd.c: Likewise.
15445         * hurd/ports-get.c: Likewise.
15446         * iconvdata/ibm1008_420.c: Likewise.
15447         * inet/tst-getni1.c: Likewise.
15448         * inet/tst-getni2.c: Likewise.
15449         * libio/ioungetc.c: Likewise.
15450         * libio/wfiledoalloc.c: Likewise.
15451         * manual/libm-err-tab.pl: Likewise.
15452         * math/w_dremf.c: Likewise.
15453         * misc/ftruncate.c: Likewise.
15454         * posix/bug-glob2.c: Likewise.
15455         * posix/tst-pcre.c: Likewise.
15456         * posix/wait4.c: Likewise.
15457         * resolv/README: Likewise.
15458         * resolv/res_debug.h: Likewise.
15459         * resolv/tst-inet_ntop.c: Likewise.
15460         * setjmp/bug269-setjmp.c: Likewise.
15461         * soft-fp/extended.h: Likewise.
15462         * soft-fp/op-1.h: Likewise.
15463         * soft-fp/op-2.h: Likewise.
15464         * soft-fp/op-4.h: Likewise.
15465         * soft-fp/op-8.h: Likewise.
15466         * soft-fp/testit.c: Likewise.
15467         * stdio-common/bug16.c: Likewise.
15468         * stdlib/random.c: Likewise.
15469         * sunrpc/rpcsvc/rquota.x: Likewise.
15470         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
15471         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15472         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15473         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15474         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15475         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15476         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15477         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15478         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15479         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15480         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15481         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15482         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15483         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15484         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15485         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15486         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15487         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15488         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
15489         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15490         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15491         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15492         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
15493         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
15494         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15495         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15496         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
15497         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15498         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15499         * sysdeps/ieee754/s_lib_version.c: Likewise.
15500         * sysdeps/mach/hurd/check_fds.c: Likewise.
15501         * sysdeps/mach/hurd/getsockname.c: Likewise.
15502         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
15503         * sysdeps/mach/hurd/recvfrom.c: Likewise.
15504         * sysdeps/powerpc/bits/link.h: Likewise.
15505         * sysdeps/powerpc/dl-procinfo.c: Likewise.
15506         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
15507         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
15508         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
15509         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15510         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
15511         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
15512         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15513         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
15514         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15515         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
15516         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
15517         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
15518         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15519         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15520         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15521         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
15522         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
15523         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15524         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15525         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15526         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
15527         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15528         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
15529         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
15530         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
15531         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
15532         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15533         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15534         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
15535         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
15536         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
15537         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15538         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15539         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
15540         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15541         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
15542         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
15543         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
15544         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
15545         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
15546         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
15547         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
15548         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
15549         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
15550         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
15551         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
15552         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
15553         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
15554         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
15555         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15556         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15557         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15558         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15559         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
15560         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
15561         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
15562         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15563         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
15564         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
15565         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
15566         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
15567         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
15568         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15569         * sysdeps/powerpc/sysdep.h: Likewise.
15570         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
15571         * sysdeps/s390/s390-64/sub_n.S: Likewise.
15572         * sysdeps/sh/dl-trampoline.S: Likewise.
15573         * sysdeps/sh/memset.S: Likewise.
15574         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
15575         * sysdeps/sh/strlen.S: Likewise.
15576         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
15577         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
15578         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
15579         * sysdeps/sparc/sparc32/rem.S: Likewise.
15580         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
15581         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
15582         * sysdeps/sparc/sparc32/strchr.S: Likewise.
15583         * sysdeps/sparc/sparc32/udiv.S: Likewise.
15584         * sysdeps/sparc/sparc32/urem.S: Likewise.
15585         * sysdeps/sparc/sparc64/add_n.S: Likewise.
15586         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15587         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
15588         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
15589         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
15590         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
15591         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
15592         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
15593         * sysdeps/unix/bsd/times.c: Likewise.
15594         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
15595         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
15596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
15597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
15598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
15599         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
15600         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
15601         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
15602         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
15603         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
15604         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
15605         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
15606         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
15607         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
15608         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
15609         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
15610         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
15611         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15612         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
15613         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
15614         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
15615         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
15616         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
15617         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
15618         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
15619         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
15620         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
15621         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
15622         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
15623         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
15624         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
15625         * sysdeps/x86_64/strcspn.S: Likewise.
15626
15627 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15628
15629         * locale/C-translit.h: Revert #include <stdint.h> because this is a
15630         generated file.  Regenerate properly from gen-translit.pl.
15631         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
15632         locale/C-translit.h.
15633
15634 2013-06-05  Andreas Schwab  <schwab@suse.de>
15635
15636         [BZ #15100]
15637         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
15638         week as 6 instead of -1.
15639         * time/tst-strptime.c (day_tests): Add test case.
15640
15641 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15642
15643         * sysdeps/generic/math_private.h
15644         (libc_feholdexcept_setround_53bit): Replace with
15645         libc_feholdsetround_53bit.
15646         (libc_feupdateenv_53bit): Replace with
15647         libc_feresetround_53bit.
15648         (SET_RESTORE_ROUND_53BIT): Adjust.
15649
15650 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
15651
15652         * string/test-strchrnul.c: Add copyright header.
15653
15654         * posix/tst-getaddrinfo4.c: Increase test timeout.
15655
15656 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
15657
15658         [BZ #15536]
15659         * math/libm-test.inc (MAX_EXP): Remove
15660         (MIN_EXP): Define.
15661         (ulp): Use MIN_EXP - MANT_DIG.
15662         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
15663
15664 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
15665
15666         * po/be.po: Revert last change.
15667         * po/zh_CN.po: Likewise.
15668         * po/header.pot: Likewise.
15669
15670 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
15671
15672         * Makefile ($(common-objpfx)linkobj/libc.so): Define
15673         link-libc-deps to empty as target-specific variable.
15674         * Makerules (link-libc-args): New variable.
15675         (libc-for-link): Likewise.
15676         (link-libc-deps): Likewise.
15677         (lib%.so): Depend on $(link-libc-deps).  Link with
15678         $(link-libc-args).
15679         (build-module): Link with $(link-libc-args).
15680         (build-module-asneeded): Likewise.
15681         (build-module-helper-objlist): Filter out $(link-libc-deps) from
15682         list of objects.
15683         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
15684         target-specific variable.
15685         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
15686         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
15687         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
15688         libc.
15689         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
15690         libc and ld.so.
15691         ($(objpfx)libpcprofile.so): Likewise.
15692         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
15693         libc_nonshared.a.
15694         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
15695         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
15696         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
15697         $(link-libc-deps).
15698         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
15699         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
15700         * login/Makefile ($(objpfx)libutil.so): Likewise.
15701         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
15702         * math/Makefile ($(objpfx)libm.so): Likewise.
15703         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
15704         $(objpfx)libnsl.so): Define libc-for-link as target-specific
15705         variable instead of depending directly on libc.
15706         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
15707         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
15708         $(link-libc-deps).
15709         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
15710         libc.
15711         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
15712         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
15713         ($(objpfx)libanl.so): Likewise.
15714         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
15715         ld.so.
15716         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
15717         $(link-libc-deps).
15718         * sysdeps/i386/fpu/Makefile: Remove file.
15719         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
15720         ($(objpfx)libm.so): Remove dependency on ld.so.
15721
15722 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
15723
15724         [BZ # 15553]
15725         * nis/yp_xdr.c (XDRMAXNAME): Define.
15726         (XDRMAXRECORD): Define.
15727         (xdr_domainname): Use XDRMAXNAME.
15728         (xdr_mapname): Likewise.
15729         (xdr_peername): Likewise.
15730         (xdr_keydat): Use XDRMAXRECORD.
15731         (xdr_valdat): Likewise.
15732
15733 2013-05-30  Jeff Law  <law@redhat.com>
15734
15735         [BZ #14256]
15736         * manual/errno.texi (ESTALE): Update to account for more than
15737         just NFS file systems.
15738         * sysdeps/gnu/errlist.c: Regenerated.
15739
15740 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15741
15742         [BZ #15465]
15743         * elf/Makefile (tests): Add tst-null-argv.
15744         (modules-names):  Add tst-null-argv-lib.
15745         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
15746         (tst-null-argv-ENV): Set environment for tst-null-argv.
15747         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
15748         (RTLD_PROGNAME): New macro.
15749         * elf/tst-null-argv.c: New test case.
15750         * elf/tst-null-argv-lib.c: Library for test case.
15751         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
15752         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
15753         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
15754         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
15755         * elf/dl-init.c (call_init): Likewise.
15756         (_dl_init): Likewise.
15757         * elf/dl-load.c (print_search_path): Likewise.
15758         (_dl_map_object): Likewise.
15759         * elf/dl-lookup.c (do_lookup_x): Likewise.
15760         (add_dependency): Likewise.
15761         (_dl_lookup_symbol_x): Likewise.
15762         (_dl_debug_bindings): Likewise.
15763         * elf/dl-open.c (_dl_show_scope): Likewise.
15764         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
15765         * elf/dl-version.c (match_symbol): Likewise.
15766         (_dl_check_map_versions): Likewise.
15767         * elf/rtld.c (dl_main): Likewise.
15768         (print_unresolved): Use RTLD_PROGNAME.
15769         (print_missing_version): Likewise.
15770         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15771         (elf_machine_rela): Likewise.
15772         * sysdeps/powerpc/powerpc32/dl-machine.c
15773         (__process_machine_rela): Likewise.
15774         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15775         Likewise.
15776         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15777         Likewise.
15778         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15779         Likewise.
15780         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15781         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15782         Likewise.
15783         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15784         Likewise.
15785         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15786
15787 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
15788
15789         * po/be.po: Add descriptive title.
15790         * po/zh_CN.po: Likewise.
15791         * po/header.pot: Likewise.
15792
15793 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
15794
15795         * locale/programs/locarchive.c (create_archive): Inlucde fname in
15796         error message.
15797         (enlarge_archive): Likewise.
15798
15799 2013-05-28  Ben North  <ben@redfrontdoor.org>
15800
15801         * manual/arith.texi (frexp): It is the magnitude of the return
15802         value which lies in [0.5, 1), not the return value itself.
15803
15804 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15805
15806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15807
15808 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
15809
15810         * stdio-common/bug26.c (main): Correct fscanf template.
15811
15812         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
15813         declare _dl_skip_args.
15814
15815         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
15816         Don't declare.
15817
15818         * manual/platform.texi: Add missing @end deftypefun.
15819
15820 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
15821
15822         [BZ #15529]
15823         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
15824         bit of mantissa of 2^16382.
15825         * math/libm-test.inc (hypot_test_data): Add more tests.
15826
15827         * math/libm-test.inc: Add drem and pow10 to list of tested
15828         functions.
15829         (pow10_test): New function.
15830         (drem_test): Likewise.
15831         (drem_test_tonearest): Likewise.
15832         (drem_test_towardzero): Likewise.
15833         (drem_test_downward): Likewise.
15834         (drem_test_upward): Likewise.
15835         (main): Call the new functions.
15836
15837         * math/libm-test.inc (finite_test_data): Remove.
15838         (finite_test): Run tests from isfinite_test_data.
15839         (gamma_test_data): Remove.
15840         (gamma_test): Run tests from lgamma_test_data.
15841         * sysdeps/i386/fpu/libm-test-ulps: Update.
15842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15843
15844 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15845
15846         * manual/platform.texi: Add PowerPC PPR function set documentation.
15847         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
15848         implementation.
15849
15850 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
15851
15852         * math/libm-test.inc (MAX_EXP): Define.
15853         (ULPDIFF): Define.
15854         (ulp): New function.
15855         (check_float_internal): Use ULPDIFF.
15856         (cpow_test): Disable failing test.
15857         (check_ulp): Test ulp() implemetnation.
15858         (main): Call check_ulp before starting tests.
15859
15860 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
15861
15862         * math/gen-libm-test.pl (generate_testfile): Do not handle
15863         START_DATA and END_DATA.
15864         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
15865         END_DATA.
15866         (acos_tonearest_test_data): Likewise.
15867         (acos_towardzero_test_data): Likewise.
15868         (acos_downward_test_data): Likewise.
15869         (acos_upward_test_data): Likewise.
15870         (acosh_test_data): Likewise.
15871         (asin_test_data): Likewise.
15872         (asin_tonearest_test_data): Likewise.
15873         (asin_towardzero_test_data): Likewise.
15874         (asin_downward_test_data): Likewise.
15875         (asin_upward_test_data): Likewise.
15876         (asinh_test_data): Likewise.
15877         (atan_test_data): Likewise.
15878         (atanh_test_data): Likewise.
15879         (atan2_test_data): Likewise.
15880         (cabs_test_data): Likewise.
15881         (cacos_test_data): Likewise.
15882         (cacosh_test_data): Likewise.
15883         (carg_test_data): Likewise.
15884         (casin_test_data): Likewise.
15885         (casinh_test_data): Likewise.
15886         (catan_test_data): Likewise.
15887         (catanh_test_data): Likewise.
15888         (cbrt_test_data): Likewise.
15889         (ccos_test_data): Likewise.
15890         (ccosh_test_data): Likewise.
15891         (ceil_test_data): Likewise.
15892         (cexp_test_data): Likewise.
15893         (cimag_test_data): Likewise.
15894         (clog_test_data): Likewise.
15895         (clog10_test_data): Likewise.
15896         (conj_test_data): Likewise.
15897         (copysign_test_data): Likewise.
15898         (cos_test_data): Likewise.
15899         (cos_tonearest_test_data): Likewise.
15900         (cos_towardzero_test_data): Likewise.
15901         (cos_downward_test_data): Likewise.
15902         (cos_upward_test_data): Likewise.
15903         (cosh_test_data): Likewise.
15904         (cosh_tonearest_test_data): Likewise.
15905         (cosh_towardzero_test_data): Likewise.
15906         (cosh_downward_test_data): Likewise.
15907         (cosh_upward_test_data): Likewise.
15908         (cpow_test_data): Likewise.
15909         (cproj_test_data): Likewise.
15910         (creal_test_data): Likewise.
15911         (csin_test_data): Likewise.
15912         (csinh_test_data): Likewise.
15913         (csqrt_test_data): Likewise.
15914         (ctan_test_data): Likewise.
15915         (ctan_tonearest_test_data): Likewise.
15916         (ctan_towardzero_test_data): Likewise.
15917         (ctan_downward_test_data): Likewise.
15918         (ctan_upward_test_data): Likewise.
15919         (ctanh_test_data): Likewise.
15920         (ctanh_tonearest_test_data): Likewise.
15921         (ctanh_towardzero_test_data): Likewise.
15922         (ctanh_downward_test_data): Likewise.
15923         (ctanh_upward_test_data): Likewise.
15924         (erf_test_data): Likewise.
15925         (erfc_test_data): Likewise.
15926         (exp_test_data): Likewise.
15927         (exp_tonearest_test_data): Likewise.
15928         (exp_towardzero_test_data): Likewise.
15929         (exp_downward_test_data): Likewise.
15930         (exp_upward_test_data): Likewise.
15931         (exp10_test_data): Likewise.
15932         (exp2_test_data): Likewise.
15933         (expm1_test_data): Likewise.
15934         (fabs_test_data): Likewise.
15935         (fdim_test_data): Likewise.
15936         (finite_test_data): Likewise.
15937         (floor_test_data): Likewise.
15938         (fma_test_data): Likewise.
15939         (fma_towardzero_test_data): Likewise.
15940         (fma_downward_test_data): Likewise.
15941         (fma_upward_test_data): Likewise.
15942         (fmax_test_data): Likewise.
15943         (fmin_test_data): Likewise.
15944         (fmod_test_data): Likewise.
15945         (fpclassify_test_data): Likewise.
15946         (frexp_test_data): Likewise.
15947         (gamma_test_data): Likewise.
15948         (hypot_test_data): Likewise.
15949         (ilogb_test_data): Likewise.
15950         (isfinite_test_data): Likewise.
15951         (isgreater_test_data): Likewise.
15952         (isgreaterequal_test_data): Likewise.
15953         (isinf_test_data): Likewise.
15954         (isless_test_data): Likewise.
15955         (islessequal_test_data): Likewise.
15956         (islessgreater_test_data): Likewise.
15957         (isnan_test_data): Likewise.
15958         (isnormal_test_data): Likewise.
15959         (issignaling_test_data): Likewise.
15960         (isunordered_test_data): Likewise.
15961         (j0_test_data): Likewise.
15962         (j1_test_data): Likewise.
15963         (jn_test_data): Likewise.
15964         (ldexp_test_data): Likewise.
15965         (lgamma_test_data): Likewise.
15966         (lrint_test_data): Likewise.
15967         (lrint_tonearest_test_data): Likewise.
15968         (lrint_towardzero_test_data): Likewise.
15969         (lrint_downward_test_data): Likewise.
15970         (lrint_upward_test_data): Likewise.
15971         (llrint_test_data): Likewise.
15972         (llrint_tonearest_test_data): Likewise.
15973         (llrint_towardzero_test_data): Likewise.
15974         (llrint_downward_test_data): Likewise.
15975         (llrint_upward_test_data): Likewise.
15976         (log_test_data): Likewise.
15977         (log10_test_data): Likewise.
15978         (log1p_test_data): Likewise.
15979         (log2_test_data): Likewise.
15980         (logb_test_data): Likewise.
15981         (logb_downward_test_data): Likewise.
15982         (lround_test_data): Likewise.
15983         (llround_test_data): Likewise.
15984         (modf_test_data): Likewise.
15985         (nearbyint_test_data): Likewise.
15986         (nextafter_test_data): Likewise.
15987         (nexttoward_test_data): Likewise.
15988         (pow_test_data): Likewise.
15989         (pow_tonearest_test_data): Likewise.
15990         (pow_towardzero_test_data): Likewise.
15991         (pow_downward_test_data): Likewise.
15992         (pow_upward_test_data): Likewise.
15993         (remainder_test_data): Likewise.
15994         (remainder_tonearest_test_data): Likewise.
15995         (remainder_towardzero_test_data): Likewise.
15996         (remainder_downward_test_data): Likewise.
15997         (remainder_upward_test_data): Likewise.
15998         (remquo_test_data): Likewise.
15999         (rint_test_data): Likewise.
16000         (rint_tonearest_test_data): Likewise.
16001         (rint_towardzero_test_data): Likewise.
16002         (rint_downward_test_data): Likewise.
16003         (rint_upward_test_data): Likewise.
16004         (round_test_data): Likewise.
16005         (scalb_test_data): Likewise.
16006         (scalbn_test_data): Likewise.
16007         (scalbln_test_data): Likewise.
16008         (signbit_test_data): Likewise.
16009         (sin_test_data): Likewise.
16010         (sin_tonearest_test_data): Likewise.
16011         (sin_towardzero_test_data): Likewise.
16012         (sin_downward_test_data): Likewise.
16013         (sin_upward_test_data): Likewise.
16014         (sincos_test_data): Likewise.
16015         (sinh_test_data): Likewise.
16016         (sinh_tonearest_test_data): Likewise.
16017         (sinh_towardzero_test_data): Likewise.
16018         (sinh_downward_test_data): Likewise.
16019         (sinh_upward_test_data): Likewise.
16020         (sqrt_test_data): Likewise.
16021         (tan_test_data): Likewise.
16022         (tan_tonearest_test_data): Likewise.
16023         (tan_towardzero_test_data): Likewise.
16024         (tan_downward_test_data): Likewise.
16025         (tan_upward_test_data): Likewise.
16026         (tanh_test_data): Likewise.
16027         (tgamma_test_data): Likewise.
16028         (trunc_test_data): Likewise.
16029         (y0_test_data): Likewise.
16030         (y1_test_data): Likewise.
16031         (yn_test_data): Likewise.
16032         (significand_test_data): Likewise.
16033
16034         * math/gen-libm-test.pl (@functions): Remove variable.
16035         (generate_testfile): Don't handle START and END lines.
16036         * math/libm-test.inc (START): New macro.
16037         (END): Likewise.
16038         (END_COMPLEX): Likewise.
16039         (acos_test): Use END macro without arguments.
16040         (acos_test_tonearest): Likewise.
16041         (acos_test_towardzero): Likewise.
16042         (acos_test_downward): Likewise.
16043         (acos_test_upward): Likewise.
16044         (acosh_test): Likewise.
16045         (asin_test): Likewise.
16046         (asin_test_tonearest): Likewise.
16047         (asin_test_towardzero): Likewise.
16048         (asin_test_downward): Likewise.
16049         (asin_test_upward): Likewise.
16050         (asinh_test): Likewise.
16051         (atan_test): Likewise.
16052         (atanh_test): Likewise.
16053         (atan2_test): Likewise.
16054         (cabs_test): Likewise.
16055         (cacos_test): Use END_COMPLEX macro without arguments.
16056         (cacosh_test): Likewise.
16057         (carg_test): Use END macro without arguments.
16058         (casin_test): Use END_COMPLEX macro without arguments.
16059         (casinh_test): Likewise.
16060         (catan_test): Likewise.
16061         (catanh_test): Likewise.
16062         (cbrt_test): Use END macro without arguments.
16063         (ccos_test): Use END_COMPLEX macro without arguments.
16064         (ccosh_test): Likewise.
16065         (ceil_test): Use END macro without arguments.
16066         (cexp_test): Use END_COMPLEX macro without arguments.
16067         (cimag_test): Use END macro without arguments.
16068         (clog_test): Use END_COMPLEX macro without arguments.
16069         (clog10_test): Likewise.
16070         (conj_test): Likewise.
16071         (copysign_test): Use END macro without arguments.
16072         (cos_test): Likewise.
16073         (cos_test_tonearest): Likewise.
16074         (cos_test_towardzero): Likewise.
16075         (cos_test_downward): Likewise.
16076         (cos_test_upward): Likewise.
16077         (cosh_test): Likewise.
16078         (cosh_test_tonearest): Likewise.
16079         (cosh_test_towardzero): Likewise.
16080         (cosh_test_downward): Likewise.
16081         (cosh_test_upward): Likewise.
16082         (cpow_test): Use END_COMPLEX macro without arguments.
16083         (cproj_test): Likewise.
16084         (creal_test): Use END macro without arguments.
16085         (csin_test): Use END_COMPLEX macro without arguments.
16086         (csinh_test): Likewise.
16087         (csqrt_test): Likewise.
16088         (ctan_test): Likewise.
16089         (ctan_test_tonearest): Likewise.
16090         (ctan_test_towardzero): Likewise.
16091         (ctan_test_downward): Likewise.
16092         (ctan_test_upward): Likewise.
16093         (ctanh_test): Likewise.
16094         (ctanh_test_tonearest): Likewise.
16095         (ctanh_test_towardzero): Likewise.
16096         (ctanh_test_downward): Likewise.
16097         (ctanh_test_upward): Likewise.
16098         (erf_test): Use END macro without arguments.
16099         (erfc_test): Likewise.
16100         (exp_test): Likewise.
16101         (exp_test_tonearest): Likewise.
16102         (exp_test_towardzero): Likewise.
16103         (exp_test_downward): Likewise.
16104         (exp_test_upward): Likewise.
16105         (exp10_test): Likewise.
16106         (exp2_test): Likewise.
16107         (expm1_test): Likewise.
16108         (fabs_test): Likewise.
16109         (fdim_test): Likewise.
16110         (finite_test): Likewise.
16111         (floor_test): Likewise.
16112         (fma_test): Likewise.
16113         (fma_test_towardzero): Likewise.
16114         (fma_test_downward): Likewise.
16115         (fma_test_upward): Likewise.
16116         (fmax_test): Likewise.
16117         (fmin_test): Likewise.
16118         (fmod_test): Likewise.
16119         (fpclassify_test): Likewise.
16120         (frexp_test): Likewise.
16121         (gamma_test): Likewise.
16122         (hypot_test): Likewise.
16123         (ilogb_test): Likewise.
16124         (isfinite_test): Likewise.
16125         (isgreater_test): Likewise.
16126         (isgreaterequal_test): Likewise.
16127         (isinf_test): Likewise.
16128         (isless_test): Likewise.
16129         (islessequal_test): Likewise.
16130         (islessgreater_test): Likewise.
16131         (isnan_test): Likewise.
16132         (isnormal_test): Likewise.
16133         (issignaling_test): Likewise.
16134         (isunordered_test): Likewise.
16135         (j0_test): Likewise.
16136         (j1_test): Likewise.
16137         (jn_test): Likewise.
16138         (ldexp_test): Likewise.
16139         (lgamma_test): Likewise.
16140         (lrint_test): Likewise.
16141         (lrint_test_tonearest): Likewise.
16142         (lrint_test_towardzero): Likewise.
16143         (lrint_test_downward): Likewise.
16144         (lrint_test_upward): Likewise.
16145         (llrint_test): Likewise.
16146         (llrint_test_tonearest): Likewise.
16147         (llrint_test_towardzero): Likewise.
16148         (llrint_test_downward): Likewise.
16149         (llrint_test_upward): Likewise.
16150         (log_test): Likewise.
16151         (log10_test): Likewise.
16152         (log1p_test): Likewise.
16153         (log2_test): Likewise.
16154         (logb_test): Likewise.
16155         (logb_test_downward): Likewise.
16156         (lround_test): Likewise.
16157         (llround_test): Likewise.
16158         (modf_test): Likewise.
16159         (nearbyint_test): Likewise.
16160         (nextafter_test): Likewise.
16161         (nexttoward_test): Likewise.
16162         (pow_test): Likewise.
16163         (pow_test_tonearest): Likewise.
16164         (pow_test_towardzero): Likewise.
16165         (pow_test_downward): Likewise.
16166         (pow_test_upward): Likewise.
16167         (remainder_test): Likewise.
16168         (remainder_test_tonearest): Likewise.
16169         (remainder_test_towardzero): Likewise.
16170         (remainder_test_downward): Likewise.
16171         (remainder_test_upward): Likewise.
16172         (remquo_test): Likewise.
16173         (rint_test): Likewise.
16174         (rint_test_tonearest): Likewise.
16175         (rint_test_towardzero): Likewise.
16176         (rint_test_downward): Likewise.
16177         (rint_test_upward): Likewise.
16178         (round_test): Likewise.
16179         (scalb_test): Likewise.
16180         (scalbn_test): Likewise.
16181         (scalbln_test): Likewise.
16182         (signbit_test): Likewise.
16183         (sin_test): Likewise.
16184         (sin_test_tonearest): Likewise.
16185         (sin_test_towardzero): Likewise.
16186         (sin_test_downward): Likewise.
16187         (sin_test_upward): Likewise.
16188         (sincos_test): Likewise.
16189         (sinh_test): Likewise.
16190         (sinh_test_tonearest): Likewise.
16191         (sinh_test_towardzero): Likewise.
16192         (sinh_test_downward): Likewise.
16193         (sinh_test_upward): Likewise.
16194         (sqrt_test): Likewise.
16195         (tan_test): Likewise.
16196         (tan_test_tonearest): Likewise.
16197         (tan_test_towardzero): Likewise.
16198         (tan_test_downward): Likewise.
16199         (tan_test_upward): Likewise.
16200         (tanh_test): Likewise.
16201         (tgamma_test): Likewise.
16202         (trunc_test): Likewise.
16203         (y0_test): Likewise.
16204         (y1_test): Likewise.
16205         (yn_test): Likewise.
16206         (significand_test): Likewise.
16207
16208 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
16209
16210         [BZ #15381]
16211         * libio/genops.c (_IO_no_init): Initialize wide struct info.
16212
16213 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
16214
16215         [BZ #14894]
16216         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
16217         __ppc_mdoio and __ppc_mdoom.
16218         * manual/platform.texi: Document new functions __ppc_yield,
16219         __ppc_mdoio and __ppc_mdoom.
16220
16221 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
16222
16223         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
16224         (main): Mention "tls" pseudo-hwcap is legacy.
16225         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
16226
16227 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16228
16229         * math/gen-libm-test.pl (parse_args): Output only string of
16230         arguments as text for test name, not full call or descriptions of
16231         tests for extra outputs.
16232         (generate_testfile): Do not pass function name to parse_args.
16233         Generate this_func variable from START.
16234         * math/libm-test.inc (struct test_f_f_data): Rename test_name
16235         field to arg_str.
16236         (struct test_ff_f_data): Likewise.
16237         (test_ff_f_data_nexttoward): Likewise.
16238         (struct test_fi_f_data): Likewise.
16239         (struct test_fl_f_data): Likewise.
16240         (struct test_if_f_data): Likewise.
16241         (struct test_fff_f_data): Likewise.
16242         (struct test_c_f_data): Likewise.
16243         (struct test_f_f1_data): Likewise.  Remove field extra_name.
16244         (struct test_fF_f1_data): Likewise.
16245         (struct test_ffI_f1_data): Likewise.
16246         (struct test_c_c_data): Rename test_name field to arg_str.
16247         (struct test_cc_c_data): Likewise.
16248         (struct test_f_i_data): Likewise.
16249         (struct test_ff_i_data): Likewise.
16250         (struct test_f_l_data): Likewise.
16251         (struct test_f_L_data): Likewise.
16252         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
16253         and extra2_name.
16254         (COMMON_TEST_SETUP): New macro.
16255         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
16256         (COMMON_TEST_CLEANUP): Likewise.
16257         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
16258         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
16259         macros.
16260         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
16261         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
16262         macros.
16263         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
16264         (RUN_TEST_fff_f): Take argument string.  Call new setup and
16265         cleanup macros.
16266         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
16267         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
16268         macros.
16269         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
16270         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
16271         macros.
16272         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16273         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
16274         cleanup macros.
16275         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16276         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
16277         cleanup macros.
16278         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16279         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
16280         cleanup macros.
16281         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16282         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
16283         macros.
16284         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
16285         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
16286         macros.
16287         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
16288         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
16289         macros.
16290         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
16291         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
16292         cleanup macros.
16293         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
16294         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
16295         cleanup macros.
16296         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
16297         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
16298         macros.
16299         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
16300         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
16301         cleanup macros.
16302         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
16303         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
16304         macros.
16305         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
16306         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
16307         macros.
16308         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
16309         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
16310         cleanup macros.
16311         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
16312
16313 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16314
16315         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
16316         to _sifields.sigfault.
16317         (si_addr_lsb): Define new macro.
16318         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
16319         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16320         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
16321
16322 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
16323
16324         [BZ #15441]
16325         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
16326         returns -1.
16327         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
16328         null return -1.
16329         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
16330         loading the domain.
16331
16332 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16333
16334         * math/gen-libm-test.pl (parse_args): Do not include expected
16335         result in test name.
16336         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
16337         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16338         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16339         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16340         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16341         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16342
16343 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16344
16345         * benchtests/Makefile: Sort function entries.
16346
16347         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
16348         tanh, asinh, acosh, atanh.
16349         * benchtests/acos-inputs: New file.
16350         * benchtests/acosh-inputs: New file.
16351         * benchtests/asin-inputs: New file.
16352         * benchtests/asinh-inputs: New file.
16353         * benchtests/atanh-inputs: New file.
16354         * benchtests/cosh-inputs: New file.
16355         * benchtests/log-inputs: New file.
16356         * benchtests/sinh-inputs: New file.
16357         * benchtests/tanh-inputs: New file.
16358
16359 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
16360
16361         [BZ #15339]
16362         * posix/tst-getaddrinfo4.c: New test.
16363         * posix/Makefile (tests): Add it.
16364
16365 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16366
16367         [BZ #15339]
16368         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
16369         when no services were used.
16370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
16371         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
16372
16373 2013-05-21  Andreas Schwab  <schwab@suse.de>
16374
16375         [BZ #15014]
16376         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
16377         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
16378         successful.
16379         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
16380         redundant variable declarations and reallocation of buffer when
16381         parsing as IPv6 address.  Always set NSS status when called from
16382         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
16383         buffer too small.  Correct computation of needed size.
16384         * nss/Makefile (tests): Add test-digits-dots.
16385         * nss/test-digits-dots.c: New test.
16386
16387 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16388
16389         * benchtests/Makefile: Remove instructions for adding
16390         benchmark tests.
16391         * benchtests/README: New file to explain how to execute and
16392         enhance the benchmark tests.
16393
16394 2013-05-21  Andreas Schwab  <schwab@suse.de>
16395
16396         [BZ #15493]
16397         * setjmp/Makefile (tests): Add tst-sigsetjmp.
16398         * setjmp/tst-sigsetjmp.c: New test.
16399
16400 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16401
16402         * sysdeps/x86_64/memset.S (memset): New implementation.
16403         (__bzero): Likewise.
16404         (__memset_tail): New function.
16405
16406 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16407
16408         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
16409         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
16410         __memcpy_sse2_unaligned ifunc selection.
16411         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
16412         Add memcpy-sse2-unaligned.S.
16413         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16414         Add: __memcpy_sse2_unaligned.
16415
16416 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
16417
16418         [BZ #15490]
16419         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
16420         math_force_eval before restoring floating-point envrionment.
16421         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
16422         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
16423         Likewise.
16424         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
16425         <math_private.h>.
16426         (__nearbyintl): Use math_force_eval before restoring
16427         floating-point environment.
16428         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
16429
16430         * math/gen-libm-test.pl (special_functions): Remove.
16431         (parse_args): Don't handle TEST_extra.  Handle functions with no
16432         return value.
16433         * math/libm-test.inc (struct test_sincos_data): Replace with
16434         struct test_fFF_11_data.
16435         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
16436         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
16437         (sincos_test_data): Change element type to struct
16438         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
16439         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
16440         RUN_TEST_LOOP_sincos.
16441         * math/README.libm-test: Don't mention special handling of
16442         individual functions.
16443         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
16444         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16445         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16446         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16447         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16449
16450         * math/gen-libm-test.pl (get_variable): Remove function.
16451         (parse_args): Don't show pointer parameters to call in test
16452         names.  Use "extra output N" in test names for extra outputs
16453         rather than naming variables.
16454
16455 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
16456
16457         [BZ #15488]
16458         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
16459         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
16460         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
16461         double tests.
16462         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
16463         disable.
16464         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
16465         check_long_double.
16466
16467         * math/gen-libm-test.pl (@tests): Remove variable.
16468         ($count): Likewise.
16469         (new_test): Remove function.
16470         (show_exceptions): New function.
16471         (special_functions): Use show_exceptions instead of new_test.
16472         (parse_args): Likewise.
16473         (generate_testfile): Pass only function name in generated call to
16474         print_max_error or print_complex_max_error.
16475         (get_ulps): Do not handle complex tests specially.
16476         (output_test): Rename to ...
16477         (get_all_ulps_for_test): ... this.  Return a string rather than
16478         printing to a file.  Require ulps to be present.
16479         (output_ulps): Generate arrays rather than #defines.
16480         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
16481         (struct ulp_data): New type.
16482         (BUILD_COMPLEX_ULP): Remove macro.
16483         (compare_ulp_data): New function.
16484         (find_ulps): Likewise.
16485         (find_test_ulps): Likewise.
16486         (find_function_ulps): Likewise.
16487         (find_complex_function_ulps): Likewise.
16488         (print_max_error): Determine allowed ulps using
16489         find_function_ulps.
16490         (print_complex_max_error): Determine allowed ulps using
16491         find_complex_function_ulps.
16492         (check_float_internal): Determine max ulps using find_test_ulps.
16493         (check_float): Do not take max_ulp parameter.  Update call to
16494         check_float_internal.
16495         (check_complex): Likewise.
16496         (check_int): Do not take max_ulp parameter.
16497         (check_long): Likewise.
16498         (check_bool): Likewise.
16499         (check_longlong): Likewise.
16500         (struct test_f_f_data): Remove max_ulp field.
16501         (struct test_ff_f_data): Likewise.
16502         (struct test_ff_f_data_nexttoward): Likewise.
16503         (struct test_fi_f_data): Likewise.
16504         (struct test_fl_f_data): Likewise.
16505         (struct test_if_f_data): Likewise.
16506         (struct test_fff_f_data): Likewise.
16507         (struct test_c_f_data): Likewise.
16508         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
16509         (struct test_fF_f1_data): Likewise.
16510         (struct test_ffI_f1_data): Likewise.
16511         (struct test_c_c_data): Remove max_ulp field.
16512         (struct test_cc_c_data): Likewise.
16513         (struct test_f_i_data): Likewise.
16514         (struct test_ff_i_data): Likewise.
16515         (struct test_f_l_data): Likewise.
16516         (struct test_f_L_data): Likewise.
16517         (struct test_sincos_data): Likewise.
16518         (RUN_TEST_f_f): Do not handle ulps.
16519         (RUN_TEST_LOOP_f_f): Likewise.
16520         (RUN_TEST_2_f): Likewise.
16521         (RUN_TEST_LOOP_2_f): Likewise.
16522         (RUN_TEST_fff_f): Likewise.
16523         (RUN_TEST_LOOP_fff_f): Likewise.
16524         (RUN_TEST_c_f): Likewise.
16525         (RUN_TEST_LOOP_c_f): Likewise.
16526         (RUN_TEST_f_f1): Likewise.
16527         (RUN_TEST_LOOP_f_f1): Likewise.
16528         (RUN_TEST_fF_f1): Likewise.
16529         (RUN_TEST_LOOP_fF_f1): Likewise.
16530         (RUN_TEST_fI_f1): Likewise.
16531         (RUN_TEST_LOOP_fI_f1): Likewise.
16532         (RUN_TEST_ffI_f1): Likewise.
16533         (RUN_TEST_LOOP_ffI_f1): Likewise.
16534         (RUN_TEST_c_c): Likewise.
16535         (RUN_TEST_LOOP_c_c): Likewise.
16536         (RUN_TEST_cc_c): Likewise.
16537         (RUN_TEST_LOOP_cc_c): Likewise.
16538         (RUN_TEST_f_i): Likewise.
16539         (RUN_TEST_LOOP_f_i): Likewise.
16540         (RUN_TEST_f_i_tg): Likewise.
16541         (RUN_TEST_LOOP_f_i_tg): Likewise.
16542         (RUN_TEST_ff_i_tg): Likewise.
16543         (RUN_TEST_LOOP_ff_i_tg): Likewise.
16544         (RUN_TEST_f_b): Likewise.
16545         (RUN_TEST_LOOP_f_b): Likewise.
16546         (RUN_TEST_f_b_tg): Likewise.
16547         (RUN_TEST_LOOP_f_b_tg): Likewise.
16548         (RUN_TEST_f_l): Likewise.
16549         (RUN_TEST_LOOP_f_l): Likewise.
16550         (RUN_TEST_f_L): Likewise.
16551         (RUN_TEST_LOOP_f_L): Likewise.
16552         (RUN_TEST_sincos): Likewise.
16553         (RUN_TEST_LOOP_sincos): Likewise.
16554
16555 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
16556
16557         [BZ #15480]
16558         [BZ #15485]
16559         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
16560         main case of finite arguments, set rounding mode to FE_TONEAREST
16561         and discard exceptions.
16562         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
16563         exceptions.
16564         (remainder_tonearest_test_data): New variable.
16565         (remainder_test_tonearest): New function.
16566         (remainder_towardzero_test_data): New variable.
16567         (remainder_test_towardzero): New function.
16568         (remainder_downward_test_data): New variable.
16569         (remainder_test_downward): New function.
16570         (remainder_upward_test_data): New variable.
16571         (remainder_test_upward): New function.
16572         (main): Call the new test functions.
16573
16574         * math/libm-test.inc (struct test_f_f1_data): Remove field
16575         extra_init.
16576         (struct test_fF_f1_data): Likewise.
16577         (struct test_ffI_f1_data): Likewise.
16578         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
16579         based on value of EXTRA_EXPECTED.
16580         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16581         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
16582         EXTRA_VAR based on value of EXTRA_EXPECTED.
16583         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16584         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
16585         EXTRA_VAR based on value of EXTRA_EXPECTED.
16586         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16587         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
16588         EXTRA_VAR based on value of EXTRA_EXPECTED.
16589         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16590         * math/gen-libm-test.pl (parse_args): Don't output initializers
16591         for extra output values.
16592
16593         * math/libm-test.inc (check_int): Expect result to be exactly
16594         equal to expected value and do not handle ulps.
16595         (check_long): Likewise.
16596         (check_longlong): Likewise.
16597
16598         * math/libm-test.inc (ceil_test_data): Test for "inexact"
16599         exceptions.
16600         (cimag_test_data): Likewise.
16601         (conj_test_data): Likewise.
16602         (copysign_test_data): Likewise.
16603         (cproj_test_data): Likewise.
16604         (creal_test_data): Likewise.
16605         (fabs_test_data): Likewise.
16606         (fdim_test_data): Likewise.
16607         (finite_test_data): Likewise.
16608         (floor_test_data): Likewise.
16609         (fmax_test_data): Likewise.
16610         (fmin_test_data): Likewise.
16611         (fmod_test_data): Likewise.
16612         (fpclassify_test_data): Likewise.
16613         (frexp_test_data): Likewise.
16614         (ilogb_test_data): Likewise.
16615         (isfinite_test_data): Likewise.
16616         (isgreater_test_data): Likewise.
16617         (isgreaterequal_test_data): Likewise.
16618         (isinf_test_data): Likewise.
16619         (isless_test_data): Likewise.
16620         (islessequal_test_data): Likewise.
16621         (islessgreater_test_data): Likewise.
16622         (isnan_test_data): Likewise.
16623         (isnormal_test_data): Likewise.
16624         (issignaling_test_data): Likewise.
16625         (isunordered_test_data): Likewise.
16626         (ldexp_test_data): Likewise.
16627         (lrint_test_data): Likewise.
16628         (lrint_test_data) [TEST_FLOAT]: Disable one test.
16629         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
16630         (lrint_tonearest_test_data): Test for "inexact" exceptions.
16631         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
16632         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
16633         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
16634         test input.
16635         (lrint_towardzero_test_data): Test for "inexact" exceptions.
16636         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
16637         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
16638         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
16639         that test input.
16640         (lrint_downward_test_data): Test for "inexact" exceptions.
16641         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
16642         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
16643         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
16644         test input.
16645         (lrint_upward_test_data): Test for "inexact" exceptions.
16646         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
16647         test input.
16648         (llrint_test_data): Test for "inexact" exceptions.
16649         (llrint_test_data) [TEST_FLOAT]: Disable one test.
16650         (llrint_tonearest_test_data): Test for "inexact" exceptions.
16651         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
16652         (llrint_towardzero_test_data): Test for "inexact" exceptions.
16653         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
16654         (llrint_downward_test_data): Test for "inexact" exceptions.
16655         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
16656         (llrint_upward_test_data): Test for "inexact" exceptions.
16657         (logb_test_data): Likewise.
16658         (logb_downward_test_data): Likewise.
16659         (nextafter_test_data): Likewise.
16660         (nexttoward_test_data): Likewise.
16661         (remainder_test_data): Likewise.
16662         (remquo_test_data): Likewise.
16663         (scalbn_test_data): Likewise.
16664         (scalbln_test_data): Likewise.
16665         (signbit_test_data): Likewise.
16666         (sqrt_test_data): Likewise.
16667         (significand_test_data): Likewise.
16668
16669 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
16670
16671         [BZ #15424]
16672         * benchtests/bench-modf.c (struct args): Mark arg0 as
16673         volatile.
16674         * scripts/bench.pl: Mark members of struct args as volatile.
16675
16676 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16677
16678         [BZ # 15497]
16679         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
16680         negative infinity on POWER6 or lower.
16681         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
16682
16683 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
16684
16685         [BZ #15442]
16686         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
16687         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
16688         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
16689         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
16690         (_FP_SETQNAN): New macro.
16691         (_FP_SETQNAN_SEMIRAW): Likewise.
16692         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
16693         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
16694         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
16695         (FP_EXTEND): Use _FP_FRAC_SNANP.
16696         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
16697         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
16698         into account.
16699         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
16700         New macro.
16701         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
16702         Likewise.
16703
16704 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
16705
16706         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
16707         with DIVIDE_BY_ZERO_EXCEPTION.
16708         (gamma_test_data): Likewise.
16709         (lgamma_test_data): Likewise.
16710         (log_test_data): Likewise.
16711         (log10_test_data): Likewise.
16712         (log2_test_data): Likewise.
16713         (tgamma_test_data): Likewise.
16714
16715         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
16716         (acos_test_tonearest): Likewise.
16717         (acos_test_towardzero): Likewise.
16718         (acos_test_downward): Likewise.
16719         (acos_test_upward): Likewise.
16720         (acosh_test): Likewise.
16721         (asin_test): Likewise.
16722         (asin_test_tonearest): Likewise.
16723         (asin_test_towardzero): Likewise.
16724         (asin_test_downward): Likewise.
16725         (asin_test_upward): Likewise.
16726         (asinh_test): Likewise.
16727         (atan_test): Likewise.
16728         (atanh_test): Likewise.
16729         (atan2_test): Likewise.
16730         (cabs_test): Likewise.
16731         (cacos_test): Likewise.
16732         (cacosh_test): Likewise.
16733         (casin_test): Likewise.
16734         (casinh_test): Likewise.
16735         (catan_test): Likewise.
16736         (catanh_test): Likewise.
16737         (cbrt_test): Likewise.
16738         (ccos_test): Likewise.
16739         (ccosh_test): Likewise.
16740         (cexp_test): Likewise.
16741         (clog_test): Likewise.
16742         (clog10_test): Likewise.
16743         (cos_test): Likewise.
16744         (cos_test_tonearest): Likewise.
16745         (cos_test_towardzero): Likewise.
16746         (cos_test_downward): Likewise.
16747         (cos_test_upward): Likewise.
16748         (cosh_test): Likewise.
16749         (cosh_test_tonearest): Likewise.
16750         (cosh_test_towardzero): Likewise.
16751         (cosh_test_downward): Likewise.
16752         (cosh_test_upward): Likewise.
16753         (cpow_test): Likewise.
16754         (csin_test): Likewise.
16755         (csinh_test): Likewise.
16756         (csqrt_test): Likewise.
16757         (ctan_test): Likewise.
16758         (ctan_test_tonearest): Likewise.
16759         (ctan_test_towardzero): Likewise.
16760         (ctan_test_downward): Likewise.
16761         (ctan_test_upward): Likewise.
16762         (ctanh_test): Likewise.
16763         (ctanh_test_tonearest): Likewise.
16764         (ctanh_test_towardzero): Likewise.
16765         (ctanh_test_downward): Likewise.
16766         (ctanh_test_upward): Likewise.
16767         (erf_test): Likewise.
16768         (erfc_test): Likewise.
16769         (exp_test): Likewise.
16770         (exp_test_tonearest): Likewise.
16771         (exp_test_towardzero): Likewise.
16772         (exp_test_downward): Likewise.
16773         (exp_test_upward): Likewise.
16774         (exp10_test): Likewise.
16775         (exp2_test): Likewise.
16776         (expm1_test): Likewise.
16777         (fmod_test): Likewise.
16778         (gamma_test): Likewise.
16779         (hypot_test): Likewise.
16780         (j0_test): Likewise.
16781         (j1_test): Likewise.
16782         (jn_test): Likewise.
16783         (lgamma_test): Likewise.
16784         (log_test): Likewise.
16785         (log10_test): Likewise.
16786         (log1p_test): Likewise.
16787         (log2_test): Likewise.
16788         (logb_test_downward): Likewise.
16789         (pow_test): Likewise.
16790         (pow_test_tonearest): Likewise.
16791         (pow_test_towardzero): Likewise.
16792         (pow_test_downward): Likewise.
16793         (pow_test_upward): Likewise.
16794         (remainder_test): Likewise.
16795         (remquo_test): Likewise.
16796         (sin_test): Likewise.
16797         (sin_test_tonearest): Likewise.
16798         (sin_test_towardzero): Likewise.
16799         (sin_test_downward): Likewise.
16800         (sin_test_upward): Likewise.
16801         (sincos_test): Likewise.
16802         (sinh_test): Likewise.
16803         (sinh_test_tonearest): Likewise.
16804         (sinh_test_towardzero): Likewise.
16805         (sinh_test_downward): Likewise.
16806         (sinh_test_upward): Likewise.
16807         (sqrt_test): Likewise.
16808         (tan_test): Likewise.
16809         (tan_test_tonearest): Likewise.
16810         (tan_test_towardzero): Likewise.
16811         (tan_test_downward): Likewise.
16812         (tan_test_upward): Likewise.
16813         (tanh_test): Likewise.
16814         (tgamma_test): Likewise.
16815         (y0_test): Likewise.
16816         (y1_test): Likewise.
16817         (yn_test): Likewise.
16818
16819         * math/gen-libm-test.pl (adjust_arg): Remove function.
16820         (special_function): Remove argument $in_func.  Only handle
16821         generating output for tables of tests, not inside functions.
16822         (parse_args): Likewise.
16823         (generate_testfile): Remove variable $in_func.  Update call to
16824         parse_args.
16825         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
16826         (MINUS_ZERO_INIT): Rename macro to minus_zero.
16827         (PLUS_INFTY_INIT): Rename macro to plus_infty.
16828         (MINUS_INFTY_INIT): Rename macro to minus_infty.
16829         (QNAN_VALUE_INIT): Rename macro to qnan_value.
16830         (MAX_VALUE_INIT): Rename macro to max_value.
16831         (MIN_VALUE_INIT): Rename macro to min_value.
16832         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
16833         (plus_zero): Remove variable.
16834         (minus_zero): Likewise.
16835         (plus_infty): Likewise.
16836         (minus_infty): Likewise.
16837         (qnan_value): Likewise.
16838         (max_value): Likewise.
16839         (min_value): Likewise.
16840         (min_subnorm_value): Likewise.
16841
16842 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16843
16844         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
16845         uint64_t or uint32_t usage.
16846         * crypt/sha256-block.c: Likewise.
16847         * crypt/sha256-crypt.c: Likewise.
16848         * crypt/sha256.c: Likewise.
16849         * crypt/sha512-block.c: Likewise.
16850         * crypt/sha512-crypt.c: Likewise.
16851         * crypt/sha512.c: Likewise.
16852         * debug/backtrace-tst.c: Likewise.
16853         * debug/pcprofiledump.c: Likewise.
16854         * elf/cache.c: Likewise.
16855         * elf/dl-cache.c: Likewise.
16856         * elf/dl-misc.c: Likewise.
16857         * elf/dl-profile.c: Likewise.
16858         * elf/dl-support.c: Likewise.
16859         * elf/ldconfig.c: Likewise.
16860         * elf/sprof.c: Likewise.
16861         * iconv/dummy-repertoire.c: Likewise.
16862         * iconv/iconv_charmap.c: Likewise.
16863         * iconv/skeleton.c: Likewise.
16864         * iconvdata/8bit-generic.c: Likewise.
16865         * iconvdata/cp737.h: Likewise.
16866         * iconvdata/cp775.h: Likewise.
16867         * iconvdata/ibm1008.h: Likewise.
16868         * iconvdata/ibm1025.h: Likewise.
16869         * iconvdata/ibm1046.h: Likewise.
16870         * iconvdata/ibm1097.h: Likewise.
16871         * iconvdata/ibm1112.h: Likewise.
16872         * iconvdata/ibm1122.h: Likewise.
16873         * iconvdata/ibm1123.h: Likewise.
16874         * iconvdata/ibm1124.h: Likewise.
16875         * iconvdata/ibm1129.h: Likewise.
16876         * iconvdata/ibm1130.h: Likewise.
16877         * iconvdata/ibm1132.h: Likewise.
16878         * iconvdata/ibm1133.h: Likewise.
16879         * iconvdata/ibm1137.h: Likewise.
16880         * iconvdata/ibm1140.h: Likewise.
16881         * iconvdata/ibm1141.h: Likewise.
16882         * iconvdata/ibm1142.h: Likewise.
16883         * iconvdata/ibm1143.h: Likewise.
16884         * iconvdata/ibm1144.h: Likewise.
16885         * iconvdata/ibm1145.h: Likewise.
16886         * iconvdata/ibm1146.h: Likewise.
16887         * iconvdata/ibm1147.h: Likewise.
16888         * iconvdata/ibm1148.h: Likewise.
16889         * iconvdata/ibm1149.h: Likewise.
16890         * iconvdata/ibm1153.h: Likewise.
16891         * iconvdata/ibm1154.h: Likewise.
16892         * iconvdata/ibm1155.h: Likewise.
16893         * iconvdata/ibm1156.h: Likewise.
16894         * iconvdata/ibm1157.h: Likewise.
16895         * iconvdata/ibm1158.h: Likewise.
16896         * iconvdata/ibm1160.h: Likewise.
16897         * iconvdata/ibm1161.h: Likewise.
16898         * iconvdata/ibm1162.h: Likewise.
16899         * iconvdata/ibm1163.h: Likewise.
16900         * iconvdata/ibm1164.h: Likewise.
16901         * iconvdata/ibm1166.h: Likewise.
16902         * iconvdata/ibm1167.h: Likewise.
16903         * iconvdata/ibm12712.h: Likewise.
16904         * iconvdata/ibm1390.h: Likewise.
16905         * iconvdata/ibm1399.h: Likewise.
16906         * iconvdata/ibm16804.h: Likewise.
16907         * iconvdata/ibm4517.h: Likewise.
16908         * iconvdata/ibm4899.h: Likewise.
16909         * iconvdata/ibm4909.h: Likewise.
16910         * iconvdata/ibm4971.h: Likewise.
16911         * iconvdata/ibm5347.h: Likewise.
16912         * iconvdata/ibm803.h: Likewise.
16913         * iconvdata/ibm856.h: Likewise.
16914         * iconvdata/ibm901.h: Likewise.
16915         * iconvdata/ibm902.h: Likewise.
16916         * iconvdata/ibm9030.h: Likewise.
16917         * iconvdata/ibm9066.h: Likewise.
16918         * iconvdata/ibm921.h: Likewise.
16919         * iconvdata/ibm922.h: Likewise.
16920         * iconvdata/ibm9448.h: Likewise.
16921         * iconvdata/isiri-3342.h: Likewise.
16922         * iconvdata/jis0201.h: Likewise.
16923         * include/link.h: Likewise.
16924         * include/netdb.h: Likewise.
16925         * inet/check_native.c: Likewise.
16926         * inet/check_pf.c: Likewise.
16927         * inet/getipv4sourcefilter.c: Likewise.
16928         * inet/getnameinfo.c: Likewise.
16929         * inet/getsourcefilter.c: Likewise.
16930         * inet/htonl.c: Likewise.
16931         * inet/setipv4sourcefilter.c: Likewise.
16932         * inet/setsourcefilter.c: Likewise.
16933         * inet/test-inet6_opt.c: Likewise.
16934         * inet/tst-network.c: Likewise.
16935         * locale/C-collate.c: Likewise.
16936         * locale/C-ctype.c: Likewise.
16937         * locale/C-time.c: Likewise.
16938         * locale/C-translit.h: Likewise.
16939         * locale/loadarchive.c: Likewise.
16940         * locale/programs/3level.h: Likewise.
16941         * locale/programs/charmap.c: Likewise.
16942         * locale/programs/charmap.h: Likewise.
16943         * locale/programs/ld-address.c: Likewise.
16944         * locale/programs/ld-collate.c: Likewise.
16945         * locale/programs/ld-ctype.c: Likewise.
16946         * locale/programs/ld-identification.c: Likewise.
16947         * locale/programs/ld-measurement.c: Likewise.
16948         * locale/programs/ld-messages.c: Likewise.
16949         * locale/programs/ld-monetary.c: Likewise.
16950         * locale/programs/ld-name.c: Likewise.
16951         * locale/programs/ld-numeric.c: Likewise.
16952         * locale/programs/ld-paper.c: Likewise.
16953         * locale/programs/ld-telephone.c: Likewise.
16954         * locale/programs/ld-time.c: Likewise.
16955         * locale/programs/linereader.c: Likewise.
16956         * locale/programs/locale.c: Likewise.
16957         * locale/programs/locarchive.c: Likewise.
16958         * locale/programs/locfile.h: Likewise.
16959         * locale/programs/repertoire.c: Likewise.
16960         * locale/programs/simple-hash.c: Likewise.
16961         * locale/programs/simple-hash.h: Likewise.
16962         * malloc/memusage.c: Likewise.
16963         * malloc/memusagestat.c: Likewise.
16964         * nis/nis_defaults.c: Likewise.
16965         * nis/nis_hash.c: Likewise.
16966         * nis/nis_print.c: Likewise.
16967         * nis/nis_xdr.c: Likewise.
16968         * nscd/connections.c: Likewise.
16969         * nscd/hstcache.c: Likewise.
16970         * nscd/nscd_gethst_r.c: Likewise.
16971         * nscd/nscd_getserv_r.c: Likewise.
16972         * nscd/nscd_helper.c: Likewise.
16973         * nscd/servicescache.c: Likewise.
16974         * nss/makedb.c: Likewise.
16975         * nss/nss_db/db-XXX.c: Likewise.
16976         * nss/nss_db/db-initgroups.c: Likewise.
16977         * nss/nss_db/db-netgrp.c: Likewise.
16978         * nss/nss_files/files-network.c: Likewise.
16979         * nss/nss_files/files-parse.c: Likewise.
16980         * posix/bug-regex5.c: Likewise.
16981         * posix/fnmatch_loop.c: Likewise.
16982         * posix/regcomp.c: Likewise.
16983         * posix/regexec.c: Likewise.
16984         * posix/tst-rfc3484-2.c: Likewise.
16985         * posix/tst-rfc3484-3.c: Likewise.
16986         * posix/tst-rfc3484.c: Likewise.
16987         * resolv/nss_dns/dns-canon.c: Likewise.
16988         * resolv/nss_dns/dns-network.c: Likewise.
16989         * resolv/res_init.c: Likewise.
16990         * resolv/res_mkquery.c: Likewise.
16991         * resolv/tst-aton.c: Likewise.
16992         * stdlib/cxa_atexit.c: Likewise.
16993         * stdlib/cxa_finalize.c: Likewise.
16994         * stdlib/gen-fpioconst.c: Likewise.
16995         * stdlib/strtol_l.c: Likewise.
16996         * string/tst-endian.c: Likewise.
16997         * sunrpc/auth_des.c: Likewise.
16998         * sunrpc/clnt_udp.c: Likewise.
16999         * sunrpc/rtime.c: Likewise.
17000         * sunrpc/svcauth_des.c: Likewise.
17001         * sunrpc/xdr.c: Likewise.
17002         * sunrpc/xdr_intXX_t.c: Likewise.
17003         * sunrpc/xdr_rec.c: Likewise.
17004         * sysdeps/generic/ldconfig.h: Likewise.
17005         * sysdeps/generic/ldsodefs.h: Likewise.
17006         * sysdeps/generic/memusage.h: Likewise.
17007         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17008         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17009         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17010         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17011         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17012         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17013         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17014         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17015         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17016         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17017         * sysdeps/posix/getaddrinfo.c: Likewise.
17018         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17019         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17020         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17021         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17022         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17023         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17024         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17025         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17026         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17027         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17028         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17029         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17030         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17031         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17032         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17033         * sysdeps/x86_64/dl-tls.h: Likewise.
17034         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17035         * time/alt_digit.c: Likewise.
17036         * time/era.c: Likewise.
17037         * wcsmbs/tst-c16c32-1.c: Likewise.
17038
17039 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17040
17041         * math/libm-test.inc (struct test_sincos_data): New type.
17042         (RUN_TEST_LOOP_sincos): New macro.
17043         (sincos_test_data): New variable.
17044         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17045
17046 2013-05-16  Richard Henderson  <rth@redhat.com>
17047
17048         * math/atest-exp2.c (LIMB64): New macro.
17049         (CONSTSZ): New macro.
17050         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17051         (hexdig): Move ...
17052         (print_mpn_fp): ... to function scope.
17053         (read_mpn_hex): Remove.
17054         (get_log2): Remove.
17055         (exp2_mpn): Use mp_log2.
17056         (main): Use mp_exp1.
17057
17058 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17059
17060         * math/libm-test.inc: Remove comment about not testing "inexact"
17061         exceptions.
17062         (INEXACT_EXCEPTION): New macro.
17063         (NO_INEXACT_EXCEPTION): Likewise.
17064         (INVALID_EXCEPTION_OK): Update value.
17065         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17066         (OVERFLOW_EXCEPTION_OK): Likewise.
17067         (UNDERFLOW_EXCEPTION_OK): Likewise.
17068         (IGNORE_ZERO_INF_SIGN): Likewise.
17069         (ERRNO_UNCHANGED): Likewise.
17070         (ERRNO_EDOM): Likewise.
17071         (ERRNO_ERANGE): Likewise.
17072         (test_exceptions): Handle testing "inexact" exceptions.
17073         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17074         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17075         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17076         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17077         INEXACT_EXCEPTION.
17078         (rint_towardzero_test_data): Likewise.
17079         (rint_downward_test_data): Likewise.
17080         (rint_upward_test_data): Likewise.
17081
17082         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17083         with OVERFLOW_EXCEPTION.
17084         (exp10_test_data): Likewise.
17085         (exp2_test_data): Likewise.
17086         (expm1_test_data): Likewise.
17087         (lgamma_test_data): Likewise.
17088         (pow_test_data): Likewise.
17089         (tgamma_test_data): Likewise.
17090         (yn_test_data): Remove duplicate test of overflow.
17091
17092         * math/libm-test.inc (struct test_cc_c_data): New type.
17093         (RUN_TEST_LOOP_cc_c): New macro.
17094         (cpow_test_data): New variable.
17095         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
17096
17097         * math/libm-test.inc (struct test_f_L_data): New type.
17098         (RUN_TEST_LOOP_f_L): New macro.
17099         (llrint_test_data): New variable.
17100         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
17101         (llrint_tonearest_test_data): New variable.
17102         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
17103         (llrint_towardzero_test_data): New variable.
17104         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
17105         (llrint_downward_test_data): New variable.
17106         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
17107         (llrint_upward_test_data): New variable.
17108         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
17109         (llround_test_data): New variable.
17110         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
17111
17112 2013-05-13  Peter Collingbourne  <pcc@google.com>
17113
17114         * math/atest-exp2.c (get_log2): Remove const attribute.
17115
17116 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17117
17118         * math/libm-test.inc (struct test_f_l_data): New type.
17119         (RUN_TEST_LOOP_f_l): New macro.
17120         (lrint_test_data): New variable.
17121         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
17122         (lrint_tonearest_test_data): New variable.
17123         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
17124         (lrint_towardzero_test_data): New variable.
17125         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
17126         (lrint_downward_test_data): New variable.
17127         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
17128         (lrint_upward_test_data): New variable.
17129         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
17130         (lround_test_data): New variable.
17131         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
17132
17133 2013-05-15  Peter Collingbourne  <pcc@google.com>
17134
17135         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
17136         (EXTRACT_WORDS64) Use where appropriate.
17137         (INSERT_WORDS64) Likewise.
17138
17139         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
17140         constraints with x constraints.
17141         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
17142
17143         * malloc/obstack.c (_obstack_compat): Add initializer.
17144
17145 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17146
17147         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
17148         si_trapno and add si_addr_lsb to _sifields.sigfault.
17149         (si_trapno): Remove macro.
17150         (si_addr_lsb): Define new macro.
17151         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17152
17153 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17154
17155         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
17156         instead of TEST_f_l.
17157         (llrint_test_tonearest): Likewise.
17158         (llrint_test_towardzero): Likewise.
17159         (llrint_test_downward): Likewise.
17160         (llrint_test_upward): Likewise.
17161         (llround_test): Likewise.
17162
17163         * math/libm-test.inc (struct test_f_i_data): Add comment.
17164         (RUN_TEST_LOOP_f_b): New macro.
17165         (RUN_TEST_LOOP_f_b_tg): Likewise.
17166         (finite_test_data): New variable.
17167         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
17168         (isfinite_test_data): New variable.
17169         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17170         (isinf_test_data): New variable.
17171         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17172         (isnan_test_data): New variable.
17173         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17174         (isnormal_test_data): New variable.
17175         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17176         (issignaling_test_data): New variable.
17177         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17178         (signbit_test_data): New variable.
17179         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17180
17181         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
17182         with INVALID_EXCEPTION.
17183         (acosh_test_data): Likewise.
17184         (asin_test_data): Likewise.
17185         (atanh_test_data): Likewise.
17186         (fmod_test_data): Likewise.
17187         (log_test_data): Likewise.
17188         (log10_test_data): Likewise.
17189         (log2_test_data): Likewise.
17190         (pow_test_data): Likewise.
17191         (sqrt_test_data): Likewise.
17192         (y0_test_data): Likewise.
17193         (y1_test_data): Likewise.
17194         (yn_test_data): Likewise.
17195
17196         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
17197         function contents.
17198
17199         * math/libm-test.inc (struct test_ff_i_data): New type.
17200         (RUN_TEST_LOOP_ff_i_tg): New macro.
17201         (isgreater_test_data): New variable.
17202         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17203         (isgreaterequal_test_data): New variable.
17204         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17205         (isless_test_data): New variable.
17206         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17207         (islessequal_test_data): New variable.
17208         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17209         (islessgreater_test_data): New variable.
17210         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17211         (isunordered_test_data): New variable.
17212         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17213
17214 2013-05-14  David S. Miller  <davem@davemloft.net>
17215
17216         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17217
17218 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
17219
17220         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
17221
17222         * math/libm-test.inc (struct test_fF_f1_data): Change type of
17223         extra_test to int.
17224         (struct test_f_i_data): Change type of max_ulp to int.
17225
17226         * math/libm-test.inc (test_ffI_f1_data): New type.
17227         (RUN_TEST_LOOP_ffI_f1): New macro.
17228         (remquo_test_data): New variable.
17229         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
17230
17231         * setjmp/tst-setjmp-fp.c: New file.
17232         * setjmp/Makefile (tests): Add tst-setjmp-fp.
17233         (link-libm): New variable.
17234         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
17235
17236         * math/libm-test.inc (struct test_f_i_data): New type.
17237         (RUN_TEST_LOOP_f_i): New macro.
17238         (RUN_TEST_LOOP_f_i_tg): Likewise.
17239         (fpclassify_test_data): New variable.
17240         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
17241         (ilogb_test_data): New variable.
17242         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
17243
17244         * math/libm-test.inc (scalbln_test): Correct function name in END
17245         call.
17246
17247         * math/libm-test.inc (struct test_f_f1_data): Add comment.
17248         (RUN_TEST_LOOP_fI_f1): New macro.
17249         (frexp_test_data): New variable.
17250         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
17251
17252         * math/libm-test.inc (struct test_fF_f1_data): New type.
17253         (RUN_TEST_LOOP_fF_f1): New macro.
17254         (modf_test_data): New variable.
17255         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
17256
17257         * math/libm-test.inc (struct test_f_f1_data): New type.
17258         (RUN_TEST_LOOP_f_f1): New macro.
17259         (gamma_test_data): New variable.
17260         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17261         (lgamma_test_data): New variable.
17262         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17263
17264 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
17265
17266         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
17267         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
17268         (main): Comment "tls" pseudo-hwcap.
17269
17270 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
17271
17272         * math/libm-test.inc (struct test_fl_f_data): New type.
17273         (RUN_TEST_LOOP_fl_f): New variable.
17274         (scalbln_test_data): New variable.
17275         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
17276
17277         * math/libm-test.inc (struct test_fi_f_data): New type.
17278         (RUN_TEST_LOOP_fi_f): New macro.
17279         (ldexp_test_data): New variable.
17280         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
17281         (scalbn_test_data): New variable.
17282         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
17283
17284         * math/libm-test.inc (struct test_c_f_data): New type.
17285         (RUN_TEST_LOOP_c_f): New macro.
17286         (cabs_test_data): New variable.
17287         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
17288         (carg_test_data): New variable.
17289         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
17290         (cimag_test_data): New variable.
17291         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
17292         (creal_test_data): New variable.
17293         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
17294
17295         * math/libm-test.inc (struct test_if_f_data): New type.
17296         (RUN_TEST_LOOP_if_f): New macro.
17297         (jn_test_data): New variable.
17298         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
17299         (yn_test_data): New variable.
17300         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
17301
17302         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
17303
17304 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17305
17306         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
17307         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
17308
17309 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17310
17311         * benchtests/Makefile (CPPFLAGS-nonlib): Add
17312         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
17313         (bench-deps): Add bench-timing.h.
17314         * benchtests-bench-skeleton.c: Include bench-timing.h.
17315         (main): Use TIMING_* macros instead of clock_gettime.
17316         * benchtests/bench-timing.h: New file.
17317
17318         [BZ #14582]
17319         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
17320         Renamed from _LIB_VERSION.
17321         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
17322
17323 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
17324
17325         * math/libm-test.inc (struct test_fff_f_data): New type.
17326         (RUN_TEST_LOOP_fff_f): New macro.
17327         (fma_test_data): New variable.
17328         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
17329         (fma_towardzero_test_data): New variable.
17330         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
17331         (fma_downward_test_data): New variable.
17332         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
17333         (fma_upward_test_data): New variable.
17334         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
17335
17336         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
17337         (struct test_c_c_data): New type.
17338         (RUN_TEST_LOOP_c_c): New macro.
17339         (cacos_test_data): New variable.
17340         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
17341         (cacosh_test_data): New variable.
17342         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
17343         (casin_test_data): New variable.
17344         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
17345         (casinh_test_data): New variable.
17346         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
17347         (catan_test_data): New variable.
17348         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
17349         (catanh_test_data): New variable.
17350         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
17351         (ccos_test_data): New variable.
17352         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
17353         (ccosh_test_data): New variable.
17354         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
17355         (cexp_test_data): New variable.
17356         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
17357         (clog_test_data): New variable.
17358         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
17359         (clog10_test_data): New variable.
17360         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
17361         (conj_test_data): New variable.
17362         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
17363         (cproj_test_data): New variable.
17364         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
17365         (csin_test_data): New variable.
17366         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
17367         (csinh_test_data): New variable.
17368         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
17369         (csqrt_test_data): New variable.
17370         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
17371         (ctan_test_data): New variable.
17372         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
17373         (ctan_tonearest_test_data): New variable.
17374         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17375         (ctan_towardzero_test_data): New variable.
17376         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17377         (ctan_downward_test_data): New variable.
17378         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17379         (ctan_upward_test_data): New variable.
17380         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17381         (ctanh_test_data): New variable.
17382         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
17383         (ctanh_tonearest_test_data): New variable.
17384         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17385         (ctanh_towardzero_test_data): New variable.
17386         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17387         (ctanh_downward_test_data): New variable.
17388         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17389         (ctanh_upward_test_data): New variable.
17390         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17391         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
17392         of BUILD_COMPLEX.
17393
17394         * math/libm-test.inc (struct test_ff_f_data): New type.
17395         (struct test_ff_f_data_nexttoward): Likewise.
17396         (RUN_TEST_LOOP_2_f): New macro.
17397         (RUN_TEST_LOOP_ff_f): Likewise.
17398         (atan2_test_data): New variable.
17399         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
17400         (copysign_test_data): New variable.
17401         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
17402         (fdim_test_data): New variable.
17403         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
17404         (fmax_test_data): New variable.
17405         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
17406         (fmin_test_data): New variable.
17407         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
17408         (fmod_test_data): New variable.
17409         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
17410         (hypot_test_data): New variable.
17411         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
17412         (nextafter_test_data): New variable.
17413         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
17414         (nexttoward_test_data): New variable.
17415         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
17416         (pow_test_data): New variable.
17417         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
17418         (pow_tonearest_test_data): New variable.
17419         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
17420         (pow_towardzero_test_data): New variable.
17421         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
17422         (pow_downward_test_data): New variable.
17423         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
17424         (pow_upward_test_data): New variable.
17425         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
17426         (remainder_test_data): New variable.
17427         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
17428         (scalb_test_data): New variable.
17429         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
17430         * sysdeps/i386/fpu/libm-test-ulps: Update.
17431
17432 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
17433
17434         * math/libm-test.inc (fma_test): Use max_value instead of local
17435         variable fltmax.
17436         (nextafter_test): Likewise.
17437
17438         * math/libm-test.inc (acos_towardzero_test_data): New variable.
17439         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17440         (acos_downward_test_data): New variable.
17441         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17442         (acos_upward_test_data): New variable.
17443         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17444         (acosh_test_data): New variable.
17445         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
17446         (asin_test_data): New variable.
17447         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
17448         (asin_tonearest_test_data): New variable.
17449         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17450         (asin_towardzero_test_data): New variable.
17451         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17452         (asin_downward_test_data): New variable.
17453         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17454         (asin_upward_test_data): New variable.
17455         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17456         (asinh_test_data): New variable.
17457         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
17458         (atan_test_data): New variable.
17459         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
17460         (atanh_test_data): New variable.
17461         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
17462         (cbrt_test_data): New variable.
17463         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
17464         (ceil_test_data): New variable.
17465         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
17466         (cos_test_data): New variable.
17467         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
17468         (cos_tonearest_test_data): New variable.
17469         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17470         (cos_towardzero_test_data): New variable.
17471         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17472         (cos_downward_test_data): New variable.
17473         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17474         (cos_upward_test_data): New variable.
17475         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17476         (cosh_test_data): New variable.
17477         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
17478         (cosh_tonearest_test_data): New variable.
17479         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17480         (cosh_towardzero_test_data): New variable.
17481         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17482         (cosh_downward_test_data): New variable.
17483         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17484         (cosh_upward_test_data): New variable.
17485         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17486         (erf_test_data): New variable.
17487         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
17488         (erfc_test_data): New variable.
17489         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
17490         (exp_test_data): New variable.
17491         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
17492         (exp_tonearest_test_data): New variable.
17493         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17494         (exp_towardzero_test_data): New variable.
17495         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17496         (exp_downward_test_data): New variable.
17497         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17498         (exp_upward_test_data): New variable.
17499         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17500         (exp10_test_data): New variable.
17501         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
17502         (exp2_test_data): New variable.
17503         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
17504         (expm1_test_data): New variable.
17505         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
17506         (fabs_test_data): New variable.
17507         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
17508         (floor_test_data): New variable.
17509         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
17510         (j0_test_data): New variable.
17511         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
17512         (j1_test_data): New variable.
17513         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
17514         (log_test_data): New variable.
17515         (log_test): Run tests with RUN_TEST_LOOP_f_f.
17516         (log10_test_data): New variable.
17517         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
17518         (log1p_test_data): New variable.
17519         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
17520         (log2_test_data): New variable.
17521         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
17522         (logb_test_data): New variable.
17523         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
17524         (logb_downward_test_data): New variable.
17525         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17526         (nearbyint_test_data): New variable.
17527         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
17528         (rint_test_data): New variable.
17529         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
17530         (rint_tonearest_test_data): New variable.
17531         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17532         (rint_towardzero_test_data): New variable.
17533         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17534         (rint_downward_test_data): New variable.
17535         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17536         (rint_upward_test_data): New variable.
17537         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17538         (round_test_data): New variable.
17539         (round_test): Run tests with RUN_TEST_LOOP_f_f.
17540         (sin_test_data): New variable.
17541         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
17542         (sin_tonearest_test_data): New variable.
17543         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17544         (sin_towardzero_test_data): New variable.
17545         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17546         (sin_downward_test_data): New variable.
17547         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17548         (sin_upward_test_data): New variable.
17549         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17550         (sinh_test_data): New variable.
17551         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
17552         (sinh_tonearest_test_data): New variable.
17553         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17554         (sinh_towardzero_test_data): New variable.
17555         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17556         (sinh_downward_test_data): New variable.
17557         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17558         (sinh_upward_test_data): New variable.
17559         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17560         (sqrt_test_data): New variable.
17561         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
17562         (tan_test_data): New variable.
17563         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
17564         (tan_tonearest_test_data): New variable.
17565         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17566         (tan_towardzero_test_data): New variable.
17567         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17568         (tan_downward_test_data): New variable.
17569         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17570         (tan_upward_test_data): New variable.
17571         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17572         (tanh_test_data): New variable.
17573         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
17574         (tgamma_test_data): New variable.
17575         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
17576         (trunc_test_data): New variable.
17577         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
17578         (y0_test_data): New variable.
17579         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
17580         (y1_test_data): New variable.
17581         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
17582         (significand_test_data): New variable.
17583         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
17584
17585 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
17586
17587         [BZ #12387]
17588         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
17589
17590 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
17591
17592         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
17593
17594 2013-05-10  Andreas Jaeger  <aj@suse.de>
17595
17596         [BZ #15448]
17597         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
17598         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
17599
17600 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
17601
17602         * math/gen-libm-test.pl (adjust_arg): New function.
17603         (special_functions): Handle generating output in both functions
17604         and arrays.
17605         (parse_args): Likewise.
17606         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
17607         $in_func argument to parse_args.
17608         * math/libm-test.inc (struct test_f_f_data): New type.
17609         (IF_ROUND_INIT_): New macro.
17610         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
17611         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
17612         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
17613         (IF_ROUND_INIT_FE_UPWARD): Likewise.
17614         (ROUND_RESTORE_): Likewise.
17615         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
17616         (ROUND_RESTORE_FE_TONEAREST): Likewise.
17617         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
17618         (ROUND_RESTORE_FE_UPWARD): Likewise.
17619         (RUN_TEST_LOOP_f_f): New macro.
17620         (acos_test_data): New variable.
17621         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
17622         (acos_tonearest_test_data): New variable.
17623         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17624
17625 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17626
17627         * benchtests/bench-skeleton.c (startup): Fix coding style.
17628
17629 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
17630
17631         [BZ #6809]
17632         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
17633         negative infinity argument.
17634         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
17635         negative infinity argument.
17636         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
17637         negative infinity argument.
17638         * math/libm-test.inc (tgamma_test): Expect errno to be set for
17639         domain errors.
17640
17641 2013-05-10  Florian Weimer  <fweimer@redhat.com>
17642
17643         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
17644         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
17645         * iconv/iconv_prog.c (main): Likewise.
17646         * locale/programs/charmap-dir.c (charmap_readdir)
17647         (fopen_uncompressed): Likewise.
17648         * locale/programs/locfile.c (siblings_uncached)
17649         (write_locale_data): Use lstat64 instead of lstat.
17650         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
17651         stat.
17652
17653 2013-05-10  Andreas Jaeger  <aj@suse.de>
17654
17655         [BZ #15395]
17656         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
17657         localization.
17658         Include <locale.h>.
17659
17660 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
17661
17662         * elf/dl-close.c (_dl_close_worker): Add comments.
17663
17664 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
17665
17666         [BZ #15359]
17667         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
17668         high part of pi/2.
17669         (__ieee754_rem_pio2l): Update comments.
17670
17671         [BZ #15429]
17672         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
17673         high part of pi/2.
17674         (__ieee754_rem_pio2l): Update comments.
17675
17676         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
17677         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
17678
17679         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
17680         M_PI_4l.
17681
17682         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
17683         (M_PI_34_LOG10El): Likewise.
17684         (M_PI2_LOG10El): Likewise.
17685         (M_PI4_LOG10El): Likewise.
17686         (M_PI_LOG10El): Likewise.
17687
17688 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17689
17690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17691
17692 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
17693
17694         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
17695         (MINUS_ZERO_INIT): Likewise.
17696         (PLUS_INFTY_INIT): Likewise.
17697         (MINUS_INFTY_INIT): Likewise.
17698         (QNAN_VALUE_INIT): Likewise.
17699         (MAX_VALUE_INIT): Likewise.
17700         (MIN_VALUE_INIT): Likewise.
17701         (MIN_SUBNORM_VALUE_INIT): Likewise.
17702         (plus_zero): Initialize with PLUS_ZERO_INIT.
17703         (minus_zero): Initialize with MINUS_ZERO_INIT.
17704         (plus_infty): Initialize with PLUS_INFTY_INIT.
17705         (minus_infty): Initialize with MINUS_INFTY_INIT.
17706         (qnan_value): Initialize with QNAN_VALUE_INIT.
17707         (max_value): Initialize with MAX_VALUE_INIT.
17708         (min_value): Initialize with MIN_VALUE_INIT.
17709         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
17710
17711         * math/libm-test.inc (RUN_TEST_if_f): New macro.
17712         (jn_test): Use TEST_if_f instead of TEST_ff_f.
17713         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
17714         (yn_test): Use TEST_if_f instead of TEST_ff_f.
17715
17716         * math/libm-test.inc (RUN_TEST_f_f): New macro.
17717         (RUN_TEST_2_f): Likewise.
17718         (RUN_TEST_ff_f): Likewise.
17719         (RUN_TEST_fi_f): Likewise.
17720         (RUN_TEST_fl_f): Likewise.
17721         (RUN_TEST_fff_f): Likewise.
17722         (RUN_TEST_c_f): Likewise.
17723         (RUN_TEST_f_f1): Likewise.
17724         (RUN_TEST_fF_f1): Likewise.
17725         (RUN_TEST_fI_f1): Likewise.
17726         (RUN_TEST_ffI_f1): Likewise.
17727         (RUN_TEST_c_c): Likewise.
17728         (RUN_TEST_cc_c): Likewise.
17729         (RUN_TEST_f_i): Likewise.
17730         (RUN_TEST_f_i_tg): Likewise.
17731         (RUN_TEST_ff_i_tg): Likewise.
17732         (RUN_TEST_f_b): Likewise.
17733         (RUN_TEST_f_b_tg): Likewise.
17734         (RUN_TEST_f_l): Likewise.
17735         (RUN_TEST_f_L): Likewise.
17736         (RUN_TEST_sincos): Likewise.
17737         * math/gen-libm-test.pl (new_test): Take new argument to indicate
17738         whether to show exceptions.  Do not include ");\n" in return
17739         value.
17740         (special_functions): Output call to RUN_TEST_sincos instead of
17741         check_float calls.  Update calls to new_test.
17742         (parse_args): Output call to single RUN_TEST_* macro instead of
17743         check_* calls and other assignments.  Update calls to new_test.
17744
17745         [BZ #2546]
17746         [BZ #2560]
17747         [BZ #5159]
17748         [BZ #15426]
17749         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
17750         input to result for tgamma overflow.
17751         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
17752         (gamma_coeff): New variable.
17753         (NCOEFF): New macro.
17754         (gamma_positive): New function.
17755         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
17756         underflow here.  Use gamma_positive instead of exp (lgamma) for
17757         other arguments.
17758         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
17759         (gamma_coeff): New variable.
17760         (NCOEFF): New macro.
17761         (gammaf_positive): New function.
17762         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
17763         underflow here.  Use gamma_positive instead of exp (lgamma) for
17764         other arguments.
17765         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
17766         (gamma_coeff): New variable.
17767         (NCOEFF): New macro.
17768         (gammal_positive): New function.
17769         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
17770         underflow here.  Use gamma_positive instead of exp (lgamma) for
17771         other arguments.
17772         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
17773         (gamma_coeff): New variable.
17774         (NCOEFF): New macro.
17775         (gammal_positive): New function.
17776         (__ieee754_gammal_r): Handle positive infinity, overflow and
17777         underflow here.  Handle NaN the same as positive infinity.  Remove
17778         check x < 0xffffffff for negative integers.  Use gamma_positive
17779         instead of exp (lgamma) for other arguments.
17780         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
17781         (gamma_coeff): New variable.
17782         (NCOEFF): New macro.
17783         (gammal_positive): New function.
17784         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
17785         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17786         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
17787         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
17788         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17789         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
17790         * sysdeps/generic/math_private.h (__gamma_productf): New
17791         prototype.
17792         (__gamma_product): Likewise.
17793         (__gamma_productl): Likewise.
17794         * math/Makefile (libm-calls): Add gamma_product.
17795         * math/libm-test.inc (tgamma_test): Add more tests.
17796         * sysdeps/i386/fpu/libm-test-ulps: Update.
17797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17798
17799 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
17800
17801         * benchtests/bench-skeleton.c (main): Preheat CPU.
17802
17803 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
17804
17805         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
17806
17807 2013-05-07  Roland McGrath  <roland@hack.frob.com>
17808
17809         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
17810         and _dl_skip_args_internal.
17811
17812 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
17813
17814         * manual/message.texi (Message Translation): Talk about users.
17815         Message to key mapping impacts design.
17816
17817 2013-05-06  Roland McGrath  <roland@hack.frob.com>
17818
17819         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
17820
17821         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
17822
17823         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
17824         * sysdeps/wordsize-64/glob64.c: ... here.
17825
17826         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
17827         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
17828         New macros.
17829
17830         * debug/getlogin_r_chk.c: Moved to ...
17831         * login/getlogin_r_chk.c: ... here.
17832         * debug/Makefile (routines): Move getlogin_r_chk to ...
17833         * login/Makefile (routines): ... here.
17834         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
17835         * login/Versions (libc: GLIBC_2.4): ... here.
17836
17837         * io/poll.c (__poll): Renamed from poll.
17838         Add libc_hidden_def.
17839         (poll): Define as weak alias.
17840
17841         * debug/ptsname_r_chk.c: Moved to ...
17842         * login/ptsname_r_chk.c: ... here.
17843         * debug/Makefile (routines): Move ptsname_r_chk to ...
17844         * login/Makefile (routines): ... here.
17845         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
17846         * login/Versions (libc: GLIBC_2.4): ... here.
17847
17848         * posix/getlogin.c: Moved to ...
17849         * login/getlogin.c: ... here.
17850         * posix/getlogin_r.c: Moved to ...
17851         * login/getlogin_r.c: ... here.
17852         * posix/getlogin_r.c: Moved to ...
17853         * login/getlogin_r.c: ... here.
17854         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
17855         * login/Makefile (routines): ... here.
17856         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
17857         * login/Versions (libc: GLIBC_2.0): ... here.
17858
17859         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
17860         (setrlimit): Define as weak alias.
17861
17862         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
17863         Call __ names for open, ftruncate, and close.
17864         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
17865         (truncate): Define as weak alias.
17866
17867 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
17868
17869         * math/gen-libm-test.pl (parse_args): Initialize x before each
17870         test of frexp, modf and remquo.
17871
17872         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
17873         test signgam value.
17874
17875 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17876
17877         [BZ #15418]
17878         [BZ #15419]
17879         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
17880         internal tests.
17881         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17882
17883 2013-05-06  Roland McGrath  <roland@hack.frob.com>
17884
17885         * elf/dl-writev.h: New file.
17886         * elf/dl-misc.c: Include it.
17887         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
17888         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
17889
17890 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
17891
17892         * math/libm-test.inc (noXFails): Remove variable.
17893         (noXPasses): Likewise.
17894         (BUILD_COMPLEX_INT): Remove macro.
17895         (print_screen): Remove xfail argument.
17896         (print_screen_max_error): Likewise.
17897         (update_stats): Likewise.
17898         (print_max_error): Likewise.  Update calls to other affected
17899         functions.
17900         (print_complex_max_error): Likewise.
17901         (test_single_exception): Update calls to print_screen.
17902         (test_single_errno): Likewise.
17903         (check_float_internal): Remove xfail argument.  Update calls to
17904         other affected functions.
17905         (check_float): Likewise.
17906         (check_complex): Likewise.
17907         (check_int): Likewise.
17908         (check_long): Likewise.
17909         (check_bool): Likewise.
17910         (check_longlong): Likewise.
17911         (main): Don't print noXFails and noXPasses.
17912         * math/gen-libm-test.pl (top level): Don't mention expected
17913         failure handling in comment.
17914         (new_test): Don't handle expected failures.
17915         (parse_args): Don't mention expected failure handling in comment.
17916         (generate_testfile): Don't handle expected failures.
17917         (parse_ulps): Likewise.
17918         (print_ulps_file): Likewise.
17919         (get_failure): Remove function.
17920         (output_test): Don't handle expected failures.
17921         * make/README.libm-test: Don't mention expected failure handling.
17922
17923         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
17924         (minus_zero): Likewise.
17925         (plus_infty): Likewise.
17926         (minus_infty): Likewise.
17927         (qnan_value): Likewise.
17928         (max_value): Likewise.
17929         (min_value): Likewise.
17930         (min_subnorm_value): Likewise.
17931         (initialize): Do not initialize those variables dynamically.
17932
17933 2013-05-03  Roland McGrath  <roland@hack.frob.com>
17934
17935         * io/open.c (__open_2): Moved to ...
17936         * io/open_2.c: ... this new file.
17937         * io/open64.c (__open64_2): Moved to ...
17938         * io/open64_2.c: ... this new file.
17939         * io/openat.c (__openat_2): Moved to ...
17940         * io/openat_2.c: ... this new file.
17941         * io/openat64.c (__openat64_2): Moved to ...
17942         * io/openat64_2.c: ... this new file.
17943         * io/Makefile (routines): Add them.
17944         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
17945         * sysdeps/unix/sysv/linux/open_2.c: File removed.
17946         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
17947         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
17948         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
17949         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
17950         (__openat64): Add hidden_ver.
17951         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
17952         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
17953
17954         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
17955         Separately conditionalize setting of GLRO(dl_sysinfo) so
17956         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
17957         as well, but the actual setting is only under [NEED_DL_SYSINFO].
17958
17959 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17960
17961         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
17962         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
17963         definition.
17964         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
17965         * sysdeps/unix/sysv/linux/powerpc/init-first.c
17966         (_libc_vdso_platform_setup): Add __vdso_time initialization.
17967         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
17968         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
17969
17970 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
17971
17972         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
17973         test signgam value.
17974
17975         * math/libm-test.inc (hypot_test): Do not use
17976         IGNORE_ZERO_INF_SIGN.
17977
17978 2013-05-03  Andreas Jaeger  <aj@suse.de>
17979
17980         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
17981         Linux 3.9.
17982         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
17983         (PF_MAX): Adjust for VSOCK change.
17984
17985 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17986
17987         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17988
17989 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
17990
17991         [BZ #15264]
17992         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
17993         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
17994         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
17995
17996 2013-05-02  David S. Miller  <davem@davemloft.net>
17997
17998         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17999
18000 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18001
18002         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18003
18004 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18005
18006         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18007
18008 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18009
18010         [BZ #14952]
18011         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18012         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18013         Use __attribute__ ((__gnu_inline__)).
18014         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18015         Don't use __attribute__ ((__gnu_inline__)).
18016
18017 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18018
18019         [BZ #15423]
18020         * math/s_catan.c (__catan): Handle small real or imaginary part of
18021         input specially to avoid spurious underflow.
18022         * math/s_catanf.c (__catanf): Likewise.
18023         * math/s_catanh.c (__catanh): Likewise.
18024         * math/s_catanhf.c (__catanhf): Likewise.
18025         * math/s_catanhl.c (__catanhl): Likewise.
18026         * math/s_catanl.c (__catanl): Likewise.
18027         * math/libm-test.inc (catan_test): Add more tests.
18028         (catanh_test): Likewise.
18029         * sysdeps/i386/fpu/libm-test-ulps: Update.
18030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18031
18032 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18033
18034         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18035
18036 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18037
18038         [BZ #15416]
18039         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18040         accurately for denominator in atan2.
18041         * math/s_catanf.c (__catanf): Likewise.
18042         * math/s_catanh.c (__catanh): Likewise.
18043         * math/s_catanhf.c (__catanhf): Likewise.
18044         * math/s_catanhl.c (__catanhl): Likewise.
18045         * math/s_catanl.c (__catanl): Likewise.
18046         * math/libm-test.inc (catan_test): Add more tests.
18047         (catanh_test): Likewise.
18048         * sysdeps/i386/fpu/libm-test-ulps: Update.
18049         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18050
18051 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18052
18053         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18054
18055         * benchtests/Makefile (bench): Remove slow benchmarks.
18056         * benchtests/atan-inputs: Add slow benchmark inputs.
18057         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18058         (BENCH_FUNC): Accept variant offset.
18059         (VARIANT): Define.
18060         * benchtests/bench-skeleton.c (main): Run benchmark for each
18061         variant.
18062         * benchtests/cos-inputs: Add slow benchmark inputs.
18063         * benchtests/exp-inputs: Likewise.
18064         * benchtests/pow-inputs: Likewise.
18065         * benchtests/sin-inputs: Likewise.
18066         * benchtests/slowatan-inputs: Remove.
18067         * benchtests/slowatan.c: Remove.
18068         * benchtests/slowcos-inputs: Remove.
18069         * benchtests/slowcos.c: Remove.
18070         * benchtests/slowexp-inputs: Remove.
18071         * benchtests/slowexp.c: Remove.
18072         * benchtests/slowpow-inputs: Remove.
18073         * benchtests/slowpow.c: Remove.
18074         * benchtests/slowsin-inputs: Remove.
18075         * benchtests/slowsin.c: Remove.
18076         * benchtests/slowtan-inputs: Remove.
18077         * benchtests/slowtan.c: Remove.
18078         * benchtests/tan-inputs: Add slow benchmark inputs.
18079         * scripts/bench.pl: Parse comments and directives.
18080
18081         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18082         in CPPFLAGS.
18083         ($(objpfx)bench-%.c): Remove *-ITER.
18084         * benchtests/bench-modf.c: Remove definition of ITER.
18085         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18086         (main): Loop for DURATION seconds instead of fixed number of
18087         iterations.
18088         * scripts/bench.pl: Don't expect iterations in parameters.
18089
18090 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18091
18092         * io/fchdir.c (__fchdir): Renamed from fchdir.
18093         (fchdir): Define as weak alias.
18094
18095 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18096
18097         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
18098         (ERRNO_EDOM): Likewise.
18099         (ERRNO_ERANGE): Likewise.
18100         (noErrnoTests): New variable.
18101         (init_max_error): Set errno to 0.
18102         (test_single_errno): New function.
18103         (test_errno): Likewise.
18104         (check_float_internal): Call test_errno.  Set errno to 0.
18105         (check_complex): Refer to errno tests in comment.
18106         (check_int): Call test_errno.  Set errno to 0.
18107         (check_long): Likewise.
18108         (check_bool): Likewise.
18109         (check_longlong): Likewise.
18110         (cos_test): Use ERRNO_* flags for errno tests instead of
18111         check_int.
18112         (expm1_test): Likewise.
18113         (fmod_test): Likewise.
18114         (ilogb_test): Likewise.
18115         (lgamma_test): Likewise.
18116         (pow_test): Likewise.
18117         (remainder_test): Likewise.
18118         (sin_test): Likewise.
18119         (tan_test): Likewise.
18120         (yn_test): Likewise.
18121         (initialize): Set errno to 0.
18122         (main): Print number of errno tests.
18123         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
18124
18125 2013-04-29  Andreas Jaeger  <aj@suse.de>
18126
18127         [BZ #15084]
18128         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
18129         and RES_USEVC.
18130
18131         [BZ #15085]
18132         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
18133         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
18134         unimplemented.
18135
18136         [BZ #15380]
18137         * stdlib/random.c (__initstate): Return NULL if
18138         __initstate fails.
18139
18140         [BZ #15086]
18141         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
18142         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
18143         RES_SNGLKUPREOP.
18144
18145 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18146
18147         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18148
18149 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18150
18151         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
18152         of individual tests.
18153         (casin_test): Likewise.
18154         (casinh_test): Likewise.
18155
18156 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
18157
18158         [BZ #15409]
18159         * math/s_catan.c (__catan): Handle arguments with large real or
18160         imaginary part separately without squaring.
18161         * math/s_catanf.c (__catanf): Likewise.
18162         * math/s_catanh.c (__catanh): Likewise.
18163         * math/s_catanhf.c (__catanhf): Likewise.
18164         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18165         and redefine.
18166         (__catanhl): Handle arguments with large real or imaginary part
18167         separately without squaring.
18168         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18169         and redefine.
18170         (__catanl): Handle arguments with large real or imaginary part
18171         separately without squaring.
18172         * math/libm-test.inc (catan_test): Add more tests.
18173         (catanh_test): Likewise.
18174         * sysdeps/i386/fpu/libm-test-ulps: Update.
18175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18176
18177 2013-04-27  Andreas Jaeger  <aj@suse.de>
18178
18179         [BZ #15007]
18180         * stdlib/stdlib.h: Update guards for qecvt.
18181         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
18182         <stdlib.h>.
18183
18184 2013-04-27  Allan McRae  <allan@archlinux.org>
18185
18186         * sysdeps/i386/fpu/libm-test-ulps: Update.
18187
18188 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
18189
18190         [BZ #15406]
18191         * math/s_catan.c: Include <float.h>.
18192         (__catan): Ensure underflow exception occurs for underflowed
18193         result.
18194         * math/s_catanf.c: Include <float.h>.
18195         (__catanf): Ensure underflow exception occurs for underflowed
18196         result.
18197         * math/s_catanh.c: Include <float.h>.
18198         (__catanh): Ensure underflow exception occurs for underflowed
18199         result.
18200         * math/s_catanhf.c: Include <float.h>.
18201         (__catanhf): Ensure underflow exception occurs for underflowed
18202         result.
18203         * math/s_catanhl.c: Include <float.h>.
18204         (__catanhl): Ensure underflow exception occurs for underflowed
18205         result.
18206         * math/s_catanl.c: Include <float.h>.
18207         (__catanl): Ensure underflow exception occurs for underflowed
18208         result.
18209         * math/libm-test.inc (catan_test): Add more tests.
18210         (catanh_test): Likewise.
18211
18212         [BZ #15405]
18213         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
18214         underflowed result.
18215         * math/s_ccoshf.c (__ccoshf): Likewise.
18216         * math/s_ccoshl.c (__ccoshl): Likewise.
18217         * math/s_csin.c (__csin): Likewise.
18218         * math/s_csinf.c (__csinf): Likewise.
18219         * math/s_csinh.c (__csinh): Likewise.
18220         * math/s_csinhf.c (__csinhf): Likewise.
18221         * math/s_csinhl.c (__csinhl): Likewise.
18222         * math/s_csinl.c (__csinl): Likewise.
18223         * math/libm-test.inc (ccos_test): Add more tests.
18224         (ccosh_test): Likewise.
18225         (csin_test): Likewise.
18226         (csinh_test): Likewise.
18227
18228 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18229
18230         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
18231         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
18232         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
18233         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
18234         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
18235         powerpc/power5+/fpu folders.
18236         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18237
18238
18239 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18240
18241         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18242
18243 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
18244
18245         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
18246         additions to variable.
18247         [$(config-machine) = x86_64] (modules-names): Likewise.
18248         ($(objpfx)tst-audit3): Remove dependency.
18249         ($(objpfx)tst-audit3.out): Likewise.
18250         ($(objpfx)tst-audit4): Likewise.
18251         ($(objpfx)tst-audit4.out): Likewise.
18252         ($(objpfx)tst-audit5): Likewise.
18253         ($(objpfx)tst-audit5.out): Likewise.
18254         ($(objpfx)tst-audit6): Likewise.
18255         ($(objpfx)tst-audit6.out): Likewise.
18256         ($(objpfx)tst-audit7): Likewise.
18257         ($(objpfx)tst-audit7.out): Likewise.
18258         (tst-audit3-ENV): Remove variable.
18259         (tst-audit4-ENV): Likewise.
18260         (tst-audit5-ENV): Likewise.
18261         (tst-audit6-ENV): Likewise.
18262         (tst-audit7-ENV): Likewise.
18263         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
18264         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
18265         addition to variable.
18266         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
18267         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
18268         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
18269         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
18270         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
18271         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
18272         tst-audit3, tst-audit4 and tst-audit5.
18273         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
18274         tst-audit6 and tst-audit7.
18275         [$(subdir) = elf] (modules-names): Add audit modules for those
18276         tests.
18277         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
18278         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
18279         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
18280         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
18281         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
18282         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
18283         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
18284         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
18285         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
18286         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
18287         [$(subdir) = elf] (tst-audit3-ENV): New variable.
18288         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
18289         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
18290         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
18291         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
18292         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
18293         Likewise.
18294         [$(subdir) = elf && $(config-cflags-avx) = yes]
18295         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
18296         [$(subdir) = elf && $(config-cflags-avx) = yes]
18297         (CFLAGS-tst-auditmod4a.c): Likewise.
18298         [$(subdir) = elf && $(config-cflags-avx) = yes]
18299         (CFLAGS-tst-auditmod4b.c): Likewise.
18300         [$(subdir) = elf && $(config-cflags-avx) = yes]
18301         (CFLAGS-tst-auditmod6b.c): Likewise.
18302         [$(subdir) = elf && $(config-cflags-avx) = yes]
18303         (CFLAGS-tst-auditmod6c.c): Likewise.
18304         [$(subdir) = elf && $(config-cflags-avx) = yes]
18305         (CFLAGS-tst-auditmod7b.c): Likewise.
18306         * elf/tst-audit3.c: Move to ...
18307         * sysdeps/x86_64/tst-audit3.c: ... here.
18308         * elf/tst-audit4.c: Move to ...
18309         * sysdeps/x86_64/tst-audit4.c: ... here.
18310         * elf/tst-audit5.c: Move to ...
18311         * sysdeps/x86_64/tst-audit5.c: ... here.
18312         * elf/tst-audit6.c: Move to ...
18313         * sysdeps/x86_64/tst-audit6.c: ... here.
18314         * elf/tst-audit7.c: Move to ...
18315         * sysdeps/x86_64/tst-audit7.c: ... here.
18316         * elf/tst-auditmod3a.c: Move to ...
18317         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
18318         * elf/tst-auditmod3b.c: Move to ...
18319         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
18320         * elf/tst-auditmod4a.c: Move to ...
18321         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
18322         * elf/tst-auditmod4b.c: Move to ...
18323         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
18324         * elf/tst-auditmod5a.c: Move to ...
18325         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
18326         * elf/tst-auditmod5b.c: Move to ...
18327         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
18328         * elf/tst-auditmod6a.c: Move to ...
18329         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
18330         * elf/tst-auditmod6b.c: Move to ...
18331         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
18332         * elf/tst-auditmod6c.c: Move to ...
18333         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
18334         * elf/tst-auditmod7a.c: Move to ...
18335         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
18336         * elf/tst-auditmod7b.c: Move to ...
18337         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
18338
18339 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
18340
18341         [BZ #15366]
18342         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
18343         define unconditionally.
18344         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
18345         define unconditionally.
18346         (INT8_C, INT16_C, etc.): Likewise.
18347
18348 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
18349
18350         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
18351         __ehdr_start with hidden visibility.
18352
18353         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
18354
18355 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
18356
18357         * math/libm-test.inc (cos_test): Use accurate hex constants.
18358         (sincost_test): Likewise.
18359
18360 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
18361
18362         * math/libm-test.inc (catan_test): Add more tests.
18363         (catanh_test): Likewise.
18364
18365         * math/s_catanf.c (__catanf): Use suffixed floating-point
18366         constants.
18367         * math/s_catanhf.c (__catanhf): Likewise.
18368         * math/s_catanhl.c (__catanhl): Likewise.
18369         * math/s_catanl.c (__catanl): Likewise.
18370
18371         [BZ #15394]
18372         * math/s_catan.c (__catan): Calculate imaginary part of result
18373         with log1p not log unless computing log of number close to 0.
18374         * math/s_catanf.c (__catanf): Likewise.
18375         * math/s_catanl.c (__catanl): Likewise.
18376         * math/s_catanh.c (__catanh): Calculate real part of result with
18377         log1p not log unless computing log of number close to 0.
18378         * math/s_catanhf.c (__catanhf): Likewise.
18379         * math/s_catanhl.c (__catanhl): Likewise.
18380         * math/libm-test.inc (catan_test): Add more tests.
18381         (catanh_test): Likewise.
18382         * sysdeps/i386/fpu/libm-test-ulps: Update.
18383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18384
18385 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18386
18387         * benchtests/Makefile: Mention files in which fast and slow
18388         paths of math functions are implemented.
18389
18390 2013-04-23  Roland McGrath  <roland@hack.frob.com>
18391
18392         * sysdeps/posix/timespec_get.c: New file.
18393
18394 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18395
18396         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
18397         POWER.
18398         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
18399         for POWER.
18400         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
18401         powerpc/power5/fpu folders.
18402         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
18403         * benchtests/Makefile: Add modf testcase.
18404         * benchtests/bench-modf.c: New file: Benchmark test for mo
18405
18406 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
18407
18408         [BZ #14888]
18409         * time/Makefile (tests): Add tst-strptime-whitespace.
18410         * time/strptime_l.c (get_number): Use ISSPACE.
18411         (__strptime_internal): Likewise.
18412         * time/tst-strptime-whitespace.c: New test case.
18413
18414 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
18415
18416         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
18417         member.
18418         (_nss_files_init): Set it here.
18419
18420 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
18421
18422         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
18423         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
18424         unsigned.
18425
18426 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
18427
18428         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
18429
18430 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18431
18432         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
18433         size just once.
18434
18435 2013-04-21  David S. Miller  <davem@davemloft.net>
18436
18437         * po/ru.po: Update Russion translation from translation project.
18438
18439 2013-04-17  Adam Conrad  <adconrad@0c3.net>
18440
18441         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
18442         and setfsgid.
18443
18444 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
18445
18446         * configure.in: Remove i386 configure warning. Remove i386 case.
18447         * configure: Regenerate.
18448         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
18449         Add example to error message.
18450         * sysdeps/i386/configure: Regenerate.
18451
18452 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
18453
18454         * benchtests/Makefile (bench): Add cos, tan, slowcos and
18455         slowtan.
18456         * benchtests/cos-inputs: New file.
18457         * benchtests/slowcos-inputs: New file.
18458         * benchtests/slowcos.c: New file.
18459         * benchtests/slowtan-inputs: New file.
18460         * benchtests/slowtan.c: New file.
18461         * benchtests/tan-inputs: New file.
18462
18463 2013-04-16  Roland McGrath  <roland@hack.frob.com>
18464
18465         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
18466         considered kosher.
18467
18468 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18469
18470         * benchtests/Makefile: Include cppflags-iterator.mk to add
18471         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
18472
18473         * Makefile.in (bench-clean): New target.
18474         * benchtests/Makefile (bench-clean): Likewise.
18475
18476 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
18477
18478         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
18479
18480 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18481
18482         * stdio-common/tstdiomisc.c: Fix coding-style violation.
18483
18484 2013-04-15  Andreas Schwab  <schwab@suse.de>
18485
18486         * nscd/grpcache.c (cache_addgr): Properly check for short write.
18487         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18488         * nscd/pwdcache.c (cache_addpw): Likewise.
18489         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
18490         more than recsize.
18491
18492 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18493
18494         * benchtests/Makefile (bench): Write all output to
18495         bench-out.tmp together.
18496
18497 2013-04-15  Andreas Schwab  <schwab@suse.de>
18498
18499         * nscd/nscd.c (main): Don't fork again after closing files.
18500
18501 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18502
18503         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
18504
18505         * benchtests/Rules (bench-deps): Collect dependencies into a
18506         single variable.  Add Makefile to dependencies.
18507         ($(objpfx)bench-%.c): Depend on bench-deps.
18508
18509 2013-04-12  Roland McGrath  <roland@hack.frob.com>
18510             Xavier Roche  <roche+kml2@exalead.com>
18511
18512         [BZ #15361]
18513         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
18514         just that it's a file descriptor.
18515         * manual/llio.texi (Synchronizing AIO Operations): Update description
18516         for EBADF error from aio_fsync.
18517
18518 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
18519
18520         * Rules (bench): Move target definition...
18521         * benchtests/Makefile: ... here.
18522
18523 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
18524
18525         * math/libm-test.inc (cos_test): Fix PI/2 test.
18526         (sincos_test): Likewise.
18527         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
18528         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
18529
18530 2013-04-11  Andreas Schwab  <schwab@suse.de>
18531
18532         [BZ #13988]
18533         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
18534         accept exponent character only when digits were seen.
18535         * stdio-common/Makefile (tests): Add bug26.
18536         * stdio-common/bug26.c: New file.
18537
18538         [BZ #14293]
18539         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
18540         non-freeable.
18541
18542 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
18543
18544         * Makeconfig (rtld-prefix): Define built linker prefix.
18545         * Rules (run-bench): Use it.
18546         * math/Makefile (run-regen-ulps): Likewise.
18547
18548         * Rules (bench): Remove eval.
18549
18550 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18551             Roland McGrath  <roland@hack.frob.com>
18552             Ondrej Bilka  <neleai@seznam.cz>
18553
18554         [BZ #15346]
18555         * time/getdate.c: Include ctype.h and alloca.h.
18556         (__getdate_r): Trim leading and trailing spaces of input.
18557         * time/tst-getdate.c (tests): Add tests with leading and
18558         trailing spaces.
18559
18560 2013-04-08  Roland McGrath  <roland@hack.frob.com>
18561
18562         [BZ #14280]
18563         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
18564         when computing value.
18565
18566 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18567
18568         * math/README.libm-test (How can I generate "libm-test-ulps"?):
18569         Use testrun.sh to run libm tests.
18570
18571         [BZ #15309]
18572         * elf/dl-open.c (dl_open_worker): memset all of seen array.
18573
18574 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
18575
18576         [BZ #15264]
18577         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
18578
18579 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18580
18581         * Makefile.in (regen-ulps): New target.
18582         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
18583         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
18584         [ifneq (no,$(PERL)] (regen-ulps): New target.
18585         [ifeq (no,$(PERL)] (regen-ulps): New target.
18586         * math/libm-test.inc (ulps_file_name): Define.
18587         (output_dir): New variable.
18588         (options): Add "output-dir" option.
18589         (parse_opt): Handle 'o' case.
18590         (main): If output_dir is non-NULL use it as a prefix
18591         otherwise use "".
18592         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
18593
18594 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18595
18596         [BZ #10060, #10062]
18597         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
18598         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
18599         fail configure if __sync_val_compare_and_swap is not inlined.
18600         * sysdeps/i386/configure: Regenerate.
18601         * configure.in: Build for i686 when configured for i386.
18602         * configure: Regenerate.
18603         * README: Remove i386 reference.
18604
18605 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18606
18607         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
18608         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18609
18610 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18611
18612         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
18613         (lmsnanval): New variables.
18614         (F): Add conversion tests.
18615         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
18616         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
18617
18618         * stdio-common/tstdiomisc.c (F): Properly collect individual
18619         tests' results.
18620
18621         [BZ #14686, #15336]
18622         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
18623         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
18624         Instead, use input NaN values or generate a qNaN by arithmetic
18625         operation.  Also fix bugs to comply with the standard.
18626         * math/libm-test.inc (remainder_test): Add more tests.
18627
18628         [BZ #15335, #15342]
18629         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
18630         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
18631         input NaN values or generate a qNaN by arithmetic operation.
18632
18633         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
18634         unreachable code.
18635
18636         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
18637         definitions.
18638
18639 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
18640
18641         [BZ #14478]
18642         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
18643         underflowed result.
18644         * math/s_cexpf.c (__cexpf): Likewise.
18645         * math/s_cexpl.c (__cexpl): Likewise.
18646         * math/libm-test.inc (cexp_test): Add more tests.
18647
18648 2013-04-03  Andreas Schwab  <schwab@suse.de>
18649
18650         [BZ #15330]
18651         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
18652         order arrays from heap if bigger than alloca cutoff.
18653
18654 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
18655
18656         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
18657         (SNAN_TESTS_double): Refer to GCC PR56831.
18658         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
18659         GCC PR56828.
18660
18661 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
18662
18663         * Rules (bench): Move bench.out after the run is complete.
18664
18665         * Rules (bench): Echo currently running benchmark.
18666
18667         * benchtests/Makefile (bench): Add atan and slowatan.
18668         * benchtests/atan-inputs: New file.
18669         * benchtests/slowatan-inputs: New file.
18670         * benchtests/slowatan.c: New file.
18671
18672         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
18673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
18674         its value.
18675
18676         [BZ #15305]
18677         * sysdeps/unix/sysv/linux/kernel-features.h
18678         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
18679         __ASSUME_XFS_RESTRICTED_CHOWN.
18680         * sysdeps/unix/sysv/linux/pathconf.c
18681         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
18682         Save and restore errno.
18683
18684 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
18685
18686         [BZ #15327]
18687         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
18688         arguments using __kernel_casinh.
18689         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
18690         arguments using __kernel_casinhf.
18691         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
18692         arguments using __kernel_casinhl.
18693         * math/libm-test.inc (cacosh_test): Add more tests.
18694         * sysdeps/i386/fpu/libm-test-ulps: Update.
18695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18696
18697 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
18698
18699         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
18700         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
18701
18702         * bench/Makefile (bench): Add sin and slowsin.
18703         * benchtests/sin-inputs: New file.
18704         * benchtests/slowsin-inputs: New file.
18705         * benchtests/slowsin.c: New file.
18706
18707         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
18708         (bench): Add slowexp and slowpow.
18709         (exp-ITER): Increase iterations.
18710         (pow-ITER): Likewise.
18711         * benchtests/exp-inputs: Change input.
18712         * benchtests/pow-inputs: Likewise.
18713         * benchtests/slowexp-inputs: New file.
18714         * benchtests/slowexp.c: New file.
18715         * benchtests/slowpow-inputs: New file.
18716         * benchtests/slowpow.c: New file.
18717
18718 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18719
18720         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
18721         instructions.
18722         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
18723         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
18724         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
18725         * benchtests/Makefile: Add rint benchtest.
18726         * benchtests/rint-inputs: Input for rint benchtest.
18727
18728 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18729
18730         * Versions.def (libm): Add GLIBC_2.18.
18731         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
18732         hidden libm prototypes.
18733         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
18734         * math/Makefile (libm-calls): Add s_issignaling.
18735         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
18736         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
18737         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
18738         declaration.
18739         * math/math.h [__USE_GNU] (issignaling): New macro.
18740         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
18741         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
18742         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
18743         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
18744         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
18745         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
18746         * manual/arith.texi (issignaling): New section.
18747         * manual/libm-err-tab.pl (@all_functions): Update comment.
18748         * math/gen-libm-test.pl (parse_args): Apply special handling for
18749         issignaling.
18750         * math/libm-test.inc (print_float, issignaling_test): New
18751         functions.
18752         (check_float_internal): Add issignaling checks.
18753         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
18754         default definition.
18755         * sysdeps/powerpc/math-tests.h: New file.
18756         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
18757         tests.
18758         * math/test-snan.c (TEST_FUNC): Likewise.
18759
18760 2013-03-30  David S. Miller  <davem@davemloft.net>
18761
18762         * po/de.po: Update from translation team.
18763
18764 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
18765
18766         [BZ #10357]
18767         * math/k_casinh.c (__kernel_casinh): Handle arguments with
18768         imaginary part less than 1.0 and real part less than 0.5
18769         specially.
18770         * math/k_casinhf.c (__kernel_casinhf): Likewise.
18771         * math/k_casinhl.c (__kernel_casinhl): Likewise.
18772         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
18773         (cacos_test): Add more tests.
18774         (casin_test): Likewise.
18775         (casinh_test): Likewise.
18776         * sysdeps/i386/fpu/libm-test-ulps: Update.
18777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18778
18779 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18780
18781         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
18782         ONE with its value.
18783
18784         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
18785         (__pow_mp): Replace ONE and MONE with their values.
18786         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
18787         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
18788         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
18789         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
18790         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
18791         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
18792
18793         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
18794
18795         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
18796         (__pow_mp): Replace ZERO and MZERO with their values.
18797         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
18798         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
18799         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
18800         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
18801         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
18802         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
18803         (__sqr): Likewise.
18804
18805         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
18806
18807         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
18808
18809 2013-03-28  Roland McGrath  <roland@hack.frob.com>
18810
18811         * include/stdlib.h [!SHARED] (__call_tls_dtors):
18812         Declare with __attribute__ ((weak)).
18813         * stdlib/exit.c (__libc_atexit) [!SHARED]:
18814         Call __call_tls_dtors only if it's not NULL.
18815
18816 2013-03-28  Roland McGrath  <roland@hack.frob.com>
18817
18818         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
18819         didn't do it already, then set _dl_phdr and _dl_phnum based on the
18820         magic __ehdr_start linker symbol if it's defined.
18821         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
18822         them up here if it was already done.
18823
18824         * elf/dl-support.c (_dl_phdr): Make pointer to const.
18825         (_dl_aux_init): Use const in cast when setting it.
18826         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
18827         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
18828         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
18829
18830         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
18831         Declare them here.
18832         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
18833         * csu/libc-tls.c: Nor here.
18834         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
18835
18836         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
18837         (__libc_message): Never call vsyslog.
18838
18839 2013-03-28  Alan Modra  <amodra@gmail.com>
18840
18841         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
18842         Define as empty.
18843         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
18844         Likewise.
18845
18846 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18847
18848         [BZ #15214]
18849         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
18850         underflow.
18851         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18852
18853 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18854
18855         [BZ #15304]
18856         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
18857         Don't add gid passed as argument.
18858
18859         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
18860
18861 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
18862
18863         [BZ #15307]
18864         * math/k_casinh.c (__kernel_casinh): Handle arguments with
18865         imaginary part between 1.0 and 1.5 and real part less than 0.5
18866         specially.
18867         * math/k_casinhf.c (__kernel_casinhf): Likewise.
18868         * math/k_casinhl.c (__kernel_casinhl): Likewise.
18869         * math/libm-test.inc (cacos_test): Add more tests.
18870         (casin_test): Likewise.
18871         (casinh_test): Likewise.
18872         * sysdeps/i386/fpu/libm-test-ulps: Update.
18873         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18874
18875 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18876
18877         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
18878         constants.
18879         (norm): Likewise.
18880         (denorm): Likewise.
18881         (__dbl_mp): Likewise.
18882         (add_magnitudes): Likewise.
18883         (sub_magnitudes): Likewise.
18884         (__add): Likewise.
18885         (__sub): Likewise.
18886         (__mul): Likewise.
18887         (__sqr): Likewise.
18888         (__inv): Likewise.
18889         (__dvd): Likewise.
18890
18891         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
18892         commented code.
18893         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
18894         (__dubcos): Likewise.
18895         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
18896         (__ieee754_acos): Likewise.
18897         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
18898         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
18899         (__exp1): Likewise.
18900         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
18901         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
18902         (log1): Likewise.
18903         (my_log2): Likewise.
18904         (checkint): Likewise.
18905         * sysdeps/ieee754/dbl-64/e_remainder.c
18906         (__ieee754_remainder): Likewise.
18907         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
18908         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
18909         (bsloww): Likewise.
18910         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
18911
18912         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
18913         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
18914         MANTISSA_STORE_T to store computations on mantissa.  Use
18915         macros for rounding and division.
18916         (denorm): Likewise.
18917         (__dbl_mp): Likewise.
18918         (add_magnitudes): Likewise.
18919         (sub_magnitudes): Likewise.
18920         (__mul): Likewise.
18921         (__sqr): Likewise.
18922         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
18923         powers of two in terms of TWOPOW macro.
18924         (mp_no): Make type of mantissa as MANTISSA_T.
18925         [!RADIXI]: Define RADIXI.
18926         [!TWO52]: Define TWO52.
18927         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
18928
18929 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18930
18931         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
18932         llroundl symbol when building for PPC32.
18933
18934 2013-03-24  Mark H Weaver  <mhw@netris.org>
18935
18936         * manual/arith.texi (Normalization Functions): Fix prototypes for
18937         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
18938
18939 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18940
18941         [BZ #13889]
18942         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
18943         high value to check if expl overflow.
18944         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
18945         to check for underflow and overflow.
18946         * math/libm-test.inc: Add exp test.
18947
18948 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
18949
18950         [BZ #11120]
18951         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
18952         with NOT_IN_libc.
18953
18954 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18955
18956         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
18957         symbol.
18958
18959 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
18960
18961         * math/gen-libm-test.pl (parse_args, special_functions): Properly
18962         wrap blocks consisting of several statements.
18963
18964         * sysdeps/generic/math-tests.h: New file.
18965         * sysdeps/i386/fpu/math-tests.h: Likewise.
18966         * math/test-snan.c: Include it.
18967         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
18968
18969 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
18970
18971         [BZ #15285]
18972         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
18973         (__ieee754_j0l): Do not improve calculations using cos of twice
18974         input for inputs above LDBL_MAX / 2.0L.
18975         (__ieee754_y0l): Likewise.
18976         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
18977         (__ieee754_j1l): Do not improve calculations using cos of twice
18978         input for inputs above LDBL_MAX / 2.0L.
18979         (__ieee754_y1l): Likewise.
18980         * math/libm-test.inc (j0_test): Add another test.
18981         (j1_test): Likewise.
18982         (y0_test): Likewise.
18983         (y1_test): Likewise.
18984         * sysdeps/i386/fpu/libm-test-ulps: Update.
18985
18986 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18987
18988         * Rules ($(objpfx)bench-%.c): Include code from a C source
18989         file.
18990
18991 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
18992
18993         [BZ #15287]
18994         * math/k_casinh.c (__kernel_casinh): Handle arguments with
18995         imaginary part 1.0 and real part less than 0.5 specially.
18996         * math/k_casinhf.c (__kernel_casinhf): Likewise.
18997         * math/k_casinhl.c (__kernel_casinhl): Likewise.
18998         * math/libm-test.inc (cacos_test): Add more tests.
18999         (casin_test): Likewise.
19000         (casinh_test): Likewise.
19001         * sysdeps/i386/fpu/libm-test-ulps: Update.
19002         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19003
19004 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19005
19006         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19007         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19008
19009 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19010
19011         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19012         * config.make.in (config-cflags-sse4): Remove variable.
19013         (config-cflags-avx): Likewise.
19014         (config-cflags-sse2avx): Likewise.
19015         (config-cflags-novzeroupper): Likewise.
19016         (config-asflags-i686): Likewise.
19017         (have-mfma4): Likewise.
19018         (have-as-vis3): Likewise.
19019         (MIG): Likewise.
19020         * configure.in (MIG): Do not AC_SUBST.
19021         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19022         (libc_cv_cc_sse4): Do not AC_SUBST.
19023         (libc_cv_cc_avx): Likewise.
19024         (libc_cv_cc_sse2avx): Likewise.
19025         (libc_cv_cc_novzeroupper): Likewise.
19026         (libc_cv_cc_fma4): Likewise.
19027         (libc_cv_as_i686): Likewise.
19028         (libc_cv_sparc_as_vis3): Likewise.
19029         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19030         LIBC_CONFIG_VAR.
19031         (config-asflags-i686): Likewise.
19032         (config-cflags-avx): Likewise.
19033         (config-cflags-sse2avx): Likewise.
19034         (have-mfma4): Likewise.
19035         (config-cflags-novzeroupper): Likewise.
19036         * sysdeps/mach/configure.in (MIG): Likewise.
19037         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19038         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19039         LIBC_CONFIG_VAR.
19040         (config-cflags-avx): Likewise.
19041         (config-cflags-sse2avx): Likewise.
19042         (have-mfma4): Likewise.
19043         (config-cflags-novzeroupper): Likewise.
19044         * configure: Regenerated.
19045         * sysdeps/i386/configure: Likewise.
19046         * sysdeps/mach/configure: Likewise.
19047         * sysdeps/sparc/configure: Likewise.
19048         * sysdeps/x86_64/configure: Likewise.
19049
19050 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19051
19052         [BZ #14812]
19053         * locale/programs/localedef.c (options): Put N_ translation marker
19054         on argument names, not just descriptions.
19055
19056 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19057
19058         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19059
19060 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19061
19062         [BZ #14176]
19063         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19064
19065 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19066
19067         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19068         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19069         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19070         [!BEFORE_ABORT] (before_abort): New function.
19071         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19072         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19073         (writev_for_fatal): New function.
19074         (WRITEV_FOR_FATAL): New macro; call that.
19075         (backtrace_and_maps): New function.
19076         (BEFORE_ABORT): New macro; call that.
19077         (struct str_list): Type removed.
19078         (__libc_message, __libc_fatal): Functions removed.
19079         Include <sysdeps/posix/libc_fatal.c> instead.
19080
19081 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19082
19083         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19084         constants.
19085         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19086         double constants.
19087
19088 2013-03-19  Andreas Schwab  <schwab@suse.de>
19089
19090         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19091         * sysdeps/gnu/configure: Regenerate.
19092
19093         * configure.in: Substitute libc_cv_rtlddir.
19094         * configure: Regenerate.
19095         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
19096         * Makeconfig (rtlddir, inst_rtlddir): New variables.
19097         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
19098         * elf/Makefile (install-others, CFLAGS-interp.c)
19099         (ldso_install, common-ldd-rewrite): Likewise.
19100         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
19101         $(inst_slibdir)/$(rtld-installed-name).
19102         * scripts/rellns-sh: Add -p option.
19103         * Makerules (make-shlib-link): Use rellns-sh to get relative name
19104         for source.
19105
19106 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19107
19108         * manual/nptl.texi: Renamed to ...
19109         * manual/threads.texi: ... this.
19110         * manual/Makefile (chapters): Update.
19111
19112 2013-03-18  Roland McGrath  <roland@hack.frob.com>
19113
19114         [BZ #14812]
19115         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
19116         on argument names, not just descriptions.
19117         * malloc/memusagestat.c (options): Likewise.
19118         * nss/getent.c (options): Likewise.
19119
19120 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
19121
19122         [BZ #14812]
19123         * iconv/iconv_prog.c (options): Put N_ translation marker
19124         on argument names, not just descriptions.
19125         * iconv/iconvconfig.c (options): Likewise.
19126
19127 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
19128
19129         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
19130         implementation which is faster on all x86_64 architectures.
19131         Tested on AMD, Intel Nehalem, SNB, IVB.
19132         * sysdeps/x86_64/strnlen.S: Likewise.
19133
19134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
19135         Remove all multiarch strlen and strnlen versions.
19136         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
19137         Remove strlen and strnlen related parts.
19138
19139         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
19140         Inline strlen part.
19141         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
19142
19143         * sysdeps/x86_64/multiarch/strlen.S: Remove.
19144         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
19145         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
19146         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
19147         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
19148         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
19149
19150 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
19151
19152         * manual/memory.texi (Malloc Tunable Parameters):
19153         Sort parameters alphabetically. Add comments for missing entries.
19154
19155 2013-03-17  David S. Miller  <davem@davemloft.net>
19156
19157         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19158
19159 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
19160
19161         [BZ #15283]
19162         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
19163         for arguments at most half maximum finite value.
19164         * math/libm-test.inc (j0_test): Add more tests.
19165         (j1_test): Likewise.
19166         (y0_test): Likewise.
19167         (y1_test): Likewise.
19168         * sysdeps/i386/fpu/libm-test-ulps: Update.
19169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19170
19171         [BZ #14155]
19172         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
19173         1 / x and functions P and Q for arguments above 0x1p256L.
19174         (__ieee754_y0l): Likewise.
19175         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19176         (__ieee754_y1l): Likewise.
19177         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
19178         (j1_test): Likewise.
19179         (y0_test): Likewise.
19180         (y1_test): Likewise.
19181
19182 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
19183
19184         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
19185         variable.
19186
19187 2013-03-15  Roland McGrath  <roland@hack.frob.com>
19188
19189         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
19190         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
19191         zero since it's initialized to EXEC_PAGESIZE.
19192
19193         * sysdeps/unix/sysv/linux/ldsodefs.h
19194         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
19195         * sysdeps/generic/ldsodefs.h: ... here.
19196
19197 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
19198
19199         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
19200
19201         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
19202         math/test-snan.c.
19203         * math/test-snan.c: Renamed from
19204         sysdeps/powerpc/fpu/test-powerpc-snan.c.
19205         * math/Makefile (tests): Add test-snan.
19206         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
19207         test-powerpc-snan.
19208
19209         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
19210         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
19211         functions.
19212         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
19213         __builtin_nan family of functions.
19214         * math/libm-test.inc (initialize): Initialize qnan_value with
19215         __builtin_nan family of functions.
19216         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
19217         Remove variables.
19218         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
19219         Remove functions.
19220         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
19221         storage class.  Initialize qNaN_var and sNaN_var with
19222         __builtin_nan and __builtin_nans families of functions,
19223         respectively.
19224
19225         * math/libm-test.inc (acosh_test): Also test with qNaN input.
19226         (sqrt_test): Remove duplicate test with qNaN input.
19227         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
19228         (round_test, signbit_test, significand_test): Note missing +/-Inf
19229         as well as qNaN tests.
19230
19231         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
19232         qNaN_var.  Fix a few strings, too.
19233         * math/libm-test.inc (nan_value): Rename to qnan_value.
19234         * math/gen-libm-test.pl (%beautify): Adjust to that.
19235         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
19236         * math/test-misc.c (main): Likewise.
19237         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
19238         to __qnan_bytes, and __qnan_union, respectively.
19239         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
19240         Likewise.
19241         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
19242         and lqnanval, respectively.
19243         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
19244         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
19245         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
19246         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
19247
19248         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
19249         * math/test-misc.c (main) [__x86_64__]: Enable test for long
19250         doubles.
19251
19252         * math/test-misc.c (main): Fix copy'n'pastos.
19253         * misc/tst-efgcvt.c (special): Likewise.
19254
19255         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
19256         Remove declarations.
19257
19258 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19259
19260         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
19261         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
19262         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
19263         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
19264
19265 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19266
19267         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
19268         macro to return vdso values correctly in IFUNC implementations.
19269         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
19270         Optimization by using IFUNC.
19271
19272 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19273             Richard Henderson  <rth@redhat.com>
19274             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19275
19276         * Makefile.in (bench): New target.
19277         * NEWS: Mention the benchmark framework.
19278         * Rules (bench): Likewise.
19279         (binaries-bench): Generate binaries for functions to
19280         benchmark.
19281         * benchtests/Makefile: New makefile for benchmark tests.
19282         * benchtests/bench-skeleton.c: New skeleton file for benchmark
19283         programs.
19284         * benchtests/exp-inputs: New input file for EXP function.
19285         * benchtests/pow-inputs: New input file for POW function.
19286         * scripts/bench.pl: New script to generate source files for
19287         benchmark programs.
19288
19289 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19290
19291         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19292         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
19293         computations on mantissa.  Use macros for rounding and
19294         division.
19295         (denorm): Likewise.
19296         (__dbl_mp): Likewise.
19297         (add_magnitudes): Likewise.
19298         (sub_magnitudes): Likewise.
19299         (__mul): Likewise.
19300         (__sqr): Likewise.
19301         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19302         powers of two in terms of TWOPOW macro.
19303         (mp_no): Make type of mantissa as MANTISSA_T.
19304         [!RADIXI]: Define RADIXI.
19305         [!TWO52]: Define TWO52.
19306         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19307
19308         * manual/nptl.texi (cindex): Modify threads to pthreads.
19309
19310 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
19311
19312         * sysdeps/x86_64/preconfigure: Regenerated.
19313
19314 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
19315
19316         [BZ #14155]
19317         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
19318         0x1p28 and above.
19319         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
19320         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
19321         0x1p28 and above.
19322         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
19323         * math/libm-test.inc (j0_test): Do not allow one spurious
19324         underflow exception.
19325         (y1_test): Likewise.
19326
19327 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19328
19329         * manual/Makefile (chapters): Add nptl.
19330         * manual/debug.texi (Debugging Support): Add link to Threads
19331         chapter.
19332         * manual/nptl.texi: New file.
19333
19334         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
19335
19336 2013-03-14  Petr Baudis  <pasky@ucw.cz>
19337
19338         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
19339         for non-NULL pointer before the memory validity test. Pointed
19340         out by Holger Brunck <holger.brunck@keymile.com>.
19341
19342 2013-03-13  Andreas Schwab  <schwab@suse.de>
19343
19344         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
19345         instead of .os.
19346
19347 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
19348
19349         * timezone/zic.c: Update from tzcode 2013b.
19350
19351 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
19352
19353         * manual/install.texi (Configuring and compiling):
19354         Mention i686 and i586.
19355         * INSTALL: Regenerate.
19356
19357 2013-03-12  Roland McGrath  <roland@hack.frob.com>
19358
19359         * sysdeps/init_array/elf-init.c: New file.
19360         * csu/elf-init.c
19361         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
19362         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
19363
19364         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
19365         __gmon_start__ as global, but as static with a .preinit_array pointer.
19366         * sysdeps/init_array/gmon-start.c: New file.  Use that.
19367         * sysdeps/init_array/crti.S: New file, empty except for comments.
19368         * sysdeps/init_array/crtn.S: Likewise.
19369
19370 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
19371
19372         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
19373         definining bcopy.
19374         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19375         Remove Prefer_SSE_for_memop.
19376         * sysdeps/x86_64/multiarch/init-arch.h: Remove
19377         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
19378         HAS_PREFER_SSE_FOR_MEMOP.
19379         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
19380         memset-x86-64.
19381         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19382         Remove bzero, memset ifunc support.
19383         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
19384         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
19385         * sysdeps/x86_64/multiarch/memset.S: Likewise.
19386         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19387
19388 2013-03-11  Andreas Schwab  <schwab@suse.de>
19389
19390         [BZ #15234]
19391         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
19392         by SHLIB_COMPAT.
19393         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
19394         (GLIBC_2.16): Remove pthread_atfork.
19395
19396 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19397
19398         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
19399         (ptestcases.h): Likewise.
19400
19401 2013-03-08  Roland McGrath  <roland@hack.frob.com>
19402
19403         * Makeconfig ($(common-objpfx)config.status): Depend on
19404         sysdeps/*/preconfigure{,.in} too.
19405
19406 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
19407
19408         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
19409         (__free_hook): Use void * instead of __malloc_ptr_t.
19410         (__malloc_hook): Likewise.
19411         (__realloc_hook): Likewise.
19412         (__memalign_hook): Likewise.
19413         (__after_morecore_hook): Likewise.
19414         * malloc/arena.c (save_malloc_hook): Likewise.
19415         (save_free_hook): Likewise.
19416         * malloc/hooks.c (malloc_hook_ini): Likewise.
19417         (realloc_hook_ini): Likewise.
19418         (memalign_hook_ini): Likewise.
19419         * malloc/malloc.c (malloc_hook_ini): Likewise.
19420         (realloc_hook_ini): Likewise.
19421         (memalign_hook_ini): Likewise.
19422         (__free_hook): Likewise.
19423         (__malloc_hook): Likewise.
19424         (__realloc_hook): Likewise.
19425         (__memalign_hook): Likewise.
19426         (__libc_malloc): Likewise.
19427         (__libc_free): Likewise.
19428         (__libc_realloc): Likewise.
19429         (__libc_memalign): Likewise.
19430         (__libc_valloc): Likewise.
19431         (__libc_pvalloc): Likewise.
19432         (__libc_calloc): Likewise.
19433         (__posix_memalign): Likewise.
19434         * malloc/morecore.c (__sbrk): Likewise.
19435         (__default_morecore): Likewise.
19436
19437         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
19438
19439         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
19440         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
19441         __malloc_ptrdiff_t.
19442
19443         * malloc/malloc.h (__malloc_size_t): Remove macro.
19444         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
19445         __malloc_size_t.
19446         (old_memalign_hook): Likewise.
19447         (old_realloc_hook): Likewise.
19448         (struct hdr): Likewise.
19449         (flood): Likewise.
19450         (mallochook): Likewise.
19451         (memalignhook): Likewise.
19452         (reallochook): Likewise.
19453         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
19454         (tr_old_realloc_hook): Likewise.
19455         (tr_old_memalign_hook): Likewise.
19456         (tr_mallochook): Likewise.
19457         (tr_reallochook): Likewise.
19458         (tr_memalignhook): Likewise.
19459
19460 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19461
19462         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
19463         default_ldbl_pack and using as default implementation.
19464         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
19465         implementation.
19466         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
19467         redundant definition.
19468         (ldbl_insert_mantissa): Likewise.
19469         (ldbl_canonicalize): Likewise.
19470         (ldbl_nearbyint): Likewise.
19471         (ldbl_pack): Rename to ldbl_pack_ppc.
19472         (ldbl_unpack): Rename to ldbl_unpack_ppc.
19473         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
19474         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
19475
19476 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
19477
19478         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
19479         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
19480         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
19481         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
19482         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
19483         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
19484         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
19485         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
19486
19487 2013-03-07  Andreas Jaeger  <aj@suse.de>
19488
19489         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19490         bits/mman-linux.h.
19491
19492 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19493
19494         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
19495         Include mpa.h and declare __MPEXP.
19496         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
19497         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
19498         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
19499         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
19500         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
19501         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
19502         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
19503
19504         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
19505         (__slowpow): Use long double EXPL and LOGL functions to
19506         compute POW.
19507         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
19508         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
19509         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
19510         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
19511         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
19512         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
19513
19514         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
19515         intermediate variable to calculate exponent.
19516         (__sqr): Likewise.
19517         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
19518         Likewise.
19519         (__sqr): Likewise.
19520
19521         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
19522         [!NO__SQR]: Define __sqr.
19523         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
19524         and NO__SQR.  Remove all code except __mul and __sqr.  Include
19525         sysdeps/ieee754/dbl-64/mpa.c.
19526         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
19527
19528         [BZ #12723]
19529         * posix/Makefile (tests): Add tst-pathconf.
19530         * posix/tst-pathconf.c: New test case.
19531         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
19532         _PC_PIPE_BUF.
19533         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
19534
19535 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
19536
19537         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
19538
19539 2013-03-06  Andreas Jaeger  <aj@suse.de>
19540
19541         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
19542         definition via __MAP_ANONYMOUS.
19543
19544         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
19545         it's not part of Linux headers.
19546
19547         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
19548         (MAP_HUGE_MASK): Define.
19549
19550         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19551         Define.
19552         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19553         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19554         Define.
19555         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19556         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19557         Define.
19558         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19559         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
19560         Define.
19561         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19562
19563         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
19564         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
19565         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
19566         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
19567         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
19568         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
19569
19570         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19571         Handle f2fs.
19572
19573         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19574         Handle f2fs and efivarfs.
19575
19576         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
19577         f2fs.
19578
19579         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
19580         (EFIVARFS_MAGIC): Add.
19581         (F2FS_LINK_MAX): Add.
19582
19583 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19584
19585         * stdio-common/vfprintf.c: Replace __builtin_expect with
19586         __glibc_unlikely.
19587
19588 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
19589
19590         [BZ #13550]
19591         * sysdeps/generic/bp-sym.h: Remove file.
19592         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
19593         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
19594         <bp-sym.h> and <bp-asm.h>.
19595         (__longjmp): Don't use BP_SYM.
19596         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
19597         and <bp-asm.h>.
19598         (memcpy): Don't use BP_SYM.
19599         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
19600         <bp-sym.h> and <bp-asm.h>.
19601         (memcpy): Don't use BP_SYM.
19602         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
19603         <bp-asm.h>.
19604         (memcpy): Don't use BP_SYM.
19605         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
19606         <bp-asm.h>.
19607         (memset): Don't use BP_SYM.
19608         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19609         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19610         (__bzero): Don't use BP_SYM.
19611         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19612         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19613         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
19614         <bp-sym.h> and <bp-asm.h>.
19615         (memcmp): Don't use BP_SYM.  Remove comment about bounded
19616         pointers.
19617         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
19618         <bp-sym.h> and <bp-asm.h>.
19619         (memcpy): Don't use BP_SYM.
19620         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
19621         <bp-sym.h> and <bp-asm.h>.
19622         (memset): Don't use BP_SYM.
19623         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19624         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19625         (__bzero): Don't use BP_SYM.
19626         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19627         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19628         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
19629         <bp-sym.h> and <bp-asm.h>.
19630         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19631         pointers.
19632         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
19633         <bp-sym.h> and <bp-asm.h>.
19634         (memcpy): Don't use BP_SYM.
19635         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
19636         <bp-sym.h> and <bp-asm.h>.
19637         (memset): Don't use BP_SYM.
19638         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19639         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19640         (__bzero): Don't use BP_SYM.
19641         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19642         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19643         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
19644         <bp-sym.h> and <bp-asm.h>.
19645         (__memchr): Don't use BP_SYM.
19646         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
19647         <bp-sym.h> and <bp-asm.h>.
19648         (memcmp): Don't use BP_SYM.  Remove comment about bounded
19649         pointers.
19650         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
19651         <bp-sym.h> and <bp-asm.h>.
19652         (memcpy): Don't use BP_SYM.
19653         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
19654         <bp-sym.h> and <bp-asm.h>.
19655         (__mempcpy): Don't use BP_SYM.
19656         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
19657         <bp-sym.h> and <bp-asm.h>.
19658         (__memrchr): Don't use BP_SYM.
19659         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
19660         <bp-sym.h> and <bp-asm.h>.
19661         (memset): Don't use BP_SYM.
19662         (__bzero): Likewise.
19663         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
19664         <bp-sym.h> and <bp-asm.h>.
19665         (__rawmemchr): Don't use BP_SYM.
19666         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
19667         <bp-sym.h> and <bp-asm.h>.
19668         (__STRCMP): Don't use BP_SYM.
19669         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
19670         <bp-sym.h> and <bp-asm.h>.
19671         (strchr): Don't use BP_SYM.
19672         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
19673         <bp-sym.h> and <bp-asm.h>.
19674         (__strchrnul): Don't use BP_SYM.
19675         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
19676         <bp-sym.h> and <bp-asm.h>.
19677         (strlen): Don't use BP_SYM.
19678         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
19679         <bp-sym.h> and <bp-asm.h>.
19680         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19681         pointers.
19682         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
19683         <bp-sym.h> and <bp-asm.h>.
19684         (__strnlen): Don't use BP_SYM.
19685         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
19686         <bp-sym.h> and <bp-asm.h>.
19687         (__GI__setjmp): Don't use BP_SYM.
19688         (_setjmp): Likewise.
19689         (__sigsetjmp): Likewise.
19690         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
19691         (L(start_addresses)): Don't use BP_SYM.
19692         (_start): Likewise.
19693         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
19694         <bp-asm.h>.
19695         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
19696         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
19697         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19698         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19699         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
19700         <bp-asm.h>.
19701         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
19702         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
19703         about bounded pointers.
19704         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19705         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19706         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
19707         <bp-asm.h>.
19708         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
19709         about bounded pointers.  Remove GKM FIXME comments.
19710         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19711         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
19712         <bp-asm.h>.
19713         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
19714         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
19715         Remove GKM FIXME comments.
19716         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19717         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19718         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
19719         <bp-asm.h>.
19720         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
19721         about bounded pointers.  Remove GKM FIXME comment.
19722         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
19723         and <bp-asm.h>.
19724         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19725         pointers.
19726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
19727         <bp-sym.h> and <bp-asm.h>.
19728         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
19729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
19730         <bp-sym.h> and <bp-asm.h>.
19731         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
19732         comment.
19733
19734 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19735
19736         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
19737         call free(NULL).
19738
19739 2013-03-05  David S. Miller  <davem@davemloft.net>
19740
19741         * po/es.po: Update from translation team.
19742
19743 2013-03-05  Andreas Jaeger  <aj@suse.de>
19744
19745         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
19746         <bits/mman-linux.h>.
19747         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
19748         is fine.
19749         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
19750         <bits/mman-linux.h> to end of file.
19751         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
19752         is fine.
19753         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
19754         <bits/mman-linux.h> to end of file.
19755         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
19756         is fine.
19757         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
19758         <bits/mman-linux.h> to end of file.
19759
19760         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
19761         (MCL_CURRENT, MCL_FUTURE): Define here.
19762
19763 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19764
19765         [BZ #15232]
19766         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
19767         attribute_hidden.
19768         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19769
19770 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19771
19772         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
19773         fourth parameter needed for rt_sigprocmask syscall.
19774         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
19775         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
19776         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
19777         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
19778         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
19779         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
19780
19781 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
19782
19783         [BZ #13550]
19784         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
19785         comment about bounded pointers.
19786         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
19787         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
19788
19789 2013-03-04  Andreas Jaeger  <aj@suse.de>
19790
19791         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
19792         common definitions.
19793
19794         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
19795         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
19796         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
19797         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19798         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19799         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19800
19801 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19802
19803         [BZ #15055]
19804         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19805         __ieee754_sqrl instead of __sqrl.
19806
19807 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
19808
19809         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
19810         * sysdeps/powerpc/fpu_control.h: ... here.
19811         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
19812         * sysdeps/powerpc/bits/fenvinline.h: ... here.
19813         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
19814         * sysdeps/powerpc/bits/mathinline.h: ... here.
19815
19816 2013-03-01  Roland McGrath  <roland@hack.frob.com>
19817
19818         * elf/dl-hwcaps.c (_dl_important_hwcaps):
19819         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
19820         to just [NEED_DL_SYSINFO_DSO].
19821         * elf/dl-support.c: Likewise.
19822         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
19823         * elf/rtld.c (dl_main): Likewise.
19824         * elf/setup-vdso.h (setup_vdso): Likewise.
19825         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
19826         * sysdeps/unix/sysv/linux/dl-sysdep.c
19827         (_dl_discover_osversion): Likewise.
19828
19829 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
19830
19831         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
19832         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
19833
19834 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
19835
19836         * NEWS: Mention libm performance improvements and non-x86 PI
19837         futex support.
19838
19839         * csu/libc-start.c (__pthread_initialize_minimal): Change
19840         function arguments.
19841         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
19842
19843 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
19844
19845         [BZ #13550]
19846         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
19847         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
19848         <bp-sym.h> and <bp-asm.h>.
19849         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
19850         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
19851         and <bp-asm.h>.
19852         (memcpy): Don't use BP_SYM.
19853         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
19854         <bp-asm.h>.
19855         (__mpn_add_n): Don't use BP_SYM.
19856         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
19857         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
19858         and <bp-asm.h>.
19859         (__mpn_addmul_1): Don't use BP_SYM.
19860         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19861         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
19862         <bp-sym.h>.
19863         (_setjmp): Don't use BP_SYM.
19864         (__novmx_setjmp): Likewise.
19865         (__GI__setjmp): Likewise.
19866         (__vmx_setjmp): Likewise.
19867         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
19868         <bp-sym.h>.
19869         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
19870         (__bzero): Don't use BP_SYM.
19871         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19872         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19873         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
19874         <bp-sym.h> and <bp-asm.h>.
19875         (memcpy): Don't use BP_SYM.
19876         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
19877         <bp-sym.h> and <bp-asm.h>.
19878         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
19879         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
19880         <bp-sym.h> and <bp-asm.h>.
19881         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
19882         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
19883         <bp-asm.h>.
19884         (__mpn_lshift): Don't use BP_SYM.
19885         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19886         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
19887         <bp-asm.h>.
19888         (memset): Don't use BP_SYM.
19889         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19890         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19891         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
19892         <bp-asm.h>.
19893         (__mpn_mul_1): Don't use BP_SYM.
19894         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19895         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
19896         <bp-sym.h> and <bp-asm.h>.
19897         (memcmp): Don't use BP_SYM.
19898         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
19899         <bp-sym.h> and <bp-asm.h>.
19900         (memcpy): Don't use BP_SYM.
19901         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
19902         <bp-sym.h> and <bp-asm.h>.
19903         (memset): Don't use BP_SYM.
19904         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
19905         <bp-sym.h> and <bp-asm.h>.
19906         (strncmp): Don't use BP_SYM.
19907         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
19908         <bp-sym.h> and <bp-asm.h>.
19909         (memcpy): Don't use BP_SYM.
19910         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
19911         <bp-sym.h> and <bp-asm.h>.
19912         (memset): Don't use BP_SYM.
19913         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
19914         <bp-sym.h> and <bp-asm.h>.
19915         (__memchr): Don't use BP_SYM.
19916         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
19917         <bp-sym.h> and <bp-asm.h>.
19918         (memcmp): Don't use BP_SYM.
19919         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
19920         <bp-sym.h> and <bp-asm.h>.
19921         (memcpy): Don't use BP_SYM.
19922         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
19923         <bp-sym.h> and <bp-asm.h>.
19924         (__mempcpy): Don't use BP_SYM.
19925         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
19926         <bp-sym.h> and <bp-asm.h>.
19927         (__memrchr): Don't use BP_SYM.
19928         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
19929         <bp-sym.h> and <bp-asm.h>.
19930         (memset): Don't use BP_SYM.
19931         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
19932         <bp-sym.h> and <bp-asm.h>.
19933         (__rawmemchr): Don't use BP_SYM.
19934         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
19935         <bp-sym.h> and <bp-asm.h>.
19936         (__STRCMP): Don't use BP_SYM.
19937         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
19938         <bp-sym.h> and <bp-asm.h>.
19939         (strchr): Don't use BP_SYM.
19940         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
19941         <bp-sym.h> and <bp-asm.h>.
19942         (__strchrnul): Don't use BP_SYM.
19943         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
19944         <bp-sym.h> and <bp-asm.h>.
19945         (strlen): Don't use BP_SYM.
19946         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
19947         <bp-sym.h> and <bp-asm.h>.
19948         (strncmp): Don't use BP_SYM.
19949         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
19950         <bp-sym.h> and <bp-asm.h>.
19951         (__strnlen): Don't use BP_SYM.
19952         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
19953         <bp-asm.h>.
19954         (__mpn_rshift): Don't use BP_SYM.
19955         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
19956         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
19957         <bp-sym.h> and <bp-asm.h>.
19958         (__sigsetjmp): Don't use BP_SYM.
19959         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
19960         (L(start_addresses)): Don't use BP_SYM.
19961         (_start): Likewise.
19962         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
19963         <bp-asm.h>.
19964         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
19965         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19966         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19967         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
19968         <bp-asm.h>.
19969         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
19970         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19971         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19972         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
19973         <bp-asm.h>.
19974         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
19975         comments.
19976         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19977         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
19978         <bp-asm.h>.
19979         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
19980         FIXME comments.
19981         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19982         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19983         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
19984         <bp-asm.h>.
19985         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
19986         comment.
19987         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
19988         and <bp-asm.h>.
19989         (strncmp): Don't use BP_SYM,
19990         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
19991         <bp-asm.h>.
19992         (__mpn_sub_n): Don't use BP_SYM.
19993         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
19994         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
19995         and <bp-asm.h>.
19996         (__mpn_submul_1): Don't use BP_SYM.
19997         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
19999         <bp-sym.h> and <bp-asm.h>.
20000         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20002         <bp-sym.h> and <bp-asm.h>.
20003         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20004         comment.
20005
20006 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20007
20008         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20009         Use ZK to minimize writes to Z.
20010         (sub_magnitudes): Simplify code a bit.
20011         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20012         Use ZK to minimize writes to Z.
20013         (sub_magnitudes): Simplify code a bit.
20014
20015 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20016
20017         * csu/gmon-start.c: Add special exception to license text.
20018
20019 2013-02-27  Richard Henderson  <rth@redhat.com>
20020
20021         * scripts/config.guess: Update from config.git.
20022         * scripts/config.sub: Likewise.
20023
20024 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20025
20026         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20027
20028         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20029
20030         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20031
20032         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20033
20034         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20035
20036 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20037
20038         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20039         [$(build-shared = yes].
20040
20041 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20042
20043         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20044         (__mul): Reduce iterations for calculating mantissa.
20045
20046         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20047         MPTWO.
20048         (__mpranred): Likewise.
20049
20050         [BZ #15160]
20051         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20052         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20053
20054 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20055
20056         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20057         Define __attribute__.
20058
20059 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20060
20061         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20062         unused.
20063         * posix/regex_internal.h (__attribute): Remove.
20064         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20065         (re_string_context_at): Likewise.
20066         (bitset_not): Use __attribute__ and mark function as possibly
20067         unused.
20068         (bitset_merge): Likewise.
20069         (bitset_mask): Likewise.
20070         (re_string_char_size_at): Likewise.
20071         (re_string_wchar_at): Likewise.
20072         (re_string_elem_size_at): Likewise.
20073
20074 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20075
20076         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20077         code.
20078         (cc32): Likewise.
20079
20080         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20081         (__acr): Likewise.
20082         (__cpy): Likewise.
20083         (norm): Likewise.
20084         (denorm): Likewise.
20085         (__dbl_mp): Likewise.
20086         (add_magnitudes): Likewise.
20087         (sub_magnitudes): Likewise.
20088         (__mul): Likewise.
20089         (__inv): Likewise.
20090
20091         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20092         style.
20093
20094         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
20095         style.
20096
20097         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
20098         code.
20099
20100         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
20101         up changes with default code.
20102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
20103         Likewise.
20104
20105 2013-02-24  Allan McRae  <allan@archlinux.org>
20106
20107         * manual/socket.texi (The Internet Namespace): Order menu items
20108         to match that in the file.
20109
20110         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
20111         node listing of the info page menu.
20112
20113 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
20114
20115         [BZ #13550]
20116         * sysdeps/i386/bp-asm.h: Remove file.
20117         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20118         (PARMS): Do not use macros from bp-asm.h.
20119         (S1): Likewise.
20120         (S2): Likewise.
20121         (SIZE): Likewise.
20122         (__mpn_add_n): Do not use BP_SYM
20123         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
20124         "bp-asm.h".
20125         (PARMS): Do not use macros from bp-asm.h.
20126         (S1): Likewise.
20127         (SIZE): Likewise.
20128         (__mpn_addmul_1): Do not use BP_SYM
20129         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
20130         "bp-asm.h".
20131         (PARMS): Do not use macros from bp-asm.h.
20132         (SIGMSK): Likewise.
20133         (_setjmp): Likewise.  Do not use BP_SYM.
20134         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
20135         "bp-asm.h".
20136         (PARMS): Do not use macros from bp-asm.h.
20137         (SIGMSK): Likewise.
20138         (setjmp): Likewise.  Do not use BP_SYM.
20139         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
20140         "bp-asm.h".
20141         (PARMS): Do not use macros from bp-asm.h.
20142         (__frexp): Do not use BP_SYM.
20143         (frexp): Likewise.
20144         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
20145         "bp-asm.h".
20146         (PARMS): Do not use macros from bp-asm.h.
20147         (__frexpf): Do not use BP_SYM.
20148         (frexpf): Likewise.
20149         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
20150         "bp-asm.h".
20151         (PARMS): Do not use macros from bp-asm.h.
20152         (__frexpl): Do not use BP_SYM.
20153         (frexpl): Likewise.
20154         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
20155         "bp-asm.h".
20156         (PARMS): Do not use macros from bp-asm.h.
20157         (__remquo): Do not use BP_SYM.
20158         (remquo): Likewise.
20159         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
20160         "bp-asm.h".
20161         (PARMS): Do not use macros from bp-asm.h.
20162         (__remquof): Do not use BP_SYM.
20163         (remquof): Likewise.
20164         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
20165         "bp-asm.h".
20166         (PARMS): Do not use macros from bp-asm.h.
20167         (__remquol): Do not use BP_SYM.
20168         (remquol): Likewise.
20169         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
20170         "bp-asm.h".
20171         (PARMS): Do not use macros from bp-asm.h.
20172         (DEST): Likewise.
20173         (SRC): Likewise.
20174         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
20175         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
20176         "bp-asm.h".
20177         (PARMS): Do not use macros from bp-asm.h.
20178         (strlen): Do not use BP_SYM.
20179         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
20180         "bp-asm.h".
20181         (PARMS): Do not use macros from bp-asm.h.
20182         (S1): Likewise.
20183         (S2): Likewise.
20184         (SIZE): Likewise.
20185         (__mpn_add_n): Do not use BP_SYM.
20186         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
20187         "bp-asm.h".
20188         (PARMS): Do not use macros from bp-asm.h.
20189         (S1): Likewise.
20190         (SIZE): Likewise.
20191         (__mpn_addmul_1): Do not use BP_SYM.
20192         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
20193         weak_alias.
20194         (bzero): Likewise.
20195         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
20196         "bp-asm.h".
20197         (PARMS): Do not use macros from bp-asm.h.
20198         (S): Likewise.
20199         (SIZE): Likewise.
20200         (__mpn_lshift): Do not use BP_SYM.
20201         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
20202         "bp-asm.h".
20203         (PARMS): Do not use macros from bp-asm.h.
20204         (DEST): Likewise.
20205         (SRC): Likewise.
20206         (LEN): Likewise.
20207         (memcpy): Likewise.  Do not use BP_SYM.
20208         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
20209         libc_hidden_def and weak_alias.
20210         (mempcpy): Do not use BP_SYM in weak_alias.
20211         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
20212         "bp-asm.h".
20213         (PARMS): Do not use macros from bp-asm.h.
20214         (DEST): Likewise.
20215         (LEN): Likewise.
20216         [!BZERO_P] (CHR): Likewise.
20217         (memset): Likewise.  Do not use BP_SYM.
20218         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
20219         "bp-asm.h".
20220         (PARMS): Do not use macros from bp-asm.h.
20221         (S1): Likewise.
20222         (SIZE): Likewise.
20223         (__mpn_mul_1): Do not use BP_SYM.
20224         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
20225         "bp-asm.h".
20226         (PARMS): Do not use macros from bp-asm.h.
20227         (S): Likewise.
20228         (SIZE): Likewise.
20229         (__mpn_rshift): Do not use BP_SYM.
20230         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
20231         "bp-asm.h".
20232         (PARMS): Do not use macros from bp-asm.h.
20233         (STR): Likewise.
20234         (CHR): Likewise.
20235         (strchr): Likewise.  Do not use BP_SYM.
20236         (index): Do not use BP_SYM in weak_alias.
20237         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
20238         "bp-asm.h".
20239         (PARMS): Do not use macros from bp-asm.h.
20240         (DEST): Likewise.
20241         (SRC): Likewise.
20242         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
20243         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
20244         "bp-asm.h".
20245         (PARMS): Do not use macros from bp-asm.h.
20246         (strlen): Do not use BP_SYM.
20247         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
20248         "bp-asm.h".
20249         (PARMS): Do not use macros from bp-asm.h.
20250         (S1): Likewise.
20251         (S2): Likewise.
20252         (SIZE): Likewise.
20253         (__mpn_sub_n): Do not use BP_SYM.
20254         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
20255         "bp-asm.h".
20256         (PARMS): Do not use macros from bp-asm.h.
20257         (S1): Likewise.
20258         (SIZE): Likewise.
20259         (__mpn_submul_1): Do not use BP_SYM.
20260         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
20261         "bp-asm.h".
20262         (PARMS): Do not use macros from bp-asm.h.
20263         (S1): Likewise.
20264         (S2): Likewise.
20265         (SIZE): Likewise.
20266         (__mpn_add_n): Do not use BP_SYM.
20267         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
20268         weak_alias.
20269         (bzero): Likewise.
20270         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
20271         "bp-asm.h".
20272         (PARMS): Do not use macros from bp-asm.h.
20273         (BLK2): Likewise.
20274         (LEN): Likewise.
20275         (memcmp): Do not use BP_SYM.
20276         (bcmp): Do not use BP_SYM in weak_alias.
20277         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
20278         "bp-asm.h".
20279         (PARMS): Do not use macros from bp-asm.h.
20280         (DEST): Likewise.
20281         (SRC): Likewise.
20282         (LEN): Likewise.
20283         (memcpy): Likewise.  Do not use BP_SYM.
20284         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
20285         "bp-asm.h".
20286         (PARMS): Do not use macros from bp-asm.h.
20287         (DEST): Likewise.
20288         (SRC): Likewise.
20289         (LEN): Likewise.
20290         (memmove): Likewise.  Do not use BP_SYM.
20291         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
20292         "bp-asm.h".
20293         (PARMS): Do not use macros from bp-asm.h.
20294         (DEST): Likewise.
20295         (SRC): Likewise.
20296         (LEN): Likewise.
20297         (__mempcpy): Likewise.  Do not use BP_SYM.
20298         (mempcpy): Do not use BP_SYM in weak_alias.
20299         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
20300         "bp-asm.h".
20301         (PARMS): Do not use macros from bp-asm.h.
20302         (DEST): Likewise.
20303         (LEN): Likewise.
20304         [!BZERO_P] (CHR): Likewise.
20305         (memset): Likewise.  Do not use BP_SYM.
20306         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
20307         "bp-asm.h".
20308         (PARMS): Do not use macros from bp-asm.h.
20309         (STR2): Likewise.
20310         (strcmp): Do not use BP_SYM.
20311         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
20312         "bp-asm.h".
20313         (PARMS): Do not use macros from bp-asm.h.
20314         (STR): Likewise.
20315         (DELIM): Likewise.
20316         [USE_AS_STRTOK_R] (SAVE): Likewise.
20317         (FUNCTION): Likewise.  Do not use BP_SYM.
20318         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
20319         aliases.
20320         (strtok_r): Likewise.
20321         (__GI___strtok_r): Likewise.
20322         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20323         (PARMS): Do not use macros from bp-asm.h.
20324         (S): Likewise.
20325         (SIZE): Likewise.
20326         (__mpn_lshift): Do not use BP_SYM.
20327         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20328         (PARMS): Do not use macros from bp-asm.h.
20329         (STR): Likewise.
20330         (CHR): Likewise.
20331         (__memchr): Do not use BP_SYM.
20332         (memchr): Do not use BP_SYM in weak_alias.
20333         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20334         (PARMS): Do not use macros from bp-asm.h.
20335         (BLK2): Likewise.
20336         (LEN): Likewise.
20337         (memcmp): Do not use BP_SYM.
20338         (bcmp): Do not use BP_SYM in weak_alias.
20339         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
20340         (PARMS): Do not use macros from bp-asm.h.
20341         (S1): Likewise.
20342         (SIZE): Likewise.
20343         (__mpn_mul_1): Do not use BP_SYM.
20344         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
20345         "bp-asm.h".
20346         (PARMS): Do not use macros from bp-asm.h.
20347         (STR): Likewise.
20348         (CHR): Likewise.
20349         (__rawmemchr): Do not use BP_SYM.
20350         (rawmemchr): Do not use BP_SYM in weak_alias.
20351         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20352         (PARMS): Do not use macros from bp-asm.h.
20353         (S): Likewise.
20354         (SIZE): Likewise.
20355         (__mpn_rshift): Do not use BP_SYM.
20356         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20357         (PARMS): Do not use macros from bp-asm.h.
20358         (SIGMSK): Likewise.
20359         (__sigsetjmp): Likewise.  Do not use BP_SYM.
20360         * sysdeps/i386/start.S: Do not include "bp-sym.h".
20361         (_start): Do not use BP_SYM.
20362         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
20363         (PARMS): Do not use macros from bp-asm.h.
20364         (DEST): Likewise.
20365         (SRC): Likewise.
20366         (__stpcpy): Likewise.  Do not use BP_SYM.
20367         (stpcpy): Do not use BP_SYM in weak_alias.
20368         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
20369         "bp-asm.h".
20370         (PARMS): Do not use macros from bp-asm.h.
20371         (DEST): Likewise.
20372         (SRC): Likewise.
20373         (LEN): Likewise.
20374         (__stpncpy): Likewise.  Do not use BP_SYM.
20375         (stpncpy): Do not use BP_SYM in weak_alias.
20376         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20377         (PARMS): Do not use macros from bp-asm.h.
20378         (STR): Likewise.
20379         (CHR): Likewise.
20380         (strchr): Likewise.  Do not use BP_SYM.
20381         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
20382         "bp-asm.h".
20383         (PARMS): Do not use macros from bp-asm.h.
20384         (STR): Likewise.
20385         (CHR): Likewise.
20386         (__strchrnul): Likewise.  Do not use BP_SYM.
20387         (strchrnul): Do not use BP_SYM in weak_alias.
20388         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
20389         "bp-asm.h".
20390         (PARMS): Do not use macros from bp-asm.h.
20391         (STOP): Likewise.
20392         (strcspn): Do not use BP_SYM.
20393         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
20394         "bp-asm.h".
20395         (PARMS): Do not use macros from bp-asm.h.
20396         (STR): Likewise.
20397         (STOP): Likewise.
20398         (strpbrk): Likewise.  Do not use BP_SYM.
20399         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
20400         "bp-asm.h".
20401         (PARMS): Do not use macros from bp-asm.h.
20402         (STR): Likewise.
20403         (CHR): Likewise.
20404         (strrchr): Likewise.  Do not use BP_SYM.
20405         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
20406         (PARMS): Do not use macros from bp-asm.h.
20407         (SKIP): Likewise.
20408         (strspn): Do not use BP_SYM.
20409         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
20410         (PARMS): Do not use macros from bp-asm.h.
20411         (STR): Likewise.
20412         (DELIM): Likewise.
20413         (SAVE): Likewise.
20414         (FUNCTION): Likewise.  Do not use BP_SYM.
20415         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
20416         aliases.
20417         (strtok_r): Likewise.
20418         (__GI___strtok_r): Likewise.
20419         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20420         (PARMS): Do not use macros from bp-asm.h.
20421         (S1): Likewise.
20422         (S2): Likewise.
20423         (SIZE): Likewise.
20424         (__mpn_sub_n): Do not use BP_SYM.
20425         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
20426         "bp-asm.h".
20427         (PARMS): Do not use macros from bp-asm.h.
20428         (S1): Likewise.
20429         (SIZE): Likewise.
20430         (__mpn_submul_1): Do not use BP_SYM.
20431         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
20432         <bp-sym.h>.
20433         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
20434         and <bp-asm.h>.
20435         (PARMS): Do not use macros from bp-asm.h.
20436         (FLAGS): Likewise.
20437         (PTID): Likewise.
20438         (TLS): Likewise.
20439         (CTID): Likewise.
20440         (__clone): Do not use BP_SYM.
20441         (clone): Do not use BP_SYM in weak_alias.
20442         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
20443         and <bp-asm.h>.
20444         (PARMS): Do not use macros from bp-asm.h.
20445         (LEN): Likewise.
20446         (__mmap64): Do not use BP_SYM.
20447         (mmap64): Do not use BP_SYM in weak_alias.
20448         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20449         <bp-sym.h> and <bp-asm.h>.
20450         (PARMS): Do not use macros from bp-asm.h.
20451         (__posix_fadvise64_l64): Do not use BP_SYM.
20452         * sysdeps/unix/sysv/linux/i386/semtimedop.S
20453         (PARMS): Do not use macros from bp-asm.h.
20454         (NSOPS): Likewise.
20455         (semtimedop): Do not use BP_SYM.
20456         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
20457         and <bp-asm.h>.
20458
20459 2013-02-21  Allan McRae  <allan@archlinux.org>
20460
20461         * manual/message.texi (Charset conversion in gettext):
20462         Move @end statement to beginning of line.
20463
20464 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20465
20466         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
20467         static.
20468         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
20469         Likewise.
20470
20471         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
20472         (denorm): Likewise.
20473         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
20474         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
20475
20476 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20477
20478         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
20479         tail-call to the resolved function if pltexit isn't needed.
20480
20481 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20482
20483         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
20484         or Y being zero as being unlikely.
20485         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20486         Likewise.
20487
20488 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
20489
20490         * manual/nss.texi (System Databases and Name Service Switch):
20491         Remove frobnicate @pxref.
20492
20493 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
20494
20495         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
20496         __attribute__ ((unused)) to __attribute__ ((__unused__)).
20497
20498 2013-02-20  Petr Machata  <pmachata@redhat.com>
20499
20500         * elf/elf.h (R_ARM_TARGET1): New macro.
20501         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
20502         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
20503         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
20504         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
20505         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
20506         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
20507         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
20508         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
20509         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
20510         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
20511         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
20512         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
20513         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
20514         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
20515         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
20516         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
20517         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
20518         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
20519         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
20520         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
20521         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
20522         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
20523         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
20524         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
20525         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
20526         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
20527         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
20528         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
20529         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
20530         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
20531         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
20532         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
20533         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
20534         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
20535         (R_ARM_THM_GOT_BREL12): Likewise.
20536         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
20537         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
20538         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
20539         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
20540         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
20541         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
20542         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
20543         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
20544         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
20545
20546 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
20547
20548         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
20549         __attribute_used__ to __attribute__ ((unused)).
20550
20551 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
20552
20553         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
20554         powerpc mpa.c.
20555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
20556         comment formatting.
20557         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
20558
20559 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
20560
20561         [BZ #13550]
20562         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
20563         Remove macro.
20564         (ENTER): Remove both macro definitions.
20565         (LEAVE): Likewise.
20566         (CHECK_BOUNDS_LOW): Likewise.
20567         (CHECK_BOUNDS_HIGH): Likewise.
20568         (CHECK_BOUNDS_BOTH): Likewise.
20569         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
20570         (RETURN_BOUNDED_POINTER): Likewise.
20571         (RETURN_NULL_BOUNDED_POINTER): Likewise.
20572         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
20573         (POP_ERRNO_LOCATION_RETURN): Likewise.
20574         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
20575         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20576         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
20577         macros.
20578         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20579         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
20580         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
20581         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
20582         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
20583         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
20584         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
20585         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
20586         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
20587         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
20588         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
20589         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
20590         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20591         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
20592         removed macros.
20593         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20594         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
20595         macros.
20596         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20597         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
20598         * sysdeps/i386/i586/memset.S (memset): Likewise.
20599         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
20600         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20601         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
20602         macros.
20603         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20604         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
20605         Change uses of L(2) to L(out).
20606         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
20607         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
20608         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
20609         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20610         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
20611         removed macros.
20612         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20613         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
20614         macros.
20615         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20616         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
20617         (RETURN): Do not use macro LEAVE.
20618         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
20619         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
20620         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
20621         * sysdeps/i386/i686/memset.S (memset): Likewise.
20622         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
20623         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
20624         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20625         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
20626         Likewise.
20627         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20628         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
20629         L(1_2) and L(1_3) into L(1).
20630         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
20631         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
20632         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20633         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
20634         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20635         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
20636         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
20637         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20638         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
20639         macros.
20640         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
20641         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20642         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
20643         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
20644         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
20645         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20646         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
20647         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
20648         * sysdeps/i386/strcspn.S (strcspn): Likewise.
20649         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
20650         * sysdeps/i386/strrchr.S (strrchr): Likewise.
20651         * sysdeps/i386/strspn.S (strspn): Likewise.
20652         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
20653         conditional code.
20654         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20655         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
20656         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
20657         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
20658         L(1_3) into L(1_1).
20659         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
20660         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20661         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
20662         macros.
20663         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20664
20665 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
20666
20667         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
20668         macro.
20669
20670 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20671
20672         * math/atest-exp.c (exp_mpn): Remove ROUND.
20673         * math/atest-exp2.c (exp_mpn): Likewise.
20674         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
20675
20676         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
20677         * stdlib/tst-tls-atexit-lib.c: Likewise.
20678         * stdlib/tst-tls-atexit.c: Likewise.
20679
20680 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20681
20682         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
20683         and __attribute_alloc_size__.
20684
20685 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20686
20687         * include/programs/xmalloc.h: Change __attribute_alloc_size to
20688         __attribute_alloc_size__.
20689         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
20690         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
20691
20692 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20693
20694         * include/programs/xmalloc.h: New file.
20695         * catgets/gencat.c: Include it.
20696         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
20697         * elf/pldd.c: Likewise.
20698         * iconv/iconv_charmap.c: Likewise.
20699         * iconv/iconvconfig.c: Likewise.
20700         * iconv/strtab.c: Likewise.
20701         * locale/programs/locale.c: Likewise.
20702         * locale/programs/localedef.h: Likewise.
20703         * locale/programs/simple-hash.c: Likewise.
20704         * nscd/nscd.h: Likewise.
20705         * nss/makedb.c: Likewise.
20706         * sysdeps/generic/ldconfig.h: Likewise.
20707
20708 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20709
20710         * Versions.def: Add GLIBC_2.18.
20711         * include/link.h (struct link_map): New member l_tls_dtor_count.
20712         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
20713         (__call_tls_dtors): Likewise.
20714         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
20715         __cxa_thread_atexit_impl.
20716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20717         Likewise.
20718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20719         Likewise.
20720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
20721         Likewise.
20722         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
20723         Likewise.
20724         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20725         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
20726         Likewise.
20727         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
20728         Likewise.
20729         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20730         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
20731         Likewise.
20732         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
20733         (tests): Add test case tst-tls-atexit.
20734         (modules-names): Add shared library for tst-tls-atexit.
20735         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
20736         (GLIBC_PRIVATE): Add __call_tls_dtors.
20737         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
20738         for libstdc++.
20739         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
20740         * stdlib/tst-tls-atexit.c: New test case.
20741         * stdlib/tst-tls-atexit-lib.c: New test case.
20742
20743         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
20744
20745         * elf/Versions (ld): Add _dl_find_dso_for_object.
20746         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
20747         * elf/dl-open.c (_dl_find_dso_for_object): New function.
20748         (dl_open_worker): Use _dl_find_dso_for_object.
20749         * elf/dl-sym.c (do_sym): Likewise.
20750         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
20751
20752 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20753
20754         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
20755         Syntactic changes only.
20756         (_dl_runtime_profile): Do a tail-call to the resolved function.
20757
20758 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
20759
20760         [BZ #13550]
20761         * sysdeps/x86_64/bp-asm.h: Remove file.
20762         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
20763         <bp-sym.h> and <bp-asm.h>.
20764         (__clone): Do not use BP_SYM.
20765         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
20766         <bp-sym.h> and <bp-asm.h>.
20767         * sysdeps/unix/x86_64/sysdep.S: Likewise.
20768         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
20769         "bp-asm.h".
20770         (_setjmp): Do not use BP_SYM.
20771         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
20772         "bp-asm.h".
20773         (setjmp): Do not use BP_SYM.
20774         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
20775         libc_hidden_def.
20776         (mempcpy): Do not use BP_SYM in weak_alias.
20777         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
20778         "bp-asm.h".
20779         (strchr): Do not use BP_SYM.
20780         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
20781         "bp-asm.h".
20782         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
20783         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
20784         (_start): Do not use BP_SYM.
20785         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
20786         "bp-asm.h".
20787         (strcat): Do not use BP_SYM.
20788         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
20789         "bp-asm.h".
20790         (STRCMP): Do not use BP_SYM.
20791         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
20792         "bp-asm.h".
20793         (STRCPY): Do not use BP_SYM.
20794         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
20795         "bp-asm.h".
20796         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
20797         "bp-asm.h".
20798         (FUNCTION): Do not use BP_SYM.
20799         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
20800         weak_alias.
20801         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
20802
20803 2013-02-17  Andreas Jaeger  <aj@suse.de>
20804
20805         * time/Versions: Sort entries.
20806         * string/Versions: Likewise.
20807         * resolv/Versions: Likewise.
20808         * posix/Versions: Likewise.
20809         * iconv/Versions: Likewise.
20810         * elf/Versions: Likewise.
20811         * wcsmbs/Versions: Likewise.
20812
20813 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20814
20815         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
20816         loop termination condition.
20817
20818         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
20819         variable to calculate EZ.
20820         (__sqr): Likewise.
20821
20822         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
20823         the lower precision input.
20824
20825 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
20826
20827         [BZ #13550]
20828         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
20829         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
20830         (run-via-rtld-prefix): Do not handle %-bp tests.
20831         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
20832         (all-object-suffixes): Remove .ob.
20833         (bppfx): Remove variable.
20834         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
20835         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
20836         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
20837         [$(build-bounded) = yes] (libtype.ob): Likewise.
20838         * Makerules (elide-routines.ob): Remove variable.
20839         (do-tests-clean): Do not handle *-bp.out.
20840         (common-mostlyclean): Do not handle *-bp and *-bp.out.
20841         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
20842         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
20843         (tests): Do not include $(tests-bp.out).
20844         (xtests): Do not include $(xtests-bp.out).
20845         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
20846         [$(build-bounded) = yes] ($(addprefix
20847         $(objpfx),$(binaries-bounded))): Remove rule.
20848         ($(objpfx)%-bp.out): Remove rule.
20849         * config.make.in (build-bounded): Remove variable.
20850         * crypt/Makefile [$(build-bounded) = yes]
20851         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
20852         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
20853         append to variable.
20854         [$(build-bounded) = yes] (install-lib): Likewise.
20855         [$(build-bounded) = yes] (generated): Likewise.
20856         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
20857         Remove rule.
20858         * intl/Makefile [$(build-bounded) = yes]
20859         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
20860         * math/Makefile [$(build-bounded) = yes]
20861         ($(tests:%=$(objpfx)%-bp): Likewise.
20862         * misc/Makefile [$(build-bounded) = yes]
20863         ($(objpfx)tst-tsearch-bp): Likewise.
20864         * nptl/Makeconfig (bounded-thread-library): Remove variable.
20865         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
20866         Remove dependency.
20867         * string/Makefile (o-objects.ob): Remove variable.
20868         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
20869         (CFLAGS-.ob): Remove variable.
20870         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
20871         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
20872         both definitions of variable.
20873         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
20874         (ASFLAGS-.ob): Remove variable.
20875
20876 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
20877
20878         [BZ #13550]
20879         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
20880         Remove __BOUNDED_POINTERS__ from condition.
20881         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
20882         * string/bits/string2.h [!__NO_STRING_INLINES &&
20883         !__BOUNDED_POINTERS__]: Likewise.
20884         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
20885         Likewise.
20886         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
20887         Remove conditional code.
20888         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
20889         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
20890         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
20891         condition.
20892
20893         [BZ #13550]
20894         * csu/libc-start.c: Do not include <bp-sym.h>.
20895         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
20896         * elf/dl-open.c: Do not include <bp-sym.h>.
20897         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
20898         * math/fegetenv.c: Do not include <bp-sym.h>.
20899         (fegetenv): Do not use BP_SYM in versioned symbols.
20900         * nptl/sysdeps/pthread/bits/libc-lockP.h
20901         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
20902         <bp-sym.h>.
20903         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20904         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
20905         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20906         (__pthread_mutex_destroy): Likewise.
20907         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20908         (__pthread_mutex_lock): Likewise.
20909         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20910         (__pthread_mutex_trylock): Likewise.
20911         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20912         (__pthread_mutex_unlock): Likewise.
20913         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20914         (__pthread_mutexattr_init): Likewise.
20915         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20916         (__pthread_mutexattr_destroy): Likewise.
20917         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20918         (__pthread_mutexattr_settype): Likewise.
20919         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20920         (__pthread_rwlock_init): Likewise.
20921         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20922         (__pthread_rwlock_destroy): Likewise.
20923         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20924         (__pthread_rwlock_rdlock): Likewise.
20925         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20926         (__pthread_rwlock_tryrdlock): Likewise.
20927         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20928         (__pthread_rwlock_wrlock): Likewise.
20929         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20930         (__pthread_rwlock_trywrlock): Likewise.
20931         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20932         (__pthread_rwlock_unlock): Likewise.
20933         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20934         (__pthread_key_create): Likewise.
20935         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20936         (__pthread_setspecific): Likewise.
20937         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20938         (__pthread_getspecific): Likewise.
20939         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
20940         Likewise.
20941         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20942         (_pthread_cleanup_push_defer): Likewise.
20943         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20944         (_pthread_cleanup_pop_restore): Likewise.
20945         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
20946         (pthread_setcancelstate): Likewise.
20947         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
20948         <bp-sym.h>.
20949         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
20950         (memchr): Do not use BP_SYM in weak_alias.
20951         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
20952         (fegetenv): Do not use BP_SYM in versioned symbols.
20953         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
20954         (fesetenv): Do not use BP_SYM in versioned symbols.
20955         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
20956         (feupdateenv): Do not use BP_SYM in versioned symbols.
20957         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
20958         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
20959         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
20960         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
20961         (open64): Do not use BP_SYM in weak_alias.
20962         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
20963         (fegetenv): Do not use BP_SYM in versioned symbols.
20964         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
20965         (fesetenv): Do not use BP_SYM in versioned symbols.
20966         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
20967         (feupdateenv): Do not use BP_SYM in versioned symbols.
20968         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
20969         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
20970         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
20971         (feraiseexcept): Do not use BP_SYM in versioned symbols.
20972         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
20973         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
20974         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
20975         <bp-sym.h>.
20976         (__libc_start_main): Do not use BP_SYM.
20977
20978 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
20979
20980         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
20981         redundant return line.
20982         (norm): Likewise.
20983         (denorm): Likewise.
20984         (dbl_mp): Likewise.
20985         (sub_magnitudes): Likewise.
20986         (__add): Likewise.
20987         (__sub): Likewise.
20988         (__mul): Likewise.
20989         (__inv): Likewise.
20990         (__dvd): Likewise.
20991         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
20992         (norm): Likewise.
20993         (denorm): Likewise.
20994         (dbl_mp): Likewise.
20995         (sub_magnitudes): Likewise.
20996         (__add): Likewise.
20997         (__sub): Likewise.
20998         (__mul): Likewise.
20999         (__inv): Likewise.
21000         (__dvd): Likewise.
21001
21002         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21003         instead of __mul.
21004         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21005         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21006         (cc32): Likewise.
21007
21008         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21009         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21010         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21011         of __mul for squares.
21012         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21013         function
21014         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21015         Likewise.
21016         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21017         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21018
21019 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21020
21021         [BZ #13550]
21022         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21023         code.
21024         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21025         prototype or function definition.  Rename ubp_* variables and
21026         parameters.  Remove argv definitions conditional on
21027         [__BOUNDED_POINTERS__].
21028         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21029         * elf/dl-runtime.c (_dl_fixup): Likewise.
21030         * include/set-hooks.h (RUN_HOOK): Likewise.
21031         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21032         definition.
21033         * string/strcpy.c (strcpy): Do not use __unbounded.
21034         * sysdeps/generic/frame.h (struct layout): Likewise.
21035         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21036         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21037         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21038         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21039         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21040         (__backtrace): Likewise.
21041         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21042         use __ptrvalue.
21043         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21044         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21045         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21046         Likewise.
21047         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21048         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21049         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21050         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21051         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21052         Do not use __unbounded.
21053         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21054         Rename __unboundedrlimits parameter to rlimits in prototype.
21055         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21056         Do not use __unbounded.
21057         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21058         not use __ptrvalue.
21059         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21060         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21061         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21062         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21063         __ptrvalue or __unbounded.
21064         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21065         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21066         use __unbounded.
21067         (__new_msgctl): Do not use __ptrvalue.
21068         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21069         __unbounded.
21070         (__libc_msgrcv): Do not use __ptrvalue.
21071         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21072         startup_info): Do not use __unbounded.
21073         (__libc_start_main): Likewise.  Rename ubp_* variables and
21074         parameters.  Remove argv definitions conditional on
21075         [__BOUNDED_POINTERS__].
21076         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21077         __ptrvalue.
21078         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21079         use __unbounded.
21080         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21081         or __ptrvalue.
21082         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21083         use __unbounded.
21084         (__new_shmctl): Do not use __ptrvalue.
21085         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21086         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21087         Likewise.
21088         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21089         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21090         (__libc_sigaction): Likewise.
21091         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21092         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
21093         Likewise.
21094         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21095
21096 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
21097
21098         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
21099
21100         * string/mempcpy.c: Implement by calling memcpy.
21101
21102 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
21103
21104         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
21105
21106         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
21107         evaluation.
21108
21109         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
21110         values in the mantissa.
21111
21112         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
21113         minimize writes to Z.
21114         (sub_magnitudes): Simplify code a bit.
21115
21116 2013-02-12  Roland McGrath  <roland@hack.frob.com>
21117
21118         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
21119         from the message.  The linker prefixes all warnings with that already.
21120
21121 2013-02-12  Andreas Schwab  <schwab@suse.de>
21122
21123         [BZ #15078]
21124         * posix/regexec.c (extend_buffers): Add parameter min_len.
21125         (check_matching): Pass minimum needed length.
21126         (clean_state_log_if_needed): Likewise.
21127         (get_subexp): Likewise.
21128         * posix/Makefile (tests): Add bug-regex34.
21129         (bug-regex34-ENV): Define.
21130         * posix/bug-regex34.c: New file.
21131
21132         [BZ #11561]
21133         * posix/regcomp.c (parse_bracket_exp): When looking up collating
21134         elements compare against the byte sequence of it, not its name.
21135         * posix/Makefile (tests): Add bug-regex35.
21136         (bug-regex35-ENV): Define.
21137         * posix/bug-regex35.c: New file.
21138
21139 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21140
21141         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
21142         comment.
21143         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
21144         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
21145         (CHECK_EOL): Add undef.
21146
21147 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
21148
21149         * bits/stdlib-bsearch.h: New file.
21150         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
21151         * stdlib/stdlib.h: Likewise.
21152
21153 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21154
21155         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
21156         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
21157         declaration.
21158         * manual/search.texi (Array Search Function): Add missing const in
21159         lfind prototype.
21160         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
21161         declaration to use rlim_t.
21162         (Basic Scheduling Functions): Remove erroneous const from
21163         sched_getparam prototype.  Remove erroneous * from
21164         sched_get_priority_max and sched_get_priority_min prototypes.
21165         (Resource Usage): Fix summary @comment on vtimes to refer to
21166         sys/vtimes.h rather than vtimes.h.
21167         Add missing *s in vtimes prototype.
21168         (Limits on Resources): Fix ulimit prototype to return long int.
21169         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
21170         prototypes to use long int rather than double.
21171         (BSD Random): Fix initstate and setstate to use char *, not void *.
21172         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
21173         prototype to make second argument 'struct aiocb64 *const[]'.
21174         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
21175         (Status of AIO Operations): Remove erroneous const in aio_return and
21176         aio_return64 prototypes.
21177         (Synchronizing I/O): Fix sync prototype to return void.
21178         * manual/startup.texi (Suboptions): Remove an erroneous const in
21179         getsubopt prototype.
21180         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
21181         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
21182         use size_t rather than int.
21183         (Scanning All Users): Likewise for getpwent_r.
21184         (Setting Groups): Add missing const to setgroups prototype.
21185         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
21186         * manual/socket.texi (Host Names): Fix gethostbyaddr and
21187         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
21188         'const void *' rather than 'const char *'.
21189         (Host Address Functions): Likewise for inet_ntop.
21190         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
21191         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
21192         ssize_t for return value.
21193         (Sending Data): Likewise for send, sendto, sendmsg.
21194         (Socket Option Functions): Add a missing const in setsockopt prototype.
21195         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
21196         use wchar_t for the argument.
21197         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
21198         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
21199         take no arguments.
21200         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
21201         double/float/long double for second argument.
21202         Fix return types of significand, significandf, significandl.
21203         * manual/filesys.texi (Setting Permissions): Use mode_t for second
21204         argument in fchmod prototype.
21205         (File Owner): Use uid_t and gid_t in fchown prototype.
21206         (File Times): Add const to utimes, futimes, and lutimes prototypes.
21207         (Making Special Files): Use mode_t and dev_t in mknod prototype.
21208         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
21209         use 'const struct dirent **' as argument types to CMP function pointer
21210         argument.
21211         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
21212         (File Times): Fix summary magic @comment for struct utimbuf and utime
21213         to refer to utime.h, not time.h.
21214         * manual/string.texi (Argz Functions): Add missing const in
21215         argz_extract and argz_next prototypes.
21216         (Finding Tokens in a String): Likewise for basename.
21217         (String/Array Comparison): Fix typo in wcscasecmp prototype.
21218         (Copying and Concatenation): Fix typo in wmemmove prototype.
21219         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
21220         (Signal Stack): Remove erroneous const in sigstack prototype.
21221         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
21222         prototype.
21223         (Simple Calendar Time): Likewise for stime.
21224         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
21225         prototype.
21226         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
21227         say sys/sysctl.h instead.
21228         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
21229         and vsyslog prototypes.
21230
21231 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21232
21233         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
21234         Remove.
21235
21236 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21237
21238         * misc/sys/mman.h: Fix typo in mremap comment.
21239
21240 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21241
21242         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
21243         the '\0' terminator.
21244
21245 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21246
21247         [BZ #13550]
21248         * debug/segfault.c: Don't include <bp-checks.h>.
21249         * sysdeps/generic/bp-checks.h: Remove file.
21250         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
21251         (__GETDENTS): Don't use CHECK_N.
21252         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
21253         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
21254         (__getgroups): Don't use CHECK_N.
21255         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
21256         (setgroups): Don't use CHECK_N.
21257         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
21258         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
21259         (__libc_msgrcv): Don't use CHECK_N.
21260         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
21261         (__libc_msgsnd): Don't use CHECK_N.
21262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
21263         <bp-checks.h>.
21264         (__libc_pread): Don't use CHECK_N.
21265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
21266         include <bp-checks.h>.
21267         (__libc_pread64): Don't use CHECK_N.
21268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
21269         include <bp-checks.h>.
21270         (__libc_pwrite): Don't use CHECK_N.
21271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
21272         include <bp-checks.h>.
21273         (__libc_pwrite64): Don't use CHECK_N.
21274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
21275         <bp-checks.h>.
21276         (__libc_pread): Don't use CHECK_N.
21277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
21278         include <bp-checks.h>.
21279         (__libc_pread64): Don't use CHECK_N.
21280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
21281         include <bp-checks.h>.
21282         (__libc_pwrite): Don't use CHECK_N.
21283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
21284         include <bp-checks.h>.
21285         (__libc_pwrite64): Don't use CHECK_N.
21286         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
21287         (do_pread): Don't use CHECK_N.
21288         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
21289         (do_pread64): Don't use CHECK_N.
21290         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
21291         (do_pwrite): Don't use CHECK_N.
21292         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
21293         (do_pwrite64): Don't use CHECK_N.
21294         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
21295         (__libc_readv): Don't use CHECK_N.
21296         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
21297         (semop): Don't use CHECK_N.
21298         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
21299         <bp-checks.h>.
21300         (semtimedop): Don't use CHECK_N.
21301         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
21302         (__libc_pread): Don't use CHECK_N.
21303         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
21304         <bp-checks.h>.
21305         (__libc_pread64): Don't use CHECK_N.
21306         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
21307         <bp-checks.h>.
21308         (__libc_pwrite): Don't use CHECK_N.
21309         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
21310         <bp-checks.h>.
21311         (__libc_pwrite64): Don't use CHECK_N.
21312         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
21313         <bp-checks.h>.
21314         (__libc_msgrcv): Don't use CHECK_N.
21315         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
21316         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
21317         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
21318         (__libc_writev): Don't use CHECK_N.
21319
21320 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21321
21322         * string/strcpy.c: Removed unused variable.
21323
21324         * Makeconfig (+sysdep-includes): Define with := rather than =.
21325         Use an existing include/ subdir of each sysdeps dir before it.
21326
21327 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21328
21329         * nscd/connection.c (register_traced_file): Comment function.
21330         [HAVE_INOTIFY] (union __inev): Define.
21331         [HAVE_INOTIFY] (inotify_check_files): New function.
21332         [HAVE_INOTIFY] (clear_db_cache): Likewise.
21333         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
21334         clear_db_cache.
21335         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
21336
21337 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21338
21339         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
21340         loaded if not already and that a failure is permanent.
21341
21342 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21343
21344         [BZ #15006]
21345         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
21346         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
21347
21348 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21349
21350         [BZ #13550]
21351         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
21352         (CHECK_1_NULL_OK): Likewise.
21353         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
21354         (__fxstat): Do not use CHECK_1.
21355         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
21356         <bp-checks.h>.
21357         (___fxstat64): Do not use CHECK_1.
21358         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
21359         <bp-checks.h>.
21360         (__fxstatat): Do not use CHECK_1.
21361         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
21362         <bp-checks.h>.
21363         (__fxstatat64): Do not use CHECK_1.
21364         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
21365         <bp-checks.h>.
21366         (__fxstat): Do not use CHECK_1.
21367         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
21368         <bp-checks.h>.
21369         (__fxstatat): Do not use CHECK_1.
21370         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
21371         <bp-checks.h>.
21372         (__getresgid): Do not use CHECK_1.
21373         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
21374         <bp-checks.h>.
21375         (__getresuid): Do not use CHECK_1.
21376         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
21377         <bp-checks.h>.
21378         (__lxstat): Do not use CHECK_1.
21379         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
21380         <bp-checks.h>.
21381         (__old_msgctl): Do not use CHECK_1.
21382         (__new_msgctl): Likewise.
21383         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
21384         <bp-checks.h>.
21385         (__new_setrlimit): Do not use CHECK_1.
21386         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
21387         <bp-checks.h>.
21388         (__old_shmctl): Do not use CHECK_1.
21389         (__new_shmctl): Likewise.
21390         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
21391         <bp-checks.h>.
21392         (__xstat): Do not use CHECK_1.
21393         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
21394         (__lxstat): Do not use CHECK_1.
21395         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
21396         <bp-checks.h>.
21397         (___lxstat64): Do not use CHECK_1.
21398         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
21399         (__old_msgctl): Do not use CHECK_1.
21400         (__new_msgctl): Likewise.
21401         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
21402         <bp-checks.h>.
21403         (__gettimeofday): Do not use CHECK_1.
21404         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
21405         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
21406         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
21407         <bp-checks.h>.
21408         (__gettimeofday): Do not use CHECK_1.
21409         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
21410         (__old_shmctl): Do not use CHECK_1_NULL_OK.
21411         (__new_shmctl): Do not use CHECK_1.
21412         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
21413         <bp-checks.h>.
21414         (do_sigtimedwait): Do not use CHECK_1.
21415         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
21416         <bp-checks.h>.
21417         (do_sigwaitinfo): Do not use CHECK_1.
21418         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
21419         <bp-checks.h>.
21420         (msgctl): Do not use CHECK_1.
21421         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
21422         <bp-checks.h>.
21423         (shmctl): Do not use CHECK_1.
21424         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
21425         (ustat): Do not use CHECK_1.
21426         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
21427         <bp-checks.h>.
21428         (__fxstat): Do not use CHECK_1.
21429         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
21430         <bp-checks.h>.
21431         (__fxstatat): Do not use CHECK_1.
21432         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
21433         <bp-checks.h>.
21434         (__lxstat): Do not use CHECK_1.
21435         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
21436         <bp-checks.h>.
21437         (__xstat): Do not use CHECK_1.
21438         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
21439         (__xstat): Do not use CHECK_1.
21440         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
21441         (___xstat64): Do not use CHECK_1.
21442
21443         [BZ #13550]
21444         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
21445         definitions.
21446         (CHECK_BOUNDS_HIGH): Likewise.
21447         * string/strcpy.c: Do not include <bp-checks.h>.
21448         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
21449
21450 2013-02-07  Roland McGrath  <roland@hack.frob.com>
21451
21452         * nscd/nscd-client.h (__nscd_drop_map_ref):
21453         Add __attribute__ ((unused)).
21454         * nis/nss-nisplus.h (niserr2nss): Likewise.
21455
21456         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
21457         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
21458
21459         * csu/libc-tls.c (init_static_tls, init_slotinfo):
21460         Remove inline keyword.
21461         * include/rounding-mode.h (round_away): Likewise.
21462         * libio/wfileops.c (adjust_wide_data): Likewise.
21463         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
21464         (__m128i_strloadu_tolower): Likewise.
21465         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
21466         (__m128i_strloadu_tolower): Likewise.
21467         * time/mktime.c (ydhms_diff): Likewise.
21468         * locale/elem-hash.h (elem_hash): Likewise.
21469         * locale/setlocale.c (setdata): Likewise.
21470         * posix/regex_internal.h (re_string_char_size_at): Likewise.
21471         (re_string_wchar_at): Likewise.
21472         (bitset_not, bitset_merge, bitset_mask): Likewise.
21473         [!(__GNUC__ > 3)] (inline): Remove macro.
21474         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
21475         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
21476         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
21477         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
21478         * string/memcmp.c (memcmp_bytes): Likewise.
21479         * locale/programs/locarchive.c (compute_hashval): Likewise.
21480         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
21481         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
21482         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
21483         * nss/getent.c (print_rpc, print_protocols): Likewise.
21484         (print_passwd, print_group, print_aliases): Likewise.
21485         * nis/nss-nisplus.h (niserr2nss): Likewise.
21486         * nscd/connections.c (restart_p): Likewise.
21487         Change return type to bool.
21488
21489 2013-02-05  Roland McGrath  <roland@hack.frob.com>
21490
21491         * Makeconfig (all-Depend-files): Add existing
21492         $(sorted-subdirs:=/Depend) files.
21493         (all-subdirs): Remove nss.
21494         * sysdeps/unix/inet/Subdirs: Add it here instead.
21495         * hesiod/Depend: New file.
21496
21497         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
21498         instead of calling alloca.
21499
21500         * io/lseek.c (__lseek): Rename to __libc_lseek.
21501         Define __lseek as an alias.
21502
21503         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
21504
21505 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
21506
21507         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
21508         else clause and remove check for non-standard endianness.
21509
21510 2013-02-04  David S. Miller  <davem@davemloft.net>
21511
21512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21513
21514 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
21515
21516         [BZ #13550]
21517         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
21518         (__ubp_memchr): Remove prototype.
21519         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
21520         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
21521         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
21522         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
21523         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
21524         Remove alias.
21525         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
21526         (__ubp_memchr): Likewise.
21527         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
21528         (__ubp_memchr): Likewise.
21529         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
21530         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
21531         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
21532         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
21533         CHECK_STRING.
21534         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
21535         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
21536         (__getcwd): Do not use CHECK_STRING.
21537         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
21538         <bp-checks.h>.
21539         (__real_chown): Do not use CHECK_STRING.
21540         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
21541         <bp-checks.h>.
21542         (fchownat): Do not use CHECK_STRING.
21543         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
21544         CHECK_STRING.
21545         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
21546         <bp-checks.h>.
21547         (__lchown): Do not use CHECK_STRING.
21548         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21549         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21550         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21551         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
21552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
21553         include <bp-checks.h>.
21554         (truncate64): Do not use CHECK_STRING.
21555         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
21556         <bp-checks.h>.
21557         (__real_chown): Do not use CHECK_STRING.
21558         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
21559         <bp-checks.h>.
21560         (__lchown): Do not use CHECK_STRING.
21561         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
21562         <bp-checks.h>.
21563         (__chown): Do not use CHECK_STRING.
21564         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
21565         <bp-checks.h>.
21566         (truncate64): Do not use CHECK_STRING.
21567         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
21568         Likewise.
21569         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
21570         (__xmknod): Do not use CHECK_STRING.
21571         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
21572         <bp-checks.h>.
21573         (__xmknodat): Do not use CHECK_STRING.
21574         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21575         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
21576
21577 2013-02-04  Andreas Schwab  <schwab@suse.de>
21578
21579         [BZ #14142]
21580         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
21581         * include/netdb.h: Likewise for h_errno.
21582         * elf/tst-stackguard1.c: Include <tls.h>.
21583
21584 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
21585
21586         * elf/link.h (struct link_map): Extend the l_addr comment.
21587         * include/link.h (struct link_map): Likewise.
21588
21589 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
21590
21591         [BZ #13550]
21592         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
21593         (BOUNDED_1): Remove macro.
21594         * debug/backtrace.c: Don't include <bp-checks.h>.
21595         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
21596         (__backtrace): Likewise.
21597         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
21598         <bp-checks.h>.
21599         (__backtrace): Don't use BOUNDED_1.
21600         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
21601         <bp-checks.h>.
21602         (__backtrace): Don't use BOUNDED_1.
21603         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
21604         (__backtrace): Don't use BOUNDED_1.
21605         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
21606         (shmat): Don't use BOUNDED_N.
21607
21608 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
21609
21610         [BZ #13550]
21611         * sysdeps/generic/bp-start.h: Remove file.
21612         * csu/libc-start.c: Don't include <bp-start.h>.
21613         (LIBC_START_MAIN): Set up __environ directly instead of using
21614         INIT_ARGV_and_ENVIRON.
21615         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
21616         <bp-start.h>.
21617
21618         [BZ #13550]
21619         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
21620         definitions.
21621         (CHECK_FCNTL): Likewise.
21622         (CHECK_N_PAGES): Likewise.
21623
21624         [BZ #13550]
21625         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
21626         definitions.
21627         (CHECK_SIGSET_NULL_OK): Likewise.
21628         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
21629         <bp-checks.h>.
21630         (sigpending): Don't use CHECK_SIGSET.
21631         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
21632         <bp-checks.h>.
21633         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21634         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
21635         <bp-checks.h>.
21636         (do_sigsuspend): Don't use CHECK_SIGSET.
21637         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
21638         use CHECK_SIGSET.
21639         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
21640         (do_sigwait): Don't use CHECK_SIGSET.
21641         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
21642         use CHECK_SIGSET.
21643         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
21644         include <bp-checks.h>.
21645         (sigpending): Don't use CHECK_SIGSET.
21646         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
21647         include <bp-checks.h>.
21648         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21649         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
21650         <bp-checks.h>.
21651         (sigpending): Don't use CHECK_SIGSET.
21652         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
21653         <bp-checks.h>.
21654         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21655
21656         [BZ #13550]
21657         * sysdeps/generic/bp-semctl.h: Remove file.
21658         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
21659         <bp-checks.h> and <bp-semctl.h>.
21660         (__old_semctl): Don't use CHECK_SEMCTL.
21661         (__new_semctl): Likewise.
21662         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
21663         and <bp-semctl.h>.
21664         (__old_semctl): Don't use CHECK_SEMCTL.
21665         (__new_semctl): Likewise.
21666         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
21667         <bp-checks.h> and <bp-semctl.h>.
21668         (__old_semctl): Don't use CHECK_SEMCTL.
21669         (__new_semctl): Likewise.
21670         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
21671         <bp-checks.h> and <bp-semctl.h>.
21672         (semctl): Don't use CHECK_SEMCTL.
21673
21674         [BZ #13550]
21675         * Makerules (elide-bp-thunks): Remove variable.
21676         (elide-routines.oS): Don't use $(elide-bp-thunks).
21677         (elide-routines.os): Likewise.
21678         (elide-routines.o): Likewise.
21679         (elide-routines.op): Likewise.
21680         (elide-routines.og): Likewise.
21681         (objects): Don't use $(bp-thunks).
21682         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
21683         include.
21684         (common-generated): Do not add s-proto-bp.d.
21685         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
21686         (int): Likewise.
21687         (typ): Likewise.
21688         Do not generate makefile rules for bounded-pointer thunks.
21689         * sysdeps/generic/bp-thunks.h: Remove file.
21690         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
21691         * sysdeps/unix/s-proto-bp.S: Likewise.
21692
21693         [BZ #15062]
21694         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
21695         parts of result separately when argument is not close to line from
21696         -i to i and one part of argument is small.
21697         * math/k_casinhf.c (__kernel_casinhf): Likewise.
21698         * math/k_casinhl.c (__kernel_casinhl): Likewise.
21699         * math/libm-test.inc (cacos_test): Add more tests.
21700         (casin_test): Likewise.
21701         (casinh_test): Likewise.
21702         * sysdeps/i386/fpu/libm-test-ulps: Update.
21703         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21704
21705 2013-01-31  David S. Miller  <davem@davemloft.net>
21706
21707         * po/de.po: Update from translation team.
21708
21709 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
21710
21711         * time/tzfile.c: Include stdint.h for SIZE_MAX.
21712
21713 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
21714
21715         * configure.in (_AC_PROG_CC_C89): New definition.
21716         * configure: Regenerate.
21717
21718         * configure.in (AC_PROG_CPP): New definition.
21719         * configure: Regenerate.
21720
21721 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
21722
21723         * debug/tst-backtrace.h: New file.
21724         * debug/tst-backtrace2.c: Include tst-backtrace.h.
21725         (ret): Remove variable.
21726         (x): Likewise.
21727         (FAIL): Remove macro.
21728         (NO_INLINE): Likewise.
21729         (fn1): Use match function instead of strstr.
21730         * debug/tst-backtrace3.c: Include tst-backtrace.h.
21731         (ret): Remove variable.
21732         (x): Likewise.
21733         (FAIL): Remove macro.
21734         (NO_INLINE): Likewise.
21735         (fn): Use match function instead of strstr.
21736         * debug/tst-backtrace4.c: Include tst-backtrace.h.
21737         (ret): Remove variable.
21738         (x): Likewise.
21739         (FAIL): Remove macro.
21740         (NO_INLINE): Likewise.
21741         (handle_signal): Use match function instead of strstr.
21742         * debug/tst-backtrace5.c: Include tst-backtrace.h.
21743         (ret): Remove variable.
21744         (x): Likewise.
21745         (FAIL): Remove macro.
21746         (NO_INLINE): Likewise.
21747         (handle_signal): Use match function instead of strstr.
21748
21749 2013-01-23  Roland McGrath  <roland@hack.frob.com>
21750
21751         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
21752
21753 2013-01-23  David S. Miller  <davem@davemloft.net>
21754
21755         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
21756         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
21757         argument of CAS if possible.
21758         * sysdeps/sparc/sparc64/bits/atomic.h
21759         (__arch_compare_and_exchange_val_32_acq): Likewise.
21760         (__arch_compare_and_exchange_val_64_acq): Likewise.
21761
21762 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
21763
21764         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
21765         * sysdeps/posix/ulimit.c: ... this.
21766         Include <limits.h>.
21767         * sysdeps/unix/bsd/ulimit.c: Remove file.
21768
21769 2013-01-23  Adam Conrad  <adconrad@0c3.net>
21770
21771         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
21772         (LDFLAGS-tst-array5): Likewise.
21773
21774 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
21775
21776         [BZ #15036]
21777         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
21778         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
21779         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
21780         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
21781
21782 2013-01-21  David S. Miller  <davem@davemloft.net>
21783
21784         * sysdeps/sparc/backtrace.c: New file.
21785         * sysdeps/sparc/sparc32/backtrace.h: New file.
21786         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
21787         * sysdeps/sparc/sparc64/backtrace.h: New file.
21788         * sysdeps/sparc/sparc64/backtrace.c: Delete.
21789         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
21790         -funwind-tables.
21791
21792 2013-01-21  Andreas Schwab  <schwab@suse.de>
21793
21794         [BZ #15020]
21795         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
21796         closed its stdout.
21797
21798 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
21799
21800         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
21801         "mpa2.h".
21802         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21803
21804 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
21805             Mark Mitchell  <mark@codesourcery.com>
21806             Tom de Vries  <tom@codesourcery.com>
21807             Paul Pluzhnikov  <ppluzhnikov@google.com>
21808
21809         * debug/tst-backtrace2.c: New file.
21810         * debug/tst-backtrace3.c: Likewise.
21811         * debug/tst-backtrace4.c: Likewise.
21812         * debug/tst-backtrace5.c: Likewise.
21813         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
21814         (CFLAGS-tst-backtrace3.c): Likewise.
21815         (CFLAGS-tst-backtrace4.c): Likewise.
21816         (CFLAGS-tst-backtrace5.c): Likewise.
21817         (LDFLAGS-tst-backtrace2): Likewise.
21818         (LDFLAGS-tst-backtrace3): Likewise.
21819         (LDFLAGS-tst-backtrace4): Likewise.
21820         (LDFLAGS-tst-backtrace5): Likewise.
21821         (tests): Add new tests tst-backtrace2, tst-backtrace3,
21822         tst-backtrace4 and tst-backtrace5.
21823
21824 2013-01-18  Anton Blanchard  <anton@samba.org>
21825             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
21826
21827         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
21828         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
21829         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
21830         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
21831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21832         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
21833         "+r" and remove output regs list as redundant.  Add explicit inline
21834         asm to specify register of return val to work around compiler codegen
21835         bug.  Remove (int) cast on return value.  Add return type parameter to
21836         use in macro so that this macro does not truncate return value for
21837         64-bit values.
21838         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
21839         pass to INTERNAL_VSYSCALL_NCS.
21840         (INLINE_VSYSCALL): Add 'long int' as return type to
21841         INTERNAL_VSYSCALL_NCS macro invocation.
21842         (INTERNAL_VSYSCALL): Add 'long int' as return type to
21843         INTERNAL_VSYSCALL_NCS macro invocation.
21844         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21845
21846 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21847
21848         [BZ #14496]
21849         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
21850         Fix application of SIMD FP exception mask.
21851
21852         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
21853         mp_no from a power of two.
21854         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
21855         __mpexp_twomm1.  Use __pow_mp.
21856
21857         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
21858         multiplication.
21859
21860 2013-01-17  David S. Miller  <davem@davemloft.net>
21861
21862         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21863
21864 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
21865
21866         [BZ #15023]
21867         * include/complex.h: Condition contents on [!_COMPLEX_H].
21868         (__kernel_casinhf): New prototype.
21869         (__kernel_casinh): Likewise.
21870         (__kernel_casinhl): Likewise.
21871         * math/Makefile (libm_calls): Add k_casinh.
21872         * math/k_casinh.c: New file.
21873         * math/k_casinhf.c: Likewise.
21874         * math/k_casinhl.c: Likewise.
21875         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
21876         finite nonzero arguments.
21877         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
21878         finite nonzero arguments.
21879         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
21880         finite nonzero arguments.
21881         * math/s_casinh.c: Do not include <float.h>.
21882         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
21883         * math/s_casinhf.c: Do not include <float.h>.
21884         (__casinhf): Move code for finite nonzero arguments to
21885         k_casinhf.c.
21886         * math/s_casinhl.c: Do not include <float.h>.
21887         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
21888         redefine.
21889         (__casinhl): Move code for finite nonzero arguments to
21890         k_casinhl.c.
21891         * math/libm-test.inc (cacos_test): Add more tests.
21892         * sysdeps/i386/fpu/libm-test-ulps: Update.
21893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21894
21895 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
21896
21897         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
21898         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
21899         [!HAVE_MREMAP]: Remove [defined linux] case.
21900         * malloc/arena.c: Do not include <malloc-sysdep.h>.
21901
21902 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
21903
21904         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
21905
21906 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
21907
21908         * elf/elf.h (R_386_SIZE32): New relocation.
21909         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
21910         R_386_SIZE32.
21911         (elf_machine_rela): Likewise.
21912         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
21913         R_X86_64_SIZE64 and R_X86_64_SIZE32.
21914
21915 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
21916
21917         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
21918         (FP_FAST_FMA): Do not define.
21919         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
21920         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
21921         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
21922         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
21923         !_SOFT_FLOAT]: Likewise.
21924         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
21925         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
21926         value.
21927         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
21928         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
21929         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
21930         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
21931         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
21932         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
21933         file.
21934
21935 2013-01-16  Andreas Schwab  <schwab@suse.de>
21936
21937         [BZ #14327]
21938         * include/stdlib.h (__mktemp): Add declaration.
21939         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
21940         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
21941
21942 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
21943
21944         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
21945         definitions.
21946         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
21947         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
21948         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
21949         definitions here.
21950         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
21951         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
21952         definitions.
21953         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
21954         and ONE.
21955         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
21956         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
21957         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
21958         definitions.
21959         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
21960         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
21961         definitions.
21962         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
21963
21964         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
21965
21966 2013-01-15  David S. Miller  <davem@davemloft.net>
21967
21968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
21969         trunc{,f} to libm-sysdep_routes.
21970         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
21971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
21972         file.
21973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
21974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
21975         file.
21976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
21977         file.
21978         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
21979         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
21980         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
21981         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
21982         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
21983         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
21984         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
21985         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
21986
21987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
21988         nearbyint{,f} to libm-sysdep_routes.
21989         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
21990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
21991         New file.
21992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
21993         file.
21994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
21995         New file.
21996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
21997         file.
21998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
21999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22000         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22001         file.
22002         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22003         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22004         file.
22005         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22006         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22007         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22008
22009         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22010         libc_feholdexcept and libc_fesetenv.
22011
22012 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22013
22014         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22015
22016 2013-01-14  David S. Miller  <davem@davemloft.net>
22017
22018         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22019         (SPARC_ASM_VIS2_IFUNC): Likewise.
22020         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22021         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22022         use of 'siam' instruction.
22023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22024         Likewise.
22025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22026         Likewise.
22027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22028         Likewise.
22029         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22030         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22031         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22032         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22034         file.
22035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22036         file.
22037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22038         file.
22039         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22040         file.
22041         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22042         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22043         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22044         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22046         new VIS2 routines.
22047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22050         Likewise.
22051         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22052         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22053         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22054         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22056         routines to libm-sysdep_routines.
22057         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22058
22059         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22060         fdim/fdimf to libm-sysdep_routines.
22061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22062         file.
22063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22065         file.
22066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22069         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22070         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22071         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22072         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22073
22074 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22075
22076         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22077         to optimize copies.
22078
22079         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22080         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22081         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22082
22083         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22084         local variable MPTWO.
22085         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22086         Likewise.
22087
22088 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22089
22090         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22091         GLOB_NOESCAPE.
22092
22093 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22094
22095         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
22096
22097 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22098
22099         * manual/pattern.texi (glob_t): Document gl_flags.
22100         (glob64_t): Likewise.
22101
22102 2013-01-11  David S. Miller  <davem@davemloft.net>
22103
22104         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
22105         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
22106         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
22107         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
22108         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
22109         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
22110         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
22111         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
22112         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
22113         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
22114         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
22115         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
22116         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
22117
22118         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22119         sparc V9 rather than using V8 code.
22120         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22121         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22122
22123         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22124         Move to...
22125         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
22126         Here.
22127
22128 2013-01-11  Roland McGrath  <roland@hack.frob.com>
22129
22130         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
22131         not in the main loop.
22132         * configure: Regenerated.
22133
22134 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
22135
22136         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
22137         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
22138         to just #else.
22139         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
22140         [!__GLIBC_HAVE_LONG_LONG] case.
22141         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
22142         condition to just #else.
22143         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
22144         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
22145         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
22146         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
22147         unconditional.
22148         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
22149         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22150         #elif condition to just #else.
22151         * sysdeps/unix/sysv/linux/sys/sysmacros.h
22152         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
22153         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22154         #elif condition to just #else.
22155
22156 2013-01-11  Steve Ellcey  <sellcey@mips.com>
22157
22158         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
22159         (EF_MIPS_ARCH_64): Fix value.
22160         (EF_MIPS_ARCH_32R2): New.
22161         (EF_MIPS_ARCH_64R2): New.
22162
22163 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
22164
22165         * Makeconfig (+link-pie-before-libc): New.
22166         (+link-pie-after-libc): Likewise.
22167         (+link-pie-tests): Likewise.
22168         (+link-pie): Rewritten.
22169         (link-before-libc): Remove $(config-LDFLAGS).
22170         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
22171         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
22172         (config-LDFLAGS): Renamed to ...
22173         (rtld-LDFLAGS): This.
22174         (rtld-tests-LDFLAGS): New macro.
22175         (link-libc-rpath-link): Likewise.
22176         (link-libc-tests-rpath-link): Likewise.
22177         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
22178         (link-libc): Prepand $(link-libc-rpath-link).
22179         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
22180         (test-program-prefix): New macro.
22181         (test-via-rtld-prefix): Likewise.
22182         (test-program-cmd): Likewise.
22183         (host-test-program-cmd): Likewise.
22184         * Makefile ($(common-objpfx)testrun.sh): Replace
22185         $(run-program-prefix) with $(test-program-prefix).
22186         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
22187         $(rtld-LDFLAGS).
22188         ($(common-objpfx)shlib.lds): Likewise.
22189         (build-module-helper): Likewise.
22190         ($(common-objpfx)format.lds): Likewise.
22191         * Rules (binaries-pie-tests): New.
22192         (binaries-pie-notests): Likewise.
22193         (binaries-pie): Rewritten.
22194         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
22195         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
22196         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
22197         (make-test-out): Replace $(host-built-program-cmd) with
22198         $(host-test-program-cmd).
22199         * config.make.in (build-hardcoded-path-in-tests): New variable.
22200         * configure.in (--enable-hardcoded-path-in-tests): New configure
22201         option.
22202         (hardcoded_path_in_tests): New AC_SUBST.
22203         * configure: Regenerated.
22204         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
22205         $(built-program-cmd) with $(test-program-cmd).
22206         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
22207         (test_program_cmd): This.
22208         * elf/Makefile ($(objpfx)order.out): Run test with
22209         $(test-program-prefix).
22210         ($(objpfx)order2.out): Likewise.
22211         ($(objpfx)tst-initorder.out): Likewise.
22212         ($(objpfx)tst-initorder2.out): Likewise.
22213         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
22214         $(test-program-cmd).
22215         ($(objpfx)tst-array1-static.out): Likewise.
22216         ($(objpfx)tst-array2.out): Likewise.
22217         ($(objpfx)tst-array3.out): Likewise.
22218         ($(objpfx)tst-array4.out): Likewise.
22219         ($(objpfx)tst-array5.out): Likewise.
22220         ($(objpfx)tst-array5-static.out): Likewise.
22221         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
22222         $(test-program-cmd).
22223         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
22224         $(run-program-prefix) with $(test-program-prefix).
22225         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
22226         (test_program_prefix): This.
22227         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
22228         $(run-program-prefix) with $(test-program-prefix).
22229         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
22230         (test_program_prefix): This.
22231         * iconvdata/tst-tables.sh: Likewise.
22232         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
22233         $(run-program-prefix) with $(test-program-prefix).
22234         ($(objpfx)tst-translit.out): Likewise.
22235         ($(objpfx)tst-gettext2.out): Likewise.
22236         ($(objpfx)tst-gettext4.out): Likewise.
22237         ($(objpfx)tst-gettext6.out): Likewise.
22238         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
22239         (test_program_prefix): This.
22240         * intl/tst-gettext2.sh: Likewise.
22241         * intl/tst-gettext4.sh  Likewise.
22242         * intl/tst-gettext6.sh: Likewise.
22243         * intl/tst-translit.sh: Likewise.
22244         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
22245         with $(test-program-cmd).
22246         * libio/Makefile ($(objpfx)test-freopen.out): Replace
22247         $(run-program-prefix) with $(test-program-prefix).
22248         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
22249         (test_program_prefix): This.
22250         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
22251         $(run-program-prefix) with $(test-program-prefix).
22252         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
22253         (test_program_prefix): This.
22254         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
22255         * posix/Makefile ($(objpfx)globtest.out): Replace
22256         $(run-via-rtld-prefix) and $(test-wrapper) with
22257         $(test-program-prefix) and $(test-via-rtld-prefix).
22258         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
22259         $(test-program-prefix).
22260         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
22261         $(host-test-program-cmd).
22262         (tst-spawn-ARGS): Likewise.
22263         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
22264         $(test-program-prefix).
22265         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
22266         (test_via_rtld_prefix): This.
22267         (test_wrapper): Renamed to ...
22268         (test_program_prefix): This.
22269         (run_program_prefix): Replaced by test_program_prefix.
22270         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
22271         (test_program_prefix): This.
22272         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
22273         with $(host-test-program-cmd).
22274         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
22275         $(run-program-prefix) with $(test-program-prefix).
22276         ($(objpfx)tst-printf.out): Likewise.
22277         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
22278         $(test-program-cmd).
22279         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
22280         (test_program_prefix): This.
22281         * stdio-common/tst-unbputc.sh: Likewise.
22282         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
22283         $(run-program-prefix) with $(test-program-prefix).
22284         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
22285         (test_program_prefix): This.
22286         * string/Makefile ($(objpfx)tst-svc.out):  Replace
22287         $(built-program-cmd) with $(test-program-cmd).
22288
22289 2013-01-11  Andreas Jaeger  <aj@suse.de>
22290
22291         [BZ #15003]
22292         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
22293         value. Sync with Linux 3.7.
22294
22295 2013-01-10  David S. Miller  <davem@davemloft.net>
22296
22297         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
22298         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22299         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22300
22301 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22302
22303         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
22304         never set.
22305         * configure: Regenerated.
22306
22307 2013-01-10  David S. Miller  <davem@davemloft.net>
22308
22309         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22310         sparc V9 rather than using V8 code.
22311         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22312         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22313
22314 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22315
22316         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
22317         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
22318         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
22319         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
22320         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
22321         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
22322         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
22323         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
22324         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
22325         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
22326         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
22327         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
22328         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
22329         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
22330         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
22331         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
22332         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
22333         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
22334         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
22335         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
22336         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
22337         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
22338         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
22339         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
22340         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
22341         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
22342         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
22343
22344 2013-01-10  David S. Miller  <davem@davemloft.net>
22345
22346         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22347
22348 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22349
22350         * posix/Makefile (tests-static): New variable.
22351         (tests): Add $(tests-static).
22352         (tst-exec-static-ARGS): New variable.
22353         (tst-spawn-static-ARGS): Likewise.
22354         * posix/tst-exec-static.c: New file.
22355         * posix/tst-spawn-static.c: Likewise.
22356         * posix/tst-exec.c: Support run directly.
22357         * posix/tst-spawn.c: Likewise.
22358
22359 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
22360
22361         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
22362         long.
22363         * math/bits/mathcalls.h (llrint): Likewise.
22364         (llround): Likewise.
22365         * stdlib/stdlib.h (struct drand48_data): Likewise.
22366         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
22367         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
22368         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
22369         Likewise.
22370         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
22371         Likewise.
22372         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
22373         (elf_greg_t): Likewise.
22374         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
22375         (__jmp_buf): Likewise.
22376         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
22377         definitions.
22378         (llrint): Likewise, for all definitions.
22379         (llrintl): Likewise.
22380
22381         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
22382         Remove [__GNUC__] condition.
22383         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
22384         condition to just [__USE_ISOC99].
22385         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
22386
22387 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22388
22389         [BZ #14200]
22390         * sysdeps/unix/sysv/linux/x86/bits/environments.h
22391         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
22392         defined.
22393         (_POSIX_V6_ILP32_OFF32): Likewise.
22394         (_XBS5_ILP32_OFF32): Likewise.
22395         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
22396         (__ILP32_OFFBIG_LDFLAGS): Likewise.
22397
22398 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22399
22400         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
22401
22402         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
22403         doubles __mpexp_twomm1.  Adjust usage.
22404         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
22405         Remove.
22406
22407 2013-01-10  Andreas Schwab  <schwab@suse.de>
22408
22409         [BZ #14964]
22410         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
22411         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
22412
22413 2013-01-09  David S. Miller  <davem@davemloft.net>
22414
22415         [BZ #15003]
22416         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
22417         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
22418         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
22419         (TCP_FASTOPEN): Define.
22420         (tcp_repair_opt): New structure.
22421         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
22422         enum values.
22423         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
22424         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
22425         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
22426         (tcp_cookie_transactions): New structure.
22427
22428 2013-01-09  Anton Blanchard  <anton@samba.org>
22429
22430         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
22431         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
22432         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
22433         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
22434
22435 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
22436
22437         * include/features.h (__USE_ANSI): Remove.
22438
22439 2013-01-09  Roland McGrath  <roland@hack.frob.com>
22440
22441         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
22442
22443         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
22444
22445 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
22446
22447         * sysdeps/s390/fpu/libm-test-ulps: Update.
22448
22449         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22450
22451         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
22452         (__acr): Likewise.
22453         (__cpy): Likewise.
22454         (norm): Likewise.
22455         (denorm): Likewise.
22456         (__mp_dbl): Likewise.
22457         (__dbl_mp): Likewise.
22458         (add_magnitudes): Likewise.
22459         (sub_magnitudes): Likewise.
22460         (__add): Likewise.
22461         (__sub): Likewise.
22462         (__mul): Likewise.
22463         (__inv): Likewise.
22464         (__dvd): Likewise.
22465         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
22466         (__acr): Likewise.
22467         (__cpy): Likewise.
22468         (norm): Likewise.
22469         (denorm): Likewise.
22470         (__mp_dbl): Likewise.
22471         (__dbl_mp): Likewise.
22472         (add_magnitudes): Likewise.
22473         (sub_magnitudes): Likewise.
22474         (__add): Likewise.
22475         (__sub): Likewise.
22476         (__mul): Likewise.
22477         (__inv): Likewise.
22478         (__dvd): Likewise.
22479         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
22480         (__acr): Likewise.
22481         (__cpy): Likewise.
22482         (norm): Likewise.
22483         (denorm): Likewise.
22484         (__mp_dbl): Likewise.
22485         (__dbl_mp): Likewise.
22486         (add_magnitudes): Likewise.
22487         (sub_magnitudes): Likewise.
22488         (__add): Likewise.
22489         (__sub): Likewise.
22490         (__mul): Likewise.
22491         (__inv): Likewise.
22492         (__dvd): Likewise.
22493
22494 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
22495
22496         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
22497         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
22498         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
22499         2 && __USE_EXTERN_INLINES]: Likewise.
22500
22501 2013-01-08  Andreas Jaeger  <aj@suse.de>
22502
22503         [BZ# 14985]
22504         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
22505         Remove.
22506         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
22507         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
22508
22509 2013-01-07  Anton Blanchard  <anton@samba.org>
22510
22511         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
22512         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
22513         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
22514         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
22515         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
22516         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
22517         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
22518         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
22519         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22520         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
22521         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22522         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22523         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
22524         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
22525         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
22526         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22527         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22528         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
22529         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
22530         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
22531         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
22532         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
22533         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
22534         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
22535         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
22536         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
22537         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
22538         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
22539         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
22540         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
22541         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
22542         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22543         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
22544         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
22545         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
22546         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
22547         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
22548         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
22549         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
22550         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
22551         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
22552         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22553         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
22554
22555 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
22556
22557         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
22558         (__MALLOC_PMT): Likewise.
22559         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
22560         [__GNUC__], only on [_LIBC].
22561         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
22562         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
22563         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
22564         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
22565         forward declaration.
22566         (realloc_hook_ini): Likewise.
22567         (memalign_hook_ini): Likewise.
22568         (__libc_memalign): Do not use __MALLOC_PMT in variable
22569         declaration.
22570         (__libc_valloc): Likewise.
22571         (__libc_pvalloc): Likewise.
22572         (__libc_calloc): Likewise.
22573         (__posix_memalign): Likewise.
22574
22575         [BZ #14996]
22576         * math/s_casinh.c: Include <float.h>.
22577         (__casinh): Do not do computation with squaring and square root
22578         for large arguments.
22579         * math/s_casinhf.c: Include <float.h>.
22580         (__casinhf): Do not do computation with squaring and square root
22581         for large arguments.
22582         * math/s_casinhl.c: Include <float.h>.
22583         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
22584         (__casinhl): Do not do computation with squaring and square root
22585         for large arguments.
22586         * math/libm-test.inc (casin_test): Add more tests.
22587         (casinh_test): Likewise.
22588         * sysdeps/i386/fpu/libm-test-ulps: Update.
22589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22590
22591 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22592
22593         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
22594         (__x86_64_raw_data_cache_size): Likewise.
22595         (__x86_64_data_cache_size_half): Likewise.
22596         (__x86_64_raw_data_cache_size_half): Likewise.
22597         (__x86_64_shared_cache_size): Likewise.
22598         (__x86_64_raw_shared_cache_size): Likewise.
22599         (__x86_64_shared_cache_size_half): Likewise.
22600         (__x86_64_raw_shared_cache_size_half): Likewise.
22601         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
22602         to ...
22603         (__x86_data_cache_size): This.
22604         (__x86_64_raw_data_cache_size): Renamed to ...
22605         (__x86_raw_data_cache_size): This.
22606         (__x86_64_data_cache_size_half): Renamed to ...
22607         (__x86_data_cache_size_half): This.
22608         (__x86_64_raw_data_cache_size_half): Renamed to ...
22609         (__x86_raw_data_cache_size_half): This.
22610         (__x86_64_shared_cache_size): Renamed to ...
22611         (__x86_shared_cache_size): This.
22612         (__x86_64_raw_shared_cache_size): Renamed to ...
22613         (__x86_raw_shared_cache_size): This.
22614         (__x86_64_shared_cache_size_half): Renamed to ...
22615         (__x86_shared_cache_size_half): This.
22616         (__x86_64_raw_shared_cache_size_half): Renamed to ...
22617         (__x86_raw_shared_cache_size_half): This.
22618         * sysdeps/x86_64/memcpy.S: Updated.
22619         * sysdeps/x86_64/memset.S: Likewise.
22620         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
22621         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
22622         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
22623
22624 2013-01-04  David S. Miller  <davem@davemloft.net>
22625
22626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22627
22628 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
22629
22630         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
22631         1 to avoid redefinition warning.
22632         (__USE_GNU): Don't define.
22633         (init_signaling_nan): Protoize.
22634
22635         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22636
22637 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22638
22639         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
22640         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
22641         (__cpymn): Likewise.
22642         (norm): Remove commented code.
22643         (denorm): Likewise.
22644         (__mp_dbl): Likewise.
22645         (__inv): Likewise.
22646         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
22647         (__cpymn): Likewise.
22648         (norm): Remove commented code.
22649         (denorm): Likewise.
22650         (__mp_dbl): Likewise.
22651         (__inv): Likewise.
22652
22653         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
22654         mp_no value for 1.0 and 2.0.
22655         (norm): Use RADIXI instead of radixi.d.
22656         (denorm): Likewise.
22657         (__mul): Use 0.0 instead of zero.d.
22658         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
22659         mp_no value for 1.0 and 2.0.
22660         (norm): Use RADIXI instead of radixi.d.
22661         (denorm): Likewise.
22662         (__mul): Use 0.0 instead of zero.d.
22663
22664 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
22665
22666         [BZ #14994]
22667         * math/s_casinh.c (__casinh): Reduce finite argument to first
22668         quadrant then set signs of results at the end.
22669         * math/s_casinhf.c (__casinhf): Likewise.
22670         * math/s_casinhl.c (__casinhl): Likewise.
22671         * math/libm-test.inc (casin_test): Add more tests.
22672         (casinh_test): Likewise.
22673         * sysdeps/i386/fpu/libm-test-ulps: Update.
22674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22675
22676 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22677
22678         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
22679
22680         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
22681
22682         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
22683         declarations.
22684         (denorm): Likewise.
22685         (__mp_dbl): Likewise.
22686         (__inv): Likewise.
22687
22688         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
22689         and adjust the header comment.
22690
22691         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
22692         variable name from declaration.
22693
22694 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22695
22696         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22697         Initialize COMMON_CPUID_INDEX_7 element.
22698         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
22699         (CPUID_RTM): Likewise.
22700         (HAS_RTM): Likewise.
22701         (COMMON_CPUID_INDEX_7): New enum.
22702
22703 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
22704
22705         [BZ #14981]
22706         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
22707         size is zero, record memory as freed.
22708
22709 2013-01-03  Andreas Jaeger  <aj@suse.de>
22710
22711         * po/ia.po: Add new Interlingua translation.
22712
22713 2012-01-03  Allan McRae  <allan@archlinux.org>
22714
22715         * locale/programs/localedef.c: Fix description of '--posix' flag.
22716
22717 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
22718
22719         * NEWS: Update dates in second copyright notice.
22720         * README: Update copyright dates in example.
22721         * manual/libc.texinfo: Update copyright dates.
22722         * scripts/test-installation.pl: Update copyright date in --version
22723         output.
22724
22725         * hurd/ctty-input.c: Fix copyright notice formatting.
22726         * hurd/ctty-output.c: Likewise.
22727         * hurd/dtable.c: Likewise.
22728         * hurd/hurd-raise.c: Likewise.
22729         * hurd/hurdprio.c: Likewise.
22730         * hurd/msgportdemux.c: Likewise.
22731         * misc/sys/file.h: Likewise.
22732         * misc/sys/ioctl.h: Likewise.
22733         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
22734         * sysdeps/mach/hurd/chdir.c: Likewise.
22735         * sysdeps/mach/hurd/fchdir.c: Likewise.
22736         * sysdeps/mach/hurd/rename.c: Likewise.
22737         * sysdeps/mach/hurd/rmdir.c: Likewise.
22738         * sysdeps/mach/hurd/seekdir.c: Likewise.
22739         * sysdeps/mach/hurd/setsid.c: Likewise.
22740         * sysdeps/posix/wait3.c: Likewise.
22741
22742         * All files with FSF copyright notices: Update copyright dates
22743         using scripts/update-copyrights.
22744         * intl/plural.c: Regenerated.
22745         * locale/programs/charmap-kw.h: Likewise.
22746         * locale/programs/locfile-kw.h: Likewise.
22747
22748 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22749
22750         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
22751         four values.
22752
22753         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
22754         calculation loop and add branch prediction.
22755
22756         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
22757         check access beyond bounds of m1np.
22758
22759         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
22760         MPTWO.
22761         (__inv): Remove local variable MPTWO to use the global
22762         constant.
22763         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
22764         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
22765         variable MPTWO.
22766         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
22767         MP3HALFS static const.
22768
22769 2013-01-01  David S. Miller  <davem@davemloft.net>
22770
22771         * po/ca.po: Update from translation team.
22772
22773 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
22774
22775         * scripts/update-copyrights: New file.
22776         * Makeconfig: Reformat copyright notice.
22777         * ctype/ctype.h: Likewise.
22778         * debug/swprintf_chk.c: Likewise.
22779         * elf/dl-cache.c: Likewise.
22780         * elf/dl-debug.c: Likewise.
22781         * elf/dl-object.c: Likewise.
22782         * grp/initgroups.c: Likewise.
22783         * hurd/Makefile: Likewise.
22784         * hurd/hurd/signal.h: Likewise.
22785         * hurd/hurdfault.c: Likewise.
22786         * hurd/hurdioctl.c: Likewise.
22787         * hurd/hurdlookup.c: Likewise.
22788         * hurd/intr-msg.c: Likewise.
22789         * iconv/gconv_open.c: Likewise.
22790         * libio/swprintf.c: Likewise.
22791         * locale/lc-ctype.c: Likewise.
22792         * locale/nl_langinfo.c: Likewise.
22793         * mach/Machrules: Likewise.
22794         * mach/Makefile: Likewise.
22795         * malloc/obstack.h: Likewise.
22796         * manual/Makefile: Likewise.
22797         * manual/tsort.awk: Likewise.
22798         * misc/bits/stab.def: Likewise.
22799         * nis/nis_print_group_entry.c: Likewise.
22800         * nis/nis_table.c: Likewise.
22801         * nis/nss_compat/compat-pwd.c: Likewise.
22802         * nis/nss_compat/compat-spwd.c: Likewise.
22803         * po/Makefile: Likewise.
22804         * posix/fnmatch.c: Likewise.
22805         * posix/regex.h: Likewise.
22806         * resolv/Makefile: Likewise.
22807         * resolv/nss_dns/dns-network.c: Likewise.
22808         * resolv/res_hconf.c: Likewise.
22809         * scripts/gen-sorted.awk: Likewise.
22810         * soft-fp/soft-fp.h: Likewise.
22811         * stdio-common/printf.h: Likewise.
22812         * stdlib/monetary.h: Likewise.
22813         * stdlib/random.c: Likewise.
22814         * stdlib/random_r.c: Likewise.
22815         * sysdeps/generic/Makefile: Likewise.
22816         * sysdeps/gnu/Makefile: Likewise.
22817         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22818         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22819         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22820         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22821         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22822         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22823         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22824         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
22825         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22826         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22827         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
22828         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
22829         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
22830         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
22831         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
22832         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
22833         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
22834         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22835         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22836         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22837         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22838         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22839         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22840         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
22841         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
22842         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
22843         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
22844         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
22845         * sysdeps/mach/hurd/errnos.awk: Likewise.
22846         * sysdeps/mach/hurd/fork.c: Likewise.
22847         * sysdeps/mach/hurd/getcwd.c: Likewise.
22848         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
22849         * sysdeps/mach/hurd/mmap.c: Likewise.
22850         * sysdeps/mach/hurd/utimes.c: Likewise.
22851         * sysdeps/mach/hurd/xmknod.c: Likewise.
22852         * sysdeps/posix/profil.c: Likewise.
22853         * sysdeps/posix/readdir_r.c: Likewise.
22854         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22855         * sysdeps/powerpc/bits/setjmp.h: Likewise.
22856         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
22857         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
22858         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22859         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
22860         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
22861         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
22862         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22863         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
22864         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
22865         * sysdeps/pthread/lio_listio.c: Likewise.
22866         * sysdeps/sparc/dl-procinfo.h: Likewise.
22867         * sysdeps/unix/i386/sysdep.S: Likewise.
22868         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
22869         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
22870         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
22871         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
22872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22873         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
22874         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
22875         * sysdeps/unix/sysv/linux/speed.c: Likewise.
22876         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
22877         * sysdeps/wordsize-32/divdi3.c: Likewise.
22878         * time/sys/time.h: Likewise.
22879         * wcsmbs/Makefile: Likewise.
22880
22881 2013-01-01  David S. Miller  <davem@davemloft.net>
22882
22883         * po/fr.po: Update from translation team.
22884
22885         * catgets/gencat.c: Update copyright year.
22886         * csu/version.c: Likewise.
22887         * debug/catchsegv.sh: Likewise.
22888         * debug/pcprofiledump.c: Likewise.
22889         * debug/xtrace.sh: Likewise.
22890         * elf/ldconfig.c: Likewise.
22891         * elf/ldd.bash.in: Likewise.
22892         * elf/pldd.c: Likewise.
22893         * elf/sotruss.ksh: Likewise.
22894         * elf/sprof.c: Likewise.
22895         * iconv/iconv_prog.c: Likewise.
22896         * iconv/iconvconfig.c: Likewise.
22897         * locale/programs/locale.c: Likewise.
22898         * locale/programs/localedef.c: Likewise.
22899         * login/programs/pt_chown.c: Likewise.
22900         * malloc/memusage.sh: Likewise.
22901         * malloc/memusagestat.c: Likewise.
22902         * malloc/mtrace.pl: Likewise.
22903         * nscd/nscd.c: Likewise.
22904         * nss/getent.c: Likewise.
22905         * nss/makedb.c: Likewise.
22906         * posix/getconf.c: Likewise.
22907
22908 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
22909
22910         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
22911         numbers.
22912
22913 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
22914
22915         * math/bits/mathcalls.h (modf): Use __nonnull.
22916
22917 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
22918
22919         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
22920         (split): Use macro CN instead of the bare value.
22921         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
22922         could be used.
22923         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
22924         instead of the bare value.
22925         (power1): Likewise.
22926
22927 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22928
22929         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
22930         __ATAN_TWOM.
22931         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22932
22933         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
22934         their values.
22935         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22936         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
22937         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
22938         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22939
22940 2012-12-28  Andreas Jaeger  <aj@suse.de>
22941
22942         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
22943         values are from Linux 3.7.
22944
22945         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
22946         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
22947
22948 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22949
22950         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
22951         TRUE case.
22952
22953         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
22954         (norm): Likewise.
22955         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
22956         variables with preprocessor constants.
22957         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
22958         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
22959         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
22960
22961 2012-12-27  Bruno Haible  <bruno@clisp.org>
22962
22963         [BZ #14317]
22964         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
22965         only if needed.
22966
22967 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
22968
22969         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
22970         and use variable directly.
22971         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
22972
22973         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
22974         MPONE.
22975         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
22976         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
22977         variable MPONE.
22978         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
22979         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
22980         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
22981         include directive.  Remove local variable MPONE.
22982         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
22983         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
22984         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
22985
22986 2012-12-25  David S. Miller  <davem@davemloft.net>
22987
22988         * version.h (RELEASE): Set to "development".
22989         (VERSION): Set to "2.17.90".
22990         * NEWS: Add 2.18 section.
22991
22992 2012-12-21  David S. Miller  <davem@davemloft.net>
22993
22994         * po/hr.po: Update from translation team.
22995
22996 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22997
22998         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
22999
23000 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23001
23002         * NEWS:  Mention new memcpy for MIPS.
23003
23004 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23005
23006         * manual/contrib.texi (Contributors): Spelling correction.
23007
23008 2012-12-15  David S. Miller  <davem@davemloft.net>
23009
23010         * po/ru.po: Update from translation team.
23011
23012 2012-12-13  David S. Miller  <davem@davemloft.net>
23013
23014         * NEWS: Mention IFUNC testsuite enhancements.
23015
23016         * po/pl.po: Update from translation team.
23017         * po/bg.po: Likewise.
23018
23019         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23020         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23021
23022 2012-12-11  David S. Miller  <davem@davemloft.net>
23023
23024         * po/sv.po: Update from translation team.
23025
23026         * po/vi.po: Update from translation team.
23027
23028         * po/cs.po: Update from translation team.
23029
23030         * po/de.po: Update from translation team.
23031         * po/eo.po: Likewise.
23032         * po/nl.po: Likewise.
23033
23034 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23035
23036         [BZ #14246]
23037         * manual/argp.texi (Argp Helper Functions): Move node to follow
23038         Argp Parsing State.
23039
23040         [BZ #14872]
23041         * manual/conf.texi (Limits on File System Capacity): Mention if
23042         terminating null is included in the max size.
23043
23044 2012-12-10  Andreas Jaeger  <aj@suse.de>
23045
23046         * po/cs.po: Update from translation team.
23047
23048 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23049
23050         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23051         void pointer and cast to uintptr_t.
23052         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23053         path.
23054         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23055         * sysdeps/s390/s390-64/memset.S: Likewise.
23056
23057 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23058
23059         [BZ #14833]
23060         * menual/message.texi (Message Translation): Fix typos.
23061         (Helper programs for gettext): Likewise.
23062
23063 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23064
23065         [BZ #14898]
23066         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23067         Change to -1.
23068
23069 2012-12-07  David S. Miller  <davem@davemloft.net>
23070
23071         * po/libc.pot: Update.
23072
23073 2012-12-07  Richard Henderson  <rth@redhat.com>
23074
23075         [BZ #10114]
23076         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23077         normal/normal case to before the switch.
23078         (_FP_DIV): Likewise.
23079
23080 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23081             Mike Frysinger  <vapier@gentoo.org>
23082
23083         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23084         check for __NR_fadvise64_64.
23085
23086 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23087
23088         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23089         0, not just to plain "0" as a statement.
23090         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23091         with cw.
23092
23093 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
23094
23095         * NEWS: Use sourceware.org in Bugzilla URL.
23096
23097 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
23098
23099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23100         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23101
23102         * stdio-common/tst-put-error.c (do_test): Add newline to the
23103         padded test to ensure flush.
23104
23105 2012-12-05  Jeff Law  <law@redhat.com>
23106
23107         * sunrpc/etc.rpc (fedfs_admin): Add entry.
23108
23109 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
23110
23111         * README: Don't refer to ports add-on as distributed separately.
23112         Mention AArch64 in list of systems supported in the ports add-on.
23113
23114         * LICENSES: Add more non-FSF copyright and license notices.
23115
23116         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
23117         ((unused)).
23118
23119         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
23120
23121         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
23122         10000 as width of padded output.
23123
23124 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23125
23126         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
23127
23128         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
23129         variable LX with __attribute__ ((unused)).
23130         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
23131         Likewise.
23132         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
23133         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23134         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
23135         with __attribute__ ((unused)).
23136
23137 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
23138
23139         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
23140
23141 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23142
23143         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
23144         (CFLAGS-nldbl-acos.c): New variable.
23145         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
23146         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
23147         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
23148         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
23149         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
23150         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
23151         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
23152         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
23153         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
23154         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
23155         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
23156         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
23157         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
23158         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
23159         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
23160         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
23161         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
23162         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
23163         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
23164         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
23165         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
23166         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
23167         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
23168         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
23169         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
23170         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
23171         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
23172         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
23173         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
23174         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
23175         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
23176         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
23177         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
23178         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
23179         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
23180         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
23181         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
23182         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
23183         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
23184         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
23185         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
23186         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
23187         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
23188         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
23189         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
23190         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
23191         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
23192         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
23193         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
23194         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
23195         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
23196         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
23197         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
23198         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
23199         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
23200         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
23201         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
23202         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
23203         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
23204         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
23205         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
23206         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
23207         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
23208         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
23209         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
23210         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
23211         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
23212         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
23213         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
23214         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
23215         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
23216         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
23217         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
23218         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
23219         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
23220         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
23221         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
23222         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
23223         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
23224         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
23225         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
23226         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
23227         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
23228         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
23229         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
23230         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
23231         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
23232         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
23233         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
23234         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
23235         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
23236         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
23237         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
23238         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
23239         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
23240         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
23241         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
23242
23243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23244         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23245
23246         [BZ #14914]
23247         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
23248         whole low double instead of just low 47 bits when splitting values
23249         into two parts.
23250
23251 2012-12-03  Allan McRae  <allan@archlinux.org>
23252
23253         * manual/stdio.texi (Predefined Printf Handlers): Remove
23254         @hsep and @vsep usage.
23255
23256 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
23257
23258         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
23259         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
23260
23261 2012-12-03  Jeff Law  <law@redhat.com>
23262
23263         * time/sys/time.h (settimeofday): Do not mark TV argument
23264         as __nonnull.
23265
23266 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
23267
23268         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
23269         when currently writing and seek to current position when not.
23270         * libio/Makefile (tests): Remove bug-fclose1.
23271         * libio/bug-fclose1.c: Delete.
23272
23273 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
23274
23275         * manual/arith.texi (feenableexcept): Fix typo.
23276         (fedisableexcept): Likewise.
23277
23278 2012-11-30  Roland McGrath  <roland@hack.frob.com>
23279
23280         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
23281         second, differently-typed declaration, rather than a cast.
23282
23283 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23284
23285         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
23286         * include/rpc/svc.h: ... here.
23287
23288 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
23289
23290         [BZ #13013]
23291         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
23292         depending n and resplen2 to catch cases where answer
23293         equals answerp2.
23294
23295 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
23296
23297         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
23298         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
23299
23300 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
23301
23302         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
23303
23304 2012-11-29  Roland McGrath  <roland@hack.frob.com>
23305
23306         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
23307
23308 2012-11-28  Jeff Law  <law@redhat.com>
23309
23310         [BZ #13761]
23311         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
23312         dataset_temporary.  Track alloca usage into alloca_used.
23313         If dataset is large allocate and release it via malloc/free.
23314
23315 2012-06-04  Florian Weimer  <fweimer@redhat.com>
23316
23317         [BZ #14197]
23318         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
23319
23320 2012-11-28  David S. Miller  <davem@davemloft.net>
23321
23322         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23323
23324 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23325
23326         [BZ #14803]
23327         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
23328         of pi/2 rounded to nearest to 64 bits.
23329         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
23330         nearest to 64 bits.
23331         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
23332         bits.
23333
23334 2012-11-28  Jeff Law <law@redhat.com>
23335             Martin Osvald <mosvald@redhat.com>
23336
23337         [BZ #14889]
23338         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
23339         * sunrpc/svc.c: Include time.h.
23340         (__svc_accept_failed): New function.
23341         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
23342         any reason other than EINTR, call __svc_accept_failed.
23343         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
23344         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
23345
23346 2012-11-28  Andreas Schwab  <schwab@suse.de>
23347
23348         * scripts/abilist.awk: Also handle indirect functions in .opd
23349         section.
23350
23351 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23352
23353         [BZ #13881]
23354         * sysdeps/x86/fpu/powl_helper.c: New file.
23355         * sysdeps/x86/fpu/Makefile: Likewise.
23356         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
23357         (p3): New object.
23358         (__ieee754_powl): Use __powl_helper for finite arguments except
23359         integer exponents below 8.
23360         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
23361         (p3): New object.
23362         (__ieee754_powl): Use __powl_helper for finite arguments except
23363         integer exponents below 8.
23364         * math/libm-test.inc (pow_test): Add more tests and enable some
23365         previously disabled tests.
23366         * sysdeps/i386/fpu/libm-test-ulps: Update.
23367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23368
23369 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23370             Carlos O'Donell  <carlos_odonell@mentor.com>
23371
23372         * nss/makedb.c (is_prime): Assert that input is odd and greater
23373         than 4.  Note that fact in a comment too.
23374         (next_prime): Add 4 to input.
23375
23376 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23377
23378         [BZ #11741]
23379         * libio/Makefile (tests): Add test case tst-fwrite-error.
23380         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
23381         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
23382         * libio/tst-fwrite-error.c: New test case.
23383
23384 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
23385
23386         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
23387         before casting to void *.
23388         * include/libc-internal.h (__pointer_type): New macro.
23389         (__integer_if_pointer_type_sub): Likewise.
23390         (__integer_if_pointer_type): Likewise.
23391         (cast_to_integer): Likewise.
23392         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
23393         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
23394         before casting to atomic64_t.
23395         (atomic_exchange_acq): Likewise.
23396         (__arch_exchange_and_add_body): Likewise.
23397         (__arch_add_body): Likewise.
23398         (atomic_add_negative): Likewise.
23399         (atomic_add_zero): Likewise.
23400
23401 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
23402
23403         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
23404         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
23405         (add_fdes): Likewise.
23406         (linear_search_fdes): Likewise.
23407         (binary_search_unencoded_fdes): Likewise.
23408
23409 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
23410
23411         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
23412
23413 2012-11-24  Adam Conrad  <adconrad@0c3.net>
23414
23415         * configure.in: Autodetect C++ header directories.
23416         * configure: Regenerated.
23417
23418 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
23419
23420         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
23421
23422 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
23423
23424         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23425
23426 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
23427
23428         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
23429         LDBL_MANT_DIG == 106]: Disable some tests.
23430         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23431         Likewise.
23432         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23433         Likewise.
23434
23435         [BZ #14871]
23436         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
23437         input for small inputs.  Return +/- pi/2 for large inputs.
23438         * math/libm-test.inc (atan_test): Add more tests.
23439
23440         * sysdeps/generic/unwind-dw2-fde-glibc.c
23441         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
23442         __attribute__ ((unused)).
23443
23444         [BZ #14645]
23445         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
23446         x * y if x and y are nonzero and z is zero.
23447
23448         [BZ #14811]
23449         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
23450         nonzero exponents with absolute value below 0x1p-117 to +/-
23451         0x1p-117.
23452
23453         [BZ #14869]
23454         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
23455         up arguments below 2**-450, not just those below 2**-500.
23456         * math/libm-test.inc (hypot_test): Add another test.
23457
23458         [BZ #14868]
23459         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
23460         Return a+b for ratio over 2**120, not 2**60.
23461         * math/libm-test.inc (hypot_test): Add another test.
23462
23463         * math/libm-test.inc (clog_test): Use
23464         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
23465         (clog10_test): Likewise.
23466
23467         [BZ #6778]
23468         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
23469
23470 2012-11-22  Andreas Schwab  <schwab@suse.de>
23471
23472         * sysdeps/i386/fpu/libm-test-ulps: Update.
23473
23474 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
23475
23476         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
23477         printf output with newline.
23478
23479 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
23480
23481         [BZ #14865]
23482         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
23483         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
23484         -z nodlopen, -z initfirst and -z execstack support.
23485         * configure: Regenerated.
23486
23487         * elf/elf.h (DF_1_NODIRECT): New macro.
23488         (DF_1_IGNMULDEF): Likewise.
23489         (DF_1_NOKSYMS): Likewise.
23490         (DF_1_NOHDR): Likewise.
23491         (DF_1_EDITED): Likewise.
23492         (DF_1_NORELOC): Likewise.
23493         (DF_1_SYMINTPOSE): Likewise.
23494         (DF_1_GLOBAUDIT): Likewise.
23495         (DF_1_SINGLETON): Likewise.
23496         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
23497         DT_1_SUPPORTED_MASK bits.
23498         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
23499
23500 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
23501
23502         * sysdeps/unix/make-syscalls.sh: Document prefixes.
23503
23504 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
23505
23506         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
23507         macro.
23508
23509         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
23510         (sendmmsg): Move declarations...
23511         * socket/sys/socket.h: ... here.
23512         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
23513         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
23514         include it from...
23515         * socket/recvmmsg.c: ... this new file.
23516         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
23517         (sendmmsg): Rename to __sendmmsg, create weak alias and make
23518         definition of __sendmmsg hidden.
23519         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23520         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
23521         Move ENOSYS stub into and include it from...
23522         * socket/sendmmsg.c: ... this new file.
23523         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
23524         (sysdep_routines): Move recvmmsg and sendmmsg...
23525         * socket/Makefile (routines): ... here.
23526         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
23527         (GLIBC_PRIVATE): Add __sendmmsg.
23528         * include/sys/socket.h (__sendmmsg): Add declarations.
23529         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
23530         sendmmsg.
23531
23532 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
23533
23534         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
23535         variable I1 with __attribute__ ((unused)).
23536         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
23537
23538 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
23539
23540         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
23541         DUMMY variables with __attribute__ ((unused)).
23542
23543         * bits/byteswap.h: Include <bits/types.h>.
23544         (__bswap_64): Use __uint64_t instead of unsigned long long int.
23545
23546 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
23547
23548         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
23549         string_t.  Do not manually set errno.
23550         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
23551         length with __strnlen.  Make sure to both set errno and return it on
23552         failure.
23553
23554 2012-11-19  David S. Miller  <davem@davemloft.net>
23555
23556         With help from Joseph Myers.
23557         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
23558         very large arguments properly.
23559         * math/libm-test.inc (atan_test): New tests.
23560         (atan2_test): New tests.
23561         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23562         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23563
23564 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
23565
23566         [BZ #14856]
23567         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
23568         Define to 3.
23569
23570         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
23571         [POSIX] (EADDRNOTAVAIL): Likewise.
23572         [POSIX] (EAFNOSUPPORT): Likewise.
23573         [POSIX] (EALREADY): Likewise.
23574         [POSIX] (ECONNABORTED): Likewise.
23575         [POSIX] (ECONNREFUSED): Likewise.
23576         [POSIX] (ECONNRESET): Likewise.
23577         [POSIX] (EDESTADDRREQ): Likewise.
23578         [POSIX] (EDQUOT): Likewise.
23579         [POSIX] (EHOSTUNREACH): Likewise.
23580         [POSIX] (EIDRM): Likewise.
23581         [POSIX] (EISCONN): Likewise.
23582         [POSIX] (ELOOP): Likewise.
23583         [POSIX] (EMULTIHOP): Likewise.
23584         [POSIX] (ENETDOWN): Likewise.
23585         [POSIX] (ENETUNREACH): Likewise.
23586         [POSIX] (ENOBUFS): Likewise.
23587         [POSIX] (ENODATA): Likewise.
23588         [POSIX] (ENOLINK): Likewise.
23589         [POSIX] (ENOMSG): Likewise.
23590         [POSIX] (ENOPROTOOPT): Likewise.
23591         [POSIX] (ENOSR): Likewise.
23592         [POSIX] (ENOSTR): Likewise.
23593         [POSIX] (ENOTCONN): Likewise.
23594         [POSIX] (ENOTSOCK): Likewise.
23595         [POSIX] (EOPNOTSUPP): Likewise.
23596         [POSIX] (EOVERFLOW): Likewise.
23597         [POSIX] (EPROTO): Likewise.
23598         [POSIX] (EPROTONOSUPPORT): Likewise.
23599         [POSIX] (EPROTOTYPE): Likewise.
23600         [POSIX] (ESTALE): Likewise.
23601         [POSIX] (ETIME): Likewise.
23602         [POSIX] (ETXTBSY): Likewise.
23603         [POSIX] (EWOULDBLOCK): Likewise.
23604         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
23605         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
23606         [POSIX] (SEEK_CUR): Likewise.
23607         [POSIX] (SEEK_END): Likewise.
23608         [POSIX || UNIX98] (mode_t): Do not require.
23609         [POSIX] (off_t): Likewise.
23610         [POSIX] (pid_t): Likewise.
23611         [POSIX] (sys/stat.h): Do not allow header.
23612         [POSIX] (unistd.h): Likewise.
23613         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
23614         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
23615         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
23616         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
23617         require.
23618         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
23619         sigevent): Specify elements.
23620         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
23621         entry.
23622         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
23623         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
23624
23625         * conform/data/cpio.h-data [POSIX]: Disable whole file.
23626         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
23627         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
23628         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
23629         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
23630         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
23631         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
23632         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
23633         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
23634         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
23635         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
23636         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
23637         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
23638         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
23639         Likewise.
23640         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
23641         Likewise.
23642         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
23643         Likewise.
23644         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
23645         Likewise.
23646         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
23647         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
23648         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
23649         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
23650         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
23651         Specify lower bound on value.
23652         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
23653         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
23654         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
23655         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
23656         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
23657         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
23658         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
23659         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
23660         value.
23661         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
23662         as optional.
23663         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
23664         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
23665         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
23666         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
23667         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
23668         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
23669         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
23670         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
23671         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
23672         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
23673         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
23674         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
23675         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
23676         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
23677         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
23678         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
23679         entry.
23680         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
23681         optional.
23682         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
23683         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
23684         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
23685         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
23686         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
23687         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
23688         Likewise.
23689         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
23690         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
23691         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
23692         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
23693         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
23694         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
23695         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
23696         as optional.
23697         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
23698         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
23699         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
23700         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
23701         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
23702         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
23703         specify as optional.
23704         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
23705         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
23706         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
23707         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
23708         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
23709         [XPG3] (NL_LANGMAX): Likewise.
23710         [POSIX || XPG3] (NL_MSGMAX): Likewise.
23711         [POSIX || XPG3] (NL_NMAX): Likewise.
23712         [POSIX || XPG3] (NL_SETMAX): Likewise.
23713         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
23714         [XPG3] (NZERO): Likewise.
23715         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
23716         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
23717         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
23718         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
23719         (REG_ERANGE): Expect.
23720         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
23721         optional-constant.
23722         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
23723         Use (void) in prototype.
23724         [POSIX] (*_t): Allow.
23725         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
23726         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
23727         (WRDE_BADVAL): Expect.
23728
23729         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
23730         expect.
23731         [XPG3 || XPG4] (O_RSYNC): Likewise.
23732         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
23733         Likewise.
23734         [XPG3 || XPG4] (pthread_sigmask): Likewise.
23735         [XPG3 || XPG4] (sigqueue): Likewise.
23736         [XPG3 || XPG4] (sigtimedwait): Likewise.
23737         [XPG3 || XPG4] (sigwaitinfo): Likewise.
23738         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
23739         [XPG3 || XPG4] (vsnprintf): Likewise.
23740         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
23741         Likewise.
23742         [XPG3 || XPG4] (blksize_t): Likewise.
23743         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
23744         Likewise.
23745         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
23746         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
23747         [XPG3 || XPG4] (struct itimerspec): Likewise.
23748         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
23749         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
23750         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
23751         [XPG3 || XPG4] (clockid_t): Likewise.
23752         [XPG3 || XPG4] (timer_t): Likewise.
23753         [XPG3 || XPG4] (clock_getres): Likewise.
23754         [XPG3 || XPG4] (clock_gettime): Likewise.
23755         [XPG3 || XPG4] (clock_settime): Likewise.
23756         [XPG3 || XPG4] (nanosleep): Likewise.
23757         [XPG3 || XPG4] (timer_create): Likewise.
23758         [XPG3 || XPG4] (timer_delete): Likewise.
23759         [XPG3 || XPG4] (timer_gettime): Likewise.
23760         [XPG3 || XPG4] (timer_getoverrun): Likewise.
23761         [XPG3 || XPG4] (timer_settime): Likewise.
23762         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
23763         [XPG3 || XPG4] (getlogin_r): Likewise.
23764         [XPG3 || XPG4] (pread): Likewise.
23765         [XPG3 || XPG4] (pthread_atfork): Likewise.
23766         [XPG3 || XPG4] (pwrite): Likewise.
23767
23768         [BZ #14835]
23769         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
23770         <bits/siginfo.h>.
23771
23772 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
23773
23774         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
23775         finalizing MALLSTREAM.
23776
23777         * sysdeps/mach/hurd/syncfs.c: New file.
23778
23779 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
23780
23781         [BZ #14719]
23782         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
23783         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
23784         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
23785         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
23786         (_nss_dns_gethostbyname4_r): Likewise.
23787         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
23788         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
23789
23790 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
23791
23792         [BZ #13763]
23793         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
23794
23795 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
23796
23797         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
23798         * elf/cache.c (print_entry): Print ",AArch64" for
23799         FLAG_AARCH64_LIB64
23800
23801         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
23802         * elf/cache.c (print_entry): Print ",hard-float" for
23803         FLAG_ARM_LIBHF.
23804
23805 2012-11-18  David S. Miller  <davem@davemloft.net>
23806
23807         With help from Joseph Myers.
23808         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
23809         cutoff to 2**-13.
23810         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
23811         cutoff to 2**-25.
23812         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
23813         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
23814         small.
23815         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
23816         * math/libm-test.inc (y0_test): New tests.
23817         (y1_test): New tests.
23818         * sysdeps/i386/fpu/libm-test-ulps: Update.
23819         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23820         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23821
23822 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
23823
23824         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
23825         64-bit targets.
23826         * configure: Regenerated.
23827
23828 2012-11-17  David S. Miller  <davem@davemloft.net>
23829
23830         [BZ #14811]
23831         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
23832         nonzero exponents with absolute value below 0x1p-128 to +/-
23833         0x1p-128.
23834
23835 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
23836
23837         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
23838
23839         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
23840
23841         * posix/getconf-speclist.c: New file.
23842         * posix/posix-envs.def: Likewise.
23843         * posix/confstr.c (START_ENV_GROUP): New macro.
23844         (END_ENV_GROUP): Likewise.
23845         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
23846         (KNOWN_PRESENT_ENV_STRING): Likewise.
23847         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
23848         (UNKNOWN_ENVIRONMENT): Likewise.
23849         (confstr): Include posix-envs.def instead of handling
23850         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
23851         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
23852         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
23853         (END_ENV_GROUP): Likewise.
23854         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
23855         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
23856         (UNKNOWN_ENVIRONMENT): Likewise.
23857         (__sysconf): Include posix-envs.def instead of handling associated
23858         cases directly here.
23859         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
23860         preprocessing getconf-speclist.c rather than running getconf or
23861         generating empty file.
23862
23863 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
23864
23865         * scripts/check-local-headers.sh: Ignore 'mach' headers.
23866
23867 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
23868
23869         [BZ #14672]
23870         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
23871
23872 2012-11-16  David S. Miller  <davem@davemloft.net>
23873
23874         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
23875         smaller than LDBL_EPSILON/2.0L, just return xm1.
23876
23877 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
23878
23879         * elf/tst-array1.c (init): Set constructor priority to 1000.
23880         (fini): Set destructor priority to 1000.
23881         * elf/tst-array2dep.c: Likewise.
23882
23883 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23884
23885         [BZ #11741]
23886         * libio/fileops.c (_IO_new_file_write): Correctly return error.
23887         (_IO_new_file_xsputn): Also return EOF if none of the input
23888         data was written when overflow failed.
23889         * libio/iopadn.c (_IO_padn): Likewise.
23890         * libio/iowpadn.c (_IO_wpadn): Likewise.
23891         * stdio-common/tst-put-error.c: Add copyright notice.
23892         (do_test): Add case for printing padded string.
23893         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
23894         _IO_padn returned error.
23895         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
23896         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
23897         return EOF.
23898
23899 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
23900
23901         * libio/libioP.h: Add comment note that the references to C++
23902         bits are now obsolete.
23903
23904 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23905
23906         * math/libm-test.inc (check_complex): Use asprintf.
23907
23908 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
23909
23910         * debug/pcprofiledump.c (print_version): Update copyright year.
23911         * malloc/memusagestat.c (print_version): Likewise.
23912
23913 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
23914
23915         [BZ #14831]
23916         * elf/Makefile (tests): Add tst-audit8.
23917         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
23918         ($(objpfx)tst-audit8.out): New target.
23919         (tst-audit8-ENV): New variable.
23920         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
23921         audit if l_reloc_result is NULL.
23922         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
23923         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
23924         * elf/tst-audit8.c: New file.
23925
23926 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23927
23928         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
23929         * misc/Makefile (CFLAGS-select.c): Define.
23930         * posix/Makefile (CFLAGS-pause.c): Define.
23931
23932 2012-11-13  David S. Miller  <davem@davemloft.net>
23933
23934         * crypt/Makefile: Move test targets after toplevel Rules
23935         inclusion.  Grab any necessary sysdep routines when linking.
23936         * crypt/md5.c (md5_process_block): Remove define, we will always
23937         name it __md5_process_block.
23938         (md5_finish_ctx): Update md5_process_block call.
23939         (md5_stream): Likewise.
23940         (md5_process_bytes): Likewise.
23941         (md5_process_block): Rename to __md5_process_block and move to ...
23942         * crypt/md5-block.c: ... here.
23943         * crypt/sha256.c (sha256_process_block): Move to ...
23944         * crypt/sha256-block.c: ... here.
23945         * crypt/sha512.c (sha512_process_block): Move to ...
23946         * crypt/sha512-block.c: ... here.
23947         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
23948         path.
23949         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
23950         * sysdeps/sparc/sparc64/multiarch/Makefile
23951         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
23952         crypt subdir.
23953         (localedef-aux): Add md5 crypto assembler when in locale subdir.
23954         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
23955         multiarch changes.
23956         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
23957         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
23958         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
23959         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
23960         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
23961         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
23962         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
23963         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
23964         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
23965         file.
23966         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
23967         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
23968         file.
23969         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
23970
23971 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
23972
23973         * timezone/tzselect.ksh: Update from tzcode git revision
23974         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
23975         * timezone/zdump.c: Likewise.
23976         * timezone/zic.c: Likewise.
23977         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
23978         in TZVERSION setting, not $(PKGVERSION).
23979         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
23980         REPORT_BUGS_TO settings.
23981
23982         [BZ #14838]
23983         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
23984         macro.
23985
23986 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23987
23988         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
23989         detection to immediately after _FP_ROUND().
23990         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
23991         bits are 0.
23992
23993 2012-11-11  David S. Miller  <davem@davemloft.net>
23994
23995         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
23996         inttypes.h
23997         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
23998         __close rather than their public counterparts.
23999
24000 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24001
24002         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24003         file.
24004         [UNIX98] (sem_timedwait): Do not expect.
24005         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24006         [XPG4 || UNIX98] (sockatmark): Do not expect.
24007         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24008         (clock_getcpuclockid): Do not expect.
24009         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24010         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24011         Do not expect.
24012         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24013         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24014         [UNIX98] (vwscanf): Likewise.
24015         [UNIX98] (vswscanf): Likewise.
24016
24017 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24018
24019         * timezone/version.h: Remove file.
24020         * timezone/README: Do not refer to version.h.
24021         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24022         $(objpfx)version.h.
24023         ($(objpfx)zdump.o): Likewise.
24024         ($(objpfx)version.h): New target.
24025
24026         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24027         2012i.
24028         * timezone/README: Don't mention modification to tzselect.ksh.
24029         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24030         work on unmodified tzselect.ksh.  Substitute version numbers in
24031         tzselect.ksh.
24032
24033         * Makefile (format-me): Remove.
24034         (INSTALL): Adjust indentation.  Use commands directly instead of
24035         using $(format-me).
24036
24037         * aclocal.m4 (ACX_PKGVERSION): New macro.
24038         (ACX_BUGURL): Likewise.
24039         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24040         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24041         (REPORT_BUGS_TO): Likewise.
24042         * configure: Regenerated.
24043         * config.h.in (PKGVERSION): New macro.
24044         (REPORT_BUGS_TO): Likewise.
24045         * config.make.in (PKGVERSION): New variable.
24046         (PKGVERSION_TEXI): Likewise.
24047         (REPORT_BUGS_TO): Likewise.
24048         (REPORT_BUGS_TEXI): Likewise.
24049         * Makefile (format-me): Use -I$(common-objpfx)manual.
24050         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24051         ($(common-objpfx)manual/%): New target.
24052         (manual/%): Remove target.
24053         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24054         (print_version): Use PKGVERSION.
24055         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24056         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24057         and REPORT_BUGS_TO.
24058         ($(objpfx)xtrace): Likewise.
24059         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24060         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24061         (print_version): Use PKGVERSION.
24062         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24063         (do_version): Use PKGVERSION.
24064         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24065         REPORT_BUGS_TO.
24066         (common-ldd-rewrite): Likewise.
24067         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24068         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24069         (print_version): Use PKGVERSION.
24070         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24071         * elf/pldd.c (argp_program_bug_address): Remove variable.
24072         (more_help): New function.
24073         (argp): Use more_help.
24074         (print_version): Use PKGVERSION.
24075         * elf/sln.c (main): Use PKGVERSION.
24076         (usage): Use REPORT_BUGS_TO.
24077         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24078         (top level): Use PKGVERSION.
24079         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24080         (print_version): Use PKGVERSION.
24081         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24082         (print_version): Use PKGVERSION.
24083         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24084         (print_version): Use PKGVERSION.
24085         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24086         (print_version): Use PKGVERSION.
24087         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24088         (print_version): Use PKGVERSION.
24089         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24090         (print_version): Use PKGVERSION.
24091         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24092         and BUGURL.
24093         ($(objpfx)memusage): Likewise.
24094         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
24095         (do_version): Use PKGVERSION.
24096         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
24097         (print_version): Use PKGVERSION.
24098         * malloc/mtrace.pl ($PACKAGE): Remove variable.
24099         ($PKGVERSION): New variable.
24100         ($REPORT_BUGS_TO): Likewise.
24101         (usage): Use $REPORT_BUGS_TO.
24102         (top level): Use $PKGVERSION.
24103         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
24104         ($(objpfx)pkgvers.texi): New rule.
24105         ($(objpfx)stamp-pkgvers): Likewise.
24106         * manual/install.texi: Include pkgvers.texi.
24107         (--with-pkgversion): Document new configure option.
24108         (--with-bugurl): Likewise.
24109         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
24110         than necessarily for this particular distribution.  Use
24111         REPORT_BUGS_TO for where to report bugs.
24112         * INSTALL: Regenerated.
24113         * manual/libc.texinfo: Include pkgvers.texi.
24114         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
24115         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
24116         (print_version): Use PKGVERSION.
24117         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
24118         (print_version): Use PKGVERSION.
24119         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
24120         (print_version): Use PKGVERSION.
24121         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
24122         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
24123         macro.
24124         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
24125         (print_version): Use PKGVERSION.
24126         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
24127         (print_version): Use PKGVERSION.
24128         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
24129         and PKGVERSION.
24130
24131         * timezone/checktab.awk: Update from tzcode 2012i.
24132         * timezone/ialloc.c: Likewise.
24133         * timezone/private.h: Likewise.
24134         * timezone/scheck.c: Likewise.
24135         * timezone/tzfile.h: Likewise.
24136         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
24137         (TZVERSION): Hardcode tzcode version number.
24138         * timezone/zdump.c: Update from tzcode 2012i.
24139         * timezone/zic.c: Likewise.
24140         * timezone/version.h: New file.
24141         * timezone/README: Describe version.h.  Update upstream location.
24142
24143         [BZ #14824]
24144         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
24145         (mktemp): Enable declaration.
24146         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
24147         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
24148         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
24149         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
24150         Likewise.
24151         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
24152         Likewise.
24153         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
24154         Likewise.
24155         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
24156         Likewise.
24157         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
24158         Likewise.
24159         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
24160         Likewise.
24161
24162         [BZ #14821]
24163         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
24164         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
24165         for copies of such integer values.
24166         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24167         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24168
24169 2012-11-09  Andreas Jaeger  <aj@suse.de>
24170
24171         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
24172         definitions and declarations that are provided by
24173         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24174
24175 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24176
24177         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
24178         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
24179         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
24180         definition.
24181
24182 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24183
24184         * elf/elf.h: Update comment before AArch64 relocations.
24185
24186 2012-11-07  David S. Miller  <davem@davemloft.net>
24187
24188         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
24189         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24190         (__start_context): Declare.
24191         (__makecontext_ret): Delete.
24192         (__makecontext): Hook up __start_context instead of
24193         __makecontext_ret.
24194         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
24195         (sysdep_routines): Add __start_context when in stdlib.
24196
24197 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24198
24199         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
24200         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
24201         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
24202         hardcoded "nm".
24203         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
24204         (READELF): New variable.  Use it instead of hardcoded "readelf".
24205
24206 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24207
24208         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
24209         * sysdeps/x86/Makefile: Here.
24210         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
24211         * sysdeps/x86/tst-xmmymm.sh: This.
24212
24213 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24214
24215         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
24216         expectations.
24217         [UNIX98] (pthread_barrier_t): Do not expect.
24218         [UNIX98] (pthread_barrierattr_t): Likewise.
24219         [UNIX98] (pthread_spinlock_t): Likewise.
24220         [UNIX98] (pthread_barrier_destroy): Likewise.
24221         [UNIX98] (pthread_barrier_init): Likewise.
24222         [UNIX98] (pthread_barrier_wait): Likewise.
24223         [UNIX98] (pthread_barrierattr_destroy): Likewise.
24224         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
24225         [UNIX98] (pthread_barrierattr_init): Likewise.
24226         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
24227         [UNIX98] (pthread_getcpuclockid): Likewise.
24228         [UNIX98] (pthread_mutex_timedlock): Likewise.
24229         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
24230         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
24231         [UNIX98] (pthread_sigmask): Likewise.
24232         [UNIX98] (pthread_spin_destroy): Likewise.
24233         [UNIX98] (pthread_spin_init): Likewise.
24234         [UNIX98] (pthread_spin_lock): Likewise.
24235         [UNIX98] (pthread_spin_trylock): Likewise.
24236         [UNIX98] (pthread_spin_unlock): Likewise.
24237         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
24238         Do not expect.
24239         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
24240         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
24241         [XPG3 || XPG4] (pthread_cond_t): Likewise.
24242         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
24243         [XPG3 || XPG4] (pthread_key_t): Likewise.
24244         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
24245         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
24246         [XPG3 || XPG4] (pthread_once_t): Likewise.
24247         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
24248         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
24249         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
24250         [XPG3 || XPG4] (pthread_t): Likewise.
24251
24252         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
24253         not expect.
24254         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
24255
24256         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
24257         Change function return type to int.
24258
24259         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
24260         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
24261         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
24262         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
24263         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
24264         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
24265         [!POSIX] (posix_madvise): Likewise.
24266         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
24267         && !UNIX98].
24268         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
24269         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
24270         (mode_t): Likewise.
24271         (posix_mem_offset): Likewise.
24272         (posix_typed_mem_get_info): Likewise.
24273         (posix_typed_mem_open): Likewise.
24274
24275         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
24276         Change condition to [XOPEN2K8].
24277
24278         * conform/conformtest.pl: Preprocess allow-header data with -x c
24279         instead of from stdin.
24280         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
24281         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
24282         [C99-based standards] (cerfc): Likewise.
24283         [C99-based standards] (cexp2): Likewise.
24284         [C99-based standards] (cexpm1): Likewise.
24285         [C99-based standards] (clog10): Likewise.
24286         [C99-based standards] (clog1p): Likewise.
24287         [C99-based standards] (clog2): Likewise.
24288         [C99-based standards] (clgamma): Likewise.
24289         [C99-based standards] (ctgamma): Likewise.
24290         [C99-based standards] (cerff): Likewise.
24291         [C99-based standards] (cerfcf): Likewise.
24292         [C99-based standards] (cexp2f): Likewise.
24293         [C99-based standards] (cexpm1f): Likewise.
24294         [C99-based standards] (clog10f): Likewise.
24295         [C99-based standards] (clog1pf): Likewise.
24296         [C99-based standards] (clog2f): Likewise.
24297         [C99-based standards] (clgammaf): Likewise.
24298         [C99-based standards] (ctgammaf): Likewise.
24299         [C99-based standards] (cerfl): Likewise.
24300         [C99-based standards] (cerfcl): Likewise.
24301         [C99-based standards] (cexp2l): Likewise.
24302         [C99-based standards] (cexpm1l): Likewise.
24303         [C99-based standards] (clog10l): Likewise.
24304         [C99-based standards] (clog1pl): Likewise.
24305         [C99-based standards] (clog2l): Likewise.
24306         [C99-based standards] (clgammal): Likewise.
24307         [C99-based standards] (ctgammal): Likewise.
24308         * conform/data/inttypes.h-data [C99-based standards]: Include
24309         stdint.h-data.  Remove all expectations for stdint.h contents.
24310         [C99-based standards] (PRI*): Do not allow.
24311         [C99-based standards] (SCN*): Likewise.
24312         [C99-based standards] (*_t): Likewise.
24313         [C99-based-standards] (PRId8): Expect macro.
24314         [C99-based-standards] (PRIi8): Likewise.
24315         [C99-based-standards] (PRIo8): Likewise.
24316         [C99-based-standards] (PRIu8): Likewise.
24317         [C99-based-standards] (PRIx8): Likewise.
24318         [C99-based-standards] (PRIX8): Likewise.
24319         [C99-based-standards] (SCNd8): Likewise.
24320         [C99-based-standards] (SCNi8): Likewise.
24321         [C99-based-standards] (SCNo8): Likewise.
24322         [C99-based-standards] (SCNu8): Likewise.
24323         [C99-based-standards] (SCNx8): Likewise.
24324         [C99-based-standards] (PRIdLEAST8): Likewise.
24325         [C99-based-standards] (PRIiLEAST8): Likewise.
24326         [C99-based-standards] (PRIoLEAST8): Likewise.
24327         [C99-based-standards] (PRIuLEAST8): Likewise.
24328         [C99-based-standards] (PRIxLEAST8): Likewise.
24329         [C99-based-standards] (PRIXLEAST8): Likewise.
24330         [C99-based-standards] (SCNdLEAST8): Likewise.
24331         [C99-based-standards] (SCNiLEAST8): Likewise.
24332         [C99-based-standards] (SCNoLEAST8): Likewise.
24333         [C99-based-standards] (SCNuLEAST8): Likewise.
24334         [C99-based-standards] (SCNxLEAST8): Likewise.
24335         [C99-based-standards] (PRIdFAST8): Likewise.
24336         [C99-based-standards] (PRIiFAST8): Likewise.
24337         [C99-based-standards] (PRIoFAST8): Likewise.
24338         [C99-based-standards] (PRIuFAST8): Likewise.
24339         [C99-based-standards] (PRIxFAST8): Likewise.
24340         [C99-based-standards] (PRIXFAST8): Likewise.
24341         [C99-based-standards] (SCNdFAST8): Likewise.
24342         [C99-based-standards] (SCNiFAST8): Likewise.
24343         [C99-based-standards] (SCNoFAST8): Likewise.
24344         [C99-based-standards] (SCNuFAST8): Likewise.
24345         [C99-based-standards] (SCNxFAST8): Likewise.
24346         [C99-based-standards] (PRId16): Likewise.
24347         [C99-based-standards] (PRIi16): Likewise.
24348         [C99-based-standards] (PRIo16): Likewise.
24349         [C99-based-standards] (PRIu16): Likewise.
24350         [C99-based-standards] (PRIx16): Likewise.
24351         [C99-based-standards] (PRIX16): Likewise.
24352         [C99-based-standards] (SCNd16): Likewise.
24353         [C99-based-standards] (SCNi16): Likewise.
24354         [C99-based-standards] (SCNo16): Likewise.
24355         [C99-based-standards] (SCNu16): Likewise.
24356         [C99-based-standards] (SCNx16): Likewise.
24357         [C99-based-standards] (PRIdLEAST16): Likewise.
24358         [C99-based-standards] (PRIiLEAST16): Likewise.
24359         [C99-based-standards] (PRIoLEAST16): Likewise.
24360         [C99-based-standards] (PRIuLEAST16): Likewise.
24361         [C99-based-standards] (PRIxLEAST16): Likewise.
24362         [C99-based-standards] (PRIXLEAST16): Likewise.
24363         [C99-based-standards] (SCNdLEAST16): Likewise.
24364         [C99-based-standards] (SCNiLEAST16): Likewise.
24365         [C99-based-standards] (SCNoLEAST16): Likewise.
24366         [C99-based-standards] (SCNuLEAST16): Likewise.
24367         [C99-based-standards] (SCNxLEAST16): Likewise.
24368         [C99-based-standards] (PRIdFAST16): Likewise.
24369         [C99-based-standards] (PRIiFAST16): Likewise.
24370         [C99-based-standards] (PRIoFAST16): Likewise.
24371         [C99-based-standards] (PRIuFAST16): Likewise.
24372         [C99-based-standards] (PRIxFAST16): Likewise.
24373         [C99-based-standards] (PRIXFAST16): Likewise.
24374         [C99-based-standards] (SCNdFAST16): Likewise.
24375         [C99-based-standards] (SCNiFAST16): Likewise.
24376         [C99-based-standards] (SCNoFAST16): Likewise.
24377         [C99-based-standards] (SCNuFAST16): Likewise.
24378         [C99-based-standards] (SCNxFAST16): Likewise.
24379         [C99-based-standards] (PRId32): Likewise.
24380         [C99-based-standards] (PRIi32): Likewise.
24381         [C99-based-standards] (PRIo32): Likewise.
24382         [C99-based-standards] (PRIu32): Likewise.
24383         [C99-based-standards] (PRIx32): Likewise.
24384         [C99-based-standards] (PRIX32): Likewise.
24385         [C99-based-standards] (SCNd32): Likewise.
24386         [C99-based-standards] (SCNi32): Likewise.
24387         [C99-based-standards] (SCNo32): Likewise.
24388         [C99-based-standards] (SCNu32): Likewise.
24389         [C99-based-standards] (SCNx32): Likewise.
24390         [C99-based-standards] (PRIdLEAST32): Likewise.
24391         [C99-based-standards] (PRIiLEAST32): Likewise.
24392         [C99-based-standards] (PRIoLEAST32): Likewise.
24393         [C99-based-standards] (PRIuLEAST32): Likewise.
24394         [C99-based-standards] (PRIxLEAST32): Likewise.
24395         [C99-based-standards] (PRIXLEAST32): Likewise.
24396         [C99-based-standards] (SCNdLEAST32): Likewise.
24397         [C99-based-standards] (SCNiLEAST32): Likewise.
24398         [C99-based-standards] (SCNoLEAST32): Likewise.
24399         [C99-based-standards] (SCNuLEAST32): Likewise.
24400         [C99-based-standards] (SCNxLEAST32): Likewise.
24401         [C99-based-standards] (PRIdFAST32): Likewise.
24402         [C99-based-standards] (PRIiFAST32): Likewise.
24403         [C99-based-standards] (PRIoFAST32): Likewise.
24404         [C99-based-standards] (PRIuFAST32): Likewise.
24405         [C99-based-standards] (PRIxFAST32): Likewise.
24406         [C99-based-standards] (PRIXFAST32): Likewise.
24407         [C99-based-standards] (SCNdFAST32): Likewise.
24408         [C99-based-standards] (SCNiFAST32): Likewise.
24409         [C99-based-standards] (SCNoFAST32): Likewise.
24410         [C99-based-standards] (SCNuFAST32): Likewise.
24411         [C99-based-standards] (SCNxFAST32): Likewise.
24412         [C99-based-standards] (PRId64): Likewise.
24413         [C99-based-standards] (PRIi64): Likewise.
24414         [C99-based-standards] (PRIo64): Likewise.
24415         [C99-based-standards] (PRIu64): Likewise.
24416         [C99-based-standards] (PRIx64): Likewise.
24417         [C99-based-standards] (PRIX64): Likewise.
24418         [C99-based-standards] (SCNd64): Likewise.
24419         [C99-based-standards] (SCNi64): Likewise.
24420         [C99-based-standards] (SCNo64): Likewise.
24421         [C99-based-standards] (SCNu64): Likewise.
24422         [C99-based-standards] (SCNx64): Likewise.
24423         [C99-based-standards] (PRIdLEAST64): Likewise.
24424         [C99-based-standards] (PRIiLEAST64): Likewise.
24425         [C99-based-standards] (PRIoLEAST64): Likewise.
24426         [C99-based-standards] (PRIuLEAST64): Likewise.
24427         [C99-based-standards] (PRIxLEAST64): Likewise.
24428         [C99-based-standards] (PRIXLEAST64): Likewise.
24429         [C99-based-standards] (SCNdLEAST64): Likewise.
24430         [C99-based-standards] (SCNiLEAST64): Likewise.
24431         [C99-based-standards] (SCNoLEAST64): Likewise.
24432         [C99-based-standards] (SCNuLEAST64): Likewise.
24433         [C99-based-standards] (SCNxLEAST64): Likewise.
24434         [C99-based-standards] (PRIdFAST64): Likewise.
24435         [C99-based-standards] (PRIiFAST64): Likewise.
24436         [C99-based-standards] (PRIoFAST64): Likewise.
24437         [C99-based-standards] (PRIuFAST64): Likewise.
24438         [C99-based-standards] (PRIxFAST64): Likewise.
24439         [C99-based-standards] (PRIXFAST64): Likewise.
24440         [C99-based-standards] (SCNdFAST64): Likewise.
24441         [C99-based-standards] (SCNiFAST64): Likewise.
24442         [C99-based-standards] (SCNoFAST64): Likewise.
24443         [C99-based-standards] (SCNuFAST64): Likewise.
24444         [C99-based-standards] (SCNxFAST64): Likewise.
24445         [C99-based-standards] (PRIdMAX): Likewise.
24446         [C99-based-standards] (PRIiMAX): Likewise.
24447         [C99-based-standards] (PRIoMAX): Likewise.
24448         [C99-based-standards] (PRIuMAX): Likewise.
24449         [C99-based-standards] (PRIxMAX): Likewise.
24450         [C99-based-standards] (PRIXMAX): Likewise.
24451         [C99-based-standards] (SCNdMAX): Likewise.
24452         [C99-based-standards] (SCNiMAX): Likewise.
24453         [C99-based-standards] (SCNoMAX): Likewise.
24454         [C99-based-standards] (SCNuMAX): Likewise.
24455         [C99-based-standards] (SCNxMAX): Likewise.
24456         [C99-based-standards] (PRIdPTR): Likewise.
24457         [C99-based-standards] (PRIiPTR): Likewise.
24458         [C99-based-standards] (PRIoPTR): Likewise.
24459         [C99-based-standards] (PRIuPTR): Likewise.
24460         [C99-based-standards] (PRIxPTR): Likewise.
24461         [C99-based-standards] (PRIXPTR): Likewise.
24462         [C99-based-standards] (SCNdPTR): Likewise.
24463         [C99-based-standards] (SCNiPTR): Likewise.
24464         [C99-based-standards] (SCNoPTR): Likewise.
24465         [C99-based-standards] (SCNuPTR): Likewise.
24466         [C99-based-standards] (SCNxPTR): Likewise.
24467         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
24468         allow.
24469         * conform/data/stdint.h-data: Update comments to clarify
24470         requirements.
24471         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
24472         type.
24473         [C99-based standards] (INT8_MAX): Likewise.
24474         [C99-based standards] (INT16_MIN): Likewise.
24475         [C99-based standards] (INT16_MAX): Likewise.
24476         [C99-based standards] (INT32_MIN): Likewise.
24477         [C99-based standards] (INT32_MAX): Likewise.
24478         [C99-based standards] (INT64_MIN): Likewise.
24479         [C99-based standards] (INT64_MAX): Likewise.
24480         [C99-based standards] (UINT8_MAX): Likewise.
24481         [C99-based standards] (UINT16_MAX): Likewise.
24482         [C99-based standards] (UINT32_MAX): Likewise.
24483         [C99-based standards] (UINT64_MAX): Likewise.
24484         [C99-based standards] (INT_LEAST8_MIN): Likewise.
24485         [C99-based standards] (INT_LEAST8_MAX): Likewise.
24486         [C99-based standards] (INT_LEAST16_MIN): Likewise.
24487         [C99-based standards] (INT_LEAST16_MAX): Likewise.
24488         [C99-based standards] (INT_LEAST32_MIN): Likewise.
24489         [C99-based standards] (INT_LEAST32_MAX): Likewise.
24490         [C99-based standards] (INT_LEAST64_MIN): Likewise.
24491         [C99-based standards] (INT_LEAST64_MAX): Likewise.
24492         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
24493         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
24494         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
24495         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
24496         [C99-based standards] (INT_FAST8_MIN): Likewise.
24497         [C99-based standards] (INT_FAST8_MAX): Likewise.
24498         [C99-based standards] (INT_FAST16_MIN): Likewise.
24499         [C99-based standards] (INT_FAST16_MAX): Likewise.
24500         [C99-based standards] (INT_FAST32_MIN): Likewise.
24501         [C99-based standards] (INT_FAST32_MAX): Likewise.
24502         [C99-based standards] (INT_FAST64_MIN): Likewise.
24503         [C99-based standards] (INT_FAST64_MAX): Likewise.
24504         [C99-based standards] (UINT_FAST8_MAX): Likewise.
24505         [C99-based standards] (UINT_FAST16_MAX): Likewise.
24506         [C99-based standards] (UINT_FAST32_MAX): Likewise.
24507         [C99-based standards] (UINT_FAST64_MAX): Likewise.
24508         [C99-based standards] (INTPTR_MIN): Likewise.
24509         [C99-based standards] (INTPTR_MAX): Likewise.
24510         [C99-based standards] (UINTPTR_MAX): Likewise.
24511         [C99-based standards] (INTMAX_MIN): Likewise.
24512         [C99-based standards] (INTMAX_MAX): Likewise.
24513         [C99-based standards] (UINTMAX_MAX): Likewise.
24514         [C99-based standards] (PTRDIFF_MIN): Likewise.
24515         [C99-based standards] (PTRDIFF_MAX): Likewise.
24516         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
24517         [C99-based standards] (SIZE_MAX): Likewise.
24518         [C99-based standards] (WCHAR_MAX): Likewise.
24519         [C99-based standards] (WINT_MAX): Likewise.
24520         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
24521         constraint on value.
24522         [C99-based standards] (WCHAR_MIN): Likewise.
24523         [C99-based standards] (WINT_MIN): Likewise.
24524         [C99-based standards] (*_t): Allow.
24525         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
24526         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
24527         Include math.h-data and complex.h-data.  Remove all expectations
24528         of math.h and complex.h contents.
24529         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
24530         at end of line.
24531         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
24532         (struct tm): Expect tag.
24533         [C99-based-standards] (wcstof): Expect function.
24534         [C99-based-standards] (wcstold): Likewise.
24535         [C99-based-standards] (wcstoll): Likewise.
24536         [C99-based-standards] (wcstoull): Likewise.
24537         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
24538         macro-int-constant.  Specify type.
24539         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
24540         constraint on value.
24541         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
24542         Specify type.
24543         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
24544         Specify value.
24545         [ISO C standards]: Do not allow headers.
24546         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
24547         wcs[abcdefghijklmnopqrstuvwxyz]*.
24548         [ISO C standards] (*_t): Do not allow.
24549         * conform/data/wctype.h-data [C99-based standards] (iswblank):
24550         Expect function.
24551         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
24552         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
24553         Specify type.
24554         [ISO C standards]: Do not allow headers.
24555         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
24556         is[abcdefghijklmnopqrstuvwxyz]*.
24557         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
24558         to[abcdefghijklmnopqrstuvwxyz]*.
24559         [ISO C standards] (*_t): Do not allow.
24560         * conform/data/stdalign.h-data: New file.
24561         * conform/data/stdbool.h-data: Likewise.
24562         * conform/data/stdnoreturn.h-data: Likewise.
24563
24564 2012-11-07  Roland McGrath  <roland@hack.frob.com>
24565
24566         [BZ #14815]
24567         * manual/filesys.texi (Directory Entries): Typo fix.
24568         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
24569
24570 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24571
24572         * elf/elf.h (EM_AARCH64): New macro.
24573         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
24574         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
24575         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
24576         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
24577         (R_AARCH64_TLSDESC): Likewise.
24578         (NT_ARM_TLS): Likewise.
24579         (NT_ARM_HW_BREAK): Likewise.
24580         (NT_ARM_HW_WATCH): Likewise.
24581
24582 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24583
24584         [BZ #14811]
24585         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
24586         (__ieee754_powl): Saturate nonzero exponents with absolute value
24587         below 0x1p-79 to +/- 0x1p-79.
24588         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
24589         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
24590         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
24591         nonzero exponents with absolute value below 0x1p-32 to +/-
24592         0x1p-32.
24593         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
24594         (__ieee754_powl): Saturate nonzero exponents with absolute value
24595         below 0x1p-79 to +/- 0x1p-79.
24596         * math/libm-test.inc (pow_test): Add more tests.
24597
24598 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24599
24600         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
24601         _dl_s390_cap_flags with kernel. Increase string length.
24602         (_dl_s390_platforms): Add z196 and zEC12.
24603
24604 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24605
24606         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
24607         Change XOPEN21K to XOPEN2K.
24608
24609 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
24610
24611         * string/memmove.c: Use memcpy when possible.
24612
24613 2012-11-06  Andreas Jaeger  <aj@suse.de>
24614
24615         * po/eo.po: Update from translation team.
24616
24617 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
24618
24619         [BZ #14793]
24620         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
24621         exponent and small x and y exponents, scale x or y up.  Increase
24622         by 2 the exponent used in scaling up.
24623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24624         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24625         * math/libm-test.inc (fma_test): Add more tests.
24626         (fma_test_towardzero): Likewise.
24627         (fma_test_downward): Likewise.
24628         (fma_test_upward): Likewise.
24629
24630 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
24631
24632         [BZ #14805]
24633         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
24634         fenv_t *.
24635
24636         [BZ #14801]
24637         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
24638         namespace for names of struct fields.
24639         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
24640         fenv_t fields.
24641         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
24642         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
24643
24644 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24645
24646         [BZ #3665]
24647         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
24648
24649 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
24650
24651         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
24652         PTR_DEMANGLE.
24653
24654         [BZ #5246]
24655         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
24656         PTR_DEMANGLE.
24657
24658 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
24659
24660         [BZ #14797]
24661         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
24662         definitely overflow as x * y not x * y + z.
24663         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24664         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24665         * math/libm-test.inc (fma_test): Add more tests.
24666         (fma_test_towardzero): Likewise.
24667         (fma_test_downward): Likewise.
24668         (fma_test_upward): Likewise.
24669
24670 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
24671
24672         [BZ #157]
24673
24674         * include/stub-tag.h: Remove file.
24675         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
24676         '#include' of it.
24677         * manual/maint.texi (Porting): Don't reference it.
24678         * Makerules ($(objpfx)stubs): Likewise.
24679         * dirent/closedir.c: Don't include <stub-tag.h>.
24680         * dirent/dirfd.c: Likewise.
24681         * dirent/fdopendir.c: Likewise.
24682         * dirent/getdents.c: Likewise.
24683         * dirent/getdents64.c: Likewise.
24684         * dirent/opendir.c: Likewise.
24685         * dirent/readdir.c: Likewise.
24686         * dirent/readdir64.c: Likewise.
24687         * dirent/readdir64_r.c: Likewise.
24688         * dirent/readdir_r.c: Likewise.
24689         * dirent/rewinddir.c: Likewise.
24690         * dirent/seekdir.c: Likewise.
24691         * dirent/telldir.c: Likewise.
24692         * gmon/profil.c: Likewise.
24693         * grp/setgroups.c: Likewise.
24694         * inet/if_index.c: Likewise.
24695         * io/access.c: Likewise.
24696         * io/chdir.c: Likewise.
24697         * io/chmod.c: Likewise.
24698         * io/chown.c: Likewise.
24699         * io/close.c: Likewise.
24700         * io/dup.c: Likewise.
24701         * io/dup2.c: Likewise.
24702         * io/dup3.c: Likewise.
24703         * io/euidaccess.c: Likewise.
24704         * io/faccessat.c: Likewise.
24705         * io/fchdir.c: Likewise.
24706         * io/fchmod.c: Likewise.
24707         * io/fchmodat.c: Likewise.
24708         * io/fchown.c: Likewise.
24709         * io/fchownat.c: Likewise.
24710         * io/fcntl.c: Likewise.
24711         * io/flock.c: Likewise.
24712         * io/fstatfs.c: Likewise.
24713         * io/fstatfs64.c: Likewise.
24714         * io/fstatvfs.c: Likewise.
24715         * io/fstatvfs64.c: Likewise.
24716         * io/futimens.c: Likewise.
24717         * io/fxstat.c: Likewise.
24718         * io/fxstat64.c: Likewise.
24719         * io/fxstatat.c: Likewise.
24720         * io/fxstatat64.c: Likewise.
24721         * io/getcwd.c: Likewise.
24722         * io/isatty.c: Likewise.
24723         * io/lchmod.c: Likewise.
24724         * io/lchown.c: Likewise.
24725         * io/link.c: Likewise.
24726         * io/linkat.c: Likewise.
24727         * io/lseek.c: Likewise.
24728         * io/lseek64.c: Likewise.
24729         * io/lxstat64.c: Likewise.
24730         * io/mkdir.c: Likewise.
24731         * io/mkdirat.c: Likewise.
24732         * io/mkfifo.c: Likewise.
24733         * io/mkfifoat.c: Likewise.
24734         * io/open.c: Likewise.
24735         * io/open64.c: Likewise.
24736         * io/openat.c: Likewise.
24737         * io/openat64.c: Likewise.
24738         * io/pipe.c: Likewise.
24739         * io/pipe2.c: Likewise.
24740         * io/poll.c: Likewise.
24741         * io/posix_fadvise.c: Likewise.
24742         * io/posix_fadvise64.c: Likewise.
24743         * io/posix_fallocate.c: Likewise.
24744         * io/posix_fallocate64.c: Likewise.
24745         * io/read.c: Likewise.
24746         * io/readlink.c: Likewise.
24747         * io/readlinkat.c: Likewise.
24748         * io/rmdir.c: Likewise.
24749         * io/sendfile.c: Likewise.
24750         * io/sendfile64.c: Likewise.
24751         * io/statfs.c: Likewise.
24752         * io/statfs64.c: Likewise.
24753         * io/statvfs.c: Likewise.
24754         * io/statvfs64.c: Likewise.
24755         * io/symlink.c: Likewise.
24756         * io/symlinkat.c: Likewise.
24757         * io/ttyname.c: Likewise.
24758         * io/ttyname_r.c: Likewise.
24759         * io/umask.c: Likewise.
24760         * io/unlink.c: Likewise.
24761         * io/unlinkat.c: Likewise.
24762         * io/utime.c: Likewise.
24763         * io/utimensat.c: Likewise.
24764         * io/write.c: Likewise.
24765         * io/xmknod.c: Likewise.
24766         * io/xmknodat.c: Likewise.
24767         * io/xstat.c: Likewise.
24768         * io/xstat64.c: Likewise.
24769         * login/getpt.c: Likewise.
24770         * login/grantpt.c: Likewise.
24771         * login/unlockpt.c: Likewise.
24772         * math/e_acoshl.c: Likewise.
24773         * math/e_acosl.c: Likewise.
24774         * math/e_asinl.c: Likewise.
24775         * math/e_atan2l.c: Likewise.
24776         * math/e_atanhl.c: Likewise.
24777         * math/e_coshl.c: Likewise.
24778         * math/e_expl.c: Likewise.
24779         * math/e_fmodl.c: Likewise.
24780         * math/e_gammal_r.c: Likewise.
24781         * math/e_hypotl.c: Likewise.
24782         * math/e_j0l.c: Likewise.
24783         * math/e_j1l.c: Likewise.
24784         * math/e_jnl.c: Likewise.
24785         * math/e_lgammal_r.c: Likewise.
24786         * math/e_log10l.c: Likewise.
24787         * math/e_log2l.c: Likewise.
24788         * math/e_logl.c: Likewise.
24789         * math/e_powl.c: Likewise.
24790         * math/e_rem_pio2l.c: Likewise.
24791         * math/e_sinhl.c: Likewise.
24792         * math/e_sqrtl.c: Likewise.
24793         * math/fclrexcpt.c: Likewise.
24794         * math/fedisblxcpt.c: Likewise.
24795         * math/feenablxcpt.c: Likewise.
24796         * math/fegetenv.c: Likewise.
24797         * math/fegetexcept.c: Likewise.
24798         * math/fegetround.c: Likewise.
24799         * math/feholdexcpt.c: Likewise.
24800         * math/fesetenv.c: Likewise.
24801         * math/fesetround.c: Likewise.
24802         * math/feupdateenv.c: Likewise.
24803         * math/fgetexcptflg.c: Likewise.
24804         * math/fraiseexcpt.c: Likewise.
24805         * math/fsetexcptflg.c: Likewise.
24806         * math/ftestexcept.c: Likewise.
24807         * math/k_cosl.c: Likewise.
24808         * math/k_rem_pio2l.c: Likewise.
24809         * math/k_sinl.c: Likewise.
24810         * math/k_tanl.c: Likewise.
24811         * math/s_asinhl.c: Likewise.
24812         * math/s_atanl.c: Likewise.
24813         * math/s_cbrtl.c: Likewise.
24814         * math/s_erfl.c: Likewise.
24815         * math/s_expm1l.c: Likewise.
24816         * math/s_log1pl.c: Likewise.
24817         * math/s_tanhl.c: Likewise.
24818         * misc/acct.c: Likewise.
24819         * misc/brk.c: Likewise.
24820         * misc/chflags.c: Likewise.
24821         * misc/chroot.c: Likewise.
24822         * misc/fchflags.c: Likewise.
24823         * misc/fgetxattr.c: Likewise.
24824         * misc/flistxattr.c: Likewise.
24825         * misc/fremovexattr.c: Likewise.
24826         * misc/fsetxattr.c: Likewise.
24827         * misc/fsync.c: Likewise.
24828         * misc/ftruncate.c: Likewise.
24829         * misc/futimes.c: Likewise.
24830         * misc/futimesat.c: Likewise.
24831         * misc/getdomain.c: Likewise.
24832         * misc/getdtsz.c: Likewise.
24833         * misc/gethostid.c: Likewise.
24834         * misc/gethostname.c: Likewise.
24835         * misc/getloadavg.c: Likewise.
24836         * misc/getpagesize.c: Likewise.
24837         * misc/getsysstats.c: Likewise.
24838         * misc/getxattr.c: Likewise.
24839         * misc/gtty.c: Likewise.
24840         * misc/ioctl.c: Likewise.
24841         * misc/lgetxattr.c: Likewise.
24842         * misc/listxattr.c: Likewise.
24843         * misc/llistxattr.c: Likewise.
24844         * misc/lremovexattr.c: Likewise.
24845         * misc/lsetxattr.c: Likewise.
24846         * misc/lutimes.c: Likewise.
24847         * misc/madvise.c: Likewise.
24848         * misc/mincore.c: Likewise.
24849         * misc/mlock.c: Likewise.
24850         * misc/mlockall.c: Likewise.
24851         * misc/mmap.c: Likewise.
24852         * misc/mprotect.c: Likewise.
24853         * misc/msync.c: Likewise.
24854         * misc/munlock.c: Likewise.
24855         * misc/munlockall.c: Likewise.
24856         * misc/munmap.c: Likewise.
24857         * misc/preadv.c: Likewise.
24858         * misc/preadv64.c: Likewise.
24859         * misc/ptrace.c: Likewise.
24860         * misc/pwritev.c: Likewise.
24861         * misc/pwritev64.c: Likewise.
24862         * misc/readv.c: Likewise.
24863         * misc/reboot.c: Likewise.
24864         * misc/remap_file_pages.c: Likewise.
24865         * misc/removexattr.c: Likewise.
24866         * misc/revoke.c: Likewise.
24867         * misc/select.c: Likewise.
24868         * misc/setdomain.c: Likewise.
24869         * misc/setegid.c: Likewise.
24870         * misc/seteuid.c: Likewise.
24871         * misc/sethostid.c: Likewise.
24872         * misc/sethostname.c: Likewise.
24873         * misc/setregid.c: Likewise.
24874         * misc/setreuid.c: Likewise.
24875         * misc/setxattr.c: Likewise.
24876         * misc/sstk.c: Likewise.
24877         * misc/stty.c: Likewise.
24878         * misc/swapoff.c: Likewise.
24879         * misc/swapon.c: Likewise.
24880         * misc/sync.c: Likewise.
24881         * misc/syncfs.c: Likewise.
24882         * misc/syscall.c: Likewise.
24883         * misc/truncate.c: Likewise.
24884         * misc/ualarm.c: Likewise.
24885         * misc/usleep.c: Likewise.
24886         * misc/ustat.c: Likewise.
24887         * misc/utimes.c: Likewise.
24888         * misc/vhangup.c: Likewise.
24889         * misc/writev.c: Likewise.
24890         * posix/_exit.c: Likewise.
24891         * posix/alarm.c: Likewise.
24892         * posix/execve.c: Likewise.
24893         * posix/fexecve.c: Likewise.
24894         * posix/fork.c: Likewise.
24895         * posix/fpathconf.c: Likewise.
24896         * posix/getaddrinfo.c: Likewise.
24897         * posix/getegid.c: Likewise.
24898         * posix/geteuid.c: Likewise.
24899         * posix/getgid.c: Likewise.
24900         * posix/getgroups.c: Likewise.
24901         * posix/getlogin.c: Likewise.
24902         * posix/getlogin_r.c: Likewise.
24903         * posix/getpgid.c: Likewise.
24904         * posix/getpid.c: Likewise.
24905         * posix/getppid.c: Likewise.
24906         * posix/getresgid.c: Likewise.
24907         * posix/getresuid.c: Likewise.
24908         * posix/getsid.c: Likewise.
24909         * posix/getuid.c: Likewise.
24910         * posix/glob64.c: Likewise.
24911         * posix/nanosleep.c: Likewise.
24912         * posix/pathconf.c: Likewise.
24913         * posix/pause.c: Likewise.
24914         * posix/posix_madvise.c: Likewise.
24915         * posix/pread.c: Likewise.
24916         * posix/pread64.c: Likewise.
24917         * posix/pwrite.c: Likewise.
24918         * posix/pwrite64.c: Likewise.
24919         * posix/sched_getaffinity.c: Likewise.
24920         * posix/sched_getp.c: Likewise.
24921         * posix/sched_gets.c: Likewise.
24922         * posix/sched_primax.c: Likewise.
24923         * posix/sched_primin.c: Likewise.
24924         * posix/sched_rr_gi.c: Likewise.
24925         * posix/sched_setaffinity.c: Likewise.
24926         * posix/sched_setp.c: Likewise.
24927         * posix/sched_sets.c: Likewise.
24928         * posix/sched_yield.c: Likewise.
24929         * posix/setgid.c: Likewise.
24930         * posix/setlogin.c: Likewise.
24931         * posix/setpgid.c: Likewise.
24932         * posix/setresgid.c: Likewise.
24933         * posix/setresuid.c: Likewise.
24934         * posix/setsid.c: Likewise.
24935         * posix/setuid.c: Likewise.
24936         * posix/sleep.c: Likewise.
24937         * posix/spawni.c: Likewise.
24938         * posix/sysconf.c: Likewise.
24939         * posix/times.c: Likewise.
24940         * posix/wait.c: Likewise.
24941         * posix/wait3.c: Likewise.
24942         * posix/wait4.c: Likewise.
24943         * posix/waitpid.c: Likewise.
24944         * resolv/gai_sigqueue.c: Likewise.
24945         * resource/getpriority.c: Likewise.
24946         * resource/getrlimit.c: Likewise.
24947         * resource/getrusage.c: Likewise.
24948         * resource/nice.c: Likewise.
24949         * resource/setpriority.c: Likewise.
24950         * resource/setrlimit.c: Likewise.
24951         * resource/ulimit.c: Likewise.
24952         * rt/aio_cancel.c: Likewise.
24953         * rt/aio_fsync.c: Likewise.
24954         * rt/aio_read.c: Likewise.
24955         * rt/aio_sigqueue.c: Likewise.
24956         * rt/aio_suspend.c: Likewise.
24957         * rt/aio_write.c: Likewise.
24958         * rt/clock_getres.c: Likewise.
24959         * rt/clock_gettime.c: Likewise.
24960         * rt/clock_nanosleep.c: Likewise.
24961         * rt/clock_settime.c: Likewise.
24962         * rt/lio_listio.c: Likewise.
24963         * rt/mq_close.c: Likewise.
24964         * rt/mq_getattr.c: Likewise.
24965         * rt/mq_notify.c: Likewise.
24966         * rt/mq_open.c: Likewise.
24967         * rt/mq_receive.c: Likewise.
24968         * rt/mq_send.c: Likewise.
24969         * rt/mq_setattr.c: Likewise.
24970         * rt/mq_timedreceive.c: Likewise.
24971         * rt/mq_timedsend.c: Likewise.
24972         * rt/mq_unlink.c: Likewise.
24973         * rt/shm_open.c: Likewise.
24974         * rt/shm_unlink.c: Likewise.
24975         * rt/timer_create.c: Likewise.
24976         * rt/timer_delete.c: Likewise.
24977         * rt/timer_getoverr.c: Likewise.
24978         * rt/timer_gettime.c: Likewise.
24979         * rt/timer_settime.c: Likewise.
24980         * setjmp/__longjmp.c: Likewise.
24981         * setjmp/setjmp.c: Likewise.
24982         * signal/kill.c: Likewise.
24983         * signal/killpg.c: Likewise.
24984         * signal/raise.c: Likewise.
24985         * signal/sigaction.c: Likewise.
24986         * signal/sigaltstack.c: Likewise.
24987         * signal/sigblock.c: Likewise.
24988         * signal/sigignore.c: Likewise.
24989         * signal/sigintr.c: Likewise.
24990         * signal/signal.c: Likewise.
24991         * signal/sigpause.c: Likewise.
24992         * signal/sigpending.c: Likewise.
24993         * signal/sigqueue.c: Likewise.
24994         * signal/sigreturn.c: Likewise.
24995         * signal/sigset.c: Likewise.
24996         * signal/sigsetmask.c: Likewise.
24997         * signal/sigstack.c: Likewise.
24998         * signal/sigsuspend.c: Likewise.
24999         * signal/sigtimedwait.c: Likewise.
25000         * signal/sigvec.c: Likewise.
25001         * signal/sigwait.c: Likewise.
25002         * signal/sigwaitinfo.c: Likewise.
25003         * signal/sysv_signal.c: Likewise.
25004         * socket/accept.c: Likewise.
25005         * socket/accept4.c: Likewise.
25006         * socket/bind.c: Likewise.
25007         * socket/connect.c: Likewise.
25008         * socket/getpeername.c: Likewise.
25009         * socket/getsockname.c: Likewise.
25010         * socket/getsockopt.c: Likewise.
25011         * socket/isfdtype.c: Likewise.
25012         * socket/listen.c: Likewise.
25013         * socket/recv.c: Likewise.
25014         * socket/recvfrom.c: Likewise.
25015         * socket/recvmsg.c: Likewise.
25016         * socket/send.c: Likewise.
25017         * socket/sendmsg.c: Likewise.
25018         * socket/sendto.c: Likewise.
25019         * socket/setsockopt.c: Likewise.
25020         * socket/shutdown.c: Likewise.
25021         * socket/sockatmark.c: Likewise.
25022         * socket/socket.c: Likewise.
25023         * socket/socketpair.c: Likewise.
25024         * stdio-common/ctermid.c: Likewise.
25025         * stdio-common/cuserid.c: Likewise.
25026         * stdio-common/remove.c: Likewise.
25027         * stdio-common/rename.c: Likewise.
25028         * stdio-common/renameat.c: Likewise.
25029         * stdio-common/tempname.c: Likewise.
25030         * stdlib/getcontext.c: Likewise.
25031         * stdlib/makecontext.c: Likewise.
25032         * stdlib/setcontext.c: Likewise.
25033         * stdlib/swapcontext.c: Likewise.
25034         * stdlib/system.c: Likewise.
25035         * streams/fattach.c: Likewise.
25036         * streams/fdetach.c: Likewise.
25037         * streams/getmsg.c: Likewise.
25038         * streams/getpmsg.c: Likewise.
25039         * streams/putmsg.c: Likewise.
25040         * streams/putpmsg.c: Likewise.
25041         * sysdeps/unix/bsd/getpt.c: Likewise.
25042         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25043         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25044         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25046         Likewise.
25047         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25048         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25049         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25050         * sysvipc/msgctl.c: Likewise.
25051         * sysvipc/msgget.c: Likewise.
25052         * sysvipc/msgrcv.c: Likewise.
25053         * sysvipc/msgsnd.c: Likewise.
25054         * sysvipc/semctl.c: Likewise.
25055         * sysvipc/semget.c: Likewise.
25056         * sysvipc/semop.c: Likewise.
25057         * sysvipc/semtimedop.c: Likewise.
25058         * sysvipc/shmat.c: Likewise.
25059         * sysvipc/shmctl.c: Likewise.
25060         * sysvipc/shmdt.c: Likewise.
25061         * sysvipc/shmget.c: Likewise.
25062         * termios/tcdrain.c: Likewise.
25063         * termios/tcflow.c: Likewise.
25064         * termios/tcflush.c: Likewise.
25065         * termios/tcgetattr.c: Likewise.
25066         * termios/tcgetpgrp.c: Likewise.
25067         * termios/tcsendbrk.c: Likewise.
25068         * termios/tcsetattr.c: Likewise.
25069         * termios/tcsetpgrp.c: Likewise.
25070         * time/adjtime.c: Likewise.
25071         * time/clock.c: Likewise.
25072         * time/getitimer.c: Likewise.
25073         * time/gettimeofday.c: Likewise.
25074         * time/setitimer.c: Likewise.
25075         * time/settimeofday.c: Likewise.
25076         * time/stime.c: Likewise.
25077         * time/time.c: Likewise.
25078
25079 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25080
25081         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25082         /usr/old/bin.
25083
25084         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25085         instead of spaces.
25086         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25087
25088 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25089
25090         [BZ #14796]
25091         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25092         FE_TONEAREST before applying Dekker multiplication and Knuth
25093         addition.  Clear inexact exceptions and check for exact zero
25094         results afterwards.
25095         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25096         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25097         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25098         * math/libm-test.inc (fma_test): Add more tests.
25099         (fma_test_towardzero): Likewise.
25100         (fma_test_downward): Likewise.
25101         (fma_test_upward): Likewise.
25102         * sysdeps/generic/math_private.h (default_libc_fesetround): New
25103         function.
25104         (libc_fesetround): New macro.
25105         (libc_fesetroundf): Likewise.
25106         (libc_fesetroundl): Likewise.
25107         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
25108         function.
25109         (libc_fesetround_387): Likewise.
25110         (libc_fesetroundf): New macro.
25111         (libc_fesetround): Likewise.
25112         (libc_fesetroundl): Likewise.
25113         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
25114         function.
25115         (libc_fesetroundf): New macro.
25116         (libc_fesetround): Likewise.
25117         (libc_fesetroundl): Likewise.
25118         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
25119         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
25120         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
25121         libm_hidden_ver.
25122         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
25123         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
25124         libm_hidden_def.
25125         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
25126         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
25127         libm_hidden_ver.
25128         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
25129         libm_hidden_def.
25130
25131         [BZ #3439]
25132         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
25133         integer constant usable in #if and use that to give value to enum
25134         constant.
25135         (FE_DIVBYZERO): Likewise.
25136         (FE_UNDERFLOW): Likewise.
25137         (FE_OVERFLOW): Likewise.
25138         (FE_INVALID): Likewise.
25139         (FE_INVALID_SNAN): Likewise.
25140         (FE_INVALID_ISI): Likewise.
25141         (FE_INVALID_IDI): Likewise.
25142         (FE_INVALID_ZDZ): Likewise.
25143         (FE_INVALID_IMZ): Likewise.
25144         (FE_INVALID_COMPARE): Likewise.
25145         (FE_INVALID_SOFTWARE): Likewise.
25146         (FE_INVALID_SQRT): Likewise.
25147         (FE_INVALID_INTEGER_CONVERSION): Likewise.
25148         (FE_TONEAREST): Likewise.
25149         (FE_TOWARDZERO): Likewise.
25150         (FE_UPWARD): Likewise.
25151         (FE_DOWNWARD): Likewise.
25152         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
25153         (FE_DIVBYZERO): Likewise.
25154         (FE_OVERFLOW): Likewise.
25155         (FE_UNDERFLOW): Likewise.
25156         (FE_INEXACT): Likewise.
25157         (FE_TONEAREST): Likewise.
25158         (FE_DOWNWARD): Likewise.
25159         (FE_UPWARD): Likewise.
25160         (FE_TOWARDZERO): Likewise.
25161         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
25162         (FE_UNDERFLOW): Likewise.
25163         (FE_OVERFLOW): Likewise.
25164         (FE_DIVBYZERO): Likewise.
25165         (FE_INVALID): Likewise.
25166         (FE_TONEAREST): Likewise.
25167         (FE_TOWARDZERO): Likewise.
25168         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
25169         (FE_OVERFLOW): Likewise.
25170         (FE_UNDERFLOW): Likewise.
25171         (FE_DIVBYZERO): Likewise.
25172         (FE_INEXACT): Likewise.
25173         (FE_TONEAREST): Likewise.
25174         (FE_TOWARDZERO): Likewise.
25175         (FE_UPWARD): Likewise.
25176         (FE_DOWNWARD): Likewise.
25177         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
25178         (FE_DIVBYZERO): Likewise.
25179         (FE_OVERFLOW): Likewise.
25180         (FE_UNDERFLOW): Likewise.
25181         (FE_INEXACT): Likewise.
25182         (FE_TONEAREST): Likewise.
25183         (FE_DOWNWARD): Likewise.
25184         (FE_UPWARD): Likewise.
25185         (FE_TOWARDZERO): Likewise.
25186
25187 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
25188
25189         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
25190
25191 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
25192
25193         * scripts/cross-test-ssh.sh (command): Use newlines to separate
25194         commands.  Quote $PWD.
25195         (blacklist_exports): Don't use remove_newlines.  Replace "declare
25196         -x" by "export".
25197         (remove_newlines): Remove.
25198
25199 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
25200
25201         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
25202         * stdlib/stdlib.h (atof): Moved to ...
25203         * include/bits/stdlib-float.h: Here.  New file.
25204         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
25205         * stdlib/bits/stdlib-float.h: New file.
25206         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
25207         -mno-sse -mno-mmx.
25208         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
25209         <xmmintrin.h>.
25210
25211 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25212
25213         * conform/conformtest.pl (@headers): Add fenv.h.
25214         * conform/data/fenv.h-data: New file.
25215         * include/fenv.h [_ISOMAC]: Disable all contents of file except
25216         include of <math/fenv.h>.
25217
25218         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
25219         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
25220         && !UNIX98].  Enables tests for XOPEN2K8.
25221         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
25222         POSIX2008]: Likewise.
25223
25224         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
25225         (struct rusage): Do not expect type or its members.
25226
25227         [BZ #3439]
25228         * math/math.h (FP_NAN): Define macro to integer constant usable in
25229         #if and use that to give value to enum constant.
25230         (FP_INFINITE): Likewise.
25231         (FP_ZERO): Likewise.
25232         (FP_SUBNORMAL): Likewise.
25233         (FP_NORMAL): Likewise.
25234
25235 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
25236
25237         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
25238         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
25239         arguments.
25240
25241 2012-11-02  Roland McGrath  <roland@hack.frob.com>
25242
25243         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
25244         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
25245         autoconf-time if not.
25246         * configure.in: Remove AC_PREREQ.
25247
25248 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25249
25250         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
25251         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
25252         of the internal implementation.
25253
25254 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25255
25256         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
25257         except include of <misc/sys/syslog.h>.
25258
25259 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25260
25261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
25262         function returns with a NULL context exit with zero.
25263
25264 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25265
25266         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
25267
25268 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25269
25270         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
25271         (run_program_cmd): This.
25272         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
25273         (tst_langinfo): New variable.  Use it.
25274
25275 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
25276
25277         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
25278         floating point opcodes.
25279
25280 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25281
25282         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
25283         variable.
25284
25285         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
25286
25287         * sysdeps/mach/hurd/powerpc: Remove directory.
25288         * sysdeps/mach/powerpc: Likewise.
25289
25290 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25291
25292         * scripts/check-local-headers.sh: Ignore c++ headers.
25293
25294 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25295
25296         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
25297         __libc_cleanup_region_start argument.
25298
25299 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
25300
25301         [BZ #14784]
25302         [BZ #14785]
25303         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
25304         x * y using scaling, not as x * y + z.
25305         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25306         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25307         * math/libm-test.inc (fma_test): Add more tests.
25308         (fma_test_towardzero): Likewise.
25309         (fma_test_downward): Likewise.
25310         (fma_test_upward): Likewise.
25311
25312 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25313
25314         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
25315
25316 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25317
25318         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
25319         New variable.
25320
25321 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
25322
25323         * rt/tst-shm.c (worker): Correct checking for mmap failure.
25324
25325 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25326
25327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25328         Fix sort order.
25329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25330         Likewise.
25331
25332 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25333
25334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25335         Fix the order of the list for glibc 2.17.
25336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25337         Likewise.
25338
25339 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25340
25341         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25342
25343 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25344
25345         [BZ #14610]
25346         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
25347         for low part of x being zero before using __atanl (y).
25348         * math/libm-test.inc (atan2_test): Add another test.
25349
25350         * manual/install.texi (Configuring and compiling): Document
25351         general use of test-wrapper and test-wrapper-env.
25352         * INSTALL: Regenerated.
25353
25354         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
25355         (__fma): Do not extract and scale down low bits on after-rounding
25356         systems when result rounded to normal precision would have normal
25357         exponent.
25358         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
25359         (__fmal): Do not extract and scale down low bits on after-rounding
25360         systems when result rounded to normal precision would have normal
25361         exponent.
25362         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
25363         (__fmal): Do not extract and scale down low bits on after-rounding
25364         systems when result rounded to normal precision would have normal
25365         exponent.
25366         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
25367         macro.
25368         (fma_test): Add more tests.
25369         (fma_test_towardzero): Likewise.
25370         (fma_test_downward): Likewise.
25371         (fma_test_upward): Likewise.
25372
25373 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25374
25375         * sysdeps/i386/tininess.h: Renamed to ...
25376         * sysdeps/x86/tininess.h: This.
25377         * sysdeps/x86_64/tininess.h: Removed.
25378
25379 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25380
25381         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
25382         input.  Use $(build-program-cmd).
25383         ($(objpfx)tst-array1-static.out): Likewise.
25384         ($(objpfx)tst-array2.out): Likewise.
25385         ($(objpfx)tst-array3.out): Likewise.
25386         ($(objpfx)tst-array4.out): Likewise.
25387         ($(objpfx)tst-array5.out): Likewise.
25388         ($(objpfx)tst-array5-static.out): Likewise.
25389
25390 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
25391
25392         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
25393         if defined.
25394
25395         * nss/nsswitch.h (nss_interface_function): Provide new
25396         macro for use with NSS functions.
25397         * grp/initgroups.c: Use new macro.
25398         * nss/getXXbyYY.c: Likewise.
25399         * nss/getXXbyYY_r.c: Likewise.
25400         * nss/getXXent.c: Likewise.
25401         * nss/getXXent_r.c: Likewise.
25402         * sysdeps/posix/getaddrinfo.c: Likewise.
25403
25404 2012-10-30  Andreas Jaeger  <aj@suse.de>
25405
25406         * po/ru.po: Update Russion translation from translation project.
25407
25408 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25409
25410         [BZ #14152]
25411         [BZ #14783]
25412         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
25413         result and shift together with sticky bit instead of replicating
25414         round-to-nearest rounding.
25415         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25416         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25417         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
25418         missing underflow exceptions.
25419         (fma_test_towardzero): Add more tests.
25420         (fma_test_downward): Likewise.
25421         (fma_test_upward): Likewise.
25422
25423         [BZ #14047]
25424         * sysdeps/generic/tininess.h: New file.
25425         * sysdeps/i386/tininess.h: Likewise.
25426         * sysdeps/sh/tininess.h: Likewise.
25427         * sysdeps/x86_64/tininess.h: Likewise.
25428         * stdlib/tst-strtod-underflow.c: Likewise.
25429         * stdlib/tst-tininess.c: Likewise.
25430         * stdlib/strtod_l.c: Include <tininess.h>.
25431         (round_and_return): Do not set errno for exact underflow cases.
25432         Force an underflow exception when setting errno for underflow.
25433         Determine underflow based on rounding to normal precision if
25434         TININESS_AFTER_ROUNDING.
25435         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
25436         ERANGE for exact underflow cases.
25437         * stdlib/Makefile (tests): Add tst-tininess and
25438         tst-strtod-underflow.
25439         ($(objpfx)tst-tininess): Use $(link-libm).
25440         ($(objpfx)tst-strtod-underflow): Likewise.
25441
25442 2012-10-30  Andreas Jaeger  <aj@suse.de>
25443
25444         [BZ#14767]
25445         * elf/Makefile (tests): Remove conditional for have-initfini-array
25446         since this is now always required and the variable does not exist
25447         anymore.
25448         (tests-static): Likewise.
25449         (modules-names): Likewise.
25450
25451         * po/eo.po: Add Esperanto translation from translation project.
25452
25453         * elf/tst-array1.c (fini_array): Make writeable so that it can be
25454         merged with constructor/destructor.
25455         (init_array): Likewise.
25456         * elf/tst-array2dep.c (fini_array): Likewise.
25457         (init_array): Likewise.
25458
25459 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
25460
25461         * manual/message.texi: Delete @cartouche tags.
25462
25463 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
25464
25465         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
25466         EOPNOTSUPP.
25467         * sysdeps/mach/hurd/fsync.c: Likewise.
25468
25469         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
25470         [_POSIX_REALTIME_SIGNALS]: Change condition to
25471         [_POSIX_REALTIME_SIGNALS > 0].
25472
25473 2012-10-27  Andreas Jaeger  <aj@suse.de>
25474
25475         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
25476         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
25477         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
25478         [__WORDSIZE != 64]: Likewise.
25479
25480 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
25481
25482         *  iconvdata/tst-table.sh: Remove ${SHELL}.
25483         *  iconvdata/tst-tables.sh: Likewise.
25484
25485 2012-10-25  David S. Miller  <davem@davemloft.net>
25486
25487         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25488         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
25489         of strtoull.
25490
25491         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
25492         ifunc-impl-list.c
25493         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25494         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
25495         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
25496         file.
25497
25498 2012-10-25  Roland McGrath  <roland@hack.frob.com>
25499
25500         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25501         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
25502         __getdirentries.
25503
25504 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
25505             Jim Blandy  <jimb@codesourcery.com>
25506
25507         * scripts/cross-test-ssh.sh: New file.
25508         * manual/install.texi (Configuring and compiling): Document use of
25509         cross-test-ssh.sh.
25510         * INSTALL: Regenerated.
25511
25512 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
25513
25514         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
25515         EOPNOTSUPP.
25516
25517 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
25518
25519         * Makeconfig (run-program-prefix): Fix comment.
25520
25521 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25522             Jim Blandy  <jimb@codesourcery.com>
25523
25524         * Makeconfig (test-wrapper): New variable,
25525         (test-wrapper-env): Likewise.
25526         [$(cross-compiling) = yes && $(test-wrapper) != ""]
25527         (run-built-tests): Define to yes.
25528         (run-program-prefix): Use $(test-wrapper).
25529         (built-program-cmd): Likewise.
25530         * Rules (make-test-out): Use $(test-wrapper-env) and
25531         $(host-built-program-cmd).
25532         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
25533         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
25534         tst-pathopt.sh.
25535         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
25536         $(test-wrapper-env) to tst-rtld-load-self.sh.
25537         ($(objpfx)order2.out): Use $(test-wrapper).
25538         ($(objpfx)tst-initorder.out): Likewise.
25539         ($(objpfx)tst-initorder2.out): Likewise.
25540         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
25541         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
25542         (test_wrapper_env): New variable.  Use it to run ld.so.
25543         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
25544         Use it to run ld.so.
25545         (test_wrapper_env): Likewise.
25546         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
25547         $(test-wrapper) to run-iconv-test.sh.
25548         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
25549         (ICONV): Use $test_wrapper.
25550         * posix/Makefile ($(objpfx)globtest.out): Pass
25551         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
25552         globtest.sh, not $(run-program-prefix).
25553         * posix/globtest.sh (run_via_rtld_prefix): New variable.
25554         (test_wrapper): Likewise.
25555         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
25556         set together with run_via_rtld_prefix.
25557         (run_program_prefix): Define in terms of test_wrapper and
25558         run_via_rtld_prefix.
25559
25560 2012-10-24  Roland McGrath  <roland@hack.frob.com>
25561
25562         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
25563         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
25564         Targets removed.
25565
25566         [BZ #14743]
25567         * include/time.h: Remove librt_hidden_proto (clock_gettime).
25568         Declare __clock_getres, __clock_gettime, __clock_settime,
25569         __clock_nanosleep, and __clock_getcpuclockid.
25570         * rt/clock_gettime.c: Define __clock_gettime as an alias.
25571         Remove librt_hidden_def (clock_gettime).
25572         * sysdeps/unix/clock_gettime.c: Likewise.
25573         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
25574         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
25575         * rt/clock_getres.c: Define __clock_getres as an alias.
25576         * sysdeps/posix/clock_getres.c: Likewise.
25577         * rt/clock_settime.c: Define __clock_settime as an alias.
25578         * sysdeps/unix/clock_settime.c: Likewise.
25579         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
25580         * sysdeps/unix/clock_nanosleep.c: Likewise.
25581         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
25582         * rt/clock-compat.c: New file.
25583         * rt/Makefile (librt-routines): Add clock-compat and move
25584         $(clock-routines) to ...
25585         (routines): ... here, new variable.
25586         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
25587         Don't add get_clockfreq here.
25588         * rt/Versions (libc: GLIBC_2.17): New version set.
25589         Add clock_* symbols here.
25590         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
25591         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
25592         (GLIBC_2.17): Add clock_* symbols.
25593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
25594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
25595         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
25596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25597         Likewise.
25598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25599         Likewise.
25600         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
25601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
25602         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
25603         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
25604         * NEWS: Mention the move.
25605
25606         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
25607         Use __open, __read, __close rather than their public counterparts.
25608         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25609         (__get_clockfreq_via_cpuinfo): Likewise.
25610         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
25611         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
25612
25613         * config.h.in (HAVE_IFUNC): New #undef.
25614         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
25615         was successful.
25616         * configure: Regenerated.
25617
25618 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
25619
25620         * configure.in: Move READELF check to start of file.
25621         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
25622         libc_cv_asm_gnu_indirect_function in the process.
25623         * configure: Regenerated.
25624
25625 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
25626
25627         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
25628         send the output to /dev/null.
25629         (libc_cv_cc_with_libunwind): Likewise.
25630         (libc_cv_as_noexecstack): Likewise.
25631         * configure: Regenerate.
25632
25633 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25634
25635         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
25636
25637         * posix/globtest.sh (TMPDIR): Do not set.
25638         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
25639         (testout): Likewise.
25640
25641 2012-10-24  Andreas Jaeger  <aj@suse.de>
25642
25643         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
25644         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
25645         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
25646         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
25647         posix_fadvise64, posix_fallocate64.
25648
25649         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
25650         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
25651         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
25652         Likewise.
25653         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
25654         Likewise.
25655         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
25656
25657         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
25658         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
25659         <bits/fcntl-linux.h>.
25660         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
25661
25662         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
25663         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
25664         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
25665         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
25666         [__WORDSIZE != 64]: Likewise.
25667
25668 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
25669
25670         * Makeconfig (run-built-tests): New variable.
25671         * Rules [$(cross-compiling) = yes]: Change condition to
25672         [$(run-built-tests) = no].
25673         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
25674         to [$(run-built-tests) = yes].
25675         * elf/Makefile [$(cross-compiling) = no]: Likewise
25676         * grp/Makefile [$(cross-compiling) = no]: Likewise.
25677         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
25678         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
25679         * intl/Makefile [$(cross-compiling) = no]: Likewise.
25680         * io/Makefile [$(cross-compiling) = no]: Likewise.
25681         * libio/Makefile [$(cross-compiling) = no]: Likewise.
25682         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
25683         * misc/Makefile [$(cross-compiling) = no]: Likewise.
25684         * posix/Makefile [$(cross-compiling) = no]: Likewise.
25685         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
25686         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
25687         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
25688         * string/Makefile [$(cross-compiling) = no]: Likewise.
25689
25690         * posix/Makefile ($(objpfx)globtest.out): Pass
25691         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
25692         $(rtld-installed-name).
25693         * posix/globtest.sh (elf_objpfx): Remove variable.
25694         (rtld_installed_name): Likewise.
25695         (library_path): Likewise.
25696         (run_program_prefix): New variable.  Use for running globtest
25697         binary.
25698
25699 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
25700             Joseph Myers  <joseph@codesourcery.com>
25701
25702         * Makeconfig (host-built-program-cmd): New variable.
25703         * elf/Makefile (tst-stackguard1-ARGS): Use
25704         $(host-built-program-cmd).
25705         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
25706         (tst-spawn-ARGS): Likewise.
25707         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
25708
25709 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
25710             Jim Blandy  <jimb@codesourcery.com>
25711
25712         * Makeconfig (run-via-rtld-prefix): New variable.
25713         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
25714         (built-program-cmd): Likewise.
25715
25716 2012-10-22  Andreas Jaeger  <aj@suse.de>
25717
25718         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
25719         __O_RSYNC if it exists, otherwise to O_SYNC.
25720
25721 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
25722             Joseph Myers  <joseph@codesourcery.com>
25723
25724         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
25725         /dev/null.
25726         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
25727         from /dev/null
25728         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
25729         /dev/null.
25730
25731 2012-10-22  Andreas Jaeger  <aj@suse.de>
25732
25733         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
25734         Define always.
25735         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
25736
25737         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25738         bits/fcntl-linux.h.
25739
25740         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
25741         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
25742
25743         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
25744         to __O_LARGEFILE.
25745         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
25746         to __O_LARGEFILE.
25747
25748 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
25749             Joseph Myers  <joseph@codesourcery.com>
25750
25751         * config.make.in (NM): New variable.
25752
25753 2012-10-21  Andreas Jaeger  <aj@suse.de>
25754
25755         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
25756         definitions and declarations that are provided by
25757         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25758
25759 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25760
25761         [BZ #14683]
25762         * elf/Makefile (tests-static): Add tst-leaks1-static.
25763         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
25764         ($(objpfx)tst-leaks1-static): New rule.
25765         ($(objpfx)tst-leaks1-static-mem): Likewise.
25766         (tst-leaks1-static-ENV): New macro.
25767         * elf/dl-open.c (dl_open_worker): Check the main application
25768         only if SHARED is defined.
25769         * elf/tst-leaks1-static.c: New file.
25770
25771 2012-10-20  Andreas Jaeger  <aj@suse.de>
25772
25773         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
25774         generic values for Linux.
25775         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
25776         and declarations that are provided by <bits/fcntl-linux.h> and
25777         include <bits/fcntl-linux.h>.
25778         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25779         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25780
25781 2012-10-20  Roland McGrath  <roland@hack.frob.com>
25782
25783         * io/fcntl.h: Move include of <bits/types.h> to the top and
25784         include it unconditionally.
25785
25786 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25787
25788         * wcsmbs/Makefile (tests-ifunc): New variable.
25789         (tests): Add $(tests-ifunc).
25790         * wcsmbs/test-wcschr-ifunc.c: New file.
25791         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
25792         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
25793         * wcsmbs/test-wcslen-ifunc.c: Likewise.
25794         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
25795         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
25796
25797         * string/Makefile (tests-ifunc): New variable.
25798         (tests): Add $(tests-ifunc).
25799         * string/test-memccpy.c (TEST_NAME): New macro.
25800         * string/test-memchr.c (TEST_NAME): Likewise.
25801         * string/test-memcmp.c (TEST_NAME): Likewise.
25802         * string/test-memcpy.c (TEST_NAME): Likewise.
25803         * string/test-memmem.c (TEST_NAME): Likewise.
25804         * string/test-memmove.c (TEST_NAME): Likewise.
25805         * string/test-memset.c (TEST_NAME): Likewise.
25806         * string/test-rawmemchr.c (TEST_NAME): Likewise.
25807         * string/test-stpcpy.c (TEST_NAME): Likewise.
25808         * string/test-stpncpy.c (TEST_NAME): Likewise.
25809         * string/test-strcasecmp.c (TEST_NAME): Likewise.
25810         * string/test-strcasestr.c (TEST_NAME): Likewise.
25811         * string/test-strcat.c (TEST_NAME): Likewise.
25812         * string/test-strchr.c (TEST_NAME): Likewise.
25813         * string/test-strcmp.c(TEST_NAME): Likewise.
25814         * string/test-strcpy.c (TEST_NAME): Likewise.
25815         * string/test-strcspn.c (TEST_NAME): Likewise.
25816         * string/test-strlen.c (TEST_NAME): Likewise.
25817         * string/test-strncasecmp.c (TEST_NAME): Likewise.
25818         * string/test-strncmp.c (TEST_NAME): Likewise.
25819         * string/test-strncpy.c (TEST_NAME): Likewise.
25820         * string/test-strnlen.c (TEST_NAME): Likewise.
25821         * string/test-strpbrk.c (TEST_NAME): Likewise.
25822         * string/test-strrchr.c (TEST_NAME): Likewise.
25823         * string/test-strspn.c (TEST_NAME): Likewise.
25824         * string/test-strstr.c (TEST_NAME): Likewise.
25825         * string/test-bcopy-ifunc.c: New file.
25826         * string/test-bzero-ifunc.c: Likewise.
25827         * string/test-memccpy-ifunc.c: Likewise.
25828         * string/test-memchr-ifunc.c: Likewise.
25829         * string/test-memcmp-ifunc.c: Likewise.
25830         * string/test-memcpy-ifunc.c: Likewise.
25831         * string/test-memmem-ifunc.c: Likewise.
25832         * string/test-memmove-ifunc.c: Likewise.
25833         * string/test-mempcpy-ifunc.c: Likewise.
25834         * string/test-memset-ifunc.c: Likewise.
25835         * string/test-rawmemchr-ifunc.c: Likewise.
25836         * string/test-stpcpy-ifunc.c: Likewise.
25837         * string/test-stpncpy-ifunc.c: Likewise.
25838         * string/test-strcasecmp-ifunc.c: Likewise.
25839         * string/test-strcasestr-ifunc.c: Likewise.
25840         * string/test-strcat-ifunc.c: Likewise.
25841         * string/test-strchr-ifunc.c: Likewise.
25842         * string/test-strchrnul-ifunc.c: Likewise.
25843         * string/test-strcmp-ifunc.c: Likewise.
25844         * string/test-strcpy-ifunc.c: Likewise.
25845         * string/test-strcspn-ifunc.c: Likewise.
25846         * string/test-strlen-ifunc.c: Likewise.
25847         * string/test-strncasecmp-ifunc.c: Likewise.
25848         * string/test-strncat-ifunc.c: Likewise.
25849         * string/test-strncmp-ifunc.c: Likewise.
25850         * string/test-strncpy-ifunc.c: Likewise.
25851         * string/test-strnlen-ifunc.c: Likewise.
25852         * string/test-strpbrk-ifunc.c: Likewise.
25853         * string/test-strrchr-ifunc.c: Likewise.
25854         * string/test-strspn-ifunc.c: Likewise.
25855         * string/test-strstr-ifunc.c: Likewise.
25856
25857         * debug/Makefile (tests-ifunc): New variable.
25858         (tests): Add $(tests-ifunc).
25859         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
25860         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
25861         * debug/test-stpcpy_chk-ifunc.c: New file.
25862         * debug/test-strcpy_chk-ifunc.c: Likewise.
25863
25864 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
25865
25866         [BZ #13601]
25867         * elf/dl-load.c (open_verify): Retry read if the entire ELF
25868         header is not read in.
25869
25870 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
25871
25872         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
25873         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
25874         directly.  Pass built executable to script as
25875         $(built-program-cmd).
25876         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
25877         $testprogram without using LD_LIBRARY_PATH and $ldso.
25878
25879         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
25880         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
25881         $(rtld-installed-name).
25882         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
25883         (rtld_installed_name): Likewise.
25884         (library_path): Likewise.
25885         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
25886         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
25887         $(run-program-prefix) to tst-tables.sh.
25888         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
25889         it to run tst-table-from and tst-table-to.
25890         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
25891         Pass it to tst-table.sh.
25892         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
25893         $(run-program-prefix) to tst-gettext.sh.
25894         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
25895         tst-translit.sh.
25896         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
25897         tst-gettext2.sh.
25898         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
25899         to run tst-gettext.
25900         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
25901         to run tst-gettext2.
25902         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
25903         to run tst-translit.
25904         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
25905         $(run-program-prefix) to tst-mtrace.sh.
25906         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
25907         to run tst-mtrace.
25908         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
25909         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
25910         $(rtld-installed-name).
25911         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
25912         (rtld_installed_name): Likewise.
25913         (run_program_prefix): New variable.  Use it to run wordexp-test.
25914
25915         * Makeconfig (ARCH): Remove all definitions.
25916         (machine): Likewise.
25917         [ARCH]: Remove conditional code.
25918         [!objdir]: Give error.
25919         [!objdir] (objpfx): Remove.
25920         [!objdir] (common-objpfx): Likewise.
25921         [!objdir] (common-objdir): Likewise.
25922         * configure.in (config_makefile): Remove.  Hardcode Makefile in
25923         AC_CONFIG_FILES call.
25924         * configure: Regenerated.
25925
25926         [BZ #13888]
25927         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
25928         or TMPDIR.
25929         (testout): Likewise.
25930
25931         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
25932         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
25933         $(rtld-installed-name).
25934         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
25935         (rtld_installed_name): Likwise.
25936         (runit): Remove function.
25937         (run_getconf): New variable,  Use it for running getconf binary.
25938
25939 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
25940
25941         [BZ #14716]
25942         * string/test-memmem.c (check_result): New function.
25943         (do_one_test): Use it.
25944         (check1): New function.
25945         (test_main): Use it.
25946
25947 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
25948
25949         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
25950
25951 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
25952
25953         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
25954         (_G_LSEEK64): Likewise.
25955         (_G_MMAP64): Likewise.
25956         (_G_FSTAT64): Likewise.
25957         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
25958         (_G_LSEEK64): Likewise.
25959         (_G_MMAP64): Likewise.
25960         (_G_FSTAT64): Likewise.
25961         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
25962         unconditional.  Call __mmap64 directly.
25963         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
25964         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
25965         __lseek64 directly.
25966         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
25967         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
25968         __mmap64 directly.
25969         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
25970         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
25971         __lseek64 directly.
25972         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
25973         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
25974         __lseek64 directly.
25975         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
25976         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
25977         __lseek64 directly.
25978         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
25979         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
25980         __fxstat64 directly.
25981         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
25982         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
25983         unconditional.
25984         (freopen64) [!_G_OPEN64]: Remove conditional code.
25985         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
25986         unconditional.
25987         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
25988         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
25989         unconditional.
25990         (ftello64) [!_G_LSEEK64]: Remove conditional code.
25991         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
25992         unconditional.
25993         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
25994         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
25995         unconditional.
25996         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
25997         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
25998         unconditional.
25999         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26000         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26001         unconditional.
26002         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26003         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26004         unconditional.
26005         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26006
26007 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26008
26009         [BZ #12140]
26010         * manual/memory.texi (Malloc Tunable Parameters): Add note
26011         about free list pointers overwriting some perturb bytes.
26012         Wording suggested by Roland McGrath.
26013
26014 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26015
26016         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26017         (lgamma_test): Likewise.
26018         (tgamma_test): Likewise.
26019
26020 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26021
26022         [BZ #14700]
26023         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26024         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26025
26026 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26027
26028         * NEWS: Mention BZ #14716.
26029         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26030         when removing AVAILABLE1_USES_J macro.
26031
26032 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26033
26034         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26035         (__bswap_64): __uint64_t for unsigned 64-bit int.
26036
26037 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26038
26039         * include/string.h (memmem): Declare libc hidden alias.
26040         * string/memmem.c (memmem): Define libc hidden alias.
26041         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26042         __read, __close instead of open, read, close.
26043
26044 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26045
26046         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26047         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26048         global and hidden.
26049         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26050         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26051         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26052         Likewise.
26053         (__rawmemchr_sse2): Likewise.
26054         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26055         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26056         (__strchr_sse2): Likewise.
26057         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26058         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26059         (__strcasecmp_sse2): Likewise.
26060         (__strncasecmp_sse2): Likewise.
26061         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26062         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26063         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26064         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26065         (__strrchr_sse2): Likewise.
26066         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26067         ifunc-impl-list.c.
26068         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26069         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26070         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26071         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26072         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26073         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26074         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26075         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26076         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26077         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26078         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26079         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26080         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26081         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26082         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26083         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26084         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26085         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26086         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26087         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26088         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26089         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26090         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26091         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26092         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
26093         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26094         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26095         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26096         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26097         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26098
26099         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
26100         global and hidden.
26101         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
26102         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
26103         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
26104         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
26105         Likewise.
26106         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
26107         Likewise.
26108         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
26109         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
26110         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
26111         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
26112         ifunc-impl-list.c.
26113         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26114         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26115         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26116         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26117         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26118         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26119         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26120         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26121         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26122         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26123         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26124         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26125         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26126         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
26127         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
26128         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26129         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
26130         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
26131         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26132         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26133         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26134         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26135         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26136         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26137         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26138         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
26139         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
26140         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
26141         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
26142         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26143         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
26144         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26145         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26146         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
26147         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26148         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26149         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26150         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26151         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26152         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26153         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
26154
26155         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
26156         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
26157         * include/ifunc-impl-list.h: New file.
26158         * misc/ifunc-impl-list.c: Likewise.
26159         * misc/Makefile (routines): Add ifunc-impl-list.
26160         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
26161         * string/test-string.h: Include <ifunc-impl-list.h>.
26162         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
26163         TEST_NAME]: New variables.
26164         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
26165         are defined.
26166         (test_init): Call __libc_ifunc_impl_list to initialize
26167         func_list if TEST_IFUNC and TEST_NAME are defined.
26168
26169         * string/Makefile (strop-tests): Add bcopy and bzero.
26170         * string/test-bcopy.c: New file.
26171         * string/test-bzero.c: Likewise.
26172         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
26173         defined.
26174         * string/test-memset.c: Support bzero test if TEST_BZERO is
26175         defined.
26176         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
26177         __libc_memmove.
26178         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
26179         __libc_memset.
26180         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
26181         of memset.
26182
26183 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
26184
26185         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
26186         * configure: Regenerated.
26187
26188         * Makeconfig (+link-static-before-libc): Don't include
26189         $(link-static-libc).
26190
26191         * libio/libio.h (_IO_pos_t): Remove.
26192
26193 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26194
26195         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
26196         McGrath.
26197
26198 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26199
26200         * crypt/crypt-entry.c: Include fips-private.h.
26201         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
26202         * crypt/md5c-test.c (main): Tolerate disabled MD5.
26203         * sysdeps/unix/sysv/linux/fips-private.h: New file.
26204         * sysdeps/generic/fips-private.h: New file, dummy fallback.
26205
26206 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26207
26208         * crypt/crypt-private.h: Include stdbool.h.
26209         (_ufc_setup_salt_r): Return bool.
26210         * crypt/crypt-entry.c: Include errno.h.
26211         (__crypt_r): Return NULL with EINVAL for bad salt.
26212         * crypt/crypt_util.c (bad_for_salt): New.
26213         (_ufc_setup_salt_r): Check that salt is long enough and within
26214         the specified alphabet.
26215         * crypt/badsalttest.c: New file.
26216         * crypt/Makefile (tests): Add it.
26217         ($(objpfx)badsalttest): New.
26218
26219 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
26220
26221         * NEWS: Add entry for BZ #14602.
26222
26223 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26224
26225         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
26226         type-generic.
26227         * math/libm-test.inc: Update comment listing what functions and
26228         macros are tested.
26229         (isgreater_test): New function.
26230         (isgreaterequal_test): Likewise.
26231         (isless_test): Likewise.
26232         (islessequal_test): Likewise.
26233         (islessgreater_test): Likewise.
26234         (isunordered_test): Likewise.
26235         (main): Call the new functions.
26236
26237 2012-10-09  Roland McGrath  <roland@hack.frob.com>
26238
26239         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
26240         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
26241         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
26242         * sysdeps/i386/configure: Regenerated.
26243         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
26244         * sysdeps/mach/configure: Regenerated.
26245         * sysdeps/mach/hurd/configure: Regenerated.
26246         * sysdeps/powerpc/configure: Regenerated.
26247         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26248         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26249         * sysdeps/s390/s390-32/configure: Regenerated.
26250         * sysdeps/s390/s390-64/configure: Regenerated.
26251         * sysdeps/sh/configure: Regenerated.
26252         * sysdeps/sparc/configure: Regenerated.
26253         * sysdeps/unix/sysv/linux/configure: Regenerated.
26254         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
26255         * sysdeps/x86_64/configure: Regenerated.
26256
26257         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
26258         defined.  Don't check if MAP is NULL.
26259
26260 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26261
26262         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
26263         (_G_stat64): Likewise.
26264         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
26265         (_G_stat64): Likewise.
26266         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
26267         instead of struct _G_stat64.
26268         * libio/fileops.c (mmap_remap_check): Likewise.
26269         (decide_maybe_mmap): Likewise.
26270         (_IO_new_file_seekoff): Likewise.
26271         (_IO_file_stat): Likewise.
26272         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
26273         _G_off64_t.
26274         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
26275         instead of struct _G_stat64.
26276         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26277
26278 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26279
26280         [BZ #14602]
26281         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26282         Replace with ...
26283         (CHECK_EOL): New macro.
26284         (two_way_short_needle): Check beginning of haystack for EOL.  Use
26285         CHECK_EOL.
26286         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26287         Replace with CHECK_EOL.
26288         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26289         Replace with CHECK_EOL.
26290
26291 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
26292
26293         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
26294         type-generic.
26295         * math/libm-test.inc: Update comment listing what functions and
26296         macros are tested.
26297         (finite_test): New function.
26298         (isinf_test): Likewise.
26299         (isnan_test): Likewise.
26300         (fpclassify_test): Test subnormal input.
26301         (isfinite_test): Likewise.
26302         (isnormal_test): Likewise.
26303         (main): Call the new functions.
26304
26305 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
26306
26307         [BZ #14660]
26308         * Makerules (%.dynsym): Force C locale when running
26309         $(OBJDUMP) --dynamic-syms.
26310
26311 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
26312
26313         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
26314         <stdint.h>.
26315
26316 2012-10-06  David S. Miller  <davem@davemloft.net>
26317
26318         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
26319         upper 32-bits of the length value in %o2 since we use branch-on-register
26320         tests which consider the entire 64-bit register.
26321
26322 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
26323
26324         * string/test-strstr.c (check2): Add a test for page boundary.
26325
26326 2012-10-05  David S. Miller  <davem@davemloft.net>
26327
26328         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
26329         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
26330         file.
26331         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26332         sysdep_routines.
26333         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26334         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
26335         and bzero when HWCAP_SPARC_CRYPTO is present.
26336
26337 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
26338
26339         [BZ #14602]
26340         * string/test-strstr.c (check2): New function.
26341         (test_main): Call check2.
26342
26343         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
26344         and bug-strchr1.
26345         * string/bug-strcasestr1.c (do_test): Moved to ...
26346         * string/test-strcasestr.c (check1): Here.  New function.
26347         (do_one_test): Break out result checking code into ...
26348         (check_result): This.  New function.
26349         (do_one_test): Call check_result.
26350         (test_main): Call check1.
26351         * string/bug-strchr1.c (do_test): Moved to ...
26352         * string/test-strchr.c (check1): Here.  New function.
26353         (do_one_test): Break out result checking code into ...
26354         (check_result): This.  New function.
26355         (do_one_test): Call check_result.
26356         (test_main): Call check1.
26357         * string/bug-strstr1.c (main): Moved to ...
26358         * string/test-strstr.c (check1): Here.  New function.
26359         (do_one_test): Break out result checking code into ...
26360         (check_result): This.  New function.
26361         (do_one_test): Call check_result.
26362         (test_main): Call check1.
26363         * string/bug-strcasestr1.c: Removed.
26364         * string/bug-strchr1.c: Likewise.
26365         * string/bug-strstr1.c: Likewise.
26366
26367         * elf/Makefile (dl-routines): Add hwcaps.
26368         * elf/dl-support.c (_dl_important_hwcaps): Removed.
26369         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
26370         (_dl_important_hwcaps): Moved to ...
26371         * elf/dl-hwcaps.c: Here.  New file.
26372         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
26373
26374         [BZ #14557]
26375         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
26376         if IS_IN_rtld isn't defined.
26377
26378         * elf/dl-support.c (_dl_sysinfo_map): New.
26379         Include "get-dynamic-info.h" and "setup-vdso.h".
26380         (_dl_non_dynamic_init): Call setup_vdso.
26381         * elf/dynamic-link.h: Don't include <assert.h>.
26382         (elf_get_dynamic_info): Moved to ...
26383         * elf/get-dynamic-info.h: Here.  New file.
26384         * elf/dynamic-link.h: Include "get-dynamic-info.h".
26385         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
26386         * elf/setup-vdso.h: Here.  New file.
26387         * elf/rtld.c: Include "setup-vdso.h".
26388         (dl_main): Call setup_vdso.
26389
26390 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
26391
26392         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
26393         creal in comment listing functions tested.  List finite, isinf,
26394         isnan, isless, islessequal, isgreater, isgreaterequal,
26395         islessgreater, isunordered, lgamma_r and pow10 as functions and
26396         macros not tested.  Mention which functions not tested are aliases
26397         for other functions.  Fix typo.  Note that signs of NaNs are not
26398         tested.
26399
26400         * scripts/config.guess: Update from config.git.
26401         * scripts/config.sub: Likewise.
26402
26403 2012-10-04  Roland McGrath  <roland@hack.frob.com>
26404
26405         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
26406         * misc/madvise.c (madvise): Renamed to __madvise.
26407         Make madvise a weak alias.
26408         * include/sys/mman.h: Declare __madvise.
26409         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
26410         * sysdeps/unix/syscalls.list
26411         (madvise): Make __madvise the strong name, and madvise a weak alias.
26412         * sysdeps/unix/sysv/linux/syscalls.list
26413         (madvise, mmap): Remove redundant entries.
26414         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
26415         * malloc/malloc.c (mtrim): Likewise.
26416         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
26417
26418 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26419
26420         * sysdeps/mach/hurd/dl-cache.c: File removed.
26421         * config.h.in (USE_LDCONFIG): New #undef.
26422         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
26423         * configure: Regenerated.
26424         * elf/Makefile (dl-routines): Add dl-cache only under
26425         [$(use-ldconfig) = yes].
26426         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
26427         cache on [USE_LDCONFIG].
26428         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
26429         [USE_LDCONFIG].
26430         * elf/rtld.c (dl_main): Likewise.
26431
26432 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
26433
26434         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
26435         _SC_LEVEL4_CACHE_LINESIZE.
26436
26437 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26438
26439         * sysdeps/unix/bsd/confstr.h: File removed.
26440
26441 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
26442
26443         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
26444         sys/sdt-config.h.
26445
26446 2012-10-02  Roland McGrath  <roland@hack.frob.com>
26447
26448         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
26449         Make 'mapoff' field ElfW(Off) rather than off_t.
26450
26451 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
26452
26453         * nscd/Makefile: Remove nscd-cflags and all its users.
26454         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
26455         (CFLAGS-nonlib): Add compiler flags for nscd modules.
26456
26457         [BZ #10631]
26458         * malloc.c (malloc_printerr): Clarify error message.
26459
26460 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
26461
26462         [BZ #14648]
26463         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26464         Set bit_FMA_Usable if FMA is supported.
26465         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
26466         macro.
26467         (bit_FMA4_Usable): Updated.
26468         (index_FMA_Usable): New macro.
26469         (CPUID_FMA): Likewise
26470         (HAS_FMA): Defined with bit_FMA_Usable.
26471
26472 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26473
26474         * bits/types.h (__swblk_t): Type removed.
26475         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
26476         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
26477         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26478         (__SWBLK_T_TYPE): Likewise.
26479         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26480         (__SWBLK_T_TYPE): Likewise.
26481         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26482         (__SWBLK_T_TYPE): Likewise.
26483         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26484         (__SWBLK_T_TYPE): Likewise.
26485
26486 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
26487             Honza Horak <hhorak@redhat.com>
26488
26489         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
26490         (xdr_mapname): Use YPMAXMAP as maxsize.
26491         (xdr_peername): Use YPMAXPEER as maxsize.
26492         (xdr_keydat): Use YPAXRECORD as maxsize.
26493         (xdr_valdat): Use YPMAXRECORD as maxsize.
26494
26495 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26496
26497         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
26498
26499         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
26500         * csu/init-first.c: ... here.
26501         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
26502         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
26503         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
26504         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
26505         * sysdeps/i386/init-first.c: File removed.
26506         * sysdeps/sh/init-first.c: File removed.
26507
26508 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
26509
26510         [BZ #14645]
26511         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
26512         if x * y might underflow to zero and z is zero.
26513         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26514         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26515         * math/libm-test.inc (min_subnorm_value): New variable.
26516         (fma_test): Add more tests.
26517         (fma_test_towardzero): Likewise.
26518         (fma_test_downward): Likewise
26519         (fma_test_upward): Likewise.
26520         (initialize): Set min_subnorm_value.
26521
26522 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
26523
26524         [BZ #14638]
26525         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
26526         0 + 0.
26527         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
26528         mode for addition resulting in exact zero.
26529         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
26530         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
26531         exact 0 + 0.
26532         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26533         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26534         * math/libm-test.inc (fma_test): Add more tests.
26535         (fma_test_towardzero): New function.
26536         (fma_test_downward): Likewise.
26537         (fma_test_upward): Likewise.
26538         (main): Call the new functions.
26539
26540 2012-09-28  David S. Miller  <davem@davemloft.net>
26541
26542         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
26543
26544 2012-09-28  Roland McGrath  <roland@hack.frob.com>
26545
26546         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
26547         instead of SIGALRM.
26548
26549         * sysdeps/gnu/_G_config.h: Moved to ...
26550         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
26551         * sysdeps/mach/hurd/_G_config.h: Moved to ...
26552         * sysdeps/generic/_G_config.h: ... here.
26553
26554         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
26555
26556         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
26557
26558         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
26559         Conditionalize target on [libnss_test1.so-version].
26560
26561         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
26562
26563         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
26564         (elfobjdir): Move out of conditionals.
26565
26566         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
26567         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
26568         (__nss_lookup_function): Conditionalize label remove_from_tree on
26569         [!DO_STATIC_NSS || SHARED], matching its only use.
26570
26571 2012-09-28  David S. Miller  <davem@davemloft.net>
26572
26573         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
26574         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
26575         file.
26576         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26577         sysdep_routines.
26578         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26579         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
26580         when HWCAP_SPARC_CRYPTO is present.
26581
26582 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26583
26584         * io/tst-mknodat.c: Create a FIFO instead of a socket.
26585
26586 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
26587
26588         [BZ #6530]
26589         * stdio-common/vfprintf.c (process_string_arg): Revert
26590         2000-07-22 change.
26591
26592 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
26593
26594         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
26595         for testcase.
26596         * stdio-common/tst-sprintf.c: Include <locale.h>
26597         (main): Test sprintf's handling of incomplete multibyte
26598         characters.
26599
26600 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
26601
26602         * elf/dl-runtime.c (VERSYMIDX): Removed.
26603         * elf/dl-version.c (VERSYMIDX): Likewise.
26604         * elf/do-rel.h (VERSYMIDX): Likewise.
26605         (VALIDX): Likewise.
26606         * elf/dynamic-link.h (VERSYMIDX): Likewise.
26607         * elf/rtld.c (VALIDX): Likewise.
26608         (ADDRIDX): Likewise.
26609         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
26610         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
26611         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
26612         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
26613         (VALIDX): Likewise.
26614         (ADDRIDX): Likewise.
26615
26616 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26617
26618         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
26619
26620 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
26621
26622         [BZ #11438]
26623         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
26624         to global scope.
26625         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
26626         addresses are in the same scope as 192.0.2/24.
26627         * posix/gai.conf: Document new scope table defaults.
26628
26629 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26630
26631         [BZ #5298]
26632         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
26633         for ftell.  Compute offsets from write pointers instead.
26634         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26635
26636 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26637
26638         [BZ #14543]
26639         * libio/Makefile (tests): New test case tst-fseek.
26640         * libio/tst-fseek.c: New test case to verify that fseek/ftell
26641         combination works in wide mode.
26642         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
26643         state when the external buffer state changes.
26644
26645 2012-09-27  David S. Miller  <davem@davemloft.net>
26646
26647         [BZ #14376]
26648         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
26649         pass reloc->r_addend in as the 'high' argument to
26650         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
26651
26652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26653
26654 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26655
26656         * rt/tst-aio2.c: Include <pthread.h>.
26657         * rt/tst-aio3.c: Likewise.
26658
26659 2012-09-27  Steve Ellcey  <sellcey@mips.com>
26660
26661         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
26662
26663 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
26664
26665         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
26666         contents on [SHARED].
26667
26668 2012-09-26  Marek Polacek  <polacek@redhat.com>
26669
26670         [BZ #14530]
26671         [BZ #13741]
26672         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
26673         for C++ and GCC <4.3 as well as for non GCC compilers.
26674
26675 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26676
26677         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26678
26679 2012-09-25  Roland McGrath  <roland@hack.frob.com>
26680
26681         * Makefile.in (all, install): Declare with .PHONY.
26682         Reported by Michael Hope <michael.hope@linaro.org>.
26683
26684 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26685
26686         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
26687         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
26688         system header.
26689         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
26690         Likewise.
26691         (sydep_routines): Add the new and the internal functions.
26692         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
26693         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
26694         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
26695         (GLIBC_2.17): Add the new function.
26696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
26697         (GLIBC_2.17): Likewise.
26698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
26699         (GLIBC_2.17): Likewise.
26700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
26701         (GLIBC_2.17): Likewise.
26702         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
26703
26704 2012-09-25  Alan Modra  <amodra@gmail.com>
26705
26706         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
26707         Add release barrier before setting once_control to say
26708         initialisation is done.  Add hints on lwarx.  Use macro in
26709         place of isync.
26710         (clear_once_control): Add release barrier.
26711
26712 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
26713
26714         [BZ #13629]
26715         * math/s_clog.c (__clog): Handle more values close to |z| = 1
26716         specially.
26717         * math/s_clog10.c (__clog10): Likewise.
26718         * math/s_clog10f.c (__clog10f): Likewise.
26719         * math/s_clog10l.c (__clog10l): Likewise.
26720         * math/s_clogf.c (__clogf): Likewise.
26721         * math/s_clogl.c (__clogl): Likewise.
26722         * math/Makefile (libm-calls): Add x2y2m1.
26723         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
26724         (__x2y2m1): Likewise.
26725         (__x2y2m1l): Likewise.
26726         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
26727         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
26728         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
26729         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
26730         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
26731         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
26732         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
26733         * sysdeps/i386/fpu/libm-test-ulps: Update.
26734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26735
26736         [BZ #14621]
26737         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
26738         int as type of variable DEPTH.
26739         (glob): Use size_t instead of int as type of variables NEWCOUNT
26740         and OLD_PATHC.
26741
26742 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26743
26744         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
26745         Add s_sincosf-sse2.
26746         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
26747         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
26748         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
26749         macros for using routine as __sincosf_ia32.
26750         Use macro for function declaration and weak_alias.
26751         * sysdeps/i386/fpu/libm-test-ulps: Update.
26752
26753         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
26754         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26755
26756         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
26757         subnormal argument.
26758         * math/s_cexpf.c (__cexpf): Likewise.
26759         * math/s_csinf.c (__csinf): Likewise.
26760         * math/s_csinhf.c (__csinhf): Likewise.
26761         * math/s_ctanf.c (__ctanf): Likewise.
26762         * math/s_ctanhf.c (__ctanhf): Likewise.
26763         * math/s_ccosh.c (__ccoshf): Likewise.
26764         * math/s_cexp.c (__cexpl): Likewise.
26765         * math/s_csin.c (__csin): Likewise.
26766         * math/s_csinh.c (__csinh): Likewise.
26767         * math/s_ctan.c (__ctan): Likewise.
26768         * math/s_ctanh.c (ctanh): Likewise.
26769         * math/s_ccoshl.c (__ccoshl): Likewise.
26770         * math/s_cexpl.c (__cexpl): Likewise.
26771         * math/s_csinl.c (__csinl): Likewise.
26772         * math/s_csinhl.c (__csinhl): Likewise.
26773         * math/s_ctanl.c (__ctanl): Likewise.
26774         * math/s_ctanhl.c (__ctanhl): Likewise.
26775
26776 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
26777
26778         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
26779         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
26780         (_IO_off_t): Define to __off_t, not _G_off_t.
26781         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
26782         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
26783         (_IO_wint_t): Define to wint_t, not _G_wint_t.
26784         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
26785         type of __dummy and __dummy2 fields.
26786         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
26787         (_G_ssize_t): Likewise.
26788         (_G_off_t): Likewise.
26789         (_G_pid_t): Likewise.
26790         (_G_uid_t): Likewise.
26791         (_G_wchar_t): Likewise.
26792         (_G_wint_t): Likewise.
26793         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
26794         (_G_ssize_t): Likewise.
26795         (_G_off_t): Likewise.
26796         (_G_pid_t): Likewise.
26797         (_G_uid_t): Likewise.
26798         (_G_wchar_t): Likewise.
26799         (_G_wint_t): Likewise.
26800         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
26801         (_G_ssize_t): Likewise.
26802         (_G_off_t): Likewise.
26803         (_G_pid_t): Likewise.
26804         (_G_uid_t): Likewise.
26805         (_G_wchar_t): Likewise.
26806         (_G_wint_t): Likewise.
26807
26808 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26809
26810         * malloc/arena.c: Include malloc-sysdep.h.
26811         (shrink_heap): Use check_may_shrink_heap to decide if madvise
26812         is sufficient to shrink the heap or an unmap is needed.
26813         * sysdeps/generic/malloc-sysdep.h: New file.  Define
26814         new function check_may_shrink_heap.
26815         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
26816         new function check_may_shrink_heap.
26817
26818 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26819
26820         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
26821         comments.
26822
26823 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
26824
26825         * catgets/test-gencat.sh: Add "set -e".
26826         * elf/tst-pathopt.sh: Likewise.
26827         * grp/tst_fgetgrent.sh: Likewise.
26828         * iconvdata/run-iconv-test.sh: Likewise.
26829         * intl/tst-gettext.sh: Likewise.
26830         * intl/tst-gettext2.sh: Likewise.
26831         * intl/tst-gettext4.sh: Likewise.
26832         * intl/tst-gettext6.sh: Likewise.
26833         * intl/tst-translit.sh: Likewise.
26834         * io/ftwtest-sh: Likewise.
26835         * libio/test-freopen.sh: Likewise.
26836         * malloc/tst-mtrace.sh: Likewise.
26837         * posix/globtest.sh: Likewise.
26838         * posix/tst-getconf.sh: Likewise.
26839         * posix/wordexp-tst.sh: Likewise.
26840         * stdio-common/tst-printf.sh: Likewise.
26841         * stdio-common/tst-unbputc.sh: Likewise.
26842         * stdlib/tst-fmtmsg.sh: Likewise.
26843         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
26844         * catgets/Makefile: Do not specify -e option when running
26845         testsuite shell scripts.
26846         * elf/Makefile: Likewise.
26847         * grp/Makefile: Likewise.
26848         * iconvdata/Makefile: Likewise.
26849         * intl/Makefile: Likewise.
26850         * io/Makefile: Likewise.
26851         * libio/Makefile: Likewise.
26852         * malloc/Makefile: Likewise.
26853         * posix/Makefile: Likewise.
26854         * stdio-common/Makefile: Likewise.
26855         * stdlib/Makefile: Likewise.
26856         * sysdeps/x86_64/Makefile: Likewise.
26857
26858         * io/ftwtest-sh: Add copyright header.
26859         * posix/globtest.sh: Likewise.
26860         * posix/tst-getconf.sh: Likewise.
26861         * posix/wordexp-tst.sh: Likewise.
26862         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
26863
26864 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
26865
26866         [BZ #13679]
26867         * Makeconfig (+link): Defined as $(+link-static) if
26868         $(build-shared) isn't yes.
26869         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
26870         isn't yes.
26871         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
26872
26873         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
26874
26875         [BZ #14562]
26876         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
26877         new chunk size with MALLOC_ALIGN_MASK.
26878
26879 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
26880
26881         [BZ #5044]
26882         * stdio-common/printf_fphex.c: Include <stdbool.h> and
26883         <rounding-mode.h>.
26884         (__printf_fphex): Determine rounding using get_rounding_mode and
26885         round_away.
26886         * stdio-common/tst-printf-round.c (struct hex_test): New
26887         structure.
26888         (hex_tests): New variable.
26889         (test_hex_in_one_mode): New function.
26890         (do_test): Also run tests for hex float output.
26891
26892 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
26893
26894         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
26895         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
26896         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
26897         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
26898         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
26899         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
26900         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
26901         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
26902
26903 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
26904
26905         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
26906         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
26907         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
26908         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
26909
26910 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
26911
26912         [BZ #14579]
26913         * elf/rtld.c (dl_main): Limit the check for self loading to normal
26914         mode only.
26915         * elf/tst-rtld-load-self.sh: New test.
26916         * elf/Makefile: Run it.
26917
26918 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
26919
26920         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
26921         (tst-writev-ENV): Remove.
26922         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
26923
26924 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
26925
26926         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
26927
26928 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
26929
26930         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
26931         unconditional.
26932         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
26933         Likewise.
26934         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
26935         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
26936         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
26937         Likewise.
26938
26939 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
26940
26941         [BZ #14587]
26942         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
26943         * config.make.in (have-cpp-asm-debuginfo): Removed.
26944         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
26945         * configure: Regenerated.
26946
26947 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
26948
26949         [BZ #5044]
26950         * stdio-common/printf_fp.c: Include <stdbool.h> and
26951         <rounding-mode.h>.
26952         (___printf_fp): Determine rounding using get_rounding_mode and
26953         round_away.
26954         * stdio-common/tst-printf-round.c: New file.
26955         * stdio-common/Makefile (tests): Add tst-printf-round.
26956         (link-libm): New variable.
26957         ($(objpfx)tst-printf-round): Depend in $(link-libm).
26958
26959 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
26960
26961         [BZ #14576]
26962         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
26963         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
26964         Likewise.
26965         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
26966         Likewise.
26967
26968 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
26969
26970         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
26971         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
26972         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
26973         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
26974
26975 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
26976
26977         [BZ #14518]
26978         * include/rounding-mode.h: New file.
26979         * sysdeps/generic/get-rounding-mode.h: Likewise.
26980         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
26981         * stdlib/strtod_l.c: Include <rounding-mode.h>.
26982         (MAX_VALUE): New macro.
26983         (MIN_VALUE): Likewise.
26984         (overflow_value): New function.
26985         (underflow_value): Likewise.
26986         (round_and_return): Use overflow_value and underflow_value to
26987         determine return values in overflow and underflow cases.  Use
26988         round_away to determine rounding depending on rounding mode.
26989         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
26990         determine return values in overflow and underflow cases.
26991         * stdlib/tst-strtod-round.c: Include <fenv.h>.
26992         (struct test_results): New structure.
26993         (struct test): Use struct test_results to store expected results
26994         for all rounding modes.
26995         (TEST): Include expected results for all rounding modes.
26996         (test_in_one_mode): New function.
26997         (do_test): Use test_in_one_mode to compute and check results.
26998         Check results for all rounding modes.
26999         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27000         $(link-libm).
27001
27002 2012-12-09  Allan McRae  <allan@archlinux.org>
27003
27004         * sysdeps/i386/fpu/libm-test-ulps: Update
27005
27006 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27007
27008         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27009         (_G_int32_t): Likewise.
27010         (_G_uint16_t): Likewise.
27011         (_G_uint32_t): Likewise.
27012         (_G_HAVE_BOOL): Likewise.
27013         (_G_HAVE_ATEXIT): Likewise.
27014         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27015         (_G_HAVE_IO_FILE_OPEN): Likewise.
27016         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27017         (_G_int32_t): Likewise.
27018         (_G_uint16_t): Likewise.
27019         (_G_uint32_t): Likewise.
27020         (_G_HAVE_BOOL): Likewise.
27021         (_G_HAVE_ATEXIT): Likewise.
27022         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27023         (_G_HAVE_IO_FILE_OPEN): Likewise.
27024         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27025         (_G_int32_t): Likewise.
27026         (_G_uint16_t): Likewise.
27027         (_G_uint32_t): Likewise.
27028         (_G_HAVE_BOOL): Likewise.
27029         (_G_HAVE_ATEXIT): Likewise.
27030         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27031         (_G_HAVE_IO_FILE_OPEN): Likewise.
27032
27033 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27034
27035         * csu/libc-tls.c: Update copyright years.
27036
27037 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27038
27039         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27040         [!_G_USING_THUNKS]: Remove conditional code.
27041         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27042         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27043
27044         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27045         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27046         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27047         (_G_VTABLE_LABEL_PREFIX): Likewise.
27048         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27049         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27050         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27051         (_G_VTABLE_LABEL_PREFIX): Likewise.
27052         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27053         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27054         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27055         (_G_VTABLE_LABEL_PREFIX): Likewise.
27056         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27057
27058 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27059
27060         * libio/Makefile: Include ../Makeconfig before tests.
27061         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27062         only if $(build-shared) is yes.
27063
27064         * iconv/gconv_db.c: Update copyright years.
27065
27066 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27067
27068         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27069         unwind info if defined PIC. Fix special cases description.
27070         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27071
27072         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27073         DP_HI_MASK entry.
27074         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27075
27076 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27077
27078         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27079
27080         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27081         is NULL.
27082
27083         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27084         (LDLIBS-tst-chk4): This.
27085         (LDFLAGS-tst-chk5): Renamed to ...
27086         (LDLIBS-tst-chk5): This.
27087         (LDFLAGS-tst-chk6): Renamed to ...
27088         (LDLIBS-tst-chk6): This.
27089         (LDFLAGS-tst-lfschk4): Renamed to ...
27090         (LDLIBS-tst-lfschk4): This.
27091         (LDFLAGS-tst-lfschk5): Renamed to ...
27092         (LDLIBS-tst-lfschk5): This.
27093         (LDFLAGS-tst-lfschk6): Renamed to ...
27094         (LDLIBS-tst-lfschk6): This.
27095
27096         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
27097         on $(common-objpfx)soversions.mk.
27098
27099 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
27100
27101         [BZ #10014]
27102         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
27103         example host name.
27104
27105 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
27106
27107         * malloc/arena.c (arena_get_retry): New function that gets
27108         another arena for the caller to try its request on.
27109         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
27110         current arena cannot fulfill the request.
27111         (__libc_memalign): Likewise.
27112         (__libc_memalign): Likewise.
27113         (__libc_pvalloc): Likewise.
27114         (__libc_calloc): Likewise.
27115
27116 2012-09-05  John Tobey  <john.tobey@gmail.com>
27117
27118         [BZ #13542]
27119         * manual/arith.texi (Operations on Complex): Fix description
27120         of carg branch cut.
27121
27122 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27123
27124         [BZ #10014]
27125         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
27126         host name.
27127
27128         [BZ #10038]
27129         * manual/memory.texi (Memory): Make order of menu items match
27130         order of sections.
27131
27132 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27133
27134         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
27135         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
27136         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
27137
27138 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27139
27140         * csu/libc-tls.c (static_dtv): Renamed to ...
27141         (_dl_static_dtv): This.  Make it global.
27142         (_dl_initial_dtv): Removed.
27143         (__libc_setup_tls): Updated.
27144         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
27145         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
27146         DL_INITIAL_DTV.
27147
27148 2012-09-06  Petr Machata  <pmachata@redhat.com>
27149
27150         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
27151         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
27152         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
27153         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
27154
27155 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27156
27157         [BZ #14545]
27158         * csu/libc-tls.c (_dl_initial_dtv): New variable.
27159         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
27160         freeing dtv[-1].
27161
27162 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27163
27164         [BZ #14544]
27165         * Makeconfig (link-static-before-libc): Replace $(+prector)
27166         with $(+prectorT).
27167         (link-static-after-libc): Replace $(+postctor) with
27168         $(+postctorT).
27169         (link-bounded): Replace $(+prector)/$(+postctor) with
27170         $(+prectorT)/$(+postctorT).
27171         (+prectorT): New macro.
27172         (+postctorT): Likewise.
27173
27174 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27175
27176         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
27177         (round_str): Handle values above the maximum for IBM long double
27178         as inexact.
27179         * stdlib/tst-strtod-round.c (tests): Regenerated.
27180
27181 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27182
27183         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
27184         assembler flag.
27185         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
27186         zarch_nohighgprs around the zarch optimized routines.
27187         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27188         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27189         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
27190         for zarch.
27191
27192 2012-09-05  David S. Miller  <davem@davemloft.net>
27193
27194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27195
27196         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
27197         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
27198         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
27199         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
27200         entries.
27201
27202 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27203
27204         * malloc/arena.c: Fold copyright years.
27205         * malloc/mcheck.c, malloc/memusage.c: Likewise.
27206
27207 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27208
27209         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
27210
27211 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27212
27213         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
27214
27215 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27216
27217         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
27218         change internal state upon failure.
27219
27220 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27221
27222         * malloc/mcheck.c (mcheck_check_all): Fix typo.
27223         * malloc/memusage.c (mmap): Likewise.
27224         (mmap64, mremap): Likewise.  Adjust name in comment.
27225
27226 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27227
27228         * libio/fileops.c: Fix typos in comments.
27229         * libio/oldfileops.c: Likewise.
27230         * libio/wfileops.c: Likewise.
27231
27232 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27233
27234         [BZ #1349]
27235         * malloc/Makefile (tests): Add tst-malloc-usable test case.
27236         (tst-malloc-usable-ENV): Set environment for test case.
27237         * malloc/hooks.c (malloc_check_get_size): New function to get
27238         requested size.
27239         * malloc/malloc.c (musable): Use malloc_check_get_size.
27240         * malloc/tst-malloc-usable.c: New test case.
27241
27242 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27243
27244         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
27245
27246 2012-09-05  Allan McRae  <allan@archlinux.org>
27247
27248         [BZ #13966]
27249         * configure.in (CXX_SYSINCLUDES): Use compiler output to
27250         determine header location.
27251         * configure: Regenerated.
27252
27253 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27254
27255         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
27256         float format.
27257         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
27258         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
27259         format.
27260         (test): Regenerate.
27261
27262 2012-09-04  David S. Miller  <davem@davemloft.net>
27263
27264         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
27265         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
27266         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
27267
27268 2012-09-04  Florian Weimer  <fweimer@redhat.com>
27269
27270         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
27271         failures.
27272
27273         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
27274
27275 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
27276
27277         [BZ #9914]
27278         * libio/iogetdelim.c: Include <limits.h>.
27279         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
27280         + len + 1 would overflow.
27281
27282 2012-09-03  Andreas Jaeger  <aj@suse.de>
27283
27284         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27285         * sysdeps/i386/fpu/libm-test-ulps: Update.
27286
27287 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27288
27289         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27290         Add s_sinf-sse2, s_conf-sse2.
27291
27292         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
27293         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
27294         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
27295         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
27296
27297         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
27298         for using routine as __sinf_ia32.
27299         Use macro for function declaration and weak_alias.
27300         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
27301         for using routine as __cosf_ia32.
27302         Use macro for function declaration and weak_alias.
27303
27304         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
27305         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
27306
27307         * sysdeps/x86_64/fpu/s_sinf.S: New file.
27308         * sysdeps/x86_64/fpu/s_cosf.S: New file.
27309         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27310
27311         * math/libm-test.inc (cos_test): Add more test cases.
27312         (sin_test): Likewise.
27313         (sincos_test): Likewise.
27314
27315 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27316
27317         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27318         (IFUNC_RESOLVE): Make pointers to the specialized implementations
27319         hidden.
27320         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27321
27322 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
27323
27324         [BZ #14538]
27325         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
27326         first element of the GOT.
27327         (elf_machine_load_address): Return the difference between
27328         the runtime address of _DYNAMIC and elf_machine_dynamic ().
27329
27330 2012-09-01  Allan McRae  <allan@archlinux.org>
27331
27332         [BZ #13412]
27333         * configure.in (AWK): Require gawk version 3.0 or later.
27334         * configure: Regenerated.
27335
27336 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
27337
27338         * sysdeps/unix/sysv/linux/kernel-features.h
27339         (__ASSUME_POSIX_CPU_TIMERS): Remove.
27340         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27341         [__NR_clock_getres]: Make code unconditional.
27342         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
27343         (clock_getcpuclockid): Remove code left unreachable by removal of
27344         conditionals.
27345         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
27346         code unconditional.
27347         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27348         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27349         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
27350         Make code unconditional.
27351         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27352         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27353         * sysdeps/unix/sysv/linux/clock_settime.c
27354         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
27355         conditional code.
27356         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
27357         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27358
27359 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
27360
27361         [BZ #14476]
27362         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
27363         scripts/test-installation.pl.
27364
27365         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
27366         and $ld_so_version if it is set.
27367
27368 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
27369
27370         [BZ #14516]
27371         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
27372         failure if reading from procfs failed.
27373         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
27374
27375 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27376
27377         * sysdeps/unix/sysv/linux/kernel-features.h
27378         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
27379         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27380         Remove conditional code.
27381         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27382         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
27383         Remove conditional code.
27384         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27385         * sysdeps/unix/sysv/linux/i386/fxstat.c
27386         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27387         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27388         * sysdeps/unix/sysv/linux/i386/fxstatat.c
27389         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27390         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27391         * sysdeps/unix/sysv/linux/i386/lxstat.c
27392         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27393         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27394         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
27395         Remove conditional code.
27396         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27397         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27398         Remove conditional code.
27399         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27400         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
27401         <kernel-features.h>.
27402         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
27403         Remove.
27404         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
27405         Remove conditional code.
27406         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27407         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
27408         Remove conditional.
27409
27410 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
27411
27412         [BZ #5400]
27413         * NEWS: Add fixed bug number.
27414
27415 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27416
27417         [BZ #14519]
27418         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
27419         underflowing exponent in case of negative sign.
27420         * stdlib/tst-strtod-round-data: Add more tests.
27421         * stdlib/tst-strtod-round.c (tests): Regenerated.
27422
27423         [BZ #3479]
27424         * stdlib/strtod_l.c (NDIG): Remove.
27425         (HEXNDIG): Likewise.
27426         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
27427         smallest representable value.
27428         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
27429         lie within an exact representation of 1/2 ulp of the result.
27430         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
27431         unconditionally.
27432         (TENS_P9_IDX): Define unconditionally.
27433         (TENS_P9_SIZE): Likewise.
27434         (TENS_P10_IDX): Likewise.
27435         (TENS_P10_SIZE): Likewise.
27436         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
27437         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
27438         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
27439         entries for 10^2^13 and 10^2^14.
27440         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
27441         (TENS_P13_IDX): Define.
27442         (TENS_P13_SIZE): Likewise.
27443         (TENS_P14_IDX): Likewise.
27444         (TENS_P14_SIZE): Likewise.
27445         (_fpioconst_pow10): Change array size to
27446         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
27447         unconditional.
27448         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
27449         1024]: Add entries for 10^2^13 and 10^2^14.
27450         [LAST_POW10 > _LAST_POW10]: Remove #error.
27451         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
27452         (_fpioconst_pow10): Change array size to
27453         FPIOCONST_POW10_ARRAY_SIZE.
27454         * stdlib/gen-fpioconst.c: New file.
27455         * stdlib/gen-tst-strtod-round.c: Likewise.
27456         * stdlib/tst-strtod-round-data: Likewise.
27457         * stdlib/tst-strtod-round.c: Likewise.
27458         * stdlib/Makefile (tests): Add tst-strtod-round.
27459
27460         [BZ #14459]
27461         * stdlib/strtod_l.c: Include <stdint.h>.
27462         (NDEBUG): Do not define.
27463         (round_and_return): Change EXPONENT parameter to type intmax_t.
27464         Rearrange calculations to avoid internal overflow possibilities.
27465         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
27466         Rearrange calculations to avoid internal overflow possibilities.
27467         Assert that number fits inside MPNSIZE limbs.
27468         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
27469         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
27470         calculations and add assertions to avoid internal overflow
27471         possibilities.  Add casts to avoid signed/unsigned operations.
27472         * stdlib/tst-strtod-overflow.c: New file.
27473         * stdlib/Makefile (tests): Add tst-strtod-overflow.
27474
27475 2012-08-25  Marek Polacek  <polacek@redhat.com>
27476
27477         * time/time.h: Fix some typos in comments.
27478
27479 2012-08-23  Roland McGrath  <roland@hack.frob.com>
27480
27481         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
27482         * posix/tst-rfc3484-2.c: Likewise.
27483         * posix/tst-rfc3484-3.c: Likewise.
27484
27485 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
27486
27487         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
27488         (EF_ARM_ABI_FLOAT_HARD): Likewise.
27489
27490 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
27491
27492         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
27493         #include of fxstatat64.c.
27494
27495 2012-08-22  Roland McGrath  <roland@hack.frob.com>
27496
27497         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
27498         * shadow/getspent_r.c: Likewise.
27499         * shadow/getspnam.c: Likewise.
27500         * shadow/getspnam_r.c: Likewise.
27501         * gshadow/getsgent.c: Likewise.
27502         * gshadow/getsgent_r.c: Likewise.
27503         * gshadow/getsgnam.c: Likewise.
27504         * gshadow/getsgnam_r.c: Likewise.
27505         * inet/getnetbyad.c: Likewise.
27506         * inet/getnetbyad_r.c: Likewise.
27507         * inet/getnetbynm.c: Likewise.
27508         * inet/getnetbynm_r.c: Likewise.
27509         * inet/getnetent.c: Likewise.
27510         * inet/getnetent_r.c: Likewise.
27511         * inet/getproto.c: Likewise.
27512         * inet/getproto_r.c: Likewise.
27513         * inet/getprtent.c: Likewise.
27514         * inet/getprtent_r.c: Likewise.
27515         * inet/getprtname.c: Likewise.
27516         * inet/getprtname_r.c: Likewise.
27517         * inet/getrpcbyname.c: Likewise.
27518         * inet/getrpcbyname_r.c: Likewise.
27519         * inet/getrpcbynumber.c: Likewise.
27520         * inet/getrpcbynumber_r.c: Likewise.
27521         * inet/getrpcent.c: Likewise.
27522         * inet/getrpcent_r.c: Likewise.
27523         * inet/getaliasent.c: Likewise.
27524         * inet/getaliasent_r.c: Likewise.
27525         * inet/getaliasname.c: Likewise.
27526         * inet/getaliasname_r.c: Likewise.
27527         * nscd/getgrgid_r.c: Likewise.
27528         * nscd/getgrnam_r.c: Likewise.
27529         * nscd/gethstbyad_r.c: Likewise.
27530         * nscd/gethstbynm3_r.c: Likewise.
27531         * nscd/getpwnam_r.c: Likewise.
27532         * nscd/getpwuid_r.c: Likewise.
27533         * nscd/getsrvbynm_r.c: Likewise.
27534         * nscd/getsrvbypt_r.c: Likewise.
27535         * nscd/gai.c: Likewise.
27536
27537         * configure.in (build_nscd): New substituted variable, set
27538         by --disable-build-nscd and defaults to $use_nscd.
27539         * configure: Regenerated.
27540         * config.make.in (build-nscd): New substituted variable.
27541         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
27542         Change conditional to require [$(build-nscd) = yes] as well.
27543         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
27544
27545         [BZ# 13696]
27546         * configure.in (use_nscd): New substituted variable, set by
27547         --disable-nscd.  If enabled, define USE_NSCD.
27548         * configure: Regenerated.
27549         * config.h.in: Add USE_NSCD.
27550         * config.make.in (use-nscd): New substituted variable.
27551         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
27552         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
27553         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
27554         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
27555         (CFLAGS-getgrnam_r.c): Likewise.
27556         (CFLAGS-initgroups.c): Likewise.
27557         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
27558         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
27559         Variables removed.
27560         * inet/getnetgrent_r.c
27561         (nscd_setnetgrent): New function, broken out of ...
27562         (setnetgrent): ... here.  Call it.
27563         (innetgr): Conditionalize nscd bits on [USE_NSCD].
27564         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
27565         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
27566         * nscd/Makefile (routines, aux): Move definitions after include of
27567         Makeconfig.  Conditionalize on [$(use-nscd) != no].
27568         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
27569         Conditionalize on [USE_NSCD].
27570         (is_nscd, nscd_init_cb): Likewise.
27571         (nss_load_library): Conditionalize init callback on [USE_NSCD].
27572         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
27573         * nss/nss_db/db-init.c: Likewise.
27574         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
27575         [USE_NSCD].
27576         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
27577         (make_request): Use it.
27578         (cache_valid_p): New function.
27579         (__check_pf): Use it.
27580         * NEWS: Add item for --disable-nscd.
27581
27582 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
27583
27584         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
27585         to support sed >= 4.2.1-20-ga9bf076.
27586         * configure: Regenerated.
27587
27588 2012-08-22  Roland McGrath  <roland@hack.frob.com>
27589
27590         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
27591         Conditionalize whole body on [IREL].
27592
27593 2012-08-22  Jeff Law <law@redhat.com>
27594
27595         [BZ #14505]
27596         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
27597         if the family is PF_UNSPEC.
27598
27599 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
27600
27601         * Makerules (lib-version): Rename from V.
27602         (install-lib-nosubdir): Change V to lib-version.
27603
27604 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
27605
27606         [BZ #14252]
27607         * powerpc32/power6/wcschr.c: New file.
27608         * powerpc32/power6/wcscpy.c: New file.
27609         * powerpc32/power6/wcsrchr.c: New file.
27610         * powerpc64/power6/wcschr.c: New file.
27611         * powerpc64/power6/wcscpy.c: New file.
27612         * powerpc64/power6/wcsrchr.c: New file.
27613
27614 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
27615
27616         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
27617         (two_way_short_needle): Use it.
27618         * string/strstr.c (AVAILABLE1_USES_J): Define.
27619         * string/strcasestr.c: Likewise.
27620
27621         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
27622         array references.
27623         * string/strcasestr.c (TOLOWER): Make side-effect safe.
27624
27625         [BZ #11607]
27626         * NEWS: Add an entry.
27627         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
27628         define their defaults.
27629         (two_way_short_needle): Detect end-of-string on-the-fly.
27630         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
27631         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
27632         * string/bug-strcasestr1.c: New test.
27633         * string/Makefile: Run it.
27634
27635 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
27636
27637         [BZ #11607]
27638         * string/str-two-way.h (two_way_short_needle): Optimize matching of
27639         the first character.
27640
27641 2012-08-21  Roland McGrath  <roland@hack.frob.com>
27642
27643         * csu/elf-init.c (__libc_csu_irel): Function removed.
27644         * csu/libc-start.c (apply_irel): New function.
27645         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
27646
27647 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
27648
27649         * sysdeps/unix/sysv/linux/kernel-features.h
27650         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
27651         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
27652         <kernel-features.h>.
27653         [__NR_fadvise64_64]: Make code unconditional.
27654         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
27655         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
27656         !__NR_fadvise64_64)]: Likewise.
27657         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
27658         !__NR_fadvise64_64))]: Likewise.
27659         [__NR_fadvise64]: Make code unconditional.
27660         [!__NR_fadvise64]: Remove conditional code.
27661         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
27662         <kernel-features.h>.
27663         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27664         unconditional.
27665         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27666         conditional code.
27667         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
27668         not include <kernel-features.h>.
27669         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27670         unconditional.
27671         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27672         conditional code.
27673         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
27674         include <kernel-features.h>.
27675         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27676         unconditional.
27677         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27678         conditional code.
27679
27680 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27681
27682         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
27683         slight instruction rearrangements per scrollpipe analysis.
27684         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
27685
27686 2012-08-20  Roland McGrath  <roland@hack.frob.com>
27687
27688         * manual/syslog.texi (syslog; vsyslog, closelog):
27689         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
27690         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
27691
27692         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
27693         DSOCAPS to match condition on defining it.
27694
27695 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
27696
27697         * sysdeps/unix/sysv/linux/kernel-features.h
27698         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
27699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
27700         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27701         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27702         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
27703         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27704         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
27706         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27707         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27708
27709         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
27710         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
27711
27712         * sysdeps/unix/sysv/linux/kernel-features.h
27713         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
27714         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
27715         unconditional.
27716         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27717         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
27718         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
27719         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27720         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
27721         Make code unconditional.
27722         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27723         (__mmap64) [!__NR_mmap2]: Likewise.
27724         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
27725         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
27726         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27727         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
27728         [__NR_mmap2]: Make code unconditional.
27729         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27730         (__mmap64) [!__NR_mmap2]: Likewise.
27731
27732 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27733
27734         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
27735
27736 2012-08-18  Andreas Jaeger  <aj@suse.de>
27737
27738         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
27739
27740 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
27741
27742         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
27743         * include/unistd.h (__have_sock_cloexec): Likewise.
27744         (__have_pipe2): Likewise.
27745         (__have_dup3): Likewise.
27746
27747 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
27748
27749         [BZ #9685]
27750         * include/unistd.h (__have_pipe2): Change define into an extern int.
27751         (__have_dup3): Likewise.
27752         * socket/have_sock_cloexec.c: Include fcntl.h.
27753         (__have_pipe2): New variable.
27754         (__have_dup3): Likewise.
27755
27756 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
27757
27758         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
27759
27760 2012-08-17  Marek Polacek  <polacek@redhat.com>
27761
27762         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
27763         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
27764
27765 2012-08-17  Roland McGrath  <roland@hack.frob.com>
27766
27767         * configure.in: Add AC_SUBST for sysheaders.
27768         * configure: Regenerated.
27769         * config.make.in (sysheaders): New substituted variable.
27770
27771         * sysdeps/unix/mkfifo.c: Moved ...
27772         * sysdeps/posix/mkfifo.c: ... here.
27773         * sysdeps/unix/mkfifoat.c: Moved ...
27774         * sysdeps/posix/mkfifoat.c: ... here.
27775
27776         * sysdeps/unix/utime.c: Moved ...
27777         * sysdeps/posix/utime.c: ... here.
27778
27779         * sysdeps/unix/time.c: Moved ...
27780         * sysdeps/posix/time.c: ... here.
27781         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
27782         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
27783
27784         * sysdeps/unix/nice.c: Moved ...
27785         * sysdeps/posix/nice.c: ... here.
27786
27787         * sysdeps/unix/alarm.c: Moved ...
27788         * sysdeps/posix/alarm.c: ... here.
27789
27790         * intl/Makefile ($(codeset_mo)): Depend on the input file.
27791
27792 2012-08-17  Jeff Law <law@redhat.com>
27793
27794         * intl/Makefile (codeset_mo): New variable.
27795         ($(codeset_mo)): New target.
27796         (tst-codeset.out): Depend on that.  Remove explicit rule.
27797         (tst-gettext3.out, tst-gettext5.out): Likewise.
27798         (LOCPATH-ENV, tst-codeset-ENV): New variables.
27799         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
27800         * intl/tst-codeset.sh: Remove.
27801         * intl/tst-gettext3.sh: Likewise.
27802         * intl/tst-gettext5.sh: Likewise.
27803
27804 2012-08-17  Roland McGrath  <roland@hack.frob.com>
27805
27806         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
27807         * sysdeps/unix/syscalls.list: ... here.
27808
27809         * sysdeps/posix/getaddrinfo.c
27810         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
27811         (gaiconf_init, gaiconf_reload): Use them.
27812         [!_STATBUF_ST_NSEC]
27813         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
27814         Define using time_t rather than struct timespec.
27815
27816         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
27817         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
27818         Macros removed.
27819         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
27820         [!NO_THREADS].
27821         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
27822         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
27823         Likewise.
27824
27825         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
27826         __libc_cleanup_push argument.
27827
27828         * bits/param.h: New file.
27829         * misc/sys/param.h: New file.
27830         * include/sys/param.h: New file.
27831         * misc/Makefile (headers): Add bits/param.h.
27832         * sysdeps/generic/sys/param.h: File removed.
27833         * sysdeps/unix/sysv/linux/bits/param.h: New file.
27834         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
27835         * sysdeps/mach/hurd/bits/param.h: New file.
27836         * sysdeps/mach/hurd/sys/param.h: File removed.
27837
27838         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
27839         last change.
27840
27841         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
27842         [_IO_MTSAFE_IO].
27843         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
27844         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
27845         New macros.
27846
27847         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
27848         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
27849         rather than -D_IO_MTSAFE_IO conditionally.
27850         * stdio-common/Makefile (CPPFLAGS): Likewise.
27851         * wcsmbs/Makefile (CPPFLAGS): Likewise.
27852         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
27853         Use $(libio-mtsafe).
27854         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
27855         of -D_IO_MTSAFE_IO.
27856         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
27857         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
27858         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
27859         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
27860         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
27861         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
27862         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
27863         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
27864         (CFLAGS-fread_u_chk.c): Likewise.
27865         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
27866         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
27867         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
27868         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
27869         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
27870         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
27871         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
27872         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
27873         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
27874
27875         * libio/Makefile: Test [$(libc-reentrant) = yes]
27876         instead of [$(filter %REENTRANT, $(defines)) nonempty].
27877
27878         * Makeconfig
27879         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
27880         * sysdeps/pthread/configure: File removed.
27881         * sysdeps/pthread/Makeconfig: New file.
27882         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
27883         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
27884
27885 2012-08-16  Gary Benson  <gbenson@redhat.com>
27886
27887         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
27888         unmapping the first object in a namespace.
27889
27890 2012-08-16  Roland McGrath  <roland@hack.frob.com>
27891
27892         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
27893         (__internal_setnetgrent): ... this.  Add internal_function to
27894         definition.  Add libc_hidden_def.
27895         (setnetgrent): Update caller.
27896         (internal_endnetgrent): Renamed to ...
27897         (__internal_endnetgrent): ... this.  Add internal_function to
27898         definition.  Add libc_hidden_def.
27899         (endnetgrent): Update caller.
27900         (internal_getnetgrent_r): Renamed to ...
27901         (__internal_getnetgrent_r): ... this.  Add internal_function to
27902         definition.  Add libc_hidden_def.
27903         (__getnetgrent_r): Update caller.
27904         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
27905
27906 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
27907
27908         * stdlib/longlong.h: Update from GCC.
27909
27910 2012-08-16  Roland McGrath  <roland@hack.frob.com>
27911
27912         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
27913         on _QL, which is set by umul_ppmm but never used.
27914         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
27915         variables, which are set by GMP macros but never used.
27916         * stdio-common/_itowa.c (_itowa): Likewise.
27917         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
27918         * stdlib/mod_1.c (mpn_mod_1): Likewise.
27919
27920 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
27921
27922         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
27923         struct La_sh_regs is not constant.
27924         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
27925         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
27926         and struct La_sparc64_regs are not constant.
27927
27928 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
27929
27930         * sysdeps/unix/sysv/linux/kernel-features.h
27931         (__ASSUME_POSIX_TIMERS): Remove.
27932         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27933         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27934         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
27935         Make code unconditional.
27936         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27937         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
27938         Make code unconditional.
27939         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27940         * sysdeps/unix/sysv/linux/clock_nanosleep.c
27941         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
27942         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27943         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
27944         Make code unconditional.
27945         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
27946         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
27947         (__libc_missing_posix_timers): Remove.
27948
27949 2012-08-15  Roland McGrath  <roland@hack.frob.com>
27950
27951         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
27952         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
27953
27954         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
27955
27956         * elf/dl-sym.c: Include <stdlib.h>.
27957
27958         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
27959         constants, which avoids warnings in 32-bit builds.
27960
27961         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
27962         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
27963
27964         * misc/lseek.c: File moved to ...
27965         * io/lseek.c: ... here.
27966
27967         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
27968
27969         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
27970         shifting LEN more than 31 bits at once.
27971
27972 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27973
27974         [BZ #14195]
27975         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
27976         segmentation fault for a case of two empty input strings.
27977         * string/test-strncasecmp.c (check1): Renamed to...
27978         (bz12205): ...this.
27979         (bz14195): Add new testcase for two empty input strings and N > 0.
27980         (test_main): Call new testcase, adapt for renamed function.
27981
27982 2012-08-15  Andreas Jaeger  <aj@suse.de>
27983
27984         [BZ #14090]
27985         * crypt/md5test2.c: New test, based on test supplied by Serge
27986         Belyshev <belyshev@depni.sinp.msu.ru>.
27987         * crypt/Makefile (xtests): Add md5test-giant..
27988         * crypt/Makefile ($(objpfx)md5test-giant): Add.
27989
27990 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
27991
27992         [BZ #14090]
27993         * crypt/md5.c (md5_process_block): Don't assume the buffer
27994         length is less than 2**32.
27995         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
27996         length is less than 2**64.
27997
27998 2012-08-15  Roland McGrath  <roland@hack.frob.com>
27999
28000         * string/str-two-way.h: Include <sys/param.h>.
28001         (MAX): Macro removed.
28002
28003         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28004         Move #define and #undef of memmove to just before and after
28005         including <string.h>.
28006
28007         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28008         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28009         and after including <string.h>.  Move declarations of
28010         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28011         to before #include "string/memmove.c".
28012
28013         * include/dirent.h: Declare __getdirentries.
28014
28015         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28016         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28017
28018 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28019
28020         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28021         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28022         * sysdeps/i386/configure: Regenerated.
28023         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28024         STABS_CURRENT_FILE, and STABS_FUN.
28025         (END): Remove call to STABS_FUN_END.
28026         (STABS_CURRENT_FILE1): Delete.
28027         (STABS_CURRENT_FILE): Likewise.
28028         (STABS_FUN): Likewise.
28029         (STABS_FUN_END): Likewise.
28030         (STABS_FUN2): Likewise.
28031         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28032         * sysdeps/x86_64/configure: Regenerated.
28033
28034 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28035
28036         * elf/dl-open.c: Include <atomic.h>.
28037         * elf/dl-lookup.c: Likewise.
28038
28039 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28040
28041         * sysdeps/unix/sysv/linux/kernel-features.h
28042         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28043         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28044         unconditionally.
28045         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28046         unconditionally.
28047         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28048         condition on __ASSUME_CLONE_THREAD_FLAGS.
28049
28050 2012-08-14  Andreas Jaeger  <aj@suse.de>
28051
28052         * sysdeps/i386/fpu/libm-test-ulps: Update.
28053
28054 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28055
28056         * include/atomic.h (atomic_exchange_and_add): Split into ...
28057         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28058         New atomic macros.
28059
28060 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28061
28062         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28063
28064 2012-08-13  Jeff Law <law@redhat.com>
28065
28066         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28067         null byte in the output string.
28068
28069 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28070
28071         * sysdeps/unix/sysv/linux/kernel-features.h
28072         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28073         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28074         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28075         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28076         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28077         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28078         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28079
28080 2012-08-09  Jeff Law <law@redhat.com>
28081
28082         [BZ #13939]
28083         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28084         When avoid_arena is set, don't retry in the that arena.  Pick the
28085         next one, whatever it might be.
28086         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28087         (arena_lock): Pass in new parameter to arena_get2.
28088         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28089         arena_get2.
28090         (__libc_malloc): Unify retrying after main arena failure with
28091         __libc_memalign version.
28092         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
28093
28094 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28095
28096         [BZ #14166]
28097         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
28098         to __redirect_strstr.
28099         (__strstr_sse42): Use typeof __redirect_strstr.
28100         (__strstr_ia32): Likewise.
28101         (__libc_strstr): New prototype.
28102         (strstr): Renamed to ...
28103         (__libc_strstr): This.
28104         (strstr): New strong alias of __libc_strstr.
28105         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
28106         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
28107         __redirect_time.
28108         Include <time.h>.
28109         (__libc_time): New prototype.
28110         (time_ifunc): Replace time with __libc_time.
28111         (time): New strong alias and hidden definition of __libc_time.
28112         (__GI_time): Remove strong alias.
28113         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
28114         Include <stddef.h>.
28115         (memmove): Redefined to __redirect_memmove.
28116         (__memmove_sse2): Use typeof __redirect_memmove.
28117         (__memmove_ssse3): Likewise.
28118         (__memmove_ssse3_back): Likewise.
28119         (__libc_memmove): New prototype.
28120         (memmove): Renamed to ...
28121         (__libc_memmove): This.
28122         (memmove): New strong alias of __libc_memmove.
28123
28124 2012-08-08  Mark Salter  <msalter@redhat.com>
28125
28126         * elf/elf.h
28127         (R_MN10300_TLS_GD): Define.
28128         (R_MN10300_TLS_LD): Likewise.
28129         (R_MN10300_TLS_LDO): Likewise.
28130         (R_MN10300_TLS_GOTIE): Likewise.
28131         (R_MN10300_TLS_IE): Likewise.
28132         (R_MN10300_TLS_LE): Likewise.
28133         (R_MN10300_TLS_DTPMOD): Likewise.
28134         (R_MN10300_TLS_DTPOFF): Likewise.
28135         (R_MN10300_TLS_TPOFF): Likewise.
28136         (R_MN10300_SYM_DIFF): Likewise.
28137         (R_MN10300_ALIGN): Likewise.
28138         (R_MN10300_NUM): Update.
28139
28140 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
28141
28142         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
28143         Remove.
28144
28145 2012-08-08  Roland McGrath  <roland@hack.frob.com>
28146
28147         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
28148
28149         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
28150         sysdeps/unix -> sysdeps/posix move.
28151         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28152
28153 2012-08-07      Allan McRae     <allan@archlinux.org>
28154
28155         [BZ #14303]
28156         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
28157         (SUNOS_CPP): Likewise.
28158         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
28159         not found.
28160         (open_input): Call CPP using execvp.
28161
28162 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28163
28164         * sysdeps/unix/sysv/linux/kernel-features.h
28165         (__ASSUME_PROT_GROWSUPDOWN): Remove.
28166         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28167         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28168         (__ASSUME_WAITID_SYSCALL): Likewise.
28169         * sysdeps/unix/sysv/linux/dl-execstack.c
28170         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
28171         code unconditional.
28172         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
28173         conditional code.
28174         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
28175         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
28176         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
28177         code.
28178         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
28179         unconditional.
28180         [__ASSUME_WAITID_SYSCALL]: Likewise.
28181         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
28182
28183 2012-08-07  Roland McGrath  <roland@hack.frob.com>
28184
28185         * sysdeps/unix/closedir.c: Renamed to ...
28186         * sysdeps/posix/closedir.c: ... here.
28187         * sysdeps/unix/dirfd.c: Renamed to ...
28188         * sysdeps/posix/dirfd.c: ... here.
28189         * sysdeps/unix/dirstream.h: Renamed to ...
28190         * sysdeps/posix/dirstream.h: ... here.
28191         * sysdeps/unix/fdopendir.c: Renamed to ...
28192         * sysdeps/posix/fdopendir.c: ... here.
28193         * sysdeps/unix/opendir.c: Renamed to ...
28194         * sysdeps/posix/opendir.c: ... here.
28195         * sysdeps/unix/readdir.c: Renamed to ...
28196         * sysdeps/posix/readdir.c: ... here.
28197         * sysdeps/unix/readdir_r.c: Renamed to ...
28198         * sysdeps/posix/readdir_r.c: ... here.
28199         * sysdeps/unix/rewinddir.c: Renamed to ...
28200         * sysdeps/posix/rewinddir.c: ... here.
28201         * sysdeps/unix/seekdir.c: Renamed to ...
28202         * sysdeps/posix/seekdir.c: ... here.
28203         * sysdeps/unix/telldir.c: Renamed to ...
28204         * sysdeps/posix/telldir.c: ... here.
28205         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
28206         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
28207         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28208         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
28209
28210         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
28211         * bits/fcntl.h: ... here.
28212
28213         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
28214         not 0.
28215         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
28216         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
28217         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
28218         (struct flock): Move l_start, l_len to the beginning.
28219         Use __pid_t for l_pid.
28220         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
28221         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
28222         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
28223         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
28224         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
28225         [__USE_LARGEFILE64] (struct flock64): New type.
28226         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
28227
28228         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
28229         * bits/dirent.h: ... here.
28230
28231         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
28232         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
28233
28234 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28235
28236         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28237         Change from 2.6.0 to 2.6.16.
28238         * sysdeps/unix/sysv/linux/configure: Regenerated.
28239         * sysdeps/unix/sysv/linux/kernel-features.h
28240         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
28241         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
28242         version.
28243         (__ASSUME_UTIMES): Likewise.
28244         (__ASSUME_CLONE_STOPPED): Remove.
28245         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
28246         architectures, not kernel version.
28247         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
28248         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28249         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28250         (__ASSUME_WAITID_SYSCALL): Likewise.
28251         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
28252         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
28253         * README: State 2.6.16 as minimum Linux kernel version.  Do not
28254         refer to older versions.
28255
28256 2012-08-06  Roland McGrath  <roland@hack.frob.com>
28257
28258         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
28259         Define alphasort64 as an alias.
28260         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
28261         Define versionsort64 as an alias.
28262         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
28263         Define scandir64 as an alias.
28264         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
28265         Define scandirat64 as an alias.
28266         * dirent/alphasort64.c (alphasort64):
28267         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
28268         * dirent/versionsort64.c: Likewise.
28269         * dirent/scandir64.c: Likewise.
28270         * dirent/scandirat64.c: Likewise.
28271         * sysdeps/wordsize-64/alphasort.c: File removed.
28272         * sysdeps/wordsize-64/alphasort64.c: File removed.
28273         * sysdeps/wordsize-64/scandir.c: File removed.
28274         * sysdeps/wordsize-64/scandir64.c: File removed.
28275         * sysdeps/wordsize-64/scandirat.c: File removed.
28276         * sysdeps/wordsize-64/scandirat64.c: File removed.
28277         * sysdeps/wordsize-64/versionsort.c: File removed.
28278         * sysdeps/wordsize-64/versionsort64.c: File removed.
28279         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
28280         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
28281         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
28282         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
28283         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
28284         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
28285         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
28286         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
28287
28288         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
28289         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28290         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
28291         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28292         [defined __arch64__ || defined __sparcv9]
28293         (__INO_T_MATCHES_INO64_T): New macro.
28294         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28295         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
28296         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
28297         * sysdeps/unix/sysv/linux/bits/dirent.h
28298         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
28299         (_DIRENT_MATCHES_DIRENT64): New macro.
28300
28301         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
28302         Define lockf64 as an alias.
28303         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
28304         Define fseeko64 as an alias.
28305         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
28306         Define ftello64 as an alias.
28307         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
28308         Define _IO_fgetpos64 and fgetpos64 as aliases.
28309         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
28310         Define _IO_fsetpos64 and fsetpos64 as aliases.
28311         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
28312         Conditionalize body on this.
28313         * libio/fseeko64.c: Likewise.
28314         * libio/ftello64.c: Likewise.
28315         * libio/iofgetpos64.c: Likewise.
28316         * libio/iofsetpos64.c: Likewise.
28317         * sysdeps/wordsize-64/lockf.c: File removed.
28318         * sysdeps/wordsize-64/lockf64.c: File removed.
28319         * sysdeps/wordsize-64/fseeko.c: File removed.
28320         * sysdeps/wordsize-64/fseeko64.c: File removed.
28321         * sysdeps/wordsize-64/ftello.c: File removed.
28322         * sysdeps/wordsize-64/ftello64.c: File removed.
28323         * sysdeps/wordsize-64/iofgetpos.c: File removed.
28324         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
28325         * sysdeps/wordsize-64/iofsetpos.c: File removed.
28326         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
28327         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
28328         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
28329         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
28330         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
28331         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
28332         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
28333         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
28334         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
28335         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
28336         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
28337
28338         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28339         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28340         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
28341         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28342         [defined __arch64__ || defined __sparcv9]
28343         (__OFF_T_MATCHES_OFF64_T): New macro.
28344         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28345         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28346         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28347         (__OFF_T_MATCHES_OFF64_T): New macro.
28348
28349 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28350
28351         * stdlib/secure-getenv.c (__secure_getenv): Replace
28352         GLIBC_2_16 with GLIBC_2_17.
28353
28354 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28355
28356         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
28357         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
28358
28359 2012-08-03  David S. Miller  <davem@davemloft.net>
28360
28361         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28362
28363 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28364
28365         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
28366         Remove.
28367         (__ASSUME_CORRECT_SI_PID): Likewise.
28368         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
28369         (__ASSUME_TMPFS_NAME): Likewise.
28370         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
28371         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
28372         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
28373         (HAVE_AUX_SECURE): Make definition unconditional.
28374         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
28375         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
28376
28377 2012-08-03  Roland McGrath  <roland@hack.frob.com>
28378
28379         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
28380         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
28381         * sysdeps/mach/hurd/eloop-threshold.h: New file.
28382         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
28383         __eloop_threshold instead of SYMLOOP_MAX.
28384
28385         * sysdeps/generic/eloop-threshold.h: New file.
28386         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
28387         of MAXSYMLINKS.
28388         * elf/chroot_canon.c (chroot_canon): Likewise.
28389
28390 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28391
28392         [BZ #13717]
28393         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28394         Change to 2.6.0 everywhere.
28395         * sysdeps/unix/sysv/linux/configure: Regenerated.
28396         * sysdeps/unix/sysv/linux/kernel-features.h
28397         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
28398         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
28399         kernel versions.
28400         (__ASSUME_POSIX_TIMERS): Define unconditionally.
28401         (__ASSUME_FUTEX_REQUEUE): Remove.
28402         (__ASSUME_STATFS64): Define unconditionally.
28403         (__ASSUME_AT_SECURE): Likewise.
28404         (__ASSUME_CORRECT_SI_PID): Likewise.
28405         (__ASSUME_TGKILL): Define without depending on kernel version for
28406         i386.
28407         (__ASSUME_UTIMES): Likewise.
28408         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
28409         kernel version.
28410         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
28411         (__ASSUME_TMPFS_NAME): Likewise.
28412         * README: Update reference to Linux kernel versions.
28413
28414 2012-08-02  Marek Polacek  <polacek@redhat.com>
28415
28416         [BZ# 14150]
28417         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
28418         libc_cv_asm_type_prefix with %.
28419         * configure: Regenerated.
28420         * include/libc-symbols.h: Remove comment about
28421         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28422         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
28423         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
28424         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
28425         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
28426         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28427         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
28428         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
28429         * elf/tst-unique2mod1.c: Likewise.
28430         * elf/tst-unique1mod2.c: Likewise.
28431         * elf/tst-unique1mod1.c: Likewise.
28432         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
28433         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
28434         Replace ASM_TYPE_DIRECTIVE with .type.
28435         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28436         * sysdeps/i386/sysdep.h: Likewise.
28437         * sysdeps/x86_64/sysdep.h: Likewise.
28438         * sysdeps/sh/sysdep.h: Likewise.
28439         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28440         Do not define ASM_TYPE_DIRECTIVE.
28441         * sysdeps/powerpc/sysdep.h: Likewise.
28442         * sysdeps/powerpc/powerpc32/sysdep.h:
28443         Replace ASM_TYPE_DIRECTIVE with .type.
28444         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
28445         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
28446         * sysdeps/i386/fpu/e_powf.S: Likewise.
28447         * sysdeps/i386/fpu/e_expl.S: Likewise.
28448         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28449         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28450         * sysdeps/i386/fpu/e_pow.S: Likewise.
28451         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
28452         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28453         * sysdeps/i386/fpu/s_expm1.S: Likewise.
28454         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
28455         * sysdeps/i386/fpu/e_log2.S: Likewise.
28456         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28457         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28458         * sysdeps/i386/fpu/e_powl.S: Likewise.
28459         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28460         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
28461         * sysdeps/i386/fpu/e_logl.S: Likewise.
28462         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
28463         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
28464         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
28465         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28466         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
28467         * sysdeps/i386/fpu/e_log.S: Likewise.
28468         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28469         * sysdeps/i386/fpu/e_logf.S: Likewise.
28470         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28471         * sysdeps/i386/fpu/e_atanh.S: Likewise.
28472         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
28473         * sysdeps/i386/fpu/e_log10.S: Likewise.
28474         * sysdeps/i386/fpu/s_frexp.S: Likewise.
28475         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
28476         * sysdeps/i386/fpu/s_asinh.S: Likewise.
28477         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
28478         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28479         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
28480         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
28481         * sysdeps/i386/i686/strtok.S: Likewise.
28482         * sysdeps/i386/i386-mcount.S: Likewise.
28483         * sysdeps/i386/strtok.S: Likewise.
28484         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
28485         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
28486         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
28487         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
28488         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28489         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
28490         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
28491         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
28492         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
28493         * sysdeps/x86_64/_mcount.S: Likewise.
28494         * sysdeps/x86_64/strtok.S: Likewise.
28495         * sysdeps/sh/_mcount.S: Likewise.
28496
28497 2012-08-01  Roland McGrath  <roland@hack.frob.com>
28498
28499         * libio/iofopen.c: Include <fcntl.h>.
28500         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
28501         (_IO_fopen64, fopen64): Define as aliases.
28502         * libio/iofopen64.c: Include <fcntl.h>.
28503         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
28504         Conditionalize body on this.
28505         * sysdeps/wordsize-64/iofopen.c: File removed.
28506         * sysdeps/wordsize-64/iofopen64.c: File removed.
28507
28508 2012-08-01  Marek Polacek  <polacek@redhat.com>
28509
28510         * libc/Makeconfig: Use elf in place of binfmt-subdir.
28511         Use dlfcn directly instead of a variable.
28512         (binfmt-subdir): Do not define.
28513         (dlfcn): Likewise.
28514
28515 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
28516
28517         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
28518         Remove all definitions.
28519         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
28520         <kernel-features.h>.
28521         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
28522         (miss_F_GETOWN_EX): Remove all definitions.
28523         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
28524         macro definition.
28525         [!__ASSUME_FCNTL64]: Remove conditional code.
28526         [__ASSUME_FCNTL64]: Make code unconditional.
28527         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
28528         <kernel-features.h>.
28529         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
28530         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
28531         (lockf64) [__NR_fcntl64]: Make code unconditional.
28532         (lockf64) [__ASSUME_FCNTL64]: Likewise.
28533
28534         * sysdeps/unix/sysv/linux/kernel-features.h
28535         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
28536         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
28537         Make code unconditional.
28538         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28539         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
28541         [__NR_vfork]: Make code unconditional.
28542         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28543         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
28545         [__NR_vfork]: Make code unconditional.
28546         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28547         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28548
28549 2012-08-01  Roland McGrath  <roland@hack.frob.com>
28550
28551         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
28552         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
28553
28554         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28555         Define mkstemp64 as an alias.
28556         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28557         Define mkstemps64 as an alias.
28558         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28559         Define mkostemp64 as an alias.
28560         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28561         Define mkostemps64 as an alias.
28562         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
28563         Conditionalize body on this.
28564         * misc/mkostemp64.c: Likewise.
28565         * misc/mkostemps64.c: Likewise.
28566         * misc/mkstemps64.c: Likewise.
28567         * sysdeps/wordsize-64/mkstemp64.c: File removed.
28568         * sysdeps/wordsize-64/mkostemp64.c: File removed.
28569         * sysdeps/wordsize-64/mkostemp.c: File removed.
28570         * sysdeps/wordsize-64/mkstemp.c: File removed.
28571         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
28572         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
28573         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
28574         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
28575
28576         [BZ #14138]
28577         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
28578         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
28579         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
28580         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
28581
28582         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
28583         compat_symbol macros from <shlib-compat.h> rather than the underlying
28584         default_symbol_version and symbol_version macros, so that DEFAULT
28585         lines in shlib-versions are respected.
28586         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
28587
28588 2012-08-01  Florian Weimer  <fweimer@redhat.com>
28589
28590         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
28591         Declare with warn_unused_result.
28592         (setgid, setregid, setegid, setresgid): Likewise.
28593         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
28594         Likewise.
28595         * WUR-REPORT: Remove set*id functions.
28596
28597 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
28598
28599         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
28600
28601 2012-07-31  Roland McGrath  <roland@hack.frob.com>
28602
28603         [BZ #10191]
28604         * include/sys/socket.h (__libc_accept, __libc_accept4):
28605         Add attribute_hidden.
28606         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
28607
28608         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
28609         use of PTR_MANGLE.
28610         * inet/getnetgrent_r.c (setup): Likewise.
28611
28612         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
28613
28614 2012-07-31  David S. Miller  <davem@davemloft.net>
28615
28616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28617
28618 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
28619
28620         [BZ #13629]
28621         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
28622         value between 1.0 and 2.0 and smaller part has absolute value less
28623         than 1.0.
28624         * math/s_clog10.c (__clog10): Likewise.
28625         * math/s_clog10f.c (__clog10f): Likewise.
28626         * math/s_clog10l.c (__clog10l): Likewise.
28627         * math/s_clogf.c (__clogf): Likewise.
28628         * math/s_clogl.c (__clogl): Likewise.
28629         * math/libm-test.inc (clog_test): Add more tests.
28630         (clog10_test): Likewise.
28631         * sysdeps/i386/fpu/libm-test-ulps: Update.
28632         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28633
28634 2012-07-31  Florian Weimer  <fweimer@redhat.com>
28635
28636         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
28637         Exit with zero in case no suitable GID is found, and write a
28638         message to standard error.
28639
28640 2012-07-30  Roland McGrath  <roland@hack.frob.com>
28641
28642         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
28643         rather than to 1.
28644         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
28645         (MAXPATHLEN): Removed.
28646         (NOGROUP, NODEV): New macros.
28647         (setbit, clrbit, isset, isclr): New macros.
28648         (howmany, roundup, powerof2): New macros.
28649         (DEV_BSIZE): New macro.
28650
28651         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
28652         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
28653
28654         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
28655         definition on [!__NO_LONG_DOUBLE_MATH].
28656
28657         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
28658         PTR_MANGLE and PTR_DEMANGLE.
28659
28660         * socket/accept4.c (accept4): Rename to __libc_accept4.
28661         Define accept4 as a weak alias.
28662
28663         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
28664         on [_DIRENT_HAVE_D_TYPE].
28665         * io/ftw.c (ftw_dir): Likewise.
28666
28667         * io/xmknod.c (__xmknod): Don't check PATH for being null.
28668
28669         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
28670
28671         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
28672         Use the BSD numbers rather than the arbitrary ones we had.
28673         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
28674         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
28675         (SIGXCPU, SIGXFSZ): New macros.
28676         (_NSIG): Now 32.
28677
28678         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
28679         initializer on [_LIBC_REENTRANT].
28680
28681         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
28682         definitions inside [_POSIX_MAPPED_FILES].
28683
28684         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
28685
28686         * dirent/opendir.c: Include <fcntl.h>.
28687
28688         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
28689         (__libc_getspecific): Likewise.
28690         (__libc_key_create): Likewise.
28691
28692         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
28693         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
28694         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
28695         (tmpfile64): Define as alias.
28696         * sysdeps/wordsize-64/tmpfile.c: File removed.
28697         * sysdeps/wordsize-64/tmpfile64.c: File removed.
28698         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
28699         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
28700
28701         * stdio-common/vfscanf.c: Include <stdbool.h>.
28702         * nss/makedb.c: Likewise.
28703         * stdio-common/_i18n_number.h: Likewise.
28704         * argp/argp-help.c: Likewise.
28705         * posix/wordexp.c: Likewise.
28706         * sysdeps/posix/spawni.c: Likewise.
28707         * nss/nss_files/files-initgroups.c: Likewise.
28708         * stdio-common/reg-modifier.c: Include <stdlib.h>.
28709         * nss/nss_files/files-initgroups.c: Likewise.
28710         * nss/nss_db/db-netgrp.c: Likewise.
28711         * nss/nss_db/db-initgroups.c: Likewise.
28712         * io/fchmodat.c: Include <sys/stat.h>.
28713
28714         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
28715         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
28716
28717         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
28718         [HAVE_MMAP].
28719
28720         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
28721         Add multiple inclusion protection.
28722
28723 2012-07-27  David S. Miller  <davem@davemloft.net>
28724
28725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28726
28727 2012-07-27  Gary Benson  <gbenson@redhat.com>
28728
28729         [BZ #14298]
28730         * elf/rtld.c: Include <stap-probe.h>.
28731         (dl_main): Added static probes "init_start" and "init_complete".
28732         * elf/dl-load.c: Include <stap-probe.h>.
28733         (lose): Take new parameter "nsid".
28734         Added static probe "map_failed".
28735         (_dl_map_object_from_fd): Pass namespace id to lose.
28736         Added static probe "map_start".
28737         (open_verify): Pass namespace id to lose.
28738         * elf/dl-open.c: Include <stap-probe.h>.
28739         (dl_open_worker) Added static probes "map_complete", "reloc_start"
28740         and "reloc_complete".
28741         * elf/dl-close.c: Include <stap-probe.h>.
28742         (_dl_close_worker): Added static probes "unmap_start" and
28743         "unmap_complete".
28744         * elf/rtld-debugger-interface.txt: New file documenting the above.
28745
28746 2012-07-26  Roland McGrath  <roland@hack.frob.com>
28747
28748         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
28749         rather than a string variable.
28750         * sunrpc/rpc_main.c (h_output): Likewise.
28751         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
28752
28753 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
28754
28755         * inet/check_native.c: New file.
28756
28757 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
28758
28759         [BZ #13629]
28760         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
28761         if larger part has absolute value 1.0.
28762         * math/s_clog10.c (__clog10): Likewise.
28763         * math/s_clog10f.c (__clog10f): Likewise.
28764         * math/s_clog10l.c (__clog10l): Likewise.
28765         * math/s_clogf.c (__clogf): Likewise.
28766         * math/s_clogl.c (__clogl): Likewise.
28767         * math/libm-test.inc (clog_test): Add more tests.
28768         (clog10_test): Likewise.
28769         * sysdeps/i386/fpu/libm-test-ulps: Update.
28770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28771
28772         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
28773         (pltexit): Likewise.
28774         (La_regs): Likewise.
28775         (La_retval): Likewise.
28776         (int_retval): Likewise.
28777         Update #error for removed macros to refer only to definitions in
28778         tst-audit.h.
28779         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
28780         macro.
28781         (pltexit): Likewise.
28782         (La_regs): Likewise.
28783         (La_retval): Likewise.
28784         (int_retval): Likewise.
28785         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
28786         macro.
28787         (pltexit): Likewise.
28788         (La_regs): Likewise.
28789         (La_retval): Likewise.
28790         (int_retval): Likewise.
28791         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
28792         macro.
28793         (pltexit): Likewise.
28794         (La_regs): Likewise.
28795         (La_retval): Likewise.
28796         (int_retval): Likewise.
28797         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
28798         macro.
28799         (pltexit): Likewise.
28800         (La_regs): Likewise.
28801         (La_retval): Likewise.
28802         (int_retval): Likewise.
28803         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
28804         macro.
28805         (pltexit): Likewise.
28806         (La_regs): Likewise.
28807         (La_retval): Likewise.
28808         (int_retval): Likewise.
28809         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
28810         macro.
28811         (pltexit): Likewise.
28812         (La_regs): Likewise.
28813         (La_retval): Likewise.
28814         (int_retval): Likewise.
28815         * sysdeps/generic/tst-audit.h: Update comment to refer only to
28816         macro definitions in tst-audit.h.
28817         * sysdeps/i386/tst-audit.h: New file.
28818         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
28819         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
28820         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
28821         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
28822         * sysdeps/sh/tst-audit.h: Likewise.
28823         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
28824         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
28825         * sysdeps/x86_64/tst-audit.h: Likewise.
28826
28827 2012-07-26  Andreas Jaeger  <aj@suse.de>
28828
28829         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
28830         ptrace.
28831
28832         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
28833         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
28834         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
28835         PTRACE_O_MASK.
28836         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
28837         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
28838         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
28839
28840         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
28841         value.
28842
28843         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
28844         _sigsys.
28845         (si_call_addr, si_syscall, si_arch): Define new macro.
28846         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
28847         _sigsys.
28848         (si_call_addr, si_syscall, si_arch): Define new marcro.
28849         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
28850         _sigsys.
28851         (si_call_addr, si_syscall, si_arch): Define new macro.
28852         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
28853         _sigsys.
28854         (si_call_addr, si_syscall, si_arch): Define new macro.
28855
28856 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
28857
28858         [BZ #13717]
28859         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28860         Change to 2.4.21 where previously 2.4.1.
28861         * sysdeps/unix/sysv/linux/configure: Regenerated.
28862         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
28863         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
28864         Linux kernel version.
28865         (__ASSUME_STD_AUXV): Remove.
28866         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
28867         kernel version.
28868         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
28869         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
28870         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
28871         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
28872         (__ASSUME_NETLINK_SUPPORT): Likewise.
28873         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
28874         (__no_netlink_support): Remove conditional definition.
28875         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
28876         Remove.
28877         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
28878         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
28879         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
28880         (if_nameindex_ioctl): Remove.
28881         (if_nameindex_netlink): Do not handle __no_netlink_support.
28882         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
28883         code.
28884         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
28885         Remove conditional code.
28886         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
28887         code.
28888         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
28889         unconditional.
28890         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
28891         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
28892         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
28893         Remove.
28894         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
28895         [!__ASSUME_STD_AUXV]: Remove conditional code.
28896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
28897         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
28898         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
28899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
28900         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
28901         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
28902         code.
28903         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
28904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
28905         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
28906         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
28907         conditional code.
28908         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
28909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
28910         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
28911         code.
28912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
28913         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
28914         conditional code.
28915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
28916         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
28917         code unconditional.
28918         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28919         conditional code.
28920         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28921         unconditional.
28922         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28923         conditional code.
28924         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
28925         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28926         unconditional.
28927         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28928         conditional code.
28929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
28930         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
28931         code unconditional.
28932         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28933         conditional code.
28934         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28935         unconditional.
28936         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28937         conditional code.
28938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
28939         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
28940         code unconditional.
28941         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28942         conditional code.
28943         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
28944         unconditional.
28945         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
28946         conditional code.
28947
28948 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
28949
28950         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
28951         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
28952         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
28953         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
28954         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
28955         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
28956         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
28957         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
28958         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
28959         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
28960         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
28961         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
28962         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
28963         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
28964         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
28965         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
28966         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
28967         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
28968         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
28969         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
28970         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
28971         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
28972         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
28973
28974 2012-07-25  Florian Weimer  <fweimer@redhat.com>
28975
28976         * Versions.def: Add GLIBC_2.17.
28977         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
28978         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
28979         Introduce __libc_secure_getenv.
28980         * stdlib/Versions (2.17): Add secure_getenv
28981         (GLIBC_PRIVATE): Add __libc_secure_getenv.
28982         * stdlib/secure-getenv.c: Rename __secure_getenv to
28983         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
28984         symbol __secure_getenv for GLIBC_2.0.
28985         * stdlib/tst-secure-getenv.c: New.
28986         * stdlib/Makefile (tests): Add testcase.
28987         * manual/startup.texi (Environment Access): Document
28988         secure_getenv.
28989         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
28990         __libc_secure_getenv.
28991         * inet/ruserpass.c (ruserpass): Likewise.
28992         * malloc/mtrace.c (mtrace): Likewise.
28993         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
28994         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
28995         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
28996         * sysdeps/posix/tempname.c: Likewise.  Evaluate
28997         HAVE_SECURE_GETENV.
28998         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
28999         __secure_getenv to __libc_secure_getenv.
29000         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29002         Likewise.
29003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29004         Likewise.
29005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29006         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29007         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29008         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29010         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29011         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29012
29013 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29014
29015         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29016         (struct La_i86_retval): Likewise.
29017         (struct La_x86_64_regs): Likewise.
29018         (struct La_x86_64_retval): Likewise.
29019         (struct La_x32_regs): Likewise.
29020         (struct La_x32_retval): Likewise.
29021         (struct La_ppc32_regs): Likewise.
29022         (struct La_ppc32_retval): Likewise.
29023         (struct La_ppc64_regs): Likewise.
29024         (struct La_ppc64_retval): Likewise.
29025         (struct La_sh_regs): Likewise.
29026         (struct La_sh_retval): Likewise.
29027         (struct La_s390_32_regs): Likewise.
29028         (struct La_s390_32_retval): Likewise.
29029         (struct La_s390_64_regs): Likewise.
29030         (struct La_s390_64_retval): Likewise.
29031         (struct La_sparc32_regs): Likewise.
29032         (struct La_sparc32_retval): Likewise.
29033         (struct La_sparc64_regs): Likewise.
29034         (struct La_sparc64_retval): Likewise.
29035         (struct audit_ifaces): Remove architecture-specific pltenter and
29036         pltexit members.
29037         * sysdeps/i386/ldsodefs.h: New file.
29038         * sysdeps/powerpc/ldsodefs.h: Likewise.
29039         * sysdeps/s390/ldsodefs.h: Likewise.
29040         * sysdeps/sh/ldsodefs.h: Likewise.
29041         * sysdeps/sparc/ldsodefs.h: Likewise.
29042         * sysdeps/x86_64/ldsodefs.h: Likewise.
29043
29044 2012-07-25  Marek Polacek  <polacek@redhat.com>
29045
29046         [BZ #6808]
29047         * math/libm-test.inc (yn_test): Add another test.
29048         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29049         to ERANGE when the result is +-Inf.
29050         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29051         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29052         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29053         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29054
29055 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29056
29057         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29058         equal to 0.
29059         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29060         clock_t.
29061         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29062
29063 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29064
29065         * configure.in <sysdeps resolving>: Correct printing
29066         Implies_before.
29067         * configure: Regenerate.
29068
29069 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29070
29071         * math/w_ilogb.c: Include <limits.h>.
29072         * math/w_ilogbl.c: Likewise.
29073
29074 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29075
29076         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29077         va_copy.  Document allowing for unavailable va_copy only as
29078         pre-C99 compatibility.
29079         * manual/string.texi (Copying and Concatenation): Use va_copy
29080         instead of __va_copy in concat example.
29081
29082 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29083
29084         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29085         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29086         it if not null.
29087
29088         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29089         with O_NOLINK passed to __file_name_lookup.
29090
29091         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29092         with O_NOLINK passed to __file_name_lookup.
29093
29094         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
29095         negative N or less than NGIDS.
29096
29097         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
29098         type to string_t.  Set ERANGE as errno and return it if NAME is not big
29099         enough.  Use memcpy instead of strncpy.
29100
29101 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29102
29103         * elf/Makefile (check-data): Remove.
29104         (localplt.data): New vpath directive.
29105         ($(objpfx)check-localplt.out): Use localplt.data from vpath
29106         instead of $(check-data).
29107         * scripts/data/localplt-generic.data: Move to ...
29108         * sysdeps/generic/localplt.data: ... here.
29109         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
29110         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
29111         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
29112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29113         ... here.
29114         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
29115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29116         ... here.
29117         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
29118         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
29119         ... here.
29120         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
29121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29122         ... here.
29123         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
29124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
29125         ... here.
29126         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
29127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
29128         ... here.
29129
29130 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29131
29132         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
29133         PPC32 and PPC64 files.
29134         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
29135         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
29136
29137 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29138
29139         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
29140         __makecontext_ret to ...
29141         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29142         ... here and call exit if uc_link is NULL.  New file.
29143         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
29144         __makecontext_ret.S.
29145         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
29146         __makecontext_ret to ...
29147         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29148         ... here and call exit if uc_link is NULL.  New file.
29149         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
29150         __makecontext_ret.S.
29151
29152 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29153
29154         * elf/elf.h (R_390_IRELATIVE): New definition.
29155         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
29156         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
29157         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
29158         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
29159         (elf_machine_lazy_rel): Likewise.
29160         * sysdeps/s390/dl-irel.h: New file.
29161         * sysdeps/s390/s390-64/memcpy.S: New asm code.
29162         * sysdeps/s390/s390-64/memset.S: New asm code.
29163         * sysdeps/s390/s390-64/memcmp.S: New asm code.
29164         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
29165         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
29166         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
29167         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
29168         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
29169         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
29170         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
29171         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
29172         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
29173         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
29174         * sysdeps/s390/s390-32/memcpy.S: New asm code.
29175         * sysdeps/s390/s390-32/memset.S: New asm code.
29176         * sysdeps/s390/s390-32/memcmp.S: New asm code.
29177
29178 2012-07-17  Marek Polacek  <polacek@redhat.com>
29179
29180         [BZ #14349]
29181         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
29182         * sysdeps/s390/s390-64/configure.in: Likewise.
29183         * sysdeps/sparc/configure.in: Likewise.
29184         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
29185         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
29186         * sysdeps/i386/configure.in: Likewise.
29187         * sysdeps/x86_64/configure.in: Likewise.
29188         * sysdeps/sh/configure.in: Likewise.
29189         * sysdeps/s390/s390-32/configure: Regenerated.
29190         * sysdeps/s390/s390-64/configure: Likewise.
29191         * sysdeps/x86_64/configure: Likewise.
29192         * sysdeps/sh/configure: Likewise.
29193         * sysdeps/powerpc/powerpc64/configure: Likewise.
29194         * sysdeps/powerpc/powerpc32/configure: Likewise.
29195         * sysdeps/sparc/configure: Likwise.
29196         * sysdeps/i386/configure: Likewise.
29197
29198         * elf/dl-open.c: Comment fixes.
29199
29200 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
29201
29202         * Makefile [CXX] (check-data): Remove.
29203         [CXX] (c++-types.data): New vpath directive.
29204         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
29205         vpath.  Do not allow for C++ type data being missing.
29206         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
29207         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
29208         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
29209         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
29210         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
29211         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
29212         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
29213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29214         ... here.
29215         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
29216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29217         ... here.
29218         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
29219         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
29220         ... here.
29221         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
29222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
29223         ... here.
29224         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
29225         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
29226         ... here.
29227         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
29228         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
29229         ... here.
29230         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
29231         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
29232         ... here.
29233         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
29234         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
29235
29236         * elf/tls-macros.h (TLS_LE): Move architecture-specific
29237         definitions to architecture-specific files.
29238         (TLS_IE): Likewise.
29239         (TLS_LD): Likewise.
29240         (TLS_GD): Likewise.
29241         * sysdeps/i386/tls-macros.h: New file.
29242         * sysdeps/powerpc/tls-macros.h: Likewise.
29243         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
29244         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
29245         * sysdeps/sh/tls-macros.h: Likewise.
29246         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
29247         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
29248         * sysdeps/x86_64/tls-macros.h: Likewise.
29249
29250 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29251
29252         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
29253         zero value for regular exit case.
29254
29255         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
29256         (__start_context): Preserve zero value for regular exit case.
29257
29258 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29259             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29260
29261         * manual/setjmp.texi (setcontext): Clarify normal process
29262         termination when uc_link is the null pointer.
29263         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
29264         exit call.
29265
29266 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
29267
29268         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
29269         preprocessor.  Test for each exception mask separately.
29270
29271 2012-07-16  Andreas Jaeger  <aj@suse.de>
29272
29273         * po/ru.po: Update from translation team.
29274
29275 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
29276
29277         * conform/data/string.h-data (NULL): Use macro-constant.  Require
29278         equal to 0.
29279         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29280         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29281         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
29282         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
29283         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29284
29285 2012-07-13  Andreas Jaeger  <aj@suse.de>
29286
29287         * po/fr.po: Update from translation team.
29288
29289 2012-07-12  Marek Polacek  <polacek@redhat.com>
29290
29291         [BZ #14173]
29292         * math/libm-test.inc (yn_test): Add test for BZ #14173.
29293         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
29294         loop condition.
29295
29296 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
29297
29298         [BZ #13717]
29299         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29300         Change to 2.4.1 where previously 2.4.0.
29301         * sysdeps/unix/sysv/linux/configure: Regenerated.
29302         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
29303         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
29304         version.
29305         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
29306         (__ASSUME_AT_CLKTCK): Remove.
29307         (__ASSUME_AT_PAGESIZE): Likewise.
29308         (__ASSUME_AT_XID): Likewise.
29309         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
29310         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
29311         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
29312         unconditionally.
29313         (HAVE_AUX_PAGESIZE): Likewise.
29314         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
29315         [__ASSUME_AT_CLKTCK]: Make code unconditional.
29316         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
29317
29318 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
29319
29320         [BZ #14307]
29321         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
29322         the temporary buffer used to invoke __gethostbyname2_r,
29323         __gethostbyaddr_r and gethostbyname4_r to make room for struct
29324         host_data / struct gaih_addrtuple.
29325         * resolv/nss_dns/dns-host.c (global scope): Move definition of
29326         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
29327         header file nss/nsswitch.h.
29328         * nss/nsswitch.h (global scope): Add definition of implementation
29329         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
29330         resolv/nss_dns/dns-host.c).
29331
29332 2012-07-11  Andreas Jaeger  <aj@suse.de>
29333
29334         * po/fr.po: Update from translation team.
29335
29336         * po/sv.po: Update from translation team
29337         * po/fr.po: Another update from translation team.
29338
29339 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29340
29341         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
29342         for subnormals or multiply small sinh result by itself.
29343         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29344         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29345
29346 2012-07-11  David S. Miller  <davem@davemloft.net>
29347
29348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29349
29350 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
29351
29352         [BZ #14347]
29353         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
29354         (INTERNAL_MARK): Shift it here.
29355
29356 2012-07-10  Marek Polacek  <polacek@redhat.com>
29357
29358         [BZ #14151]
29359         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
29360         libc_cv_asm_global_directive with .globl.
29361         * configure: Regenerated.
29362         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
29363         with .globl.
29364         * sysdeps/i386/configure: Regenerated.
29365         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
29366         with .globl.
29367         * sysdeps/x86_64/configure: Regenerated.
29368         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
29369         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
29370         * elf/tst-unique2mod2.c: Likewise.
29371         * elf/tst-unique2mod1.c: Likewise.
29372         * elf/tst-unique1mod2.c: Likewise.
29373         * elf/tst-unique1mod1.c: Likewise.
29374         * sysdeps/s390/s390-32/sysdep.h: Likewise.
29375         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29376         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29377         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29378         * sysdeps/mach/sysdep.h: Likewise.
29379         * sysdeps/i386/sysdep.h: Likewise.
29380         * sysdeps/i386/i386-mcount.S: Likewise.
29381         * sysdeps/x86_64/_mcount.S: Likewise.
29382         * sysdeps/x86_64/sysdep.h: Likewise.
29383         * sysdeps/sh/_mcount.S: Likewise.
29384         * sysdeps/sh/sysdep.h: Likewise.
29385         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
29386         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
29387         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
29388         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29389         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
29390         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
29391         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
29392         * locale/localeinfo.h: Likewise.
29393         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
29394         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
29395
29396 2012-07-09  Roland McGrath  <roland@hack.frob.com>
29397
29398         [BZ #14336]
29399         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
29400         system".
29401         * manual/message.texi (The Uniforum approach): Likewise.
29402         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
29403         (glibc iconv Implementation): Likewise.
29404
29405 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
29406
29407         [BZ #14337]
29408         * math/s_clog.c (__clog): Avoid scaling a value down where that
29409         could result in underflow.
29410         * math/s_clog10.c (__clog10): Likewise.
29411         * math/s_clog10f.c (__clog10f): Likewise.
29412         * math/s_clog10l.c (__clog10l): Likewise.
29413         * math/s_clogf.c (__clogf): Likewise.
29414         * math/s_clogl.c (__clogl): Likewise.
29415         * math/libm-test.inc (clog_test): Add more tests.
29416         (clog10_test): Likewise.
29417         * sysdeps/i386/fpu/libm-test-ulps: Update.
29418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29419
29420 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
29421
29422         [BZ #14283]
29423         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
29424         by 7 not 8 to examine high bit of fractional part.
29425
29426         [BZ #14042]
29427         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
29428         for call to __mcount_internal.
29429         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
29430         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
29431         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
29432
29433 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
29434
29435         [BZ #14154]
29436         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
29437         approximation for values within 0x1p-13f of an odd multiple of
29438         pi/4.
29439         * math/libm-test.inc (tan_test): Do not allow spurious underflow
29440         exception.  Add more tests.
29441         * sysdeps/i386/fpu/libm-test-ulps: Update.
29442
29443         [BZ #6778]
29444         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
29445         inputs and return -1 for them.  Do not check for +Inf in case not
29446         reachable for +Inf.
29447         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
29448         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
29449         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29450         and return -1 for them.  Do not check for +Inf in case not
29451         reachable for +Inf.
29452         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
29453         define.
29454         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29455         and return -1 for them.  Do not check for +Inf in case not
29456         reachable for +Inf.
29457         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
29458         spurious underflow.
29459         * sysdeps/i386/fpu/libm-test-ulps: Update.
29460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29461
29462 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
29463
29464         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
29465
29466 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
29467
29468         [BZ #14157]
29469         [BZ #14331]
29470         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
29471         could result in spurious underflow.  Scale down values above
29472         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
29473         * math/s_csqrtf.c (__csqrtf): Likewise.
29474         * math/s_csqrtl.c (__csqrtl): Likewise.
29475         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
29476         spurious underflow.
29477         * sysdeps/i386/fpu/libm-test-ulps: Update.
29478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29479
29480 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
29481
29482         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
29483         xopen-msg.sed.
29484         * catgets/xopen-msg.awk: New file.
29485         * catgets/xopen-msg.sed: Removed.
29486
29487         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
29488         po2text.sed.
29489         * intl/po2test.awk: New file.
29490         * intl/po2test.sed: Removed.
29491
29492 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
29493
29494         [BZ #14328]
29495         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
29496         or multiply small sinh result by itself.
29497         * math/s_ctanf.c (__ctanf): Likewise.
29498         * math/s_ctanh.c (__ctanh): Likewise.
29499         * math/s_ctanhf.c (__ctanhf): Likewise.
29500         * math/s_ctanhl.c (__ctanhl): Likewise.
29501         * math/s_ctanl.c (__ctanl): Likewise.
29502         * math/libm-test.inc (ctan_test_tonearest): New function.
29503         (ctan_test_towardzero): Likewise.
29504         (ctan_test_downward): Likewise.
29505         (ctan_test_upward): Likewise.
29506         (ctanh_test_tonearest): Likewise.
29507         (ctanh_test_towardzero): Likewise.
29508         (ctanh_test_downward): Likewise.
29509         (ctanh_test_upward): Likewise.
29510         (main): Call these new functions.
29511         * sysdeps/i386/fpu/libm-test-ulps: Update.
29512         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29513
29514 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
29515
29516         * .gitignore: Delete /ports entry.
29517
29518 2012-07-03  Andreas Jaeger  <aj@suse.de>
29519
29520         * po/bg.po: Update from translation team.
29521         * po/cs.po: Likewise.
29522         * po/de.po: Likewise.
29523         * po/hr.po: Likewise.
29524         * po/nl.pl: Likewise.
29525         * po/pl.po: Likewise.
29526         * po/vi.po: Likewise.
29527
29528 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
29529
29530         * Makeconfig [!+link] (+link-before-libc): New variable.
29531         [!+link] (+link-after-libc): Likewise.
29532         [!+link] (+link-tests): Likewise.
29533         [!+link] (+link): Define in terms of $(+link-before-libc) and
29534         $(+link-after-libc).
29535         [!+link-static] (+link-static-before-libc): New variable.
29536         [!+link-static] (+link-static-after-libc): Likewise.
29537         [!+link-static] (+link-static-tests): Likewise.
29538         [!+link-static] (+link-static): Define in terms of
29539         $(+link-static-before-libc) and $(+link-static-after-libc).
29540         [build-shared] (link-libc-before-gnulib): New variable.
29541         [build-shared] (link-libc-tests): Likewise.
29542         [build-shared] (link-libc): Define in terms of
29543         $(link-libc-before-gnulib).
29544         [!build-shared] (link-libc-tests): New variable.
29545         (link-libc-static-tests): New variable.
29546         [!gnulib] (gnulib-arch): New variable.
29547         [!gnulib] (gnulib-tests): Likewise.
29548         [!gnulib] (static-gnulib-arch): Likewise.
29549         [!gnulib] (static-gnulib-tests): Likewise.
29550         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
29551         Define with "=" instead of ":=".
29552         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
29553         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
29554         * Rules (binaries-all-notests): New variable.
29555         (binaries-all-tests): Likewise.
29556         (binaries-static-notests): Likewise.
29557         (binaries-static-tests): Likewise.
29558         (binaries-all): Define using $(binaries-all-notests) and
29559         $(binaries-all-tests).
29560         (binaries-static): Define using $(binaries-static-notests) and
29561         $(binaries-static-tests).
29562         (binaries-shared-tests): New variable.
29563         (binaries-shared-notests): Likewise.
29564         (binaries-shared): Remove variable.
29565         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
29566         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
29567         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
29568         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
29569         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
29570         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
29571         * elf/Makefile (sln-modules): New variable.
29572         (extra-objs): Add $(sln-modules:=.o).
29573         (ldconfig-modules): Add static-stubs.
29574         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
29575         * elf/static-stubs.c: New file.
29576
29577         [BZ #14283]
29578         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
29579         by 7 not 8 to examine high bit of fractional part.  Use volatile
29580         variables when splitting into final array of floats if
29581         __FLT_EVAL_METHOD__ != 0.
29582         * math/libm-test.inc (cos_test): Add another test.
29583         (sin_test): Likewise.
29584         * sysdeps/i386/fpu/libm-test-ulps: Update.
29585
29586         [BZ #14273]
29587         * math/libm-test.inc (cosh_test): Add more tests.
29588
29589         * version.h (RELEASE): Set to "development".
29590         (VERSION): Set to "2.16.90".
29591
29592 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
29593
29594         * NEWS: Update copyright. Remove last-updated date.
29595         Mention math library bug fixes and timezone data changes.
29596         * README: Mention GNU/Hurd, x32, and HPPA support status.
29597
29598 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
29599
29600         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
29601
29602 2012-06-27  Andreas Jaeger  <aj@suse.de>
29603
29604         * manual/contrib.texi (Contributors): Add Samuel Thibault.
29605
29606 2012-06-25  Andreas Jaeger  <aj@suse.de>
29607
29608         * sysdeps/s390/fpu/libm-test-ulps: Update.
29609
29610 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
29611             Thomas Schwinge  <thomas@codesourcery.com>
29612
29613         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
29614         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
29615         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
29616         fanotify_mark.
29617
29618 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
29619
29620         * sysdeps/mach/start.c: Remove file.
29621         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
29622         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
29623         * sysdeps/sh/init-first.c: Likewise.
29624
29625         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
29626         registers for frame unwinding purposes, add CFI directives.
29627         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
29628         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
29629         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
29630         Likewise.
29631
29632         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
29633         __fortify_fail returning.
29634         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
29635
29636         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
29637         sysdeps/sh/____longjmp_chk.S.
29638         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
29639         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
29640         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
29641         (gen-as-const-headers): Append sigaltstack-offsets.sym.
29642
29643         * sysdeps/sh/abort-instr.h: New file.
29644         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
29645         process in case exit returns.
29646
29647         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
29648         initialize the GOT register before use.
29649
29650         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
29651         calculation of ARGC > 4.
29652
29653         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
29654         meaningful names to some local labels.
29655
29656 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
29657             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29658
29659         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
29660         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
29661         (__arch_compare_and_exchange_val_16_acq): Likewise.
29662         (__arch_compare_and_exchange_val_32_acq): Likewise.
29663         (atomic_exchange_and_add): Fix gUSA sequence.
29664         (atomic_add): Likewise.
29665         (atomic_add_negative): Likewise.
29666         (atomic_add_zero): Likewise.
29667         (atomic_bit_test_set): Likewise.
29668
29669 2012-06-22  Andreas Schwab  <schwab@redhat.com>
29670
29671         [BZ #13579]
29672         * include/link.h (struct link_map): Add l_free_initfini.
29673         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
29674         l_initfini.
29675         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
29676         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
29677         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
29678         set.
29679
29680 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
29681
29682         * configure.in: Use AC_LANG_SOURCE.
29683         * configure: Regenerate.
29684
29685 2012-06-22  Roland McGrath  <roland@hack.frob.com>
29686
29687         * configure.in (libc_cv_localstatedir): New substituted variable.
29688         * configure: Regenerated.
29689         * config.make.in (localstatedir): New variable, substituted from
29690         libc_cv_localstatedir.
29691         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
29692         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
29693         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
29694         * sysdeps/gnu/configure: Regenerated.
29695
29696 2012-06-21  Jeff Law  <law@redhat.com>
29697
29698         [BZ #14277]
29699         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
29700         free.  Simplify list management for _LIBC case.
29701
29702 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
29703
29704         [BZ #14273]
29705         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29706         Clear sign bit of 64-bit integer value before comparing against
29707         overflow value.
29708
29709         * sysdeps/mach/configure: Regenerated.
29710
29711 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
29712
29713         [BZ #14278]
29714         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
29715
29716 2012-06-21  Jeff Law  <law@redhat.com>
29717
29718         [BZ #13882]
29719         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
29720         uint16_t for elements in the "seen" array to avoid char overflows.
29721         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29722         * elf/dl-open.c (dl_open_worker): Likewise.
29723
29724 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
29725
29726         * scripts/list-sources.sh: Scan PORTS for translations.
29727         * po/libc.pot: Regenerated.
29728
29729 2012-06-21  Andreas Jaeger  <aj@suse.de>
29730
29731         [BZ #12194]
29732         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
29733         warning.
29734         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
29735         * bits/byteswap-16.h (__bswap_16): Likewise.
29736         * bits/byteswap.h (__bswap_constant_16): Likewise.
29737
29738 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
29739
29740         [BZ #14117]
29741         * sysdeps/i386/fpu_control.h: Removed.
29742         * sysdeps/x86_64/fpu_control.h: Moved to ...
29743         * sysdeps/x86/fpu_control.h: Here.
29744
29745         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
29746         (_FPU_SETCW): Likewise.
29747
29748 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
29749
29750         [BZ #14117]
29751         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
29752         * sysdeps/x86/fpu/bits/mathinline.h: This.
29753         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
29754
29755         [BZ #14050]
29756         [BZ #14117]
29757         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
29758         functions if __x86_64__ is defined.
29759
29760 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
29761
29762         * string/endian.h: Add !__ASSEMBLER__ condition for including
29763         conversion interfaces.
29764
29765 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
29766
29767         [BZ #14241]
29768         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
29769         of ABS(x) in calculating zero to negative powers other than odd
29770         integers.
29771         * math/libm-test.inc (pow_test): Add more tests.
29772
29773 2012-06-15  Andreas Jaeger  <aj@suse.de>
29774
29775         * manual/contrib.texi (Contributors): Update entry of Liubov
29776         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
29777         Machado Filho.
29778
29779 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
29780
29781         * string/string.h: Add __wur to GNU version of strerror_r.
29782
29783 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
29784
29785         [BZ #14229]
29786         * string/Makefile (tests): Add tst-strtok_r.
29787         * string/tst-strtok_r.c: New file.
29788         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
29789         RAX_LP/RDX_LP on SAVE_PTR.
29790
29791 2012-06-14  Roland McGrath  <roland@hack.frob.com>
29792
29793         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
29794
29795 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
29796
29797         * libm_test.inc (csqrt_test): Allow more spurious underflow
29798         exceptions.
29799         (j0_test): Likewise.
29800         (j1_test): Likewise.
29801         (y0_test): Likewise.
29802         (y1_test): Likewise.
29803
29804 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
29805
29806         * po/Makefile (libc.pot): Use UTF-8 charset.
29807
29808 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
29809
29810         [BZ #14210]
29811         Suppress sign-conversion warning from FD_SET.
29812         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
29813         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
29814         not unsigned long int.
29815         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
29816
29817 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
29818
29819         [BZ #14050]
29820         [BZ #14117]
29821         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
29822         __extern_always_inline instead of __extern_inline.
29823         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
29824         (__signbit): Likewise.
29825         (__signbitl): Support C++ namespace.
29826         (lrintf): New inline function.
29827         (lrint): Likewise.
29828         (llrintf): Likewise.
29829         (llrint): Likewise.
29830         (fmaxf): Likewise.
29831         (fmax): Likewise.
29832         (fminf): Likewise.
29833         (fmin): Likewise.
29834         (rint): Likewise.
29835         (rintf): Likewise.
29836         (ceil): Likewise.
29837         (ceilf): Likewise.
29838         (floor): Likewise.
29839         (floorf): Likewise.
29840         (nearbyint): Likewise.
29841         (nearbyintf): Likewise.
29842
29843 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
29844
29845         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
29846         non-default versions.
29847
29848 2012-06-11  Roland McGrath  <roland@hack.frob.com>
29849
29850         [BZ #14218]
29851         * manual/argp.texi (Argp): Reword argp_parse description slightly.
29852
29853 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
29854
29855         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
29856         (FE_UPWARD, FE_DOWNWARD): Don't define.
29857         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
29858         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
29859
29860         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
29861         reading it.
29862         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
29863         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
29864
29865 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29866
29867         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
29868         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
29869         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
29870         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
29871
29872 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
29873
29874         [BZ #14117]
29875         * sysdeps/i386/fpu/bits/fenv.h: Removed.
29876         * sysdeps/i386/fpu/Implies: New file.
29877         * sysdeps/x86_64/fpu/Implies: Likewise.
29878         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
29879         * sysdeps/x86/fpu/bits/fenv.h: This.
29880
29881         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
29882         __SSE_MATH__.
29883
29884 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
29885
29886         [BZ #14134]
29887         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
29888         character 0xffff that matches the last element of the
29889         conversion table.
29890
29891 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29892
29893         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
29894         fmodl commit.
29895
29896 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29897
29898         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
29899         values higher than 25.6283.
29900
29901 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29902
29903         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
29904         subnormal exponent extraction and add some __builtin_expect.
29905         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
29906         Fix for subnormal mantissa calculation.
29907
29908 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
29909
29910         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
29911         cpu2 is -1 and errno is not ENOSYS.
29912
29913 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
29914
29915         [BZ #14117]
29916         * sysdeps/i386/i486/bits/string.h: Renamed to ...
29917         * sysdeps/x86/bits/string.h: This.
29918         * sysdeps/x86_64/bits/string.h: Removed.
29919
29920         * sysdeps/i386/i486/bits/string.h: Define inline functions only
29921         if not compiling for x86-64, but compiling for >= i486.
29922
29923         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
29924         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
29925
29926         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
29927         New macro from Linux kernel 3.4.0.
29928         (FP_XSTATE_MAGIC2): Likewise.
29929         (FP_XSTATE_MAGIC2_SIZE): Likewise.
29930         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
29931         (struct _fpx_sw_bytes): New struct.
29932         (struct _xsave_hdr): Likewise.
29933         (struct _ymmh_state): Likewise.
29934         (struct _xstate): Likewise.
29935
29936         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
29937         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
29938         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
29939         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
29940         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
29941         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
29942
29943         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
29944         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
29945         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
29946         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
29947         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
29948         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
29949
29950 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29951
29952         [BZ #13743]
29953         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
29954         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
29955         (sysdep_headers): Include sys/platform/ppc.h.
29956         * sysdeps/powerpc/test-gettimebase.c: Test for
29957         __ppc_get_timebase() to catch future ISA opcode/insn changes.
29958         * manual/Makefile (appendices): Include platform.texi.
29959         * manual/contrib.texi (Contributors): Update @node pointers.
29960         * manual/maint.texi (Maintenance): Likewise.
29961         (Platform): New node.
29962         * manual/platform.texi: New file.  Document the new features.
29963
29964 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
29965             Jakub Jelinek  <jakub@redhat.com>
29966
29967         [BZ #14188]
29968         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
29969         where __builtin_expect is unavailable.
29970
29971 2012-06-03  David S. Miller  <davem@davemloft.net>
29972
29973         * stdlib/longlong.h: Updated from GCC.
29974
29975 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
29976
29977         [BZ #14042]
29978         * sysdeps/powerpc/powerpc32/mcount.c: New file.
29979         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
29980         __mcount_internal.
29981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
29982         (GLIBC_2.16): Likewise.
29983
29984 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
29985
29986         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
29987
29988 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
29989
29990         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
29991         (default-abi): New variable.
29992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
29993         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
29994         variable.
29995         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
29996         Likewise.
29997         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
29998         Likewise.
29999         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30000         Likewise.
30001
30002         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30003         definition.  Document in comment.
30004
30005 2012-06-01  David S. Miller  <davem@davemloft.net>
30006
30007         * stdlib/longlong.h: Updated from GCC.
30008
30009 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30010
30011         [BZ #14117]
30012         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30013         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30014         sys/debugreg.h sys/io.h here.
30015         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30016         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30017         sys/io.h.
30018         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30019         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30020         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30021         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30022         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30023         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30024
30025         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30026         Define only if __x86_64__ is defined.
30027
30028 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30029
30030         [BZ #14048]
30031         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30032         Use int64_t for variable i.
30033         * math/libm-test.inc (fmod_test): Add more tests.
30034
30035         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30036         z computation is not scheduled after fetestexcept.
30037         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30038         Use math_force_eval instead of asm to ensure calculation scheduled
30039         before exception test.
30040         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30041         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30042
30043 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30044
30045         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30046         computation is not scheduled after fetestexcept.
30047
30048 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30049
30050         [BZ #14117]
30051         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30052         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30053
30054 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30055
30056         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30057         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30058
30059 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30060
30061         [BZ #14117]
30062         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30063         <bits/wordsize.h>.
30064         (__WCHAR_MIN): Support __WORDSIZE == 64.
30065         (__WCHAR_MAX): Likewise.
30066
30067         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30068         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30069
30070         [BZ #14183]
30071         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30072         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30073
30074         [BZ #14117]
30075         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30076         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30077
30078         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30079         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30080
30081         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30082         Defined to 1 if __x86_64__ isn't defined.
30083         (_STAT_VER_LINUX_OLD): New.
30084         (st_atime): Remove duplicate.
30085         (st_mtime): Likewise.
30086         (st_ctime): Likewise.
30087
30088 2012-05-31  David S. Miller  <davem@davemloft.net>
30089
30090         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30091         entries.
30092
30093 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
30094
30095         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
30096         gen-libm-test.pl.
30097
30098         [BZ #14132]
30099         * elf/dl-reloc.c: Include <_itoa.h>.
30100         (_dl_reloc_bad_type): Remove use of INTUSE.
30101         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
30102         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
30103         * stdio-common/psiginfo.c (psiginfo): Likewise.
30104         * stdio-common/psignal.c (psignal): Likewise.
30105         * string/strsignal.c (strsignal): Likewise.
30106         * include/signal.h (_sys_siglist): Declare hidden proto.
30107         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
30108         INTVARDEF with libc_hidden_data_def.
30109         * stdio-common/itoa-udigits.c: Likewise.
30110         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
30111         (_itoa_lower_digits_internal): Remove declaration.
30112         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
30113         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
30114         (_sys_sigabbrev_internal): Remove aliases.
30115         (_sys_siglist): Define hidden alias.
30116
30117 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
30118
30119         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30120         bits/sysctl.h.
30121
30122 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30123
30124         [BZ #14117]
30125         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
30126         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
30127
30128         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
30129         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
30130         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
30131         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
30132         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
30133         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
30134
30135         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
30136         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
30137         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
30138
30139         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
30140         with __addr.
30141         (insw): Likewise.
30142         (insl): Likewise.
30143         (outsb): Likewise.
30144         (outsw): Likewise.
30145         (outsl): Likewise.
30146
30147         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
30148         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
30149         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
30150
30151         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
30152         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
30153         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
30154         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
30155         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
30156         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
30157
30158         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
30159         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
30160
30161         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
30162         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
30163
30164         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
30165         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
30166         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
30167
30168         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
30169         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
30170         to ...
30171         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
30172
30173         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
30174         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
30175         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
30176
30177         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
30178         for x86-64.
30179         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
30180
30181 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
30182
30183         * math/math.h (M_El): Use two more decimal places.
30184         (M_LOG2El): Likewise.
30185         (M_LOG10El): Likewise.
30186         (M_LN2l): Likewise.
30187         (M_LN10l): Likewise.
30188         (M_PIl): Likewise.
30189         (M_PI_2l): Likewise.
30190         (M_PI_4l): Likewise.
30191         (M_1_PIl): Likewise.
30192         (M_2_PIl): Likewise.
30193         (M_2_SQRTPIl): Likewise.
30194         (M_SQRT2l): Likewise.
30195         (M_SQRT1_2l): Likewise.
30196
30197 2012-05-31  David S. Miller  <davem@davemloft.net>
30198
30199         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
30200         values between float registers.
30201         * sysdeps/sparc/sparc64/memset.S: Likewise.
30202         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30203
30204 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
30205
30206         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
30207         -D_FORTIFY_SOURCE=1.
30208         (CPPFLAGS-tst-longjmp_chk.c): Define.
30209         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
30210         (CPPFLAGS-tst-longjmp_chk2.c): Define.
30211         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
30212         CFLAGS-tst-wchar-h.c.
30213
30214 2012-05-31  Marek Polacek  <polacek@redhat.com>
30215
30216         [BZ #14132]
30217         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
30218         __endmntent_internal): Remove declaration.
30219         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
30220         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
30221         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
30222
30223 2012-05-30  David S. Miller  <davem@davemloft.net>
30224
30225         * sysdeps/sparc/sparc32/soft-fp/q_util.c
30226         (___Q_simulate_exceptions): Use real FP ops rather than writing
30227         into the %fsr.
30228         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
30229         Likewise.
30230
30231 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30232
30233         [BZ #14117]
30234         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
30235         * sysdeps/x86/bits/xtitypes.h: This.
30236
30237         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
30238         * sysdeps/x86/bits/wordsize.h: This.
30239
30240         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
30241         * sysdeps/x86/bits/huge_vall.h: This.
30242
30243         * sysdeps/i386/bits/select.h: Removed.
30244         * sysdeps/x86_64/bits/select.h: Renamed to ...
30245         * sysdeps/x86/bits/select.h: This.
30246
30247         * sysdeps/i386/bits/setjmp.h: Removed.
30248         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
30249         * sysdeps/x86/bits/setjmp.h: This.
30250
30251         * sysdeps/i386/bits/mathdef.h: Removed.
30252         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
30253         * sysdeps/x86/bits/mathdef.h: This.
30254
30255 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
30256
30257         [BZ #14132]
30258         * include/sys/socket.h (__connect_internal)
30259         (__libc_sa_len_internal): Remove declaration.
30260         (__connect, __libc_sa_len): Declare hidden_proto.
30261         (SA_LEN): Remove use of INTUSE.
30262         * socket/connect.c: Add libc_hidden_def.
30263         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
30264         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
30265         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
30266         alias.
30267         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
30268         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
30269         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
30270         of adding _internal alias.
30271
30272 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30273
30274         [BZ #14117]
30275         * sysdeps/i386/bits/link.h: Removed.
30276         * sysdeps/i386/bits/linkmap.h: Likewise.
30277         * sysdeps/x86_64/bits/link.h: Renamed to ...
30278         * sysdeps/x86/bits/link.h: This.
30279         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
30280         * sysdeps/x86/bits/linkmap.h: This.
30281
30282         * sysdeps/i386/bits/endian.h: Removed.
30283         * sysdeps/x86_64/bits/endian.h: Renamed to ...
30284         * sysdeps/x86/bits/endian.h: This.
30285
30286         * sysdeps/i386/bits/byteswap.h: Removed.
30287         * sysdeps/i386/bits/byteswap-16.h: Likewise.
30288         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
30289         * sysdeps/x86/bits/byteswap.h: This.
30290         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
30291         * sysdeps/x86/bits/byteswap-16.h: This.
30292         * sysdeps/i386/Implies: Add x86.
30293         * sysdeps/x86_64/Implies: Likewise.
30294
30295 2012-05-30  David S. Miller  <davem@davemloft.net>
30296
30297         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
30298         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
30299         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
30300         (FP_TRAPPING_EXCEPTIONS): Define.
30301         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
30302         (FP_TRAPPING_EXCEPTIONS): Define.
30303         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
30304         subnormals only when inexact has been signalled or underflow
30305         exceptions are enabled.
30306         (_FP_PACK_CANONICAL): Likewise.
30307
30308 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30309
30310         [BZ #14183]
30311         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
30312         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
30313
30314 2012-05-30  Richard Henderson  <rth@twiddle.net>
30315
30316         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
30317         with #ifndef NOT_IN_libc.
30318
30319         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
30320         marked to avoid plt entry.
30321
30322 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30323
30324         [BZ #14112]
30325         * Makeconfig (default-abi): New macro.
30326         (abi-includes): Likewise.
30327         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
30328         $(abi-$(default-abi)-lib-soname) for soname if defined.
30329         ($(common-objpfx)gnu/lib-names.stmp): Generate from
30330         abi-variants.
30331         * Makefile (installed-stubs): Likewise.
30332         * include/stubs-biarch.h: Removed.
30333         * scripts/lib-names.awk: Only handle one library at a time.
30334         * scripts/soversions.awk: Remove WORDSIZE support.
30335         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
30336         entries.
30337         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
30338         Removed.
30339         (syscall-list-default-condition): Likewise.
30340         (syscall-list-default-condition): Likewise.
30341         (syscall-list-includes): Likewise.
30342         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
30343         syscall-list-* with abi-*.  Handle undefined abi-variants.
30344         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
30345         * sysdeps/unix/sysv/linux/i386/Implies: New file.
30346         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
30347         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
30348         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
30349         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
30350         Removed.
30351         (syscall-list-32-options): Likewise.
30352         (syscall-list-32-condition): Likewise.
30353         (syscall-list-64-options): Likewise.
30354         (syscall-list-64-condition): Likewise.
30355         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
30356         macro.
30357         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
30358         Renamed to ...
30359         (abi-*): This.
30360         (abi-64-ld-soname): New macro.
30361         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
30362         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
30363         Renamed to ...
30364         (abi-*): This.
30365         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
30366         * sysdeps/x86_64/x32/shlib-versions: Likewise.
30367
30368 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
30369
30370         * sysdeps/unix/sysv/linux/kernel-features.h
30371         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
30372         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
30373         include <kernel-features.h>.
30374         [!__NR_ftruncate64]: Remove conditional code.
30375         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30376         [__NR_ftruncate64]: Make code unconditional.
30377         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30378         * sysdeps/unix/sysv/linux/truncate64.c: Do not
30379         include <kernel-features.h>.
30380         [!__NR_ftruncate64]: Remove conditional code.
30381         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30382         [__NR_ftruncate64]: Make code unconditional.
30383         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
30385         include <kernel-features.h>.
30386         [!__NR_ftruncate64]: Remove conditional code.
30387         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30388         [__NR_ftruncate64]: Make code unconditional.
30389         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30390         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
30391         include <kernel-features.h>.
30392         [!__NR_ftruncate64]: Remove conditional code.
30393         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30394         [__NR_ftruncate64]: Make code unconditional.
30395         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30396
30397         * configure.in (libc_cv_fpie): Weaken to a compile test using
30398         LIBC_TRY_CC_OPTION.
30399         * configure: Regenerated.
30400
30401 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30402
30403         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
30404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
30405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
30406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
30407         Refreshed.
30408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
30409         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
30410         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
30411         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
30412         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
30413         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
30414         Refreshed.
30415
30416 2012-05-27  David S. Miller  <davem@davemloft.net>
30417
30418         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
30419         (___Q_zero): New.
30420         (__Q_simulate_exceptions): Return void.  Change to simulate
30421         exceptions by writing into the %fsr.
30422         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
30423         (__Qp_handle_exceptions): Likewise.
30424         (numbers): Delete.
30425         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
30426         __Qp_handle_exceptions.
30427         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
30428         __Qp_handle_exceptions.
30429         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30430         as unused and give dummy FP_RND_NEAREST initializer.
30431         (FP_INHIBIT_RESULTS): Define.
30432         (___Q_simulate_exceptions): Update declaration.
30433         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
30434         formatting.
30435         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30436         as unused and give dummy FP_RND_NEAREST initializer.
30437         (__Qp_handle_exceptions): Update declaration.
30438         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
30439         formatting.
30440
30441 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
30442
30443         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
30444         the temporary FPU control word.
30445         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
30446         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
30447         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
30448         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30449         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
30450         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
30451         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
30452         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30453         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
30454         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
30455         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30456
30457 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30458
30459         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
30460         fields.
30461
30462 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
30463
30464         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
30465         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
30466         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
30467         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
30468         Likewise.
30469         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
30470         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
30471         Likewise.
30472
30473 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
30474
30475         * po/h.po: Update from translation team.
30476
30477 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
30478
30479         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
30480
30481         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
30482         handling of denormals.
30483         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
30484         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
30485         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
30486         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
30487         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
30488         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
30489         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
30490         Likewise.
30491
30492 2012-05-26  Marek Polacek  <polacek@redhat.com>
30493
30494         [BZ #14152]
30495         * math/libm-test.inc (fma_test): Don't always expect underflow
30496         exception.
30497
30498 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
30499
30500         [BZ #12416]
30501         * elf/tst-execstack.c: Include stackinfo.h.
30502         (do_test): Adjust test case to ensure that pthread_getattr_np
30503         behaviour remains the same after marking stack executable.
30504
30505 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
30506
30507         * sysdeps/unix/sysv/linux/kernel-features.h
30508         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
30509         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
30510         kernel-features.h.
30511         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
30512         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
30513         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
30514         kernel-features.h.
30515         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
30516         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
30517
30518 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
30519
30520         * configure.in: Define the default includes to being none.
30521         * configure: Regenerated.
30522
30523 2012-05-25  Roland McGrath  <roland@hack.frob.com>
30524
30525         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
30526         * sysdeps/x86_64/setjmp.S: Likewise.
30527         * sysdeps/i386/bsd-setjmp.S: Likewise.
30528         * sysdeps/i386/bsd-_setjmp.S: Likewise.
30529         * sysdeps/i386/setjmp.S: Likewise.
30530         * sysdeps/i386/__longjmp.S: Likewise.
30531         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
30532         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
30533
30534         * include/stap-probe.h: New file.
30535         * configure.in: Handle --enable-systemtap.
30536         * configure: Regenerated.
30537         * config.h.in (USE_STAP_PROBE): New #undef.
30538         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
30539         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
30540         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30541
30542 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
30543
30544         [BZ #13717]
30545         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
30546         to 2.4.0 where earlier.
30547         * sysdeps/unix/sysv/linux/configure: Regenerated.
30548         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
30549         <kernel-features.h>.
30550         [__ASSUME_32BITUIDS]: Make code unconditional.
30551         [!__ASSUME_32BITUIDS]: Remove conditional code.
30552         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
30553         <kernel-features.h>.
30554         [__ASSUME_32BITUIDS]: Make code unconditional.
30555         [!__ASSUME_32BITUIDS]: Remove conditional code.
30556         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
30557         [__ASSUME_32BITUIDS]: Make code unconditional.
30558         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
30559         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
30560         <kernel-features.h>.
30561         [__ASSUME_32BITUIDS]: Make code unconditional.
30562         [!__ASSUME_32BITUIDS]: Remove conditional code.
30563         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
30564         <kernel-features.h>.
30565         [__ASSUME_32BITUIDS]: Make code unconditional.
30566         [!__ASSUME_32BITUIDS]: Remove conditional code.
30567         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
30568         <kernel-features.h>.
30569         [__ASSUME_32BITUIDS]: Make code unconditional.
30570         [!__ASSUME_32BITUIDS]: Remove conditional code.
30571         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
30572         <kernel-features.h>.
30573         [__ASSUME_32BITUIDS]: Make code unconditional.
30574         [!__ASSUME_32BITUIDS]: Remove conditional code.
30575         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
30576         <kernel-features.h>.
30577         [__ASSUME_32BITUIDS]: Make code unconditional.
30578         [!__ASSUME_32BITUIDS]: Remove conditional code.
30579         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
30580         <kernel-features.h>.
30581         [__ASSUME_32BITUIDS]: Make code unconditional.
30582         [!__ASSUME_32BITUIDS]: Remove conditional code.
30583         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
30584         <kernel-features.h>.
30585         [__ASSUME_32BITUIDS]: Make code unconditional.
30586         [!__ASSUME_32BITUIDS]: Remove conditional code.
30587         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
30588         <kernel-features.h>.
30589         [__ASSUME_32BITUIDS]: Make code unconditional.
30590         [!__ASSUME_32BITUIDS]: Remove conditional code.
30591         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
30592         <kernel-features.h>.
30593         [__ASSUME_32BITUIDS]: Make code unconditional.
30594         [!__ASSUME_32BITUIDS]: Remove conditional code.
30595         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
30596         <kernel-features.h>.
30597         [__ASSUME_32BITUIDS]: Make code unconditional.
30598         [!__ASSUME_32BITUIDS]: Remove conditional code.
30599         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
30600         <kernel-features.h>.
30601         [__NR_setresgid] (__setresgid): Do not declare.
30602         [__ASSUME_32BITUIDS]: Make code unconditional.
30603         [!__ASSUME_32BITUIDS]: Remove conditional code.
30604         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
30605         <kernel-features.h>.
30606         [__NR_setresuid] (__setresuid): Do not declare.
30607         [__ASSUME_32BITUIDS]: Make code unconditional.
30608         [!__ASSUME_32BITUIDS]: Remove conditional code.
30609         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
30610         <kernel-features.h>.
30611         [__ASSUME_32BITUIDS]: Make code unconditional.
30612         [!__ASSUME_32BITUIDS]: Remove conditional code.
30613         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
30614         <kernel-features.h>.
30615         [__ASSUME_32BITUIDS]: Make code unconditional.
30616         [!__ASSUME_32BITUIDS]: Remove conditional code.
30617         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
30618         <kernel-features.h>.
30619         [__ASSUME_32BITUIDS]: Make code unconditional.
30620         [!__ASSUME_32BITUIDS]: Remove conditional code.
30621         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
30622         <kernel-features.h>.
30623         [__ASSUME_32BITUIDS]: Make code unconditional.
30624         [!__ASSUME_32BITUIDS]: Remove conditional code.
30625         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
30626         <kernel-features.h>.
30627         [__ASSUME_32BITUIDS]: Make code unconditional.
30628         [!__ASSUME_32BITUIDS]: Remove conditional code.
30629         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
30630         <kernel-features.h>.
30631         [__ASSUME_32BITUIDS]: Make code unconditional.
30632         [!__ASSUME_32BITUIDS]: Remove conditional code.
30633         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
30634         <kernel-features.h>.
30635         [__ASSUME_32BITUIDS]: Make code unconditional.
30636         [!__ASSUME_32BITUIDS]: Remove conditional code.
30637         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
30638         <kernel-features.h>.
30639         [__ASSUME_32BITUIDS]: Make code unconditional.
30640         [!__ASSUME_32BITUIDS]: Remove conditional code.
30641         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
30642         <kernel-features.h>.
30643         [__ASSUME_32BITUIDS]: Make code unconditional.
30644         [!__ASSUME_32BITUIDS]: Remove conditional code.
30645         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
30646         <kernel-features.h>.
30647         [__ASSUME_32BITUIDS]: Make code unconditional.
30648         [!__ASSUME_32BITUIDS]: Remove conditional code.
30649         * sysdeps/unix/sysv/linux/kernel-features.h
30650         (__ASSUME_SETRESUID_SYSCALL): Remove.
30651         (__ASSUME_SETRESGID_SYSCALL): Likewise.
30652         (__ASSUME_32BITUIDS): Likewise.
30653         (__ASSUME_LDT_WORKS): Likewise.
30654         (__ASSUME_O_DIRECTORY): Likewise.
30655         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
30656         architecture but not kernel version.
30657         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
30658         (__ASSUME_MMAP2_SYSCALL): Likewise.
30659         (__ASSUME_STAT64_SYSCALL): Likewise.
30660         (__ASSUME_IPC64): Likewise.
30661         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
30662         <kernel-features.h>.
30663         [__ASSUME_32BITUIDS]: Make code unconditional.
30664         [!__ASSUME_32BITUIDS]: Remove conditional code.
30665         * sysdeps/unix/sysv/linux/opendir.c: Do not include
30666         <kernel-features.h>.
30667         [__ASSUME_O_DIRECTORY]: Make code unconditional.
30668         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
30669         132096]: Remove conditional code.
30670         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
30671         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
30672         <kernel-features.h>.
30673         [__ASSUME_32BITUIDS]: Make code unconditional.
30674         [!__ASSUME_32BITUIDS]: Remove conditional code.
30675         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
30676         <kernel-features.h>.
30677         [__ASSUME_32BITUIDS]: Make code unconditional.
30678         [!__ASSUME_32BITUIDS]: Remove conditional code.
30679         * sysdeps/unix/sysv/linux/setegid.c: Do not include
30680         <kernel-features.h>.
30681         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
30682         unconditional.
30683         (__setresgid): Do not declare.
30684         [__ASSUME_32BITUIDS]: Make code unconditional.
30685         [!__ASSUME_32BITUIDS]: Remove conditional code.
30686         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
30687         <kernel-features.h>.
30688         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
30689         unconditional.
30690         (__setresuid): Do not declare.
30691         [__ASSUME_32BITUIDS]: Make code unconditional.
30692         [!__ASSUME_32BITUIDS]: Remove conditional code.
30693         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
30694         <kernel-features.h>.
30695         [__ASSUME_32BITUIDS]: Make code unconditional.
30696         [!__ASSUME_32BITUIDS]: Remove conditional code.
30697         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
30698         <kernel-features.h>.
30699         [__ASSUME_32BITUIDS]: Make code unconditional.
30700         [!__ASSUME_32BITUIDS]: Remove conditional code.
30701
30702 2012-05-25  Richard Henderson  <rth@twiddle.net>
30703
30704         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
30705         dl_hwcap to ifunc resolver.
30706         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
30707         elf_ifunc_invoke.
30708         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
30709         dl_hwcap to ifunc resolver.
30710         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
30711
30712 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30713
30714         [BZ #14153]
30715         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
30716         for |x| <= 2**-26, not 2**-57.
30717         * math/libm-test.inc (acos_test): Do not allow spurious underflow
30718         exception.
30719
30720 2012-05-24  Jeff Law  <law@redhat.com>
30721
30722         * stdio-common/Makefile (tests): Add bug25.
30723         * stdio-common/bug25.c: New test.
30724
30725 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
30726
30727         [BZ #13576]
30728         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
30729         multiple of MALLOC_ALIGNMENT in size.
30730         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
30731
30732 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30733
30734         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
30735         Require >= 256.
30736         (FILENAME_MAX): Use macro-int-constant.
30737         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
30738         (_IOFBF): Use macro-int-constant.
30739         (_IOLBF): Likewise.
30740         (_IONBF): Likewise.
30741         (SEEK_CUR): Likewise.
30742         (SEEK_END): Likewise.
30743         (SEEK_SET): Likewise.
30744         (TMP_MAX): Likewise.
30745         (EOF): Use macro-int-constant.  Require < 0.
30746         (NULL): Use macro-constant.  Require == 0.
30747         (stdin): Require type to be FILE *.
30748         (stdout): Likewise.
30749         (stderr): Likewise.
30750         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
30751         macro-int-constant.
30752         (EXIT_SUCCESS): Likewise.
30753         (NULL): Use macro-constant.  Require == 0.
30754         (RAND_MAX): Use macro-int-constant.
30755         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
30756         [C99-based standards] (strtof): Require function.
30757         [C99-based standards] (strtold): Likewise.
30758         [C99-based standards] (strtoll): Likewise.
30759         [C99-based standards] (strtoull): Likewise.
30760         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30761         [ISO || ISO99 || ISO11] (limits.h): Likewise.
30762         [ISO || ISO99 || ISO11] (math.h): Likewise.
30763         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
30764         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30765         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30766
30767 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
30768
30769         [BZ #14132]
30770         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
30771         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
30772         * intl/dgettext.c (DCGETTEXT): Likewise.
30773         * intl/gettext.c (DCGETTEXT): Likewise.
30774         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
30775         * posix/regex_internal.h (gettext): Likewise.
30776         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
30777         Remove declaration.
30778         * include/argz.h (__argz_count_internal)
30779         (__argz_stringify_internal): Remove declaration.
30780         (__argz_count, __argz_stringify): Declare hidden proto.
30781         * intl/dcgettext.c: Remove use of INTDEF.
30782         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
30783         * string/argz-stringify.c: Likewise.
30784         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
30785         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
30786         Declare hidden proto.
30787         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
30788         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
30789         Declare hidden proto.
30790         * include/stdio.h (__asprintf_internal): Don't declare.
30791         (__asprintf): Don't define as macro.  Declare hidden proto.
30792         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
30793         (__fsetlocking): Declare hidden proto.
30794         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
30795         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
30796         hidden proto.
30797         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
30798         (_IO_setlinebuf): Remove use of INTUSE.
30799         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
30800         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
30801         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
30802         Remove declaration.
30803         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
30804         (_IO_do_flush): Remove use of INTUSE.
30805         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
30806         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
30807         (_IO_adjust_column, _IO_least_wmarker)
30808         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
30809         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
30810         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
30811         (_IO_default_doallocate, _IO_wdefault_doallocate)
30812         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
30813         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
30814         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
30815         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
30816         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
30817         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
30818         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
30819         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
30820         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
30821         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
30822         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
30823         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
30824         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
30825         proto.
30826         (_IO_flush_all_internal, _IO_adjust_column_internal)
30827         (_IO_default_uflow_internal, _IO_default_finish_internal)
30828         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
30829         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
30830         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
30831         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
30832         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
30833         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
30834         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
30835         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
30836         (_IO_file_close_internal, _IO_file_close_it_internal)
30837         (_IO_file_underflow_internal, _IO_file_overflow_internal)
30838         (_IO_file_init_internal, _IO_file_attach_internal)
30839         (_IO_file_fopen_internal, _IO_file_read_internal)
30840         (_IO_file_sync_internal, _IO_file_seek_internal)
30841         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
30842         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
30843         (_IO_str_underflow_internal, _IO_str_overflow_internal)
30844         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
30845         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
30846         (_IO_list_all_internal, _IO_link_in_internal)
30847         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
30848         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
30849         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
30850         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
30851         (_IO_do_write_internal, _IO_padn_internal)
30852         (_IO_getline_info_internal, _IO_getline_internal)
30853         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
30854         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
30855         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
30856         (_IO_vfscanf_internal, _IO_vfprintf_internal)
30857         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
30858         (_IO_init_internal, _IO_un_link_internal): Don't declare.
30859         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
30860         with libc_hidden_ver, remove use of INTUSE.
30861         * libio/genops.c: Likewise.
30862         * libio/freopen.c: Likewise.
30863         * libio/freopen64.c: Likewise.
30864         * libio/iofclose.c: Likewise.
30865         * libio/iofdopen.c: Likewise.
30866         * libio/iofflush.c: Likewise.
30867         * libio/iofflush_u.c: Likewise.
30868         * libio/iofgets.c: Likewise.
30869         * libio/iofgets_u.c: Likewise.
30870         * libio/iofopen.c: Likewise.
30871         * libio/iofopncook.c: Likewise.
30872         * libio/iofread.c: Likewise.
30873         * libio/iofread_u.c: Likewise.
30874         * libio/ioftell.c: Likewise.
30875         * libio/iofwrite.c: Likewise.
30876         * libio/iogetline.c: Likewise.
30877         * libio/iogets.c: Likewise.
30878         * libio/iogetwline.c: Likewise.
30879         * libio/iopadn.c: Likewise.
30880         * libio/iopopen.c: Likewise.
30881         * libio/ioseekoff.c: Likewise.
30882         * libio/ioseekpos.c: Likewise.
30883         * libio/iosetbuffer.c: Likewise.
30884         * libio/iosetvbuf.c: Likewise.
30885         * libio/ioungetc.c: Likewise.
30886         * libio/ioungetwc.c: Likewise.
30887         * libio/iovdprintf.c: Likewise.
30888         * libio/iovsprintf.c: Likewise.
30889         * libio/iovsscanf.c: Likewise.
30890         * libio/memstream.c: Likewise.
30891         * libio/obprintf.c: Likewise.
30892         * libio/oldfileops.c: Likewise.
30893         * libio/oldiofclose.c: Likewise.
30894         * libio/oldiofdopen.c: Likewise.
30895         * libio/oldiofopen.c: Likewise.
30896         * libio/oldiopopen.c: Likewise.
30897         * libio/oldstdfiles.c: Likewise.
30898         * libio/putc.c: Likewise.
30899         * libio/setbuf.c: Likewise.
30900         * libio/setlinebuf.c: Likewise.
30901         * libio/stdfiles.c: Likewise.
30902         * libio/strops.c: Likewise.
30903         * libio/vasprintf.c: Likewise.
30904         * libio/vscanf.c: Likewise.
30905         * libio/vsnprintf.c: Likewise.
30906         * libio/vswprintf.c: Likewise.
30907         * libio/wfiledoalloc.c: Likewise.
30908         * libio/wfileops.c: Likewise.
30909         * libio/wgenops.c: Likewise.
30910         * libio/wmemstream.c: Likewise.
30911         * libio/wstrops.c: Likewise.
30912         * libio/__fpurge.c: Likewise.
30913         * libio/__fsetlocking.c: Likewise.
30914         * assert/assert.c: Likewise.
30915         * debug/fgets_chk.c: Likewise.
30916         * debug/fgets_u_chk.c: Likewise.
30917         * debug/fread_chk.c: Likewise.
30918         * debug/fread_u_chk.c: Likewise.
30919         * debug/gets_chk.c: Likewise.
30920         * debug/obprintf_chk.c: Likewise.
30921         * debug/vasprintf_chk.c: Likewise.
30922         * debug/vdprintf_chk.c: Likewise.
30923         * debug/vsnprintf_chk.c: Likewise.
30924         * debug/vsprintf_chk.c: Likewise.
30925         * malloc/mtrace.c: Likewise.
30926         * misc/error.c: Likewise.
30927         * misc/syslog.c: Likewise.
30928         * stdio-common/asprintf.c: Likewise.
30929         * stdio-common/fxprintf.c: Likewise.
30930         * stdio-common/getw.c: Likewise.
30931         * stdio-common/isoc99_fscanf.c: Likewise.
30932         * stdio-common/isoc99_scanf.c: Likewise.
30933         * stdio-common/isoc99_vfscanf.c: Likewise.
30934         * stdio-common/isoc99_vscanf.c: Likewise.
30935         * stdio-common/isoc99_vsscanf.c: Likewise.
30936         * stdio-common/printf-prs.c: Likewise.
30937         * stdio-common/printf_fp.c: Likewise.
30938         * stdio-common/printf_fphex.c: Likewise.
30939         * stdio-common/printf_size.c: Likewise.
30940         * stdio-common/putw.c: Likewise.
30941         * stdio-common/scanf.c: Likewise.
30942         * stdio-common/sprintf.c: Likewise.
30943         * stdio-common/tmpfile.c: Likewise.
30944         * stdio-common/vfprintf.c: Likewise.
30945         * stdio-common/vfscanf.c: Likewise.
30946         * stdlib/strfmon_l.c: Likewise.
30947         * sunrpc/openchild.c: Likewise.
30948         * sunrpc/xdr_stdio.c: Likewise.
30949         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
30950         * sysdeps/mach/hurd/tmpfile.c: Likewise.
30951
30952 2012-05-24  Roland McGrath  <roland@hack.frob.com>
30953
30954         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
30955
30956         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
30957         in the third column, to generate for the shared library an IFUNC
30958         that uses _dl_vdso_vsym.
30959         * Makerules (COMPILE.c, compile-stdin.c): New variables.
30960         * Makeconfig (object-suffixes-noshared): New variable.
30961
30962         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
30963         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
30964         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
30965         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
30966
30967         [BZ #14132]
30968         * include/sys/time.h (__gettimeofday): Remove macro.
30969         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
30970         * time/gettimeofday.c (__gettimeofday): Remove #undef.
30971         Remove INTDEF.
30972         (__gettimeofday): Add libc_hidden_def.
30973         (gettimeofday): Add libc_hidden_weak.
30974         * sysdeps/mach/gettimeofday.c: Likewise.
30975         * sysdeps/posix/gettimeofday.c: Likewise.
30976         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
30977         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
30978         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
30979         (__gettimeofday_internal): Remove strong_alias.
30980         (__gettimeofday): Add libc_hidden_def.
30981         (gettimeofday): Add libc_hidden_weak.
30982         * sysdeps/unix/syscalls.list (gettimeofday):
30983         Remove __gettimeofday_internal alias.
30984
30985 2012-05-24  Daniel Jacobowitz  <drow@false.org>
30986             H.J. Lu  <hongjiu.lu@intel.com>
30987
30988         [BZ #12495]
30989         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
30990         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
30991         (largebin_index_32_big): New.
30992         (largebin_index): Use it for 16-byte alignment.
30993         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
30994         correction with front_misalign.
30995
30996 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
30997
30998         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
30999         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31000         Likewise.
31001         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31002         Likewise.
31003         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31004         Likewise.
31005         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31006         Likewise.
31007         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31008         Likewise.
31009         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31010         Likewise.
31011         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31012         Likewise.
31013         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31014         Likewise.
31015         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31016         Likewise.
31017         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31018         Likewise.
31019         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31020         Likewise.
31021         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31022         Likewise.
31023
31024         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31025         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31026
31027 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31028
31029         [BZ #10846]
31030         [BZ #14036]
31031         * math/libm-test.inc (exp_test): Add test from bug 14036.
31032         (pow_test): Add test from bug 10846.
31033
31034         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31035         and other flags.
31036         (special_function): Do not include flags in test name.
31037         (parse_args): Likewise.
31038         * sysdeps/i386/fpu/libm-test-ulps: Update.
31039         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31040         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31041         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31042         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31043
31044         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31045         exceptions.
31046         * math/libm-test.inc ("Philosophy"): Update comment about
31047         exception testing.
31048         (UNDERFLOW_EXCEPTION): New macro.
31049         (UNDERFLOW_EXCEPTION_OK): Likewise.
31050         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31051         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31052         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31053         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31054         (INVALID_EXCEPTION_OK): Update value.
31055         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31056         (OVERFLOW_EXCEPTION_OK): Likewise.
31057         (IGNORE_ZERO_INF_SIGN): Likewise.
31058         (test_exceptions): Handle underflow exceptions.
31059         (acos_test): Update for underflow exception expectations.
31060         (cexp_test): Likewise.
31061         (clog_test): Likewise.
31062         (clog10_test): Likewise.
31063         (csqrt_test): Likewise.
31064         (ctan_test): Likewise.
31065         (ctanh_test): Likewise.
31066         (exp_test): Likewise.
31067         (exp10_test): Likewise.
31068         (exp2_test): Likewise.
31069         (expm1_test): Likewise.
31070         (fma_test): Likewise.
31071         (j0_test): Likewise.
31072         (jn_test): Likewise.
31073         (nexttoward_test): Likewise.
31074         (pow_test): Likewise.
31075         (scalbn_test): Likewise.
31076         (scalbln_test): Likewise.
31077         (tan_test): Likewise.
31078         (y1_test): Likewise.
31079         * sysdeps/i386/fpu/libm-test-ulps: Update.
31080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31081
31082 2012-05-23  David S. Miller  <davem@davemloft.net>
31083
31084         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31085         (__libc_sigaction): Remove unused local variables.
31086
31087 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31088
31089         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31090
31091 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31092
31093         mktime: avoid signed integer overflow
31094         * time/mktime.c (__mktime_internal): Do not mishandle the case
31095         where diff == INT_MIN.
31096
31097         mktime: simplify computation of average
31098         * time/mktime.c (ranged_convert): Use new time_t_avg function
31099         instead of rolling our own (probably-slower) code.
31100
31101         mktime: do not assume signed right shift propagates sign bit
31102         * time/mktime.c (isdst_differ): New static function.
31103         (__mktime_internal): No need to normalize tm_isdst now.
31104         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
31105         tm_isdst values.
31106
31107         mktime: merge another wrapv change from gnulib
31108         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
31109         from some compilers.
31110
31111         mktime: remove incorrect attempt at unusual arithmetics
31112         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
31113         The code didn't really work on such machines anyway.
31114         (TYPE_MINIMUM): Assume two's complement.
31115         (twos_complement_arithmetic): Verify that long_int and time_t
31116         are two's complement (or unsigned, in the latter case).
31117
31118         mktime: check signed shifts on long_int and time_t, too
31119         * time/mktime.c (SHR): Check that shifts work as desired
31120         on the types long_int and time_t too, as SHR is used on
31121         such types.
31122
31123         mktime: do not assume 'long' is wide enough
31124         * time/mktime.c (verify): Move decl up.
31125         (long_int): New type.
31126         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
31127         to remove assumption in the code that 'long' is wide enough to
31128         store year values.  This assumption is not true on x32 and on
31129         some non-glibc platforms.
31130
31131         mktime: merge wrapv change from gnulib
31132         * time/mktime.c (WRAPV): New macro.
31133         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
31134         (guess_time_tm, __mktime_internal): Do not assume that signed
31135         integer overflow wraps around; modern compilers generate code
31136         where this assumption is no longer valid.
31137
31138 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31139
31140         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31141         Replace "jmp L(pseudo_end)" with "ret".
31142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
31143         Likewise.
31144
31145 2012-05-23  Andreas Jaeger  <aj@suse.de>
31146
31147         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
31148         * sysdeps/unix/sysv/linux/poll.c: Remove file.
31149
31150 2012-05-23  Andreas Jaeger  <aj@suse.de>
31151             Maximilian Attems  <max@stro.at>
31152
31153         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
31154         New macros.
31155
31156 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31157
31158         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
31159         code so that pseudo_end is just ret and the stack pointer is
31160         correct also for static library in error case.
31161
31162 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
31163
31164         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
31165         move to syscalls.list.
31166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
31167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31170
31171         * manual/install.texi (Running make install): Do not mention Linux
31172         kernel version for which pt_chown is not needed.
31173         (Linux): Do not mention problems with nscd with 2.0 kernels.
31174         * INSTALL: Regenerated.
31175
31176 2012-05-23  Andreas Jaeger  <aj@suse.de>
31177
31178         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
31179         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
31180         macro.
31181         * sysdeps/unix/sysv/linux/s390/bits/mman.h
31182         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31183         * sysdeps/unix/sysv/linux/sh/bits/mman.h
31184         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31185         * sysdeps/unix/sysv/linux/i386/bits/mman.h
31186         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31187         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
31188         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31189         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
31190         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31191         * sysdeps/unix/sysv/linux/bits/in.h
31192         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
31193
31194 2012-05-22  Roland McGrath  <roland@hack.frob.com>
31195
31196         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
31197         (PREPARE_VERSION): Just use assert instead, it will be elided
31198         under [NDEBUG] anyway.
31199
31200 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31201
31202         * sysdeps/unix/sysv/linux/Makefile: Include
31203         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
31204         (sysdep_routines): Remove sysctl.
31205         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
31206         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
31207         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
31208         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
31209         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
31210
31211 2012-05-22  Andreas Jaeger  <aj@suse.de>
31212
31213         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
31214         that pseudo_end is just ret and the stack pointer is correct also
31215         for static library in error case.
31216
31217 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
31218
31219         [BZ #14122]
31220         * nss/nsswitch.c (defconfig_entries): New variable.
31221         (__nss_database_lookup): Don't leak defconfig entries.
31222         (nss_parse_service_list): Don't leak on error paths.
31223         (free_database_entries): New function.
31224         (free_defconfig): New function.
31225         (free_mem): Move common code to free_database_entries.
31226
31227 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31228
31229         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
31230         Add arch_prctl.
31231         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
31232
31233         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
31234         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
31235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
31236         New macro.
31237         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
31238         (INTERNAL_SYSCALL_TYPES): Likewise.
31239         (LOAD_ARGS_TYPES_[1-6]): Likewise.
31240         (LOAD_REGS_TYPES_[1-6]): Likewise.
31241         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
31242         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
31243
31244 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31245
31246         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
31247         copysignl for GLIBC_2_0.
31248         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
31249         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
31250         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
31251         logbl for GLIBC_2_0.
31252         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31253         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
31254
31255 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31256
31257         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
31258         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31259
31260         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31261         Use "neg %eax".
31262
31263         * time/mktime.c: Update copyright years.
31264
31265 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31266
31267         mktime: merge comment-quoting-style change from gnulib
31268         * time/mktime.c: Quote 'like this' in comments.
31269         The GNU coding standards suggest that we no longer quote `like this',
31270         as "`" and "'" are typically rendered asymmetrically nowadays.
31271         The typical gnulib style is to quote 'like this' when quoting
31272         code, and "like this" when quoting English.
31273
31274         * time/mktime.c (compile-command): Add "-I.".
31275
31276         mktime: merge mktime-internal.h change from gnulib
31277         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
31278
31279         mktime: merge time_r change from gnulib
31280         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
31281
31282         mktime: merge DEBUG change from gnulib
31283         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
31284         case system <time.h> has a #define.
31285
31286         mktime: merge <sys/types.h> change from gnulib
31287         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
31288         since <time.t> is now guaranteed to define time_t.
31289
31290         mktime: merge HAVE_CONFIG_H change from gnulib
31291         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
31292
31293 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31294
31295         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31296         Use "neg %eax".
31297
31298         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
31299         __rlim_t cast.
31300         (struct rusage): Use anonymous union to pad each field to
31301         __syscall_slong_t.
31302
31303 2012-05-21  David S. Miller  <davem@davemloft.net>
31304
31305         * Makefules (o-iterator): Remove .s cases.
31306         (compile-command.s): Delete.
31307         (COMPILE.s): Delete.
31308         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
31309
31310 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
31311
31312         * configure.in (libc_cv_predef_stack_protector): Only consider
31313         "foobar" and "__stack_chk_fail" lines in libc_undefs.
31314         * configure: Regenerated.
31315
31316 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31317
31318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31319         New macro.  Use R*LP on int and pointer.
31320         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
31321         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
31322         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
31323         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
31324
31325         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
31326         [__WORDSIZE_TIME64_COMPAT32] instead of
31327         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
31328         (struct utmp): Likewise.
31329         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
31330         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
31331         Renamed to ...
31332         (__WORDSIZE_TIME64_COMPAT32): This.
31333         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
31334         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
31335         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
31336         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
31337         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
31338         (__WORDSIZE_TIME64_COMPAT32): New macro.
31339
31340 2012-05-21  Andreas Jaeger  <aj@suse.de>
31341
31342         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
31343         only if [SHARED]. Add prototype for __wcschr_ia32.
31344
31345 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31346
31347         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
31348         of %rbp unmolested in the jmp_buf while mangling the low bits.
31349         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
31350         unmolested high bits of %rbp while demangling the low bits.
31351         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31352
31353 2012-05-21  Andreas Jaeger  <aj@suse.de>
31354
31355         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
31356         * sunrpc/svc_simple.c: Use it for registerrpc.
31357         * sunrpc/xcrypt.c: Use it for passwd2des.
31358
31359         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
31360
31361 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31362
31363         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
31364         Don't define if [__SYSCALL_WORDSIZE != 32].
31365         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
31366         New macro.
31367
31368 2012-05-21  Bruno Haible  <bruno@clisp.org>
31369             Andreas Jaeger  <aj@suse.de>
31370
31371         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
31372         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
31373         inptr and inend for must_buffer_ch.
31374         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
31375         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
31376         * stdio-common/Makefile (tests): Remove bug15.
31377         (bug15-ENV): Remove macro.
31378         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
31379         anymore.
31380
31381 2012-05-19  Andreas Jaeger  <aj@suse.de>
31382             Roland McGrath  <roland@hack.frob.com>
31383
31384         * manual/contrib.texi: Completely rewritten. It contains now an
31385         alphabetical list of contributors and their contributions.
31386
31387 2012-05-21  Richard Henderson  <rth@twiddle.net>
31388
31389         * misc/getauxval.c (__getauxval): Use unsigned long int.
31390         * misc/sys/auxv.h: Include <sys/cdefs.h>.
31391         (getauxval): Use unsigned long int.
31392
31393 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31394
31395         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31396
31397 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31398
31399         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
31400         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
31401         __alignof__ (long double).
31402
31403 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31404
31405         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31406
31407 2012-05-20  Richard Henderson  <rth@twiddle.net>
31408
31409         * misc/getauxval.c: New file.
31410         * misc/sys/auxv.h: New file.
31411         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
31412         (routines): Add getauxval.
31413         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
31414         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
31415         * elf/dl-sysdep.c (_dl_auxv): Remove.
31416         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
31417         * elf/dl-support.c (_dl_auxv): New variable.
31418         (_dl_aux_init): Initialize it.
31419         * manual/startup.texi (Auxiliary Vector): New node.
31420         * sysdeps/generic/bits/hwcap.h: New file.
31421         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
31422         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
31423         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
31424         * sysdeps/sparc/sysdep.h: ... here.  Include it.
31425         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
31426         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
31427         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
31428         Update.
31429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
31430         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
31431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
31432         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
31433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31434         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
31436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
31437
31438 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31439
31440         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31441
31442 2012-05-19  David S. Miller  <davem@davemloft.net>
31443
31444         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31445
31446 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31447
31448         [BZ #14123]
31449         * math/s_ccosh.c: Include <float.h>
31450         (__ccosh): Avoid internal overflow calculating sinh and cosh
31451         values before multiplying by sin and cos values.
31452         * math/s_ccoshf.c: Likewise.
31453         * math/s_ccoshl.c: Likewise.
31454         * math/s_csin.c: Likewise.
31455         * math/s_csinf.c: Likewise.
31456         * math/s_csinl.c: Likewise.
31457         * math/s_csinh.c: Likewise.
31458         * math/s_csinhf.c: Likewise.
31459         * math/s_csinhl.c: Likewise.
31460         * math/libm-test.inc (ccos_test): Add more tests.
31461         (ccosh_test): Likewise.
31462         (csin_test): Likewise.
31463         (csinh_test): Likewise.
31464         * sysdeps/i386/fpu/libm-test-ulps: Update.
31465         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31466
31467 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
31468
31469         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
31470         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
31471
31472         * sysdeps/x86_64/x32/_itoa.h: Add comment.
31473
31474 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31475
31476         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
31477         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
31478         * sysdeps/powerpc/soft-fp/Versions: Likewise.
31479         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
31480         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
31481         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
31482         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
31483         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
31484         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
31485         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
31486         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
31487         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
31488         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
31489         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
31490         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
31491         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
31492         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
31493         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
31494         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
31495         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
31496         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
31497         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
31498         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
31499         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
31500         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
31501         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
31502         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
31503         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
31504         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
31505         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
31506         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
31507
31508 2012-05-18  Andreas Jaeger  <aj@suse.de>
31509
31510         * csu/.gitignore: Delete.
31511
31512 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31513
31514         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
31515         (timex): Use __syscall_slong_t.
31516
31517 2012-05-18  Andreas Jaeger  <aj@suse.de>
31518             Carlos O'Donell  <carlos_odonell@mentor.com>
31519
31520         * manual/install.texi (Configuring and compiling): Update
31521         description about files modified in the source directory.
31522         * INSTALL: Regenerated.
31523
31524 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31525
31526         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
31527         value.  Use "or" to set return value to -1.
31528         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
31529         negate return value.
31530
31531 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31532
31533         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
31534         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
31535         failure if the compiler has Graphite support disabled.
31536         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
31537         Likewise.
31538         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
31539         (CFLAGS-memmove.c): Likewise.
31540         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
31541         Likewise.
31542
31543 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31544
31545         * sysdeps/x86_64/x32/_itoa.h: New file.
31546
31547         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
31548         getdents system call only if kernel and user dirents have the
31549         same d_ino and d_off.
31550
31551         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
31552         LLONG_MAX != LONG_MAX.
31553         (_itoa_word): Use _ITOA_WORD_TYPE on value.
31554         (_fitoa_word): Likewise.
31555
31556         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
31557         years.
31558         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
31559         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
31560         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
31561
31562         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
31563         include <bits/wordsize.h>.  Check __x86_64__ instead of
31564         __WORDSIZE.
31565         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
31566         if __x86_64__ is defined.  Use anonymous union on fpstate.
31567
31568         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
31569         anonymous union.
31570
31571 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
31572
31573         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31574         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
31575         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
31576         Refer to _rtld_local_ro instead of _rtld_global_ro.
31577         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
31578         Likewise.
31579         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
31580         Likewise.
31581         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
31582         Likewise.
31583         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
31584         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
31585         of _rtld_global, and rtld_progname instead of _dl_argv[0].
31586
31587         * sysdeps/powerpc/powerpc32/dl-machine.c
31588         (__elf_machine_runtime_setup) [PROF]: Don't reference
31589         _dl_prof_resolve.
31590
31591 2012-05-18  Andreas Jaeger  <aj@suse.de>
31592
31593         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
31594         function only available for GCCs before 3.4 since GCC 3.4
31595         introduced a builtin.
31596         (lrint): Likewise.
31597         (llrintf): Likewise.
31598         (llrint): Likewise.
31599         (fmaxf): Likewise.
31600         (fmax): Likewise.
31601         (fminf): Likewise.
31602         (fmin): Likewise.
31603         (rint): Likewise.
31604         (rintf): Likewise.
31605         (nearbyint): Likewise.
31606         (nearbyintf): Likewise.
31607         (ceil): Likewise.
31608         (ceilf): Likewise.
31609         (floor): Likewise.
31610         (floorf): Likewise.
31611
31612 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31613
31614         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
31615         on both fields and cast pointer to __syscall_ulong_t.
31616
31617         * bits/types.h (__fsword_t): New type.
31618         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
31619         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
31620         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
31621         (__FSWORD_T_TYPE): Likewise.
31622         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
31623         (__FSWORD_T_TYPE): Likewise.
31624         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
31625         (__FSWORD_T_TYPE): Likewise.
31626         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
31627         (__FSWORD_T_TYPE): Likewise.
31628         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
31629         __SWORD_TYPE with __fsword_t.
31630         (statfs64): Likewise.
31631
31632 2012-05-17  David S. Miller  <davem@davemloft.net>
31633
31634         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
31635
31636 2012-05-17  Andreas Jaeger  <aj@suse.de>
31637
31638         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
31639         warning.
31640
31641 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31642
31643         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
31644
31645 2012-05-17  Andreas Jaeger  <aj@suse.de>
31646
31647         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
31648         when it is used.
31649
31650 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
31651
31652         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
31653
31654 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31655
31656         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
31657         * sysdeps/x86_64/tst-mallocalign1.c: New file.
31658
31659 2012-05-17  Andreas Jaeger  <aj@suse.de>
31660             Carlos O'Donell  <carlos_odonell@mentor.com>
31661
31662         [BZ #14059]
31663         * sysdeps/x86_64/multiarch/init-arch.h
31664         (bit_YMM_Usable): Rename to...
31665         (bit_AVX_Usable): ... this.
31666         (bit_FMA4_Usable): New macro.
31667         (bit_XMM_state): New macro.
31668         (bit_YMM_state): New macro.
31669         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
31670         [__ASSEMBLER__] (index_AVX_Usable): ... this.
31671         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
31672         (CPUID_OSXSAVE): New macro.
31673         (CPUID_AVX): New macro.
31674         (CPUID_FMA4): New macro.
31675         (index_YMM_Usable): Rename to...
31676         (index_AVX_Usable): ... this.
31677         (HAS_AVX): Use HAS_ARCH_FEATURE.
31678         (HAS_FMA4): Likewise.
31679         (HAS_YMM_USABLE): Remove.
31680         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31681         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
31682         are present.
31683         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
31684         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
31685         * sysdeps/x86_64/multiarch/Makefile: Likewise.
31686         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
31687         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
31688
31689 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
31690
31691         * math/libm-test.c: Support platforms without multiple rounding modes.
31692         * math/bug-nextafter.c: Support platforms without FP exceptions.
31693         * math/bug-nexttoward.c: Likewise.
31694         * math/test-fenv.c: Likewise.
31695         * math/test-misc.c: Likewise.
31696         * stdlib/bug-getcontext.c: Likewise.
31697
31698 2012-05-17  Andreas Jaeger  <aj@suse.de>
31699
31700         * manual/examples/search.c (critter_cmp): Change signature to
31701         avoid warnings.
31702         * manual/string.texi (Collation Functions): Likewise.
31703
31704 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31705
31706         * bits/types.h: Fold copyright years.
31707         * bits/typesizes.h: Likewise.
31708         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
31709         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
31710         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
31711         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
31712         * time/time.h: Likewise.
31713
31714 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
31715
31716         [BZ #208]
31717         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
31718         in instead of returning them.  Return void.
31719         (__libc_mallinfo): Accumulate over all arenas.
31720         (__malloc_stats): Adjust for change in int_mallinfo interface.
31721
31722 2012-05-16  Roland McGrath  <roland@hack.frob.com>
31723
31724         [BZ #10375]
31725         * configure.in (NM): Add AC_CHECK_TOOL for it.
31726         (libc_extra_cflags): New substituted variable.
31727         Check for -fstack-protector being used implicitly.
31728         * configure: Regenerated.
31729         * config.make.in (config-extra-cflags): New variable,
31730         gets @libc_extra_cflags@.
31731         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
31732
31733         [BZ #10375]
31734         * configure.in: Check for _FORTIFY_SOURCE being predefined.
31735         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
31736         * configure: Regenerated.
31737         * config.make.in (CPPUNDEFS): New substituted variable.
31738         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
31739         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
31740         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
31741
31742 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31743
31744         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
31745         (mq_attr): Use __syscall_slong_t.
31746
31747 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31748
31749         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
31750         Check __x86_64__ instead of __WORDSIZE.
31751         (_STAT_VER_LINUX): Likewise.
31752         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
31753         __syscall_ulong_t and __syscall_slong_t.
31754         (stat64): Likewise.
31755
31756 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31757
31758         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
31759
31760 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31761
31762         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
31763
31764 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31765
31766         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
31767         __syscall_ulong_t.
31768
31769         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
31770         include <bits/wordsize.h>.  Check __x86_64__ instead of
31771         __WORDSIZE.
31772         (greg_t): Use "__extension__ long long int" if __x86_64__ is
31773         defined.
31774         (mcontext_t): Replace "unsigned long" with "unsigned long long".
31775
31776         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
31777         include <bits/wordsize.h>.  Check __x86_64__ instead of
31778         __WORDSIZE.
31779         (user_regs_struct): Use "__extension__ unsigned long long"
31780         instead of "unsigned long" if __x86_64__ is defined.
31781         (user): Likewise.  Pad after pointer field if __ILP32__ is
31782         defined.
31783
31784 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
31785
31786         * configure.in (makeinfo): Require version 4.5 or later.  Allow
31787         versions 5 to 9.
31788         * configure: Regenerated.
31789         * manual/install.texi (texinfo): Increase version requirement to
31790         4.5 or later.
31791         * INSTALL: Regenerated.
31792
31793         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
31794
31795 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31796
31797         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
31798
31799         * sysdeps/x86_64/x32/ffs.c: New file.
31800
31801         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
31802         __syscall_ulong_t.
31803         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
31804         defined.  Use __syscall_ulong_t.
31805         (shminfo): Use __syscall_ulong_t.
31806         (shm_info): Likewise.
31807
31808         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
31809         __syscall_ulong_t.
31810
31811         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
31812         <bits/wordsize.h>.
31813         (msgqnum_t): Use __syscall_ulong_t.
31814         (msglen_t): Likewise.
31815         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
31816         __syscall_ulong_t.
31817
31818         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
31819         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31820
31821         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
31822
31823         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
31824         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
31825
31826         * sysvipc/sys/msg.h (msgbuf): Replace long int with
31827         __syscall_slong_t.
31828
31829         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
31830         include <bits/wordsize.h>.  Check __x86_64__ instead of
31831         __WORDSIZE.
31832
31833         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
31834         "unsigned long long int" if __x86_64__ is defined.
31835         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
31836
31837         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
31838         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31839         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
31840
31841         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
31842         <stdint.h>.
31843         (GET_PC): Cast to uintptr_t first.
31844         (GET_FRAME): Likewise.
31845         (GET_STACK): Likewise.
31846
31847         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
31848         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
31849         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
31850         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
31851         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
31852         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
31853         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
31854         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
31855         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31856         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
31857         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
31858         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
31859         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
31860         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
31861         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
31862         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
31863         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
31864         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
31865         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
31866         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
31867         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
31868         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
31869         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
31870         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
31871         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
31872         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
31873         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
31874         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
31875         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
31876
31877 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
31878
31879         * Makerules (+depfiles): Also collect depfiles from .oS in
31880         $(extra-objs).
31881         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
31882         .oS, $(libnldbl-routines)).
31883
31884         * Makerules (native-compile-mkdep-flags): Define.
31885         * sunrpc/Makefile (extra-objs): Add $(addprefix
31886         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
31887         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
31888         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
31889         calling $(make-target-directory).
31890
31891 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31892
31893         * bits/types.h (__snseconds_t): Removed.
31894         * time/time.h (struct timespec): Replace __snseconds_t with
31895         __syscall_slong_t.
31896         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
31897         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
31898         Likewise.
31899         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
31900         (__SNSECONDS_T_TYPE): Likewise.
31901         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
31902         (__SNSECONDS_T_TYPE): Likewise.
31903         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
31904         (__SNSECONDS_T_TYPE): Likewise.
31905
31906 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31907
31908         * sysdeps/mach/hurd/bits/typesizes.h
31909         (__SYSCALL_SLONG_TYPE): New macro.
31910         (__SYSCALL_ULONG_TYPE): Likewise.
31911
31912 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31913
31914         * bits/types.h (__syscall_slong_t): New type.
31915         (__syscall_ulong_t): Likewise.
31916
31917         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
31918         (__SYSCALL_ULONG_TYPE): Likewise.
31919         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
31920         (__SYSCALL_SLONG_TYPE): Likewise.
31921         (__SYSCALL_ULONG_TYPE): Likewise.
31922         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
31923         (__SYSCALL_SLONG_TYPE): Likewise.
31924         (__SYSCALL_ULONG_TYPE): Likewise.
31925         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
31926         (__SYSCALL_SLONG_TYPE): Likewise.
31927         (__SYSCALL_ULONG_TYPE): Likewise.
31928
31929 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31930
31931         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
31932         Add sigaltstack-offsets.sym.
31933         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
31934         <sigaltstack-offsets.h>.
31935         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
31936         longjmp_msg pointer.
31937         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
31938         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
31939         signal stack.
31940         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
31941
31942 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
31943
31944         * elf/stackguard-macros.h: Remove file.
31945         * sysdeps/generic/stackguard-macros.h: New file.
31946         * sysdeps/i386/stackguard-macros.h: Likewise.
31947         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
31948         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
31949         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
31950         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
31951         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
31952         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
31953         * sysdeps/x86_64/stackguard-macros.h: Likewise.
31954         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
31955         <elf/stackguard-macros.h>.
31956
31957         [BZ #14109]
31958         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
31959         __aligned__ in attribute.
31960         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
31961         (gregset_t): Likewise.
31962
31963 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31964
31965         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
31966         * sysdeps/x86_64/64/Implies-after: Here.  New file.
31967         * sysdeps/x86_64/x32/Implies-after: New file.
31968
31969 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31970
31971         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
31972         and access return value for _dl_profile_fixup.  Use R10_LP to
31973         load frame size.
31974
31975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31976
31977         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
31978
31979 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31980
31981         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
31982         * sysdeps/x86_64/x32/sysdep.h: New file.
31983
31984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
31985
31986         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
31987         * sysdeps/x86_64/setjmp.S: Likewise.
31988
31989 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31990
31991         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
31992         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
31993         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
31994         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
31995         remove unused global constant.
31996
31997 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
31998
31999         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32000         include of <not-cancel.h>.
32001
32002 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32003
32004         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32005
32006 2012-05-15  Jeff Law  <law@redhat.com>
32007             Andreas Jaeger  <aj@suse.de>
32008
32009         [BZ #13594]
32010         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32011         out from...
32012         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32013         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32014         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32015         code changing __hst_map_handle.map.
32016
32017 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32018
32019         * configure.in (sysnames): Look for Implies-before and Implies-after
32020         files.
32021         * configure: Regenerated.
32022
32023 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32024
32025         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32026         8-byte data alignment with LP_SIZE alignment.
32027
32028 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32029
32030         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32031         into R10_LP.
32032
32033 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32034
32035         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32036
32037 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32038
32039         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32040         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32041         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32042         Likewise.
32043         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32044
32045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32046
32047         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32048         (stackinfo_sub_sp): Likewise.
32049
32050 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32051
32052         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32053         RAX_LP.
32054
32055 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32056
32057         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32058         into R*_LP.
32059
32060 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32061
32062         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32063         sizes into R*_LP.
32064
32065 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32066
32067         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32068
32069 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32070
32071         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32072         into R11_LP and load __x86_64_shared_cache_size_half into
32073         R8_LP.
32074
32075 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32076
32077         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32078         R8_LP.
32079
32080 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32081
32082         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32083         logb for POWER7.
32084         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32085         logbf for POWER7.
32086         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32087         logbl for POWER7.
32088         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32089         powerpc32/power7/fpu/s_logb.c via #include.
32090         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32091         powerpc32/power7/fpu/s_logbf.c via #include.
32092         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
32093         powerpc32/power7/fpu/s_logbl.c via #include.
32094
32095 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32096
32097         * README.libm: Remove file.
32098
32099 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32100
32101         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
32102         count for x32.  Use R*_LP and omit operand-size suffix.
32103
32104 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32105
32106         * shlib-versions: Move x86_64-.*-linux.* entries to ...
32107         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
32108         * sysdeps/x86_64/x32/shlib-versions: New file.
32109
32110 2012-05-14  Roland McGrath  <roland@hack.frob.com>
32111
32112         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
32113         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
32114         Use _dl_fatal_printf instead.
32115
32116 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32117
32118         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
32119         set if not set by the user.  Do not allow for being unset.
32120         * sysdeps/unix/sysv/linux/configure: Regenerated.
32121
32122 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32123
32124         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
32125         the `q' suffix from lea and replace .quad with ASM_ADDR.
32126
32127 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32128
32129         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
32130         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
32131         instead of $17.
32132         (PTR_DEMANGLE): Likewise.
32133
32134 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32135
32136         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
32137         (LP_OP): Likewise.
32138         (ASM_ADDR): Likewise.
32139         (RAX_LP): Likewise.
32140         (RBP_LP): Likewise.
32141         (RBX_LP): Likewise.
32142         (RCX_LP): Likewise.
32143         (RDI_LP): Likewise.
32144         (RSI_LP): Likewise.
32145         (RSP_LP): Likewise.
32146         (R8_LP): Likewise.
32147         (R9_LP): Likewise.
32148         (R10_LP): Likewise.
32149         (R10_LP): Likewise.
32150         (R11_LP): Likewise.
32151         (R12_LP): Likewise.
32152         (R13_LP): Likewise.
32153         (R14_LP): Likewise.
32154         (R15_LP): Likewise.
32155
32156 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32157
32158         * sysdeps/x86_64/x32/dl-machine.h: New file.
32159
32160 2012-05-14  Andreas Jaeger  <aj@suse.de>
32161
32162         * manual/Makefile (subdir): Remove export of subdir.
32163         (all): Remove target.
32164         (.PHONY): Remove all from list.
32165         (mkinstalldirs): Remove.
32166         (.PHONY): Remove installdirs from list.
32167         ($(inst_infodir)/libc.info): Use make-target-directory.
32168         (installdirs): Remove.
32169         (subdir_%): Remove.
32170         (glibc-targets): Remove.
32171         (lib): Remove.
32172         (stubs): Remove.
32173         ($(objpfx)stubs ../po/manual.pot): Remove.
32174         ($(objpfx)stamp%): Remove.
32175         (make-target-directory): Remove.
32176         (subdir_install): Remove.
32177         (routines): Remove.
32178         (aux): Remove.
32179         (sources): Remove.
32180         (objects): Remove.
32181         (headers): Remove.
32182
32183         [BZ #13750]
32184         * manual/.gitignore: Remove, it's not needed anymore.
32185         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
32186         all files in it.
32187         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
32188         directory.
32189         (texis): Renamed to $(objpfx)texis.
32190         (texis-path): New, contains path to generated files.
32191         (chapters.%): Use texis-path for complete path, add extra argument
32192         libc-texinfo.sh.
32193         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
32194         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
32195         (summary,texi, stamp-summary): Use complete path of
32196         files. Generate files in build dir.
32197         (dir-add.texi): Build in build dir.
32198         (libm-err.texi,stamp-libm-err): Likewise.
32199         (version.texi, stamp-version): Likewise.
32200         (.%c.texi): Likewise.
32201         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
32202         (mostlyclean): Remove target.
32203         (realclean): Remove target.
32204         (generated): Add new variable with contents from mostlyclean and
32205         realclean, remove entries duplicated in common-mostlyclean, add
32206         stamp-libm-err and stamp-version.
32207         (generated-dirs): Add libc directory.
32208         ($(inst_infodir)/libc.info): Install files from build dir.
32209
32210         * manual/install.texi (Configuring and compiling): Adjust since
32211         the info files are not part of the tar ball anymore.
32212
32213 2012-05-14  Andreas Jaeger  <aj@suse.de>
32214
32215         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
32216         variable.
32217
32218 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32219
32220         [BZ #13717]
32221         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32222         to 2.2.0 where earlier.
32223         * sysdeps/unix/sysv/linux/configure: Regenerated.
32224         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
32225         Remove conditional code.
32226         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
32227         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
32228         Remove conditional code.
32229         [!__NR_lchown]: Likewise.
32230         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32231         [__NR_lchown]: Likewise.
32232         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
32233         comment referencing __ASSUME_LCHOWN_SYSCALL.
32234         * sysdeps/unix/sysv/linux/i386/sigaction.c
32235         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32236         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32237         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
32238         Remove conditional code.
32239         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
32240         (__protocol_available): Remove #if 0 code.
32241         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
32242         conditional code.
32243         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
32244         * sysdeps/unix/sysv/linux/kernel-features.h
32245         (__ASSUME_GETCWD_SYSCALL): Don't define.
32246         (__ASSUME_REALTIME_SIGNALS): Likewise.
32247         (__ASSUME_PREAD_SYSCALL): Likewise.
32248         (__ASSUME_PWRITE_SYSCALL): Likewise.
32249         (__ASSUME_POLL_SYSCALL): Likewise.
32250         (__ASSUME_LCHOWN_SYSCALL): Likewise.
32251         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
32252         non-SPARC.
32253         (__ASSUME_SIOCGIFNAME): Don't define.
32254         (__ASSUME_MSG_NOSIGNAL): Likewise.
32255         (__ASSUME_SENDFILE): Define unconditionally.
32256         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
32257         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
32258         conditional code.
32259         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
32260         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
32261         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32262         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32263         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
32264         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32265         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
32267         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32268         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32269         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
32270         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32271         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
32273         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32274         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
32276         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32277         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
32279         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32280         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32281         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
32282         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32283         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
32285         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32286         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
32288         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32289         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32290         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
32291         Remove conditional code.
32292         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32293         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32294         Remove conditional code.
32295         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32296         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
32297         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
32298         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32299         Remove conditional code.
32300         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32301         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
32302         Remove conditional code.
32303         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32304         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
32305         Remove conditional code.
32306         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32307         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32308         Remove conditional code.
32309         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32310         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32311         Remove conditional code.
32312         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32313         * sysdeps/unix/sysv/linux/sh/pwrite64.c
32314         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32315         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32316         * sysdeps/unix/sysv/linux/sigaction.c
32317         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32318         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32319         * sysdeps/unix/sysv/linux/sigpending.c
32320         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32321         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32322         * sysdeps/unix/sysv/linux/sigprocmask.c
32323         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32324         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32325         * sysdeps/unix/sysv/linux/sigsuspend.c
32326         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32327         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32328         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32329         (__libc_missing_rt_sigs): Remove.
32330         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
32331         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
32332         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
32333         Remove conditional code.
32334         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
32335         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
32336         return 1.
32337         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
32338         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
32339         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
32340         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
32341
32342 2012-05-14  Andreas Jaeger  <aj@suse.de>
32343
32344         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
32345         it's not used in glibc.
32346         (__coshm1): Likewise.
32347         (__acosh1p): Likewise.
32348         (__sgn): Likewise.
32349
32350         * manual/string.texi (Copying and Concatenation): Add missing
32351         variable in concat example.
32352         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
32353
32354 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32355
32356         [BZ #14103]
32357         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
32358         __builtin_clzl with __builtin_clzll.
32359
32360 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32361
32362         [BZ #14104]
32363         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
32364         libc_freeres_ptr.
32365
32366 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32367
32368         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
32369         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
32370         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
32371         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
32372
32373 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
32374
32375         * NEWS: Update ia64 info.
32376
32377 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
32378
32379         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
32380         used as bcopy.
32381
32382 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
32383
32384         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
32385         * sysdeps/unix/syscalls.list (dup3): Likewise.
32386         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
32387         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
32388
32389 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32390
32391         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
32392         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
32393
32394 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32395
32396         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
32397         thread pointer.
32398         (TLS_IE): Use mov/add instead of movq/addq to load thread
32399         pointer.
32400         (TLS_GD_PREFIX): New.
32401         (TLS_GD): Use it.
32402
32403 2012-05-11  David S. Miller  <davem@davemloft.net>
32404
32405         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
32406         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
32407         (_FPU_SETCW): Likewise.
32408
32409 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32410
32411         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
32412         is 32-byte aligned.
32413
32414 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
32415
32416         [BZ #11837]
32417         * iconvdata/gb18030.c: Update tables.
32418         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
32419         characters specially.
32420         (BODY for TO_LOOP): Add encoding of missing ranges.
32421
32422 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
32423
32424         [BZ #13673]
32425         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
32426         * sysdeps/mach/hurd/dup3.c: Likewise.
32427         * sysdeps/mach/hurd/readlinkat.c: Likewise.
32428         * sysdeps/powerpc/memmove.c:: Likewise.
32429
32430 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32431
32432         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
32433         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
32434
32435 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32436
32437         * elf/elf.h (R_X86_64_RELATIVE64): New.
32438         (R_X86_64_NUM): Updated.
32439         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
32440         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
32441         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
32442         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
32443         tst-quad1pie tst-quad2pie
32444         (modules-names): Add tst-quadmod1 tst-quadmod2.
32445         ($(objpfx)tst-quad1): New dependency.
32446         ($(objpfx)tst-quad2): Likewise.
32447         ($(objpfx)tst-quad1pie): Likewise.
32448         ($(objpfx)tst-quad2pie): Likewise.
32449         * sysdeps/x86_64/tst-quad1.c: New file.
32450         * sysdeps/x86_64/tst-quad1pie.c: New file.
32451         * sysdeps/x86_64/tst-quad2.c: Likewise.
32452         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
32453         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
32454         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
32455         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
32456         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
32457
32458 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32459
32460         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
32461         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
32462         * streams/stropts.h (t_scalar_t): Define type.
32463
32464         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
32465         (_PATH_PRESERVE): Set to "/var/lib".
32466         (_PATH_RWHODIR): Set to "/var/spool/rwho".
32467
32468         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
32469         instead of int.
32470
32471         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
32472         if __dir_mkfile succeeded.
32473
32474         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
32475         checking for _hurd_dtablesize.  Unlock it right after having
32476         finished _hurd_dtable allocation.
32477
32478 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32479
32480         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
32481         * sysdeps/mach/hurd/configure: Regenerated.
32482         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
32483         special-casing to...
32484         * sysdeps/gnu/configure.in: ... this new file.
32485         * sysdeps/unix/sysv/linux/configure: Regenerated.
32486         * sysdeps/gnu/configure: New generated file.
32487
32488         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
32489         for Linux: use nsec instead of usec, as well as:
32490         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
32491         members of type struct timespec.
32492         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
32493         New macros.
32494         (struct stat64): Likewise.
32495         (_STATBUF_ST_NSEC): New macro.
32496         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
32497
32498         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
32499         __strtoul_internal rather than strtoul.
32500
32501 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32502
32503         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
32504         and reject them.
32505
32506 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32507
32508         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
32509         which preserves existing values.
32510         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
32511
32512 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32513
32514         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
32515         TIMEOUT values.  Return EINVAL for NFDS values either negative or
32516         greater than FD_SETSIZE.
32517
32518 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32519
32520         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
32521         allocated, call __vm_protect to finish enabling the existing space, and
32522         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
32523         allocate the remainder.
32524
32525 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32526
32527         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
32528         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
32529
32530 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32531
32532         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
32533         sysdeps/mach/hurd/readlink.c.
32534
32535         * posix/tst-sysconf.c (posix_options): Only use
32536         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
32537         _POSIX_SYNCHRONIZED_IO when they are defined
32538         * sysdeps/mach/hurd/bits/posix_opt.h:
32539         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
32540         (_XOPEN_REALTIME): Undefine macro.
32541         (_XOPEN_REALTIME_THREADS): Undefine macro.
32542         (_XOPEN_SHM): Undefine macro.
32543         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
32544         macro to -1.
32545         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
32546         macro to -1.
32547         (_POSIX_ASYNC_IO): Undefine macro.
32548         (_POSIX_PRIORITIZED_IO): Undefine macro.
32549         (_POSIX_SPIN_LOCKS): Define macro to -1.
32550
32551         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
32552         SA_NODEFER, SA_RESETHAND.
32553         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
32554         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
32555         F_DUPFD_CLOEXEC.
32556
32557 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32558
32559         * elf/Makefile (pldd-modules): Define unconditionally.
32560
32561 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32562
32563         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
32564
32565 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32566
32567         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
32568         Return ENOENT when name is empty.
32569         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
32570
32571 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32572
32573         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
32574
32575         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
32576
32577 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32578
32579         Fix mlock in all cases except non-readable pages.
32580         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
32581         instead of VM_PROT_ALL as parameter to __vm_wire function.
32582
32583         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
32584         (__mkdir): When path is `/', just fail with EEXIST.
32585         * sysdeps/mach/hurd/mkdirat.c: Likewise.
32586
32587 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32588
32589         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
32590         <sys/uio.h> (for writev).
32591         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
32592         and <sys/param.h> (for MIN).
32593
32594 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32595
32596         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
32597         REQUESTED_TIME.  Properly set the remaining time and return EINTR
32598         if interrupted.
32599
32600 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32601
32602         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
32603         Depend on against $(link-rpcuserlibs).
32604
32605 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32606
32607         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
32608         (__libc_stack_end): Do not use attribute_relro.
32609         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
32610         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
32611         to libthread-provided value.
32612         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
32613         attribute_relro.
32614
32615 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32616
32617         [BZ #3748]
32618         * bits/libc-lock.h (__libc_once_get): New macro.
32619         * sysdeps/mach/bits/libc-lock.h: Likewise.
32620         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
32621         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
32622         instead of using implementation details.
32623
32624         * libio/fileops.c: Unconditionally include <kernel-features.h>.
32625         * libio/freopen.c: Likewise.
32626         * libio/freopen64.c: Likewise.
32627         * misc/syslog.c: Likewise.
32628         * nscd/connections.c: Likewise.
32629         * nscd/netgroupcache.c: Likewise.
32630         * sysdeps/posix/getcwd.c: Likewise.
32631
32632 2012-05-10  Roland McGrath  <roland@hack.frob.com>
32633
32634         * math/w_ilogbf.c: Add #include <limits.h>.
32635
32636 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32637
32638         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
32639         path instead of returning without unlocking.
32640
32641         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
32642         immediate-write ioctls.
32643         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
32644
32645 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32646
32647         * sysdeps/mach/hurd/i386/init-first.c (init): Use
32648         __builtin_frame_address instead of making assumptions about the
32649         location of the return address relative to DATA.  Force early load of
32650         the return address.
32651         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
32652         __builtin_frame_address.
32653
32654         dup3 for GNU Hurd.
32655         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
32656         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
32657         implement dup3 and do some further code clean-ups.
32658         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
32659         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
32660
32661 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32662
32663         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
32664
32665         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
32666         HURD_CRITICAL_END around holding _hurd_dtable_lock.
32667         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
32668         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
32669         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
32670         d->port.lock.
32671
32672         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
32673         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
32674         when handler == SIG_ERR, not when handler != SIG_ERR.
32675
32676 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32677
32678         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
32679         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
32680         definitions.
32681
32682         accept4 for GNU Hurd.
32683         * include/sys/socket.h (__libc_accept4): New prototype.
32684         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
32685         to implement __libc_accept4.
32686         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
32687         __libc_accept4.
32688         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
32689
32690         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
32691         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
32692         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
32693         signal-defines.sym.
32694
32695 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32696
32697         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
32698
32699 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32700
32701         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
32702         assertion on O_CLOEXEC flag.
32703         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
32704         * hurd/intern-fd.c: Likewise.
32705         * hurd/port2fd.c: Likewise.
32706
32707 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32708
32709         [BZ #3906]
32710         * bits/in.h (IPV6_PKTINFO): Define new macro.
32711         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
32712
32713 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32714
32715         [BZ #13954]
32716         [BZ #13955]
32717         [BZ #13956]
32718         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
32719         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
32720         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
32721         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
32722         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
32723         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
32724         * math/libm-test.inc (logb_test) : Additional logb tests.
32725
32726 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
32727             Andreas Jaeger  <aj@suse.de>
32728
32729         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
32730         * configure: Regenerated.
32731         * config.h.in (LINK_OBSOLETE_RPC): New macro.
32732         * config.make.in (link-obsolete-rpc): New substituted variable.
32733         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
32734         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
32735         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
32736         (shared-only-routines): Don't set it under [link-obsolete-rpc],
32737         so that libc.a contains the symbols.
32738         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
32739         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
32740         * sunrpc/auth_none.c: Likewise.
32741         * sunrpc/auth_unix.c: Likewise.
32742         * sunrpc/authdes_prot.c: Likewise.
32743         * sunrpc/authuxprot.c: Likewise.
32744         * sunrpc/clnt_gen.c: Likewise.
32745         * sunrpc/clnt_perr.c: Likewise.
32746         * sunrpc/clnt_raw.c: Likewise.
32747         * sunrpc/clnt_simp.c: Likewise.
32748         * sunrpc/clnt_tcp.c: Likewise.
32749         * sunrpc/clnt_udp.c: Likewise.
32750         * sunrpc/clnt_unix.c: Likewise.
32751         * sunrpc/des_crypt.c: Likewise.
32752         * sunrpc/des_soft.c: Likewise.
32753         * sunrpc/get_myaddr.c: Likewise.
32754         * sunrpc/key_call.c: Likewise.
32755         * sunrpc/key_prot.c: Likewise.
32756         * sunrpc/netname.c: Likewise.
32757         * sunrpc/pm_getmaps.c: Likewise.
32758         * sunrpc/pm_getport.c: Likewise.
32759         * sunrpc/pmap_clnt.c: Likewise.
32760         * sunrpc/pmap_prot.c: Likewise.
32761         * sunrpc/pmap_prot2.c: Likewise.
32762         * sunrpc/pmap_rmt.c: Likewise.
32763         * sunrpc/publickey.c: Likewise.
32764         * sunrpc/rpc_cmsg.c: Likewise.
32765         * sunrpc/rpc_common.c: Likewise.
32766         * sunrpc/rpc_dtable.c: Likewise.
32767         * sunrpc/rpc_prot.c: Likewise.
32768         * sunrpc/rpc_thread.c: Likewise.
32769         * sunrpc/rtime.c: Likewise.
32770         * sunrpc/svc.c: Likewise.
32771         * sunrpc/svc_auth.c: Likewise.
32772         * sunrpc/svc_raw.c: Likewise.
32773         * sunrpc/svc_run.c: Likewise.
32774         * sunrpc/svc_tcp.c: Likewise.
32775         * sunrpc/svc_udp.c: Likewise.
32776         * sunrpc/svc_unix.c: Likewise.
32777         * sunrpc/svcauth_des.c: Likewise.
32778         * sunrpc/xcrypt.c: Likewise.
32779         * sunrpc/xdr.c: Likewise.
32780         * sunrpc/xdr_array.c: Likewise.
32781         * sunrpc/xdr_float.c: Likewise.
32782         * sunrpc/xdr_intXX_t.c: Likewise.
32783         * sunrpc/xdr_mem.c: Likewise.
32784         * sunrpc/xdr_rec.c: Likewise.
32785         * sunrpc/xdr_ref.c: Likewise.
32786         * sunrpc/xdr_sizeof.c: Likewise.
32787         * sunrpc/xdr_stdio.c: Likewise.
32788
32789 2012-05-10  Roland McGrath  <roland@hack.frob.com>
32790
32791         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
32792         change.  Update copyright years.
32793
32794 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
32795
32796         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
32797
32798 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
32799             Joseph Myers  <joseph@codesourcery.com>
32800             Paul Pluzhnikov  <ppluzhnikov@google.com>
32801
32802         [BZ #14012]
32803         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
32804         requiring rpcgen.
32805         [cross-compiling] (extra-libs): Likewise.
32806         [cross-compiling] (extra-libs-others): Likewise.
32807         [cross-compiling] (librpcsvc-routines): Likewise.
32808         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
32809         [cross-compiling] (omit-deps): Likewise.
32810         (sunrpc-CPPFLAGS): New variable.
32811         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
32812         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
32813         (cross-rpcgen-objs): New variable.
32814         (extra-objs): Append $(cross-rpcgen-objs).
32815         ($(cross-rpcgen-objs)): New rule.
32816         ($(objpfx)cross-rpcgen): Likewise.
32817         (rpcgen-cmd): Define to use $(built-program-file).  Expand
32818         comment.
32819         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
32820         ($(objpfx)x%.stmp): Likewise.
32821         * sunrpc/proto.h [IS_IN_build] (_): Define.
32822         [IS_IN_build] (_libc_intl_domainname): Likewise.
32823
32824 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32825
32826         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
32827         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
32828         and R_X86_64_TPOFF64.
32829
32830 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
32831
32832         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
32833         sysdeps/unix/sysv/syscalls.list.
32834         (stime): Likewise.
32835         (utime): Likewise.
32836         * sysdeps/unix/sysv/syscalls.list: Remove file.
32837
32838 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32839
32840         [BZ #3440]
32841         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
32842         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
32843         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
32844         (__LC_IDENTIFICATION): Make these macros useful in #if
32845         expressions, as required by C99.
32846
32847 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
32848
32849         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
32850         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
32851         after this.
32852
32853 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
32854
32855         * stdlib/longlong.h: Updated from GCC.
32856
32857 2012-05-09  Andreas Jaeger  <aj@suse.de>
32858
32859         * nscd/nscd.c (run_modes): Make named enum, reorder so that
32860         default is first entry.
32861         (run_mode): Set type.
32862         (main): Remove informal message about syslog.
32863         (options): Fix typo.
32864
32865         [BZ #14053]
32866         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
32867         to asm.
32868         (lrint): Likewise.
32869         (llrintf): Likewise.
32870         (llrint): Likewise.
32871         (rint): Likewise.
32872         (rintf): Likewise.
32873         (nearbyint): Likewise.
32874         (nearbyintf): Likewise.
32875
32876 2012-05-09  Andreas Jaeger  <aj@suse.de>
32877             Pedro Alves  <palves@redhat.com>
32878
32879         * nscd/nscd.c (run_mode): Use enum.
32880         (main): Cleanup coding style issue.
32881
32882 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
32883             Andreas Jaeger  <aj@suse.de>
32884
32885         * nscd/nscd.c (go_background): Replaced with...
32886         (run_mode): ... this.
32887         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
32888         (options): Add -F --foreground.
32889         (main): Implement it.
32890         (parse_opt): Parse it.
32891
32892 2012-05-09  Andreas Jaeger  <aj@suse.de>
32893
32894         [BZ #14083]
32895         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
32896         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
32897         -Wconversion warning.
32898         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
32899         Likewise.
32900
32901 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
32902
32903         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
32904         == 0.
32905         (LC_ALL): Use macro-int-constant.
32906         (LC_COLLATE): Likewise.
32907         (LC_CTYPE): Likewise.
32908         (LC_MESSAGES): Likewise.
32909         (LC_MONETARY): Likewise.
32910         (LC_NUMERIC): Likewise.
32911         (LC_TIME): Likewise.
32912         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
32913         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
32914         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32915         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
32916         Specify type.
32917         [C99-based standards] (float_t): Expect type.
32918         [C99-based standards] (double_t): Expect type.
32919         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
32920         type.
32921         [C99-based standards] (HUGE_VALL): Likewise.
32922         [C99-based standards] (INFINITY): Likewise.
32923         [C99-based standards] (NAN): Likewise.
32924         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
32925         [C99-based standards] (FP_NAN): Likewise.
32926         [C99-based standards] (FP_NORMAL): Likewise.
32927         [C99-based standards] (FP_SUBNORMAL): Likewise.
32928         [C99-based standards] (FP_ZERO): Likewise.
32929         [C99-based standards] (FP_FAST_FMA): Use
32930         optional-macro-int-constant.  Specify type.  Require == 1.
32931         [C99-based standards] (FP_FAST_FMAF): Likewise.
32932         [C99-based standards] (FP_FAST_FMAL): Likewise.
32933         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
32934         [C99-based standards] (FP_ILOGBNAN): Likewise.
32935         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
32936         Specify type.
32937         [C99-based standards] (MATH_ERREXCEPT): Likewise.
32938         [C99-based standards] (math_errhandling): Specify type.
32939         [ISO99 || ISO11] (signgam): Do not allow.
32940         [non-C99-based standards] (copysignf): Do not allow.
32941         [non-C99-based standards] (exp2f): Likewise.
32942         [non-C99-based standards] (log2f): Likewise.
32943         [non-C99-based standards] (modff): Allow.
32944         [non-C99-based standards] (erff): Do not allow.
32945         [non-C99-based standards] (erfcf): Likewise.
32946         [non-C99-based standards] (gammaf): Likewise.
32947         [non-C99-based standards] (hypotf): Likewise.
32948         [non-C99-based standards] (j0f): Likewise.
32949         [non-C99-based standards] (j1f): Likewise.
32950         [non-C99-based standards] (jnf): Likewise.
32951         [non-C99-based standards] (lgammaf): Likewise.
32952         [non-C99-based standards] (tgammaf): Likewise.
32953         [non-C99-based standards] (y0f): Likewise.
32954         [non-C99-based standards] (y1f): Likewise.
32955         [non-C99-based standards] (ynf): Likewise.
32956         [non-C99-based standards] (isnanf): Likewise.
32957         [non-C99-based standards] (acoshf): Likewise.
32958         [non-C99-based standards] (asinhf): Likewise.
32959         [non-C99-based standards] (atanhf): Likewise.
32960         [non-C99-based standards] (cbrtf): Likewise.
32961         [non-C99-based standards] (expm1f): Likewise.
32962         [non-C99-based standards] (ilogbf): Likewise.
32963         [non-C99-based standards] (log1pf): Likewise.
32964         [non-C99-based standards] (logbf): Likewise.
32965         [non-C99-based standards] (nextafterf): Likewise.
32966         [non-C99-based standards] (remainderf): Likewise.
32967         [non-C99-based standards] (rintf): Likewise.
32968         [non-C99-based standards] (scalbf): Likewise.
32969         [non-C99-based standards] (copysignl): Likewise.
32970         [non-C99-based standards] (exp2l): Likewise.
32971         [non-C99-based standards] (log2l): Likewise.
32972         [non-C99-based standards] (modfl): Allow.
32973         [non-C99-based standards] (erfl): Do not allow.
32974         [non-C99-based standards] (erfcl): Likewise.
32975         [non-C99-based standards] (gammal): Likewise.
32976         [non-C99-based standards] (hypotl): Likewise.
32977         [non-C99-based standards] (j0l): Likewise.
32978         [non-C99-based standards] (j1l): Likewise.
32979         [non-C99-based standards] (jnl): Likewise.
32980         [non-C99-based standards] (lgammal): Likewise.
32981         [non-C99-based standards] (tgammal): Likewise.
32982         [non-C99-based standards] (y0l): Likewise.
32983         [non-C99-based standards] (y1l): Likewise.
32984         [non-C99-based standards] (ynl): Likewise.
32985         [non-C99-based standards] (isnanl): Likewise.
32986         [non-C99-based standards] (acoshl): Likewise.
32987         [non-C99-based standards] (asinhl): Likewise.
32988         [non-C99-based standards] (atanhl): Likewise.
32989         [non-C99-based standards] (cbrtl): Likewise.
32990         [non-C99-based standards] (expm1l): Likewise.
32991         [non-C99-based standards] (ilogbl): Likewise.
32992         [non-C99-based standards] (log1pl): Likewise.
32993         [non-C99-based standards] (logbl): Likewise.
32994         [non-C99-based standards] (nextafterl): Likewise.
32995         [non-C99-based standards] (remainderl): Likewise.
32996         [non-C99-based standards] (rintl): Likewise.
32997         [non-C99-based standards] (scalbl): Likewise.
32998         [ISO || ISO99 || ISO11] (*_t): Do not allow.
32999         [non-C99-based standards] (FP_*): Do not allow.
33000         [C99-based standards] (FP_*): Change to
33001         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33002         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33003         allow.
33004         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33005         (SIG_ERR): Likewise.
33006         [X/Open-based standards] (SIG_HOLD): Likewise.
33007         (SIG_IGN): Likewise.
33008         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33009         positive value.
33010         (SIGFPE): Likewise.
33011         (SIGILL): Likewise.
33012         (SIGINT): Likewise.
33013         (SIGSEGV): Likewise.
33014         (SIGTER): Likewise.
33015         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33016         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33017         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33018         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33019         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33020         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33021         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33022         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33023         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33024         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33025         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33026         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33027         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33028         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33029         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33030         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33031         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33032         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33033         [X/Open-based standards] (SIGTRAP): Likewise.
33034         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33035         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33036         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33037         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33038         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33039         allow.
33040
33041 2012-05-08  Ian Wienand  <ianw@vmware.com>
33042
33043         [BZ #14080]
33044         * time/tzset.c (__tzset_parse_tz): Update default rules for
33045         daylight time changes in the Energy Policy Act of 2005.
33046
33047 2012-05-09  Andreas Jaeger  <aj@suse.de>
33048
33049         [BZ #13983]
33050         * elf/ldconfig.c (parse_conf): Change string to make clear that
33051         ldconfig only issued a warning if ld.so.conf does not exist.
33052
33053 2012-05-08  David S. Miller  <davem@davemloft.net>
33054
33055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33056         movxtod instead of popping the value on the stack.
33057
33058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33059
33060 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33061
33062         * config.h.in: Add HAVE_ARM_PCS_VFP.
33063
33064 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33065
33066         [BZ #13979]
33067         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33068         checking but the checks are disabled for any reason.
33069
33070 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33071
33072         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33073         and ELF64_R_TYPE with ELFW(R_TYPE).
33074
33075 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33076
33077         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33078         (ulimit): Likewise.
33079
33080         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33081         (settimeofday): Likewise.
33082
33083 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33084
33085         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33086         a struct th_u2 inside the union, and move tu_block/tu_code into
33087         a new th_u3 union of tu_block/tu_code inside of that.  Move
33088         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33089         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33090         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33091         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33092         (th_stuff): Change to th_u1.tu_stuff.
33093         (th_data): Define.
33094         (th_msg): Change to th_u1.th_u2.tu_data.
33095
33096 2012-05-07  David S. Miller  <davem@davemloft.net>
33097
33098         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33099
33100         [BZ #14074]
33101         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
33102         (SETUP_PIC_REG): Use it.
33103         (SETUP_PIC_REG_LEAF): Use it.
33104
33105 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
33106
33107         [BZ #13885]
33108         [BZ #13923]
33109         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33110         USE_AS_EXPM1L.
33111         (EXPL_FINITE): Likewise.
33112         (FLDLOG): Likewise.
33113         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33114         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33115         e_expl.S.
33116         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33117         USE_AS_EXPM1L.
33118         (EXPL_FINITE): Likewise.
33119         (FLDLOG): Likewise.
33120         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33121         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33122         e_expl.S.
33123         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
33124         test of -max_value argument for long double.
33125         * sysdeps/i386/fpu/libm-test-ulps: Update.
33126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33127
33128 2012-05-06  David S. Miller  <davem@davemloft.net>
33129
33130         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
33131         quad soft-float symbols whose references which are compiler
33132         generated.
33133         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33134
33135 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
33136
33137         [BZ #13884]
33138         [BZ #13914]
33139         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33140         USE_AS_EXP10L.
33141         (EXPL_FINITE): Likewise.
33142         (FLDLOG): Likewise.
33143         (c0): Likewise.
33144         (c1): Likewise.
33145         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33146         Adjust comments for base varying.
33147         (__expl_finite): Change alias to EXPL_FINITE.
33148         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
33149         e_expl.S.
33150         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
33151         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
33152         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
33153         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
33154         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33155         USE_AS_EXP10L.
33156         (EXPL_FINITE): Likewise.
33157         (FLDLOG): Likewise.
33158         (c0): Likewise.
33159         (c1): Likewise.
33160         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33161         Adjust comments for base varying.
33162         (__expl_finite): Change alias to EXPL_FINITE.
33163         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
33164         tests for bugs.
33165         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33166
33167         [BZ #14064]
33168         * math/libm-test.inc (check_float_internal): Correct ulp
33169         calculation for subnormal expected results.
33170
33171 2012-05-06  Andreas Jaeger  <aj@suse.de>
33172
33173         * Makeconfig (+math-flags): New, set to -frounding-math.
33174         (+cflags): Add +math-flags so that all of glibc gets compiled with
33175         it.
33176
33177         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
33178
33179 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
33180
33181         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
33182         Disable one test.
33183
33184         [BZ #13787]
33185         [BZ #13922]
33186         [BZ #14036]
33187         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
33188         (__ieee754_expl): Allow for and saturate large arguments.
33189         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
33190         (u_threshold): Likewise.
33191         (__exp): Call __ieee754_exp before checking for overflow and
33192         underflow.
33193         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
33194         (u_threshold): Likewise.
33195         (__expf): Call __ieee754_expf before checking for overflow and
33196         underflow.
33197         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
33198         (u_threshold): Likewise.
33199         (__expl): Call __ieee754_expl before checking for overflow and
33200         underflow.
33201         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
33202         (__ieee754_expl): Allow for and saturate large arguments.
33203         * math/libm-test.inc (exp_test): Add another test.  Do not allow
33204         missing overflow exception on overflow.
33205         (expm1_test): Do not allow missing overflow exception on overflow.
33206
33207         * sysdeps/i386/fpu/e_expl.c: Move to ...
33208         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
33209         rather than using inline asm.
33210         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
33211         * sysdeps/x86_64/fpu/e_expl.S: Copy from
33212         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
33213
33214         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
33215         (nice): Likewise.
33216         (poll): Likewise.
33217         (signal): Likewise.
33218         (time): Likewise.
33219         (times): Likewise.
33220
33221 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33222
33223         * sysdeps/unix/syscalls.list (adjtime): Add entry from
33224         sysdeps/unix/common/syscalls.list.
33225         (fchmod): Likewise.
33226         (fchown): Likewise.
33227         (ftruncate): Likewise.
33228         (getrusage): Likewise.
33229         (gettimeofday): Likewise.
33230         (setpgid): Likewise.
33231         (setregid): Likewise.
33232         (setreuid): Likewise.
33233         (sigaction): Likewise.
33234         (truncate): Likewise.
33235         (vhangup): Likewise.
33236         * sysdeps/unix/common/syscalls.list: Remove file.
33237         * sysdeps/unix/bsd/Implies: Don't include unix/common.
33238         * sysdeps/unix/sysv/linux/Implies: Likewise.
33239
33240 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
33241
33242         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
33243         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
33244         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
33245         Moved to ...
33246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33247         Here.
33248         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
33249         to ...
33250         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
33251         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
33252         to ...
33253         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
33254         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
33255         to ...
33256         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
33257         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
33258         to ...
33259         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
33260         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
33261         to ...
33262         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
33263         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
33264         to ...
33265         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
33266         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
33267         to ...
33268         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
33269         Here.
33270         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
33271         to ...
33272         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
33273         Here.
33274         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
33275         to ...
33276         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
33277         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
33278         Moved to ...
33279         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
33280         Here.
33281         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
33282         to ...
33283         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
33284
33285 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33286
33287         * sysdeps/unix/common/bits/dirent.h: Remove file.
33288         * sysdeps/unix/common/bits/fcntl.h: Likewise.
33289
33290         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
33291         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
33292         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
33293         * sysdeps/unix/bsd/isatty.c: Likewise.
33294         * sysdeps/unix/bsd/tcdrain.c: Likewise.
33295         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
33296         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
33297
33298 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33299
33300         [BZ #13563]
33301         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
33302         long double comparison inaccuracies.
33303         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
33304         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33305
33306 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
33307
33308         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
33309         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
33310
33311 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33312
33313         [BZ #14049]
33314         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
33315         nonzero digits before rounding a hex value.
33316         * stdlib/tst-strtod.c (tests): Add another test.
33317
33318 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33319
33320         * sysdeps/s390/fpu/libm-test-ulps: Update.
33321
33322 2012-05-03  Andreas Jaeger  <aj@suse.de>
33323
33324         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
33325         does not get optimized out.
33326         (malloc_opt_barrier): New.
33327
33328 2012-05-03  Andreas Jaeger  <aj@suse.de>
33329             Roland McGrath  <roland@hack.frob.com>
33330
33331         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
33332         intermediate file deletion.
33333         (generated): Add .symlist files.
33334
33335 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
33336
33337         [BZ #13775]
33338         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
33339         Redirect under this condition.
33340         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33341         [__USE_GNU] (__dprintf_chk): Not under this condition.
33342         [__USE_GNU] (__vdprintf_chk): Likewise.
33343         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
33344         under this condition.
33345         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33346         [__USE_XOPEN2K8] (dprintf): Define under this condition.
33347         [__USE_XOPEN2K8] (vdprintf): Likewise.
33348         [__USE_GNU] (__dprintf_chk): Not under this condition.
33349         [__USE_GNU] (__vdprintf_chk): Likewise.
33350         [__USE_GNU] (dprintf): Likewise.
33351         [__USE_GNU] (vdprintf): Likewise.
33352
33353 2012-05-03  Roland McGrath  <roland@hack.frob.com>
33354
33355         * elf/Makefile (common-generated): Set this instead of generated for
33356         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
33357         $(all-built-dso)-derived lists.
33358
33359 2012-05-03  Andreas Jaeger  <aj@suse.de>
33360
33361         * sysdeps/i386/fpu/libm-test-ulps: Update.
33362
33363         * FAQ: Removed.
33364         * FAQ.in: Likewise.
33365         * scripts/gen-FAQ.pl: Likewise.
33366         * manual/install.texi (Installation): Point to online location of
33367         FAQ.
33368         * Makefile (files-for-dist): Remove FAQ.
33369         (FAQ): Remove.
33370
33371 2012-05-02  Allan McRae  <allan@archlinux.org>
33372
33373         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
33374         (LDFLAGS-reldepmod5.so): Likewise.
33375         (LDFLAGS-reldep6mod1.so): Likewise.
33376         (LDFLAGS-reldep6mod4.so): Likewise.
33377         (LDFLAGS-reldep8mod3.so): Likewise.
33378         (LDFLAGS-unload4mod1.so): Likewise.
33379         (LDFLAGS-unload4mod2.so): Likewise.
33380         (LDFLAGS-tst-initorder): Likewise.
33381         (LDFLAGS-tst-initordera2.so): Likewise.
33382         (LDFLAGS-tst-initordera3.so): Likewise.
33383         (LDFLAGS-tst-initordera4.so): Likewise.
33384         (LDFLAGS-tst-initorderb2.so): Likewise.
33385         (LDFLAGS-noload): Likewise.
33386         (LDFLAGS-next): Likewise.
33387         (LDFLAGS-order2mod1.so): Likewise.
33388         (LDFLAGS-order2mod2.so): Likewise.
33389         (LDFLAGS-tst-initorder2): Likewise.
33390         (LDFLAGS-tst-initorder2a.so): Likewise.
33391         (LDFLAGS-tst-initorder2b.so): Likewise.
33392         (LDFLAGS-tst-initorder2c.so): Likewise.
33393         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
33394
33395 2012-05-02  David S. Miller  <davem@davemloft.net>
33396
33397         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33398
33399 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33400
33401         [BZ #14055]
33402         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
33403
33404 2012-05-02  Andreas Jaeger  <aj@suse.de>
33405
33406         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
33407         since we manipulate rounding mode.
33408         (CPPFLAGS-test-idouble.c): Likewise.
33409         (CPPFLAGS-test-ifloat.c): Likewise.
33410         (CFLAGS-test-ldouble.c): Likewise.
33411         (CFLAGS-test-double.c): Likewise.
33412         (CFLAGS-test-float.c): Likewise.
33413         (CFLAGS-test-misc.c): Likewise.
33414         (CFLAGS-test-test-fenv.c): Likewise.
33415
33416 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33417
33418         [BZ #2550]
33419         [BZ #2570]
33420         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
33421         comparisons to determine direction to adjust input.
33422
33423 2012-05-01  Roland McGrath  <roland@hack.frob.com>
33424
33425         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
33426         output to the target.
33427
33428         * scripts/localplt.awk: New file.
33429         * elf/Makefile ($(objpfx)check-localplt): Target removed.
33430         (check-localplt-CFLAGS): Variable removed.
33431         ($(all-built-dso:=.jmprel)): New static pattern rule.
33432         (generated): Add those targets.
33433         (localplt-built-dso): New variable.
33434         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
33435
33436         * elf/check-localplt.c: File removed.
33437
33438         * scripts/check-execstack.awk: New file.
33439         * elf/Makefile ($(objpfx)check-execstack): Target removed.
33440         (check-execstack-CFLAGS): Variable removed.
33441         ($(objpfx)check-execstack.h): Target removed.
33442         ($(objpfx)execstack-default): New target.
33443         (generated): Add that instead of check-execstack.h.
33444         ($(all-built-dso:=.phdr)): New static pattern rule.
33445         (generated): Add those targets.
33446         * elf/check-execstack.c: File removed.
33447
33448         * scripts/check-textrel.awk: New file.
33449         * elf/Makefile ($(objpfx)check-textrel): Target removed.
33450         (check-textrel-CFLAGS): Variable removed.
33451         (all-built-dso): Use := to define.o
33452         ($(all-built-dso:=.dyn)): New static pattern rule.
33453         (generated): Add those targets.
33454         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
33455         * config.make.in (READELF): New substituted variable.
33456         * elf/check-textrel.c: File removed.
33457
33458 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
33459
33460         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33461         allow.
33462         * conform/data/ctype.h-data [C99-based standards] (isblank):
33463         Expect function.
33464         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
33465         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
33466         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33467         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
33468         Specify type.  Require positive value.
33469         (EILSEQ): Likewise.
33470         (ERANGE): Likewise.
33471         [ISO || POSIX] (EILSEQ): Do not expect.
33472         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
33473         Specify type.  Require positive value.
33474         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
33475         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
33476         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
33477         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
33478         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
33479         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
33480         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
33481         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
33482         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
33483         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
33484         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
33485         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
33486         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
33487         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
33488         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
33489         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
33490         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
33491         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
33492         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
33493         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
33494         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
33495         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
33496         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
33497         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
33498         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
33499         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
33500         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
33501         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
33502         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
33503         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
33504         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
33505         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
33506         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
33507         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
33508         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
33509         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
33510         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
33511         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
33512         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
33513         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
33514         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
33515         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
33516         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
33517         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
33518         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
33519         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
33520         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
33521         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
33522         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
33523         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
33524         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
33525         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
33526         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
33527         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
33528         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
33529         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
33530         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
33531         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
33532         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
33533         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
33534         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
33535         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
33536         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
33537         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
33538         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
33539         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
33540         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
33541         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
33542         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
33543         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
33544         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
33545         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
33546         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
33547         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
33548         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
33549         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
33550         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
33551         Require >= 2.
33552         (FLT_ROUNDS): Expect as macro, not constant.
33553         (FLT_MANT_DIG): Use macro-int-constant.
33554         (DBL_MANT_DIG): Likewise.
33555         (LDBL_MANT_DIG): Likewise.
33556         (FLT_DIG): Likewise.
33557         (DBL_DIG): Likewise.
33558         (LDBL_DIG): Likewise.
33559         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
33560         (DBL_MIN_EXP): Likewise.
33561         (LDBL_MIN_EXP): Likewise.
33562         (FLT_MAX_EXP): Use macro-int-constant.
33563         (DBL_MAX_EXP): Likewise.
33564         (LDBL_MAX_EXP): Likewise.
33565         (FLT_MAX_10_EXP): Likewise.
33566         (DBL_MAX_10_EXP): Likewise.
33567         (LDBL_MAX_10_EXP): Likewise.
33568         (FLT_MAX): Use macro-constant.
33569         (DBL_MAX): Likewise.
33570         (LDBL_MAX): Likewise.
33571         (FLT_EPSILON): Use macro-constant.  Give upper bound.
33572         (DBL_EPSILON): Likewise.
33573         (LDBL_EPSILON): Likewise.
33574         (FLT_MIN): Likewise.
33575         (DBL_MIN): Likewise.
33576         (LDBL_MIN): Likewise.
33577         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
33578         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
33579         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
33580         [ISO11] (FLT_HAS_SUBNORM): Likewise.
33581         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
33582         [ISO11] (DBL_DECIMAL_DIG): Likewise.
33583         [ISO11] (FLT_DECIMAL_DIG): Likewise.
33584         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
33585         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
33586         [ISO11] (FLT_TRUE_MIN): Likewise.
33587         [ISO11] (LDBL_TRUE_MIN): Likewise.
33588         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33589         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
33590         (SCHAR_MIN): Use macro-int-constant.  Specify type.
33591         (SCHAR_MAX): Likewise.
33592         (UCHAR_MAX): Likewise.
33593         (CHAR_MIN): Likewise.
33594         (CHAR_MAX): Likewise.
33595         (MB_LEN_MAX): Use macro-int-constant.
33596         (SHRT_MIN): Use macro-int-constant.  Specify type.
33597         (SHRT_MAX): Likewise.
33598         (USHRT_MAX): Likewise.
33599         (INT_MAX): Likewise.
33600         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
33601         bound negative.
33602         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33603         bound with "U".
33604         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33605         bound with "L".
33606         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
33607         bound negative.  Suffix upper bound with "L".
33608         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33609         bound with "UL".
33610         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
33611         Specify type.
33612         [C99-based standards] (LLONG_MAX): Likewise.
33613         [C99-based standards] (ULLONG_MAX): Likewise.
33614         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
33615         == 0.
33616         [ISO11] (max_align_t): Require type.
33617         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33618
33619         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
33620         from $CFLAGS, without defining away __attribute__ calls.
33621         (checknamespace): Use $CFLAGS_namespace.
33622
33623         * conform/conformtest.pl (@keywords): Only include C99 keywords
33624         for standards based on C99 or C11.
33625
33626         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
33627         Disable tests.
33628         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
33629         UNIX98]: Likewise.
33630
33631         * conform/conformtest.pl: Handle "macro-int-constant" and test for
33632         usability of symbols in #if.
33633
33634         * conform/conformtest.pl: If macro or constant types start
33635         "promoted:", expect the symbol to be of the following type
33636         promoted by the integer promotions.
33637
33638         * conform/conformtest.pl: Parse all "constant" and "macro" lines
33639         in one place.  Also handle "macro-constant".
33640
33641         * conform/conformtest.pl: Only accept expected macro values with
33642         "==".  Parse all "macro" lines in one place.
33643         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
33644
33645         * conform/conformtest.pl: Handle braced types on "constant" lines
33646         instead of handling "typed-constant".
33647         * conform/data/signal.h-data: Use "constant" instead of
33648         "typed-constant".
33649
33650         * conform/conformtest.pl: Handle "optional-" at start of lines in
33651         one place rather than duplicating several cases.  Handle each
33652         format of "macro" line with initial "optional-".
33653
33654         * conform/conformtest.pl: Only accept expected constant or
33655         optional-constant values with "==".  Parse all "constant" lines in
33656         one place.  Parse all "optional-constant" lines in one place.
33657         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
33658         * conform/data/fmtmsg.h-data: Likewise.
33659         * conform/data/netinet/in.h-data: Likewise.
33660         * conform/data/tar.h-data: Likewise.
33661         * conform/data/limits.h-data: Use "==" form on "constant" and
33662         "optional-constant" lines.
33663
33664         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
33665         Use -std=c99 for XOPEN2K.
33666         (@knownproblems): Remove.
33667         (newtoken): Don't check %isknown.
33668
33669         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
33670         Do not expect macro.
33671         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
33672         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
33673         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
33674         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
33675         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
33676         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
33677         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
33678         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
33679         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
33680         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
33681         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
33682         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
33683         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
33684         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
33685         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
33686         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
33687         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
33688         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
33689         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
33690         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
33691         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
33692         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
33693         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
33694         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
33695         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
33696         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
33697         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
33698         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
33699         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
33700         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
33701         [XPG3] (acosh): Likewise.
33702         [XPG3] (asinh): Likewise.
33703         [XPG3] (atanh): Likewise.
33704         [XPG3] (cbrt): Likewise.
33705         [XPG3] (expm1): Likewise.
33706         [XPG3] (ilogb): Likewise.
33707         [XPG3] (log1p): Likewise.
33708         [XPG3] (logb): Likewise.
33709         [XPG3] (nextafter): Likewise.
33710         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
33711         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
33712         [XPG3] (remainder): Likewise.
33713         [XPG3] (rint): Likewise.
33714         [XPG3 || XPG4 || UNIX98] (round): Likewise.
33715         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
33716         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
33717         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
33718         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
33719         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
33720         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
33721         [UNIX98 || XOPEN2K] (scalb): Expect.
33722         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
33723         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
33724         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
33725         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
33726         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
33727         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
33728         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
33729         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
33730         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
33731         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
33732         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
33733         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
33734         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
33735         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
33736         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
33737         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
33738         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
33739         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
33740         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
33741         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
33742         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
33743         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
33744         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
33745         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
33746         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
33747         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
33748         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
33749         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
33750         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
33751         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
33752         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
33753         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
33754         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
33755         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
33756         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
33757         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
33758         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
33759         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
33760         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
33761         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
33762         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
33763         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
33764         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
33765         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
33766         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
33767         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
33768         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
33769         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
33770         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
33771         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
33772         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
33773         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
33774         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
33775         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
33776         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
33777         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
33778         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
33779         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
33780         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
33781         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
33782         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
33783         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
33784         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
33785         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
33786         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
33787         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
33788         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
33789         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
33790         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
33791         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
33792         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
33793         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
33794         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
33795         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
33796         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
33797         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
33798         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
33799         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
33800         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
33801         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
33802         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
33803         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
33804         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
33805         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
33806         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
33807         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
33808         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
33809         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
33810         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
33811         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
33812         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
33813         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
33814         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
33815         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
33816         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
33817         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
33818         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
33819         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
33820         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
33821         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
33822         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
33823         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
33824         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
33825         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
33826         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
33827         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
33828         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
33829         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
33830         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
33831         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
33832         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
33833         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
33834         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
33835         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
33836         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
33837         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
33838         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
33839         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
33840         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
33841         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
33842         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
33843         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
33844         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
33845         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
33846         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
33847         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
33848         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
33849         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
33850         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
33851         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
33852         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
33853         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
33854         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
33855         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
33856         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
33857         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
33858         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
33859
33860         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
33861         _XOPEN_SOURCE_EXTENDED for XPG4.
33862
33863         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
33864
33865         * Makeconfig (localtime): Remove variable.
33866         (inst_localtime-file): Likewise.
33867
33868 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33869
33870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
33871         Update.
33872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33873         Update.
33874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
33875         Update.
33876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
33877         Update.
33878         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
33879         Update.
33880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
33881         Update.
33882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
33883         Update.
33884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
33885         Update.
33886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
33887         Update.
33888
33889 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
33890
33891         [BZ #2550]
33892         [BZ #2570]
33893         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
33894         comparisons to determine direction to adjust input.
33895         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
33896         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
33897         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
33898         Likewise.
33899         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
33900         Likewise.
33901         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
33902         Likewise.
33903         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33904         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33905         Likewise.
33906         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33907         Likewise.
33908         * math/libm-test.inc (nexttoward_test): Add more tests.
33909
33910 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33911
33912         [BZ #14040]
33913         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
33914         in version GLIBC_2.1, not GLIBC_2.0.
33915         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
33916         Likewise.
33917
33918 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
33919
33920         [BZ #13942]
33921         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
33922         (1 - x) * (1 + x).
33923         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
33924         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
33925         * math/libm-test.inc (acos_test): Add more tests.
33926         (asin_test): Likewise.
33927         * sysdeps/i386/fpu/libm-test-ulps: Update.
33928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33929
33930         [BZ #14034]
33931         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
33932         of square root.
33933         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
33934         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
33935         * math/libm-test.inc (acos_test_tonearest): New function.
33936         (acos_test_towardzero): Likewise.
33937         (acos_test_downward): Likewise.
33938         (acos_test_upward): Likewise.
33939         (asin_test_tonearest): Likewise.
33940         (asin_test_towardzero): Likewise.
33941         (asin_test_downward): Likewise.
33942         (asin_test_upward): Likewise.
33943         (main): Call the new functions.
33944         * sysdeps/i386/fpu/libm-test-ulps: Update.
33945         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33946
33947         [BZ #13884]
33948         [BZ #13924]
33949         * math/e_exp10.c: Include <float.h>.
33950         (__ieee754_exp10): Handle underflow here rather than multiplying
33951         large negative argument by M_LN10.
33952         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
33953         of __ieee754_expf.
33954         * math/e_exp10l.c: Include <float.h>.
33955         (__ieee754_exp10l): Handle underflow here rather than multiplying
33956         large negative argument by M_LN10l.
33957         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
33958         spurious overflow exception on underflow.
33959
33960 2012-04-29  Marek Polacek  <polacek@redhat.com>
33961
33962         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
33963         (__fortify_function): New macro.
33964         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
33965         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
33966         __extern_always_inline.
33967         * libio/bits/stdio2.h: Likewise.
33968         * libio/bits/stdio.h: Likewise.
33969         * string/string.h: Likewise.
33970         * string/bits/string3.h: Likewise.
33971         * include/stdio.h: Likewise.
33972         * stdlib/bits/stdlib.h: Likewise.
33973         * stdlib/stdlib.h: Likewise.
33974         * rt/bits/mqueue2.h: Likewise.
33975         * rt/mqueue.h: Likewise.
33976         * posix/bits/unistd.h: Likewise.
33977         * posix/unistd.h: Likewise.
33978         * io/bits/poll2.h: Likewise.
33979         * io/bits/fcntl2.h: Likewise.
33980         * io/fcntl.h: Likewise.
33981         * io/sys/poll.h: Likewise.
33982         * misc/bits/syslog.h: Likewise.
33983         * misc/bits/syslog-ldbl.h: Likewise.
33984         * misc/sys/syslog.h: Likewise.
33985         * socket/bits/socket2.h: Likewise.
33986         * socket/sys/socket.h: Likewise.
33987         * debug/tst-chk1.c: Likewise.
33988         * wcsmbs/bits/wchar2.h: Likewise.
33989         * wcsmbs/bits/wchar-ldbl.h: Likewise.
33990         * wcsmbs/wchar.h: Likewise.
33991
33992 2012-04-29  Andreas Jaeger  <aj@suse.de>
33993
33994         * Makerules (tests): Remove enable-check-abi protection.
33995         (check-abi-warn): Remove.
33996         (check-abi-%): Remove check-abi-warn usage.
33997
33998         * configure.in: Remove check-abi configure option.
33999         * configure: Regenerated.
34000         * config.make.in (enable-check-abi): Remove.
34001
34002 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34003
34004         [BZ #14033]
34005         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34006         double functions to double *_finite functions.
34007
34008         [BZ #13941]
34009         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34010         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34011         LDBL_MIN_EXP.
34012         * stdio-common/Makefile (tests): Add tst-sprintf3.
34013         * stdio-common/tst-sprintf3.c: New file.
34014
34015         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34016         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34017
34018 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34019
34020         * conform/conformtest.pl: Remove duplicate typed-constant
34021         handling.
34022
34023 2012-04-28  David S. Miller  <davem@davemloft.net>
34024
34025         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34026         (check-abi-%): Remove AWK script prerequisite and explicit
34027         abilist directory.
34028         (check-abi): Rewrite to just diff the symlist with the abilist.
34029         (config-tls, config-abi-config): Delete, no longer used.
34030         (update-abi-%): Remove AWK script and explicit abilist directory.
34031         (update-abi): Rewrite to simply compare and conditionally copy the
34032         symlist and the sysdep abilist file.  Remove update-abi-config
34033         checks.
34034         * abilist/ld.abilist: Remove.
34035         * abilist/libBrokenLocale.abilist: Remove.
34036         * abilist/libanl.abilist: Remove.
34037         * abilist/libcrypt.abilist: Remove.
34038         * abilist/libdl.abilist: Remove.
34039         * abilist/librt.abilist: Remove.
34040         * abilist/libthread_db.abilist: Remove.
34041         * abilist/libutil.abilist: Remove.
34042         * scripts/extract-abilist.awk: Remove.
34043         * scripts/merge-abilist.awk: Remove.
34044         * sysdeps/generic/libcidn.abilist: New file.
34045         * sysdeps/generic/libnss_compat.abilist: New file.
34046         * sysdeps/generic/libnss_db.abilist: New file.
34047         * sysdeps/generic/libnss_dns.abilist: New file.
34048         * sysdeps/generic/libnss_files.abilist: New file.
34049         * sysdeps/generic/libnss_hesiod.abilist: New file.
34050         * sysdeps/generic/libnss_nis.abilist: New file.
34051         * sysdeps/generic/libnss_nisplus.abilist: New file.
34052         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34053         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34054         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34055         file.
34056         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34057         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34058         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34059         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34060         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34061         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34062         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34063         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34064         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34065         file.
34066         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34067         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34068         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34069         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34070         file.
34071         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34072         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34073         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34074         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34075         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34076         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34077         file.
34078         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34079         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34080         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34081         file.
34082         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34083         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34084         New file.
34085         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34086         New file.
34087         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34088         New file.
34089         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34090         New file.
34091         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34092         New file.
34093         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
34094         New file.
34095         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
34096         New file.
34097         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
34098         New file.
34099         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
34100         New file.
34101         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
34102         New file.
34103         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
34104         New file.
34105         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
34106         New file.
34107         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
34108         New file.
34109         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
34110         file.
34111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
34112         New file.
34113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
34114         New file.
34115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
34116         file.
34117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
34118         New file.
34119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
34120         New file.
34121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
34122         file.
34123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
34124         New file.
34125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34126         New file.
34127         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
34128         New file.
34129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
34130         New file.
34131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
34132         New file.
34133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
34134         New file.
34135         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
34136         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
34137         file.
34138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
34139         New file.
34140         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
34141         file.
34142         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
34143         file.
34144         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
34145         file.
34146         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
34147         file.
34148         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
34149         file.
34150         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
34151         New file.
34152         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
34153         file.
34154         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
34155         file.
34156         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
34157         New file.
34158         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
34159         file.
34160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
34161         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
34162         file.
34163         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
34164         New file.
34165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
34166         file.
34167         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
34168         file.
34169         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
34170         file.
34171         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
34172         file.
34173         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
34174         file.
34175         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
34176         New file.
34177         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
34178         file.
34179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
34180         file.
34181         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
34182         New file.
34183         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
34184         file.
34185         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
34186         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
34187         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
34188         file.
34189         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
34190         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
34191         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
34192         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
34193         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
34194         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
34195         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
34196         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
34197         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
34198         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
34199         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
34200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
34201         file.
34202         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
34203         New file.
34204         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
34205         file.
34206         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
34207         file.
34208         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
34209         file.
34210         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
34211         file.
34212         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
34213         file.
34214         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
34215         New file.
34216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
34217         New file.
34218         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
34219         file.
34220         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
34221         New file.
34222         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
34223         file.
34224         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
34225         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
34226         file.
34227         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
34228         New file.
34229         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
34230         file.
34231         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
34232         file.
34233         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
34234         file.
34235         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
34236         file.
34237         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
34238         file.
34239         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
34240         New file.
34241         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
34242         New file.
34243         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
34244         file.
34245         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
34246         New file.
34247         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
34248         file.
34249
34250 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34251
34252         * conform/conformtest.pl: Fix typo in handling typed-constant from
34253         allow-header.
34254
34255 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34256
34257         * README: Cut down references to pre-2.6 Linux kernels and
34258         Linuxthreads.  Update lists of configurations in libc and ports
34259         and sort alphabetically.  Say "or newer" with Linux kernel version
34260         requirements.
34261
34262         * config.h.in [IS_IN_build]: Allow compiling without optimization.
34263
34264 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
34265
34266         [BZ #887]
34267         * math/libm-test.inc (logb_test_downward): New test to expose
34268         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
34269         rounding mode.
34270
34271 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34272
34273         [BZ #14027]
34274         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
34275         to be done.
34276         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
34277         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
34278
34279 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
34280
34281         * sysdeps/unix/i386/brk.S: Remove file.
34282         * sysdeps/unix/i386/dl-brk.S: Likewise.
34283         * sysdeps/unix/i386/pipe.S: Likewise.
34284         * sysdeps/unix/i386/sigreturn.S: Likewise.
34285         * sysdeps/unix/i386/syscall.S: Likewise.
34286         * sysdeps/unix/i386/vfork.S: Likewise.
34287         * sysdeps/unix/i386/wait.S: Likewise.
34288
34289         * sysdeps/unix/common/tcsendbrk.c: Move to ...
34290         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
34291
34292         * configure.in (arm*-none*): Do not allow without
34293         --enable-hacker-mode.
34294         (netbsd*): Remove case setting base_os.
34295         (386bsd*): Likewise.
34296         (freebsd*): Likewise.
34297         (bsdi*): Likewise.
34298         (osf*): Likewise.
34299         (sunos*): Likewise.
34300         (ultrix*): Likewise.
34301         (newsos*): Likewise.
34302         (dynix*): Likewise.
34303         (*bsd*): Likewise.
34304         (sysv*): Likewise.
34305         (isc*): Likewise.
34306         (esix*): Likewise.
34307         (sco*): Likewise.
34308         (minix*): Likewise.
34309         (irix4*): Likewise.
34310         (irix6*): Likewise.
34311         (solaris[2-9]*): Likewise.
34312         (none): Likewise.
34313         * configure: Regenerated.
34314
34315 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34316
34317         [BZ #11521]
34318         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
34319         overflow or cancellation in calculating denominator.
34320         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
34321         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
34322         down expression to avoid unexpected rounding in newer GCCs.
34323         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
34324
34325 2012-04-26  David S. Miller  <davem@davemloft.net>
34326
34327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
34328         long-double compat symbols.
34329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
34333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
34335         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
34336         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
34337         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
34338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
34339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
34340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
34341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
34342
34343 2012-04-25  David S. Miller  <davem@davemloft.net>
34344
34345         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
34346         HWCAP_* values only after the memory barriers have been defined.
34347         (atomic_full_barrier): Define.
34348         (atomic_read_barrier): Define.
34349         (atomic_write_barrier): Define.
34350
34351 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34352
34353         * shlib-versions: Add libgcc_s version information.
34354         * sysdeps/generic/libgcc_s.h: Remove.
34355         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
34356         libgcc_s.h.
34357         * sysdeps/gnu/unwind-resume.c: Likewise.
34358         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
34359
34360 2012-04-25  David S. Miller  <davem@davemloft.net>
34361
34362         * sysdeps/unix/sparc/brk.S: Delete.
34363         * sysdeps/unix/sparc/dl-brk.S: Delete.
34364         * sysdeps/unix/sparc/pipe.S: Delete.
34365         * sysdeps/unix/sparc/sysdep.S: Delete.
34366         * sysdeps/unix/sparc/sysdep.h: Delete.
34367         * sysdeps/unix/sparc/vfork.S: Delete.
34368         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
34369         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
34370         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
34371         (ret_ERRVAL, r0, r1, MOVE): Define.
34372         (JUMPTARGET): Remove.
34373         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
34374         sysdeps/unix/sparc/sysdep.h
34375         (ENTRY, END): Remove.
34376         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34377
34378 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
34379
34380         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
34381         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
34382         -DIS_IN_build.
34383
34384         * timezone/README: Update upstream location and email address for
34385         tzcode and tzdata.
34386         * timezone/zdump.c: Update from tzcode 2012b.
34387         * timezone/zic.c: Likewise.
34388
34389         * configure.in (libc_cv_as_needed): Remove test.
34390         * configure: Regenerated.
34391         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
34392         conditional definition.
34393         [$(have-as-needed) != yes] (no-as-needed): Likewise.
34394         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
34395         * config.make.in (have-as-needed): Remove variable.
34396
34397 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
34398             Paul Pluzhnikov  <ppluzhnikov@google.com>
34399
34400         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
34401         strings correctly.
34402
34403 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
34404
34405         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
34406         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
34407         * sysdeps/sh/strlen.S: Likewise.
34408
34409 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34410
34411         * sysdeps/unix/fork.S: Remove file.
34412         * sysdeps/unix/i386/fork.S: Likewise.
34413         * sysdeps/unix/sparc/fork.S: Likewise.
34414
34415         * sysdeps/unix/system.c: Remove file.
34416         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
34417
34418         * sysdeps/unix/getegid.S: Remove file.
34419         * sysdeps/unix/geteuid.S: Likewise.
34420
34421 2012-04-24  Roland McGrath  <roland@hack.frob.com>
34422
34423         * scripts/check-localplt.awk: New file.
34424         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
34425         of diff.
34426         * scripts/data/localplt-generic.data: Add a comment.
34427
34428         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
34429         NODE when __dir_mkfile failed.
34430         * sysdeps/mach/hurd/symlinkat.c: Likewise.
34431         Reported by Ludovic Courtès <ludo@gnu.org>.
34432
34433 2012-04-24  Andreas Jaeger  <aj@suse.de>
34434
34435         * Makerules (common-clean): Also remove gen-as-const-headers
34436         files.
34437
34438 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34439
34440         * Makerules (native-compile): Do not change working directory for
34441         build.  Use $(OUTPUT_OPTION) in command.
34442         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
34443
34444 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34445
34446         [BZ #13886]
34447         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
34448         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
34449         * math/libm-test.inc (floor_test): Add more tests.
34450         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
34451
34452 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34453
34454         * sysdeps/unix/getdents.c: Remove file.
34455         * sysdeps/unix/sysv/getdents.c: Likewise.
34456         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
34457
34458         * sysdeps/unix/syscalls.list (madvise): Add syscall from
34459         sysdeps/unix/mman/syscalls.list.
34460         (mmap): Likewise.
34461         (mprotect): Likewise.
34462         (msync): Likewise.
34463         (munmap): Likewise.
34464         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
34465         * sysdeps/unix/mman/syscalls.list: Remove.
34466         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
34467
34468         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
34469         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
34470         * configure: Regenerated.
34471         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
34472         $(libgcc_s_suffix).
34473         * config.make.in (libgcc_s_suffix): Remove variable.
34474
34475 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
34476
34477         * sysdeps/unix/sysv/gethostname.c: Move to ...
34478         * sysdeps/posix/gethostname.c: ... here.
34479
34480         * sysdeps/unix/execve.S: Remove file.
34481
34482         * sysdeps/unix/_exit.S: Remove file.
34483
34484 2012-04-23  Andreas Jaeger  <aj@suse.de>
34485
34486         [BZ #13739]
34487         * manual/Makefile: Remove make dist support, there's no
34488         need for a stand-alone documentation tar ball.
34489         (TEXI2DVI): Define always, it's not in Makeconfig.
34490         (dist): Removed.
34491         (tar-it): Removed.
34492         (edition): Removed.
34493         (glibc-doc-$(edition).tar): Removed
34494         (%.Z): Removed.
34495         (%.gz): Removed.
34496         (%.uu): Removed.
34497         (ETAGS): Remove, it's in Makeconfig.
34498         (move-if-change): Remove, it's in Makeconfig.
34499
34500 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
34501
34502         [BZ #13970]
34503         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
34504         (strtod, strtof, strtold, strtol, strtoul, strtoq)
34505         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
34506         (strtod_l, strtof_l, strtold_l): Remove __wur.
34507         It is not necessarily an error to ignore strtol's return value.
34508         One can reliably look at the stored endptr to decide whether
34509         the number had valid syntax.
34510
34511 2012-04-21  Andreas Jaeger  <aj@suse.de>
34512
34513         [BZ #13739]
34514         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
34515
34516 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
34517
34518         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
34519         * sysdeps/unix/sysv/Versions: Remove file.
34520
34521 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
34522
34523         [BZ #13927]
34524         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34525
34526 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
34527
34528         [BZ #7064]
34529         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
34530         version from __vm86.
34531
34532 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
34533
34534         * sysdeps/unix/common/lxstat.c: Remove file.
34535         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
34536
34537         * sysdeps/unix/sysv/Makefile: Remove file.
34538
34539         * sysdeps/unix/sysv/direct.h: Remove file.
34540
34541         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
34542         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
34543         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
34544         * sysdeps/unix/sysv/bits/signum.h: Likewise.
34545         * sysdeps/unix/sysv/bits/stat.h: Likewise.
34546         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
34547         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
34548
34549         * sysdeps/unix/sysv/setrlimit.c: Remove file.
34550
34551         * sysdeps/unix/xmknod.c: Remove file.
34552         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
34553
34554         * sysdeps/unix/sysv/settimeofday.c: Remove file.
34555
34556         * sysdeps/unix/sysv/i386/time.S: Remove file.
34557
34558         * sysdeps/unix/fxstat.c: Remove file.
34559         * sysdeps/unix/xstat.c: Likewise.
34560         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
34561
34562         * sysdeps/unix/sysv/sigaction.c: Remove file.
34563
34564         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
34565         (sysdep_headers): Remove variable.
34566         [termio.h not in sysdep_headers] (generated): Likewise.
34567         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
34568         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
34569         * sysdeps/unix/sysv/tcdrain.c: Likewise.
34570         * sysdeps/unix/sysv/tcflow.c: Likewise.
34571         * sysdeps/unix/sysv/tcflush.c: Likewise.
34572         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
34573         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
34574         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
34575         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
34576         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
34577
34578         * sysdeps/unix/siglist.c: Remove file.
34579
34580         * sysdeps/unix/getppid.S: Remove file.
34581
34582         * sysdeps/unix/mkdir.c: Remove file.
34583         * sysdeps/unix/rmdir.c: Likewise.
34584
34585 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
34586
34587         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
34588         ERR_MAX value.
34589         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
34590         errlist-compat value.
34591
34592 2012-04-18  David S. Miller  <davem@davemloft.net>
34593
34594         * sysdeps/generic/memcopy.h (reg_char): Delete.
34595         * debug/strcat_chk.c: Use char, not reg_char.
34596         * debug/strcpy_chk.c: Likewise.
34597         * debug/strncat_chk.c: Likewise.
34598         * debug/strncpy_chk.c: Likewise.
34599         * string/memchr.c: Likewise.
34600         * string/memrchr.c: Likewise.
34601         * string/rawmemchr.c: Likewise.
34602         * string/strcat.c: Likewise.
34603         * string/strchr.c: Likewise.
34604         * string/strchrnul.c: Likewise.
34605         * string/strcmp.c: Likewise.
34606         * string/strcpy.c: Likewise.
34607         * string/strncat.c: Likewise.
34608         * string/strncmp.c: Likewise.
34609         * string/strncpy.c: Likewise.
34610
34611 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34612
34613         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
34614         __builtin_memcopy is called when src and dest ranges are known to not
34615         overlap.
34616
34617 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34618
34619         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
34620         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
34621         fwd_align_merge macro call.
34622         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
34623         bwd_align_merge macro call.
34624         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
34625
34626 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34627
34628         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
34629         bwd_align_merge macros.
34630         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
34631         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
34632         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
34633
34634 2012-04-18  David S. Miller  <davem@davemloft.net>
34635
34636         * sysdeps/sparc/sparc64/memcopy.h: Delete.
34637
34638 2012-04-18  Andreas Jaeger  <aj@suse.de>
34639
34640         [BZ# 6794]
34641         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
34642         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
34643         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34644
34645         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
34646         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
34647         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34648
34649         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
34650         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
34651         Adjust for changed ldbl-128 files.
34652
34653         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
34654         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
34655         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34656
34657 2012-04-17  David S. Miller  <davem@davemloft.net>
34658
34659         * sysdeps/sparc/sparc32/memcopy.h: Delete.
34660
34661 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
34662
34663         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
34664         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
34665         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
34666         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
34667         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
34668         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
34669
34670 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34671
34672         [BZ #6794]
34673         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
34674         * math/libm-test.inc: Add ilogb errno and exception tests.
34675         * math/w_ilogb.c: New file: ilogb wrapper.
34676         * math/w_ilogbf.c: New file: ilogbf wrapper.
34677         * math/w_ilogbl.c: New file: ilogbl wrapper.
34678         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
34679         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
34680         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
34681         exception being thrown with 0.0 as argument.
34682         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
34683         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
34684         exception being thrown with 0.0 as argument.
34685         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
34686         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
34687         exception being thrown with 0.0 as argument.
34688         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
34689         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
34690         exception being thrown with 0.0 as argument.
34691         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
34692         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
34693         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
34694         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
34695         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
34696         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
34697         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
34698         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
34699         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
34700
34701 2012-04-17  Petr Baudis  <pasky@ucw.cz>
34702
34703         * include/sys/uio.h: Change __vector to __iovec to avoid clash
34704         with altivec.
34705
34706 2012-04-16  Marek Polacek  <polacek@redhat.com>
34707
34708         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
34709
34710 2012-04-16  Marek Polacek  <polacek@redhat.com>
34711
34712         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
34713         operands of fdivp instruction.
34714
34715 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
34716
34717         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
34718         * elf/tst-auditmod3b.c: Likewise.
34719         * elf/tst-auditmod4b.c: Likewise.
34720         * elf/tst-auditmod5b.c: Likewise.
34721         * elf/tst-auditmod6b.c: Likewise.
34722         * elf/tst-auditmod6c.c: Likewise.
34723         * elf/tst-auditmod7b.c: Likewise.
34724         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
34725         * sysdeps/x86_64/preconfigure.in: Likewise.
34726         * sysdeps/x86_64/preconfigure: Regenerated.
34727
34728 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
34729
34730         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
34731         __ILP32__.
34732
34733 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
34734
34735         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
34736         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
34737
34738 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
34739
34740         [BZ #13973]
34741         * locale/iso-639.def: Fix gl language name. Spotted by
34742         Yaron Shahrabani.
34743
34744 2012-04-12  Roland McGrath  <roland@hack.frob.com>
34745
34746         [BZ #2074]
34747         * libio/libio.h (__io_write_fn): Update comment.
34748
34749 2012-04-12  Petr Baudis  <pasky@ucw.cz>
34750
34751         [BZ #2074]
34752         * stdio.texi (Hook Functions): The user provided writer function
34753         is not allowed to return -1.
34754
34755 2012-04-11  David S. Miller  <davem@davemloft.net>
34756
34757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34758
34759 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
34760
34761         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
34762         Add a leading slash to rtkaio.
34763
34764 2012-04-11  Jim Meyering  <meyering@redhat.com>
34765
34766         [BZ #11959]
34767         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
34768         It is not necessarily an error to ignore fwrite's return
34769         value.  One can reliably use ferror to test for errors after
34770         the fact.
34771
34772 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
34773
34774         * bits/types.h (__snseconds_t): New type.
34775         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
34776
34777         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
34778         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
34779         (__SNSECONDS_T_TYPE): Likewise.
34780         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
34781         (__SNSECONDS_T_TYPE): Likewise.
34782         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
34783         (__SNSECONDS_T_TYPE): Likewise.
34784
34785 2012-04-10  Andreas Jaeger  <aj@suse.de>
34786
34787         [BZ #2636]
34788         * manual/time.texi (Processor Time): Return type of times is
34789         elapsed real time since an arbitrary point in the past.
34790         (CPU Time): Move CLK_TCK from here...
34791         (Processor Time): ...to here.  Correct description.
34792         * manual/conf.texi (Constants for Sysconf): Correct description of
34793         _SC_CLK_TCK.
34794
34795 2012-04-10  David S. Miller  <davem@davemloft.net>
34796
34797         [BZ #13967]
34798         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
34799         where the is a gap between DT_REL(A) and DT_JMPREL.
34800
34801 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
34802
34803         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
34804         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
34805         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
34806
34807 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34808
34809         * elf/dl-support.c (_dl_inhibit_cache): New variable.
34810         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
34811         (dl_main): Handle --inhibit-cache.
34812         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
34813         _dl_inhibit_cache.
34814         * elf/dl-load.c (_dl_map_object): Use it.
34815         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
34816
34817 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
34818
34819         [BZ #13872]
34820         * sysdeps/i386/fpu/e_powl.S (p78): New object.
34821         (__ieee754_powl): Saturate large exponents rather than testing for
34822         overflow of y*log2(x).
34823         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
34824         * math/libm-test.inc (pow_test): Do not permit spurious overflow
34825         exceptions.
34826
34827         [BZ #11521]
34828         * math/s_ctan.c: Include <float.h>.
34829         (__ctan): Avoid internal overflow or cancellation in calculating
34830         denominator.
34831         * math/s_ctanf.c: Likewise.
34832         * math/s_ctanl.c: Likewise.
34833         * math/s_ctanh.c: Likewise.
34834         * math/s_ctanhf.c: Likewise.
34835         * math/s_ctanhl.c: Likewise.
34836         * math/libm-test.inc (ctan_test): Add more tests.
34837         (ctanh_test): Likewise.
34838         * sysdeps/i386/fpu/libm-test-ulps: Update.
34839         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34840
34841 2012-04-09  Andreas Jaeger  <aj@suse.de>
34842
34843         [BZ #6894]
34844         * manual/filesys.texi (Directory Entries): Mention that d_namlen
34845         is an optional BSD extension.
34846
34847         [BZ #10254]
34848         * manual/stdio.texi (Opening Streams): Document additional fopen
34849         parameters.
34850
34851 2012-04-09  Roland McGrath  <roland@hack.frob.com>
34852
34853         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
34854         %eax without telling the compiler.
34855
34856 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
34857
34858         [BZ # 13963]
34859         * manual/install.texi: Use sourceware.org.
34860
34861 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
34862
34863         [BZ #13873]
34864         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
34865         (__ieee754_pow): Generate overflow and underflow using huge*huge
34866         and tiny*tiny rather than just returning constant infinity or zero
34867         for large exponents.
34868         * math/libm-test.inc (pow_test): Require overflow exceptions for
34869         applicable cases of large exponents.
34870
34871         [BZ #706]
34872         * sysdeps/i386/fpu/e_pow.S (p10): New object.
34873         (__ieee754_pow): Use iterative multiplication algorithm only for
34874         integer exponents with absolute value below 1024.  Check for odd
34875         integer exponents when using algorithm for real exponents.
34876         * math/libm-test.inc (pow_test): Add more tests.
34877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34878
34879 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
34880
34881         [BZ #13705]
34882         * math/libm-test.inc (exp_test): Do not allow overflow exception
34883         on underflow test.
34884
34885 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
34886
34887         [BZ #13705]
34888         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
34889         instead of __kernel_standard_f.
34890
34891 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
34892
34893         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
34894         * sysdeps/x86_64/memset_chk.S: Likewise.
34895
34896 2012-04-08  Andreas Jaeger  <aj@suse.de>
34897
34898         [BZ #10153]
34899         * manual/startup.texi (Environment Access): Describe return value
34900         for putenv and setenv.
34901
34902         [BZ #6895]
34903         * manual/filesys.texi (Directory Entries): Add description for
34904         DT_LNK.
34905
34906         [BZ #6890]
34907         * manual/filesys.texi (Directory Entries): Clarify that it's file
34908         system not operating system in the description of DT_UNKNOWN.
34909
34910         [BZ #6578]
34911         * manual/syslog.texi (closelog): Fix reference, it's openlog.
34912
34913 2012-04-08  Stephen Compall  <s11@member.fsf.org>
34914
34915         [BZ #6649]
34916         * manual/llio.texi (Opening and Closing Files): Add cross
34917         reference to explain mode argument.
34918
34919 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
34920
34921         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
34922         * sysdeps/x86_64/memset_chk.S: Likewise.
34923
34924 2012-04-07  David S. Miller  <davem@davemloft.net>
34925
34926         * elf/elf.h (R_SPARC_WDISP10): Define.
34927         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
34928         R_SPARC_SIZE32.
34929         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
34930         R_SPARC_SIZE64 and R_SPARC_H34.
34931
34932 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
34933
34934         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
34935         conditions and remove no longer applicable assertion.
34936
34937 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
34938
34939         * bits/byteswap.h: Include <features.h>.
34940         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
34941         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
34942
34943 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
34944
34945         * bits/byteswap.h (__bswap_16): Removed.
34946         Include <bits/byteswap-16.h> to get __bswap_16.
34947         * sysdeps/i386/bits/byteswap.h: Likewise.
34948         * sysdeps/s390/bits/byteswap.h: Likewise.
34949         * sysdeps/x86_64/bits/byteswap.h: Likewise.
34950         * bits/byteswap-16.h: New file.
34951         * sysdeps/i386/bits/byteswap-16.h: Likewise.
34952         * sysdeps/s390/bits/byteswap-16.h: Likewise.
34953         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
34954         * string/Makefile (headers): Add bits/byteswap-16.h.
34955
34956 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
34957
34958         [BZ #13895]
34959         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
34960         extra indirection.
34961         * nss/Makefile (tests-static, tests): Add tst-nss-static.
34962         * nss/tst-nss-static.c: New.
34963
34964 2012-04-06  Robert Millan  <rmh@gnu.org>
34965
34966         [BZ #6486]
34967         * manual/llio.texi (File Position Primitive): lseek
34968         refers to WHENCE when it really means OFFSET.
34969
34970 2012-04-06  Andreas Jaeger  <aj@suse.de>
34971
34972         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
34973         strncmp declarations.
34974
34975         * abilist/libc.abilist: Add __poll and __ppoll.
34976
34977 2012-04-05  David S. Miller  <davem@davemloft.net>
34978
34979         * scripts/check-local-headers.sh: Accept a host triplet in the
34980         path matched by the exclude regexp.
34981
34982         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
34983         definition.
34984         * sysdeps/powerpc/powerpc32/dl-machine.h
34985         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
34986         * sysdeps/s390/s390-32/dl-machine.h
34987         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
34988         * sysdeps/sparc/sparc32/dl-machine.h
34989         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
34990         * sysdeps/sparc/sparc64/dl-machine.h
34991         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
34992
34993         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
34994         lazy binding.
34995         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
34996         undefined symbol errors.
34997
34998         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
34999         DT_NEEDED entries.
35000
35001 2012-04-05  Michael Matz  <matz@suse.de>
35002
35003         [BZ #13592]
35004         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35005
35006 2012-04-05  Andreas Jaeger  <aj@suse.de>
35007
35008         [BZ #13908]
35009         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35010         comment.
35011
35012 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35013
35014         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35015         which ROUND is no valid rounding mode.
35016
35017 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35018
35019         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35020         read again.
35021         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35022
35023 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35024
35025         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35026         an exception using FPU order intentionally.
35027
35028 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35029
35030         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35031         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35032         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35033         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35034
35035 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35036
35037         [BZ #12340]
35038         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35039         EINVAL when BUFLEN is too smal.
35040
35041 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35042
35043         [BZ #13553]
35044         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35045         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35046
35047 2012-04-03  Andreas Jaeger  <aj@suse.de>
35048
35049         [BZ #13938]
35050         * manual/setjmp.texi (System V contexts): Fix sentence.
35051
35052         [BZ #13926]
35053         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35054         New macro for this case.
35055         [!__GNUC__] (__bswap_64): New inline function for this case.
35056         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35057         * bits/byteswap.h: Likewise.
35058         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35059         ull, guard with __GLIBC_HAVE_LONG_LONG.
35060
35061         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35062         __GLIBC_HAVE_LONG_LONG.
35063
35064         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35065         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35066
35067 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35068
35069         [BZ #13691]
35070         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35071         inptr and inend, rather than using last_ch.
35072
35073 2012-04-02  David S. Miller  <davem@davemloft.net>
35074
35075         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35076         * stdio-common/printf-parse.h (read_int): Change return type to
35077         'int', return -1 on INT_MAX overflow.
35078         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35079         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35080         overflows INT_MAX.  Check for overflow of in-format-string precision
35081         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35082         SIZE_MAX not INT_MAX for integer overflow test.
35083         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35084         skip the construct in the format string but do not record anything.
35085         * stdio-common/bug22.c: Adjust to test both width/prevision
35086         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35087         explicitly for proper errno values.
35088
35089 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35090
35091         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35092         CHAR_MAX.
35093         * string/test-strcmp.c [! WIDE]: Likewise.
35094         * time/tst-mktime2.c: Likewise for INT_MAX.
35095         * string/test-string.h: #include <sys/param.h> for MIN.
35096
35097         * csu/init-first.c (__libc_init_first): Call __ctype_init.
35098         * sysdeps/i386/init-first.c (init): Likewise.
35099         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
35100         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
35101         * sysdeps/sh/init-first.c (init): Likewise.
35102
35103 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
35104
35105         * po/ru.po: Update from translation team.
35106         * po/vi.po: Likewise.
35107
35108 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35109
35110         * resolv/nss_dns/dns-host.c: Merge copyright years.
35111
35112 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35113
35114         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
35115         Optimize memcpy with prefetch if
35116         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
35117         src, dst pointers have unequal 16 byte alignments.
35118
35119 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35120
35121         [BZ #13928]
35122         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
35123         from a CNAME entry and return the minimum ttl for the query.
35124         (gaih_getanswer_slice): Likewise.
35125
35126 2012-03-30  Jeff Law  <law@redhat.com>
35127
35128         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
35129         due to long keys.
35130         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
35131         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
35132
35133         * resolv/nss_dns/dns-host.c: Update copyright year.
35134
35135 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
35136
35137         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
35138         requests to save a system call.  Fix check that all bytes are sent.
35139
35140         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
35141         comments for sendmmsg.
35142
35143 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
35144
35145         [BZ #13691]
35146         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
35147         with only 1 character between 0x0041 and 0x01b0.
35148         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
35149         * wcsmbs/tst-mbsnrtowcs.c: New file.
35150
35151 2012-03-29  David S. Miller  <davem@davemloft.net>
35152
35153         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
35154         small copies by hand.
35155
35156 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35157
35158         [BZ #13761]
35159         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
35160         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
35161         group memberships.
35162
35163 2012-03-28  David S. Miller  <davem@davemloft.net>
35164
35165         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
35166         that branches into memcpy.
35167         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
35168         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
35169         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
35170         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
35171         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
35172         bits.
35173         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
35174         implementation too.
35175         * sysdeps/sparc/mempcpy.S: New file.
35176
35177         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
35178         the IFUNC routine in the libc case.
35179         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
35180
35181         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
35182         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
35183         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
35184         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
35185         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
35186         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
35187         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
35188         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
35189
35190         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
35191         loop to 256 bytes instead of 64 bytes and fix test signedness.
35192
35193         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
35194         * sysdeps/sparc/sparc32/Makefile: rather than here...
35195         * sysdeps/sparc/sparc64/Makefile: and here.
35196
35197 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
35198
35199         * malloc/mallocbug.c: Avoid warnings about unused variables.
35200
35201 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35202
35203         [BZ #13760]
35204         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
35205         in the right place. Discard and retry query if response is
35206         larger than input buffer size.
35207
35208 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
35209
35210         [BZ #369]
35211         [BZ #2678]
35212         [BZ #3866]
35213         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
35214         x for large integer exponent.
35215         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
35216         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
35217         sign of result as needed afterwards.
35218         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
35219         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
35220         result for underflowing pow the same as for overflow.
35221         (__kernel_standard_l): Handle powl overflow and underflow here
35222         rather than calling __kernel_standard.
35223         * math/libm-test.inc (pow_test): Add more tests.
35224
35225         [BZ #3868]
35226         [BZ #13879]
35227         [BZ #13910]
35228         [BZ #13911]
35229         [BZ #13912]
35230         [BZ #13913]
35231         [BZ #13915]
35232         [BZ #13916]
35233         [BZ #13917]
35234         [BZ #13918]
35235         [BZ #13919]
35236         [BZ #13920]
35237         [BZ #13921]
35238         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
35239         * sysdeps/ieee754/k_standard.c: Include <float.h>.
35240         (__kernel_standard_l): New function.
35241         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
35242         __kernel_standard.
35243         * math/w_acosl.c (__acosl): Likewise.
35244         * math/w_asinl.c (__asinl): Likewise.
35245         * math/w_atan2l.c (__atan2l): Likewise.
35246         * math/w_atanhl.c (__atanhl): Likewise.
35247         * math/w_coshl.c (__coshl): Likewise.
35248         * math/w_exp10l.c (__exp10l): Likewise.
35249         * math/w_exp2l.c (__exp2l): Likewise.
35250         * math/w_fmodl.c (__fmodl): Likewise.
35251         * math/w_hypotl.c (__hypotl): Likewise.
35252         * math/w_j0l.c (__j0l, __y0l): Likewise.
35253         * math/w_j1l.c (__j1l, __y1l): Likewise.
35254         * math/w_jnl.c (__jnl, __ynl): Likewise.
35255         * math/w_lgammal.c (__lgammal): Likewise.
35256         * math/w_log10l.c (__log10l): Likewise.
35257         * math/w_log2l.c (__log2l): Likewise.
35258         * math/w_logl.c (__logl): Likewise.
35259         * math/w_powl.c (__powl): Likewise.
35260         * math/w_remainderl.c (__remainderl): Likewise.
35261         * math/w_scalbl.c (sysv_scalbl): Likewise.
35262         * math/w_sinhl.c (__sinhl): Likewise.
35263         * math/w_sqrtl.c (__sqrtl): Likewise.
35264         * math/w_tgammal.c (__tgammal): Likewise.
35265         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
35266         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
35267         * math/libm-test.inc (acos_test): Add more tests.
35268         (acosh_test): Likewise.
35269         (asin_test): Likewise.
35270         (atanh_test): Likewise.
35271         (exp_test): Likewise.
35272         (exp10_test): Likewise.
35273         (exp2_test): Likewise.
35274         (expm1_test): Likewise.
35275         (lgamma_test): Likewise.
35276         (log_test): Likewise.
35277         (log10_test): Likewise.
35278         (log1p_test): Likewise.
35279         (log2_test): Likewise.
35280         (pow_test): Do not allow some spurious overflow exceptions.
35281         (sqrt_test): Add more tests.
35282         (tgamma_test): Likewise.
35283         (y0_test): Likewise.
35284         (y1_test): Likewise.
35285         (yn_test): Likewise.
35286
35287 2012-03-27  Anton Blanchard  <anton@samba.org>
35288
35289         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
35290         MAP_HUGETLB.
35291         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
35292         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
35293         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
35294
35295 2012-03-27  David S. Miller  <davem@davemloft.net>
35296
35297         * conform/Makefile: Run run-conformtest.sh using $(BASH).
35298
35299         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
35300         have-as-vis3 check.
35301
35302 2012-03-27  Andreas Jaeger  <aj@suse.de>
35303
35304         * sysdeps/x86_64/elf/configure.in: Moved to ...
35305         * sysdeps/x86_64/configure.in: ... here.
35306         * sysdeps/x86_64/elf/start.S: Moved to ...
35307         * sysdeps/x86_64/start.S: ... here.
35308         * sysdeps/x86_64/elf/configure: Delete.
35309
35310         * sysdeps/x86_64/configure.in: Merge contents from
35311         sysdeps/i386/configure.in (without i686 check).
35312
35313         * sysdeps/i386/elf/Versions: Merge into ...
35314         * sysdeps/i386/Versions: ... this.
35315         * sysdeps/i386/elf/Versions: Delete file.
35316         * sysdeps/i386/elf/start.S: Moved to ...
35317         * sysdeps/i386/start.S: ...here.
35318         * sysdeps/i386/elf/configure.in: Merge into...
35319         * sysdeps/i386/configure.in: ...here.
35320         * sysdeps/i386/elf/configure.in: Delete file.
35321         * sysdeps/i386/elf/configure: Delete file.
35322
35323         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
35324         * debug/backtracesyms.c: ... here.
35325         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
35326         * debug/backtracesymsfd.c: ... here.
35327         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
35328         * sysdeps/generic/ifunc-sel.h: ... here.
35329
35330         * sysdeps/unix/i386/start.c: Delete file.
35331         * sysdeps/unix/sparc/start.c: Delete file.
35332         * sysdeps/unix/start.c: Delete file.
35333
35334         * sysdeps/sh/elf/configure.in: Moved to ...
35335         * sysdeps/sh/configure.in: ... here.
35336         * sysdeps/sh/elf/start.S: Moved to ...
35337         * sysdeps/sh/start.S: ... here.
35338         * sysdeps/sh/elf/configure: Delete file.
35339
35340         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
35341         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
35342         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
35343         * sysdeps/powerpc/powerpc64/entry.h: ... here.
35344         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
35345         * sysdeps/powerpc/powerpc64/start.S: here.
35346         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
35347         * sysdeps/powerpc/powerpc64/Makefile: ... this.
35348         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
35349         * sysdeps/powerpc/powerpc64/configure.in: ... this.
35350         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
35351
35352         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
35353         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
35354         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
35355         * sysdeps/powerpc/powerpc32/start.S: ... here.
35356         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
35357         * sysdeps/powerpc/powerpc32/configure.in: ... this.
35358         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
35359
35360         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
35361         * sysdeps/powerpc/ifunc-sel.h: ... here.
35362         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
35363         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
35364
35365         * sysdeps/sparc/elf/configure.in: Moved to ...
35366         * sysdeps/sparc/configure.in: ... here.
35367         * sysdeps/sparc/elf/configure: Delete file.
35368         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
35369         * sysdeps/sparc/sparc32/start.S: ... here.
35370         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
35371         * sysdeps/sparc/sparc64/start.S: ... here.
35372         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
35373         * sysdeps/sparc/sparc32/Makefile: ... this.
35374         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
35375         * sysdeps/sparc/sparc64/Makefile: ... this.
35376
35377         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
35378         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
35379         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
35380         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
35381         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
35382         * sysdeps/s390/s390-32/setjmp.S: ... here.
35383         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
35384         * sysdeps/s390/s390-32/configure.in: ... here.
35385         * sysdeps/s390/s390-32/elf/configure: Delete file.
35386         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
35387         * sysdeps/s390/s390-32/start.S: ... here.
35388
35389         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
35390         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
35391         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
35392         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
35393         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
35394         * sysdeps/s390/s390-64/setjmp.S: ... here.
35395         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
35396         * sysdeps/s390/s390-64/configure.in: ... here
35397         * sysdeps/s390/s390-64/elf/configure: Delete file.
35398         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
35399         * sysdeps/s390/s390-64/start.S: ... here.
35400         * sysdeps/s390/s390-64/elf/configure: Delete.
35401
35402         * configure.in: Remove support for elf directories in sysdeps.
35403
35404         * configure: Regenerated.
35405         * sysdeps/i386/configure: Regenerated.
35406         * sysdeps/powerpc/powerpc32/configure: Regenerated.
35407         * sysdeps/powerpc/powerpc64/configure: Regenerated.
35408         * sysdeps/s390/s390-32/configure: Regenerated.
35409         * sysdeps/s390/s390-64/configure: Regenerated.
35410         * sysdeps/sh/configure: Regenerated.
35411         * sysdeps/sparc/configure: Regenerated.
35412         * sysdeps/x86_64/configure: Regenerated.
35413
35414 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
35415
35416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35417
35418         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
35419         denormal result into account.
35420
35421 2012-03-25  Roland McGrath  <roland@hack.frob.com>
35422
35423         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
35424         Reported by Allan McRae <allan@archlinux.org>.
35425
35426 2012-03-23  Jeff Law  <law@redhat.com>
35427
35428         * nss/getnssent.c (__nss_getent): Fix typo.
35429
35430 2012-03-23  David S. Miller  <davem@davemloft.net>
35431
35432         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35433
35434 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
35435
35436         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
35437         to pad to uint64_t for each field.
35438         (dl_tls_index): Replace unsigned long with uint64_t.
35439
35440 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
35441         Paul Pluzhnikov  <ppluzhnikov@google.com>
35442
35443         [BZ #6528]
35444         * grp/Makefile (otherlibs): Don't set it.
35445         * inet/Makefile (otherlibs): Likewise.
35446         * login/Makefile (otherlibs): Likewise.
35447         * nscd/Makefile (otherlibs): Likewise.
35448         * posix/Makefile (otherlibs): Likewise.
35449         * pwd/Makefile (otherlibs): Likewise.
35450         * rt/Makefile (otherlibs): Likewise.
35451         * sunrpc/Makefile (otherlibs): Likewise.
35452         * nss/Makefile (otherlibs): Likewise.
35453         Add libnss_files to routines and static-only-routines.
35454         ($(objpfx)getent): Remove rule.
35455         * resolv/Makefile: Add libnss_dns and libresolv to routines and
35456         static-only-routines.
35457
35458 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35459
35460         [BZ #13892]
35461         * math/s_cexp.c: Include <float.h>.
35462         (__cexp): Handle exp result overflowing not necessarily
35463         overflowing both real and imaginary parts of result.
35464         * math/s_cexpf.c: Likewise.
35465         * math/s_cexpl.c: Likewise.
35466         * math/libm-test.inc (cexp_test): Add more tests.
35467         * sysdeps/i386/fpu/libm-test-ulps: Update.
35468         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35469
35470 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35471
35472         * include/link.h (ELFW): New macro.
35473         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
35474         Replace ELF64_R_TYPE with ELFW(R_TYPE).
35475
35476 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35477
35478         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
35479         with uint64_t.
35480
35481 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35482
35483         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
35484         declaration.
35485         (struct La_x32_retval): Likewise.
35486
35487 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35488
35489         * sysdeps/x86_64/preconfigure.in: New file.
35490         * sysdeps/x86_64/preconfigure: New generated file.
35491
35492 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35493
35494         [BZ #13824]
35495         * math/e_exp2l.c: Include <float.h>.
35496         (__ieee754_exp2l): Handle overflow and underflow cases
35497         separately.  Only pass fractional part of argument to
35498         __ieee754_expl.
35499         * math/libm-test.inc (exp2_test): Add more tests.
35500
35501         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
35502         negating x to take absolute value.
35503         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35504         Likewise.
35505         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35506         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
35507         Likewise.
35508         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
35509         computing low part if x was negated.
35510         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35511
35512 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35513
35514         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
35515         la_x32_gnu_pltexit.
35516         (pltexit): Cast int_retval to ptrdiff_t.
35517         * elf/tst-auditmod3b.c: Likewise.
35518         * elf/tst-auditmod4b.c: Likewise.
35519         * elf/tst-auditmod5b.c: Likewise.
35520         * elf/tst-auditmod6b.c: Likewise.
35521         * elf/tst-auditmod6c.c: Likewise.
35522         * elf/tst-auditmod7b.c: Likewise.
35523
35524         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
35525         and x32_gnu_pltexit.
35526
35527         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
35528         __ELF_NATIVE_CLASS.
35529         (La_x32_regs): New macro.
35530         (La_x32_retval): Likewise.
35531         (la_x32_gnu_pltenter): New function prototype.
35532         (la_x32_gnu_pltexit): Likewise.
35533
35534 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
35535
35536         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
35537         exponent.
35538
35539         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35540
35541         * configure.in (libc_cv_cc_nofma): Check for option to disable
35542         generation of FMA instructions.
35543         * configure: Regenerate.
35544         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
35545         * sysdeps/ieee754/dbl-64/Makefile: New file.
35546         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35547         Remove brandred-fma4.
35548         (CFLAGS-brandred-fma4.c): Remove.
35549         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
35550         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
35551         define.
35552         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
35553         define.
35554
35555 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35556
35557         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
35558         LLONG_MAX != LONG_MAX.
35559         (_itoa_word): Use _ITOA_WORD_TYPE on value.
35560         (_fitoa_word): Likewise.
35561         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
35562         LLONG_MAX != LONG_MAX.
35563         * stdio-common/_itowa.h: Include <_itoa.h>.
35564         (_itowa_word): Use _ITOA_WORD_TYPE on value.
35565         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
35566         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
35567         only if not defined.
35568         (_ITOA_WORD_TYPE): Likewise.
35569         (_itoa_word): Use _ITOA_WORD_TYPE on value.
35570         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
35571
35572 2012-03-21  David S. Miller  <davem@davemloft.net>
35573
35574         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35575
35576 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35577
35578         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
35579         of x86_64 when setting libc_cv_slibdir, libdir and
35580         libc_cv_localedir.
35581         * sysdeps/unix/sysv/linux/configure: Regenerated.
35582
35583 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35584
35585         * manual/lang.texi (Old Varargs): Remove section.
35586         (How Variadic): Update menu.
35587         (va_start): Do not mention varargs.h.
35588
35589 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
35590             Joseph Myers  <joseph@codesourcery.com>
35591
35592         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
35593         link test.
35594         * configure: Regenerated.
35595
35596 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
35597
35598         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
35599         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
35600         conformtest.pl
35601
35602 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35603
35604         * NOTES: Remove.
35605         * Makefile (files-for-dist): Remove NOTES.
35606         (NOTES): Remove rule.
35607         * README: Don't refer to NOTES.
35608         * manual/creature.texi: Don't include macros.texi.
35609         * manual/intro.texi (creature.texi): Remove comment referring to
35610         NOTES.
35611
35612         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
35613         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
35614         * configure: Regenerated.
35615         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
35616         LIBC_TRY_CC_OPTION.
35617         (libc_cv_as_i686): Likewise.
35618         (libc_cv_cc_avx): Likewise.
35619         (libc_cv_cc_sse2avx): Likewise.
35620         (libc_cv_cc_fma4): Likewise.
35621         (libc_cv_cc_novzeroupper): Likewise.
35622         * sysdeps/i386/configure: Regenerated.
35623
35624         [BZ #13883]
35625         * sysdeps/i386/fpu/s_cexp.S: Remove.
35626         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
35627         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
35628         * math/libm-test.inc (cexp_test): Add more tests.
35629         * sysdeps/i386/fpu/libm-test-ulps: Update.
35630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35631
35632 2012-03-21  Allan McRae  <allan@archlinux.org>
35633
35634         * timezone/Makefile: Do not install iso3166.tab and zone.tab
35635
35636 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35637
35638         [BZ #13871]
35639         * math/w_exp2.c: Do not include <float.h>.
35640         (o_threshold, u_threshold): Remove.
35641         (__exp2): Calculate result before checking finiteness and calling
35642         __kernel_standard.
35643         * math/w_exp2f.c: Likewise.
35644         * math/w_exp2l.c: Likewise.
35645         * math/libm-test.inc (exp2_test): Require overflow exception for
35646         1e6 input.
35647
35648         [BZ #3866]
35649         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
35650         range of signed 64-bit integers before using fistpll.  Remove
35651         checks for whether integers fit in mantissa bits.
35652         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
35653         the range of signed 32-bit integers before using fistpl.  Remove
35654         checks for whether integers fit in mantissa bits.
35655         * sysdeps/i386/fpu/e_powl.S (p64): New object.
35656         (__ieee754_powl): Test for y outside the range of signed 64-bit
35657         integers before using fistpll.  Reduce 64-bit values to 63-bit
35658         ones as needed.
35659         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
35660         divide-by-zero is raised for zero to large negative powers.
35661         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
35662         (__ieee754_powl): Test for y outside the range of signed 64-bit
35663         integers before using fistpll.  Reduce 64-bit values to 63-bit
35664         ones as needed.
35665         * math/libm-test.inc (pow_test): Add more tests.
35666
35667 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35668
35669         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
35670         <stdio-common/_itoa.h>.
35671         * debug/segfault.c: Likewise.
35672         * elf/dl-cache.c: Likewise.
35673         * elf/dl-minimal.c: Likewise.
35674         * elf/dl-misc.c: Likewise.
35675         * elf/dl-sysdep.c: Likewise.
35676         * elf/dl-version.c: Likewise.
35677         * elf/rtld.c: Likewise.
35678         * hurd/hurdsock.c: Likewise.
35679         * hurd/lookup-retry.c: Likewise.
35680         * malloc/malloc.c: Likewise.
35681         * malloc/mtrace.c: Likewise.
35682         * nscd/nscd_getgr_r.c: Likewise.
35683         * nscd/nscd_getpw_r.c: Likewise.
35684         * nscd/nscd_getserv_r.c: Likewise.
35685         * posix/getopt_init.c: Likewise.
35686         * posix/wordexp.c: Likewise.
35687         * stdio-common/_itoa.c: Likewise.
35688         * stdio-common/printf_fphex.c: Likewise.
35689         * stdio-common/vfprintf.c: Likewise.
35690         * string/_strerror.c: Likewise.
35691         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
35692         * sysdeps/i386/i686/hp-timing.h: Likewise.
35693         * sysdeps/mach/_strerror.c: Likewise.
35694         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
35695         * sysdeps/mach/hurd/sethostid.c: Likewise.
35696         * sysdeps/mach/hurd/xmknodat.c: Likewise.
35697         * sysdeps/mach/xpg-strerror.c: Likewise.
35698         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
35699         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
35700         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
35701         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
35702         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
35703         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
35704         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
35705         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
35706         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
35707         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
35708         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
35709         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
35710         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
35711         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
35712         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
35713         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
35714         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
35715         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
35716         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35717         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35718         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
35719
35720         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
35721
35722         * stdio-common/_itoa.h: Moved to ...
35723         * sysdeps/generic/_itoa.h: Here.
35724
35725         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
35726
35727         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
35728         instead of "_itoa.h" and "_itowa.h".
35729         * stdio-common/vfprintf.: Likewise.
35730
35731 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35732
35733         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
35734         <bits/wordsize.h>.
35735         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
35736         (__signbit): Likwise.
35737         (llrintf): Likwise.
35738         (llrint): Likwise.
35739
35740 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35741
35742         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
35743         __WORDSIZE != 64.
35744
35745 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
35746
35747         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
35748         OVERFLOW_EXCEPTION_OK.
35749         * math/libm-test.inc ("Philosophy"): Update comment about
35750         exception testing.
35751         (OVERFLOW_EXCEPTION): Define.
35752         (OVERFLOW_EXCEPTION_OK): Likewise.
35753         (INVALID_EXCEPTION_OK): Renumber.
35754         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
35755         (IGNORE_ZERO_INF_SIGN): Likewise.
35756         (test_exceptions): Handle FE_OVERFLOW.
35757         (exp10_test): Expect overflow exceptions.
35758         (exp2_test): Likewise.
35759         (expm1_test): Likewise.
35760         (nextafter_test): Likewise.
35761         (pow_test): Likewise.
35762         (scalbn_test): Likewise.
35763         (scalbln_test): Likewise.
35764
35765 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35766
35767         * sysdeps/x86_64/bits/atomic.h
35768         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
35769         64bit integer.
35770         (atomic_exchange_acq): Likewise.
35771         (__arch_exchange_and_add_body): Likewise.
35772         (__arch_add_body): Likewise.
35773         (atomic_add_negative): Likewise.
35774         (atomic_add_zero): Likewise.
35775
35776 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35777
35778         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
35779         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
35780
35781 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35782
35783         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
35784         Check __x86_64__ instead of __WORDSIZE.
35785
35786 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35787
35788         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
35789
35790 2012-03-19  David S. Miller  <davem@davemloft.net>
35791
35792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35793
35794         * sysdeps/sparc/fpu/fenv_private.h: New file.
35795         * sysdeps/sparc/fpu/math_private.h: Use it.
35796         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
35797         Remove.
35798         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
35799         (libc_feholdexcept_setroundl): Remove.
35800         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
35801         Remove.
35802         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
35803         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
35804
35805 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35806
35807         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
35808         int64_t instead of long int.
35809         (INSERT_WORDS64): Likwise.
35810
35811 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35812
35813         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
35814         _Unwind_GetCFA return to _Unwind_Ptr first.
35815
35816 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
35817
35818         [BZ #13629]
35819         * math/s_clog.c: Include <float.h>.
35820         (__clog): Scale large or subnormal inputs.
35821         * math/s_clogf.c: Likewise.
35822         * math/s_clogl.c: Likewise.
35823         * math/s_clog10.c: Include <float.h>.
35824         (M_LOG10_2): Define.
35825         (__clog10): Scale large or subnormal inputs.
35826         * math/s_clog10f.c: Likewise.
35827         * math/s_clog10l.c: Likewise.
35828         * math/libm-test.inc (clog_test): Add more tests.
35829         (clog10_test): Likewise.
35830         * sysdeps/i386/fpu/libm-test-ulps: Update.
35831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35832
35833         [BZ #11451]
35834         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
35835         x and y.
35836         * math/libm-test.inc (atan2_test): Add another test.
35837
35838         * Makerules (common-objdir-compile): Remove.
35839         * sysdeps/unix/Makefile (config-generated): Do not add
35840         $(unix-generated) to variable.
35841         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
35842         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
35843         Remove rule.
35844         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
35845         Likewise.
35846         [generic bits/local_lim.h] (before-compile): Do not append to
35847         variable.
35848         [generic bits/local_lim.h] (common-generated): Likewise.
35849         [generic sys/param.h] (before-compile): Do not append to variable.
35850         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
35851         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
35852         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
35853         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
35854         include.
35855         [generic sys/param.h] (sys/param.h-includes): Remove variable.
35856         [generic sys/param.h] (sys/param.h-includes): Remove rule.
35857         [generic sys/param.h] ($(addprefix
35858         $(common-objpfx),$(sys/param.h-includes))): Likewise.
35859         [generic sys/param.h] (common-generated): Do not append to
35860         variable.
35861         [generic sys/param.h] (sysdep_headers): Likewise.
35862         [generic bits/errno.h] (before-compile): Do not append to
35863         variable.
35864         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
35865         rule.
35866         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
35867         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
35868         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
35869         [generic bits/errno.h] (common-generated): Do not append to
35870         variable.
35871         [generic bits/ioctls.h] (before-compile): Do not append to
35872         variable.
35873         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
35874         rule.
35875         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
35876         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
35877         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
35878         rule.
35879         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
35880         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
35881         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
35882         [generic bits/ioctls.h] (common-generated): Do not append to
35883         variable.
35884         [generic sys/syscall.h] (syscall.h): Remove variable.
35885         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
35886         rule.
35887         [generic sys/syscall.h] (before-compile): Do not append to
35888         variable.
35889         [generic sys/syscall.h] (common-generated): Likewise.
35890         * sysdeps/unix/errnos-tmpl.c: Remove file.
35891         * sysdeps/unix/errnos.awk: Likewise.
35892         * sysdeps/unix/ioctls-tmpl.c: Likewise.
35893         * sysdeps/unix/ioctls.awk: Likewise.
35894         * sysdeps/unix/mk-local_lim.c: Likewise.
35895         * sysdeps/unix/snarf-ioctls: Likewise.
35896
35897 2012-03-19  Richard Henderson  <rth@twiddle.net>
35898
35899         * sysdeps/i386/fpu/fenv_private.h: New file.
35900         * sysdeps/i386/fpu/math_private.h: Use it.
35901         (math_opt_barrier, math_force_eval): Remove.
35902         (libc_feholdexcept_setround_53bit): Remove.
35903         (libc_feupdateenv_53bit): Remove.
35904         * sysdeps/x86_64/fpu/math_private.h: Likewise.
35905         (math_opt_barrier, math_force_eval): Remove.
35906         (libc_feholdexcept): Remove.
35907         (libc_feholdexcept_setround): Remove.
35908         (libc_fetestexcept, libc_fesetenv): Remove.
35909         (libc_feupdateenv_test): Remove.
35910         (libc_feupdateenv, libc_feholdsetround): Remove.
35911         (libc_feresetround): Remove.
35912
35913         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
35914         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
35915
35916         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
35917         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
35918         (libc_feupdateenv_testl): New.
35919         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
35920         (libc_feupdateenv_testf): New.
35921         (libc_feupdateenv): Use libc_feupdateenv_test.
35922         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
35923         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
35924
35925         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
35926         (libc_feholdsetroundf, libc_feholdsetroundl): New.
35927         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
35928         (libc_feresetround_noex): New.
35929         (libc_feresetround_noexf): New.
35930         (libc_feresetround_noexl): New.
35931         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
35932         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
35933         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
35934         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
35935         SET_RESTORE_ROUND.
35936         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
35937         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
35938         (__cos): Likewise.
35939         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
35940         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
35941         SET_RESTORE_ROUND_NOEX.
35942         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
35943         SET_RESTORE_ROUND_NOEXF.
35944         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
35945         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
35946         (libc_feholdsetroundf): New.
35947         (libc_feresetround, libc_feresetroundf): New.
35948
35949         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
35950         (libc_feholdexcept_setround_53bit): Convert from macro to function.
35951         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
35952
35953         * sysdeps/generic/math_private.h: Include <fenv.h>.
35954         (default_libc_feholdexcept): New.
35955         (default_libc_feholdexcept_setround): New.
35956         (default_libc_fesetenv, default_libc_feupdateenv): New.
35957         (libc_feholdexcept): Only define if undefined.
35958         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
35959         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
35960         (libc_feholdexcept_setroundl): Likewise.
35961         (libc_feholdexcept_setround_53bit): Likewise.
35962         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
35963         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
35964         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
35965         (libc_feupdateenv_53bit): Likewise.
35966         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
35967         (libc_feholdexcept): Convert from macro to inline function.
35968         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
35969         (libc_fesetenv, libc_feupdateenv): Likewise.
35970
35971         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
35972         not previously defined.
35973         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
35974         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
35975         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
35976         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
35977         * sysdeps/ieee754/flt-32/math_private.h: New file.
35978         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
35979         math_private.h below SET_FLOAT_WORD.
35980         (__isnan, __isinf_ns, __finite): Remove.
35981         (__isnanf, __isinf_nsf, __finitef): Remove.
35982
35983 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
35984
35985         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35986
35987 2012-03-17  David S. Miller  <davem@davemloft.net>
35988
35989         [BZ #6471]
35990         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
35991         for 2.16.
35992
35993 2012-03-16  David S. Miller  <davem@davemloft.net>
35994
35995         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
35996         warnings.
35997
35998         [BZ #6471]
35999         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36000         properly.
36001         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36002         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36003         sysdep_routines when subdir is sysvipc.
36004         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36005         __getshmlba helper.
36006
36007         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36008
36009 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36010
36011         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36012         [__LP64__].
36013
36014 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36015
36016         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36017         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36018         (__lround): Renamed to ...
36019         (__llround): This.  Replace long int with long long int.
36020         Define lround functions as aliases of llround functions.
36021         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36022
36023 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36024
36025         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36026         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36027         adresses to uintptr_t.  Replace "long int" and "unsigned long
36028         int" with "greg_t" on va_arg.
36029
36030 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36031
36032         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36033         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36034
36035         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36036         Move e_machine check before EI_CLASS check.  Handle x32
36037         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36038         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36039         SKIP_EM_IA_64 and include
36040         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36041
36042         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36043         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36044         (add_system_dir): New macro.
36045
36046         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36047         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36048
36049 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36050
36051         [BZ #2551]
36052         [BZ #2552]
36053         [BZ #2553]
36054         [BZ #2554]
36055         [BZ #2562]
36056         [BZ #2563]
36057         [BZ #2565]
36058         [BZ #2566]
36059         [BZ #2576]
36060         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36061         (y0): Likewise.
36062         * math/w_j0f.c (j0f): Likewise.
36063         (y0f): Likewise.
36064         * math/w_j0l.c (__j0l): Likewise.
36065         (__y0l): Likewise.
36066         * math/w_j1.c (j1): Likewise.
36067         (y1): Likewise.
36068         * math/w_j1f.c (j1f): Likewise.
36069         (y1f): Likewise.
36070         * math/w_j1l.c (__j1l): Likewise.
36071         (__y1l): Likewise.
36072         * math/w_jn.c (jn): Likewise.
36073         (yn): Likewise.
36074         * math/w_jnf.c (jnf): Likewise.
36075         (ynf): Likewise.
36076         * math/w_jnl.c (__jnl): Likewise.
36077         (__ynl): Likewise.
36078         * math/libm-test.inc (j0_test): Add more tests.
36079         (j1_test): Likewise.
36080         (jn_test): Likewise.  Add trailing semicolon to existing test.
36081         (y0_test): Likewise.
36082         (y1_test): Likewise.
36083         * sysdeps/i386/fpu/libm-test-ulps: Update.
36084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36085
36086         [BZ #13851]
36087         [BZ #13854]
36088         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36089         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36090         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36091         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36092         (__tanl): Set errno for infinite argument.
36093         * sysdeps/i386/fpu/mptan.c: Remove.
36094         * sysdeps/i386/fpu/s_tan.S: Likewise.
36095         * sysdeps/i386/fpu/s_tanl.S: Likewise.
36096         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
36097         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
36098         * math/libm-test.inc (tan_test): Add more tests and enable more
36099         tests for double and long double.
36100         * sysdeps/i386/fpu/libm-test-ulps: Update.
36101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36102
36103 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
36104
36105         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
36106         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
36107
36108 2012-03-16  Roland McGrath  <roland@hack.frob.com>
36109
36110         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
36111         * configure.in: Use it for both main tree and add-ons.
36112         * configure: Regenerated.
36113
36114 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36115
36116         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
36117
36118 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36119
36120         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
36121         in comment.
36122
36123         [BZ #13851]
36124         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
36125         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
36126         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
36127         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
36128         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
36129         infinite argument.
36130         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
36131         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
36132         != 0 for prec == 2.
36133         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
36134         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
36135         * sysdeps/i386/fpu/s_cosl.S: Likewise.
36136         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
36137         * sysdeps/i386/fpu/s_sinl.S: Likewise.
36138         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
36139         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
36140         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
36141         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
36142         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
36143         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
36144         * math/libm-test.inc (cos_test): Add more tests and enable more
36145         tests for long double.
36146         (sin_test): Likewise.
36147         (sincos_test): Likewise.
36148         * sysdeps/i386/fpu/libm-test-ulps: Update.
36149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36150
36151 2012-03-16  David S. Miller  <davem@davemloft.net>
36152
36153         * sysdeps/sparc/fpu/math_private.h: New file.
36154
36155 2012-03-15  David S. Miller  <davem@davemloft.net>
36156
36157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
36158         file.
36159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
36160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
36161         file.
36162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
36163         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
36164         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
36165         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
36166         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
36167         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
36168         sysdep routines.
36169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36170
36171         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
36172         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
36173
36174         * sysdeps/sparc/sparc-ifunc.h: New file.
36175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
36176         sparc-ifunc.h
36177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
36178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
36179         Likewise.
36180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
36181         Likewise.
36182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
36183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
36184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
36185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
36186         Likewise.
36187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
36188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
36189         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
36190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
36191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
36192         Likewise.
36193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
36194         Likewise.
36195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
36196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
36197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
36198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
36199         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
36200         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
36201         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
36202         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
36203         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
36204         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
36205         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
36206         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
36207         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
36208         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
36209         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
36210         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
36211         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
36212         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
36213         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
36214         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
36215         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
36216         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
36217         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
36218         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
36219
36220 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36221
36222         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
36223         scaling.
36224         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36225
36226 2012-03-15  Andreas Jaeger  <aj@suse.de>
36227
36228         [BZ #13852]
36229         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
36230         ieee754/flt-32 implementation for sin, cos and sincos.
36231         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
36232         * sysdeps/i386/fpu/s_cosf.S: Likewise.
36233         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
36234         * sysdeps/i386/fpu/s_sinf.S: Likewise.
36235         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
36236         ieee754/flt-32 implementation for tan.
36237
36238         * math/libm-test.inc (cos_test): Enable some large input tests for
36239         float as well
36240         (sin_test): Likewise.
36241         (sincos_test): Likewise.
36242         (tan_test): Add tests for large input.
36243
36244         * sysdeps/i386/fpu/libm-test-ulps: Update.
36245
36246 2012-03-15  Andreas Jaeger  <aj@suse.de>
36247
36248         [BZ #13658]
36249         * math/libm-test.inc (cos_test): Add more test cases.
36250         (sin_test): Likewise.
36251         (sincos_test): Likewise.
36252
36253 2012-03-15  Andreas Jaeger  <aj@suse.de>
36254
36255         [BZ #13837]
36256         * math/libm-test.inc (cos_test): Add a test case for large input
36257         value.
36258         (sin_test): Likewise.
36259         (sincos_test): Likewise.
36260
36261 2012-03-15  Andreas Jaeger  <aj@suse.de>
36262             Joseph Myers  <joseph@codesourcery.com>
36263
36264         [BZ #13658]
36265         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
36266         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
36267         * sysdeps/i386/fpu/branred.c: Likewise.
36268         * sysdeps/i386/fpu/dosincos.c: Likewise.
36269         * sysdeps/i386/fpu/mpa.c: Likewise.
36270         * sysdeps/i386/fpu/s_cos.S: Likewise.
36271         * sysdeps/i386/fpu/s_sin.S: Likewise.
36272         * sysdeps/i386/fpu/s_sincos.S: Likewise.
36273         * sysdeps/i386/fpu/sincos32.c: Likewise.
36274
36275         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
36276         Define.
36277         (libc_feupdateenv_53bit): Define.
36278         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
36279         Define.
36280         (libc_feupdateenv_53bit): Define.
36281
36282         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
36283         53 bit (without extend i386 double precision).
36284
36285         * math/libm-test.inc (sincos_test): Add tests for large input.
36286         (sin): Likewise.
36287         (cos): Likewise.
36288
36289         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
36290
36291 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36292
36293         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36294
36295 2012-03-15  David S. Miller  <davem@davemloft.net>
36296
36297         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
36298         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
36299         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
36300         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
36301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
36302         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
36303         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
36304         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
36305         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
36306         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
36307         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
36308         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
36309         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
36310         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
36311         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
36312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
36313         file.
36314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
36315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
36316         file.
36317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
36318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
36319         file.
36320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
36321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
36322         file.
36323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
36324         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
36325         fmin/fmax sysdep routines.
36326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36327
36328 2012-03-14  David S. Miller  <davem@davemloft.net>
36329
36330         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
36331         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
36332         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
36333         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
36334         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
36335         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
36336         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
36337         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
36338         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
36339         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
36340         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
36341         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
36342         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
36343         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
36344         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
36345         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
36346         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
36347         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
36348         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
36349         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
36350         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
36351         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
36352         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
36353         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
36354         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
36355         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
36356         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
36357         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
36358         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
36359         routines.
36360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
36361         file.
36362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
36363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
36364         file.
36365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
36366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
36367         file.
36368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
36369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
36370         file.
36371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
36372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
36373         file.
36374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
36375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
36376         file.
36377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
36378         file.
36379         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
36380         file.
36381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
36382         file.
36383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
36384         New file.
36385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
36386         file.
36387         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
36388         file.
36389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
36390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
36391         file.
36392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
36393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
36394         file.
36395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
36396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
36397         file.
36398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
36399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
36400         VIS3 routines.
36401
36402         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
36403         New file.
36404
36405         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36406
36407         * sysdeps/sparc/configure.in: New file.
36408         * sysdeps/sparc/configure: Generate.
36409         * configure.in (libc_cv_sparc_as_vis3): Substitute.
36410         * configure: Regenerate.
36411         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
36412         * config.make.in (have-as-vis3): New.
36413         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
36414         available use -Av9d instead of -Av9a.
36415         * sysdeps/sparc/sparc64/Makefile: Likewise.
36416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
36417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
36418         New file.
36419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
36420         file.
36421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
36422         New file.
36423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
36424         file.
36425         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
36426         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
36427         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
36428         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
36429         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
36430
36431         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
36432         fzeros/fnegs to load 0x80000000 into a float register instead of
36433         using the stack.
36434         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
36435
36436 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36437
36438         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36439         bits/syscall.h.
36440         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
36441         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
36442         ($(inst_includedir)/bits/syscall.h): Remove rule.
36443         ($(objpfx)bits/syscall.d): Include instead of
36444         $(objpfx)syscall-list.d.
36445         (generated): Change syscall-list.h and syscall-list.d to
36446         bits/syscall.h and bits/syscall.d.
36447
36448 2012-03-14  Roland McGrath  <roland@hack.frob.com>
36449
36450         [BZ #13846]
36451         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
36452
36453 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36454
36455         [BZ #13841]
36456         * math/s_csqrt.c: Include <float.h>.
36457         (__csqrt): Scale large or subnormal inputs.
36458         * math/s_csqrtf.c: Likewise.
36459         * math/s_csqrtl.c: Likewise.
36460         * math/libm-test.inc (csqrt_test): Add more tests.
36461         * sysdeps/i386/fpu/libm-test-ulps: Update.
36462         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36463
36464         [BZ #13840]
36465         * math/libm-test.inc (hypot_test): Add more tests.
36466
36467 2012-03-13  David S. Miller  <davem@davemloft.net>
36468
36469         [BZ #13840]
36470         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
36471         double-precision for the calculation instead of scaling.
36472
36473 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
36474
36475         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
36476         manipulate bits before adding and subtracting TWO52[sx].
36477         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
36478         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
36479         Likewise.
36480         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
36481
36482 2012-03-13  David S. Miller  <davem@davemloft.net>
36483
36484         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
36485         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
36486         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
36487         rtld-global-offsets.h
36488         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
36489
36490         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
36491         large parameters.
36492
36493         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
36494
36495         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
36496         'err' in the ifdef scope in which it is actually used.
36497
36498         * nss/nss_db/db-init.c: Include string.h
36499
36500 2012-03-12  David S. Miller  <davem@davemloft.net>
36501
36502         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
36503         masking out of the most significant byte of random value used.
36504         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36505         Fix coding style in previous change.
36506
36507         * sysdeps/unix/sysv/linux/kernel-features.h
36508         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
36509         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
36510         expression.
36511         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
36512         later.
36513
36514 2012-03-11  David S. Miller  <davem@davemloft.net>
36515
36516         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
36517         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
36518         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
36519         for 'resultvar' otherwise things get truncated on 64-bit.
36520
36521         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36522         Fix masking out of the most significant byte of random value used.
36523
36524         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36525
36526 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
36527
36528         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36529
36530 2012-03-09  David S. Miller  <davem@davemloft.net>
36531
36532         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
36533         variables with appropriate CPP guards.
36534         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
36535         from the frame pointer, not the stack pointer.  Correct layout
36536         comments.  Fix test on resulting framesize and the management of
36537         the outregs buffer for pltexit.  Preserve floating point return
36538         values across _dl_call_pltexit call.
36539         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
36540         framesize and the management of the outregs buffer for pltexit.
36541         Preserve floating point return values across _dl_call_pltexit
36542         call.
36543         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
36544         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
36545         (la_sparc64_gnu_pltexit): New functions.
36546         (print_exit): Fix format string for return register value.
36547
36548 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
36549
36550         * sunrpc/Makefile (others): Add rpcgen.
36551         ($(objpfx)rpcgen): Remove special build rule and dependency on
36552         libc.
36553         * sunrpc/rpcgen.c: New file.
36554
36555 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
36556
36557         [BZ #13673]
36558         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
36559         * stdio-common/bug-vfprintf-nargs.c: Likewise.
36560         * sysdeps/i386/crti.S: Likewise.
36561         * sysdeps/i386/crtn.S: Likewise.
36562         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
36563         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
36564         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
36565         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
36566         * sysdeps/sh/crti.S: Likewise.
36567         * sysdeps/sh/crtn.S: Likewise.
36568         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
36569
36570         [BZ #13673]
36571         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
36572         with URL.
36573         * locale/programs/locfile-kw.gperf: Likewise.
36574         * locale/programs/charmap-kw.h: Regenerated.
36575         * locale/programs/locfile-kw.h: Likewise.
36576
36577         [BZ #13673]
36578         * intl/plural.y: Replace FSF snail mail address with URL.
36579         * intl/plural.c: Regenerated.
36580
36581 2012-03-09  Richard Henderson  <rth@twiddle.net>
36582
36583         * include/math_private.h: Remove file.
36584         * math/math_private.h: Move file ...
36585         * sysdeps/generic/math_private.h: ... here.
36586
36587         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
36588         * sysdeps/powerpc/fpu/math_private.h: Likewise.
36589         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36590
36591         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
36592         and <math_private.h>.
36593         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
36594         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
36595         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
36596         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
36597         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
36598         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
36599         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
36600         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
36601         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
36602         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
36603         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
36604         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
36605         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
36606         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
36607         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
36608         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
36609         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
36610         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
36611         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
36612         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
36613         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
36614         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
36615         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
36616         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
36617         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
36618         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
36619         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
36620         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
36621         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
36622         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
36623         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
36624         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
36625         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
36626         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
36627         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
36628         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
36629         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
36630         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
36631         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
36632         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
36633         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
36634         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
36635         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
36636         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
36637         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
36638         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
36639         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
36640         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
36641         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
36642         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
36643         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
36644         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
36645         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
36646         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
36647         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
36648         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
36649         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
36650         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36651         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
36652         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
36653         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
36654         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
36655         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
36656         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
36657         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
36658         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
36659         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
36660         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
36661         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
36662         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
36663         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
36664         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
36665         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
36666         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
36667         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
36668         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
36669         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
36670         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
36671         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
36672         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
36673         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
36674         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
36675         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
36676         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
36677         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
36678         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36679         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
36680         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
36681         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
36682         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
36683         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
36684         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
36685         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
36686         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
36687         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
36688         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
36689         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
36690         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
36691         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
36692         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
36693         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
36694         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
36695         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
36696         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
36697         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
36698         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
36699         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
36700         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
36701         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
36702         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
36703         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
36704         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
36705         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
36706         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
36707         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
36708         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
36709         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
36710         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
36711         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
36712         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
36713         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
36714         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
36715         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
36716         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
36717         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
36718         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
36719         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
36720         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
36721         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
36722         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
36723         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
36724         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
36725         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
36726         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
36727         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
36728         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
36729         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
36730         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
36731         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
36732         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
36733         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
36734         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
36735         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
36736         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
36737         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
36738         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
36739         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
36740         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
36741         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
36742         * sysdeps/ieee754/k_standard.c: Likewise.
36743         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
36744         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
36745         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
36746         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
36747         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
36748         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
36749         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
36750         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
36751         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
36752         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
36753         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
36754         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
36755         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
36756         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
36757         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
36758         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
36759         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
36760         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
36761         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
36762         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
36763         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
36764         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
36765         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
36766         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
36767         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
36768         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
36769         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
36770         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
36771         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
36772         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
36773         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
36774         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
36775         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
36776         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
36777         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
36778         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
36779         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
36780         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
36781         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
36782         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
36783         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
36784         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
36785         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
36786         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
36787         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
36788         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
36789         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
36790         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
36791         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
36792         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
36793         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
36794         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
36795         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
36796         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
36797         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
36798         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
36799         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
36800         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
36801         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
36802         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
36803         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
36804         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
36805         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
36806         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
36807         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
36808         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
36809         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
36810         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
36811         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
36812         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
36813         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
36814         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
36815         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
36816         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
36817         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
36818         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
36819         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
36820         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
36821         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
36822         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
36823         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
36824         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
36825         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
36826         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
36827         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
36828         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
36829         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
36830         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
36831         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
36832         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
36833         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
36834         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
36835         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
36836         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
36837         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
36838         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
36839         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
36840         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
36841         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
36842         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
36843         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
36844         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
36845         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
36846         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
36847         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
36848         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
36849         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
36850         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
36851         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
36852         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
36853         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
36854         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
36855         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
36856         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
36857         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
36858         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
36859         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
36860         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
36861         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
36862         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
36863         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
36864         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
36865         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
36866         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
36867         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
36868         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
36869         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
36870         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
36871         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
36872         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
36873         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
36874         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
36875         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
36876         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
36877         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
36878         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
36879         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
36880         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
36881         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
36882         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
36883         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
36884         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
36885         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
36886         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
36887         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
36888         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
36889         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
36890         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
36891         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
36892         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
36893         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
36894         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
36895         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
36896         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
36897         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
36898         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
36899         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
36900         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
36901         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
36902         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
36903         * sysdeps/ieee754/s_lib_version.c: Likewise.
36904         * sysdeps/ieee754/s_matherr.c: Likewise.
36905         * sysdeps/ieee754/s_signgam.c: Likewise.
36906         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
36907         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
36908         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
36909         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
36910         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
36911         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
36912         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
36913         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
36914         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
36915         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
36916         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
36917         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
36918         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
36919         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
36920         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
36921         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
36922         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
36923         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
36924         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
36925         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
36926         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
36927
36928 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
36929
36930         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
36931         * sunrpc/rpc_main.c: Likewise.
36932         * sunrpc/rpc_svcout.c: Likewise.
36933
36934 2012-03-09  David S. Miller  <davem@davemloft.net>
36935
36936         * include/math_private.h: New file.
36937
36938 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
36939
36940         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
36941         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
36942         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
36943         from <bits/socket_type.h>.
36944         (enum __socket_type): Don't define here.
36945         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
36946         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36947         bits/socket_type.h.
36948
36949         [BZ #13566]
36950         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
36951         checking __USE_GNU.
36952
36953         * Makerules ($(inst_includedir)/%.h): New rule.
36954         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
36955         (install-others): Remove variable setting.
36956         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
36957
36958 2012-03-08  Richard Henderson  <rth@twiddle.net>
36959
36960         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
36961         from macro to inline function; merge with the
36962         !__LIBC_INTERNAL_MATH_INLINES version.
36963         (__ieee754_sqrtf): Likewise.
36964
36965         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
36966         to inline function.
36967         (__rintf, __floor, __floorf): Likewise.
36968
36969         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
36970         macro to inline function.
36971         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
36972
36973         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
36974         not <math/math_private.h>.
36975
36976 2012-03-08  David S. Miller  <davem@davemloft.net>
36977
36978         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
36979         copyright year.
36980         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
36981
36982 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
36983
36984         * resolv/gai_misc.c (handle_requests): Fix struct timespec
36985         normalization.
36986         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
36987         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
36988
36989 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
36990
36991         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
36992         be defined individually, they must be defined as a block.  Define
36993         S for printing a string instead of hidint the different by using a
36994         macro for adding the 'l'.
36995         * stdio-common/tst-fphex-wide.c: Adjust.
36996
36997 2012-03-07  Marek Polacek  <polacek@redhat.com>
36998
36999         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37000
37001 2012-03-08  Marek Polacek  <polacek@redhat.com>
37002
37003         [BZ #13806]
37004         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37005         * stdio-common/tst-fphex.c: Define a few macros to make the
37006         test reusable.  Use them.
37007         * stdio-common/tst-fphex-wide.c: New file.
37008
37009 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37010
37011         [BZ #6911]
37012         * manual/macros.texi (gnusystems): New macro.
37013         (nongnusystems): Likewise.
37014         (gnulinuxhurdsystems): Likewise.
37015         (gnuhurdsystems): Likewise..
37016         (gnulinuxsystems): Likewise.
37017         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37018         variants of the GNU system, not "GNU system".
37019         * manual/conf.texi: Likewise.
37020         * manual/errno.texi: Likewise.  Update example of errno macro
37021         expansion.
37022         * manual/filesys.texi: Likewise.
37023         (getumask): Document as specific to GNU/Hurd.
37024         * manual/install.texi: Likewise.  Reword some references to
37025         GNU/Linux.
37026         * manual/intro.texi: Likewise.
37027         * manual/io.texi: Likewise.
37028         (File Name Portability): Detail which constraints are inapplicable
37029         to all GNU systems and which are only inapplicable to GNU/Hurd.
37030         * manual/job.texi: Likewise.
37031         * manual/llio.texi: Likewise.
37032         (O_NOCTTY): Document as present on GNU/Linux.
37033         * manual/maint.texi: Likewise.
37034         * manual/memory.texi: Likewise.
37035         * manual/pattern.texi: Likewise.
37036         * manual/pipe.texi: Likewise.
37037         * manual/process.texi: Likewise.
37038         * manual/resource.texi: Likewise.
37039         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37040         child on GNU/Hurd.
37041         * manual/setjmp.texi: Likewise.
37042         * manual/signal.texi: Likewise.
37043         * manual/startup.texi: Likewise.
37044         * manual/stdio.texi: Likewise.
37045         * manual/terminal.texi: Likewise.
37046         (ONLCR): Document as POSIX.
37047         (OXTABS): Document availability on GNU/Linux as XTABS.
37048         (ONOEOT): Document availability separately from other bits.
37049         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37050         * manual/time.texi: Likewise.
37051         * manual/users.texi: Likewise.
37052         * INSTALL: Regenerated.
37053         * sysdeps/gnu/errlist.c: Regenerated.
37054
37055         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37056         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37057         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37058         puts.
37059         * configure: Regenerated.
37060
37061 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37062
37063         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37064         default includes instead of AC_HEADER_CHECK.
37065         * sysdeps/i386/configure: Regenerated.
37066
37067         [BZ #10716]
37068         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37069         * math/s_cacoshf.c (__cacoshf): Likewise.
37070         * math/s_cacoshl.c (__cacoshl): Likewise.
37071         * math/s_casinh.c (__casinh): Set signs of result from argument.
37072         * math/s_casinhf.c (__casinhf): Likewise.
37073         * math/s_casinhl.c (__casinhl): Likewise.
37074         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37075         (casinh_test): Add more tests.
37076         * sysdeps/i386/fpu/libm-test-ulps: Update.
37077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37078
37079 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37080
37081         * po/zh_TW.po: Update from translation team.
37082
37083         * login/Makefile (distribute): Remove variable.
37084         * catgets/Makefile: Likewise.
37085         * mach/Makefile: Likewise.
37086         * malloc/Makefile: Likewise.
37087         * misc/Makefile: Likewise.
37088         * iconv/Makefile: Likewise.
37089         * nscd/Makefile: Likewise.
37090         * hurd/Makefile: Likewise.
37091         * manual/Makefile: Likewise.
37092         * locale/Makefile: Likewise.
37093         * intl/Makefile: Likewise.
37094         * conform/Makefile: Likewise.
37095         * nss/Makefile: Likewise.
37096         * time/Makefile: Likewise.
37097         * soft-fp/Makefile: Likewise.
37098         * dirent/Makefile: Likewise.
37099         * gmon/Makefile: Likewise.
37100         * po/Makefile: Likewise.
37101         * rt/Makefile: Likewise.
37102         * socket/Makefile: Likewise.
37103         * math/Makefile: Likewise.
37104         * signal/Makefile: Likewise.
37105         * debug/Makefile: Likewise.
37106         * elf/Makefile: Likewise.
37107         * timezone/Makefile: Likewise.
37108         * stdlib/Makefile: Likewise.
37109         * iconvdata/Makefile: Likewise.
37110         * sunrpc/Makefile: Likewise.
37111         * io/Makefile: Likewise.
37112         * argp/Makefile: Likewise.
37113         * inet/Makefile: Likewise.
37114         * hesiod/Makefile: Likewise.
37115         * grp/Makefile: Likewise.
37116         * csu/Makefile: Likewise.
37117         * wctype/Makefile: Likewise.
37118         * crypt/Makefile: Likewise.
37119         * libio/Makefile: Likewise.
37120         * string/Makefile: Likewise.
37121         * nis/Makefile: Likewise.
37122         * resolv/Makefile: Likewise.
37123         * stdio-common/Makefile: Likewise.
37124         * wcsmbs/Makefile: Likewise.
37125         * dlfcn/Makefile: Likewise.
37126         * posix/Makefile: Likewise.
37127
37128         [BZ #6959]
37129         * timezone/Makefile: Don't install timezone files, just the programs
37130         and scripts.
37131
37132 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
37133
37134         * nss/databases.def: Add missing gshadow entry.
37135
37136         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
37137
37138 2012-03-06  Marek Polacek  <polacek@redhat.com>
37139
37140         [BZ #13726]
37141         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
37142         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
37143         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
37144         * stdio-common/tst-long-dbl-fphex.c: New file.
37145
37146 2012-03-06  David S. Miller  <davem@davemloft.net>
37147
37148         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
37149         (set_obp_int): New function.
37150         (get_obp_int): New function.
37151         (__get_clockfreq_via_dev_openprom): Likewise.
37152         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
37153         Avoid unused variable warnings on 'val' and use builtin_expect.
37154         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
37155         __builtin_expect.
37156         (INLINE_CLONE_SYSCALL): Likewise.
37157
37158 2012-03-05  David S. Miller  <davem@davemloft.net>
37159
37160         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37161
37162 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
37163
37164         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37165
37166         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
37167         only for |x| >= 40.
37168         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37169
37170 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
37171
37172         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
37173         Replace gettimeofday with __vdso_gettimeofday.
37174
37175         * sysdeps/unix/sysv/linux/x86_64/init-first.c
37176         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
37177         __vdso_clock_gettime and __vdso_getcpu.
37178
37179         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
37180         time with __vdso_time.
37181
37182 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37183
37184         * manual/lang.texi (size_t): Note types to which size_t may be
37185         equivalent with the GNU C Library, but do not describe when
37186         differences between them are significant.
37187
37188 2012-03-05  Andreas Jaeger  <aj@suse.de>
37189
37190         * sysdeps/i386/fpu/libm-test-ulps: Update.
37191
37192 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37193
37194         [BZ #3976]
37195         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
37196         (__ieee754_pow): Save and restore rounding mode and use
37197         round-to-nearest for main computations.
37198         * math/libm-test.inc (pow_test_tonearest): New function.
37199         (pow_test_towardzero): Likewise.
37200         (pow_test_downward): Likewise.
37201         (pow_test_upward): Likewise.
37202         (main): Call the new functions.
37203         * sysdeps/i386/fpu/libm-test-ulps: Update.
37204         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37205
37206         [BZ #3976]
37207         * math/libm-test.inc (cosh_test_tonearest): New function.
37208         (cosh_test_towardzero): Likewise.
37209         (cosh_test_downward): Likewise.
37210         (cosh_test_upward): Likewise.
37211         (sinh_test_tonearest): Likewise.
37212         (sinh_test_towardzero): Likewise.
37213         (sinh_test_downward): Likewise.
37214         (sinh_test_upward): Likewise.
37215         (main): Call the new functions.
37216         * sysdeps/i386/fpu/libm-test-ulps: Update.
37217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37218
37219 2012-03-05  Tom de Vries  <tom@codesourcery.com>
37220
37221         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
37222         default stack guard is set in last bytes.
37223         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
37224
37225 2012-03-05  Kees Cook  <keescook@chromium.org>
37226
37227         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
37228
37229         [BZ #13656]
37230         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
37231         possibly allocate from heap instead of stack.
37232         * stdio-common/bug-vfprintf-nargs.c: New file.
37233         * stdio-common/Makefile (tests): Add nargs overflow test.
37234
37235 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
37236
37237         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37238
37239 2012-03-03  Marek Polacek  <polacek@redhat.com>
37240
37241         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
37242         * math/math_private.h: Likewise.
37243         * stdlib/tst-strtod.c: Likewise.
37244         * sysdeps/i386/i486/bits/atomic.h: Likewise.
37245         * sysdeps/x86_64/bits/atomic.h: Likewise.
37246
37247 2012-03-02  David S. Miller  <davem@davemloft.net>
37248
37249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
37250         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
37251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
37252         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
37253         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
37254         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
37255         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
37256         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
37257
37258 2012-03-02  Roland McGrath  <roland@hack.frob.com>
37259
37260         [BZ #13792]
37261         * manual/examples/README: New file, says the example source files
37262         can be used under GPL>=2.
37263         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
37264         line containing just "*/".
37265         * manual/examples/add.c: Add copyright header (GPL>=2).
37266         * manual/examples/argp-ex1.c: Likewise.
37267         * manual/examples/argp-ex2.c: Likewise.
37268         * manual/examples/argp-ex3.c: Likewise.
37269         * manual/examples/argp-ex4.c: Likewise.
37270         * manual/examples/atexit.c: Likewise.
37271         * manual/examples/db.c: Likewise.
37272         * manual/examples/dir.c: Likewise.
37273         * manual/examples/dir2.c: Likewise.
37274         * manual/examples/execinfo.c: Likewise.
37275         * manual/examples/filecli.c: Likewise.
37276         * manual/examples/filesrv.c: Likewise.
37277         * manual/examples/fmtmsgexpl.c: Likewise.
37278         * manual/examples/genpass.c: Likewise.
37279         * manual/examples/inetcli.c: Likewise.
37280         * manual/examples/inetsrv.c: Likewise.
37281         * manual/examples/isockad.c: Likewise.
37282         * manual/examples/longopt.c: Likewise.
37283         * manual/examples/memopen.c: Likewise.
37284         * manual/examples/memstrm.c: Likewise.
37285         * manual/examples/mkfsock.c: Likewise.
37286         * manual/examples/mkisock.c: Likewise.
37287         * manual/examples/mygetpass.c: Likewise.
37288         * manual/examples/pipe.c: Likewise.
37289         * manual/examples/popen.c: Likewise.
37290         * manual/examples/rprintf.c: Likewise.
37291         * manual/examples/search.c: Likewise.
37292         * manual/examples/select.c: Likewise.
37293         * manual/examples/setjmp.c: Likewise.
37294         * manual/examples/sigh1.c: Likewise.
37295         * manual/examples/sigusr.c: Likewise.
37296         * manual/examples/stpcpy.c: Likewise.
37297         * manual/examples/strdupa.c: Likewise.
37298         * manual/examples/strftim.c: Likewise.
37299         * manual/examples/strncat.c: Likewise.
37300         * manual/examples/subopt.c: Likewise.
37301         * manual/examples/swapcontext.c: Likewise.
37302         * manual/examples/termios.c: Likewise.
37303         * manual/examples/testopt.c: Likewise.
37304         * manual/examples/testpass.c: Likewise.
37305         * manual/examples/timeval_subtract.c: Likewise.
37306
37307         [BZ #13792]
37308         * manual/time.texi (Elapsed Time): Move timeval_subtract example
37309         function to ...
37310         * manual/timeval_subtract.c.texi: ... here, new file.
37311
37312 2012-03-02  David S. Miller  <davem@davemloft.net>
37313
37314         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
37315
37316 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
37317
37318         [BZ #3976]
37319         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
37320         (__sin): Save and restore rounding mode and use round-to-nearest
37321         for all computations.
37322         (__cos): Save and restore rounding mode and use round-to-nearest
37323         for all computations.
37324         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
37325         <fenv.h>.
37326         (tan): Save and restore rounding mode and use round-to-nearest for
37327         all computations.
37328         * math/libm-test.inc (cos_test_tonearest): New function.
37329         (cos_test_towardzero): Likewise.
37330         (cos_test_downward): Likewise.
37331         (cos_test_upward): Likewise.
37332         (sin_test_tonearest): Likewise.
37333         (sin_test_towardzero): Likewise.
37334         (sin_test_downward): Likewise.
37335         (sin_test_upward): Likewise.
37336         (tan_test_tonearest): Likewise.
37337         (tan_test_towardzero): Likewise.
37338         (tan_test_downward): Likewise.
37339         (tan_test_upward): Likewise.
37340         (main): Call the new functions.
37341         * sysdeps/i386/fpu/libm-test-ulps: Update.
37342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37343
37344         [BZ #10135]
37345         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
37346         small n, then large n, before computing and testing k+n.
37347         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37348         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
37349         Likewise.
37350         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
37351         Likewise.
37352         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
37353         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
37354         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
37355         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
37356         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
37357         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
37358         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
37359         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
37360         * math/libm-test.inc (scalbn_test): Add more tests.
37361         (scalbln_test): Likewise.
37362
37363         * manual/filesys.texi (mode_t): Describe constraints on size and
37364         signedness, not exact equivalence to a particular type.
37365         (ino_t): Likewise.
37366         (ino64_t): Likewise.
37367         (dev_t): Likewise.
37368         (nlink_t): Likewise.
37369         (blkcnt_t): Likewise.
37370         (blkcnt64_t): Likewise.
37371         * manual/llio.texi (off_t): Likewise.
37372
37373         [BZ #3976]
37374         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
37375         (__ieee754_exp): Save and restore rounding mode and use
37376         round-to-nearest for all computations.
37377         * math/libm-test.inc (exp_test_tonearest): New function.
37378         (exp_test_towardzero): Likewise.
37379         (exp_test_downward): Likewise.
37380         (exp_test_upward): Likewise.
37381         (main): Call the new functions.
37382         * sysdeps/i386/fpu/libm-test-ulps: Update.
37383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37384
37385 2012-03-01  Chris Demetriou  <cgd@google.com>
37386
37387         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
37388         have predictable order.
37389
37390 2012-03-01  David S. Miller  <davem@davemloft.net>
37391
37392         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
37393
37394         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
37395         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
37396         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
37397         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
37398
37399         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
37400         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
37401         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
37402         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
37403         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
37404         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
37405         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
37406         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
37407         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
37408
37409         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37410
37411         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
37412         * sysdeps/sparc/fpu/libm-test-ulps: to here.
37413         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
37414
37415         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
37416         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
37417         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
37418         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
37419         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
37420         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
37421         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
37422         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
37423         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
37424         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
37425         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
37426         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37427         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37428         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
37429         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37430         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37431         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
37432         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
37433         * sysdeps/sparc/elf/configure: Regenerated.
37434
37435 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
37436
37437         * configure.in (AS, LD): Require binutils 2.20 or later.
37438         * configure: Regenerated.
37439         * manual/install.texi (Tools for Compilation): Give binutils 2.20
37440         as required minimum version.
37441         * INSTALL: Regenerated.
37442
37443         [BZ #2541]
37444         [BZ #4108]
37445         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
37446         before squaring exponent.
37447         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
37448         bottom long double and 27 bits of top long double before squaring
37449         exponent.
37450         * math/libm-test.inc (erfc_test): Add more tests.
37451         * sysdeps/i386/fpu/libm-test-ulps: Update.
37452         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37454
37455 2012-03-01  Kai Tietz  <ktietz@redhat.com>
37456
37457         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
37458         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
37459         containing bit-fields.
37460         * soft-fp/extended.h (_FP_UNION_E): Likewise.
37461         * soft-fp/single.h (_FP_UNION_S): Likewise.
37462         * soft-fp/double.h (_FP_UNION_D): Likewise.
37463
37464 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37465
37466         [BZ #13786]
37467         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
37468         not include ../strcmp.S.
37469         [USE_AS_STRNCASECMP_L]: Likewise.
37470         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
37471         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
37472         * sysdeps/i386/i686/multiarch/strncase_l-c.c
37473         (__strncasecmp_l_ia32): Define as alias to
37474         __strncasecmp_l_nonascii.
37475
37476         [BZ #5794]
37477         * math/libm-test.inc (expm1_test): Add test for bug 5794.
37478         * sysdeps/i386/fpu/libm-test-ulps: Update.
37479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37480
37481         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
37482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37483
37484 2012-02-29  Jeff Law  <law@redhat.com>
37485
37486         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
37487         out of bounds read.
37488
37489 2012-02-29  Marek Polacek  <polacek@redhat.com>
37490
37491         [BZ #13706]
37492         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
37493         * elf/Makefile: Add rules to run tst-unused-dep.out.
37494
37495 2012-02-28  David S. Miller  <davem@davemloft.net>
37496
37497         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
37498         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
37499         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
37500         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
37501         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
37502         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
37503
37504 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37505
37506         * math/libm-test.inc (llround_test): Move one test from
37507         lround_test.  Use TEST_f_L in moved test.
37508         (lround_test): Move misplaced test to llround_test.  Add testcase
37509         from bug 2561.
37510
37511 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
37512
37513         * sysdeps/x86_64/fpu/e_expf.S: New file.
37514         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
37515
37516 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
37517
37518         [BZ #13637]
37519         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
37520         of remain_len that may cause incomplete multi-byte character and
37521         false match.
37522         * posix/bug-regex33.c: New file.
37523         * posix/Makefile (tests): Add bug-regex33.
37524
37525 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
37526
37527         * manual/macros.texi: New file.
37528         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
37529         * manual/libc.texinfo: Include macros.texi.
37530         * manual/creatute.texi: Likewise.
37531         * manual/install.texi: Likewise.
37532         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
37533         @glibcadj{} in references to the GNU C Library.
37534         * manual/charset.texi: Likewise.
37535         * manual/conf.texi: Likewise.
37536         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
37537         when not using those macros.
37538         * manual/creature.texi: Likewise.
37539         * manual/crypt.texi: Likewise.
37540         * manual/errno.texi: Likewise.
37541         * manual/filesys.texi: Likewise.
37542         * manual/header.texi: Likewise.
37543         * manual/install.texi: Likewise.
37544         * manual/intro.texi: Likewise.
37545         * manual/io.texi: Likewise.
37546         * manual/job.texi: Likewise.
37547         * manual/lang.texi: Likewise.
37548         * manual/libc.texiinfo: Likewise.
37549         * manual/llio.texi: Likewise.
37550         * manual/locale.texi: Likewise.
37551         * manual/maint.texi: Likewise.
37552         * manual/math.texi: Likewise.
37553         * manual/memory.texi: Likewise.
37554         * manual/message.texi: Likewise.
37555         * manual/nss.texi: Likewise.
37556         * manual/pattern.texi: Likewise.
37557         * manual/process.texi: Likewise.
37558         * manual/resource.texi: Likewise.
37559         * manual/search.texi: Likewise.
37560         * manual/setjmp.texi: Likewise.
37561         * manual/signal.texi: Likewise.
37562         * manual/socket.texi: Likewise.
37563         * manual/startup.texi: Likewise.
37564         * manual/stdio.texi: Likewise.
37565         * manual/string.texi: Likewise.
37566         * manual/sysinfo.texi: Likewise.
37567         * manual/syslog.texi: Likewise.
37568         * manual/terminal.texi: Likewise.
37569         * manual/time.texi: Likewise.
37570         * manual/users.texi: Likewise.
37571         * INSTALL: Regenerated.
37572         * NOTES: Regenerated.
37573         * sysdeps/gnu/errlist.c: Regenerated.
37574
37575 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
37576
37577         * include/dirent.h: Include <dirstream.h> before
37578         <dirent/dirent.h>.
37579
37580 2012-02-28  David S. Miller  <davem@davemloft.net>
37581
37582         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
37583         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
37584         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
37585         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
37586
37587 2012-02-27  David S. Miller  <davem@davemloft.net>
37588
37589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
37590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
37591         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
37592         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
37593
37594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
37595         frame pointer instead of stack pointer relative arg slot.
37596         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
37597         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
37598         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
37599
37600 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
37601
37602         [BZ #3992]
37603         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
37604
37605 2012-02-27  David S. Miller  <davem@davemloft.net>
37606
37607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
37608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
37609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
37610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
37611         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
37612         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
37613         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
37614         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
37615
37616 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
37617
37618         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
37619         later.  Allow versions 5-9.
37620         * configure: Regenerated.
37621         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
37622         required minimum version and 4.6 as recommended version.  Do not
37623         mention bugs in GCC 2.7 and 2.8.
37624         * INSTALL: Regenerated.
37625
37626 2012-02-27  David S. Miller  <davem@davemloft.net>
37627
37628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
37629         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
37630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
37631         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
37632         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
37633         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
37634         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
37635         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
37636
37637         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
37638         manipulate bits before adding and subtracting TWO112[sx].
37639         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
37640
37641 2012-02-27  Roland McGrath  <roland@hack.frob.com>
37642
37643         [BZ #13775]
37644         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
37645         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
37646         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
37647         being in POSIX, because they are in 1003.1-2008.
37648
37649         * rt/tst-aio.c: Include <fcntl.h>.
37650         * rt/tst-aio7.c: Likewise.
37651         * rt/tst-aio64.c: Likewise.
37652
37653         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
37654
37655 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
37656
37657         * manual/install.texi (--with-headers): Describe headers as
37658         interface headers, not private headers.
37659         (Specific advice for GNU/Linux systems): Describe use of headers
37660         from "make headers_install", not private headers from older
37661         kernels.
37662         * INSTALL: Regenerated.
37663         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
37664         Change to 2.6.19.
37665         * sysdeps/unix/sysv/linux/configure: Regenerated.
37666
37667         * manual/llio.texi (fclean): Remove documentation.
37668
37669         * manual/Makefile (libc-texi-generated): New variable.  Include
37670         version.texi.
37671         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
37672         $(libc-texi-generated), not duplicated list of files.
37673         (version.texi, stamp-version): New rules.
37674         (realclean): Remove $(libc-texi-generated), not individual files
37675         from that list.  Do not remove dir-add.texinfo.
37676         * manual/libc.texinfo: Comment out uses of edition numbers and
37677         references to printed manual.  Remove last-updated dates.
37678         (EDITION): Comment out.
37679         (ISBN): Likewise.
37680         (VERSION, UPDATED): Remove.
37681         (version.texi): Include.
37682
37683 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
37684
37685         * sysdeps/posix/spawni.c: Include <signal.h>.
37686         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
37687         * sysdeps/pthread/aio_fsync.c: Likewise.
37688
37689 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
37690
37691         * conform/Makefile (tests): Run only when not cross-compiling and
37692         when fast-check is not defined.
37693
37694         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
37695         * conform/data/limits.h-data: Fixes for POSIX2008.
37696         * conform/run-conformtest.sh: Run all tests.
37697         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
37698         headers.
37699         * include/bits/dlfcn.h: Likewise.
37700         * include/langinfo.h: Likewise.
37701         * include/monetary.h: Likewise.
37702         * include/sys/poll.h: Likewise.
37703
37704         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
37705         for __USE_GNU.
37706         * posix/spawn.h: Define __need_sigset_t.
37707         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
37708         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
37709         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
37710         to get sigevent_t only.
37711         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
37712         only for __USE_GNU.
37713         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37714         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
37715         process_vm_writev only for __USE_GNU.
37716         * termios/termios.h: Declare tcgetsid also for POSIX2008.
37717
37718         * conform/Makefile: For now ignore errors from run-conformtest.
37719         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
37720         POSIX to avoid namespace pollution.  Don't prepend headers.
37721         * conform/data/aio.h-data: Fixes for POSIX testing.
37722         * conform/data/fcntl.h-data: Likewise.
37723         * conform/data/glob.h-data: Likewise.
37724         * conform/data/grp.h-data: Likewise.
37725         * conform/data/pthread.h-data: Likewise.
37726         * conform/data/pwd.h-data: Likewise.
37727         * conform/data/signal.h-data: Likewise.
37728         * conform/data/spawn.h-data: Likewise.
37729         * conform/data/stdio.h-data: Likewise.
37730         * conform/data/stdlib.h-data: Likewise.
37731         * conform/data/stropts.h-data: Likewise.
37732         * conform/data/sys/mman.h-data: Likewise.
37733         * conform/data/sys/stat.h-data: Likewise.
37734         * conform/data/sys/types.h-data: Likewise.
37735         * conform/data/sys/wait.h-data: Likewise.
37736         * conform/data/time.h-data: Likewise.
37737         * conform/data/unistd.h-data: Likewise.
37738         * conform/data/utime.h-data: Likewise.
37739
37740         * io/sys/stat.h: fchmod was always in POSIX.
37741         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
37742         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
37743         * rt/aio.h: Define __need_timespec before including <time.h>.
37744         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
37745         struct.  Add forward declaration of pthread_attr_t and use it in
37746         sigevent.
37747         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
37748         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
37749         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
37750         always remove CLK_TCK definition.
37751
37752 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
37753
37754         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
37755
37756 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
37757
37758         * conform/run-conformtest.sh: New file.
37759         * conform/Makefile: Run run-conformtest for tests.
37760         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
37761         support.
37762
37763         * conform/data/uchar.h-data: New file.
37764         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
37765         * conform/data/arpa/inet.h-data: Likewise.
37766         * conform/data/assert.h-data: Likewise.
37767         * conform/data/complex.h-data: Likewise.
37768         * conform/data/cpio.h-data: Likewise.
37769         * conform/data/ctype.h-data: Likewise.
37770         * conform/data/dirent.h-data: Likewise.
37771         * conform/data/dlfcn.h-data: Likewise.
37772         * conform/data/errno.h-data: Likewise.
37773         * conform/data/fcntl.h-data: Likewise.
37774         * conform/data/float.h-data: Likewise.
37775         * conform/data/fmtmsg.h-data: Likewise.
37776         * conform/data/fnmatch.h-data: Likewise.
37777         * conform/data/ftw.h-data: Likewise.
37778         * conform/data/glob.h-data: Likewise.
37779         * conform/data/grp.h-data: Likewise.
37780         * conform/data/iconv.h-data: Likewise.
37781         * conform/data/inttypes.h-data: Likewise.
37782         * conform/data/langinfo.h-data: Likewise.
37783         * conform/data/libgen.h-data: Likewise.
37784         * conform/data/limits.h-data: Likewise.
37785         * conform/data/locale.h-data: Likewise.
37786         * conform/data/math.h-data: Likewise.
37787         * conform/data/monetary.h-data: Likewise.
37788         * conform/data/mqueue.h-data: Likewise.
37789         * conform/data/ndbm.h-data: Likewise.
37790         * conform/data/net/if.h-data: Likewise.
37791         * conform/data/netdb.h-data: Likewise.
37792         * conform/data/netinet/in.h-data: Likewise.
37793         * conform/data/nl_types.h-data: Likewise.
37794         * conform/data/poll.h-data: Likewise.
37795         * conform/data/pthread.h-data: Likewise.
37796         * conform/data/pwd.h-data: Likewise.
37797         * conform/data/regex.h-data: Likewise.
37798         * conform/data/sched.h-data: Likewise.
37799         * conform/data/search.h-data: Likewise.
37800         * conform/data/semaphore.h-data: Likewise.
37801         * conform/data/setjmp.h-data: Likewise.
37802         * conform/data/signal.h-data: Likewise.
37803         * conform/data/spawn.h-data: Likewise.
37804         * conform/data/stdarg.h-data: Likewise.
37805         * conform/data/stdio.h-data: Likewise.
37806         * conform/data/stdlib.h-data: Likewise.
37807         * conform/data/string.h-data: Likewise.
37808         * conform/data/strings.h-data: Likewise.
37809         * conform/data/stropts.h-data: Likewise.
37810         * conform/data/sys/ipc.h-data: Likewise.
37811         * conform/data/sys/mman.h-data: Likewise.
37812         * conform/data/sys/msg.h-data: Likewise.
37813         * conform/data/sys/resource.h-data: Likewise.
37814         * conform/data/sys/select.h-data: Likewise.
37815         * conform/data/sys/sem.h-data: Likewise.
37816         * conform/data/sys/shm.h-data: Likewise.
37817         * conform/data/sys/socket.h-data: Likewise.
37818         * conform/data/sys/stat.h-data: Likewise.
37819         * conform/data/sys/statvfs.h-data: Likewise.
37820         * conform/data/sys/time.h-data: Likewise.
37821         * conform/data/sys/timeb.h-data: Likewise.
37822         * conform/data/sys/times.h-data: Likewise.
37823         * conform/data/sys/types.h-data: Likewise.
37824         * conform/data/sys/uio.h-data: Likewise.
37825         * conform/data/sys/un.h-data: Likewise.
37826         * conform/data/sys/utsname.h-data: Likewise.
37827         * conform/data/sys/wait.h-data: Likewise.
37828         * conform/data/syslog.h-data: Likewise.
37829         * conform/data/tar.h-data: Likewise.
37830         * conform/data/termios.h-data: Likewise.
37831         * conform/data/utime.h-data: Likewise.
37832         * conform/data/utmpx.h-data: Likewise.
37833         * conform/data/varargs.h-data: Likewise.
37834         * conform/data/wchar.h-data: Likewise.
37835         * conform/data/wctype.h-data: Likewise.
37836         * conform/data/wordexp.h-data: Likewise.
37837
37838         * include/stropts.h: New file.
37839         * include/uchar.h: New file.
37840         * include/aio.h: Changes to allow conformtest.pl to use the headers.
37841         * include/assert.h: Likewise.
37842         * include/ctype.h: Likewise.
37843         * include/dirent.h: Likewise.
37844         * include/dlfcn.h: Likewise.
37845         * include/fcntl.h: Likewise.
37846         * include/fnmatch.h: Likewise.
37847         * include/glob.h: Likewise.
37848         * include/grp.h: Likewise.
37849         * include/libio.h: Likewise.
37850         * include/locale.h: Likewise.
37851         * include/math.h: Likewise.
37852         * include/net/if.h: Likewise.
37853         * include/netdb.h: Likewise.
37854         * include/netinet/in.h: Likewise.
37855         * include/pthread.h: Likewise.
37856         * include/pwd.h: Likewise.
37857         * include/regex.h: Likewise.
37858         * include/sched.h: Likewise.
37859         * include/search.h: Likewise.
37860         * include/setjmp.h: Likewise.
37861         * include/signal.h: Likewise.
37862         * include/stdio.h: Likewise.
37863         * include/stdlib.h: Likewise.
37864         * include/string.h: Likewise.
37865         * include/sys/cdefs.h: Likewise.
37866         * include/sys/mman.h: Likewise.
37867         * include/sys/msg.h: Likewise.
37868         * include/sys/resource.h: Likewise.
37869         * include/sys/select.h: Likewise.
37870         * include/sys/socket.h: Likewise.
37871         * include/sys/stat.h: Likewise.
37872         * include/sys/statvfs.h: Likewise.
37873         * include/sys/time.h: Likewise.
37874         * include/sys/times.h: Likewise.
37875         * include/sys/uio.h: Likewise.
37876         * include/sys/utsname.h: Likewise.
37877         * include/sys/wait.h: Likewise.
37878         * include/termios.h: Likewise.
37879         * include/time.h: Likewise.
37880         * include/ulimit.h: Likewise.
37881         * include/unistd.h: Likewise.
37882         * include/utime.h: Likewise.
37883         * include/wchar.h: Likewise.
37884         * include/wctype.h: Likewise.
37885         * include/wordexp.h: Likewise.
37886
37887         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
37888
37889         * time/time.h: TIME_UTC must be a macro.
37890         Make timespec_get available for ISO C11 only as well.
37891
37892 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
37893
37894         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
37895         Reported by Peng Haitao <penght@cn.fujitsu.com>.
37896
37897 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
37898
37899         * configure.in: Use -o not -a in test for unsupported multi-arch.
37900
37901 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
37902
37903         * manual/texinfo.tex: Update to version 2012-01-19.16.
37904
37905 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
37906
37907         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
37908
37909 2012-02-24  Roland McGrath  <roland@hack.frob.com>
37910
37911         [BZ #13738]
37912         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
37913         * manual/fdl-1.3.texi: New file.
37914         * manual/fdl-1.1.texi: File removed.
37915
37916         [BZ #13738]
37917         * manual/libc.texinfo (FDL_VERSION): New @set.
37918         Use it for mention of FDL in cover text.
37919         (Documentation License): Use it in @include file name.
37920
37921 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37922             Roland McGrath  <roland@hack.frob.com>
37923
37924         [BZ #5461]
37925         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
37926         (not LONG_LONG_MAX and LONG_LONG_MIN.
37927         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
37928         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
37929         name.
37930         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
37931
37932 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37933
37934         [BZ #2547]
37935         [BZ #11365]
37936         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
37937         manipulate bits before adding and subtracting TWO23[sx].
37938         * math/libm-test.inc (nearbyint_test): Add more tests.
37939
37940 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37941
37942         [BZ #2548]
37943         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
37944         bits before adding and subtracting TWO23[sx].
37945         * math/libm-test.inc (rint_test): Add more tests.
37946         (rint_test_tonearest): Likewise.
37947         (rint_test_towardzero): Likewise.
37948         (rint_test_downward): Likewise.
37949         (rint_test_upward: Likewise.
37950
37951 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37952
37953         [BZ #10110]
37954         * include/stdc-predef.h: New file.  Extracted from features.h.
37955         * include/features.h: Include stdc-predef.h.
37956         * Makefile (headers): Add stdc-predef.h.
37957         * CONFORMANCE (Compiler limitations): Update.
37958
37959 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
37960
37961         * manual/libc.texinfo (VERSION, UPDATED): Revert.
37962
37963 2012-02-21  David S. Miller  <davem@davemloft.net>
37964
37965         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
37966         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
37967
37968 2012-02-20  David S. Miller  <davem@davemloft.net>
37969
37970         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
37971         using a normal save/restore sequence, rather than allocating a
37972         dummy stack frame just to store a frame pointer and restore.
37973         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37974
37975 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
37976
37977         * manual/install.texi: Fix stray word in line-wrapped comment.
37978
37979 2012-02-20  David S. Miller  <davem@davemloft.net>
37980
37981         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
37982         both binutils and gcc support GOTDATA.
37983
37984         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
37985         "rd %pc" in the PIC register setup sequences.
37986
37987         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
37988         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
37989         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
37990         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
37991         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
37992         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37993         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
37994         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37995         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
37996         (SYSCALL_ERROR_HANDLER): Likewise.
37997         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
37998         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37999         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38000         (SYSCALL_ERROR_HANDLER): Likewise.
38001
38002         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38003         (HAVE_GCC_GOTDATA): New.
38004         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38005         relocation support in both binutils and gcc.
38006         * sysdeps/sparc/elf/configure: Regenerate.
38007
38008         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38009         * sysdeps/sparc/sparc32/elf/configure: Delete.
38010         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38011         * sysdeps/sparc/sparc64/elf/configure: Delete.
38012         * sysdeps/sparc/elf/configure.in: New file.
38013         * sysdeps/sparc/elf/configure: Generate.
38014
38015         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38016         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38017         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38018         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38019         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38020
38021 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38022
38023         * manual/install.texi: Do not mention specific glibc version
38024         numbers.
38025         * manual/libc.texinfo (VERSION, UPDATED): Update.
38026         (@copying): Use @copyright{} and range of years.
38027
38028 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38029
38030         [BZ #13695]
38031         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38032         [crti.S not in sysdirs] (generated): Do not append.
38033         [crti.S not in sysdirs] (omit-deps): Likewise.
38034         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38035         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38036         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38037         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38038         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38039         Likewise.
38040         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38041         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38042         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38043         * csu/defs.awk: Remove file.
38044         * sysdeps/generic/initfini.c: Likewise.
38045         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38046         variable.
38047         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38048         Likewise.
38049
38050 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38051
38052         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38053         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38054         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38055         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38056         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38057         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38058         <bits/epoll.h>.
38059         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38060         (__EPOLL_PACKED): Define to empty if not defined by
38061         <bits/epoll.h>.
38062         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38063         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38064         bits/epoll.h.
38065
38066 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38067
38068         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38069         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38070         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38071         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38072         <bits/timerfd.h>.
38073         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38074         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38075         bits/timerfd.h.
38076
38077 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38078
38079         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38080         in C locale.
38081         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38082         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38083         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38084         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38085
38086 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38087
38088         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38089         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38090
38091 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38092
38093         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
38094         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
38095         defined.
38096         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
38097         Likewise.
38098         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
38099         entry for 2.16.
38100
38101 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
38102
38103         * math/w_acos.c: Use non-signaling floating-point comparisons.
38104         * math/w_acosf.c: Likewise.
38105         * math/w_acosh.c: Likewise.
38106         * math/w_acoshf.c: Likewise.
38107         * math/w_acoshl.c: Likewise.
38108         * math/w_acosl.c: Likewise.
38109         * math/w_asin.c: Likewise.
38110         * math/w_asinf.c: Likewise.
38111         * math/w_asinl.c: Likewise.
38112         * math/w_atanh.c: Likewise.
38113         * math/w_atanhf.c: Likewise.
38114         * math/w_atanhl.c: Likewise.
38115         * math/w_exp2.c: Likewise.
38116         * math/w_exp2f.c: Likewise.
38117         * math/w_exp2l.c: Likewise.
38118         * math/w_j0.c: Likewise.
38119         * math/w_j0f.c: Likewise.
38120         * math/w_j0l.c: Likewise.
38121         * math/w_j1.c: Likewise.
38122         * math/w_j1f.c: Likewise.
38123         * math/w_j1l.c: Likewise.
38124         * math/w_jn.c: Likewise.
38125         * math/w_jnf.c: Likewise.
38126         * math/w_log.c: Likewise.
38127         * math/w_log10.c: Likewise.
38128         * math/w_log10f.c: Likewise.
38129         * math/w_log10l.c: Likewise.
38130         * math/w_log2.c: Likewise.
38131         * math/w_log2f.c: Likewise.
38132         * math/w_log2l.c: Likewise.
38133         * math/w_logf.c: Likewise.
38134         * math/w_logl.c: Likewise.
38135         * math/w_sqrt.c: Likewise.
38136         * math/w_sqrtf.c: Likewise.
38137         * math/w_sqrtl.c: Likewise.
38138         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38139         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
38140         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38141         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
38142         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
38143
38144 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38145
38146         [BZ #9739]
38147         * manual/string.texi (strnlen): Use correct parameter name in
38148         equivalent expression.
38149
38150 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38151
38152         [BZ #11174]
38153         * manual/users.texi (seteuid): Consistently use neweuid for
38154         argument name.
38155
38156 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38157
38158         [BZ #13704]
38159         * manual/nss.texi (Services in the NSS configuration): Correct
38160         list of services in example configuration file.
38161
38162 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
38163
38164         [BZ #11322]
38165         * manual/arith.texi: Remove statements about negative zero
38166         behaving identically to zero.
38167
38168 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38169
38170         [BZ #5993]
38171         * manual/install.texi: Do not document upgrading from libc5.
38172
38173 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38174
38175         [BZ #4596]
38176         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
38177
38178 2012-02-18  David S. Miller  <davem@davemloft.net>
38179
38180         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
38181         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
38182         %o7 across the call.
38183         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
38184         instead.
38185         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
38186         SETUP_PIC_REG_LEAF.
38187         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38188         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
38189         * sysdeps/sparc/crtn.S: Likewise.
38190
38191 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
38192
38193         * aout/Makefile: Remove.
38194
38195 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
38196
38197         [BZ #13058]
38198         * manual/examples/argp-ex1.c (main): Format definition in GNU
38199         style.
38200         * manual/examples/argp-ex2.c (main): Likewise.
38201         * manual/examples/argp-ex3.c (main): Likewise.
38202         * manual/examples/argp-ex4.c (main): Likewise.
38203         * manual/examples/longopt.c (main): Use new-style prototype
38204         definition.
38205         * manual/examples/strncat.c (main): Specify return type and use
38206         (void) for arguments.
38207         * manual/examples/subopt.c (main): Use char **argv argument.
38208
38209 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38210
38211         [BZ #5077]
38212         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
38213         rounding modes.
38214
38215 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
38216
38217         [BZ #6907]
38218         * manual/string.texi (strchr): Change when strchrnul is
38219         recommended.
38220
38221 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
38222
38223         [BZ #174]
38224         * manual/locale.texi (setlocale): Document LOCPATH.
38225
38226 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38227
38228         [BZ #10210]
38229         * manual/process.texi (execle): Move @dots{} before last argument.
38230
38231 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
38232
38233         [BZ #12047]
38234         * manual/charset.texi (Generic Charset Conversion): Fix typo
38235         (LC_TYPE -> LC_CTYPE).
38236
38237 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
38238
38239         [BZ #5805]
38240         * manual/arith.texi (scalbn): Use @var{} on parameter names.
38241         (scalbnf): Likewise.
38242         (scalbnl): Likewise.
38243         (scalbln): Likewise.
38244         (scalblnf): Likewise.
38245         (scalblnl): Likewise.
38246         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
38247         (vwarnx): Likewise.
38248         (verr): Likewise.
38249         (verrx): Likewise.
38250         * manual/filesys.texi (telldir): Use braces around return type.
38251         * manual/llio.texi (mmap): Add space after comma.
38252         (mmap64): Likewise.
38253         * manual/math.texi (jn): Use @var{} on parameter names.
38254         (jnf): Likewise.
38255         (jnl): Likewise.
38256         (yn): Likewise.
38257         (ynf): Likewise.
38258         (ynl): Likewise.
38259         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
38260         line.
38261         * manual/resource.texi (ulimit): Use @dots{} instead of literal
38262         "...".
38263         (sched_get_priority_min): Remove semicolon on @deftypefun line.
38264         (sched_get_priority_max): Likewise.
38265         * manual/signal.texi (sigvec): Add space after comma.
38266         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
38267         names.
38268         (if_indextoname): Likewise.
38269         (if_freenameindex): Likewise.
38270         (sendto): Use ',' instead of '.' in prototype.
38271         * manual/startup.texi (syscall): Use @dots{} instead of literal
38272         "...".
38273         * manual/stdio.texi (__fpending): Separate initial words of
38274         paragraph from @deftypefun line.
38275         * manual/syslog.texi (syslog): Use @dots{} instead of literal
38276         "...".
38277         (vsyslog): Use @var{} on parameter names.
38278         * manual/terminal.texi (stty): Use @var{} on parameter names.
38279         * manual/users.texi (getutmp): Use @var{} on parameter names.
38280         (getutmpx): Likewise.
38281
38282 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38283
38284         [BZ #6884]
38285         * manual/stdio.texi (fopen): Fix typos in description of
38286         ",ccs=STRING".
38287
38288 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
38289
38290         [BZ #4026]
38291         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
38292         get clock_id definition.
38293
38294 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
38295
38296         [BZ #4822]
38297         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
38298         (madvise): Cast every argument to void on its own.
38299
38300 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38301
38302         [BZ #9902]
38303         * manual/startup.texi (Exit Status): Fix typo.
38304
38305 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38306
38307         [BZ #10140]
38308         * manual/examples/argp-ex1.c: Include <stdlib.h>.
38309         * manual/examples/argp-ex2.c: Likewise.
38310         * manual/examples/argp-ex3.c: Likewise.
38311
38312 2012-02-16  Richard Henderson  <rth@redhat.com>
38313
38314         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
38315         * sysdeps/s390/s390-32/initfini.c: Remove.
38316         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
38317         * sysdeps/s390/s390-64/initfini.c: Remove.
38318
38319 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38320
38321         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
38322         compiler output for sysdeps/generic/initfini.c.
38323         * sysdeps/sh/elf/initfini.c: Remove file.
38324
38325 2012-02-16  David S. Miller  <davem@davemloft.net>
38326
38327         [BZ #11494]
38328         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
38329
38330         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
38331         * sysdeps/sparc/crti.S: New file.
38332         * sysdeps/sparc/crtn.S: New file.
38333         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
38334         * sysdeps/sparc/sparc64/Makefile: Likewise.
38335
38336 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
38337
38338         [BZ #3335]
38339         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
38340
38341 2012-02-15  Roland McGrath  <roland@hack.frob.com>
38342
38343         [BZ #4822]
38344         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
38345
38346         * mach/devstream.c (cookie_io_functions_t): Macro removed.
38347         (write, read, close): Likewise.
38348         Patch by Aurelien Jarno <aurelien@aurel32.net>.
38349
38350 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
38351
38352         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
38353         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
38354         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
38355         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
38356         <bits/signalfd.h>.
38357         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
38358         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38359         bits/signalfd.h.
38360
38361 2012-02-14  Marek Polacek  <polacek@redhat.com>
38362
38363         * sysdeps/x86_64/crti.S: New file.
38364         * sysdeps/x86_64/crtn.S: New file.
38365         * sysdeps/x86_64/elf/initfini.c: Remove file.
38366
38367 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38368
38369         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
38370         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
38371         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
38372         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
38373         <bits/inotify.h>.
38374         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
38375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38376         bits/inotify.h.
38377
38378 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38379
38380         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
38381         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
38382         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
38383         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
38384         <bits/eventfd.h>.
38385         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
38386         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38387         bits/eventfd.h.
38388
38389 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
38390
38391         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
38392         __feraiseexcept instead of feraiseexcept.
38393
38394         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
38395         nanosleep invocations.
38396         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
38397         strings, and add error checking for a nanosleep invocations.
38398
38399 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38400
38401         Replace FSF snail mail address with URLs, as per GNU coding standards.
38402         Most of the snail mail addresses were wrong anyway, and omitting
38403         them makes the source code easier to maintain.  Almost all of the
38404         changes are to license notices and to locale LC_IDENTIFICATION
38405         addresses, except for this one:
38406         * manual/libc.texinfo: In "Published by", give the FSF's URL,
38407         not its snail mail address.
38408
38409 2012-02-09  Richard Henderson  <rth@twiddle.net>
38410
38411         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
38412         of kernel-features.h.
38413
38414         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
38415
38416 2012-02-08  Marek Polacek  <polacek@redhat.com>
38417
38418         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
38419         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
38420         * sysdeps/gnu/_G_config.h: Likewise.
38421         * sysdeps/generic/_G_config.h: Likewise.
38422
38423 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
38424
38425         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
38426         tests.
38427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38428
38429         * sysdeps/powerpc/powerpc32/crti.S: New file.
38430         * sysdeps/powerpc/powerpc32/crtn.S: New file.
38431         * sysdeps/powerpc/powerpc64/crti.S: New file.
38432         * sysdeps/powerpc/powerpc64/crtn.S: New file.
38433
38434         * Makeconfig (have-initfini): Don't set.
38435         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
38436         * configure.in (nopic_initfini): Don't substitute.
38437         * config.h.in (HAVE_INITFINI): Don't #undef.
38438         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
38439         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
38440
38441 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
38442
38443         Support crti.S and crtn.S provided directly by architectures.
38444         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
38445         [crti.S in sysdirs] (omit-deps): Likewise.
38446         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
38447         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
38448         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
38449         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
38450         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
38451         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
38452         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
38453         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
38454         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
38455         compiler output for sysdeps/generic/initfini.c.
38456         * sysdeps/i386/elf/Makefile: Remove file.
38457         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
38458
38459 2012-02-07  Marek Polacek  <polacek@redhat.com>
38460
38461         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
38462         * sysdeps/gnu/_G_config.h: Likewise.
38463         * sysdeps/mach/hurd/_G_config.h: Likewise.
38464
38465 2012-02-07  Marek Polacek  <polacek@redhat.com>
38466
38467         * math/Makefile (tests): Add tst-CMPLX2.
38468         * math/tst-CMPLX2.c: New file.
38469
38470 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
38471
38472         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38473
38474         * math/libm-test.inc (jn_test): Add missing L suffix.
38475
38476 2012-02-06  Marek Polacek  <polacek@redhat.com>
38477
38478         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
38479         * sysdeps/i386/fpu/e_powf.S: Likewise.
38480         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
38481         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
38482         * sysdeps/i386/fpu/e_acosh.S: Likewise.
38483         * sysdeps/i386/fpu/e_pow.S: Likewise.
38484         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
38485         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
38486         * sysdeps/i386/fpu/s_expm1.S: Likewise.
38487         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
38488         * sysdeps/i386/fpu/e_log2.S: Likewise.
38489         * sysdeps/i386/fpu/e_log2l.S: Likewise.
38490         * sysdeps/i386/fpu/e_scalb.S: Likewise.
38491         * sysdeps/i386/fpu/e_powl.S: Likewise.
38492         * sysdeps/i386/fpu/s_log1p.S: Likewise.
38493         * sysdeps/i386/fpu/e_log10f.S: Likewise.
38494         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
38495         * sysdeps/i386/fpu/e_logl.S: Likewise.
38496         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
38497         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
38498         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
38499         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
38500         * sysdeps/i386/fpu/e_log2f.S: Likewise.
38501         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
38502         * sysdeps/i386/fpu/e_log.S: Likewise.
38503         * sysdeps/i386/fpu/s_cexp.S: Likewise.
38504         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
38505         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
38506         * sysdeps/i386/fpu/e_logf.S: Likewise.
38507         * sysdeps/i386/fpu/e_log10l.S: Likewise.
38508         * sysdeps/i386/fpu/e_atanh.S: Likewise.
38509         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
38510         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
38511         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
38512         * sysdeps/i386/fpu/e_log10.S: Likewise.
38513         * sysdeps/i386/fpu/s_frexp.S: Likewise.
38514         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
38515         * sysdeps/i386/fpu/s_asinh.S: Likewise.
38516         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
38517         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
38518         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
38519         * sysdeps/i386/asm-syntax.h: Likewise.
38520         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
38521         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
38522         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
38523         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
38524         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
38525         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
38526         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
38527         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
38528         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
38529         * sysdeps/powerpc/sysdep.h: Likewise.
38530         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
38531         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
38532
38533 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
38534
38535         [BZ #411]
38536         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
38537
38538 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
38539
38540         * sysdeps/i386/sysdep.h: Include <features.h>.
38541         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
38542         version.
38543
38544 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
38545
38546         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
38547         Define.
38548         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
38549         LOAD_PIC_REG_STR.
38550
38551 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38552
38553         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
38554         (SETUP_PIC_REG): Use GET_PC_THUNK.
38555         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
38556         macro.
38557
38558 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38559
38560         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
38561         for non-PIC compilation.
38562         (SETUP_PIC_REG): Add .p2align directive.
38563         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
38564         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
38565         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38566         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38567         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
38568         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38569         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38570         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38571         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38572         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38573         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38574         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38575         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38576         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38577         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38578         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38579         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38580         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38581         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38582         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38583         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38584         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38585         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38586         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
38587         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
38588         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
38589         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38590         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38591         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38592         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38593         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38594         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38595         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38596         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38597         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38598         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38599         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38600         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38601         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38602         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38603         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38604
38605 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38606
38607         * math/tst-CMPLX.c: Include <stdio.h>.
38608
38609 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
38610
38611         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
38612         float.
38613         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
38614         * sysdeps/sparc/bits/mathdef.h: Likewise.
38615
38616 2012-01-31  Marek Polacek  <polacek@redhat.com>
38617
38618         * libio/libio.h: Don't define _PARAMS.
38619         * locale/programs/config.h: Don't define PARAMS.
38620         * stdlib/strtol_l.c: Likewise.
38621         (__strtol_l): Remove PARAMS from the prototype.
38622
38623 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
38624
38625         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
38626         names.  Just use the correct names.  Remove unnecessary wrapper
38627         functions.
38628         * malloc/arena.c: Likewise.
38629         * malloc/hooks.c: Likewise.
38630
38631         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
38632         ARENA_TEST says not to.  Simplify test for creation of a new arena.
38633         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
38634
38635 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
38636
38637         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
38638         into tail calls.
38639         (update_get_addr): New function.
38640         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
38641         GET_ADDR_MODULE parameter.
38642
38643 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
38644
38645         * crypt/cert.c: Remove __STDC__ conditionals.
38646         * crypt/crypt-entry.c: Likewise.
38647         * crypt/crypt_util.c: Likewise.
38648         * libio/filedoalloc.c: Likewise.
38649         * libio/fileops.c: Likewise.
38650         * libio/genops.c: Likewise.
38651         * libio/iofclose.c: Likewise.
38652         * libio/iofdopen.c: Likewise.
38653         * libio/iofopen.c: Likewise.
38654         * libio/iofopen64.c: Likewise.
38655         * libio/iogetdelim.c: Likewise.
38656         * libio/iopopen.c: Likewise.
38657         * libio/obprintf.c: Likewise.
38658         * libio/oldfileops.c: Likewise.
38659         * libio/oldiofclose.c: Likewise.
38660         * libio/oldiofdopen.c: Likewise.
38661         * libio/oldiofopen.c: Likewise.
38662         * libio/oldiopopen.c: Likewise.
38663         * libio/wfiledoalloc.c: Likewise.
38664         * libio/wgenops.c: Likewise.
38665         * locale/programs/xmalloc.c: Likewise.
38666         * misc/syslog.c: Likewise.
38667         * stdio-common/xbug.c: Likewise.
38668         * string/memchr.c: Likewise.
38669         * string/memcmp.c: Likewise.
38670         * string/memrchr.c: Likewise.
38671         * string/rawmemchr.c: Likewise.
38672         * sysdeps/posix/getcwd.c: Likewise.
38673         * time/strftime_l.c: Likewise.
38674
38675 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
38676
38677         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
38678         * config.make.in (config-cflags-sse2avx): Define.
38679         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
38680         Fix typo.
38681
38682 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
38683
38684         * scripts/config.guess: Update from upstream config git repository.
38685         * scripts/config.sub: Likewise.
38686
38687 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
38688
38689         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
38690         (EM_NUM): Update.
38691         (R_TILEPRO_*, R_TILEGX_*): New macros.
38692
38693         * scripts/firstversions.awk: Fix bug in version range handling.
38694
38695         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
38696
38697         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
38698
38699         * include/sys/epoll.h: New file.
38700         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
38701         libc_hidden_def.
38702
38703 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
38704
38705         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
38706         Avoid unnecessary __WORDSIZE == 64 test.
38707         (fmaxf): Use VEX format if possible.
38708         (fmax): Likewise.
38709         (fminf): Likewise.
38710         (fmin): Likewise.
38711
38712         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
38713         * math/math_private.h: Remove libc_fegetround* and
38714         libc_fesetround*.
38715         * sysdeps/i386/configure.in: Check for -msse2avx.
38716         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
38717         also if SSE2AVX is defined.
38718         Remove libc_fegetround* and libc_fesetround*.
38719         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
38720         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
38721         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
38722         of HAS_YMM_USABLE.
38723         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38724         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38725         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38726         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38727         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38728
38729         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
38730
38731 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38732
38733         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
38734         size is not set.
38735         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
38736
38737 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
38738
38739         [BZ #13618]
38740         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
38741         relocation.
38742         * Makeconfig (libm): Define.
38743         * elf/Makefile: Add rules to build and run tst-relsort1.
38744         * elf/tst-relsort1.c: New file.
38745         * elf/tst-relsort1mod1.c: New file.
38746         * elf/tst-relsort1mod2.c: New file.
38747
38748 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
38749
38750         * math/s_ldexp.c: Remove __STDC__ conditionals.
38751         * math/s_ldexpf.c: Likewise.
38752         * math/s_ldexpl.c: Likewise.
38753         * math/s_nextafter.c: Likewise.
38754         * math/s_nexttowardf.c: Likewise.
38755         * math/s_significand.c: Likewise.
38756         * math/s_significandf.c: Likewise.
38757         * math/s_significandl.c: Likewise.
38758         * math/w_jnl.c: Likewise.
38759         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
38760         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
38761         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
38762         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
38763         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
38764         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
38765         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
38766         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
38767         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
38768         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
38769         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
38770         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
38771         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
38772         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
38773         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
38774         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
38775         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
38776         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
38777         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
38778         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
38779         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
38780         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
38781         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
38782         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
38783         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
38784         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
38785         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
38786         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
38787         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
38788         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
38789         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
38790         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
38791         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
38792         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
38793         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
38794         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
38795         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
38796         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
38797         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
38798         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
38799         * sysdeps/ieee754/k_standard.c: Likewise.
38800         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
38801         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
38802         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
38803         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
38804         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
38805         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
38806         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
38807         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
38808         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
38809         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
38810         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
38811         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
38812         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
38813         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
38814         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
38815         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
38816         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
38817         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
38818         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
38819         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
38820         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
38821         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
38822         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
38823         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
38824         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
38825         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
38826         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
38827         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
38828         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
38829         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
38830         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
38831         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
38832         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
38833         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
38834         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
38835         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
38836         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
38837         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
38838         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
38839         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
38840         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
38841         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
38842         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
38843         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
38844         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38845         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
38846         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
38847         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
38848         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
38849         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
38850         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
38851         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
38852         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38853         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
38854         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
38855         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
38856         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
38857         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
38858         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
38859         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
38860         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
38861         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
38862         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
38863         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
38864         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
38865         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
38866         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
38867         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
38868         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
38869         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
38870         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
38871         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
38872         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
38873         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
38874         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
38875         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
38876         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
38877         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
38878         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
38879         * sysdeps/ieee754/s_matherr.c: Likewise.
38880         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
38881         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
38882         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
38883         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
38884
38885 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
38886
38887         * crypt/md5.h: Remove __STDC__ conditionals.
38888         * libio/libioP.h: Likewise.
38889         * locale/programs/config.h: Likewise.
38890         * sysdeps/generic/sysdep.h: Likewise.
38891         * sysdeps/i386/asm-syntax.h: Likewise.
38892         * sysdeps/s390/asm-syntax.h: Likewise.
38893         * sysdeps/unix/sysdep.h: Likewise.
38894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
38895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
38896
38897 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
38898
38899         * libio/libio.h: Remove __STDC__ conditionals.
38900         * malloc/obstack.h: Likewise.
38901         * math/complex.h: Likewise.
38902         * math/math.h: Likewise.
38903         * sysdeps/generic/_G_config.h: Likewise.
38904         * sysdeps/gnu/_G_config.h: Likewise.
38905         * sysdeps/mach/hurd/_G_config.h: Likewise.
38906         * sysdeps/powerpc/bits/mathdef.h: Likewise.
38907         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
38908         * sysdeps/sparc/bits/mathdef.h: Likewise.
38909
38910 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
38911
38912         [BZ #13583]
38913         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
38914         Clean up HAS_* macros.
38915         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
38916         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
38917         possible.
38918         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
38919         HAS_AVX.
38920         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38921         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38922         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38923         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38924         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38925
38926 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
38927
38928         * elf/tst-unique3.cc (gets): Remove declaration.
38929         * elf/tst-unique3lib.cc (gets): Likewise.
38930         * elf/tst-unique3lib2.cc (gets): Likewise.
38931         * elf/tst-unique4.cc (gets): Likewise.
38932
38933 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
38934
38935         * include/stdio.h: Add C++ protection.  Add gets declarations and
38936         definitions.
38937         * debug/tst-chk1.c: Don't declare gets here.
38938         * stdio-common/tst-gets.c: Likewise.
38939
38940 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
38941
38942         * posix/glob: Remove directory.
38943
38944 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
38945
38946         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
38947
38948 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
38949
38950         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
38951         of the non-standard EPFNOSUPPORT.
38952
38953 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
38954
38955         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
38956         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
38957         ANYWHERE set to 1 only on KERN_NO_SPACE error.
38958
38959 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
38960
38961         * wcsmbs/uchar.h: Test __STDC_VERSION__.
38962
38963 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
38964
38965         * nscd/aicache.c (addhstaiX): Do not cache negative results of
38966         transient errors.
38967         * nscd/grpcache.c (cache_addgr): Likewise.
38968         * nscd/hstcache.c (cache_addhst): Likewise.
38969         * nscd/initgrcache.c (addinitgroupsX): Likewise.
38970         * nscd/pwdcache.c (cache_addpw): Likewise.
38971         * nscd/servicescache.c (cache_addserv): Likewise.
38972
38973 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
38974
38975         * malloc/malloc.c: Various cleanups.
38976         * malloc/hooks.c: Likewise.
38977
38978         * stdlib/Makefile (tests): Add bug-fmtmsg1.
38979         * stdlib/bug-fmtmsg1.c: New file.
38980
38981         * stdlib/fmtmsg.c (init): Add missing unlock.
38982         Patch by Peng Haitao <penght@cn.fujitsu.com>.
38983
38984 2012-01-12  Marek Polacek  <polacek@redhat.com>
38985
38986         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
38987         and _GNU_SOURCE.
38988
38989 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
38990
38991         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
38992         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
38993         macro to ensure uniqueness of label name.
38994         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
38995         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
38996
38997 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
38998
38999         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39000
39001         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39002         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39003         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39004         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39005
39006 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39007
39008         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39009
39010         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39011         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39012         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39013
39014         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39015
39016         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39017         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39018         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39019         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39020
39021         * math/bits/math-finite.h: Add ldexp support.
39022
39023 2012-01-10  Marek Polacek  <polacek@redhat.com>
39024
39025         * locale/programs/localedef.h (show_archive_content): Add noreturn
39026         attribute.
39027
39028 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39029
39030         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39031
39032 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39033
39034         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39035
39036         * io/Makefile (headers): Add bits/poll2.h.
39037
39038 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39039
39040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39041         typo #include statement.
39042
39043 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39044
39045         * include/sys/cdefs.h: Define __attribute_alloc_size.
39046         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39047         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39048         * elf/pldd.c: Likewise.
39049         * iconv/iconv_charmap.c: Likewise.
39050         * iconv/iconvconfig.c: Likewise.
39051         * iconv/strtab.c: Likewise.
39052         * locale/programs/locale.c: Likewise.
39053         * locale/programs/localedef.h: Likewise.
39054         * locale/programs/simple-hash.c: Likewise.
39055         * nscd/nscd.h: Likewise.
39056         * nss/makedb.c: Likewise.
39057         * sysdeps/generic/ldconfig.h: Likewise.
39058         * locale/programs/localedef.c: Remove xmalloc prototype.
39059         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39060
39061 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39062
39063         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39064         appropriate.
39065
39066 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39067
39068         * math/Makefile (tests): Add tst-CMPLX.
39069         * math/tst-CMPLX.c: New file.
39070
39071         * math/complex.h (CMPLXL): Fix typo.
39072
39073         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39074         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39075         GLIBC_2.16.
39076         * debug/tst-chk1.c: Add poll and ppoll tests.
39077         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39078         * include/sys/poll.h: Add hidden proto for ppoll.
39079         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39080         * sysdeps/mach/hurd/ppoll.c: Likewise.
39081         * io/ppoll.c: Likewise.
39082         * debug/poll_chk.c: New file.
39083         * debug/ppoll_chk.c: New file.
39084         * include/bits/poll2.h: New file.
39085         * io/bits/poll2.h: New file.
39086
39087         [BZ #1350]
39088         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39089
39090         * configure.in: static is always set to yes.  Remove.
39091         * config.make.in: Don't set build-static.
39092         * Makeconfig: Remove use of build-static.
39093         * dlfcn/Makefile: Likewise.
39094         * elf/Makefile: Likewise.
39095         * math/Makefile: Likewise.
39096         * misc/Makefile: Likewise.
39097         * nptl/Makefile: Likewise.
39098         * sysdeps/mach/hurd/Makefile: Likewise.
39099
39100         * configure.in: PWD_P is not used anymore.
39101         * config.make.in: Remove PWD_P entry.
39102
39103         * configure.in: Remove last remnants of RANLIB.
39104         No need to check for signed size_t anymore.
39105         Don't set libc_commonpagesize and libc_relro_required here for Alpha
39106         and IA-64.
39107         Remove __builtin_expect test because we require at least gcc 3.4.
39108         * aclocal.m4: Likewise.
39109
39110         * wcsmbs/mbrtoc16.c: Implement using towc function.
39111         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
39112         * wcsmbs/wcsmbsload.c: Likewise.
39113         * iconv/gconv_simple.c: Likewise.
39114         * iconv/gconv_int.h: Likewise.
39115         * iconv/gconv_builtin.h: Likewise.
39116         * iconv/iconv_prog.c: Remove CHAR16 handling.
39117
39118         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
39119
39120         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
39121
39122         * configure.in: Remove --with-elf and --enable-bounded options.
39123         Dont set base_machine for ia64.  More non-ELF conditions removed.
39124         Remove testing and setting of leading underscore information.
39125         * config.make.in (build-bounded): Set to no.
39126         * config.h.in: Remove NO_UNDERSCORES entry.
39127         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
39128         them.
39129         * csu/start.c: Remove !NO_UNDERSCORE code.
39130         * locale/localeinfo.h: Likewise.
39131         * sysdeps/generic/machine-gmon.h: Likewise.
39132         * sysdeps/generic/sysdep.h: Likewise.
39133         * sysdeps/i386/sysdep.h: Likewise.
39134         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39135         * sysdeps/mach/sysdep.h: Likewise.
39136         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39137         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39138         * sysdeps/sh/sysdep.h: Likewise.
39139         * sysdeps/sparc/sparc32/alloca.S: Likewise.
39140         * sysdeps/unix/i386/sysdep.S: Likewise.
39141         * sysdeps/unix/sparc/start.c: Likewise.
39142         * sysdeps/unix/sparc/sysdep.S: Likewise.
39143         * sysdeps/unix/sparc/sysdep.h: Likewise.
39144         * sysdeps/unix/start.c: Likewise.
39145         * sysdeps/unix/x86_64/sysdep.S: Likewise.
39146         * sysdeps/x86_64/sysdep.h: Likewise.
39147
39148 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
39149
39150         [BZ #13553]
39151         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
39152         for non-gcc.
39153         * argp/argp-fmtstream.h: Use const instead __const.
39154         * argp/argp.h: Likewise.
39155         * assert/assert.h: Likewise.
39156         * bits/fenv.h: Likewise.
39157         * bits/sched.h: Likewise.
39158         * bits/sigset.h: Likewise.
39159         * bits/sigthread.h: Likewise.
39160         * catgets/nl_types.h: Likewise.
39161         * conform/data/pthread.h-data: Likewise.
39162         * crypt/crypt-private.h: Likewise.
39163         * crypt/crypt.h: Likewise.
39164         * crypt/crypt_util.c: Likewise.
39165         * ctype/ctype.h: Likewise.
39166         * debug/execinfo.h: Likewise.
39167         * debug/mbsnrtowcs_chk.c: Likewise.
39168         * debug/mbsrtowcs_chk.c: Likewise.
39169         * debug/wcsnrtombs_chk.c: Likewise.
39170         * debug/wcsrtombs_chk.c: Likewise.
39171         * debug/wcstombs_chk.c: Likewise.
39172         * dirent/dirent.h: Likewise.
39173         * dlfcn/dlfcn.h: Likewise.
39174         * elf/neededtest4.c: Likewise.
39175         * grp/grp.h: Likewise.
39176         * gshadow/gshadow.h: Likewise.
39177         * iconv/gconv.h: Likewise.
39178         * iconv/gconv_int.h: Likewise.
39179         * iconv/gconv_simple.c: Likewise.
39180         * iconv/iconv.h: Likewise.
39181         * iconv/loop.c: Likewise.
39182         * iconv/skeleton.c: Likewise.
39183         * include/aio.h: Likewise.
39184         * include/aliases.h: Likewise.
39185         * include/argz.h: Likewise.
39186         * include/arpa/inet.h: Likewise.
39187         * include/assert.h: Likewise.
39188         * include/dirent.h: Likewise.
39189         * include/dlfcn.h: Likewise.
39190         * include/execinfo.h: Likewise.
39191         * include/fcntl.h: Likewise.
39192         * include/fenv.h: Likewise.
39193         * include/glob.h: Likewise.
39194         * include/grp.h: Likewise.
39195         * include/libintl.h: Likewise.
39196         * include/mntent.h: Likewise.
39197         * include/netdb.h: Likewise.
39198         * include/pwd.h: Likewise.
39199         * include/rpc/netdb.h: Likewise.
39200         * include/sched.h: Likewise.
39201         * include/search.h: Likewise.
39202         * include/shadow.h: Likewise.
39203         * include/signal.h: Likewise.
39204         * include/stdio.h: Likewise.
39205         * include/stdlib.h: Likewise.
39206         * include/string.h: Likewise.
39207         * include/sys/socket.h: Likewise.
39208         * include/sys/stat.h: Likewise.
39209         * include/sys/statfs.h: Likewise.
39210         * include/sys/statvfs.h: Likewise.
39211         * include/sys/syslog.h: Likewise.
39212         * include/sys/time.h: Likewise.
39213         * include/sys/uio.h: Likewise.
39214         * include/time.h: Likewise.
39215         * include/unistd.h: Likewise.
39216         * include/utmp.h: Likewise.
39217         * include/wchar.h: Likewise.
39218         * include/wctype.h: Likewise.
39219         * inet/aliases.h: Likewise.
39220         * inet/arpa/inet.h: Likewise.
39221         * inet/netinet/ether.h: Likewise.
39222         * inet/netinet/in.h: Likewise.
39223         * intl/libintl.h: Likewise.
39224         * io/bits/fcntl2.h: Likewise.
39225         * io/fcntl.h: Likewise.
39226         * io/ftw.h: Likewise.
39227         * io/sys/poll.h: Likewise.
39228         * io/sys/stat.h: Likewise.
39229         * io/sys/statfs.h: Likewise.
39230         * io/sys/statvfs.h: Likewise.
39231         * io/utime.h: Likewise.
39232         * libio/bits/stdio.h: Likewise.
39233         * libio/bits/stdio2.h: Likewise.
39234         * libio/libio.h: Likewise.
39235         * libio/libioP.h: Likewise.
39236         * libio/stdio.h: Likewise.
39237         * locale/lc-ctype.c: Likewise.
39238         * locale/locale.h: Likewise.
39239         * login/utmp.h: Likewise.
39240         * malloc/arena.c: Likewise.
39241         * malloc/malloc.c: Likewise.
39242         * malloc/malloc.h: Likewise.
39243         * malloc/mcheck.c: Likewise.
39244         * malloc/mtrace.c: Likewise.
39245         * math/bits/mathcalls.h: Likewise.
39246         * math/fenv.h: Likewise.
39247         * math/math_private.h: Likewise.
39248         * misc/bits/error.h: Likewise.
39249         * misc/bits/syslog.h: Likewise.
39250         * misc/err.h: Likewise.
39251         * misc/error.h: Likewise.
39252         * misc/fstab.h: Likewise.
39253         * misc/mntent.h: Likewise.
39254         * misc/regexp.h: Likewise.
39255         * misc/search.h: Likewise.
39256         * misc/sgtty.h: Likewise.
39257         * misc/sys/mman.h: Likewise.
39258         * misc/sys/syslog.h: Likewise.
39259         * misc/sys/uio.h: Likewise.
39260         * misc/sys/xattr.h: Likewise.
39261         * misc/ttyent.h: Likewise.
39262         * nis/rpcsvc/ypclnt.h: Likewise.
39263         * nss/nss.h: Likewise.
39264         * posix/bits/unistd.h: Likewise.
39265         * posix/fnmatch.h: Likewise.
39266         * posix/glob.h: Likewise.
39267         * posix/sched.h: Likewise.
39268         * posix/spawn.h: Likewise.
39269         * posix/sys/wait.h: Likewise.
39270         * posix/unistd.h: Likewise.
39271         * posix/wordexp.h: Likewise.
39272         * pwd/pwd.h: Likewise.
39273         * resolv/netdb.h: Likewise.
39274         * resource/sys/resource.h: Likewise.
39275         * rt/aio.h: Likewise.
39276         * rt/bits/mqueue2.h: Likewise.
39277         * rt/mqueue.h: Likewise.
39278         * shadow/shadow.h: Likewise.
39279         * signal/signal.h: Likewise.
39280         * socket/send.c: Likewise.
39281         * socket/sendto.c: Likewise.
39282         * socket/sys/socket.h: Likewise.
39283         * stdio-common/printf.h: Likewise.
39284         * stdlib/bits/stdlib.h: Likewise.
39285         * stdlib/fmtmsg.h: Likewise.
39286         * stdlib/monetary.h: Likewise.
39287         * stdlib/stdlib.h: Likewise.
39288         * stdlib/ucontext.h: Likewise.
39289         * streams/stropts.h: Likewise.
39290         * string/argz.h: Likewise.
39291         * string/bits/string2.h: Likewise.
39292         * string/string.h: Likewise.
39293         * string/strings.h: Likewise.
39294         * sunrpc/rpc/auth.h: Likewise.
39295         * sunrpc/rpc/auth_des.h: Likewise.
39296         * sunrpc/rpc/clnt.h: Likewise.
39297         * sunrpc/rpc/netdb.h: Likewise.
39298         * sunrpc/rpc/pmap_clnt.h: Likewise.
39299         * sunrpc/rpc/xdr.h: Likewise.
39300         * sysdeps/generic/inttypes.h: Likewise.
39301         * sysdeps/generic/net/if.h: Likewise.
39302         * sysdeps/generic/sys/swap.h: Likewise.
39303         * sysdeps/gnu/net/if.h: Likewise.
39304         * sysdeps/gnu/utmpx.h: Likewise.
39305         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
39306         * sysdeps/i386/i486/bits/string.h: Likewise.
39307         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
39308         * sysdeps/s390/bits/string.h: Likewise.
39309         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
39310         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
39311         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
39312         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
39313         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
39314         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
39315         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
39316         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
39317         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
39318         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
39319         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
39320         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
39321         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
39322         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
39323         * sysdeps/unix/sysv/linux/readv.c: Likewise.
39324         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
39325         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
39326         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39327         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
39328         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
39329         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39330         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
39331         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
39332         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
39333         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
39334         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
39335         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
39336         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39337         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
39338         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
39339         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
39340         * sysvipc/sys/ipc.h: Likewise.
39341         * sysvipc/sys/msg.h: Likewise.
39342         * sysvipc/sys/sem.h: Likewise.
39343         * sysvipc/sys/shm.h: Likewise.
39344         * termios/termios.h: Likewise.
39345         * time/sys/time.h: Likewise.
39346         * time/time.h: Likewise.
39347         * wcsmbs/bits/wchar2.h: Likewise.
39348         * wcsmbs/uchar.h: Likewise.
39349         * wcsmbs/wchar.h: Likewise.
39350         * wctype/wctype.h: Likewise.
39351
39352         [BZ #13551]
39353         * Makeconfig: Remove all but ELF support including AIX support.
39354         * Makerules: Likewise.
39355         * config.h.in: Likewise.
39356         * config.make.in: Likewise.
39357         * configure: Likewise.
39358         * configure.in: Likewise.
39359         * csu/Makefile: Likewise.
39360         * csu/version.c: Likewise.
39361         * debug/Makefile: Likewise.
39362         * dlfcn/Makefile: Likewise.
39363         * elf/Makefile: Likewise.
39364         * extra-lib.mk: Likewise.
39365         * iconv/Makefile: Likewise.
39366         * include/libc-symbols.h: Likewise.
39367         * include/shlib-compat.h: Likewise.
39368         * resolv/Makefile: Likewise.
39369         * resolv/res_libc.c: Likewise.
39370         * rt/Makefile: Likewise.
39371         * sysdeps/i386/asm-syntax.h: Likewise.
39372         * sysdeps/i386/sysdep.h: Likewise.
39373         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39374         * sysdeps/mach/sysdep.h: Likewise.
39375         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
39376         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
39377         * sysdeps/s390/asm-syntax.h: Likewise.
39378         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39379         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39380         * sysdeps/sh/sysdep.h: Likewise.
39381         * sysdeps/unix/sparc/sysdep.h: Likewise.
39382         * sysdeps/wordsize-32/divdi3.c: Likewise.
39383         * sysdeps/x86_64/sysdep.h: Likewise.
39384
39385         * argp/Versions: Remove _argp_unlock_xxx.
39386
39387         [BZ #13559]
39388         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
39389         * abilist/libBrokenLocale.abilist: Likewise.
39390         * abilist/libanl.abilist: Likewise.
39391         * abilist/libc.abilist: Likewise.
39392         * abilist/libcrypt.abilist: Likewise.
39393         * abilist/libdl.abilist: Likewise.
39394         * abilist/libm.abilist: Likewise.
39395         * abilist/libnsl.abilist: Likewise.
39396         * abilist/libpthread.abilist: Likewise.
39397         * abilist/libresolv.abilist: Likewise.
39398         * abilist/librt.abilist: Likewise.
39399         * abilist/libthread_db.abilist: Likewise.
39400         * abilist/libutil.abilist: Likewise.
39401         * abilist/libnss_db.abilist: New file.
39402
39403         * scripts/abilist.awk: Add support for indirect functions.
39404
39405         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
39406
39407         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
39408
39409         * shlib-versions: Remove entries for ports architectures.
39410
39411         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
39412         files in ports.
39413         * elf/stackguard-macros.h: Remove support for IA-64.
39414         * elf/tst-auditmod1.c: Likewise.
39415         * sysdeps/generic/ldsodefs.h: Likewise.
39416
39417         * sysdeps/unix/sysv/linux/configure.in: Ports should define
39418         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
39419         configure files.
39420
39421         [BZ #13552]
39422         * configure.in: Remove --enable-omitfp support.
39423         * FAQ.in: Adjust.
39424         * config.make.in: Likewise.
39425         * Makeconfig: Likewise.
39426         * manual/install.texi: Likewise.
39427
39428         In case anyone cares, the IA-64 architecture could move to ports.
39429         * sysdeps/ia64/*: Removed.
39430         * sysdeps/unix/sysv/linux/ia64/*: Removed.
39431         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
39432
39433         [BZ #13555]
39434         * configure.in: Remove entries for unsupported architectures.
39435
39436         [BZ #13533]
39437         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
39438         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
39439         routines.
39440         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
39441         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
39442         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
39443         fall back to using wcrtomb.
39444         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
39445         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
39446         renaming.
39447         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
39448         * wcsmbs/tst-c16c32-1.c: New file.
39449
39450         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
39451         local variable.
39452
39453         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
39454
39455         * elf/tst-unique3.cc: Add explicit declaration of gets.
39456         * elf/tst-unique3lib.cc: Likewise.
39457         * elf/tst-unique3lib2.cc: Likewise.
39458         * elf/tst-unique4.cc: Likewise.
39459
39460         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
39461
39462 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
39463
39464         [BZ #13566]
39465         * assert/assert.h (static_assert): Don't define for C++.
39466         * libio/stdio.h (gets): Do declare for C++ <= C++11.
39467         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
39468
39469 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
39470
39471         * iconv/loop.c (single loop): Fix assertion in storing of
39472         remaining bytes.
39473
39474         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
39475
39476 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
39477
39478         * posix/getconf.c: Update copyright year.
39479         * nss/getent.c: Likewise.
39480         * nss/makedb.c: Likewise.
39481         * iconv/iconvconfig.c: Likewise.
39482         * iconv/iconv_prog.c: Likewise.
39483         * elf/ldconfig.c: Likewise.
39484         * elf/pldd.c: Likewise.
39485         * elf/sotruss.ksh: Likewise.
39486         * catgets/gencat.c: Likewise.
39487         * csu/version.c: Likewise.
39488         * elf/ldd.bash.in: Likewise.
39489         * elf/sprof.c (print_version): Likewise.
39490         * locale/programs/locale.c: Likewise.
39491         * locale/programs/localedef.c: Likewise.
39492         * login/programs/pt_chown.c: Likewise.
39493         * nscd/nscd.c (print_version): Likewise.
39494         * debug/xtrace.sh: Likewise.
39495         * malloc/memusage.sh: Likewise.
39496         * malloc/mtrace.pl: Likewise.
39497         * debug/catchsegv.sh: Likewise.
39498
39499 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
39500
39501         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
39502         pure attribute.
39503
39504 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
39505
39506         [BZ #13533]
39507         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
39508         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
39509         transformations.
39510         * iconv/gconv_int.h: Likewise.
39511         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
39512         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
39513         from libc for GLIBC_2.16.
39514         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
39515         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
39516         * wcsmbs/uchar.h: Really define mbstate_t.
39517         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
39518         * wcsmbs/c16rtomb.c: New file.
39519         * wcsmbs/mbrtoc16.c: New file.
39520         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
39521         for C/POSIX locale.
39522         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
39523         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
39524
39525         * wcsmbs/wchar.h: Add missing __restrict.
39526
39527 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
39528
39529         [BZ #13532]
39530         * time/Makefile (routines): Add timespec_get.
39531         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
39532         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
39533         timespec for ISO C11.
39534         * time/timespec_get.c: New file.
39535         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
39536         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
39537
39538         [BZ #13531]
39539         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
39540         * stdlib/stdlib.h: Declare aligned_alloc.
39541         * Versions.def: Add GLIBC_2.16 for libc.
39542         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
39543
39544         [BZ 13527]
39545         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
39546         ISO C11.
39547
39548         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
39549         code.
39550
39551         [BZ #13528]
39552         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
39553
39554         [BZ #13529]
39555         * assert/assert.h (static_assert): Define.
39556
39557         * version.h: Update for 2.16 development version.
39558
39559         [BZ #13526]
39560         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
39561         _ISOC11_SOURCE.
39562
39563         * version.h (RELEASE): Bump for 2.15 release.
39564         * include/features.h (__GLIBC_MINOR__): Bump to 15.
39565
39566         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
39567         Patch by Marek Polacek <mpolacek@redhat.com>.
39568
39569         * bits/byteswap.h: Protect long long constants with __extension__.
39570         * sysdeps/i386/bits/byteswap.h: Likewise.
39571         * sysdeps/ia64/bits/byteswap.h: Likewise.
39572         * sysdeps/s390/bits/byteswap.h: Likewise.
39573         * sysdeps/x86_64/bits/byteswap.h: Likewise.
39574
39575 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39576
39577         [BZ #13540]
39578         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
39579         destination buffer.
39580         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
39581
39582 2011-12-23  Marek Polacek  <polacek@redhat.com>
39583
39584         * elf/dl-addr.c (determine_info): Add inline keyword.
39585         * elf/tst-auditmod4b.c (check_avx): Likewise.
39586         * elf/tst-auditmod6b.c (check_avx): Likewise.
39587         * elf/tst-auditmod6c.c (check_avx): Likewise.
39588         * elf/tst-auditmod7b.c (check_avx): Likewise.
39589
39590 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
39591
39592         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
39593         !__SSE_MATH__.
39594
39595 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39596
39597         [BZ #13540]
39598         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
39599         processing for last bytes.
39600
39601 2011-08-06  Bruno Haible  <bruno@clisp.org>
39602
39603         [BZ #13061]
39604         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
39605         U+0385, not to U+1FEE.
39606
39607         [BZ #13062]
39608         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
39609         entry for U+00A5 U+0301.
39610
39611 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
39612
39613         [BZ #13166]
39614         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
39615         buffer for the output is too small.
39616
39617         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
39618         optimization.
39619
39620         [BZ #13185]
39621         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
39622         SSE flags if possible.
39623
39624 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39625
39626         [BZ #13540]
39627         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
39628         processing for last bytes.
39629
39630 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
39631
39632         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
39633         (syscall-list-default-options, syscall-list-default-condition)
39634         (syscall-list-includes): Define.
39635         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
39636         list of ABIs and options and #if conditions for each ABI.  Do not
39637         handle common syscalls between ABIs specially.
39638         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
39639         Remove.
39640         (syscall-list-variants, syscall-list-32bit-options)
39641         (syscall-list-32bit-condition, syscall-list-64bit-options)
39642         (syscall-list-64bit-condition): Define.
39643         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
39644         (syscall-list-variants, syscall-list-32bit-options)
39645         (syscall-list-32bit-condition, syscall-list-64bit-options)
39646         (syscall-list-64bit-condition): Define.
39647         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
39648         Remove.
39649         (syscall-list-variants, syscall-list-32bit-options)
39650         (syscall-list-32bit-condition, syscall-list-64bit-options)
39651         (syscall-list-64bit-condition): Define.
39652         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
39653         Remove.
39654         (syscall-list-variants, syscall-list-32bit-options)
39655         (syscall-list-32bit-condition, syscall-list-64bit-options)
39656         (syscall-list-64bit-condition): Define.
39657
39658 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
39659
39660         * locale/iso-639.def: Add brx entry.
39661
39662         [BZ #13328]
39663         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
39664         Proposed by Mariusz_Cukr <marcukr@op.pl>.
39665
39666         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
39667         __feraiseexcept_renamed.
39668
39669 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
39670
39671         [BZ #13538]
39672         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
39673         EPOLLET with unsigned values.
39674         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39675         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39676
39677         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
39678         to large cancellation.
39679         * math/s_cacoshf.c: Likewise.
39680         * math/s_cacoshl.c: Likewise.
39681
39682 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
39683
39684         [BZ #13305]
39685         [BZ #12786]
39686         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
39687         * math/s_cacoshf.c: Likewise.
39688         * math/s_cacoshl.c: Likewise.
39689
39690 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
39691
39692         [BZ #13439]
39693         * iconv/gconv.h: Define __GCONV_SWAP.
39694         * iconvdata/unicode.c: The swap bit must be stored in __flags.
39695         * iconvdata/utf-16.c: Likewise.
39696         * iconvdata/utf-32.c: Likewise.
39697
39698 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
39699
39700         [BZ #13524]
39701         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
39702         numerator after shifting it by one limb.
39703
39704 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
39705
39706         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
39707         under [__USE_EXTERN_INLINES].
39708
39709 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
39710
39711         [BZ #13446]
39712         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
39713
39714 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39715
39716         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
39717         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
39718         optimized code.
39719         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
39720         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
39721         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
39722         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
39723         for strncasecmp/strncasecmp_l compilation.
39724         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
39725         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
39726
39727 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
39728
39729         [BZ #13484]
39730         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
39731         of __asm__.
39732
39733 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
39734
39735         [BZ #13506]
39736         * time/tzfile.c (__tzfile_read): Check values from file header.
39737
39738 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
39739
39740         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
39741         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
39742         * powerpc/powerpc32/dl-start.S: Likewise.
39743         * powerpc/powerpc32/elf/start.S: Likewise.
39744         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
39745         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
39746         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
39747         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
39748         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
39749         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
39750         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
39751         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
39752         * powerpc/powerpc32/fpu/s_round.S: Likewise.
39753         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
39754         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
39755         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
39756         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
39757         * powerpc/powerpc32/memset.S: Likewise.
39758         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
39759         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
39760         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
39761         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
39762         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
39763         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
39764         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
39765         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
39766         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
39767         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
39768         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
39769         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39770         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39771
39772 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39773
39774         * math/libm-test.inc: Added more nearbyint tests.
39775         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
39776         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
39777         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
39778         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
39779
39780 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
39781
39782         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
39783         FD_CLOEXEC.
39784
39785 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39786
39787         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
39788         Add wcscpy-ssse3 wcscpy-c.
39789         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
39790         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
39791         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
39792         * sysdeps/x86_64/wcschr.S: New file.
39793         * sysdeps/x86_64/wcsrchr.S: New file.
39794         * string/test-strcmp.c: Remove checking of wcscmp function for
39795         wrong alignments.
39796         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
39797         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
39798         wcsrchr-sse2 wcsrchr-c.
39799         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
39800         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
39801         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
39802         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
39803         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
39804         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
39805         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
39806         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
39807         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
39808         * wcsmbc/wcschr.c (WCSCHR): New macro.
39809
39810 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39811
39812         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
39813         * wcsmbs/test-wcsrchr.c: New file.
39814         * string/test-strrchr.c: Add wcsrchr support.
39815         (WIDE): New macro.
39816         * wcsmbs/test-wcscpy.c: New file.
39817         * string/test-strcpy.c: Add wcscpy support.
39818         (WIDE): New macro.
39819
39820 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
39821
39822         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
39823         the inner loop.
39824
39825 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
39826
39827         [BZ #13472]
39828         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
39829
39830 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
39831
39832         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
39833         Minor optimizations.
39834
39835         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
39836         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
39837         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
39838
39839 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
39840
39841         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
39842         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
39843         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
39844         for gcc to avoid warnings.
39845         * inet/Makefile (tests): Add tst-checks.
39846         * inet/tst-checks.c: New file.
39847
39848         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
39849         warning.
39850
39851         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
39852         __wmemcmp_sse2.
39853
39854         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
39855         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
39856
39857         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
39858
39859 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
39860
39861         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
39862         problem.
39863
39864         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
39865
39866 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
39867
39868         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
39869         conditional on GCC version.
39870         (__arch_compare_and_exchange_val_8_acq)
39871         (__arch_compare_and_exchange_val_16_acq)
39872         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
39873         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
39874         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
39875
39876 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
39877
39878         * sysdeps/sh/backtrace.c: New file.
39879
39880 2011-12-02  Andreas Schwab  <schwab@redhat.com>
39881
39882         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
39883         parenthesis.
39884
39885 2011-12-01  Andreas Schwab  <schwab@redhat.com>
39886
39887         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
39888         falling back to utime.
39889
39890 2011-11-30  Andreas Schwab  <schwab@redhat.com>
39891
39892         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
39893         expectations for float.
39894
39895 2011-11-29  Andreas Schwab  <schwab@redhat.com>
39896
39897         * locale/weight.h (findidx): Add parameter len.
39898         * locale/weightwc.h (findidx): Likewise.
39899         * posix/fnmatch_loop.c (FCT): Adjust caller.
39900         * posix/regcomp.c (build_equiv_class): Likewise.
39901         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
39902         * posix/regexec.c (check_node_accept_bytes): Likewise.
39903         * string/strcoll_l.c (STRCOLL): Likewise.
39904         * string/strxfrm_l.c (STRXFRM): Likewise.
39905
39906 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
39907
39908         * Makefile.in: Remove CVSOPT handling.
39909         * configure.in: Remove use of AC_REVISION.
39910         * iconvdata/Makefile (distribute): No need to filter out CVS.
39911         * scripts/list-sources.sh: Remove CVS, subversion and monotone
39912         handling.
39913
39914 2011-11-16  Andreas Schwab  <schwab@redhat.com>
39915
39916         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
39917         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
39918         [USE_AS_STRNCASECMP_L]: Likewise.
39919         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
39920         NO_TLS_DIRECT_SEG_REFS.
39921         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
39922         Fix argument offsets for non-PIC.
39923         [USE_AS_STRNCASECMP_L]: Likewise.
39924         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
39925         NO_TLS_DIRECT_SEG_REFS.
39926
39927 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
39928
39929         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
39930         O_CLOEXEC.
39931         * locale/loadlocale.c (_nl_load_locale): Likewise.
39932
39933 2011-11-15  Andreas Schwab  <schwab@redhat.com>
39934
39935         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
39936         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
39937         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
39938         (SYSCALL_GETTIME): Set errno on error.
39939
39940         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
39941         count references to noai6ai_cached.
39942
39943 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
39944
39945         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
39946
39947         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
39948         FD_CLOEXEC for /proc/self/maps.
39949
39950         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
39951         FD_CLOEXEC for /proc/meminfo.
39952
39953         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
39954         gai.conf.
39955
39956         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
39957         FD_CLOEXEC for given file.
39958
39959         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
39960
39961         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
39962         FD_CLOEXEC for /etc/hosts.
39963         (_gethtent): Likewise.
39964
39965         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
39966
39967         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
39968         cancellation and set FD_CLOEXEC for /etc/netgroup.
39969
39970         * nss/nss_files/files-key.c (search): Don't allow cancellation when
39971         reading /etc/publickey.
39972
39973         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
39974         allow cancellation when reading /etc/group.
39975
39976         * nss/nss_files/files-alias.c (internal_setent): Don't allow
39977         cancellation.
39978         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
39979
39980         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
39981         when using data file.
39982
39983         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
39984
39985         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
39986         (write_nis_obj): Use "c" and "e" in fopen.
39987
39988         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
39989
39990         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
39991
39992         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
39993
39994         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
39995
39996         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
39997         locale.alias.
39998
39999         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40000
40001         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40002
40003         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40004
40005         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40006         file parsing and set FD_CLOEXEC.
40007
40008 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40009
40010         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40011
40012 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40013
40014         * malloc/arena.c (arena_get2): Don't call reused_arena when
40015         _int_new_arena failed.
40016
40017 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40018
40019         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40020         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40021         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40022         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40023         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40024         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40025         to compile strcasecmp and strncasecmp.
40026         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40027         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40028
40029         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40030
40031 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40032
40033         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40034         locale-defines.sym to gen-as-const-headers.
40035         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40036         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40037         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40038         to compile strcasecmp and strncasecmp.
40039         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40040         strcasecmp_l and strncasecmp_l.
40041         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40042         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40043         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40044         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40045         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40046         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40047         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40048         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40049         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40050         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40051         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40052
40053 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40054
40055         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40056         result of SYSDEP_GETTIME_CPU to retval.
40057         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40058         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40059
40060         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40061         variable.
40062
40063         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40064         mantissa words.
40065         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40066
40067         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40068         from unused variable.
40069
40070         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40071         DWARF definitions.
40072         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40073         for assembling.
40074
40075         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40076         over namespaces.
40077
40078         * sunrpc/rpc_prot.c (rejected): Fix case value.
40079
40080         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40081         unsigned long long int to avoid warnings in shift.
40082
40083         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40084         of use of trans.
40085         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40086         variable tmp.
40087
40088         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40089         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40090         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40091
40092         * nis/nis_table.c (nis_list): Use variable of correct type for
40093         result of __follow_path call.
40094
40095 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40096
40097         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
40098         of math functions ceil, trunc, floor, round, and sqrt, when
40099         avaliable on the platform.
40100         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
40101         name clash.
40102         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
40103         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
40104         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
40105
40106 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
40107
40108         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
40109         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
40110
40111 2011-11-11  Roland McGrath  <roland@hack.frob.com>
40112
40113         * include/unistd.h: Fix __readlink return type.
40114         Reported by Chris Metcalf <cmetcalf@tilera.com>.
40115
40116 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
40117
40118         * stdlib/ucontext.h: Undo last change for makecontext.
40119
40120 2011-11-11  Andreas Schwab  <schwab@redhat.com>
40121
40122         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
40123
40124         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
40125         * setjmp/setjmp.h: Mark functions as non-leaf.
40126         * setjmp/bits/setjmp2.h: Likewise.
40127         * stdlib/ucontext.h: Likewise.
40128
40129 2011-11-10  Andreas Schwab  <schwab@redhat.com>
40130
40131         * malloc/arena.c (_int_new_arena): Don't increment narenas.
40132         (reused_arena): Don't check arena limit.
40133         (arena_get2): Atomically check arena limit.
40134
40135 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
40136
40137         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
40138         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
40139
40140         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
40141         instructions.
40142
40143 2011-11-07  Andreas Schwab  <schwab@redhat.com>
40144
40145         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
40146         handler when locking.
40147
40148         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40149         Fix size of allocated buffer.
40150
40151 2011-11-04  Andreas Schwab  <schwab@redhat.com>
40152
40153         [BZ #10103]
40154         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
40155         declarations for long double functions.
40156         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
40157
40158         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
40159
40160 2011-11-03  Andreas Schwab  <schwab@redhat.com>
40161
40162         * nscd/nscd.c (main): Don't start AVC thread until credentials are
40163         installed.
40164
40165         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
40166         is disabled.
40167
40168 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40169
40170         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
40171
40172 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
40173
40174         * include/alloca.h (stackinfo_alloca_round): Define.
40175         (extend_alloca): Use it.
40176         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
40177         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
40178         here.
40179
40180         * scripts/check-local-headers.sh: Ignore libaudit.h.
40181
40182         * nscd/Makefile (extra-objs): Make recursively expanded.
40183
40184 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
40185
40186         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
40187         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
40188
40189         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
40190         * posix/tst-rfc3484-2.c: Likewise.
40191         * posix/tst-rfc3484-3.c: Likewise.
40192
40193         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
40194         process_vm_writev.
40195         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
40196         process_vm_writev.
40197         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
40198         process_vm_writev from libc using GLIBC_2.15 version.
40199
40200         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
40201
40202 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
40203
40204         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
40205         stack usage.
40206
40207 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
40208
40209         [BZ #13367]
40210         * nss/getent.c (initgroups_keys): Show error message in case no group
40211         names are given.
40212
40213         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
40214         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
40215         __bump_nl_timestamp.
40216         * nscd/connections (nscd_init): When host database is served open
40217         netlink socket and request notification about configuration changes.
40218         (main_loop_poll): Track netlink file descriptor and bump timestamp
40219         in case data becomes available.
40220         (main_loop_epoll): Likewise.
40221         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
40222         (database_pers_head): Add extra_data fileds.
40223         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
40224         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
40225         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
40226         Adjust caller.
40227         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
40228         in6ai data, call __free_in6ai.
40229         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
40230         Add -DHAVE_NETLINK.
40231         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
40232         interface information.  Reuse previous data if netlink timestamp
40233         is not changed.
40234         (__bump_nl_timestamp): New function.
40235         (__free_in6ai): New function.
40236
40237 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
40238
40239         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
40240         close_not_cancel_no_status here.
40241         (__check_pf): Reorganize code a bit to not call close twice if OOM.
40242
40243 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40244
40245         [BZ #13276]
40246         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
40247         return value.
40248
40249         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
40250         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
40251         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
40252
40253 2011-07-03  Andreas Jaeger  <aj@suse.de>
40254
40255         [BZ #10709]
40256         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
40257         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
40258         * math/libm-test.inc (sin_test): Add test case.
40259
40260 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40261
40262         [BZ #13337]
40263         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
40264         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40265
40266         * elf/chroot_canon.c (chroot_canon): Cleanups.
40267
40268         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
40269
40270         [BZ #13335]
40271         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
40272         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40273
40274         * string/test-strchr.c: Make usable for strchrnul testing.
40275         * string/test-strchrnul.c: New file.
40276         * string/Makefile (strop-tests): Add strchrnul.
40277
40278         * po/it.po: Update from translation team.
40279         * po/es.po: Likewise.
40280
40281 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
40282
40283         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
40284         the three constants needed as parameters.  Drop the others.
40285         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
40286         __m128i_strloadu_tolower.
40287         Create and initialize variable zero and use it in all the places
40288         where _mm_setzero_si128 was used.
40289
40290         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
40291         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
40292         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
40293         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
40294         anymore.
40295         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
40296         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
40297         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
40298         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
40299         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
40300         __mpranred, __mptan.
40301         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
40302         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
40303         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
40304         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
40305         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
40306         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
40307         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
40308         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
40309         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
40310
40311 2011-10-28  Andreas Schwab  <schwab@redhat.com>
40312
40313         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
40314         redefine if SHARED.
40315         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
40316
40317         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
40318         wide char related routines to wcsmbs subdir.
40319
40320 2011-10-27  Andreas Schwab  <schwab@redhat.com>
40321
40322         [BZ #13344]
40323         * misc/sys/cdefs.h (__THROWNL): Define.
40324         * posix/unistd.h: Use __THREADNL instead of __THREAD
40325         for memory synchronization functions.
40326
40327 2011-10-26  Roland McGrath  <roland@hack.frob.com>
40328
40329         [BZ #13349]
40330         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
40331         doesn't exist.
40332         * manual/stdio.texi (Obstack Streams): Node removed.
40333
40334 2011-10-26  Andreas Schwab  <schwab@redhat.com>
40335
40336         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
40337         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40338         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40339
40340         * math/math_private.h (math_force_eval): Allow non-addressable
40341         arguments.
40342         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
40343
40344 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40345
40346         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
40347         file is not needed.
40348
40349         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
40350         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
40351         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40352         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40353         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40354         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40355         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40356         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
40357         Add AVX variants.
40358         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
40359         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
40360         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
40361         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
40362         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
40363         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
40364         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
40365         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
40366         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
40367         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
40368         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
40369         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
40370         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
40371         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
40372         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
40373         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
40374         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
40375         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
40376         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
40377
40378         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
40379         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
40380
40381         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
40382         place.  Use VEX encoding when compiling for AVX.
40383
40384 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40385
40386         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
40387         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
40388
40389         * string/test-strchr.c (do_test): Don't generate NUL bytes.
40390
40391 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40392
40393         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
40394         useless if() expression.
40395         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
40396         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
40397         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
40398         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40399         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
40400         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40401         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
40402         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
40403         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
40404         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
40405         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
40406         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
40407         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
40408         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
40409         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
40410         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40411         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
40412         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
40413         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
40414
40415         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
40416
40417 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40418
40419         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
40420         condition.
40421         * elf/dl-fini.c (_dl_sort_fini): Likewise.
40422
40423 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40424
40425         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
40426         .text section.  Avoid duplicate constants.
40427         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
40428         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40429         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
40430         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40431         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40432         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40433         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40434         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40435         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
40436         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
40437         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
40438         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
40439         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
40440         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
40441         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
40442         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
40443         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
40444         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
40445         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
40446         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40447         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
40448         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
40449         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
40450         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
40451         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
40452         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
40453         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
40454         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
40455         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
40456         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
40457         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
40458         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
40459         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
40460         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
40461         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
40462         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
40463         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
40464         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
40465         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
40466         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
40467         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
40468         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
40469         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
40470         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
40471         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
40472
40473 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
40474
40475         * sysdeps/x86_64/dla.h: Move to ...
40476         * sysdeps/x86_64/fpu/dla.h: ...here.
40477         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
40478         situations.  Use __builtin_fma only for gcc 4.6 and up.
40479
40480         * config.make.in: Add have-mfma4 entry.
40481         * configure.in: Substitute libc_cv_cc_fma4.
40482         * math/Makefile (dbl-only-routines): Add sincostab.
40483         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
40484         Use __sincostab not sincos.
40485         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
40486         name is a macro.
40487         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40488         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40489         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40490         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
40491         using __copysign.
40492         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
40493         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
40494         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
40495         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
40496         and __inv.
40497         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
40498         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
40499         __copysign.
40500         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
40501         define aliases when function name is a macro.
40502         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
40503         sysdeps/ieee754/dbl-64/sincos.tbl.
40504         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
40505         fma4-enabled routines.
40506         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
40507         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
40508         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
40509         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
40510         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
40511         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
40512         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
40513         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
40514         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
40515         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
40516         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
40517         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
40518         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
40519         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
40520         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
40521         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
40522         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
40523         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
40524         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
40525         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
40526         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
40527         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
40528         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
40529         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
40530         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
40531         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
40532         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
40533         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
40534         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
40535         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
40536
40537         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
40538         rename.
40539         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40540         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40541         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40542         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40543         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40544         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40545         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40546         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40547
40548 2011-10-24  Andreas Schwab  <schwab@redhat.com>
40549
40550         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
40551
40552 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40553
40554         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
40555
40556         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
40557         prediction.
40558         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
40559
40560         * string/strnlen.c: Don't define STRNLEN, reverse logic.
40561         Remove unused variable magic_bits.
40562         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
40563
40564         * string/strnlen.c: Define and use STRNLEN macro.
40565         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
40566         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
40567         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
40568         * wcsmbs/wcslen.c: Define and use WCSLEN.
40569         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
40570         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
40571         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
40572         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
40573         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
40574         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
40575         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
40576
40577 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40578
40579         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40580         strnlen-sse2-no-bsf.
40581         Rename strlen-no-bsf to strlen-sse2-no-bsf.
40582         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
40583         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
40584         Add strnlen support.
40585         (USE_AS_STRNLEN): New macro.
40586         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
40587         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
40588         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
40589         * sysdeps/x86_64/wcslen.S: New file.
40590
40591 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
40592
40593         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
40594         XMM-moves are used for copying on small sizes.
40595
40596 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40597
40598         * wcsmbs/Makefile (strop-tests): Add wcschr.
40599         * wcsmbs/test-wcschr.c: New file.
40600         * string/test-strchr.c: Update.
40601         Add wcschr support.
40602         (WIDE): New macro.
40603
40604 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40605
40606         * wcsmbs/Makefile (strop-tests): Add wcslen.
40607         * wcsmbs/test-wcslen.c: New file.
40608         * string/test-strlen.c: Update.
40609         Add wcslen support.
40610         (WIDE): New macro.
40611
40612 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40613
40614         * po/it.po: Update from translation team.
40615
40616 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40617
40618         * sysdeps/x86_64/wcscmp.S: Update.
40619         Fix wrong comparison semantics.
40620         wcscmp shall use signed comparison not unsigned.
40621         Don't use substraction to avoid overflow bug.
40622         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
40623         * wcsmbc/wcscmp.c: Likewise.
40624         * string/test-strcmp.c: Likewise.
40625         Add new tests to check cases with negative values.
40626
40627 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40628
40629         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
40630         * sysdeps/x86_64/dla.h: ...here.  New file.
40631         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
40632         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40633         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40634         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40635         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40636         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
40637         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40638         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40639         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40640
40641 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
40642
40643         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
40644         __ynl_finite aliases.
40645
40646 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
40647
40648         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40649
40650         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
40651         define DLA_FMA.
40652         [DLA_FMA] (EMULV): Use DLA_FMA.
40653         [DLA_FMA] (MUL12): Use EMULV.
40654         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
40655         that are not needed.
40656         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40657         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40658         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40659         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40660         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40661         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40662         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40663
40664 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
40665
40666         * math/s_nan.c: Undef __nan.
40667         * math/s_nanf.c: Undef __nanf.
40668         * math/s_nanl.c: Undef __nanl.
40669         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
40670         "math_private.h".
40671
40672 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
40673
40674         * math/s_catan.c: Add branch predictions.
40675         * math/s_catanf.c: Likewise.
40676         * math/s_catanh.c: Likewise.
40677         * math/s_catanhf.c: Likewise.
40678         * math/s_catanhl.c: Likewise.
40679         * math/s_catanl.c: Likewise.
40680         * math/s_cexp.c: Likewise.
40681         * math/s_cexpf.c: Likewise.
40682         * math/s_cexpl.c: Likewise.
40683         * math/s_clog.c: Likewise.
40684         * math/s_clog10.c: Likewise.
40685         * math/s_clog10f.c: Likewise.
40686         * math/s_clog10l.c: Likewise.
40687         * math/s_clogf.c: Likewise.
40688         * math/s_clogl.c: Likewise.
40689         * math/s_csqrt.c: Likewise.
40690         * math/s_csqrtf.c: Likewise.
40691         * math/s_csqrtl.c: Likewise.
40692         * math/s_ctanf.c: Likewise.
40693         * math/s_ctanh.c: Likewise.
40694         * math/s_ctanhf.c: Likewise.
40695         * math/s_ctanhl.c: Likewise.
40696         * math/s_ctanl.c: Likewise.
40697
40698         * math/math_private.h: Define __nan, __nanf, __nanl.
40699         * math/s_cacosh.c: Include <math_private.h>.
40700         * math/s_cacoshl.c: Likewise.
40701         * math/s_casinh.c: Likewise.
40702         * math/s_casinhf.c: Likewise.
40703         * math/s_casinhl.c: Likewise.
40704         * math/s_ccos.c: Rely entire on ccosh.
40705         * math/s_ccosf.c: Rely entire on ccoshf.
40706         * math/s_ccosl.c: Rely entirely on ccoshl.
40707         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
40708         Remove tests for FE_INVALID.
40709         * math/s_ccoshf.c: Likewise.
40710         * math/s_ccoshl.c: Likewise.
40711         * math/s_csin.c: Likewise.
40712         * math/s_csinf.c: Likewise.
40713         * math/s_csinh.c Likewise.
40714         * math/s_csinhf.c: Likewise.
40715         * math/s_csinhl.c: Likewise.
40716         * math/s_csinl.c: Likewise.
40717         * math/s_ctan.c: Likewise.
40718         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
40719         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
40720         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
40721
40722 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
40723
40724         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
40725         compilation problems.
40726
40727         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
40728         __builtin_expect.
40729
40730 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
40731
40732         * sysdeps/i386/configure.in: Test for -mfma4 option.
40733         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
40734         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
40735         COMMON_CPUID_INDEX_80000001.
40736         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
40737         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
40738         use it if FMA3 is not supported.
40739         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
40740
40741         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
40742         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
40743
40744 2011-10-20  Andreas Schwab  <schwab@redhat.com>
40745
40746         [BZ #12892]
40747         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
40748         it would create a cycle with a link time dependency.
40749
40750 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
40751
40752         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
40753         instruction.
40754         * string/Makefile (strop-tests): Add rawmemchr.
40755         * string/test-rawmemchr.c: New file.
40756
40757         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
40758         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
40759         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
40760         when compiling str{,n}casecmp and when AVX is available.  Hook up
40761         new optimized code in initializers.
40762
40763 2011-10-19  Andreas Schwab  <schwab@redhat.com>
40764
40765         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
40766         __feraiseexcept instead of feraiseexcept.
40767
40768 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
40769
40770         * math/math_private.h: Define defaults for libc_fetestexcept and
40771         libc_feupdateenv.
40772         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
40773         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
40774         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
40775         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
40776         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
40777         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
40778         libc_fetestexcept and libc_feupdateenv.
40779
40780         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
40781         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
40782         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
40783         * sysdeps/x86_64/fpu/math_private.h: Define special version of
40784         libc_feholdexcept_setround.
40785
40786         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
40787         Add s_nearbyint-c and s_nearbyintf-c.
40788         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
40789         nearbyintf inlines.
40790         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
40791         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
40792         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
40793         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
40794
40795         * math/math_private.h: Define defaults for libc_fegetround,
40796         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
40797         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
40798         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
40799         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
40800         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
40801         standard functions.
40802         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
40803         Remove comments and hacks for old compiler versions.
40804         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
40805         libc_fegetround, libc_fesetround, libc_feholdexcept, and
40806         libc_feholdexceptl.
40807
40808 2011-10-18  Andreas Schwab  <schwab@redhat.com>
40809
40810         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
40811         (__feraiseexcept_renamed): Add __NTH.
40812         (feraiseexcept): Add __NTH.  Rename local variables to fix
40813         namespace violations.
40814
40815 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
40816
40817         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
40818
40819         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
40820
40821         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
40822         recently added interfaces.
40823         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
40824
40825         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
40826         about macro parameter expansion.
40827
40828         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
40829         __NO_MATH_INLINES is defined.  Cleanups.
40830
40831         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
40832         and __floorf is target has SSE4.1.
40833         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
40834         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
40835         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
40836         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
40837
40838         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
40839         name.
40840         (floorf): Likewise.
40841
40842         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
40843
40844 2011-10-17  Andreas Schwab  <schwab@redhat.com>
40845
40846         * misc/sys/cdefs.h: Fix last change.
40847
40848         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
40849         database lookup.
40850
40851 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
40852
40853         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
40854
40855         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
40856         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40857         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
40858         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
40859         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
40860         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
40861         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
40862         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
40863         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
40864         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
40865         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
40866         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
40867         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
40868         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
40869         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
40870         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
40871         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
40872         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
40873         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
40874         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
40875         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
40876         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
40877
40878         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
40879         ceil, ceilf, floor, floorf.
40880
40881         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
40882         Perform IRELATIVE relocations last.
40883
40884         * elf/do-rel.h: Add another parameter nrelative, replacing the
40885         local variable with the same name.  Change name of the function
40886         to end in Rel or Rela (uppercase).
40887         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
40888         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
40889         elf_dynamic_do_##reloc function.
40890
40891 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
40892
40893         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
40894         is sufficient, at least on modern CPUs.
40895
40896         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
40897
40898         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
40899         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
40900
40901         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
40902         __expl_finite.
40903         * math/bits/math-finite.h: Add entries for exp.
40904         * math/e_expl.c: Add __*_finite alias.
40905         * sysdeps/i386/fpu/e_exp.S: Likewise.
40906         * sysdeps/i386/fpu/e_expf.S: Likewise.
40907         * sysdeps/i386/fpu/e_expl.c: Likewise.
40908         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40909         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
40910         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
40911         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
40912         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
40913         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
40914         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
40915
40916         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
40917         is sufficient, at least on modern CPUs.
40918
40919         * ctype/ctype-info.c (__ctype_init): Define.
40920         * include/ctype.h (__ctype_init): Declare.
40921         (__ctype_b_loc): The variable is always initialized.
40922         (__ctype_toupper_loc): Likewise.
40923         (__ctype_tolower_loc): Likewise.
40924         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
40925         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
40926
40927 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
40928
40929         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
40930
40931         * configure.in: Also look in $cxxmachine/include for C++ system
40932         headers.
40933
40934 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40935
40936         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
40937         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
40938         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
40939         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
40940         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
40941         (USE_AS_WMEMCMP): New macro.
40942         Fixing indents.
40943         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
40944         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
40945         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
40946         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
40947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
40948         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
40949         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
40950         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
40951         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
40952         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
40953         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
40954         (USE_AS_WMEMCMP): New macro.
40955         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
40956         * sysdeps/string/test-memcmp.c: Update.
40957         Fix simple_wmemcmp.
40958         Add new tests.
40959         * wcsmbs/wmemcmp.c: Update.
40960         (WMEMCMP): New macro.
40961         Fix overflow bug.
40962
40963 2011-10-12  Andreas Jaeger  <aj@suse.de>
40964
40965         [BZ #13268]
40966         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
40967
40968 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
40969
40970         * libio/iofwide.c (do_length): Avoid warning.
40971
40972         * ctype/ctype.h (__isctype_f): Add missing __THROW.
40973
40974 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
40975
40976         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
40977
40978         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
40979         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
40980         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
40981         * sysdeps/i386/i686/fpu/e_log.S: New file.
40982         * sysdeps/i386/i686/fpu/e_logf.S: New file.
40983         * sysdeps/i386/i686/fpu/e_logl.S: New file.
40984
40985         * ctype/ctype.h: Add support for inlined isXXX functions when
40986         compiling C++ code.
40987
40988 2011-10-14  Andreas Schwab  <schwab@redhat.com>
40989
40990         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40991
40992         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
40993
40994 2011-10-13  Roland McGrath  <roland@hack.frob.com>
40995
40996         [BZ #13291]
40997         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
40998
40999 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41000
41001         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41002         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41003         feraiseexcept.
41004
41005         * sysdeps/x86_64/memrchr.S: Check for zero size.
41006
41007         * string/stratcliff.c: Add memrchr tests.
41008
41009 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41010
41011         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41012         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41013         rawmemchr-sse2 rawmemchr-sse2-bsf.
41014         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41015         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41016         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41017         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41018         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41019         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41020         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41021         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41022         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41023         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41024         * string/memrchr.c (MEMRCHR): New macro.
41025
41026 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41027
41028         Add integration with gcc's -ffinite-math-only and optimize wrapper
41029         functions in libm.
41030         * Versions.def: Define GLIBC_2.15 version for libm.
41031         * math/Makefile (headers): Add bits/math-finite.h.
41032         * math/bits/math-finite.h: New file.
41033         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41034         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41035         * math/e_acoshl.c: Add __*_finite alias.
41036         * math/e_acosl.c: Likewise.
41037         * math/e_asinl.c: Likewise.
41038         * math/e_atan2l.c: Likewise.
41039         * math/e_atanhl.c: Likewise.
41040         * math/e_coshl.c: Likewise.
41041         * math/e_exp10.c: Likewise.
41042         * math/e_exp10f.c: Likewise.
41043         * math/e_exp10l.c: Likewise.
41044         * math/e_exp2l.c: Likewise.
41045         * math/e_fmodl.c: Likewise.
41046         * math/e_gammal_r.c: Likewise.
41047         * math/e_hypotl.c: Likewise.
41048         * math/e_j0l.c: Likewise.
41049         * math/e_j1l.c: Likewise.
41050         * math/e_jnl.c: Likewise.
41051         * math/e_lgammal_r.c: Likewise.
41052         * math/e_log10l.c: Likewise.
41053         * math/e_log2l.c: Likewise.
41054         * math/e_logl.c: Likewise.
41055         * math/e_powl.c: Likewise.
41056         * math/e_sinhl.c: Likewise.
41057         * math/e_sqrtl.c: Likewise.
41058         * math/e_scalb.c: Completely rewritten and optimized.
41059         * math/e_scalbf.c: Likewise.
41060         * math/e_scalbl.c: Likewise.
41061         * math/w_acos.c: Likewise.
41062         * math/w_acosf.c: Likewise.
41063         * math/w_acosl.c: Likewise.
41064         * math/w_acosh.c: Likewise.
41065         * math/w_acoshf.c: Likewise.
41066         * math/w_acoshl.c: Likewise.
41067         * math/w_asin.c: Likewise.
41068         * math/w_asinf.c: Likewise.
41069         * math/w_asinl.c: Likewise.
41070         * math/w_atan2.c: Likewise.
41071         * math/w_atan2f.c: Likewise.
41072         * math/w_atan2l.c: Likewise.
41073         * math/w_atanh.c: Likewise.
41074         * math/w_atanhf.c: Likewise.
41075         * math/w_atanhl.c: Likewise.
41076         * math/w_exp10.c: Likewise.
41077         * math/w_exp10f.c: Likewise.
41078         * math/w_exp10l.c: Likewise.
41079         * math/w_fmod.c: Likewise.
41080         * math/w_fmodf.c: Likewise.
41081         * math/w_fmodl.c: Likewise.
41082         * math/w_j0.c: Likewise.
41083         * math/w_j0f.c: Likewise.
41084         * math/w_j0l.c: Likewise.
41085         * math/w_j1.c: Likewise.
41086         * math/w_j1f.c: Likewise.
41087         * math/w_j1l.c: Likewise.
41088         * math/w_jn.c: Likewise.
41089         * math/w_jnf.c: Likewise.
41090         * math/w_log.c: Likewise.
41091         * math/w_logf.c: Likewise.
41092         * math/w_logl.c: Likewise.
41093         * math/w_log10.c: Likewise.
41094         * math/w_log10f.c: Likewise.
41095         * math/w_log10l.c: Likewise.
41096         * math/w_log2.c: Likewise.
41097         * math/w_log2f.c: Likewise.
41098         * math/w_log2l.c: Likewise.
41099         * math/w_pow.c: Likewise.
41100         * math/w_powf.c: Likewise.
41101         * math/w_powl.c: Likewise.
41102         * math/w_remainder.c: Likewise.
41103         * math/w_remainderf.c: Likewise.
41104         * math/w_remainderl.c: Likewise.
41105         * math/w_scalb.c: Likewise.
41106         * math/w_scalbf.c: Likewise.
41107         * math/w_scalbl.c: Likewise.
41108         * math/w_sqrt.c: Likewise.
41109         * math/w_sqrtf.c: Likewise.
41110         * math/w_sqrtl.c: Likewise.
41111         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
41112         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
41113         used.
41114         * math/math_private.h: Declare __kernel_standard_f.
41115         * math/w_cosh.c: Remove cruft and optimize a bit.
41116         * math/w_coshf.c: Likewise.
41117         * math/w_coshl.c: Likewise.
41118         * math/w_exp2.c: Likewise.
41119         * math/w_exp2f.c: Likewise.
41120         * math/w_exp2l.c: Likewise.
41121         * math/w_hypot.c: Likewise.
41122         * math/w_hypotf.c: Likewise.
41123         * math/w_hypotl.c: Likewise.
41124         * math/w_lgamma.c: Likewise.
41125         * math/w_lgamma_r.c: Likewise.
41126         * math/w_lgammaf.c: Likewise.
41127         * math/w_lgammaf_r.c: Likewise.
41128         * math/w_lgammal.c: Likewise.
41129         * math/w_lgammal_r.c: Likewise.
41130         * math/w_sinh.c: Likewise.
41131         * math/w_sinhf.c: Likewise.
41132         * math/w_sinhl.c: Likewise.
41133         * math/w_tgamma.c: Likewise.
41134         * math/w_tgammaf.c: Likewise.
41135         * math/w_tgammal.c: Likewise.
41136         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
41137         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41138         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
41139         Minor optimizations.  Pretty printing.  Remove cruft.
41140         * sysdeps/i386/fpu/e_acosf.S: Likewise.
41141         * sysdeps/i386/fpu/e_acosh.S: Likewise.
41142         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
41143         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
41144         * sysdeps/i386/fpu/e_acosl.c: Likewise.
41145         * sysdeps/i386/fpu/e_asin.S: Likewise.
41146         * sysdeps/i386/fpu/e_asinf.S: Likewise.
41147         * sysdeps/i386/fpu/e_atan2.S: Likewise.
41148         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
41149         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
41150         * sysdeps/i386/fpu/e_atanh.S: Likewise.
41151         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
41152         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
41153         * sysdeps/i386/fpu/e_exp10.S: Likewise.
41154         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
41155         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
41156         * sysdeps/i386/fpu/e_exp2.S: Likewise.
41157         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
41158         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
41159         * sysdeps/i386/fpu/e_fmod.S: Likewise.
41160         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
41161         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
41162         * sysdeps/i386/fpu/e_hypot.S: Likewise.
41163         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
41164         * sysdeps/i386/fpu/e_log.S: Likewise.
41165         * sysdeps/i386/fpu/e_log10.S: Likewise.
41166         * sysdeps/i386/fpu/e_log10f.S: Likewise.
41167         * sysdeps/i386/fpu/e_log10l.S: Likewise.
41168         * sysdeps/i386/fpu/e_log2.S: Likewise.
41169         * sysdeps/i386/fpu/e_log2f.S: Likewise.
41170         * sysdeps/i386/fpu/e_log2l.S: Likewise.
41171         * sysdeps/i386/fpu/e_logf.S: Likewise.
41172         * sysdeps/i386/fpu/e_logl.S: Likewise.
41173         * sysdeps/i386/fpu/e_pow.S: Likewise.
41174         * sysdeps/i386/fpu/e_powf.S: Likewise.
41175         * sysdeps/i386/fpu/e_powl.S: Likewise.
41176         * sysdeps/i386/fpu/e_remainder.S: Likewise.
41177         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
41178         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
41179         * sysdeps/i386/fpu/e_scalb.S: Likewise.
41180         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
41181         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
41182         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
41183         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
41184         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
41185         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
41186         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41187         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41188         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
41189         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41190         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
41191         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
41192         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
41193         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41194         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
41195         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
41196         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
41197         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41198         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
41199         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
41200         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41201         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
41202         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
41203         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41204         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41205         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
41206         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
41207         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
41208         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
41209         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
41210         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
41211         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41212         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
41213         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
41214         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
41215         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41216         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
41217         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41218         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
41219         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
41220         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
41221         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
41222         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
41223         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
41224         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
41225         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
41226         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
41227         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
41228         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
41229         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
41230         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
41231         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
41232         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
41233         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
41234         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
41235         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
41236         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
41237         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
41238         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41239         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
41240         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
41241         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
41242         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
41243         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
41244         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
41245         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
41246         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
41247         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
41248         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
41249         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
41250         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
41251         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
41252         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
41253         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
41254         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
41255         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
41256         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
41257         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
41258         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
41259         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
41260         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
41261         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
41262         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
41263         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
41264         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
41265         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41266         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
41267         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
41268         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
41269         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41270         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
41271         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41272         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
41273         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41274         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
41275         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
41276         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
41277         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
41278         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
41279         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41280         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41281         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41282         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
41283         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
41284         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
41285         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
41286         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
41287         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
41288         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
41289         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
41290         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
41291         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
41292         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
41293         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
41294         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
41295         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
41296         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
41297         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
41298         (__isnanf): Likewise.
41299         (__isinf_ns): Likewise.
41300         (__isinf_nsf): Likewise.
41301         (__finite): Likewise.
41302         (__finitef): Likewise.
41303         (__ieee754_sqrt): Define as macro.
41304         (__ieee754_sqrtf): Define as macro.
41305         (__ieee754_sqrtl): Define as macro.
41306         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
41307         inlined copy.
41308         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
41309         __FINITE_MATH_ONLY__ consistent.
41310         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
41311
41312 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
41313
41314         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
41315         of rawmemchr.
41316
41317         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
41318
41319 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
41320
41321         * po/ja.po: Update from translation team.
41322
41323 2011-10-08  Roland McGrath  <roland@hack.frob.com>
41324
41325         * locale/programs/locarchive.c (prepare_address_space): New function.
41326         (create_archive, enlarge_archive, open_archive): Use it.
41327
41328         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
41329         inside [SHARED], where it is used.
41330
41331         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
41332
41333         * nss/getent.c (netgroup_keys): Remove unused variable.
41334         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
41335
41336 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
41337
41338         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
41339         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
41340         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
41341         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
41342         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
41343         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
41344         * math/Makefile (libm-calls): Add s_isinf_ns.
41345         * math/divtc3.c: Use __isinf_nsl instead of isinf.
41346         * math/multc3.c: Likewise.
41347         * math/s_casin.c: Likewise.
41348         * math/s_casinf.c: Likewise.
41349         * math/s_casinl.c: Likewise.
41350         * math/s_ccos.c: Likewise.
41351         * math/s_ccosf.c: Likewise.
41352         * math/s_ccosl.c: Likewise.
41353         * math/s_ctan.c: Likewise.
41354         * math/s_ctanf.c: Likewise.
41355         * math/s_ctanh.c: Likewise.
41356         * math/s_ctanhf.c: Likewise.
41357         * math/s_ctanhl.c: Likewise.
41358         * math/s_ctanl.c: Likewise.
41359         * math/w_fmod.c: Likewise.
41360         * math/w_fmodf.c: Likewise.
41361         * math/w_fmodl.c: Likewise.
41362         * math/w_remainder.c: Likewise.
41363         * math/w_remainderf.c: Likewise.
41364         * math/w_remainderl.c: Likewise.
41365         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
41366         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
41367         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
41368         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
41369         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
41370         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
41371         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
41372         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
41373
41374         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
41375         of the number.
41376         * stdio-common/printf_fphex.c: Likewise.
41377         * stdio-common/printf_size.c: Likewise.
41378
41379         * math/e_exp10.c: Include math_private.h using <...> not "...".
41380         * math/e_exp10f.c: Likewise.
41381         * math/e_exp10l.c: Likewise.
41382         * math/e_exp2l.c: Likewise.
41383         * math/e_j0l.c: Likewise.
41384         * math/e_j1l.c: Likewise.
41385         * math/e_jnl.c: Likewise.
41386         * math/e_lgammal_r.c: Likewise.
41387         * math/e_rem_pio2l.c: Likewise.
41388         * math/e_scalb.c: Likewise.
41389         * math/e_scalbf.c: Likewise.
41390         * math/e_scalbl.c: Likewise.
41391         * math/k_cosl.c: Likewise.
41392         * math/k_sinl.c: Likewise.
41393         * math/k_tanl.c: Likewise.
41394         * math/s_cacoshf.c: Likewise.
41395         * math/s_catan.c: Likewise.
41396         * math/s_catanf.c: Likewise.
41397         * math/s_catanh.c: Likewise.
41398         * math/s_catanhf.c: Likewise.
41399         * math/s_catanhl.c: Likewise.
41400         * math/s_catanl.c: Likewise.
41401         * math/s_ccosh.c: Likewise.
41402         * math/s_ccoshf.c: Likewise.
41403         * math/s_ccoshl.c: Likewise.
41404         * math/s_cexp.c: Likewise.
41405         * math/s_cexpf.c: Likewise.
41406         * math/s_cexpl.c: Likewise.
41407         * math/s_clog.c: Likewise.
41408         * math/s_clog10.c: Likewise.
41409         * math/s_clog10f.c: Likewise.
41410         * math/s_clog10l.c: Likewise.
41411         * math/s_clogf.c: Likewise.
41412         * math/s_clogl.c: Likewise.
41413         * math/s_csin.c: Likewise.
41414         * math/s_csinf.c: Likewise.
41415         * math/s_csinh.c: Likewise.
41416         * math/s_csinhf.c: Likewise.
41417         * math/s_csinhl.c: Likewise.
41418         * math/s_csinl.c: Likewise.
41419         * math/s_csqrt.c: Likewise.
41420         * math/s_csqrtf.c: Likewise.
41421         * math/s_csqrtl.c: Likewise.
41422         * math/s_ctan.c: Likewise.
41423         * math/s_ctanf.c: Likewise.
41424         * math/s_ctanh.c: Likewise.
41425         * math/s_ctanhf.c: Likewise.
41426         * math/s_ctanhl.c: Likewise.
41427         * math/s_ctanl.c: Likewise.
41428         * math/s_ldexp.c: Likewise.
41429         * math/s_ldexpf.c: Likewise.
41430         * math/s_ldexpl.c: Likewise.
41431         * math/s_significand.c: Likewise.
41432         * math/s_significandf.c: Likewise.
41433         * math/s_significandl.c: Likewise.
41434         * math/w_acos.c: Likewise.
41435         * math/w_acosf.c: Likewise.
41436         * math/w_acosh.c: Likewise.
41437         * math/w_acoshf.c: Likewise.
41438         * math/w_acoshl.c: Likewise.
41439         * math/w_acosl.c: Likewise.
41440         * math/w_asin.c: Likewise.
41441         * math/w_asinf.c: Likewise.
41442         * math/w_asinl.c: Likewise.
41443         * math/w_atan2.c: Likewise.
41444         * math/w_atan2f.c: Likewise.
41445         * math/w_atan2l.c: Likewise.
41446         * math/w_atanh.c: Likewise.
41447         * math/w_atanhf.c: Likewise.
41448         * math/w_atanhl.c: Likewise.
41449         * math/w_cosh.c: Likewise.
41450         * math/w_coshf.c: Likewise.
41451         * math/w_coshl.c: Likewise.
41452         * math/w_dremf.c: Likewise.
41453         * math/w_exp10.c: Likewise.
41454         * math/w_exp10f.c: Likewise.
41455         * math/w_exp10l.c: Likewise.
41456         * math/w_exp2.c: Likewise.
41457         * math/w_exp2f.c: Likewise.
41458         * math/w_fmod.c: Likewise.
41459         * math/w_fmodf.c: Likewise.
41460         * math/w_fmodl.c: Likewise.
41461         * math/w_hypot.c: Likewise.
41462         * math/w_hypotf.c: Likewise.
41463         * math/w_hypotl.c: Likewise.
41464         * math/w_j0.c: Likewise.
41465         * math/w_j0f.c: Likewise.
41466         * math/w_j0l.c: Likewise.
41467         * math/w_j1.c: Likewise.
41468         * math/w_j1f.c: Likewise.
41469         * math/w_j1l.c: Likewise.
41470         * math/w_jn.c: Likewise.
41471         * math/w_jnf.c: Likewise.
41472         * math/w_jnl.c: Likewise.
41473         * math/w_lgamma.c: Likewise.
41474         * math/w_lgamma_r.c: Likewise.
41475         * math/w_lgammaf.c: Likewise.
41476         * math/w_lgammaf_r.c: Likewise.
41477         * math/w_lgammal.c: Likewise.
41478         * math/w_lgammal_r.c: Likewise.
41479         * math/w_log.c: Likewise.
41480         * math/w_log10.c: Likewise.
41481         * math/w_log10f.c: Likewise.
41482         * math/w_log10l.c: Likewise.
41483         * math/w_log2.c: Likewise.
41484         * math/w_log2f.c: Likewise.
41485         * math/w_log2l.c: Likewise.
41486         * math/w_logf.c: Likewise.
41487         * math/w_logl.c: Likewise.
41488         * math/w_pow.c: Likewise.
41489         * math/w_powf.c: Likewise.
41490         * math/w_powl.c: Likewise.
41491         * math/w_remainder.c: Likewise.
41492         * math/w_remainderf.c: Likewise.
41493         * math/w_remainderl.c: Likewise.
41494         * math/w_scalb.c: Likewise.
41495         * math/w_scalbf.c: Likewise.
41496         * math/w_scalbl.c: Likewise.
41497         * math/w_sinh.c: Likewise.
41498         * math/w_sinhf.c: Likewise.
41499         * math/w_sinhl.c: Likewise.
41500         * math/w_sqrt.c: Likewise.
41501         * math/w_sqrtf.c: Likewise.
41502         * math/w_sqrtl.c: Likewise.
41503         * math/w_tgamma.c: Likewise.
41504         * math/w_tgammaf.c: Likewise.
41505         * math/w_tgammal.c: Likewise.
41506
41507         * po/ja.po: Update from translation team.
41508
41509 2011-09-29  Andreas Jaeger  <aj@suse.de>
41510
41511         [BZ #13179]
41512         * sunrpc/netname.c (netname2host): Fix logic.
41513
41514         [BZ #6779]
41515         [BZ #6783]
41516         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
41517         correctly.
41518         * math/w_remainder.c (__remainder): Likewise.
41519         * math/w_remainderf.c (__remainderf): Likewise.
41520         * math/libm-test.inc (remainder_test): Add test cases.
41521
41522 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41523
41524         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
41525         sdiv_qrnnd.
41526
41527 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
41528
41529         * string/test-memcmp.c: Avoid unncessary #defines.
41530         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41531
41532 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41533
41534         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
41535         Use new sse2 version for core i3 - i7 as it's faster
41536         than sse42 version.
41537         (bit_Prefer_PMINUB_for_stringop): New.
41538         * sysdeps/x86_64/rawmemchr.S: Update.
41539         Replace with faster SSE2 version.
41540         * sysdeps/x86_64/memrchr.S: New file.
41541         * sysdeps/x86_64/memchr.S: Update.
41542         Replace with faster SSE2 version.
41543
41544 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
41545
41546         * elf/dl-load.c (lose): Add cast to avoid warning.
41547
41548 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
41549
41550         * po/ca.po: Update from translation team.
41551
41552         * inet/getnetgrent_r.c: Hook up nscd.
41553         * nscd/Makefile (routines): Add nscd_netgroup.
41554         (nscd-modules): Add netgroupcache.
41555         (CFLAGS-netgroupcache.c): Define.
41556         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
41557         (cache_search): Add const to second parameter.
41558         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
41559         INNETGR.
41560         (dbs): Add netgrdb entry.
41561         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
41562         (verify_persistent_db): Handle netgrdb.
41563         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
41564         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
41565         GETFDNETGR.
41566         (netgroup_response_header): Define.
41567         (innetgroup_response_header): Define.
41568         (datahead): Add netgroup_response_header and innetgroup_response_header
41569         elements.
41570         * nscd/nscd.conf: Add entries for netgroup cache.
41571         * nscd/nscd.h (dbtype): Add netgrdb.
41572         (_PATH_NSCD_NETGROUP_DB): Define.
41573         (netgroup_iov_disabled): Declare.
41574         (xmalloc, xcalloc, xrealloc): Move declarations here.
41575         (cache_search): Adjust prototype.
41576         Add netgroup-related prototypes.
41577         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
41578         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
41579         (__nscd_innetgr): Declare.
41580         * nscd/selinux.c (perms): Use access_vector_t as element type and
41581         add netgroup-related initializers.
41582         * nscd/netgroupcache.c: New file.
41583         * nscd/nscd_netgroup.c: New file.
41584         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
41585         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
41586         For four parameters use innetgr.
41587         * nss/nss_files/files-init.c: Add definition and callback for netgr.
41588         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
41589         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
41590         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
41591
41592         * nscd/connections.c (register_traced_file): Don't register file
41593         for disabled databases.
41594
41595 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
41596
41597         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
41598
41599         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
41600         from tree and freeing node.
41601
41602 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
41603
41604         * nss/nsswitch.c (__nss_database_lookup): Handle
41605         nss_parse_service_list out of memory case.
41606
41607 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
41608
41609         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
41610         out of memory case.
41611
41612 2011-10-04  Andreas Schwab  <schwab@redhat.com>
41613
41614         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
41615         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
41616         pass it down.
41617         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
41618         elf_machine_rela, elf_machine_lazy_rel.
41619         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
41620         (ELF_DYNAMIC_DO_REL): Likewise.
41621         (ELF_DYNAMIC_DO_RELA): Likewise.
41622         (ELF_DYNAMIC_RELOCATE): Likewise.
41623         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
41624         to ELF_DYNAMIC_DO_REL.
41625         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
41626         (dl_main): In trace mode always set __RTLD_NOIFUNC.
41627         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
41628         elf_machine_rela.
41629         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
41630         skip_ifunc, don't call ifunc function if non-zero.
41631         (elf_machine_rela): Likewise.
41632         (elf_machine_lazy_rel): Likewise.
41633         (elf_machine_lazy_rela): Likewise.
41634         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
41635         (elf_machine_lazy_rel): Likewise.
41636         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
41637         Likewise.
41638         (elf_machine_lazy_rel): Likewise.
41639         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
41640         Likewise.
41641         (elf_machine_lazy_rel): Likewise.
41642         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
41643         (elf_machine_lazy_rel): Likewise.
41644         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
41645         (elf_machine_lazy_rel): Likewise.
41646         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
41647         (elf_machine_lazy_rel): Likewise.
41648         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
41649         (elf_machine_lazy_rel): Likewise.
41650         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
41651         (elf_machine_lazy_rel): Likewise.
41652         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
41653         (elf_machine_lazy_rel): Likewise.
41654
41655 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
41656
41657         * nss/nss_files/files-init.c (_nss_files_init): Use static
41658         initialization for all the *_traced_file variables.
41659
41660 2011-09-28  Andreas Schwab  <schwab@redhat.com>
41661
41662         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41663
41664 2011-09-27  Roland McGrath  <roland@hack.frob.com>
41665
41666         [BZ #13226]
41667         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
41668
41669 2011-09-27  Andreas Schwab  <schwab@redhat.com>
41670
41671         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41672         Reread the line before reparsing it.
41673
41674 2011-09-26  Andreas Schwab  <schwab@redhat.com>
41675
41676         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
41677
41678 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
41679             Maxim Kuvyrkov  <maxim@codesourcery.com>
41680             Joseph Myers  <joseph@codesourcery.com>
41681
41682         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
41683         if needed for __stack_chk_guard.
41684
41685 2011-09-19  Roland McGrath  <roland@hack.frob.com>
41686
41687         * sysdeps/posix/spawni.c (script_execute): Always define it.
41688         It will be optimized away if unused.
41689         (maybe_script_execute): New function.
41690         (__spawni): Call it.
41691
41692         * Makerules: Don't include tls.make.
41693         (config-tls): Always set to thread.
41694         * tls.make.c: File removed.
41695
41696 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
41697
41698         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
41699         * config.make.in (CPPFLAGS-config): New substituted variable.
41700
41701 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
41702
41703         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
41704
41705         [BZ #13192]
41706         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
41707         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
41708
41709 2011-09-15  Roland McGrath  <roland@hack.frob.com>
41710
41711         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
41712         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
41713         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
41714         (CALL_FAIL): Likewise.
41715         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
41716         (CALL_FAIL): Macro removed.
41717         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
41718
41719 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
41720
41721         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
41722         for __FINITE_MATH_ONLY__ == 1.
41723
41724 2011-09-15  Andreas Schwab  <schwab@redhat.com>
41725
41726         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
41727         __ieee754_sqrt instead of sqrt.
41728         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
41729         __ieee754_sqrtf instead of sqrtf.
41730         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
41731         __floorf instead of floorf.
41732         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
41733         __floorf, __truncf instead of floorf, truncf.
41734
41735 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
41736
41737         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
41738
41739         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
41740         __extern_always_inline.
41741         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
41742         32-bit.
41743
41744 2011-09-14  Andreas Schwab  <schwab@redhat.com>
41745
41746         * elf/rtld.c (dl_main): Also relocate in dependency order when
41747         doing symbol dependency testing.
41748
41749 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
41750
41751         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
41752         Always define `refsym'.
41753
41754 2011-09-13  Andreas Schwab  <schwab@redhat.com>
41755
41756         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
41757         (__FD_ELT): Renamed from __FDELT.
41758         * misc/bits/select2.h (__FD_ELT): Likewise.
41759         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
41760         __FD_MASK instead of __FDELT, __FDMASK.
41761         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
41762         Likewise.
41763         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
41764         Likewise.
41765
41766         * elf/Makefile (gen-ldd): Fix pattern.
41767
41768         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
41769         (init_tls): Likewise.
41770
41771 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
41772
41773         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
41774
41775 2011-09-12  Andreas Schwab  <schwab@redhat.com>
41776
41777         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
41778         `struct cmsghdr *' instead of `void *'.
41779         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
41780         Likewise.
41781
41782 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
41783
41784         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
41785         if non-absolute.
41786         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
41787         ldd_rewrite_script.
41788
41789 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
41790
41791         * configure.in: Remove --with-tls option.
41792         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
41793         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
41794         out in case it is missing.
41795         * sysdeps/ia64/elf/configure.in: Likewise.
41796         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
41797         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
41798         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
41799         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
41800         * sysdeps/sh/elf/configure.in: Likewise.
41801         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
41802         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
41803         * sysdeps/x86_64/elf/configure.in: Likewise.
41804         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
41805         * sysdeps/mach/hurd/tls.h: Likewise.
41806
41807         [BZ #13067]
41808         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
41809
41810         [BZ #13090]
41811         * configure.in: Fix use of AC_INIT.
41812
41813         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
41814
41815 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
41816
41817         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
41818         __set_errno.
41819         * malloc/hooks.c: Likewise.
41820
41821         [BZ #11929]
41822         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
41823         variables statically.
41824         (narenas): Initialize.
41825         (list_lock): Initialize.
41826         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
41827         initializtion of main_arena and list_lock.  Small cleanups.
41828         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
41829         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
41830         Add initializers to main_arena and mp_.
41831         (malloc_state): Remove pagesize member.  Change all users to use
41832         GLRO(dl_pagesize).
41833
41834         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
41835         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
41836         is always initialized.
41837
41838         * malloc/malloc.c: Removed unused configurations and dead code.
41839         * malloc/arena.c: Likewise.
41840         * malloc/hooks.c: Likewise.
41841         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
41842
41843         * include/tls.h: Removed.  USE___THREAD must always be defined.
41844         * bits/libc-tsd.h: Don't handle !USE___THREAD.
41845         * elf/dl-libc.c: Likewise.
41846         * elf/dl-tsd.c: Likewise.
41847         * include/errno.h: Likewise.
41848         * include/netdb.h: Likewise.
41849         * include/resolv.h: Likewise.
41850         * inet/herrno-loc.c: Likewise.
41851         * inet/herrno.c: Likewise.
41852         * malloc/arena.c: Likewise.
41853         * malloc/hooks.c: Likewise.
41854         * malloc/malloc.c: Likewise.
41855         * resolv/res-state.c: Likewise.
41856         * resolv/res_libc.c: Likewise.
41857         * sysdeps/i386/dl-machine.h: Likewise.
41858         * sysdeps/ia64/dl-machine.h: Likewise.
41859         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
41860         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
41861         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
41862         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
41863         * sysdeps/sh/dl-machine.h: Likewise.
41864         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
41865         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
41866         * sysdeps/unix/i386/sysdep.S: Likewise.
41867         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
41868         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
41869         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
41870         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
41871         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
41872         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
41873         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
41874         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
41875         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
41876         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
41877         * sysdeps/unix/x86_64/sysdep.S: Likewise.
41878         * sysdeps/x86_64/dl-machine.h: Likewise.
41879         * tls.make.c: Likewise.
41880
41881         * configure.in: Remove --with-__thread option.  Make tests for
41882         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
41883         tls_model attribute fail if no support is available.  Remove
41884         USE_IN_LIBIO.
41885         * Makeconfig: Adjust for dropped configure option.  All features are
41886         now mandatory.
41887         * Makerules: Likewise.
41888         * Versions.def: Likewise.
41889         * argp/argp-fmtstream.c: Likewise.
41890         * argp/argp-fmtstream.h: Likewise.
41891         * argp/argp-help.c: Likewise.
41892         * assert/assert.c: Likewise.
41893         * config.h.in: Likewise.
41894         * config.make.in: Likewise.
41895         * configure: Likewise.
41896         * configure.in: Likewise.
41897         * csu/Versions: Likewise.
41898         * csu/init.c: Likewise.
41899         * elf/tst-audit2.c: Likewise.
41900         * elf/tst-tls10.c: Likewise.
41901         * elf/tst-tls10.h: Likewise.
41902         * elf/tst-tls11.c: Likewise.
41903         * elf/tst-tls12.c: Likewise.
41904         * elf/tst-tls14.c: Likewise.
41905         * elf/tst-tlsmod11.c: Likewise.
41906         * elf/tst-tlsmod12.c: Likewise.
41907         * elf/tst-tlsmod13.c: Likewise.
41908         * elf/tst-tlsmod13a.c: Likewise.
41909         * elf/tst-tlsmod14a.c: Likewise.
41910         * elf/tst-tlsmod15b.c: Likewise.
41911         * elf/tst-tlsmod16a.c: Likewise.
41912         * elf/tst-tlsmod16b.c: Likewise.
41913         * elf/tst-tlsmod7.c: Likewise.
41914         * elf/tst-tlsmod8.c: Likewise.
41915         * elf/tst-tlsmod9.c: Likewise.
41916         * gmon/gmon.c: Likewise.
41917         * grp/fgetgrent_r.c: Likewise.
41918         * grp/putgrent.c: Likewise.
41919         * hurd/fopenport.c: Likewise.
41920         * include/libc-symbols.h: Likewise.
41921         * include/tls.h: Likewise.
41922         * intl/gettextP.h: Likewise.
41923         * intl/loadinfo.h: Likewise.
41924         * locale/global-locale.c: Likewise.
41925         * locale/localeinfo.h: Likewise.
41926         * mach/devstream.c: Likewise.
41927         * malloc/arena.c: Likewise.
41928         * malloc/set-freeres.c: Likewise.
41929         * misc/err.c: Likewise.
41930         * misc/getttyent.c: Likewise.
41931         * misc/mntent_r.c: Likewise.
41932         * posix/getopt.c: Likewise.
41933         * posix/wordexp.c: Likewise.
41934         * pwd/fgetpwent_r.c: Likewise.
41935         * resolv/Versions: Likewise.
41936         * resolv/res_hconf.c: Likewise.
41937         * shadow/fgetspent_r.c: Likewise.
41938         * shadow/putspent.c: Likewise.
41939         * stdio-common/printf_fphex.c: Likewise.
41940         * stdio-common/tmpfile.c: Likewise.
41941         * stdlib/abort.c: Likewise.
41942         * stdlib/fmtmsg.c: Likewise.
41943         * sunrpc/auth_unix.c: Likewise.
41944         * sunrpc/clnt_perr.c: Likewise.
41945         * sunrpc/clnt_tcp.c: Likewise.
41946         * sunrpc/clnt_udp.c: Likewise.
41947         * sunrpc/clnt_unix.c: Likewise.
41948         * sunrpc/openchild.c: Likewise.
41949         * sunrpc/svc_simple.c: Likewise.
41950         * sunrpc/svc_tcp.c: Likewise.
41951         * sunrpc/svc_udp.c: Likewise.
41952         * sunrpc/svc_unix.c: Likewise.
41953         * sunrpc/xdr.c: Likewise.
41954         * sunrpc/xdr_array.c: Likewise.
41955         * sunrpc/xdr_rec.c: Likewise.
41956         * sunrpc/xdr_ref.c: Likewise.
41957         * sunrpc/xdr_stdio.c: Likewise.
41958
41959 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
41960
41961         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41962
41963 2011-07-03  Andreas Jaeger  <aj@suse.de>
41964
41965         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
41966         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
41967         regenerate with gen-libm-tests.pl.
41968
41969 2010-05-12  Petr Baudis  <pasky@suse.cz>
41970
41971         [BZ #11589]
41972         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
41973         around j0() zero points by switching to j1().
41974         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41975         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41976         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
41977         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41978
41979 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
41980
41981         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
41982         instead of 0.
41983         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
41984         instead of 0.
41985         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
41986         Patch in part by Pavel Roskin <proski@gnu.org>.
41987
41988         [BZ #13138]
41989         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
41990         realloc.
41991         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
41992         Free memory block if necessary.
41993
41994         [BZ #12847]
41995         * libio/genops.c (INTDEF): For string streams the _lock pointer can
41996         be NULL.  Don't lock in this case.
41997
41998 2011-09-09  Roland McGrath  <roland@hack.frob.com>
41999
42000         * elf/elf.h (ELFOSABI_GNU): New macro.
42001         (ELFOSABI_LINUX): Define to that.
42002
42003 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42004
42005         * string/strncat.c (strncat): Undef the symbol in case it has been
42006         defined in bits/string.h.
42007
42008 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42009
42010         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42011
42012         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42013         link map.
42014
42015 2011-08-17  Andreas Jaeger  <aj@suse.de>
42016
42017         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42018
42019 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42020             Ian Lance Taylor  <iant@google.com>
42021
42022         * math/libm-test.inc (lround_test): New testcase.
42023         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42024
42025 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42026
42027         * Makefile: Remove support for automatic cvs check-ins.
42028         * Makerules: Likewise.
42029         * config.make.in: Likewise.
42030         * configure.in: Likewise.
42031         * intl/Makefile: Likewise.
42032         * locale/Makefile: Likewise.
42033         * po/Makefile: Likewise.
42034         * posix/Makefile: Likewise.
42035         * sysdeps/gnu/Makefile: Likewise.
42036         * sysdeps/mach/hurd/Makefile: Likewise.
42037         * sysdeps/sparc/sparc32/Makefile: Likewise.
42038
42039         [BZ #13118]
42040         * posix/Makefile (bug-regex32-ENV): Define.
42041         Patch by John Stanley <jpsinthemix@verizon.net>.
42042
42043         * misc/Makefile (headers): Add bits/select2.h.
42044         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42045         * misc/bits/select2.h: New file.
42046         * include/bits/select2.h: New file.
42047         * debug/Makefile (routines): Add fdelt_chk.
42048         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42049         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42050         FD_ISSET.
42051         * debug/fdelt_chk.c: New file.
42052
42053         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42054         * wcsmbs/test-wmemcmp.c: Likewise.
42055         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42056         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42057
42058 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42059
42060         * string/Makefile (strop-tests): Add memcmp.
42061         * string/test-wmemcmp.c: New file.
42062         * string/test-memcmp.c: Add wmemcmp support.
42063
42064 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42065
42066         [BZ #13153]
42067         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42068         2011-07-19 change.
42069
42070         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42071         garbage value in a __mach_port_mod_refs call in the cases of the
42072         task-self and thread-self ports.
42073
42074 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42075
42076         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42077
42078 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42079
42080         * elf/dl-load.c (lose): Check for non-null L.
42081
42082 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42083
42084         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42085
42086         * elf/dl-libc.c (dlerror_run): Pass back error code from
42087         dl_catch_error.
42088
42089         [BZ #13123]
42090         * elf/dl-load.c (lose): Free l_origin if it is valid.
42091
42092         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
42093         names.
42094         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
42095         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42096         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42097         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42098         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
42099         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
42100
42101 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42102
42103         * sysdeps/powerpc/fpu/e_hypot.c: New file.
42104         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
42105         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
42106         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
42107         * sysdeps/powerpc/fpu/k_cosf.c: New file.
42108         * sysdeps/powerpc/fpu/k_sinf.c: New file.
42109         * sysdeps/powerpc/fpu/s_cosf.c: New file.
42110         * sysdeps/powerpc/fpu/s_sinf.c: New file.
42111         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
42112         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
42113
42114 2011-08-15  Alan Modra  <amodra@gmail.com>
42115
42116         [BZ #13092]
42117         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
42118         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
42119         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
42120         ppc_mcount to static-only-routines.
42121         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
42122         __mcount_internal.
42123         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
42124         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
42125
42126 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
42127
42128         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
42129         for finite and infinity parameters.
42130
42131 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
42132
42133         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
42134         and add nop instructions for throughput optimization.
42135         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42136
42137 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
42138
42139         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
42140         aligned copy for power7 with vector-scalar instructions.
42141         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42142
42143 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
42144
42145         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
42146         AVX check.
42147
42148 2011-09-07  Andreas Schwab  <schwab@redhat.com>
42149
42150         [BZ #13144]
42151         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
42152         last change.
42153
42154 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42155
42156         * sysdeps/unix/sysv/linux/x86_64/init-first.c
42157         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
42158         syscall wrapper around clock_gettime in __vdso_clock_gettime.
42159         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
42160         clock_gettime.
42161
42162 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42163
42164         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
42165         Forgot to demangle the pointer.
42166
42167         * sysdeps/i386/sysdep.h: Define atom_text_section.
42168         * sysdeps/x86_64/sysdep.h: Likewise.
42169         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
42170         section with atom_text_section.
42171         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42172         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42173         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
42174         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42175         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
42176
42177         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
42178         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
42179         already be defined.  Change to take two parameters and don't assign
42180         result to variable.  Adjust all users.
42181         Define INTERNAL_GETTIME if not already defined.
42182         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
42183         call.
42184         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
42185         HAVE_CLOCK_GETTIME_VSYSCALL.
42186         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
42187
42188         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
42189         gettimeofday vsyscall, just use time.
42190
42191 2011-09-06  Andreas Schwab  <schwab@redhat.com>
42192
42193         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
42194         <errno.h>.
42195
42196 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42197
42198         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
42199         syscall on x86-64.
42200         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
42201         syscall.
42202         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
42203         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
42204         syscall if possible.
42205
42206 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42207
42208         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
42209         e_ident.  Don't pass to find_mapsXX.
42210         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
42211
42212 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42213
42214         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42215         strchr-sse2-no-bsf strrchr-sse2-no-bsf
42216         * sysdeps/x86_64/multiarch/strchr.S: Update.
42217         Check bit_slow_BSF bit.
42218         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
42219         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
42220         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
42221
42222 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42223
42224         [BZ #13134]
42225         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
42226         before glibc 2.15.
42227         (tryshell): Define.
42228         (__spawni): Change last parameter to be flag.  Test
42229         SPAWN_XFLAGS_USE_PATH flag to use path or not.
42230         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
42231         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
42232         * posix/spawni.c: Likewise.
42233         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
42234         * posix/spawnp.c: Likewise.  Change normal version to use
42235         SPAWN_XFLAGS_USE_PATH.
42236         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
42237         SPAWN_XFLAGS_TRY_SHELL.
42238
42239         [BZ #13150]
42240         * posix/glob.h: Remove gcc 1.x support.
42241
42242         [BZ #13068]
42243         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
42244
42245 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42246
42247         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42248         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
42249         strrchr-sse2-bsf
42250         * sysdeps/i386/i686/multiarch/strchr.S: New file.
42251         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
42252         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
42253         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
42254         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
42255         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
42256
42257 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42258
42259         * sysdeps/x86_64/wcscmp.S: New file.
42260
42261         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
42262         wcscmp-c wcscmp-sse2
42263         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
42264         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
42265         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
42266         * wcsmbs/wcscmp.c: Allow renaming.
42267
42268 2011-09-05  David S. Miller  <davem@davemloft.net>
42269
42270         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
42271         stack slot, rather than the struct return pointer slot.
42272         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
42273         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
42274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
42275         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
42276
42277 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42278
42279         * po/ja.po: Update from translation team.
42280
42281         [BZ #13144]
42282         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
42283         kernel in 64-bit binaries.
42284
42285 2011-09-01  David S. Miller  <davem@davemloft.net>
42286
42287         * elf/elf.h (HWCAP_SPARC_*): Move to..
42288         * sysdeps/sparc/sysdep.h: this new file and add new values.
42289         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
42290         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
42291         _DL_HWCAP_COUNT to 24.
42292         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
42293         entries.
42294         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
42295         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
42296         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
42297         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
42298         instead of magic constants.
42299         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
42300
42301 2011-08-31  David S. Miller  <davem@davemloft.net>
42302
42303         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
42304         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
42305         Reimplement to do errno handling inline.
42306         (SYSCALL_ERROR_HANDLER): New macro.
42307         (__SYSCALL_STRING): Do not do errno handling in asm.
42308         (__CLONE_SYSCALL_STRING): Delete.
42309         (__INTERNAL_SYSCALL_STRING): Delete.
42310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
42311         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
42312         (PSEUDO): Reimplement to do errno handling inline.
42313         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
42314         (SYSCALL_ERROR_HANDLER): New macro.
42315         (__SYSCALL_STRING): Do not do errno handling in asm.
42316         (__CLONE_SYSCALL_STRING): Delete.
42317         (__INTERNAL_SYSCALL_STRING): Delete.
42318         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
42319         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
42320         i386.
42321         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
42322         (inline_syscall*): Add 'err' argument.
42323         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
42324         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
42325         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
42326         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
42327
42328         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
42329         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
42330
42331 2011-08-30  Andreas Schwab  <schwab@redhat.com>
42332
42333         * elf/rtld.c (dl_main): Relocate objects in dependency order.
42334
42335 2011-08-29  Jiri Olsa <jolsa@redhat.com>
42336
42337         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
42338         directive.
42339
42340 2011-08-24  David S. Miller  <davem@davemloft.net>
42341
42342         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
42343
42344 2011-08-24  Andreas Schwab  <schwab@redhat.com>
42345
42346         * elf/Makefile: Add rules to build and run unload8 test.
42347         * elf/unload8.c: New file.
42348         * elf/unload8mod1.c: New file.
42349         * elf/unload8mod1x.c: New file.
42350         * elf/unload8mod2.c: New file.
42351         * elf/unload8mod3.c: New file.
42352
42353         * elf/dl-close.c (_dl_close_worker): Reset private search list if
42354         it wasn't used.
42355
42356 2011-08-23  David S. Miller  <davem@davemloft.net>
42357
42358         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
42359         subtract stack bias.
42360         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
42361         %sp not %fp in calculations.
42362         (_JMPBUF_UNWINDS_ADJ): Likewise.
42363
42364         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
42365         (aio_suspend): Call it to force an exception region around the
42366         AIO_MISC_WAIT() invocation.
42367
42368 2011-08-23  Andreas Schwab  <schwab@redhat.com>
42369
42370         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
42371         backslash.
42372
42373 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
42374
42375         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
42376         protection macro.
42377         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
42378         and <dl-machine.h>.
42379         (Elf64_FuncDesc): Remove.
42380
42381 2011-08-22  David S. Miller  <davem@davemloft.net>
42382
42383         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
42384         sigaltstack check, add missing cfi directives.
42385         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
42386         missing cfi directives, and sigaltstack handling.
42387
42388 2011-08-16  Andreas Schwab  <schwab@redhat.com>
42389
42390         [BZ #11724]
42391         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
42392         object is seen twice.
42393         * elf/dl-fini.c (_dl_sort_fini): Likewise.
42394
42395         * elf/Makefile (distribute): Add tst-initorder2.c.
42396         (tests): Add tst-initorder2.
42397         (modules-names): Add tst-initorder2a tst-initorder2b
42398         tst-initorder2c tst-initorder2d.  Add rules to build them.
42399         ($(objpfx)tst-initorder2.out): New rule.
42400         * elf/tst-initorder2.c: New file.
42401         * elf/tst-initorder2.exp: New file.
42402
42403 2011-08-22  Andreas Schwab  <schwab@redhat.com>
42404
42405         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
42406
42407         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
42408         dependencies back to end of function.
42409
42410         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
42411         $(elfobjdir)/ld.so.
42412
42413 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
42414
42415         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
42416         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
42417         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
42418         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
42419         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
42420         of __vdso_gettimeofday.
42421         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
42422         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
42423         attribute_hidden.
42424         (_libc_vdso_platform_setup): Remove initialization of
42425         __vdso_gettimeofday and __vdso_time.
42426
42427 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42428
42429         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
42430         and fgetc_unlocked.
42431         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
42432         getc_unlocked.
42433
42434         * elf/dl-open.c (add_to_global): Report additions to the global scope
42435         for LD_DEBUG=scopes.
42436         (dl_open_worker): Also print scope of newly loaded dependencies.
42437         (_dl_show_scope): Indicate if there is no scope.
42438
42439         [BZ #13114]
42440         * stdio-common/Makefile (tests): Add bug24.
42441         * stdio-common/bug24.c: New file.
42442
42443 2011-08-19  Andreas Jaeger  <aj@suse.de>
42444
42445         [BZ #13114]
42446         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
42447         non-existant file when using close-on-exec mode.
42448
42449 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42450
42451         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
42452         the very first instruction.
42453
42454         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
42455         the CFI state in the end.
42456         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
42457         inclusion of dl-trampoline.h.
42458         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
42459
42460 2011-08-19  Andreas Schwab  <schwab@redhat.com>
42461
42462         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
42463         expectations for long double.
42464
42465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
42466         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
42467
42468 2011-08-14  David S. Miller  <davem@davemloft.net>
42469
42470         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
42471         artificual limit depends upon the system page size.
42472
42473 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42474
42475         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
42476         * resolv/Makefile: Define CFLAGS-libresolv.
42477
42478 2011-08-17  Andreas Schwab  <schwab@redhat.com>
42479
42480         * nss/makedb.c (compute_tables): Make variables used in nested
42481         function static.
42482
42483 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42484
42485         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
42486         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
42487         if buffer was too small.
42488
42489         * elf/pldd.c (main): Attach to all threads in the process.
42490         Rewrite /proc handling to use *at functions.
42491
42492 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
42493
42494         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
42495         specifies first scope to show.
42496         (dl_open_worker): Update callers.  Move printing scope of new
42497         object to before the relocation.
42498         * elf/rtld.c (dl_main): Update _dl_show_scope call.
42499         * sysdeps/generic/ldsodefs.h: Update declaration.
42500
42501         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
42502         string for the scope number.
42503
42504 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
42505
42506         * nscd/servicescache.c (cache_addserv): Make sure written is always
42507         initialized.
42508
42509 2011-08-14  Roland McGrath  <roland@hack.frob.com>
42510
42511         * sysdeps/i386/i486/bits/atomic.h
42512         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
42513         statement expression, so as to suppress "set but not used" warning.
42514         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
42515
42516         * string/strncat.c (STRNCAT): Use prototype definition.
42517
42518         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
42519         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
42520         -Iprograms here.
42521         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
42522         (localedef-modules): Add localedef.
42523         (locale-modules): Add locale.
42524
42525         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
42526         * elf/rtld.c (dl_main): Invert order of assignment in last change,
42527         to avoid a warning.
42528
42529 2011-08-14  David S. Miller  <davem@davemloft.net>
42530
42531         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
42532         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
42533
42534 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
42535
42536         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
42537         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
42538         * elf/rtld.c (dl_main): Set l_name of vDSO.
42539         Call _dl_show_scope when DL_DEBUG_SCOPES.
42540         (process_dl_debug): Recognize scopes flag and also set it for all.
42541         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
42542         Declare _dl_show_scope.
42543
42544         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
42545         (do_dlopen): Pass caller_dlopen to dl_open.
42546         (__libc_dlopen_mode): Initialize caller_dlopen.
42547
42548         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
42549         of libc.  Make tolower call locale-independent.  Optimize a bit by
42550         using isdigit instead of isalnum.
42551         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
42552
42553 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
42554
42555         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
42556         was a dependency or dynamically loaded.
42557
42558 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
42559
42560         * intl/l10nflist.c: Allow architecture-specific pop function.
42561         * sysdeps/x86_64/l10nflist.c: New file.
42562
42563         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
42564         classification.
42565
42566 2011-08-10  Andreas Schwab  <schwab@redhat.com>
42567
42568         * include/dirent.h: Add libc_hidden_proto for scandirat and
42569         scandirat64.  Don't declare __scandirat64.
42570         * dirent/scandirat.c: Add libc_hidden_def.
42571         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
42572         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
42573
42574 2011-08-10  David S. Miller  <davem@davemloft.net>
42575
42576         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
42577         enum.
42578         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42579         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42580         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42581
42582 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
42583
42584         * Versions.def [libc]: Add GLIBC_2.15.
42585         * dirent/Makefile (routines): Add scandirat and scandirat64.
42586         * dirent/Versions [libc]: Export scandirat and scandirat64 for
42587         GLIBC_2.15.
42588         * dirent/dirent.h: Declare scandirat and scandirat64.
42589         * dirent/scandirat.c: New file.
42590         * dirent/scandirat64.c: New file.
42591         * sysdeps/wordsize-64/scandirat.c: New file.
42592         * sysdeps/wordsize-64/scandirat64.c: New file.
42593         * dirent/opendir.c: Define opendirat.
42594         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
42595         using scandirat.
42596         * dirent/scandir64.c: Adjust for scandir.c change.
42597         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
42598         __scandirat64, and __scandir_cancel_handler.
42599         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
42600         additional parameter and use openat instead of open (outside of ld.so).
42601         Add new __opendir as wrapper around __opendirat.
42602         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
42603         here without requiring old scandirat implementation.
42604
42605 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
42606
42607         * dirent/scandir.c (cancel_handler): Renamed to
42608         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
42609         defined.  Adjust users.
42610         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
42611         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
42612
42613 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
42614
42615         * string/test-string.h (IMPL): Use __STRING to expand name and then
42616         stringify it.
42617
42618         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
42619         of cleanups.
42620
42621 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42622
42623         * string/Makefile: Update.
42624         (strop-tests): Append strncat.
42625         * string/test-wcscmp.c: New file.
42626         New comprehensive test for wcscmp.
42627         * string/test-strcmp.c: Update.
42628         (WIDE): New define.
42629
42630 2011-07-22  Andreas Schwab  <schwab@redhat.com>
42631
42632         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
42633         line.
42634
42635 2011-07-26  Andreas Schwab  <schwab@redhat.com>
42636
42637         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
42638         encoding to ACE if AI_IDN.
42639
42640 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
42641
42642         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
42643         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
42644
42645 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42646
42647         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
42648         Fix overflow bug in strncat.
42649         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
42650
42651         * string/test-strncat.c: Update.
42652         Add new tests for checking overflow bugs.
42653
42654 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42655
42656         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42657         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
42658         * sysdeps/i386/i686/multiarch/strcat.S: New file.
42659         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
42660         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
42661         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
42662         * sysdeps/i386/i686/multiarch/strncat.S: New file.
42663         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
42664         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
42665
42666         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
42667         (USE_AS_STRCAT): Define.
42668         Add strcat and strncat support.
42669         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42670
42671 2011-07-25  Andreas Schwab  <schwab@redhat.com>
42672
42673         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
42674         __n bigger than INT_MAX+1.
42675         (__strncmp_g): Likewise.
42676
42677 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
42678
42679         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
42680         * libio/stido.h: Likewise.
42681
42682         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
42683         (AF_NFC): Define.
42684         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
42685         (AF_NFC): Define.
42686
42687         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
42688         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42689         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42690         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
42691         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42692
42693         [BZ #13021]
42694         * scripts/test-installation.pl: Don't expect libnss_test1 to be
42695         installed.
42696
42697         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
42698         typo.
42699         (_dl_x86_64_save_sse): Likewise.
42700
42701 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
42702
42703         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
42704         OSXSAVE.
42705         (_dl_x86_64_save_sse): Likewise.
42706
42707         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
42708
42709         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
42710
42711 2011-07-21  Andreas Schwab  <schwab@redhat.com>
42712
42713         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
42714         change.
42715         (_dl_x86_64_save_sse): Use correct AVX check.
42716
42717 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42718
42719         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
42720         bug in strncpy/strncat.
42721         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
42722
42723 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
42724
42725         * string/tester.c (test_strcat): Add tests for different alignments
42726         of source and destination.
42727         (test_strncat): Likewise.
42728
42729 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
42730
42731         [BZ #12852]
42732         * posix/glob.c (glob): Check passed in values before using them in
42733         expressions to avoid some overflows.
42734         (glob_in_dir): Likewise.
42735
42736         [BZ #13007]
42737         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
42738         check for AVX enablement so that we don't crash with old kernels and
42739         new hardware.
42740         * elf/tst-audit4.c: Add same checks here.
42741         * elf/tst-audit6.c: Likewise.
42742
42743         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
42744
42745 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
42746
42747         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
42748
42749 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
42750
42751         * po/cs.po: Update from translation team.
42752         * po/bg.po: Likewise.
42753
42754 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
42755
42756         * misc/sys/cdefs.h: Add support for const attribute.
42757         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
42758         to gnu_dev_{major,minor,makedev} functions.
42759
42760 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
42761
42762         * intl/dcigettext.c (get_output_charset): Add missing bracket.
42763
42764 2011-07-20  Andreas Schwab  <schwab@redhat.com>
42765
42766         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
42767         strlen results.
42768
42769 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42770
42771         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
42772         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
42773         register in order to avoid conflicts with the soft frame pointer
42774         being held in r11 when necessary.
42775         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
42776         (INTERNAL_VSYSCALL_NCS): Likewise.
42777
42778 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
42779
42780         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
42781         * elf/dl-fini.c (_dl_fini): Adjust caller.
42782         * elf/dl-close.c (_dl_close_worker): Likewise.
42783         * sysdeps/generic/ldsodefs.h: Adjust declaration.
42784
42785 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
42786
42787         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
42788         "aux_cache->nlibs < 0".
42789
42790         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
42791         in the reload-count case.
42792
42793 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42794
42795         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42796         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
42797         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
42798         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
42799         * sysdeps/x86_64/multiarch/strcat.S: New file.
42800         * sysdeps/x86_64/multiarch/strncat.S: New file.
42801         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
42802         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
42803         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
42804         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
42805         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
42806         (USE_AS_STRCAT): Define.
42807         Add strcat and strncat support.
42808         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42809         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
42810         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
42811         * string/strncat.c: Update.
42812         (USE_AS_STRNCAT): Define.
42813         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
42814         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
42815         and i7.
42816         * sysdeps/x86_64/multiarch/init-arch.h
42817         (bit_Prefer_PMINUB_for_stringop): New.
42818         (index_Prefer_PMINUB_for_stringop): Likewise.
42819         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
42820         bit_Prefer_PMINUB_for_stringop.
42821
42822 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
42823
42824         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
42825         buffer64.
42826         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
42827         of casting of buffer.
42828         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
42829         buffer32 and buffer64.
42830         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
42831         writes instead of casting of buffer.
42832         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
42833         buffer32.
42834         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
42835         casting of buffer.
42836
42837 2011-07-19  Andreas Schwab  <schwab@redhat.com>
42838
42839         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
42840
42841 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
42842
42843         * nscd/nscd.c (termination_handler): Don't do anything for a database
42844         if it has not yet been initialized.
42845
42846 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
42847
42848         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
42849
42850 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
42851
42852         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
42853
42854 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
42855
42856         * po/nl.po: Update from translation team.
42857         * po/sv.po: Likewise.
42858
42859 2011-07-16  Roland McGrath  <roland@hack.frob.com>
42860
42861         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
42862         now disallowed by GCC.
42863
42864         * configure.in (use-default-link): Default to yes if a test -shared
42865         link meets our qualifications.
42866         * configure: Regenerated.
42867
42868         * config.make.in (output-format): New variable.
42869         * configure.in: Check for ld --print-output-format support.
42870         * configure: Regenerated.
42871         * Makerules ($(common-objpfx)format.lds)
42872         [$(output-format) != unknown]: Just use $(output-format),
42873         instead of the linker-script munging.
42874
42875 2011-07-14  Roland McGrath  <roland@hack.frob.com>
42876
42877         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
42878         of $(common-objpfx)shlib.lds.
42879         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
42880
42881         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
42882         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
42883
42884         * configure.in (-z relro check): Adjust test code to add a large
42885         writable data section after it.
42886         * configure: Regenerated.
42887
42888 2011-07-11  Roland McGrath  <roland@hack.frob.com>
42889
42890         * configure.in (-z relro check): Fix test code to make the variable
42891         truly const.
42892         * configure: Regenerated.
42893
42894 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
42895
42896         * nscd/nscd.h (struct traced_file): Define.
42897         (struct database_dyn): Remove inotify_descr, reset_res, and filename
42898         elements.  Add traced_files.
42899         (inotify_fd): Declare.
42900         (register_traced_file): Declare.
42901         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
42902         (inotify_fd): Export.
42903         (resolv_conf_descr): Remove.
42904         (nscd_init): Move inotify descriptor creation to main.
42905         Don't register files for notification here.
42906         (register_traced_file): New function.
42907         (invalidate_cache): Don't use reset_res to determine whether to call
42908         res_init, go through the list of registered files.
42909         (main_loop_poll): The inotify descriptors are now stored in the
42910         structures for the traced files.
42911         (main_loop_epoll): Likewise
42912         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
42913         to __nss_disable_nscd.
42914         * nscd/cache.c (prune_cache): There is no single inotify descriptor
42915         for a database anymore.  Check the records for all the registered
42916         files instead.
42917         * nss/Makefile (libnss_files-routines): Add files-init.
42918         (libnss_db-routines): Add db-init.
42919         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
42920         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
42921         * nss/nss_db/db-init.c: New file.
42922         * nss/nss_files/files-init.c: New file.
42923         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
42924         __nss_lookup_function.
42925         (__nss_lookup_function): Call nss_load_library.
42926         (nss_load_all_libraries): New function.
42927         (__nss_disable_nscd): Take parameter with callback function for files
42928         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
42929         used for the cached services.
42930         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
42931         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
42932         options for features to all the files in nscd.
42933
42934         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
42935
42936 2011-07-10  Roland McGrath  <roland@hack.frob.com>
42937
42938         * csu/elf-init.c (__libc_csu_init): Comment typo.
42939
42940 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
42941
42942         * po/pl.po: Update from translation team.
42943         * po/ja.po: Likewise.
42944         * po/ru.po: Likewise.
42945         * po/ko.po: Likewise.
42946         * po/fr.po: Likewise.
42947
42948 2011-07-09  Roland McGrath  <roland@hack.frob.com>
42949
42950         * configure.in (.ctors/.dtors header and trailer check):
42951         Use an empirical test on a built program.
42952         * configure: Regenerated.
42953
42954         * configure.in (-z relro check): Use an empirical test on a built DSO.
42955         Detect, but do not require, on ia64.
42956         * configure: Regenerated.
42957
42958         * configure.in (READELF): Find it with AC_CHECK_TOOL.
42959         Update tests that use readelf to use $READELF instead.
42960         * configure: Regenerated.
42961
42962 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
42963
42964         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
42965         if the result is not used.
42966
42967 2011-07-05  Andreas Jaeger  <aj@suse.de>
42968
42969         [BZ#9696]
42970         * stdlib/tst-strtod.c: Add testcase.
42971
42972 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
42973
42974         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
42975         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
42976         The latter has a higher limit.  Take additional parameter to pass to
42977         the new function.
42978         (__pathconf): Pass file to __statfs_link_max.
42979         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
42980         __statfs_link_max.
42981         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
42982         __statfs_link_max.
42983
42984         [BZ #12868]
42985         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
42986         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
42987         Handle Lustre.
42988         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
42989         (__statfs_filesize_max): Likewise.
42990         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
42991
42992 2011-07-05  Andreas Jaeger  <aj@suse.de>
42993
42994         * resolv/res_comp.c (dn_skipname): Remove unused variable.
42995
42996 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
42997
42998         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
42999         `status' variable.
43000         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43001         Likewise.
43002
43003 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43004
43005         * Makefile (strop-tests): Add strncat.
43006         * string/test-strncat.c: New file.
43007
43008 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43009
43010         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43011
43012 2011-06-21  Andreas Jaeger  <aj@suse.de>
43013
43014         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43015         Copy rule from iconvdata/Makefile.
43016
43017 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43018
43019         [BZ #12922]
43020         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43021         but no long options are defined, just return 'W'.
43022
43023 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43024
43025         [BZ #9696]
43026         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43027
43028 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43029
43030         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43031         netgroups to read.
43032         (innetgr): Likewise.
43033
43034 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43035
43036         * config.make.in (install_root): Default to $(DESTDIR).
43037
43038 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43039
43040         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43041
43042 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43043
43044         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43045
43046         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43047         containing directory rather than embedding absolute directory names.
43048
43049         * scripts/check-local-headers.sh: Rewritten using awk.
43050         Match by word, not by line.  Print error messages for matches.
43051         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43052
43053         * Makerules [shlib-lds-flags empty]:
43054         ($(common-objpfx)libc_pic.opts): New target.
43055         ($(common-objpfx)libc_pic.os.clean): New target.
43056         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43057
43058         * config.make.in (OBJCOPY): New variable.
43059         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43060         * configure: Regenerated.
43061
43062         * config.make.in (use-default-link): New variable.
43063         * configure.in (use_default_link): Grok --with-default-link to set it.
43064         * configure: Regenerated.
43065         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43066         (shlib-lds, shlib-lds-flags): Define to empty.
43067
43068         * Makerules (shlib-lds): New variable.
43069         (shlib-lds-flags): New variable.
43070         (build-shlib, build-moduile, build-module-asneeded): Use it.
43071         ($(common-objpfx)libc.so): Use $(shlib-lds).
43072         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43073         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43074
43075         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43076         DT_FLAGS/DT_FLAGS_1 with zero flags.
43077
43078         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43079         linker script munging.
43080
43081 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43082
43083         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43084         as 128-bit value.
43085         * crypt/sha512.c (sha512_process_block): Perform total addition using
43086         128-bit if possible.
43087         (__sha512_finish_ctx): Likewise.
43088         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43089         as 64-bit value.
43090         * crypt/sha256.c (SWAP64): Define.
43091         (sha256_process_block): Perform total addition using 64-bit if
43092         possible.
43093         (__sha256_finish_ctx): Likewise.
43094
43095 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
43096
43097         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
43098         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43099         * nscd/hstcache.c (cache_addhst): Likewise.
43100         * nscd/grpcache.c (cache_addgr): Likewise.
43101         * nscd/aicache.c (addhstaiX): Likewise
43102         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
43103
43104 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
43105
43106         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
43107         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43108         * nscd/hstcache.c (cache_addhst): Likewise.
43109         * nscd/grpcache.c (cache_addgr): Likewise.
43110         * nscd/aicache.c (addhstaiX): Likewise
43111
43112 2011-07-01  Andreas Schwab  <schwab@redhat.com>
43113
43114         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
43115         domain only when needed.
43116
43117 2011-06-30  Andreas Schwab  <schwab@redhat.com>
43118
43119         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
43120         is always restored.
43121
43122 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
43123
43124         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
43125         are re-adding the entry.
43126         * nscd/servicescache.c (cache_addserv): Likewise.
43127
43128 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
43129
43130         * sysdeps/generic/dl-irel.h: fix protection against multiple
43131         inclusions.
43132         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
43133
43134 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
43135
43136         [BZ #12935]
43137         * malloc/memusage.sh: Fix quoting in message.
43138         * debug/xtrace.sh: Likewise.
43139
43140         * configure.in: Remove support for --experimental-malloc option, make
43141         it the default.
43142         * config.make.in: Likewise.
43143         * malloc/Makefile: Likewise.
43144
43145 2011-06-27  Andreas Schwab  <schwab@redhat.com>
43146
43147         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
43148         two-byte characters.
43149
43150 2011-06-27  Roland McGrath  <roland@hack.frob.com>
43151
43152         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
43153         AC_CACHE_CHECK invocation.
43154         * configure: Regenerated.
43155
43156         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
43157
43158 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
43159
43160         [BZ #12350]
43161         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
43162         bit from old_res_options.
43163
43164         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
43165
43166         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
43167         value type for setfct.
43168
43169 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
43170
43171         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43172         __gettimeofday instead of gettimeofday.
43173
43174 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
43175
43176         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
43177
43178 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
43179
43180         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
43181
43182         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
43183         info.
43184
43185 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43186
43187         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43188         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43189         strcpy-sse2-unaligned strncpy-sse2-unaligned
43190         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
43191         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
43192         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
43193         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
43194         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
43195         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
43196         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
43197         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
43198         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
43199         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
43200         (STRCPY): Support SSE2 and SSSE3 versions.
43201
43202 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
43203
43204         [BZ #12874]
43205         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
43206         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
43207         kernels which artificially limit size of requests.
43208
43209 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43210
43211         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43212         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43213         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
43214         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
43215         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
43216         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
43217         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
43218         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
43219         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
43220         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
43221         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
43222         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
43223         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
43224         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
43225         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
43226         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43227         Enable unaligned load optimization for Intel Core i3, i5 and i7
43228         processors.
43229         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
43230         Define.
43231         (index_Fast_Unaligned_Load): Define.
43232         (HAS_FAST_UNALIGNED_LOAD): Define.
43233
43234 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
43235
43236         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
43237
43238 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43239
43240         [BZ #12907]
43241         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
43242         until it is clear that the information is realy needed.
43243         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
43244
43245 2011-06-22  Andreas Schwab  <schwab@redhat.com>
43246
43247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
43248
43249 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43250
43251         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43252         /sys/devices/system/cpu/online if it is usable.
43253
43254         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
43255         reading the information from the /proc filesystem to once a second.
43256
43257 2011-06-21  Andreas Jaeger  <aj@suse.de>
43258
43259         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
43260         NULL after inclusion of kernel headers.
43261
43262 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
43263
43264         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
43265         calls to internal_setent.
43266
43267         [BZ #12885]
43268         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
43269         addresses using gethostbyname4_r ignore IPv4 addresses.
43270
43271         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
43272         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
43273
43274         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
43275
43276 2011-06-20  David S. Miller  <davem@davemloft.net>
43277
43278         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
43279         inclusions.
43280         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
43281
43282         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
43283         (elf_irel): Use it.
43284         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
43285         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
43286         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
43287         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
43288         * sysdeps/x86_64/dl-irel.h: Likewise.
43289
43290         * elf/dl-runtime.c: Use elf_ifunc_invoke.
43291         * elf/dl-sym.c: Likewise.
43292
43293 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43294
43295         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
43296         need to dereference resplen2.
43297
43298 2011-06-14  Andreas Schwab  <schwab@redhat.com>
43299
43300         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
43301
43302 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43303
43304         * Makeconfig: Define vardbdir and inst_vardbdir.
43305         * nss/Makefile: Add rules to install db-Makefile.
43306
43307         * nss/nss_db/db-XXX.c: Cleanup.
43308
43309         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
43310         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
43311         GLIBC_PRIVATE.
43312         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
43313         * nss/makedb.c: Implement -g option to specify that value strings
43314         are generated and should not be added to table iterated over for
43315         get*ent calls.
43316         * nss/nss_db/db-initgroups.c: New file.
43317
43318         * nss/getent.c: Add support for initgroups lookups through getgrouplist
43319         interface.
43320
43321         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
43322         (internal_getgrouplist): Adjust to name change.
43323         Update use_initgroups_entry if this is not the first call.
43324         * nss/databases.def: Add initgroups entry.
43325
43326         * nss/makedb.c (compute_tables): Check result of multiple hash table
43327         sizes to minimize maximum chain length.
43328
43329 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
43330
43331         * Versions.def: Add entry for libnss_db.
43332         * shlib-versions: Likewise.
43333         * nss/Makefile: Add rules to build libnss_db.
43334         * nss/Versions: Add libnss_db information.  Organize libnss_files
43335         entries better.
43336         * nss/db-Makefile: Add gshadow support.  Change rules for the new
43337         makedb progra.  Some minor improvements to generate smaller files.
43338         * nss/nss_db/nss_db.h: Move NSS database header data structures to
43339         here from...
43340         * nss/makedb.c: ...here.
43341         Improve database format to be smaller and require less memory at
43342         runtime.
43343         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
43344         db anymore.
43345         * nss/nss_db/db-netgrp.c: Likewise.
43346         * nss/nss_db/db-open.c: Likewise.
43347         * nss/nss_files/flies-XXX.x: Adjust comments.
43348         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
43349         * nss/nss_files/files-grp.c: Likewise.
43350         * nss/nss_files/files-hosts.c: Likewise.
43351         * nss/nss_files/files-network.c: Likewise.
43352         * nss/nss_files/files-proto.c: Likewise.
43353         * nss/nss_files/files-pwd.c: Likewise.
43354         * nss/nss_files/files-rpc.c: Likewise.
43355         * nss/nss_files/files-service.c: Likewise.
43356         * nss/nss_files/files-sgrp.c: Likewise.
43357         * nss/nss_files/files-spwd.c: Likewise.
43358         * nss/nss_db/db-alias.c: Removed.
43359         * nss/nss_db/dummy-db.h: Removed.
43360
43361 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
43362
43363         * nss/makedb.c: Rewritten to not use database library.
43364         * nss/Makefile: Update to build new makedb program.
43365
43366 2011-06-14  Andreas Jaeger  <aj@suse.de>
43367
43368         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
43369         memset declaration.
43370
43371 2011-06-10  Andreas Schwab  <schwab@redhat.com>
43372
43373         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
43374         tmpbuf.
43375
43376 2011-06-10  Roland McGrath  <roland@hack.frob.com>
43377
43378         * Makerules (shlib.lds): Fail if the linker script comes out empty.
43379         * elf/Makefile ($(objpfx)ld.so): Likewise.
43380
43381         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
43382         Don't list ld.so twice in dependencies.
43383
43384         * posix/bug-regex31.c: Include <stdlib.h>.
43385
43386         * nscd/hstcache.c (cache_addhst): Remove unused variable.
43387
43388         * nis/nss_compat/compat-spwd.c
43389         (getspent_next_nss_netgr): Remove unused variable.
43390         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
43391
43392         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
43393         nonmembers" output to use the right array.
43394
43395         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
43396
43397         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
43398
43399         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
43400         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
43401         * catgets/gencat.c (read_input_file): Likewise.
43402         * locale/programs/locarchive.c (enlarge_archive): Likewise.
43403
43404         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
43405         variable definition inside #if's controlling its use.
43406
43407         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
43408
43409         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
43410
43411         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
43412
43413         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
43414         unreachable code.
43415
43416         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
43417
43418         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
43419         * configure: Regenerated.
43420
43421         * Makerules: Revert last change.
43422         * elf/Makefile: Likewise.
43423
43424 2011-06-09  Roland McGrath  <roland@hack.frob.com>
43425
43426         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
43427         * elf/Makefile ($(objpfx)librtld.os): Likewise.
43428         (reloc-link): Likewise.
43429
43430 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
43431
43432         * elf/Makefile: Add rules to build pldd.
43433         * elf/pldd.c: New file.
43434         * elf/pldd-xx.c: New file.
43435
43436 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
43437
43438         * version.h: Update for 2.15 development version.
43439
43440 2011-06-07  David S. Miller  <davem@davemloft.net>
43441
43442         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
43443         ifuncs.
43444         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
43445         elf_machine_lazy_rel): Likewise.
43446         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
43447         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
43448         elf_machine_lazy_rel): Likewise.
43449         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
43450         dl_hwcap via passed in argument.
43451         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
43452         Likewise.
43453
43454 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43455
43456         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
43457
43458 2011-06-06  Roland McGrath  <roland@hack.frob.com>
43459
43460         [BZ #12849]
43461         * manual/fdl-1.1.texi: New file, verbatim from:
43462         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
43463         * manual/lgpl-2.1.texi: New file, verbatim from:
43464         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
43465         * manual/Makefile (licenses): New variable, list those new file names.
43466         (texis): Use it.
43467         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
43468
43469         * manual/fdl.texi: File removed.
43470         * manual/lesser.texi: File removed.
43471         * manual/libc.texinfo (Copying, Documentation License):
43472         Use new @include file names, put @appendix directive before @include.
43473
43474 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
43475
43476         [BZ #12841]
43477         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
43478         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
43479         (mq_open): Add __NTH.
43480
43481 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
43482
43483         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43484         Assume Intel Core i3/i5/i7 processor if AVX is available.
43485
43486 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
43487
43488         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
43489         typo.
43490
43491 2011-05-31  Andreas Schwab  <schwab@redhat.com>
43492
43493         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
43494         memory.  Use alloca_account.  Fix memory leak when retrying.
43495
43496 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
43497
43498         * version.h (RELEASE): Bump for 2.14 release.
43499         * include/features.h (__GLIBC_MINOR__): Bump to 14.
43500
43501         * config.make.in (RANLIB): Remove entry.
43502
43503 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
43504
43505         * po/Makefile (po-sed-cmd): Add ksh to extensions.
43506         (libc.pot): Work around missing support for .ksh extension in xgettext.
43507
43508         [BZ #12684]
43509         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
43510         if both request failed.
43511         (send_dg): In case of server errors clear resplen or *resplen2.
43512
43513         [BZ #12454]
43514         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
43515         when there are multiple maps.
43516         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
43517         (_dl_fini): Remove test here.
43518
43519         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
43520
43521 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
43522
43523         [BZ #12350]
43524         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
43525         bit from old_res_options.
43526         (gaih_inet): Likewise.
43527
43528         [BZ #11099]
43529         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
43530         as signed.
43531
43532         * resolv/res_init.c (res_setoptions): Make the code more compact.
43533
43534         [BZ #11558]
43535         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
43536         set RES_USEVC.
43537
43538         [BZ #11634]
43539         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
43540
43541         * malloc/malloc.h: Mark malloc hook variables as deprecated.
43542
43543         [BZ #11781]
43544         * malloc/malloc.h: Declare malloc hook variables as volatile.
43545
43546         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
43547         in last patch.
43548
43549         [BZ #11799]
43550         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
43551         raise in the comment.
43552         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
43553         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
43554         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
43555
43556 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
43557
43558         [BZ #12811]
43559         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
43560         grow the buffers more if it already has to be sufficient.
43561         (build_wcs_upper_buffer): Likewise.
43562         * posix/regexec.c (check_matching): Likewise.
43563         (clean_state_log_if_needed): Likewise.
43564         (extend_buffers): Don't enlarge buffers beyond size of the input
43565         buffer.
43566         Patches mostly by Emil Wojak <emil@wojak.eu>.
43567         * posix/bug-regex32.c: New file.
43568         * posix/Makefile (tests): Add bug-regex32.
43569
43570         * locale/findlocale.c (_nl_find_locale): Return right away if
43571         _nl_explode_name failed.
43572         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
43573
43574         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
43575
43576         * debug/xtrace.sh: Unify messages.
43577         * malloc/memusage.sh: Likewise.
43578
43579         [BZ #12813]
43580         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
43581         time symbol from vDSO.  Substitute with vsyscall if not available.
43582         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
43583         __vdso_time.
43584
43585         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
43586         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
43587         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
43588         Add sendmmsg and internal_sendmmsg.
43589         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
43590         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
43591         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
43592
43593         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
43594         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
43595         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
43596
43597 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
43598
43599         [BZ #12813]
43600         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
43601         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
43602         available.
43603         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
43604         __vdso_getcpu.
43605
43606         [BZ #12814]
43607         * iconvdata/Makefile (tests): Add bug-iconv9.
43608         * iconvdata/bug-iconv9.c: New file.
43609
43610 2011-05-27  Andreas Schwab  <schwab@redhat.com>
43611
43612         [BZ #12814]
43613         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
43614
43615 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
43616
43617         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
43618         (struct user_regs_struct): Change intcs field back to cs.
43619
43620 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
43621
43622         * po/ja.po: Update from translation team.
43623
43624 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
43625
43626         [BZ #12795]
43627         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
43628         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
43629
43630 2011-05-20  Andreas Schwab  <schwab@redhat.com>
43631
43632         * stdlib/longlong.h: Update from GCC.
43633
43634 2011-05-23  Andreas Schwab  <schwab@redhat.com>
43635
43636         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
43637         parameter name.
43638         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
43639         Add parameter name.
43640         (__sysconf): Pass it down.
43641
43642 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
43643
43644         [BZ #12671]
43645         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
43646         some situations.
43647         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
43648         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
43649         add in in __libc_use_alloca calls.  Adjust callers.
43650         (glob): Use malloc in some situations.
43651
43652         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
43653         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
43654         pltexit.
43655
43656 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
43657
43658         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
43659         and CLOCK_BOOTTIME_ALARM.
43660
43661         [BZ #12782]
43662         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
43663         is returned.
43664
43665         * string/_strerror.c (__strerror_r): Print negative errors as signed
43666         numbers.
43667
43668         [BZ #12777]
43669         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
43670         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
43671         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
43672
43673         * configure.in: Fix typo in redirection and correct removal of test
43674         files in two cases.
43675
43676         [BZ #12788]
43677         * locale/setlocale.c (new_composite_name): Fix test to check for
43678         identical name of all categories.
43679
43680         [BZ #12792]
43681         * libio/filedoalloc.c (local_isatty): New function.
43682         (_IO_file_doallocate): Use local_isatty.
43683         * stdio-common/perror.c (perror): In case a new stream is used
43684         forward the stream error.
43685         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
43686         error flag.
43687
43688 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
43689
43690         [BZ #11869]
43691         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
43692         alloca.
43693         * include/alloca.h (extend_alloca_account): Define.
43694
43695         [BZ #11857]
43696         * posix/regex.h: Fix comments with documentation of user-accessible
43697         fields after compilation and describe correct free'ing of pattern
43698         after re_compile_pattern.
43699         Patch by Reuben Thomas <rrt@sc3d.org>.
43700
43701 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
43702
43703         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
43704         and -mno-altivec to prevent the compiler from using Altivec and/or
43705         VSX instructions when the corresponding registers are not available.
43706
43707 2011-05-19  Andreas Schwab  <schwab@redhat.com>
43708
43709         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
43710
43711 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
43712
43713         * libio/freopen.c (freopen): Use __dup2, not dup2.
43714         * libio/freopen64.c (freopen64): Likewise.
43715
43716 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
43717
43718         [BZ #12775]
43719         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
43720         * math/Makefile (tests): Add test-powl.
43721         (CFLAGS-test-powl.c): Define.
43722         * math/test-powl.c: New file.
43723
43724 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
43725
43726         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
43727
43728 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
43729
43730         [BZ #11837]
43731         * iconvdata/gb18030.c: Update to GB18020-2005.
43732
43733 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
43734
43735         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
43736         RE_SYNTAX_POSIX_AWK): Update to match recent development.
43737         Patch by Aharon Robbins <arnold@skeeve.com>.
43738
43739         [BZ #11892]
43740         * stdlib/putenv.c (putenv): Don't always create copy of the variable
43741         on the stack.
43742
43743         [BZ #11895]
43744         * misc/pselect.c (__pselect): Handle timeout value errors hidden
43745         through underflows.
43746
43747         [BZ #12766]
43748         * misc/error.c (error_at_line): Ensure file_name and old_file_name
43749         point to strings before performing equality test for error_one_per_line
43750         mode.
43751
43752         [BZ #11697]
43753         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
43754
43755         [BZ #11820]
43756         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
43757         (struct user_fpregs_struct): Avoid __uint*_t types.
43758
43759         [BZ #6420]
43760         * malloc/mtrace.c (tr_where): Add additional parameter to point to
43761         symbol info.  Use it instead of calling _dl_addr locally.
43762         (lock_and_info): New function.
43763         (tr_freehook): Call lock_and_info and pass symbol info as additional
43764         parameter to tr_where.
43765         (tr_mallochook): Likewise.
43766         (tr_reallochook): Likewise.
43767         (tr_memalignhook): Likewise.
43768
43769         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
43770         used and couldn't be at all thread-safe.
43771
43772 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
43773
43774         * libio/freopen.c (freopen): Don't close old file descriptor
43775         before the new one is opened.  Instead dup the new file descriptor
43776         to the old one after the new stream is created.
43777         * libio/freopen64.c (freopen64): Likewise.
43778         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
43779         * libio/fileops.c (_IO_new_file_close_it): Handle new
43780         _IO_FLAGS2_NOCLOSE flag.
43781         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
43782         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
43783         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
43784         _IO_FLAGS2_NOCLOSE flag.
43785         * include/unistd.h: Add hidden_proto for dup3.
43786         Define __have_dup3.
43787         * io/dup3.c: Define hidden symbol.
43788         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
43789
43790         [BZ #7101]
43791         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
43792         when an incomplete long option is used.
43793         * posix/tst-getopt_long1.c: New file.
43794         * posix/Makefile (tests): Add tst-getopt_long1.
43795
43796         [BZ #10138]
43797         * scripts/config.guess: Update from autoconf-2.68.
43798         * scripts/config.sub: Likewise.
43799
43800         [BZ #10157]
43801         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
43802         tests into ...
43803         (has_cpuclock): ...this.  New function.
43804         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
43805         macro here based on has_cpuclock code.
43806
43807         [BZ #10149]
43808         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
43809         First byte (not low byte) is now always NUL.
43810         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
43811
43812         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
43813         Use non-cancelable interfaces.
43814
43815         [BZ #9809]
43816         * locale/iso-639.def: Add entry for Sorani.
43817
43818         [BZ #11901]
43819         * include/stdlib.h: Move include protection to the right place.
43820         Define abort_msg_s.  Declare __abort_msg with it.
43821         * stdlib/abort.c (__abort_msg): Adjust type.
43822         * assert/assert.c (__assert_fail_base): New function.  Majority
43823         of code from __assert_fail.  Allocate memory for __abort_msg with
43824         mmap.
43825         (__assert_fail): Now call __assert_fail_base.
43826         * assert/assert-perr.c: Remove bulk of implementation.  Use
43827         __assert_fail_base.
43828         * include/assert.hL Declare __assert_fail_base.
43829         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
43830         mmap.
43831         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
43832
43833 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
43834
43835         [BZ #11952]
43836         [BZ #12453]
43837         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
43838         until all modules are registered in the DTV.
43839         * elf/Makefile: Add rules to build and run tst-tls19.
43840         * elf/tst-tls19.c: New file.
43841         * elf/tst-tls19mod1.c: New file.
43842         * elf/tst-tls19mod2.c: New file.
43843         * elf/tst-tls19mod3.c: New file.
43844         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
43845
43846         [BZ #12083]
43847         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
43848         correctly.
43849
43850         [BZ #12601]
43851         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
43852         two-byte sequence errors.
43853         * iconvdata/Makefile (tests): Add bug-iconv8.
43854         * iconvdata/bug-iconv8.c: New file.
43855
43856         [BZ #12626]
43857         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
43858         buf2 definition.
43859
43860         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
43861
43862         [BZ #12432]
43863         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
43864         (dummy_getcfa): New function.
43865         (init): Get _Unwind_GetCFA address, use dummy if not found.
43866         (backtrace_helper): In recursion check, also check whether CFA changes.
43867         (__backtrace): Completely initialize arg.
43868
43869         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
43870         storing incomplete byte sequence in state object.  Avoid testing for
43871         guaranteed too small input if we know there is enough data available.
43872
43873 2011-05-11  Andreas Schwab  <schwab@redhat.com>
43874
43875         * Makeconfig (+link-pie): Indent.
43876         * Rules (binaries-pie): Define if $(have-fpie) and
43877         $(build-shared).
43878         (binaries-shared): Also filter out $(binaries-pie).
43879         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
43880         * nscd/Makefile (others-pie): Add nscd.
43881         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
43882         ($(objpfx)nscd): Remove command override.
43883         * login/Makefile (others-pie): Add pt_chown.
43884         ($(objpfx)pt_chown): Remove command override.
43885         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
43886         remove command overrides.
43887
43888 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
43889
43890         * libio/tst_putwc.c: Fix error messages.
43891
43892         [BZ #12724]
43893         * libio/fileops.c (_IO_new_file_close_it): Always flush when
43894         currently writing and seek to current position when not.
43895         * libio/Makefile (tests): Add bug-fclose1.
43896         * libio/bug-fclose1.c: New file.
43897
43898 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
43899
43900         [BZ #12511]
43901         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
43902         don't set DF_1_NODELETE here.
43903         (do_lookup_x): When entering new entry test for copy relocation
43904         and if necessary set DF_1_NODELETE flag.
43905         * elf/tst-unique4.cc: New file.
43906         * elf/tst-unique4.h: New file.
43907         * elf/tst-unique4lib.cc: New file.
43908         * elf/Makefile: Add rules to build and run tst-unique4.
43909         Patch by Piotr Bury <pbury@goahead.com>.
43910
43911 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
43912
43913         [BZ #12052]
43914         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
43915
43916         [BZ #12625]
43917         * misc/mntent_r.c (addmntent): Flush the stream after the output
43918
43919         [BZ #12393]
43920         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
43921         (is_trusted_path_normalize): Skip initial colon.  Append slash
43922         to empty buffer.  Duplicate is_trusted_path code but allow
43923         constructed patch to be prefix.
43924         (is_dst): Allow $ORIGIN followed by /.
43925         (_dl_dst_substitute): Correct clearing of check_for_trusted.
43926         Correct testing of result of is_trusted_path_normalize
43927         (decompose_rpath): Fix warning.
43928
43929 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
43930
43931         [BZ #11257]
43932         * grp/initgroups.c (internal_getgrouplist): When we found the service
43933         list through the initgroups entry in nsswitch.conf do not always
43934         continue on a successful lookup.  Don't always use the
43935         __nss_group_database value if it is set.
43936         * nss/nsswitch.conf (initgroups): Change action for successful db
43937         lookup to continue for compatibility.
43938
43939 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
43940
43941         [BZ #11532]
43942         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
43943         and CP774 modules.
43944         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
43945         and CP774 modules.
43946         * iconvdata/tst-tables.sh: Likewise.
43947         * iconvdata/cp770.c: New file.
43948         * iconvdata/cp771.c: New file.
43949         * iconvdata/cp772.c: New file.
43950         * iconvdata/cp773.c: New file.
43951         * iconvdata/cp774.c: New file.
43952         * iconvdata/testdata/CP770: New file.
43953         * iconvdata/testdata/CP770..UTF8: New file.
43954         * iconvdata/testdata/CP771: New file.
43955         * iconvdata/testdata/CP771..UTF8: New file.
43956         * iconvdata/testdata/CP772: New file.
43957         * iconvdata/testdata/CP772..UTF8: New file.
43958         * iconvdata/testdata/CP773: New file.
43959         * iconvdata/testdata/CP773..UTF8: New file.
43960         * iconvdata/testdata/CP774: New file.
43961         * iconvdata/testdata/CP774..UTF8: New file.
43962
43963         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
43964         END CHARMAP line.
43965         * iconvdata/gen-8bit-gap.sh: Likewise.
43966         * iconvdata/gen-8bit.sh: Likewise.
43967
43968         * locale/iso-639.def: Add ary entry.
43969
43970         [BZ #11258]
43971         * locale/C-translit.h.in: Add U20A1 transliteration.
43972
43973         [BZ #12178]
43974         * locale/iso-639.def: Add wae entry.
43975         Patch by Kevin Bortis <bortis@translate-wae.ch>.
43976
43977         [BZ #12545]
43978         * locale/programs/localedef.c (construct_output_path): Use ssize_t
43979         for n.
43980
43981         [BZ #12711]
43982         * locale/C-translit.h.in: Add entry for U20B9.
43983         Patch by pravin.d.s@gmail.com.
43984
43985 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
43986
43987         [BZ #12713]
43988         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
43989         ENAMETOOLONG use generic getcwd.
43990         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
43991         in rtld.  Use *stat64.
43992         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
43993         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
43994         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
43995         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
43996         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
43997         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
43998         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
43999         __fstatat64 macros.
44000         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44001         * dirent/rewinddir.c: Add libc_hidden_def.
44002         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44003         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44004
44005         * include/dirent.h (__alloc_dir): Add flags parameter.
44006         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44007         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44008         __alloc_dir.
44009         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44010         from fdopendir if O_CLOEXEC is already set.
44011
44012 2011-03-15  Alan Modra  <amodra@gmail.com>
44013
44014         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44015         l_tls_firstbyte_offset non-zero.  Save padding offset in
44016         l_tls_firstbyte_offset for later use.
44017         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44018         freeing static tls block.
44019
44020 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44021
44022         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44023         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44024         being defined by the kernel headers.
44025
44026 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44027
44028         [BZ #12734]
44029         * resolv/resolv.h: Define RES_NOTLDQUERY.
44030         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44031         no-tld-query and set RES_NOTLDQUERY.
44032         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44033         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44034         modern BIND to search name as TLD unless forbidden.
44035
44036 2011-05-07  Petr Baudis  <pasky@suse.cz>
44037             Ulrich Drepper  <drepper@gmail.com>
44038
44039         [BZ #12393]
44040         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44041         (is_trusted_path): ...to here.
44042         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44043         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44044         using is_trusted_path_normalize() in setuid scripts.
44045
44046 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44047
44048         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44049         __BEGIN/__END_DECLS.
44050
44051 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44052
44053         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44054         NSS_STATUS_NOTFOUND if no record was found.
44055
44056 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44057
44058         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44059         (headers-not-in-tirpc): Remove rpc/netdb.h
44060         * resolv/netdb.h: Revert last change.
44061
44062 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44063
44064         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44065         circular dependency between libgcc.a and libc.a.
44066
44067 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44068
44069         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44070         * nis/Makefile: Don't install rpcsvc/*.
44071         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44072         instead of <rpc/types.h>.
44073         (MAXHOSTNAMELEN): Define.
44074
44075 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44076
44077         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44078
44079 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44080
44081         [BZ #12714]
44082         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44083         gethostbyname4_r when IPv6 results are possible.
44084
44085 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44086
44087         [BZ #12723]
44088         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44089         _PC_PIPE_BUF handling.
44090
44091 2011-04-30  Bruno Haible  <bruno@clisp.org>
44092
44093         [BZ #12717]
44094         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
44095         * resolv/netdb.h (getnameinfo): Change type of flags parameter
44096         to 'int'.
44097         * inet/getnameinfo.c (getnameinfo): Likewise.
44098
44099 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
44100
44101         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
44102         to groups setting in database lookup.
44103         * nss/nsswitch.conf: Add initgroups entry.
44104
44105 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
44106
44107         [BZ #12685]
44108         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
44109         mode string.
44110         Patch by Eric Blake <eblake@redhat.com>.
44111
44112 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
44113
44114         * sunrpc/Makefile (need-export-routines): Add svc_run.
44115         (routines): Remove svc_run.
44116         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
44117         * sunrpc/clnt_perr.c (clnt_perrno): Export.
44118         * sunrpc/svc_run.c (svc_run): Likewise.
44119         * sunrpc/svc_udp.c (svcudp_create): Likewise.
44120
44121 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
44122
44123         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
44124         problem in reallocation in last patch.
44125
44126 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
44127
44128         * sunrpc/Makefile: Move inclusion of Rules.
44129
44130 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44131
44132         * nss/nss_files/files-initgroups.c: New file.
44133         * nss/Makefile (libnss_files-routines): Add files-initgroups.
44134         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
44135         _nss_files_initgroups_dyn.
44136
44137 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
44138
44139         * elf/elf.h (R_ARM_IRELATIVE): Define.
44140
44141 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44142
44143         * po/ru.po: Update from translation team.
44144
44145 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44146
44147         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
44148         dependencies.
44149
44150 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
44151
44152         [BZ #12653]
44153         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
44154         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
44155         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
44156         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
44157         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
44158
44159 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
44160
44161         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
44162         differing bytes.
44163         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
44164         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
44165         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
44166
44167 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44168
44169         [BZ #12420]
44170         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
44171         storing it.
44172         * stdlib/bug-getcontext.c: New file.
44173         * stdlib/Makefile: Add rules to build and run bug-getcontext.
44174
44175 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44176
44177         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
44178         instructions into .machine "z9-109".
44179         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
44180         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
44181
44182 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44183
44184         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
44185         between environment variables and auxiliary vector.
44186
44187 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
44188
44189         * Makefile: Add rules to build linkobj/libc.so.
44190         * include/libc-symbols.h: Define libc_hidden_nolink.
44191         * include/rpc/auth.h: Mark functions which are to be hidden.
44192         * include/rpc/auth_des.h: Likewise.
44193         * include/rpc/auth_unix.h: Likewise.
44194         * include/rpc/clnt.h: Likewise.
44195         * include/rpc/des_crypt.h: Likewise.
44196         * include/rpc/key_prot.h: Likewise.
44197         * include/rpc/pmap_clnt.h: Likewise.
44198         * include/rpc/pmap_prot.h: Likewise.
44199         * include/rpc/pmap_rmt.h: Likewise.
44200         * include/rpc/rpc_msg.h: Likewise.
44201         * include/rpc/svc.h: Likewise.
44202         * include/rpc/svc_auth.h: Likewise.
44203         * include/rpc/xdr.h: Likewise.
44204         * nis/Makefile: Link all DSOs against linkobj/libc.so.
44205         * nss/Makefile: Likewise.
44206         * sunrpc/Makefile: Don't install headers.  Build library with normal
44207         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
44208         * sunrpc/auth_des.c: Hide exported symbols by default, export some
44209         for the compat linking library.  Remove use of INTDEF/INTUSE.
44210         * sunrpc/auth_none.c: Likewise.
44211         * sunrpc/auth_unix.c: Likewise.
44212         * sunrpc/authdes_prot.c: Likewise.
44213         * sunrpc/authuxprot.c: Likewise.
44214         * sunrpc/clnt_gen.c: Likewise.
44215         * sunrpc/clnt_perr.c: Likewise.
44216         * sunrpc/clnt_raw.c: Likewise.
44217         * sunrpc/clnt_simp.c: Likewise.
44218         * sunrpc/clnt_tcp.c: Likewise.
44219         * sunrpc/clnt_udp.c: Likewise.
44220         * sunrpc/clnt_unix.c: Likewise.
44221         * sunrpc/des_crypt.c: Likewise.
44222         * sunrpc/des_soft.c: Likewise.
44223         * sunrpc/get_myaddr.c: Likewise.
44224         * sunrpc/key_call.c: Likewise.
44225         * sunrpc/key_prot.c: Likewise.
44226         * sunrpc/netname.c: Likewise.
44227         * sunrpc/pm_getmaps.c: Likewise.
44228         * sunrpc/pm_getport.c: Likewise.
44229         * sunrpc/pmap_clnt.c: Likewise.
44230         * sunrpc/pmap_prot.c: Likewise.
44231         * sunrpc/pmap_prot2.c: Likewise.
44232         * sunrpc/pmap_rmt.c: Likewise.
44233         * sunrpc/publickey.c: Likewise.
44234         * sunrpc/rpc_cmsg.c: Likewise.
44235         * sunrpc/rpc_common.c: Likewise.
44236         * sunrpc/rpc_dtable.c: Likewise.
44237         * sunrpc/rpc_prot.c: Likewise.
44238         * sunrpc/rpc_thread.c: Likewise.
44239         * sunrpc/rtime.c: Likewise.
44240         * sunrpc/svc.c: Likewise.
44241         * sunrpc/svc_auth.c: Likewise.
44242         * sunrpc/svc_authux.c: Likewise.
44243         * sunrpc/svc_raw.c: Likewise.
44244         * sunrpc/svc_run.c: Likewise.
44245         * sunrpc/svc_simple.c: Likewise.
44246         * sunrpc/svc_tcp.c: Likewise.
44247         * sunrpc/svc_udp.c: Likewise.
44248         * sunrpc/svc_unix.c: Likewise.
44249         * sunrpc/svcauth_des.c: Likewise.
44250         * sunrpc/xcrypt.c: Likewise.
44251         * sunrpc/xdr.c: Likewise.
44252         * sunrpc/xdr_array.c: Likewise.
44253         * sunrpc/xdr_float.c: Likewise.
44254         * sunrpc/xdr_intXX_t.c: Likewise.
44255         * sunrpc/xdr_mem.c: Likewise.
44256         * sunrpc/xdr_rec.c: Likewise.
44257         * sunrpc/xdr_ref.c: Likewise.
44258         * sunrpc/xdr_sizeof.c: Likewise.
44259         * sunrpc/xdr_stdio.c: Likewise.
44260
44261 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
44262
44263         [BZ #12650]
44264         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
44265         * sysdeps/ia64/dl-tls.h: Likewise.
44266         * sysdeps/powerpc/dl-tls.h: Likewise.
44267         * sysdeps/s390/dl-tls.h: Likewise.
44268         * sysdeps/sh/dl-tls.h: Likewise.
44269         * sysdeps/sparc/dl-tls.h: Likewise.
44270         * sysdeps/x86_64/dl-tls.h: Likewise.
44271         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
44272
44273 2011-03-14  Andreas Schwab  <schwab@redhat.com>
44274
44275         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
44276         rpath element also skip the following colon.
44277         (expand_dynamic_string_token): Add is_path parameter and pass
44278         down to DL_DST_REQUIRED and _dl_dst_substitute.
44279         (decompose_rpath): Call expand_dynamic_string_token with
44280         non-zero is_path.  Ignore empty rpaths.
44281         (_dl_map_object_from_fd): Call expand_dynamic_string_token
44282         with zero is_path.
44283
44284 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
44285
44286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
44287         Make cancelable.
44288
44289 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
44290
44291         [BZ #12655]
44292         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
44293         Patch by Filipe David Manana <fdmanana@apache.org>.
44294
44295 2011-04-07  Andreas Schwab  <schwab@redhat.com>
44296
44297         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
44298         Maintain aligned stack.
44299         (CHECK_RSP): Remove unused macro.
44300
44301 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
44302
44303         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
44304         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
44305
44306 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
44307
44308         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
44309
44310         * include/features.h: Mention __USE_XOPEN2K8 in comment.
44311
44312 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
44313
44314         [BZ #12518]
44315         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
44316         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
44317         * sysdeps/x86_64/memmove.c: New file.
44318         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
44319         (memcpy): Renamed to ...
44320         (__new_memcpy): This.
44321         (memcpy): Provide GLIBC_2_14 memcpy.
44322         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
44323         (memcpy): Provide GLIBC_2_2_5 memcpy.
44324
44325 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44326
44327         [BZ #12631]
44328         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
44329
44330 2011-03-30  Andreas Schwab  <schwab@redhat.com>
44331
44332         * misc/syncfs.c: New file.
44333         * misc/Makefile (routines): Add syncfs.
44334         * posix/unistd.h: Declare syncfs.
44335         * sysdeps/unix/syscalls.list: Add syncfs.
44336
44337 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44338
44339         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
44340         open_by_handle_at.
44341         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44342         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44343         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44344         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44346         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
44347         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44348
44349 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44350
44351         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
44352         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44353         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
44354         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44355         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44356         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44357         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44358
44359         * io/Makefile: Compile fallocate.c, fallocate64.c, and
44360         sync_file_range.c with -fexceptions.
44361         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
44362         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
44363         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
44364         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
44365         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
44366         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
44367         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
44368         sync_file_range as cancellation point
44369         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
44370         now a wrapper around __call_sync_file_range with cancellation handling.
44371         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
44372         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
44373         function name to __call_sync_file_range.
44374         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
44375         Add call_sync_file_range.
44376
44377 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44378
44379         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
44380         bits/timex.h.
44381
44382 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44383
44384         * iconv/iconv.h: Fix typo in comment.
44385         * io/fcntl.h: Likewise.
44386         * libio/stdio.h: Likewise.
44387         * posix/spawn.h: Likewise.
44388         * posix/unistd.h: Likewise.
44389         * stdlib/stdlib.h: Likewise.
44390         * time/time.h: Likewise.
44391         * wcsmbs/wchar.h: Likewise.
44392
44393         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
44394         open_by_handle): Add.
44395         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
44396         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
44397         Augment a few comments.
44398         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44399         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44400         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44401         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44402         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44403         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
44404         open_by_handle.
44405
44406         * io/fcntl.h (AT_EMPTY_PATH): Define.
44407
44408 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
44409
44410         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
44411         * sysdeps/unix/sysv/linux/bits/time.h: New file.
44412         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
44413         to...
44414         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
44415         * Versions.def: Add GLIBC_2.14.
44416         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
44417         Export.
44418
44419 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
44420
44421         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
44422         round counter.
44423         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44424
44425 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
44426
44427         [BZ #12597]
44428         * string/test-strncmp.c (do_page_test): New function.
44429         (check2): Likewise.
44430         (test_main): Call check2.
44431         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
44432
44433 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
44434
44435         [BZ #12587]
44436         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
44437         Handle cache information in CPU leaf 4.
44438         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44439
44440 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
44441
44442         [BZ #12583]
44443         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
44444         character representation.
44445         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
44446
44447 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
44448
44449         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
44450         END(__isnan) to END(__isnanf) to match function entry point/label
44451         EALIGN(__isnanf,...).
44452
44453 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
44454
44455         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
44456
44457 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
44458
44459         [BZ #12510]
44460         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
44461         copy from the symbol referenced in the relocation to initialize the
44462         used variable.
44463         Patch by Piotr Bury <pbury@goahead.com>.
44464         * elf/Makefile: Add rules to build and tst-unique3.
44465         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
44466         * elf/tst-unique3.cc: New file.
44467         * elf/tst-unique3.h: New file.
44468         * elf/tst-unique3lib.cc: New file.
44469         * elf/tst-unique3lib2.cc: New file.
44470
44471         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
44472
44473 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
44474
44475         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
44476         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
44477         to _start.
44478
44479 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
44480
44481         * elf/dl-load.c (_dl_map_object): If we are looking for the first
44482         to-be-loaded object along a path to loader is ld.so.
44483
44484 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
44485             Ulrich Drepper  <drepper@gmail.com>
44486
44487         * sysdeps/x86_64/memset.S: After aligning destination, code
44488         branches to different locations depending on the value of
44489         misalignment, when multiarch is enabled. Fix this.
44490
44491 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
44492
44493         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
44494         Set _x86_64_preferred_memory_instruction for AMD processsors.
44495         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44496         Set bit_Prefer_SSE_for_memop for AMD processors.
44497
44498 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
44499
44500         * libio/fmemopen.c (fmemopen): Optimize a bit.
44501
44502 2011-03-03  Andreas Schwab  <schwab@redhat.com>
44503
44504         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
44505
44506 2011-03-03  Roland McGrath  <roland@redhat.com>
44507
44508         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
44509
44510 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
44511
44512         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
44513         __bzero_ultra1 instead of __memset_ultra1.
44514
44515 2011-02-23  Andreas Schwab  <schwab@redhat.com>
44516             Ulrich Drepper  <drepper@gmail.com>
44517
44518         [BZ #12509]
44519         * include/link.h (struct link_map): Add l_orig_initfini.
44520         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
44521         returning unsuccessfully.
44522         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
44523         close of a file loaded at startup, restore the original l_initfini
44524         list.
44525         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
44526         list, store the pointer.
44527         * elf/Makefile ($(objpfx)noload-mem): New rule.
44528         (noload-ENV): Define.
44529         (tests): Add $(objpfx)noload-mem.
44530         * elf/noload.c: Include <memcheck.h>.
44531         (main): Call mtrace.  Close all opened handles.
44532
44533 2011-02-17  Andreas Schwab  <schwab@redhat.com>
44534
44535         [BZ #12454]
44536         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
44537         dependencies are missing.
44538
44539 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44540
44541         Fix __if_freereq crash: Unlike the generic version which uses free,
44542         Hurd needs munmap.
44543         * sysdeps/mach/hurd/ifreq.h: New file.
44544
44545 2011-01-27  Petr Baudis  <pasky@suse.cz>
44546             Ulrich Drepper  <drepper@gmail.com>
44547
44548         [BZ 12445]#
44549         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
44550         to extend_alloca().
44551         * stdio-common/bug23.c: New file.
44552         * stdio-common/Makefile (tests): Add bug23.
44553
44554 2010-09-28  Andreas Schwab  <schwab@redhat.com>
44555             Ulrich Drepper  <drepper@gmail.com>
44556
44557         [BZ #12489]
44558         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
44559         before performing relro protection.  At old place add assertion
44560         to make sure nothing changed.
44561
44562 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
44563             Glauber de Oliveira Costa  <glommer@gmail.com>
44564
44565         * elf/elf.h: Add new ARM TLS relocs.
44566
44567 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
44568
44569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
44570         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
44571         cast from r3.
44572         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
44573         'tests' variable.
44574         * sysdeps/wordsize-64/tst-writev.c: New file.
44575
44576 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
44577
44578         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
44579         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
44580         insns in _dl_start to prevent a TOC reference before relocs are
44581         resolved.
44582
44583 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
44584
44585         [BZ #12469]
44586         * Makeconfig: Remove RANLIB definition.
44587         * Makerules: Don't use RANLIB.
44588         * aclocal.m4: Remove ranlib test.
44589         * configure.in: No need to check for ranlib.
44590         * elf/rtld-Rules: Don't use RANLIB.
44591
44592 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44593
44594         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
44595         protection macro.
44596         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
44597         inclusion protection macro.
44598
44599         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
44600         SIGRTMIN and SIGRTMAX and print information in that case only when
44601         SIGRTMIN is defined.
44602
44603 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
44604
44605         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
44606         arginfo fn returning -1.
44607
44608         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
44609         and thousands string is zero terminated.
44610
44611 2011-02-03  Andreas Schwab  <schwab@redhat.com>
44612
44613         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
44614         sysdeps/unix/sysv/linux/bits/socket.h.
44615
44616 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44617
44618         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
44619         (__CPU_COUNT): Remove old macros.
44620         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
44621         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
44622         (__CPU_ALLOC, __CPU_FREE): Add macros.
44623         (__sched_cpualloc, __sched_cpufree): Add declarations.
44624
44625 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
44626
44627         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
44628         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
44629         * nscd/aicache.c (addhstaiX): Return timeout of added value.
44630         (readdhstai): Return value of addhstaiX call.
44631         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
44632         (addgrbyX): Return value returned by cache_addgr.
44633         (readdgrbyname): Return value returned by addgrbyX.
44634         (readdgrbygid): Likewise.
44635         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
44636         (addpwbyX): Return value returned by cache_addpw.
44637         (readdpwbyname): Return value returned by addhstbyX.
44638         (readdpwbyuid): Likewise.
44639         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
44640         (addservbyX): Return value returned by cache_addserv.
44641         (readdservbyname): Return value returned by addservbyX:
44642         (readdservbyport): Likewise.
44643         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
44644         (addhstbyX): Return value returned by cache_addhst.
44645         (readdhstbyname): Return value returned by addhstbyX.
44646         (readdhstbyaddr): Likewise.
44647         (readdhstbynamev6): Likewise.
44648         (readdhstbyaddrv6): Likewise.
44649         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
44650         (readdinitgroups): Return value returned by addinitgroupsX.
44651         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
44652         (prune_cache): Keep track of timeout value of re-added entries.
44653         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
44654         * nscd/nscd.h: Adjust prototypes of readd* functions.
44655
44656 2011-02-04  Roland McGrath  <roland@redhat.com>
44657
44658         * nis/nis_server.c (nis_servstate): Use the right name for 0.
44659         (nis_stats): Likewise.
44660         * nis/nis_modify.c (nis_modify): Likewise.
44661         * nis/nis_remove.c (nis_remove): Likewise.
44662         * nis/nis_add.c (nis_add): Likewise.
44663
44664         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
44665
44666         * posix/fnmatch_loop.c: Add some consts.
44667
44668         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
44669
44670 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
44671
44672         [BZ #12460]
44673         * config.make.in (config-cflags-novzeroupper): Define.
44674         * configure.in: Substitute libc_cv_cc_novzeroupper.
44675         * elf/Makefile (AVX-CFLAGS): Define.
44676         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
44677         (CFLAGS-tst-auditmod4a.c): Likewise.
44678         (CFLAGS-tst-auditmod4b.c): Likewise.
44679         (CFLAGS-tst-auditmod6b.c): Likewise.
44680         (CFLAGS-tst-auditmod6c.c): Likewise.
44681         (CFLAGS-tst-auditmod7b.c): Likewise.
44682         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
44683
44684 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
44685
44686         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
44687         function to the callback.
44688         Patch partly by Jiri Olsa <jolsa@redhat.com>.
44689
44690 2011-02-02  Andreas Schwab  <schwab@redhat.com>
44691
44692         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
44693         of errno.
44694
44695 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
44696
44697         [BZ #11724]
44698         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
44699         of constructors.
44700         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
44701         of destructors.
44702         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
44703
44704         [BZ #11724]
44705         * elf/Makefile: Add rules to build and run new test.
44706         * elf/tst-initorder.c: New file.
44707         * elf/tst-initorder.exp: New file.
44708         * elf/tst-initordera1.c: New file.
44709         * elf/tst-initordera2.c: New file.
44710         * elf/tst-initordera3.c: New file.
44711         * elf/tst-initordera4.c: New file.
44712         * elf/tst-initorderb1.c: New file.
44713         * elf/tst-initorderb2.c: New file.
44714         * elf/tst-order-a1.c: New file.
44715         * elf/tst-order-a2.c: New file.
44716         * elf/tst-order-a3.c: New file.
44717         * elf/tst-order-a4.c: New file.
44718         * elf/tst-order-b1.c: New file.
44719         * elf/tst-order-b2.c: New file.
44720         * elf/tst-order-main.c: New file.
44721         New test case by George Gensure <werkt0@gmail.com>.
44722
44723 2010-10-01  Andreas Schwab  <schwab@redhat.com>
44724
44725         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
44726         decoding ACE if AI_CANONIDN.
44727
44728 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
44729
44730         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
44731
44732 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
44733
44734         * version.h (RELEASE): Bump for 2.13 release.
44735         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
44736
44737         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
44738
44739         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
44740         MADV_NOHUGEPAGE.
44741         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
44742         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
44743         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
44744         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
44745         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
44746         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
44747
44748         * posix/getconf.c: Update copyright year.
44749         * catgets/gencat.c: Likewise.
44750         * csu/version.c: Likewise.
44751         * debug/catchsegv.sh: Likewise.
44752         * debug/xtrace.sh: Likewise.
44753         * elf/ldconfig.c: Likewise.
44754         * elf/ldd.bash.in: Likewise.
44755         * elf/sprof.c (print_version): Likewise.
44756         * iconv/iconv_prog.c: Likewise.
44757         * iconv/iconvconfig.c: Likewise.
44758         * locale/programs/locale.c: Likewise.
44759         * locale/programs/localedef.c: Likewise.
44760         * malloc/memusage.sh: Likewise.
44761         * malloc/mtrace.pl: Likewise.
44762         * nscd/nscd.c (print_version): Likewise.
44763         * nss/getent.c: Likewise.
44764
44765         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
44766         PF_CAIF, and PF_ALG.
44767         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
44768
44769 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
44770
44771         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
44772         (modules-names): Use them.
44773         (ifunc-test-modules, ifunc-pie-tests): Define.
44774         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
44775         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
44776         (test-extras): Likewise.
44777         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
44778         $(compile-command.c).
44779         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
44780         (all-built-dso): Define.
44781         (check-textrel.out, check-execstack.out): Depend on it.
44782
44783         * configure.in: Don't override --enable-multi-arch.
44784
44785 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
44786
44787         [BZ #6812]
44788         * nscd/hstcache.c (tryagain): Define.
44789         (cache_addhst): Return tryagain not notfound for temporary errors.
44790         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
44791         failed.
44792
44793 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
44794
44795         [BZ #10563]
44796         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
44797         to make the syscall.
44798         * sysdeps/unix/sysv/linux/setgroups.c: New file.
44799
44800         [BZ #12378]
44801         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
44802         and fall back to matching as normal character if the string ends before
44803         the matching ']' is found.  This is what POSIX requires.
44804         * posix/testfnm.c: Adjust test result.
44805         * posix/globtest.sh: Adjust test result.  Add new test.
44806         * posix/tst-fnmatch.input: Likewise.
44807         * posix/tst-fnmatch2.c: Add new test.
44808
44809 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
44810
44811         * elf/Makefile (check-execstack): Revert last change.  Depend on
44812         check-execstack.h.
44813         (check-execstack.h): New target.
44814         (generated): Add check-execstack.h.
44815         * elf/check-execstack.c: Include "check-execstack.h".
44816         (main): Revert last change.
44817         (handle_file): Return zero if GNU_STACK is absent and
44818         DEFAULT_STACK_PERMS doesn't include PF_X.
44819
44820 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
44821
44822         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
44823         in child fails because the descriptor is already closed.
44824         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
44825         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
44826         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
44827
44828         [BZ #12397]
44829         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
44830         syscall.
44831
44832         [BZ #10484]
44833         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
44834         temporary buffer used to handle multi lookups locally.
44835         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
44836
44837 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
44838
44839         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
44840         loader is ld.so.
44841
44842 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
44843
44844         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
44845         alignment for SSE2.
44846
44847 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
44848
44849         [BZ #12394]
44850         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
44851         characters.  When rounding increased number of integer digits recompute
44852         number of groups.
44853         * stdio-common/tst-grouping.c: New file.
44854         * stdio-common/Makefile: Add rules to build and run tst-grouping.
44855
44856 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
44857
44858         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
44859         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
44860
44861         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
44862         void.
44863         * bits/select.h: Likewise.
44864
44865 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
44866
44867         * po/ja.po: Update from translation team.
44868
44869 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
44870
44871         [BZ #11155]
44872         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
44873         implementation just like for lxstat, fxstatat, et al.
44874
44875 2010-12-27  Jim Meyering  <meyering@redhat.com>
44876
44877         [BZ #12348]
44878         * posix/regexec.c (build_trtable): Return failure indication upon
44879         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
44880
44881 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
44882
44883         [BZ #12201]
44884         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
44885         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
44886         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
44887         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
44888
44889         [BZ #12207]
44890         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
44891
44892         [BZ #12204]
44893         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
44894         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
44895
44896 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
44897
44898         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
44899         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
44900         script has SORT_BY_INIT_PRIORITY.
44901         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
44902         NO_CTORS_DTORS_SECTIONS is defined.
44903         * elf/soinit.c: Likewise.
44904         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
44905         NO_CTORS_DTORS_SECTIONS is defined.
44906         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
44907         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
44908         * sysdeps/sh/init-first.c: Likewise.
44909         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
44910
44911 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
44912
44913         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
44914         always use the slow path.
44915
44916 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
44917
44918         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
44919         similar rule which adds the sysdep directories to the header search in
44920         order to pick up the correct platform stackinfo.h.
44921         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
44922         perform test if it is, otherwise return successfully without testing.
44923         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
44924         DEFAULT_STACK_PERMS define in stackinfo.h.
44925         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
44926         defined in stackinfo.h.
44927         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
44928         DEFAULT_STACK_PERMS defined in stackinfo.h.
44929         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
44930         * sysdeps/ia64/stackinfo.h: Likewise.
44931         * sysdeps/s390/stackinfo.h: Likewise.
44932         * sysdeps/sh/stackinfo.h: Likewise.
44933         * sysdeps/sparc/stackinfo.h: Likewise.
44934         * sysdeps/x86_64/stackinfo.h: Likewise.
44935         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
44936         PF_X for powerpc64.  Retain PF_X for powerpc32.
44937
44938 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
44939
44940         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
44941         accurately.
44942         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
44943         GETDENTS_64BIT_ALIGNED.
44944
44945 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
44946
44947         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
44948
44949 2010-12-10  Andreas Schwab  <schwab@redhat.com>
44950
44951         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
44952         _GNU_SOURCE.
44953
44954         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
44955         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
44956         Remove __restrict.
44957         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
44958         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
44959
44960 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
44961
44962         [BZ #11655]
44963         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
44964         are initialized.
44965
44966 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
44967
44968         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
44969
44970 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
44971
44972         * po/it.po: Update from translation team.
44973
44974 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
44975
44976         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
44977         unused codes.
44978
44979 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
44980
44981         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
44982
44983 2010-11-24  Andreas Schwab  <schwab@redhat.com>
44984
44985         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
44986         specially.
44987         (gaih_getanswer_slice): Likewise.
44988
44989 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
44990
44991         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
44992
44993 2010-05-31  Petr Baudis  <pasky@suse.cz>
44994
44995         [BZ #11149]
44996         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
44997         silently even in the chroot mode.
44998
44999 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45000
45001         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45002         last patch a bit.  Pretty printing
45003
45004 2010-05-31  Petr Baudis <pasky@suse.cz>
45005
45006         [BZ #10085]
45007         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45008         initialization of skip_initgroups_dyn.
45009
45010 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45011
45012         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45013         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45014
45015 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45016
45017         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45018
45019 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45020
45021         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45022         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45023         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45024         ($(objpfx)tst-fnmatch-mem): New rule.
45025         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45026         * posix/tst-fnmatch.c (main): Call mtrace.
45027
45028 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45029
45030         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45031         Support Intel processor model 6 and model 0x2c.
45032
45033 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45034
45035         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45036           signed comparison.
45037
45038 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45039
45040         [BZ #12205]
45041         * string/test-strncasecmp.c (check_result): New function.
45042         (do_one_test): Use it.
45043         (check1): New function.
45044         (test_main): Use it.
45045         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45046         Support strcasecmp and strncasecmp.
45047
45048 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45049
45050         [BZ #12194]
45051         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45052         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45053
45054 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45055
45056         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45057         IFUNC support.
45058         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45059         memset-x86-64.
45060         * sysdeps/x86_64/multiarch/bzero.S: New file.
45061         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45062         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45063         * sysdeps/x86_64/multiarch/memset.S: New file.
45064         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45065         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45066         Set bit_Prefer_SSE_for_memop for Intel processors.
45067         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45068         Define.
45069         (index_Prefer_SSE_for_memop): Define.
45070         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45071
45072 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45073
45074         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45075         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45076
45077 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45078
45079         [BZ #12191]
45080         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45081         (__x86_64_raw_data_cache_size_half): Likewise.
45082         (__x86_64_raw_shared_cache_size): Likewise.
45083         (__x86_64_raw_shared_cache_size_half): Likewise.
45084
45085         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45086         (__x86_64_raw_data_cache_size_half): Likewise.
45087         (__x86_64_raw_shared_cache_size): Likewise.
45088         (__x86_64_raw_shared_cache_size_half): Likewise.
45089         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45090         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45091         and __x86_64_raw_shared_cache_size_half.  Round
45092         __x86_64_data_cache_size_half, __x86_64_data_cache_size
45093         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
45094         to multiple of 256 bytes.
45095
45096 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45097
45098         [BZ #12167]
45099         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
45100         of inacessible symlinks.  Verify result of symlink before returning it.
45101         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
45102         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
45103
45104 2010-10-28  Erich Ritz  <erichritz@gmail.com>
45105
45106         * math/math.h (isinf): Fix typo in comment.
45107
45108 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
45109
45110         * po/da.po: Update from translation team.
45111
45112 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
45113
45114         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
45115         is added to the list.
45116
45117 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45118             Ulrich Drepper  <drepper@gmail.com>
45119
45120         * elf/dl-object.c (_dl_new_object): Don't append the new object to
45121         the global list here.  Move code to...
45122         (_dl_add_to_namespace_list): ...here.  New function.
45123         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
45124         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
45125         * elf/dl-load.c (lose): Don't remove the element from the list.
45126         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
45127         (_dl_map_object): Likewise.
45128
45129 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
45130
45131         [BZ #12159]
45132         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
45133         into all bytes of SSE register.
45134         Patch by Richard Li <richardpku@gmail.com>.
45135
45136 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
45137
45138         [BZ #12140]
45139         * malloc/malloc.c (_int_free): Fill correct number of bytes when
45140         perturbing.
45141
45142 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
45143
45144         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
45145         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
45146         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
45147         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
45148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
45149         submachine.
45150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
45151
45152 2010-10-22  Andreas Schwab  <schwab@redhat.com>
45153
45154         * include/dlfcn.h (__RTLD_SECURE): Define.
45155         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
45156         mode & __RTLD_SECURE instead.
45157         (open_path): Rename preloaded parameter to secure.
45158         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
45159         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
45160         * elf/dl-deps.c (openaux): Likewise.
45161         * elf/rtld.c (struct map_args): Remove is_preloaded.
45162         (map_doit): Don't use it.
45163         (dl_main): Likewise.
45164         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
45165         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
45166
45167 2010-09-09  Andreas Schwab  <schwab@redhat.com>
45168
45169         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
45170         (sysd-rules-targets): Remove duplicates.
45171         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
45172         rtld-%.$o dependency.
45173
45174 2010-10-18  Andreas Schwab  <schwab@redhat.com>
45175
45176         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
45177         _dl_map_object do it.
45178
45179 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
45180
45181         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
45182         fast fma builtins, define the macros in the C99 standard.
45183         (FP_FAST_FMAF): Likewise.
45184         (FP_FAST_FMAL): Likewise.
45185         * sysdeps/x86_64/bits/mathdef.h: Likewise.
45186
45187         * bits/mathdef.h: Update copyright year.
45188         * sysdeps/powerpc/bits/mathdef.h: Likewise.
45189
45190 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
45191
45192         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
45193         builtins, define the macros in the C99 standard.
45194         (FP_FAST_FMAF): Likewise.
45195         (FP_FAST_FMAL): Likewise.
45196         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
45197         multiply/add.
45198         (FP_FAST_FMAF): Likewise.
45199
45200 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
45201
45202         [BZ #3268]
45203         * math/libm-test.inc (fma_test): Some new testcases.
45204         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
45205         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
45206         y and infinite z.  Do multiplication by C already in long double.
45207         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
45208         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
45209         y and infinite z.  Do bitwise or of inexact bit into u.d.
45210         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
45211         * sysdeps/i386/fpu/s_fmaf.S: Removed.
45212         * sysdeps/i386/fpu/s_fma.S: Removed.
45213         * sysdeps/i386/fpu/s_fmal.S: Removed.
45214
45215 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
45216
45217         [BZ #3268]
45218         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
45219         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
45220         computation is not scheduled after fetestexcept.  Fix value
45221         of minimum denormal long double.
45222
45223 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
45224
45225         [BZ #3268]
45226         * math/libm-test.inc (fma_test): Add some more tests.
45227         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
45228         correctly.
45229
45230 2010-10-15  Andreas Schwab  <schwab@redhat.com>
45231
45232         * scripts/data/localplt-s390-linux-gnu.data: New file.
45233         * scripts/data/localplt-s390x-linux-gnu.data: New file.
45234
45235 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
45236
45237         [BZ #3268]
45238         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
45239         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
45240         instead of dbl-64.
45241         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
45242         inlines.
45243         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
45244         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
45245         if one of x and y is very large and the other is subnormal.
45246         * sysdeps/s390/fpu/s_fmaf.c: New file.
45247         * sysdeps/s390/fpu/s_fma.c: New file.
45248         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
45249         * sysdeps/powerpc/fpu/s_fma.S: New file.
45250         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
45251         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
45252         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
45253
45254 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
45255
45256         [BZ #3268]
45257         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
45258         fma tests.
45259         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
45260         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
45261         * sysdeps/i386/i686/multiarch/s_fma.c: Include
45262         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
45263         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
45264         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
45265         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
45266
45267 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
45268
45269         [BZ #12078]
45270         * posix/regcomp.c (parse_branch): One more memory leak plugged.
45271         * posix/bug-regex31.input: Add test case.
45272
45273 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45274
45275         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
45276         * posix/bug-regex31.input: New file.
45277
45278         [BZ #12078]
45279         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
45280         (parse_sub_exp): Fix last change, use postorder.
45281
45282         * posix/bug-regex31.c: New file.
45283         * posix/Makefile: Add rules to build and run bug-regex31.
45284
45285         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
45286
45287         [BZ #12078]
45288         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
45289
45290         [BZ #12108]
45291         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
45292         to have entries in sys_siglist.
45293
45294         [BZ #12093]
45295         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
45296         be NULL.
45297
45298 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
45299
45300         [BZ #3268]
45301         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
45302         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
45303         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
45304         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
45305         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
45306         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
45307         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
45308         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
45309         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
45310         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
45311         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
45312         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
45313         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
45314         * math/ftestexcept.c (fetestexcept): Likewise.
45315         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
45316         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
45317         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
45318         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
45319         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
45320         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
45321         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
45322
45323 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45324
45325         [BZ #12107]
45326         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
45327         newline.
45328
45329 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
45330
45331         * string/bug-strstr1.c: New file.
45332         * string/Makefile: Add rules to build and run bug-strstr1.
45333
45334 2010-10-05  Eric Blake  <eblake@redhat.com>
45335
45336         [BZ #12092]
45337         * string/str-two-way.h (two_way_long_needle): Always clear memory
45338         when skipping input due to the shift table.
45339
45340 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
45341
45342         [BZ #12005]
45343         * malloc/mcheck.c: Handle large requests.
45344
45345         [BZ #12077]
45346         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
45347         for strncmp and strncasecmp.
45348         * string/stratcliff.c: Add tests for strcmp and strncmp.
45349         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
45350
45351 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
45352
45353         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
45354         __set_fpscr.
45355
45356 2010-09-30  Andreas Jaeger  <aj@suse.de>
45357
45358         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
45359         (CGROUP_SUPER_MAGIC): Define.
45360         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45361         Handle btrfs and cgroup file systems.
45362         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
45363         Likewise.
45364
45365 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
45366
45367         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
45368         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
45369
45370 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45371
45372         [BZ #12067]
45373         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
45374         trying to locate the ELF header.
45375
45376 2010-09-27  Andreas Schwab  <schwab@redhat.com>
45377
45378         [BZ #11611]
45379         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
45380         Mask out sign-bit copies when constructing f_fsid.
45381
45382 2010-09-24  Petr Baudis <pasky@suse.cz>
45383
45384         * debug/stack_chk_fail_local.c: Add missing licence exception.
45385         * debug/warning-nop.c: Likewise.
45386
45387 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
45388
45389         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
45390         implementing getdents64 using getdents syscall, set d_type if
45391         __ASSUME_GETDENTS32_D_TYPE.
45392
45393 2010-09-16  Andreas Schwab  <schwab@redhat.com>
45394
45395         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
45396         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
45397
45398 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
45399
45400         [BZ #12037]
45401         * posix/unistd.h: Undo change of feature selection for ftruncate from
45402         2010-01-11.
45403
45404 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
45405
45406         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
45407         detection.
45408
45409 2010-09-20  Andreas Schwab  <schwab@redhat.com>
45410
45411         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
45412         fanotify_mark.
45413         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
45414
45415 2010-09-14  Andreas Schwab  <schwab@redhat.com>
45416
45417         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
45418         variables after CHECK_SP call.
45419         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
45420
45421 2010-09-13  Andreas Schwab  <schwab@redhat.com>
45422             Ulrich Drepper  <drepper@redhat.com>
45423
45424         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
45425         re-relocationg ld.so.
45426         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
45427         _dl_init_paths call.
45428         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
45429         here anymore.
45430
45431 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
45432
45433         * resolv/res_init.c (__res_vinit): Count the default server we added.
45434
45435 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
45436             Ulrich Drepper  <drepper@redhat.com>
45437
45438         [BZ #11968]
45439         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
45440         (____longjmp_chk): Use %ebx for saving value across system call.
45441         Add unwind info.
45442
45443 2010-09-06  Andreas Schwab  <schwab@redhat.com>
45444
45445         * manual/Makefile: Don't mix pattern rules with normal rules.
45446
45447 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
45448
45449         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
45450         operation.
45451         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
45452         * libio/iofopncook.c (_IO_cookie_init): Likewise.
45453         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
45454         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
45455         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
45456         Likewise.
45457
45458 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
45459
45460         [BZ #11979]
45461         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
45462         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
45463
45464 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
45465
45466         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
45467         * sysdeps/x86_64/addmul_1.S: Likewise.
45468         * sysdeps/x86_64/lshift.S: Likewise.
45469         * sysdeps/x86_64/mul_1.S: Likewise.
45470         * sysdeps/x86_64/rshift.S: Likewise.
45471         * sysdeps/x86_64/sub_n.S: Likewise.
45472         * sysdeps/x86_64/submul_1.S: Likewise.
45473
45474 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45475
45476         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
45477         Define __sched_param instead of SCHED_* and sched_param when
45478         <bits/sched.h> is included with __need_schedparam defined.
45479         * bits/sched.h [__need_schedparam]
45480         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
45481         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
45482         (__defined_schedparam): Define to 1.
45483         (__sched_param): New structure, identical to sched_param.
45484         (__need_schedparam): Undefine.
45485
45486 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
45487
45488         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
45489         (epoll_create1): Declare.
45490
45491         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
45492
45493 2010-08-31  Andreas Schwab  <schwab@redhat.com>
45494
45495         [BZ #7066]
45496         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
45497         shifting retval into place.
45498
45499 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
45500
45501         * nis/rpcsvc/nis.h: Update copyright notice.
45502         * nis/rpcsvc/nis.x: Likewise.
45503         * nis/rpcsvc/nis_callback.h: Likewise.
45504         * nis/rpcsvc/nis_callback.x: Likewise.
45505         * nis/rpcsvc/nis_object.x: Likewise.
45506         * nis/rpcsvc/nis_tags.h: Likewise.
45507         * nis/rpcsvc/yp.h: Likewise.
45508         * nis/rpcsvc/yp.x: Likewise.
45509         * nis/rpcsvc/ypupd.h: Likewise.
45510         * nis/yp_xdr.c: Likewise.
45511         * nis/ypupdate_xdr.c: Likewise.
45512
45513         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
45514         mainly the body of pmap_getport.  Add parameters to specify timeouts.
45515         (pmap_getport): Use __libc_rpc_getport.
45516         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
45517         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
45518         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
45519
45520 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
45521
45522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
45523         fanotify_mark.
45524
45525 2010-08-27  Roland McGrath  <roland@redhat.com>
45526
45527         * sysdeps/i386/i686/multiarch/Makefile
45528         (CFLAGS-varshift.c): New variable.
45529
45530 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
45531
45532         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
45533         * sysdeps/i386/i686/multiarch/varshift.c: New file.
45534
45535         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
45536
45537         * sysdeps/x86_64/strlen.S: Minimal code improvement.
45538
45539 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
45540
45541         * sysdeps/x86_64/strlen.S: Unroll the loop.
45542         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45543         strlen-sse2 strlen-sse2-bsf.
45544         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
45545         __strlen_no_bsf if bit_Slow_BSF is set.
45546         (__strlen_sse42): Removed.
45547         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
45548         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
45549
45550 2010-08-25  Roland McGrath  <roland@redhat.com>
45551
45552         * sysdeps/x86_64/multiarch/varshift.S: File removed.
45553         * sysdeps/x86_64/multiarch/varshift.c: New file.
45554         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
45555         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
45556         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
45557         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
45558
45559 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
45560
45561         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
45562         strlen-sse2 strlen-sse2-bsf.
45563         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
45564         __strlen_sse2_bsf if bit_Slow_BSF is unset.
45565         (__strlen_sse2): Removed.
45566         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
45567         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
45568         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45569         bit_Slow_BSF for Atom.
45570         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
45571         (index_Slow_BSF): Define.
45572         (HAS_SLOW_BSF): Define.
45573
45574 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
45575
45576         [BZ #10851]
45577         * resolv/res_init.c (__res_vinit): When no server address at all
45578         is given default to loopback.
45579
45580 2010-08-24  Roland McGrath  <roland@redhat.com>
45581
45582         * configure.in: Remove config-name.h generation.
45583         * configure: Regenerated.
45584         * config-name.in: File removed.
45585         * scripts/config-uname.sh: New file.
45586         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
45587         ($(objdir)config-name.h): New target.
45588
45589         * sunrpc/rpc_parse.h: Avoid nested comment.
45590
45591 2010-08-24  Richard Henderson  <rth@redhat.com>
45592             Ulrich Drepper  <drepper@redhat.com>
45593             H.J. Lu  <hongjiu.lu@intel.com>
45594
45595         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
45596         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
45597         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
45598         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
45599         _mm_alignr_epi8 with _mm_loadu_si128.
45600         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
45601         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
45602         (__m128i_shift_right): Removed.
45603         * sysdeps/i386/i686/multiarch/varshift.h: New file.
45604         * sysdeps/i386/i686/multiarch/varshift.S: New file.
45605         * sysdeps/x86_64/multiarch/varshift.h: New file.
45606         * sysdeps/x86_64/multiarch/varshift.S: New file.
45607
45608 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
45609
45610         * configure.in: Move assembler checks to before sysdep dir checking.
45611
45612 2010-08-20  Petr Baudis  <pasky@suse.cz>
45613
45614         * LICENSES: Sync the sunrpc license.
45615
45616 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
45617
45618         * sunrpc/auth_des.c: Update copyright notice once again.
45619         * sunrpc/auth_none.c: Likewise.
45620         * sunrpc/auth_unix.c: Likewise.
45621         * sunrpc/authdes_prot.c: Likewise.
45622         * sunrpc/authuxprot.c: Likewise.
45623         * sunrpc/bindrsvprt.c: Likewise.
45624         * sunrpc/clnt_gen.c: Likewise.
45625         * sunrpc/clnt_perr.c: Likewise.
45626         * sunrpc/clnt_raw.c: Likewise.
45627         * sunrpc/clnt_simp.c: Likewise.
45628         * sunrpc/clnt_tcp.c: Likewise.
45629         * sunrpc/clnt_udp.c: Likewise.
45630         * sunrpc/clnt_unix.c: Likewise.
45631         * sunrpc/des_crypt.c: Likewise.
45632         * sunrpc/des_soft.c: Likewise.
45633         * sunrpc/get_myaddr.c: Likewise.
45634         * sunrpc/getrpcport.c: Likewise.
45635         * sunrpc/key_call.c: Likewise.
45636         * sunrpc/key_prot.c: Likewise.
45637         * sunrpc/openchild.c: Likewise.
45638         * sunrpc/pm_getmaps.c: Likewise.
45639         * sunrpc/pm_getport.c: Likewise.
45640         * sunrpc/pmap_clnt.c: Likewise.
45641         * sunrpc/pmap_prot.c: Likewise.
45642         * sunrpc/pmap_prot2.c: Likewise.
45643         * sunrpc/pmap_rmt.c: Likewise.
45644         * sunrpc/rpc/auth.h: Likewise.
45645         * sunrpc/rpc/auth_unix.h: Likewise.
45646         * sunrpc/rpc/clnt.h: Likewise.
45647         * sunrpc/rpc/des_crypt.h: Likewise.
45648         * sunrpc/rpc/key_prot.h: Likewise.
45649         * sunrpc/rpc/netdb.h: Likewise.
45650         * sunrpc/rpc/pmap_clnt.h: Likewise.
45651         * sunrpc/rpc/pmap_prot.h: Likewise.
45652         * sunrpc/rpc/pmap_rmt.h: Likewise.
45653         * sunrpc/rpc/rpc.h: Likewise.
45654         * sunrpc/rpc/rpc_des.h: Likewise.
45655         * sunrpc/rpc/rpc_msg.h: Likewise.
45656         * sunrpc/rpc/svc.h: Likewise.
45657         * sunrpc/rpc/svc_auth.h: Likewise.
45658         * sunrpc/rpc/types.h: Likewise.
45659         * sunrpc/rpc/xdr.h: Likewise.
45660         * sunrpc/rpc_clntout.c: Likewise.
45661         * sunrpc/rpc_cmsg.c: Likewise.
45662         * sunrpc/rpc_common.c: Likewise.
45663         * sunrpc/rpc_cout.c: Likewise.
45664         * sunrpc/rpc_dtable.c: Likewise.
45665         * sunrpc/rpc_hout.c: Likewise.
45666         * sunrpc/rpc_main.c: Likewise.
45667         * sunrpc/rpc_parse.c: Likewise.
45668         * sunrpc/rpc_parse.h: Likewise.
45669         * sunrpc/rpc_prot.c: Likewise.
45670         * sunrpc/rpc_sample.c: Likewise.
45671         * sunrpc/rpc_scan.c: Likewise.
45672         * sunrpc/rpc_scan.h: Likewise.
45673         * sunrpc/rpc_svcout.c: Likewise.
45674         * sunrpc/rpc_tblout.c: Likewise.
45675         * sunrpc/rpc_util.c: Likewise.
45676         * sunrpc/rpc_util.h: Likewise.
45677         * sunrpc/rpcinfo.c: Likewise.
45678         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
45679         * sunrpc/rpcsvc/key_prot.x: Likewise.
45680         * sunrpc/rpcsvc/klm_prot.x: Likewise.
45681         * sunrpc/rpcsvc/mount.x: Likewise.
45682         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
45683         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
45684         * sunrpc/rpcsvc/rex.x: Likewise.
45685         * sunrpc/rpcsvc/rstat.x: Likewise.
45686         * sunrpc/rpcsvc/rusers.x: Likewise.
45687         * sunrpc/rpcsvc/sm_inter.x: Likewise.
45688         * sunrpc/rpcsvc/spray.x: Likewise.
45689         * sunrpc/rpcsvc/yppasswd.x: Likewise.
45690         * sunrpc/rtime.c: Likewise.
45691         * sunrpc/svc.c: Likewise.
45692         * sunrpc/svc_auth.c: Likewise.
45693         * sunrpc/svc_authux.c: Likewise.
45694         * sunrpc/svc_raw.c: Likewise.
45695         * sunrpc/svc_run.c: Likewise.
45696         * sunrpc/svc_simple.c: Likewise.
45697         * sunrpc/svc_tcp.c: Likewise.
45698         * sunrpc/svc_udp.c: Likewise.
45699         * sunrpc/svc_unix.c: Likewise.
45700         * sunrpc/svcauth_des.c: Likewise.
45701         * sunrpc/xcrypt.c: Likewise.
45702         * sunrpc/xdr.c: Likewise.
45703         * sunrpc/xdr_array.c: Likewise.
45704         * sunrpc/xdr_float.c: Likewise.
45705         * sunrpc/xdr_mem.c: Likewise.
45706         * sunrpc/xdr_rec.c: Likewise.
45707         * sunrpc/xdr_ref.c: Likewise.
45708         * sunrpc/xdr_sizeof.c: Likewise.
45709         * sunrpc/xdr_stdio.c: Likewise.
45710
45711         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
45712         handling.
45713
45714 2010-08-19  Andreas Schwab  <schwab@redhat.com>
45715
45716         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
45717
45718 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
45719
45720         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
45721         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
45722         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
45723         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
45724         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
45725         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
45726         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
45727         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
45728         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
45729         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
45730         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
45731         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
45732         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
45733         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
45734
45735 2010-07-26  Anton Blanchard  <anton@samba.org>
45736
45737         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
45738         * malloc/arena.c (heap_trim): Likewise.
45739
45740 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
45741
45742         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
45743         here.  Not...
45744         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
45745         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
45746
45747 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
45748
45749         * sysdeps/i386/elf/Makefile: New file.
45750
45751 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
45752
45753         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
45754         from fanotify_init.
45755         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
45756         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
45757
45758 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
45759
45760         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
45761         of strncasecmp_l.
45762         * sysdeps/multiarch/strcmp.S: Likewise.
45763
45764 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
45765
45766         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
45767         strncase_l-nonascii.
45768         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
45769         Add strncase_l-ssse3.
45770         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
45771         * sysdeps/x86_64/strcmp.S: Likewise.
45772         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
45773         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
45774         * sysdeps/x86_64/strncase.S: New file.
45775         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
45776         * sysdeps/x86_64/strncase_l.S: New file.
45777         * string/Makefile (strop-tests): Add strncasecmp.
45778         * string/test-strncasecmp.c: New file.
45779
45780         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
45781         warning.
45782
45783         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
45784         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
45785
45786 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
45787
45788         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
45789
45790 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
45791
45792         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
45793         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
45794         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
45795
45796 2010-05-01  Alan Modra  <amodra@gmail.com>
45797
45798         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
45799         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
45800         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
45801         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
45802         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
45803         tidying.  Don't tail-call __sigjmp_save for static lib.
45804         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
45805         save location.
45806         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
45807         (CALL_MCOUNT): Add eh info, and nop after bl.
45808         (TAIL_CALL_SYSCALL_ERROR): New macro.
45809         (PSEUDO_RET): Use it.
45810         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
45811         Correct save location of integer regs and cr.
45812         (_dl_profile_resolve): Correct cr save location.  Delete nops
45813         after bl when SHARED.  Reduce cfi size a little by better
45814         placement of cfi directives.
45815         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
45816         make a stack frame.  Instead use parm save area as a temp.
45817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
45818         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
45819         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
45820         Don't make a stack frame for parent, use parm save area.
45821         Increase child stack frame to 112 bytes.  Don't save unused reg,
45822         and adjust reg usage.  Set up cfi on error recovery and
45823         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
45824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
45825         (__makecontext): Add dummy nop after jump to exit.
45826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
45827         Use correct parm save area and cr save, reduce stack frame.
45828         Correct cfi for possible PSEUDO_RET frame setup.
45829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
45830         Branch to local label emitted by PSEUDO_RET rather than
45831         __syscall_error.
45832
45833 2010-08-12  Andreas Schwab  <schwab@redhat.com>
45834
45835         [BZ #11904]
45836         * locale/programs/locale.c (print_assignment): New function.
45837         (show_locale_vars): Use it.
45838
45839 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
45840
45841         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
45842         field.
45843         (struct statfs64): Likewise.
45844         (_STATFS_F_FLAGS): Define.
45845         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
45846         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45847         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
45848         (ST_VALID): Define locally.
45849         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
45850         __statvfs_getflags, use the provided value.
45851         * sysdeps/unix/sysv/linux/kernel-features.h: Define
45852         __ASSUME_STATFS_F_FLAGS.
45853
45854         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
45855
45856         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
45857         Add sys/fanotify.h.
45858         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
45859         fanotify_mask for GLIBC_2.13.
45860         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
45861         fanotify_init and fanotify_mark.
45862         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
45863         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
45864
45865         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
45866         Add prlimit.
45867         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
45868         prlimit64 for GLIBC_2.13.
45869         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
45870         prlimit64.
45871         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
45872         syscall.
45873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
45874         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
45875         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
45876         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
45877         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
45878         add prlimit alias.
45879         * sysdeps/unix/sysv/linux/prlimit.c: New file.
45880
45881         [BZ #11903]
45882         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
45883         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
45884
45885         * nss/Makefile: Add rules to build and run tst-nss-test1.
45886         * shlib-versions: Add entry for libnss_test1.
45887         * nss/nss_test1.c: New file.
45888         * nss/tst-nss-test1.c: New file.
45889
45890         * nss/nsswitch.c (__nss_database_custom): Define new variable.
45891         (__nss_configure_lookup): Set appropriate entry in
45892         __nss_configure_lookup to true.
45893         * nss/nsswitch.h: Define enum with indeces of databases in
45894         databases and __nss_database_custom arrays.  Declare
45895         __nss_database_custom.
45896         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
45897         to avoid using nscd when custom rules are installed.
45898         * nss/getXXbyYY_r.c: Likewise.
45899         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
45900
45901         * nss/nss_files/files-parse.c: Whitespace fixes.
45902
45903 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
45904
45905         [BZ #11883]
45906         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
45907         * posix/fnmatch_loop.c: Likewise.
45908
45909 2010-07-17  Andi Kleen  <ak@linux.intel.com>
45910
45911         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
45912         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
45913         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
45914         * Versions.def [GLIBC_2.13]: Add.
45915
45916 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
45917
45918         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
45919         Also fail if tpwd after pwuid call is NULL.
45920
45921 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45922
45923         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
45924         when converting to ms.
45925
45926 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45927
45928         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
45929         EOPNOTSUPP errors with ENOTTY.
45930         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
45931         EOPNOTSUPP errors with ENOTTY.
45932
45933 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
45934
45935         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
45936         Add strcasecmp_l-ssse3.
45937         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
45938         strcasecmp.
45939         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
45940         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
45941         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
45942
45943 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
45944
45945         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
45946
45947         * string/Makefile (strop-tests): Add strcasecmp.
45948         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
45949         strcasecmp_l-nonascii.
45950         (gen-as-const-headers): Add locale-defines.sym.
45951         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
45952         * sysdeps/x86_64/strcasecmp.S: New file.
45953         * sysdeps/x86_64/strcasecmp_l.S: New file.
45954         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
45955         * sysdeps/x86_64/locale-defines.sym: New file.
45956         * string/test-strcasecmp.c: New file.
45957
45958         * string/test-strcasestr.c: Test both ends of the range of characters.
45959         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
45960
45961 2010-07-29  Roland McGrath  <roland@redhat.com>
45962
45963         [BZ #11856]
45964         * manual/locale.texi (Yes-or-No Questions): Fix example code.
45965
45966 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
45967
45968         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
45969         for ld.so.
45970
45971 2010-07-27  Andreas Schwab  <schwab@redhat.com>
45972
45973         * manual/memory.texi (Malloc Tunable Parameters): Document
45974         M_PERTURB.
45975
45976 2010-07-26  Roland McGrath  <roland@redhat.com>
45977
45978         [BZ #11840]
45979         * configure.in (-fgnu89-inline check): Set and substitute
45980         gnu89_inline, not libc_cv_gnu89_inline.
45981         * configure: Regenerated.
45982         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
45983
45984 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
45985
45986         * string/test-strnlen.c: New file.
45987         * string/Makefile (strop-tests): Add strnlen.
45988         * string/tester.c (test_strnlen): Add a few more test cases.
45989         * string/tst-strlen.c: Better error reporting.
45990
45991         * sysdeps/x86_64/strnlen.S: New file.
45992
45993 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
45994
45995         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
45996         lower-latency instructions.
45997
45998 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
45999
46000         * string/test-strcasestr.c: New file.
46001         * string/test-strstr.c: New file.
46002         * string/Makefile (strop-tests): Add strstr and strcasestr.
46003         * string/str-two-way.h: Don't undefine MAX.
46004         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46005
46006 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46007
46008         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46009         strcasestr-nonascii.
46010         (CFLAGS-strcasestr-nonascii.c): Define.
46011         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46012         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46013         Remove unused attribute.
46014
46015 2010-07-20  Roland McGrath  <roland@redhat.com>
46016
46017         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46018         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46019         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46020         like LD_HWCAP_MASK can disable hwcaps.
46021
46022 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46023
46024         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46025
46026 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46027
46028         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46029         call in strcasestr.
46030         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46031         __strcasestr_sse42_nonascii.
46032         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46033         strcasestr-nonascii.c.
46034         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46035
46036 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46037
46038         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46039         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46040         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46041         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46042
46043 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46044
46045         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46046         fcntl.
46047
46048 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46049
46050         [BZ #11577]
46051         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46052         dl_signal_cerror.
46053
46054 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46055
46056         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46057         _PC_PIPE_BUF using F_GETPIPE_SZ.
46058
46059 2010-07-05  Roland McGrath  <roland@redhat.com>
46060
46061         * manual/arith.texi (Rounding Functions): Fix rint description
46062         implicit in round description.
46063
46064 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46065
46066         * elf/Makefile: Fix linking for a few tests to make recent linker
46067         happy.
46068
46069 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46070
46071         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46072         $(common-objpfx)libc_nonshared.a.
46073
46074 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46075
46076         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46077         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46078         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46079         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46080         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46081         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46082         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46083         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46090         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
46093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
46094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
46096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
46098         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
46099         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
46100         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
46101         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
46102         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
46103         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
46104         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
46105         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
46106         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
46107         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
46108         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
46109         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
46110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
46111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
46112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
46113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
46114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
46115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
46116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
46117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
46118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
46119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
46120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
46121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
46122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
46123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
46124
46125 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
46126
46127         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
46128         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
46129         * string/memmove.c (memmove): Renamed to ...
46130         (MEMMOVE): ...this.  Default to memmove.
46131         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
46132         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
46133         (END_CHK): Define.
46134         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46135         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
46136         mempcpy-ssse3-back memmove-ssse3-back.
46137         * sysdeps/x86_64/multiarch/bcopy.S: New file .
46138         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
46139         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
46140         * sysdeps/x86_64/multiarch/memcpy.S: New file.
46141         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
46142         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
46143         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
46144         * sysdeps/x86_64/multiarch/memmove.c: New file.
46145         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
46146         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
46147         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
46148         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
46149         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
46150         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
46151         Define.
46152         (index_Fast_Copy_Backward): Define.
46153         (HAS_ARCH_FEATURE): Define.
46154         (HAS_FAST_REP_STRING): Define.
46155         (HAS_FAST_COPY_BACKWARD): Define.
46156
46157 2010-06-21  Andreas Schwab  <schwab@redhat.com>
46158
46159         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46160         Restore proper fallback handling.
46161
46162 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
46163
46164         [BZ #11701]
46165         * posix/group_member.c (__group_member): Correct checking loop.
46166
46167         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
46168         OOM in getpwuid_r correctly.  Return error number when the caller
46169         should return, otherwise -1.
46170         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
46171         call returning > 0 value.
46172         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
46173
46174 2010-06-07  Andreas Schwab  <schwab@redhat.com>
46175
46176         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
46177         libc_nonshared.a from targets in modules-names.
46178
46179 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
46180
46181         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
46182         requires it.
46183
46184 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
46185
46186         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
46187         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
46188         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
46189         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
46190
46191 2010-06-02  Andreas Schwab  <schwab@redhat.com>
46192
46193         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
46194
46195 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
46196
46197         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
46198         and F_GETPIPE_SZ.
46199         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46200         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46201         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46202         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46203         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46204         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
46205
46206 2010-06-14  Roland McGrath  <roland@redhat.com>
46207
46208         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
46209
46210 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
46211
46212         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
46213         __REDIRECT followed by __THROW.
46214         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
46215         * posix/getopt.h (getopt): Likewise.
46216
46217 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46218
46219         * hurd/lookup-at.c (__file_name_lookup_at): Accept
46220         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
46221         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
46222         in AT_FLAGS.
46223         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
46224         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
46225
46226 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
46227
46228         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
46229
46230 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
46231
46232         [BZ #11640]
46233         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46234         Properly check family and model.
46235
46236 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
46237
46238         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
46239
46240 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
46241
46242         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
46243
46244 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
46245
46246         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
46247         symbol reference.
46248
46249 2010-05-19  Andreas Schwab  <schwab@redhat.com>
46250
46251         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
46252         symbol reference.
46253
46254 2010-05-21  Andreas Schwab  <schwab@redhat.com>
46255
46256         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
46257         and internal_recvmmsg.
46258         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
46259         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
46260         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
46261         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
46262
46263         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
46264         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
46265         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
46266
46267 2010-05-20  Andreas Schwab  <schwab@redhat.com>
46268
46269         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
46270
46271 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
46272
46273         POWER7 optimizations.
46274         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
46275         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
46276
46277 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
46278
46279         * version.h: Update for 2.13 development version.
46280
46281 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
46282
46283         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
46284         exceptions.  Return 0.
46285
46286 2010-05-07  Roland McGrath  <roland@redhat.com>
46287
46288         * elf/ldconfig.c (main): Add a const.
46289
46290 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
46291
46292         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
46293         (args_options): Add no-idn option.
46294         (ahosts_keys_int): Add idn_flags to ai_flags.
46295         (parse_option): Handle 'i' option to clear idn_flags.
46296
46297         * malloc/malloc.c (_int_free): Possible race in the most recently
46298         added check.  Only act on the data if no current modification
46299         happened.
46300
46301 See ChangeLog.17 for earlier changes.