Remove sysdeps/x86_64/multiarch/rtld-strlen.S
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
4
5 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
6
7         [BZ #17069]
8         * posix/regcomp.c (parse_reg_exp): Deallocate partially
9         constructed tree before returning error.
10         * posix/bug-regexp36.c: Expand test case.
11
12 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
13
14         [BZ #6803]
15         * math/libm-test.inc (scalbln_test_date):
16         Add errno expectations.
17         * math/w_scalblnf.c: New File.
18         Add wrapper which checks for setting errno to ERANGE.
19         Add weak_alias for corresponding scalbln function.
20         * math/w_scalbln.c: Likewise.
21         * math/w_scalblnl.c: Likewise.
22         * math/Makefile (libm-calls): Add w_scalbln.
23         * sysdeps/ieee754/flt-32/s_scalblnf.c:
24         Remove weak_alias for corresponding scalbln function.
25         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
26         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
27         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
28         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
29         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
30         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
31         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
32         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
33         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
34         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
35         Remove long_double_symbol for scalblnl function in libm, libc.
36         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
37         Add wrapper which checks for setting errno to ERANGE.
38         Add long_double_symbol for scalblnl function in libm, libc.
39         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
40         Remove long_double_symbol for scalblnl in libm.
41         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
42         Add wrapper which checks for setting errno to ERANGE.
43         Add long_double_symbol for scalblnl function in libm.
44         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
45         Do not use wrapper because of own implementation.
46
47 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
48
49         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
50         3 bytes for __pad1 for x32.
51         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
52
53 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
54             H.J. Lu  <hongjiu.lu@intel.com>
55
56         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
57         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
58         * sysdeps/x86_64/multiarch/memset.S: Likewise.
59         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
60         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
61
62 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
63
64         [BZ #17069]
65         * posix/regcomp.c (parse_expression): Deallocate partially
66         constructed tree before returning error.
67         * posix/Makefile.c (tests): Add bug-regex36.
68         (generated): Add bug-regex36.mtrace.
69         (tests-special): Add $(objpfx)bug-regex36-mem.out
70         (bug-regex36-ENV): New variable.
71         ($(objpfx)bug-regex36-mem.out): New rule.
72         * posix/bug-regex36.c: New file.
73
74 2014-06-19  Will Newton  <will.newton@linaro.org>
75
76         * malloc/malloc.c (systrim): If extra is zero then return
77         early.
78
79 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
80
81         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
82
83 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
84
85         * sysdeps/aarch64/strchr.S: New file.
86
87 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
88
89         [BZ #17022]
90         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
91         from arguments -2 or below.
92         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
93         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
94
95 2014-06-18  Andreas Schwab  <schwab@suse.de>
96
97         [BZ #17062]
98         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
99         of a bracket expr not to run off the end of the string.
100         * posix/Makefile (tests): Add tst-fnmatch3.
101         * posix/tst-fnmatch3.c: New file.
102
103 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
104
105         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
106         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
107         [$(cross-compiling) = no]: Likewise.
108         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
109         [$(cross-compiling) = no]: Likewise.
110
111 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
112
113         [BZ #17031]
114         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
115         double, adjusted for any remainder from the high double.
116         * math/libm-test.inc (nearbyint): Add tests.
117         (rint): Likewise.
118
119 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
120
121         * nptl/sysdeps/powerpc/Makefile: Moved ...
122         * sysdeps/powerpc/nptl/Makefile: ... here.
123         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
124         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
125         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
126         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
127         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
128         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
129         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
130         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
131         * nptl/sysdeps/powerpc/tls.h: Moved ...
132         * sysdeps/powerpc/nptl/tls.h: ... here.
133
134 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
135
136         [BZ #16681]
137         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
138         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
139         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
140         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
141         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
142         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
143         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
144         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
145         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
146
147 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
148
149         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
150
151 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
152
153         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
154         defined operator.
155
156         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
157         $TIMEOUTFACTOR.
158
159 2014-06-16  Florian Weimer  <fweimer@redhat.com>
160
161         [BZ #17058]
162         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
163         non-executed part of the test.
164
165 2014-06-16  Andreas Schwab  <schwab@suse.de>
166
167         * string/bits/string2.h (strdup, strndup): Update feature guard.
168
169 2014-06-14  David S. Miller  <davem@davemloft.net>
170
171         * sysdeps/sparc/fpu/libm-test-ulps: Update.
172
173 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
174
175         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
176         that was previously under [RESET_PID].
177         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
178
179         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
180         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
181         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
182         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
183         (__libc_vfork): New strong alias.
184         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
185
186 2014-06-14 Andi Kleen  <ak@linux.intel.com>
187
188         * sysdeps/generic/elide.h: New file.
189
190 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
191
192         * Makefile (installed-headers): Adjust path of pthread.h header.
193
194 2014-06-13  Roland McGrath  <roland@hack.frob.com>
195
196         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
197         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
198         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
199         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
200
201         * nptl/sysdeps/s390/Makefile: Moved ...
202         * sysdeps/s390/nptl/Makefile: ... here.
203         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
204         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
205         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
206         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
207         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
208         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
209         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
210         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
211         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
212         * sysdeps/s390/nptl/pthreaddef.h: ... here.
213         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
214         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
215         * nptl/sysdeps/s390/tls.h: Moved ...
216         * sysdeps/s390/nptl/tls.h: ... here.
217
218         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
219         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
220
221 2014-06-13  David S. Miller  <davem@davemloft.net>
222
223         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
224         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
225         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
226         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
227         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
228         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
229         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
230         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
231         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
232         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
233         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
234         Remove RESET_PID cpp guards.
235         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
236         Remove RESET_PID cpp guards.
237         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
238
239 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
240
241         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
242         __sp to uintptr_t.
243
244 2014-06-13  Andi Kleen  <ak@linux.intel.com>
245
246         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
247         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
248         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
249         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
250         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
251         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
252         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
253         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
254         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
255         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
256         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
257         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
258         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
259         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
260         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
261         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
262         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
263         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
264         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
265         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
266
267         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
268         (pthread_rwlock_rdlock): Add elision.
269         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
270         (pthread_rwlock_wrlock): Add elision.
271         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
272         (pthread_rwlock_trywrlock): Add elision.
273         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
274         (pthread_rwlock_tryrdlock): Add elision.
275         * nptl/pthread_rwlock_unlock.c: Include elide.h.
276         (pthread_rwlock_tryrdlock): Add elision unlock.
277         * nptl/sysdeps/pthread/pthread.h:
278         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
279         (PTHREAD_RWLOCK_INITIALIZER,
280         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
281         Handle new elision field.
282         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
283         * sysdeps/arm/nptl/bits/pthreadtypes.h
284         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
285         * sysdeps/sh/nptl/bits/pthreadtypes.h
286         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
287         * sysdeps/tile/nptl/bits/pthreadtypes.h
288         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
289         * sysdeps/a/nptl/bits/pthreadtypes.h
290         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
291         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
292         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
293         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
294         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
295         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
296         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
297         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
298         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
299         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
300         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
301         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
302         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
303         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
304         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
305         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
306         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
307         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
308         (elision_init): Set try_xbegin to zero when no RTM.
309         * sysdeps/x86/nptl/bits/pthreadtypes.h
310         (pthread_rwlock_t): Change __pad1 to __rwelision.
311         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
312
313 2014-06-13  Andi Kleen  <ak@linux.intel.com>
314
315         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
316         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
317         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
318         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
319
320 2014-06-13  Meador Inge  <meadori@codesourcery.com>
321
322         [BZ #16996]
323         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
324         that the cached result has been set before returning it.
325
326 2014-06-12  Roland McGrath  <roland@hack.frob.com>
327
328         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
329         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
330         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
331         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
332         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
333         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
334
335         * nptl/sysdeps/sparc/Makefile: Moved ...
336         * sysdeps/sparc/nptl/Makefile: ... here.
337         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
338         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
339         * nptl/sysdeps/sparc/tls.h: Moved ...
340         * sysdeps/sparc/nptl/tls.h: ... here.
341         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
342         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
343         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
344         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
345         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
346         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
347         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
348         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
349         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
350         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
351         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
352         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
353         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
354         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
355         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
356         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
357         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
358         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
359         Update #include.
360         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
361         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
362         Update #include.
363         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
364         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
365         Update #include.
366         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
367         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
368         Update #include.
369
370         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
371
372         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
373         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
374
375         * sysdeps/pthread/posix-timer.h: Include <list.h>.
376         (struct list_links): Type removed.
377         (struct thread_node, struct timer_node): Replace struct list_links
378         with struct list_head.
379         (list_unlink_ip): Likewise.
380         * sysdeps/pthread/timer_routines.c
381         (timer_free_list, thread_free_list, thread_active_list): Likewise.
382         (list_append, list_insbefore): Likewise.
383         (list_init): Function removed.
384         (thread_init, init_module): Use INIT_LIST_HEAD instead.
385         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
386         * sysdeps/pthread/Makefile: ... here, new file.
387
388         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
389         * sysdeps/nptl/Implies: ... here.
390         * sysdeps/unix/sysv/linux/Implies: Add nptl.
391         * nptl/sysdeps/pthread/list.h: Moved ...
392         * include/list.h: ... here.
393         * nptl/sysdeps/pthread/createthread.c: Moved ...
394         * nptl/createthread.c: ... here.
395         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
396         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
397         * nptl/pt-longjmp.c: ... here.
398         * nptl/sysdeps/pthread/Makefile: Moved ...
399         * sysdeps/nptl/Makefile: ... here.
400         * nptl/sysdeps/pthread/Subdirs: Moved ...
401         * sysdeps/nptl/Subdirs: ... here.
402         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
403         * sysdeps/nptl/aio_misc.h: ... here.
404         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
405         * sysdeps/nptl/bits/libc-lock.h: ... here.
406         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
407         * sysdeps/nptl/bits/libc-lockP.h: ... here.
408         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
409         * sysdeps/nptl/bits/stdio-lock.h: ... here.
410         * nptl/sysdeps/pthread/configure: Moved ...
411         * sysdeps/nptl/configure: ... here.
412         * nptl/sysdeps/pthread/configure.ac: Moved ...
413         * sysdeps/nptl/configure.ac: ... here.
414         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
415         * sysdeps/nptl/gai_misc.h: ... here.
416         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
417         * sysdeps/nptl/librt-cancellation.c: ... here.
418         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
419         * sysdeps/nptl/malloc-machine.h: ... here.
420         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
421         * sysdeps/nptl/pthread-functions.h: ... here.
422         * nptl/sysdeps/pthread/pthread.h: Moved ...
423         * sysdeps/nptl/pthread.h: ... here.
424         * nptl/sysdeps/pthread/setxid.h: Moved ...
425         * sysdeps/nptl/setxid.h: ... here.
426         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
427         * sysdeps/nptl/sigfillset.c: ... here.
428         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
429         * sysdeps/nptl/tcb-offsets.h: ... here.
430         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
431         * sysdeps/nptl/tst-mqueue8x.c: ... here.
432         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
433         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
434         * nptl/sysdeps/pthread/allocalim.h: Moved ...
435         * sysdeps/pthread/allocalim.h: ... here.
436         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
437         * sysdeps/pthread/bits/sigthread.h: ... here.
438         * nptl/sysdeps/pthread/flockfile.c: Moved ...
439         * sysdeps/pthread/flockfile.c: ... here.
440         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
441         * sysdeps/pthread/ftrylockfile.c: ... here.
442         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
443         * sysdeps/pthread/funlockfile.c: ... here.
444         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
445         * sysdeps/pthread/posix-timer.h: ... here.
446         * nptl/sysdeps/pthread/timer_create.c: Moved ...
447         * sysdeps/pthread/timer_create.c: ... here.
448         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
449         * sysdeps/pthread/timer_delete.c: ... here.
450         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
451         * sysdeps/pthread/timer_getoverr.c: ... here.
452         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
453         * sysdeps/pthread/timer_gettime.c: ... here.
454         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
455         * sysdeps/pthread/timer_routines.c: ... here.
456         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
457         * sysdeps/pthread/timer_settime.c: ... here.
458         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
459         * sysdeps/pthread/tst-timer.c: ... here.
460         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
461         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
462
463         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
464         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
465
466         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
467         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
468         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
469         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
470         Update #include target.
471         * nptl/sysdeps/i386/i686/Makefile: Moved ...
472         * sysdeps/i386/i686/nptl/Makefile: ... here.
473         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
474         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
475         Update #include target.
476         * nptl/sysdeps/i386/i686/tls.h: Moved ...
477         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
478         * nptl/sysdeps/i386/Makefile: Moved ...
479         * sysdeps/i386/nptl/Makefile: ... here.
480         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
481         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
482         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
483         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
484         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
485         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
486         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
487         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
488         * sysdeps/i386/nptl/pthreaddef.h: ... here.
489         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
490         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
491         * nptl/sysdeps/i386/tls.h: Moved ...
492         * sysdeps/i386/nptl/tls.h: ... here.
493
494         * sysdeps/sh/Makefile [$(subdir) = csu]
495         (gen-as-const-headers): Add tcb-offsets.sym.
496         * nptl/sysdeps/sh/Makefile: File removed.
497         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
498         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
499         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
500         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
501         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
502         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
503         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
504         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
505         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
506         * sysdeps/sh/nptl/pthreaddef.h: ... here.
507         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
508         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
509         * nptl/sysdeps/sh/tls.h: Moved ...
510         * sysdeps/sh/nptl/tls.h: ... here.
511         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
512         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
513         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
514         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
515         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
516         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
517         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
518         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
519         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
520         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
521         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
522         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
523         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
524         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
525         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
526         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
527         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
528         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
529         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
530         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
531         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
532         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
533         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
534         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
535         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
536         Moved ...
537         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
538         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
539         Moved ...
540         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
541         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
542         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
543         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
544         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
545         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
546         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
547         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
548         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
549         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
550         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
551         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
552         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
553         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
554         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
555         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
556         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
557         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
558         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
559
560 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
561
562         * posix/spawn_faction_addopen.c: Include string.h.
563
564 2014-06-11  Roland McGrath  <roland@hack.frob.com>
565
566         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
567         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
568         * nptl/sysdeps/x86_64/Makefile: Moved ...
569         * sysdeps/x86_64/nptl/Makefile: ... here.
570         * nptl/sysdeps/x86_64/configure: Moved ...
571         * sysdeps/x86_64/nptl/configure: ... here.
572         * nptl/sysdeps/x86_64/configure.ac: Moved ...
573         * sysdeps/x86_64/nptl/configure.ac: ... here.
574         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
575         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
576         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
577         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
578         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
579         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
580         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
581         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
582         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
583         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
584         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
585         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
586         * nptl/sysdeps/x86_64/tls.h: Moved ...
587         * sysdeps/x86_64/nptl/tls.h: ... here.
588         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
589         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
590         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
591         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
592
593         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
594
595 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
596
597         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
598
599 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
600
601         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
602         type.
603         [POSIX] (off_t): Likewise.
604         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
605         [POSIX] (S_ISBLK): Require macro.
606         [POSIX] (S_ISCHR): Likewise.
607         [POSIX] (S_ISDIR): Likewise.
608         [POSIX] (S_ISFIFO): Likewise.
609         [POSIX] (S_ISREG): Likewise.
610         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
611         optional-macro.
612         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
613         type.
614         [POSIX] (time_t): Likewise.
615         [POSIX] (timer_t): Likewise.
616
617 2014-06-11  Florian Weimer  <fweimer@redhat.com>
618
619         [BZ #17048]
620         * posix/spawn_int.h (struct __spawn_action): Make the path string
621         non-const to support deallocation.
622         * posix/spawn_faction_addopen.c
623         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
624         * posix/spawn_faction_destroy.c
625         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
626         path in all spawn_do_open actions.
627         * posix/tst-spawn.c (do_test): Exercise the copy operation in
628         posix_spawn_file_actions_addopen.
629
630 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
631
632         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
633         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
634         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
635         conditional code always true.
636         (__libc_vfork): New alias.
637
638 2014-06-11  Roland McGrath  <roland@hack.frob.com>
639
640         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
641         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
642
643         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
644
645         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
646         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
647
648         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
649         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
650
651         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
652         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
653
654 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
655
656         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
657         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
658         multiarch strcmp for PPC64.
659         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
660         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
661         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
662         multiarch optimizations.
663         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
664         (__libc_ifunc_impl_list): Likewise.
665
666 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
667
668         * benchtests/scripts/validate_benchout.py: New script.
669         * benchtests/Makefile (bench-func): Call it.
670         * benchtests/scripts/benchout.schema.json: New file.
671
672 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
673
674         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
675         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
676         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
677         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
678         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
679         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
680         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
681         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
682         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
683         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
684         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
685         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
686         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
687         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
688         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
689         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
690         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
691         Moved ...
692         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
693         ... here.
694         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
695         Moved ...
696         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
697         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
698         Moved ...
699         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
700         ... here.
701         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
702         Moved ...
703         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
704         ... here.
705         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
706         Moved ...
707         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
708         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
709         Moved ...
710         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
711         ... here.
712         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
713         Moved ...
714         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
715         ... here.
716         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
717         Moved ...
718         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
719         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
720         Moved ...
721         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
722         ... here.
723         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
724         Moved ...
725         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
726         ... here.
727         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
728         Moved ...
729         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
730         ... here.
731         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
732         Moved ...
733         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
734         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
735         Moved ...
736         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
737         ... here.
738         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
739         Moved ...
740         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
741         ... here.
742         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
743         Moved ...
744         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
745         ... here.
746         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
747         Moved ...
748         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
749         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
750         Moved ...
751         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
752         ... here.
753         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
754         Moved ...
755         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
756         ... here.
757         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
758         Moved ...
759         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
760         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
761         Moved ...
762         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
763         ... here.
764         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
765         Moved ...
766         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
767         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
768         Moved ...
769         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
770         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
771         Moved ...
772         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
773         ... here.
774         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
775         Moved ...
776         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
777         ... here.
778         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
779         Moved ...
780         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
781         ... here.
782         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
783         Moved ...
784         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
785         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
786         Moved ...
787         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
788         ... here.
789         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
790         Moved ...
791         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
792         ... here.
793         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
794         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
795         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
796         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
797         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
798         Moved ...
799         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
800         ... here.
801         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
802         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
803         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
804         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
805         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
806         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
807         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
808         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
809         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
810         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
811         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
812         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
813         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
814         Moved ...
815         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
816         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
817         Moved ...
818         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
819         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
820         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
821         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
822         Moved ...
823         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
824         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
825         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
826         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
827         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
828         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
829         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
830
831 2014-06-10  Wilco  <wdijkstr@arm.com>
832
833         * math/test-fenv-return.c: New file.
834         * math/Makefile: Add new test test-fenv-return.
835
836 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
837
838         [BZ #17042]
839         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
840         when x - 1 is zero.
841         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
842         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
843         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
844         0.0L for an argument of 1.0L.
845         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
846         Likewise.
847         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
848         value when x - 1 is zero.
849         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
850         * sysdeps/i386/fpu/libm-test-ulps: Update.
851         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
852
853 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
854
855         [BZ #15119]
856         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
857
858 2014-06-09  Roland McGrath  <roland@hack.frob.com>
859
860         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
861         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
862
863 2014-06-09  Roland McGrath  <roland@hack.frob.com>
864
865         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
866         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
867
868         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
869         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
870
871         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
872         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
873
874         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
875         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
876
877         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
878         if not already defined.
879         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
880         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
881         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
882         (TLS_INIT_TP): Use it.
883         (TLS_DEFINE_INIT_TP): New macro.
884         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
885
886 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
887
888         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
889         constant.
890         [POSIX] (IXANY): Likewise.
891         [POSIX] (OLCUC): Likewise.
892         [POSIX || POSIX2008] (CBAUD): Do not allow.
893         [POSIX || POSIX2008] (DEFECHO): Likewise.
894         [POSIX || POSIX2008] (ECHOCTL): Likewise.
895         [POSIX || POSIX2008] (ECHOKE): Likewise.
896         [POSIX || POSIX2008] (ECHOPRT): Likewise.
897         [POSIX || POSIX2008] (EXTA): Likewise.
898         [POSIX || POSIX2008] (EXTB): Likewise.
899         [POSIX || POSIX2008] (FLUSHO): Likewise.
900         [POSIX || POSIX2008] (LOBLK): Likewise.
901         [POSIX || POSIX2008] (PENDIN): Likewise.
902         [POSIX || POSIX2008] (SWTCH): Likewise.
903         [POSIX || POSIX2008] (VDISCARD): Likewise.
904         [POSIX || POSIX2008] (VDSUSP): Likewise.
905         [POSIX || POSIX2008] (VLNEXT): Likewise.
906         [POSIX || POSIX2008] (VREPRINT): Likewise.
907         [POSIX || POSIX2008] (VSTATUS): Likewise.
908         [POSIX || POSIX2008] (VWERASE): Likewise.
909         (B*): Change to B[0123456789]*.
910         * conform/data/time.h-data [POSIX || UNIX98]
911         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
912         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
913         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
914         [POSIX] (tm_*): Do not allow.
915
916 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
917
918         * Makefile (install): Don't set LANGUAGE.
919         * Makefile.in (install): Likewise.
920         * assert/Makefile (test-assert-ENV): Remove variable.
921         (test-assert-perr-ENV): Likewise.
922         * elf/Makefile (neededtest4-ENV): Likewise.
923         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
924         [$(cross-compiling) = no]: Don't set LANGUAGE.
925         * io/ftwtest-sh (LANG): Remove variable.
926         * libio/Makefile (tst-widetext-ENV): Likewise.
927         * manual/install.texi (Running make install): Don't refer to
928         environment settings for make install.
929         * INSTALL: Regenerated.
930         * nptl/tst-tls6.sh: Don't set LANG.
931         * posix/globtest.sh (LANG): Remove variable.
932         * string/Makefile (tester-ENV): Likewise.
933         (inl-tester-ENV): Likewise.
934         (noinl-tester-ENV): Likewise.
935         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
936         [$(cross-compiling) = no]: Don't set LANGUAGE.
937         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
938         without explicit environment settings.
939
940 2014-06-06  Roland McGrath  <roland@hack.frob.com>
941
942         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
943         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
944         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
945         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
946
947 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
948
949         * crypt/crypt-private.h [DOS]: Add some includes taken from the
950         other files in the crypt directory.
951         * crypt/crypt.c: Remove duplicate includes.
952         * crypt/crypt-entry.c: Likewise.
953         * crypt/crypt_util.c: Likewise.
954
955 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
956
957         * Makeconfig (run-program-env): New variable.
958         (run-program-prefix-before-env): Likewise.
959         (run-program-prefix-after-env): Likewise.
960         (run-program-prefix): Define in terms of new variables.
961         (built-program-cmd-before-env): New variable.
962         (built-program-cmd-after-env): Likewise.
963         (built-program-cmd): Define in terms of new variables.
964         (test-program-prefix-before-env): New variable.
965         (test-program-prefix-after-env): Likewise.
966         (test-program-prefix): Define in terms of new variables.
967         (test-program-cmd-before-env): New variable.
968         (test-program-cmd-after-env): Likewise.
969         (test-program-cmd): Define in terms of new variables.
970         * Rules (make-test-out): Use $(run-program-env).
971         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
972         (help): Do not mention environment variables.  Mention
973         --timeoutfactor option.
974         (timeoutfactor): New variable.
975         (blacklist_exports): Remove function.
976         (exports): Remove variable.
977         (command): Do not include ${exports}.
978         * manual/install.texi (Configuring and compiling): Do not mention
979         test wrappers preserving environment variables.  Mention that last
980         assignment to a variable must take precedence.
981         * INSTALL: Regenerated.
982         * benchtests/Makefile (run-bench): Use $(run-program-env).
983         * catgets/Makefile ($(objpfx)test1.cat): Use
984         $(built-program-cmd-before-env), $(run-program-env) and
985         $(built-program-cmd-after-env).
986         ($(objpfx)test2.cat): Do not specify environment variables
987         explicitly.
988         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
989         $(run-program-env) and $(built-program-cmd-after-env).
990         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
991         $(run-program-env) and $(test-program-cmd-after-env).
992         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
993         explicitly.
994         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
995         run_program_env and test_program_cmd_after_env arguments.
996         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
997         * elf/tst-pathopt.sh: Use run_program_env argument.
998         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
999         $(test-wrapper-env) and $(run-program-env).
1000         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1001         run_program_env arguments.
1002         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1003         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1004         $(test-program-prefix-before-env), $(run-program-env) and
1005         $(test-program-prefix-after-env).
1006         ($(objpfx)tst-gettext2.out): Likewise.
1007         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1008         run_program_env and test_program_prefix_after_env arguments.
1009         * intl/tst-gettext2.sh: Likewise.
1010         * intl/tst-gettext4.sh: Do not set environment variables
1011         explicitly.
1012         * intl/tst-gettext6.sh: Likewise.
1013         * intl/tst-translit.sh: Likewise.
1014         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1015         $(test-program-prefix-before-env), $(run-program-env) and
1016         $(test-program-prefix-after-env).
1017         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1018         run_program_env and test_program_prefix_after_env arguments.
1019         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1020         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1021         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1022         explicitly with each use of ${test_wrapper_env}.
1023         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1024         $(test-program-prefix-before-env), $(run-program-env) and
1025         $(test-program-prefix-after-env).
1026         * posix/tst-getconf.sh: Do not set environment variables
1027         explicitly.
1028         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1029         run_program_env and test_program_prefix_after_env arguments.
1030         * stdio-common/tst-printf.sh: Do not set environment variables
1031         explicitly.
1032         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1033         $(test-program-prefix-before-env), $(run-program-env) and
1034         $(test-program-prefix-after-env).
1035         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1036         run_program_env and test_program_prefix_after_env arguments.
1037         Split $test calls into $test_pre and $test.
1038         * timezone/Makefile (build-testdata): Use
1039         $(built-program-cmd-before-env), $(run-program-env) and
1040         $(built-program-cmd-after-env).
1041
1042 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1043
1044         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1045         strlen for non SHARED builds.
1046
1047 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1048
1049         * nptl/allocatestack.c (check_list): Inlined function...
1050         (__reclaim_stacks): ... here.
1051
1052 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1053
1054         [BZ #15698]
1055         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1056         memory overrun.
1057
1058 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1059
1060         * Rules (make-test-out): Include
1061         LOCPATH=$(common-objpfx)localedata in default environment.
1062         * debug/Makefile (tst-chk1-ENV): Remove variable.
1063         (tst-chk2-ENV): Likewise.
1064         (tst-chk3-ENV): Likewise.
1065         (tst-chk4-ENV): Likewise.
1066         (tst-chk5-ENV): Likewise.
1067         (tst-chk6-ENV): Likewise.
1068         (tst-lfschk1-ENV): Likewise.
1069         (tst-lfschk2-ENV): Likewise.
1070         (tst-lfschk3-ENV): Likewise.
1071         (tst-lfschk4-ENV): Likewise.
1072         (tst-lfschk5-ENV): Likewise.
1073         (tst-lfschk6-ENV): Likewise.
1074         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1075         (tst-iconv7-ENV): Likewise.
1076         * intl/Makefile (LOCPATH-ENV): Likewise.
1077         (tst-codeset-ENV): Likewise.
1078         (tst-gettext3-ENV): Likewise.
1079         (tst-gettext5-ENV): Likewise.
1080         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1081         (tst-fopenloc-ENV): Likewise.
1082         (tst-fgetws-ENV): Remove variable.
1083         (tst-ungetwc1-ENV): Likewise.
1084         (tst-ungetwc2-ENV): Likewise.
1085         (bug-ungetwc2-ENV): Likewise.
1086         (tst-swscanf-ENV): Likewise.
1087         (bug-ftell-ENV): Likewise.
1088         (tst-fgetwc-ENV): Likewise.
1089         (tst-fseek-ENV): Likewise.
1090         (tst-ftell-partial-wide-ENV): Likewise.
1091         (tst-ftell-active-handler-ENV): Likewise.
1092         (tst-ftell-append-ENV): Likewise.
1093         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1094         (tst-regexloc-ENV): Likewise.
1095         (bug-regex1-ENV): Likewise.
1096         (tst-regex-ENV): Likewise.
1097         (tst-regex2-ENV): Likewise.
1098         (bug-regex5-ENV): Likewise.
1099         (bug-regex6-ENV): Likewise.
1100         (bug-regex17-ENV): Likewise.
1101         (bug-regex18-ENV): Likewise.
1102         (bug-regex19-ENV): Likewise.
1103         (bug-regex20-ENV): Likewise.
1104         (bug-regex22-ENV): Likewise.
1105         (bug-regex23-ENV): Likewise.
1106         (bug-regex25-ENV): Likewise.
1107         (bug-regex26-ENV): Likewise.
1108         (bug-regex30-ENV): Likewise.
1109         (bug-regex32-ENV): Likewise.
1110         (bug-regex33-ENV): Likewise.
1111         (bug-regex34-ENV): Likewise.
1112         (bug-regex35-ENV): Likewise.
1113         (tst-rxspencer-ENV): Likewise.
1114         (tst-rxspencer-no-utf8-ENV): Likewise.
1115         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1116         (tst-sscanf-ENV): Likewise.
1117         (tst-swprintf-ENV): Likewise.
1118         (tst-swscanf-ENV): Likewise.
1119         (test-vfprintf-ENV): Likewise.
1120         (scanf13-ENV): Likewise.
1121         (bug14-ENV): Likewise.
1122         (tst-grouping-ENV): Likewise.
1123         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1124         (tst-strtod3-ENV): Likewise.
1125         (tst-strtod4-ENV): Likewise.
1126         (tst-strtod5-ENV): Likewise.
1127         (testmb2-ENV): Likewise./
1128         * string/Makefile (tst-strxfrm-ENV): Likewise.
1129         (tst-strxfrm2-ENV): Likewise.
1130         (bug-strcoll1-ENV): Likewise.
1131         (test-strcasecmp-ENV): Likewise.
1132         (test-strncasecmp-ENV): Likewise.
1133         * time/Makefile (tst-strptime-ENV): Likewise.
1134         (tst-ftime_l-ENV): Likewise.
1135         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1136         (tst-mbrtowc-ENV): Likewise.
1137         (tst-wcrtomb-ENV): Likewise.
1138         (tst-mbrtowc2-ENV): Likewise.
1139         (tst-c16c32-1-ENV): Likewise.
1140         (tst-mbsnrtowcs-ENV): Likewise.
1141
1142 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1143
1144         * manual/resource.texi (How to get information about the memory
1145         subsystem?): Fix typo.
1146         Reported by Peon de la Parra Ivan <peon@keba.com>
1147
1148 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1149
1150         [BZ #16882]
1151         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1152         (pthread_spin_lock): Branch out of spin loop to proper location.
1153         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1154         (pthread_spin_lock): Likewise.
1155
1156         * nptl/tst-spin4.c: New test.
1157         * nptl/Makefile (tests): Add tst-spin4.
1158
1159 2014-06-03  Andreas Schwab  <schwab@suse.de>
1160
1161         [BZ #15946]
1162         * resolv/res_send.c (send_dg): Reload file descriptor after
1163         calling reopen.
1164
1165 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1166
1167         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1168
1169 2014-06-03  Richard Henderson  <rth@redhat.com>
1170
1171         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1172         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1173         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1174         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1175         in the SAVE_PID block.
1176         (__libc_vfork): New alias.
1177         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1178
1179         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1180         child in registers, not on the stack.  Remove RESET_PID conditionals.
1181         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1182
1183 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1184
1185         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1186
1187 2014-06-03  Wilco  <wdijkstr@arm.com>
1188
1189         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1190         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1191         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1192         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1193         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1194         Likewise.
1195
1196 2014-06-03  Wilco  <wdijkstr@arm.com>
1197
1198         * sysdeps/aarch64/fpu/math_private.h
1199         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1200         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1201         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1202         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1203         Fix declarations.
1204
1205 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1206
1207         * crypt/crypt-private.h: Include ufc-crypt.h.
1208         (__b64_from_24bit): Declare extern.
1209         * crypt/crypt_util.c(__b64_from_24bit): New function.
1210         (b64t): New static const variable.
1211         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1212         (b64t): Remove variable.
1213         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1214         * crypt/sha256-crypt.c: Include crypt-private.h.
1215         (b64t): Remove variable.
1216         (__sha256_crypt_r): Remove b64_from_24bit and replace
1217         with __b64_from_24bit.
1218         * crypt/sha512-crypt.c: Likewise.
1219
1220 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1221
1222         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1223         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1224         Label the code __libc_vfork rather than __vfork.
1225         [!NOT_IN_libc] (vfork): Define as weak alias.
1226         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
1227         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1228         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
1229
1230 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1231
1232         * malloc/malloc.c (malloc_info): Fix format specifier for
1233         n_mmaps.
1234
1235 2014-06-02  Wilco  <wdijkstr@arm.com>
1236
1237         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
1238         FPCR write.
1239
1240 2014-06-02  Wilco  <wdijkstr@arm.com>
1241
1242         [BZ #17009]
1243         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
1244         Rewrite to reduce FPCR/FPSR accesses.
1245
1246 2014-06-01  David S. Miller  <davem@davemloft.net>
1247
1248         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1249
1250 2014-05-31  David S. Miller  <davem@davemloft.net>
1251
1252         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
1253         to occur in round to nearest mode when |x| >= 2.0
1254
1255 2014-05-30  Richard Henderson  <rth@twiddle.net>
1256
1257         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
1258         (PSEUDO_RET_NOERRNO): Remove.
1259         (ret): Don't redefine.
1260         (ret_NOERRNO): Define in terms of ret.
1261         (ret_ERRVAL): Likewise.
1262
1263         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
1264         use of PSEUDO_RET; perform the error check directly.
1265
1266 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
1267
1268         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
1269         with __int128_t.
1270
1271 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1272
1273         * malloc/malloc (malloc_info): Fix formatting.
1274
1275 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1276             Roland McGrath  <roland@hack.frob.com>
1277
1278         * malloc/malloc (malloc_info): Also print mmapped statistics.
1279
1280 2014-05-30  Roland McGrath  <roland@hack.frob.com>
1281
1282         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
1283         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
1284
1285 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
1286
1287         * malloc/malloc.c (malloc_info): Inline mi_arena.
1288
1289 2014-05-29  Richard Henderson  <rth@twiddle.net>
1290
1291         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
1292         Remove comma before expanding ASM_ARGS_##nr.
1293         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
1294         Make _x0 a strict output; make _x8 a strict input; adjust expansion
1295         of ASM_ARGS_##nr.
1296         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
1297         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
1298         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
1299         (ASM_ARGS_1): Add leading comma.
1300
1301         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
1302         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
1303         to __errno_location.
1304         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
1305         Remove the expected plt for __errno_location.
1306
1307         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1308         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
1309         call to __read_tp.
1310
1311         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1312         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
1313         it and break it down.
1314         (DOCARGS_0, DOCARGS_1): Do nothing.
1315         (DOCARGS_2): Update to store into the new stack frame.
1316         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
1317         (UNDOCARGS_1): Update to restore from the new stack frame.
1318         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
1319         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
1320
1321         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1322         (SINGLE_THREAD_P): New parameter for result regno.
1323         (PSEUDO): Update to match; use cbz instead of beq.
1324
1325         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1326         Use ENTRY to define the _nocancel entry point.  Share the syscall
1327         and syscall error check paths with the cancel path.
1328         (PSEUDO_END): New.
1329
1330         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
1331         whitespace; tabs before and after asm mnemonics.
1332
1333 2014-05-29  Eric Wong  <normalperson@yhbt.net>
1334
1335         [BZ #15132]
1336         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1337         Call fstat64 or stat64 internally, depending on arguments passed.
1338         Replace stat buffer argument with file descriptor argument.
1339         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
1340         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
1341         Pass fd to __internal_statvfs instead of calling fstat64.
1342         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
1343         Pass fd to __internal_statvfs64 instead of calling fstat64.
1344         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
1345         Pass -1 to __internal_statvfs instead of calling stat64.
1346         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
1347         Pass -1 to __internal_statvfs64 instead of calling stat64.
1348
1349 2014-05-28  Roland McGrath  <roland@hack.frob.com>
1350
1351         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
1352         that was previously under [RESET_PID].
1353         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
1354
1355         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
1356         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
1357
1358 2014-05-27  Roland McGrath  <roland@hack.frob.com>
1359
1360         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
1361
1362         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
1363         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
1364
1365 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
1366
1367         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
1368
1369 2014-05-27  Andreas Schwab  <schwab@suse.de>
1370
1371         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
1372         TLS_INIT_TP macro.
1373         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1374         * elf/rtld.c (init_tls, dl_main): Likewise.
1375         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
1376         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
1377         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
1378         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
1379         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
1380         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1381         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
1382         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
1383         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
1384         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
1385         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
1386         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
1387         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
1388         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
1389         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
1390         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
1391         * sysdeps/generic/tls.h: Update description.
1392
1393 2014-05-27  Will Newton  <will.newton@linaro.org>
1394
1395         [BZ #16990]
1396         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
1397         and restore r2 rather than just restoring.
1398
1399 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1400
1401         [BZ #16724]
1402         * libio/tst-ftell-append.c: New test case.
1403         * libio/Makefile (tests): Add test case.
1404         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
1405         append mode.
1406         * libio/wfileops.c (do_ftell_wide): Likewise.
1407
1408 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1409
1410         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1411
1412         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
1413         ...
1414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
1415         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
1416         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
1417         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
1418         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
1419         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
1420         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
1421         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
1422         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
1423         Moved ...
1424         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
1425         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
1426         Moved ...
1427         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
1428         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
1429         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
1430         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
1431         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
1432         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
1433         ...
1434         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
1435         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
1436         Moved ...
1437         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
1438         here.
1439         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
1440         ...
1441         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
1442         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
1443         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
1444
1445         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
1446         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
1447         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
1448         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
1449
1450         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
1451         merge into ...
1452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
1453         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
1454         ...
1455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
1456         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
1457         ...
1458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
1459         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
1460         Moved ...
1461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
1462         here.
1463         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
1464         Moved ...
1465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
1466         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
1467         Moved ...
1468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
1469
1470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
1471         conditional [RESET_PID].
1472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1473         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
1474         removed.
1475         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
1476         removed.
1477
1478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
1479         <tcb-offsets.h>.
1480         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1481         (__libc_vfork): New strong alias.
1482         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
1483         removed.
1484         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
1485         Removed.
1486
1487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
1488         <tcb-offsets.h>.
1489         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
1490         (__libc_vfork): New strong alias.
1491         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
1492         removed.
1493         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
1494         removed.
1495
1496 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
1497
1498         * malloc/malloc.c (mi_arena): New function.
1499         (malloc_info): Remove nested function mi_arena. Call non-nosted
1500         function mi_arena.
1501
1502 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1503
1504         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
1505         by insrwi.
1506         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1507         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
1508         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
1509         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
1510         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
1511         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
1512         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
1513
1514 2014-05-26  Andreas Schwab  <schwab@suse.de>
1515
1516         [BZ #16984]
1517         * locale/programs/repertoire.c (repertoire_read): Add slash
1518         between I18NPATH element and file name.
1519         * locale/programs/locfile.c (locfile_read): Likewise.
1520
1521 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1522
1523         * nptl/pthread_mutexattr_settype.c
1524         (__pthread_mutexattr_settype):
1525         Disable lock elision for PTHREAD_MUTEX_NORMAL.
1526
1527 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1528
1529         * nptl/tst-mutex5 (do_test):
1530         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
1531
1532 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1533
1534         * benchtests/README: Document 'init' directive.
1535         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
1536         BENCH_INIT.
1537         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
1538         (parse_file): Recognize 'init' directive.
1539
1540 2014-05-26  Kyle McMartin  <kyle@redhat.com>
1541
1542         [BZ #16796]
1543         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
1544         alignment of struct pthread.
1545
1546 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1547
1548         [BZ #16878]
1549         * nscd/netgroupcache.c (addgetnetgrentX): Look for
1550         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1551         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
1552         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1553
1554 2014-05-25  Richard Henderson  <rth@twiddle.net>
1555
1556         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1557         (SINGLE_THREAD_P_PIC): Remove.
1558         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
1559         (SINGLE_THREAD_P_PIC): Remove.
1560
1561         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
1562         branch to syscall error ...
1563         (PSEUDO): ... here.
1564         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
1565         from __local_syscall_error to .Lsyscall_error.
1566         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
1567         (SYSCALL_ERROR): Update label name.
1568
1569         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1570         Do not use DOARGS/UNDOARGS.
1571         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
1572         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
1573         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
1574         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
1575         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
1576
1577         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
1578         block comment.
1579
1580         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
1581         define if !NOT_IN_libc.
1582         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
1583         define with non-default symbol versions.
1584
1585 2014-05-23  Richard Henderson  <rth@twiddle.net>
1586
1587         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
1588         (vfork, __vfork): Define via compat_symbol.
1589
1590         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
1591         [!HAVE_IFUNC] (vfork_compat): Remove.
1592         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
1593
1594 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1595
1596         [BZ #16978]
1597         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
1598         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
1599         variable.
1600
1601 2014-05-23  Richard Henderson  <rth@twiddle.net>
1602
1603         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
1604         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
1605         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
1606         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
1607
1608         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
1609         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
1610         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
1611         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
1612         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
1613         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
1614         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
1615         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
1616         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
1617         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
1618         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
1619         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
1620         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
1621         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
1622         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
1623         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
1624         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
1625         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
1626         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
1627         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
1628         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
1629         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
1630         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
1631         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
1632         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
1633         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
1634         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
1635         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
1636         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
1637         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
1638         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
1639         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
1640         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
1641         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
1642         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
1643         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
1644         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
1645         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
1646         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
1647         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
1648         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
1649         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
1650         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
1651         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
1652         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
1653         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
1654         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
1655         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
1656         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
1657         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
1658         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
1659         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
1660         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
1661         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
1662         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
1663         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
1664
1665         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
1666         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
1667         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
1668         before exiting on error.
1669         (__libc_vfork): New strong alias.
1670         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
1671         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
1672
1673         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
1674         that was previously under [RESET_PID].
1675         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
1676
1677         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
1678
1679 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1680
1681         [BZ #16977]
1682         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
1683         value when x - 1 is zero.
1684         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
1685         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1686         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
1687         0.0L for an argument of 1.0L.
1688         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
1689         Likewise.
1690         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
1691         value when x - 1 is zero.
1692         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
1693         * sysdeps/i386/fpu/libm-test-ulps: Update.
1694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1695
1696 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
1697
1698         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
1699         alphasort and versionsort.
1700
1701 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1702
1703         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
1704         macro.
1705         [copysignf]: Likewise.
1706
1707 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1708
1709         * crypt/md5-crypt.c: Fix formatting.
1710
1711 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1712
1713         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
1714         (b64_from_24bit): New function.
1715
1716 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1717
1718         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
1719         libc_hidden_builtin_def to ifunc.
1720         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
1721         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
1722
1723 2014-05-21  Roland McGrath  <roland@hack.frob.com>
1724
1725         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
1726         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
1727
1728 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
1729
1730         * nscd/Depend (linuxthreads): Remove.
1731         (nptl): Add.
1732         * resolv/Depend (linuxthreads): Remove.
1733         * rt/Depend (linuxthreads): Remove.
1734
1735         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
1736         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
1737         $(common-objpfx)elf/.
1738         (link-libc-before-gnulib): Likewise.
1739         (elfobjdir): Remove variable.
1740         * Makefile (install): Use $(elf-objpfx) instead of
1741         $(common-objpfx)elf/.
1742         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
1743         $(elfobjdir)/.
1744         (link-libc-deps): Likewise.
1745         ($(common-objpfx)libc.so): Likewise.
1746         ($(common-objpfx)linkobj/libc.so): Likewise.
1747         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
1748         instead of $(common-objpfx)elf/.
1749         (symbolic-link-list): Likewise.
1750         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1751         [$(cross-compiling) = no]: Likewise.
1752         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
1753         $(elfobjdir)/.
1754         (static-gnulib-arch): Likewise.
1755         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1756         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
1757         $(common-objpfx)elf/.
1758
1759 2014-05-21  Richard Henderson  <rth@redhat.com>
1760
1761         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1762         (SINGLE_THREAD_P): Use the correct width load.  Fold
1763         into the ldr offset.
1764
1765         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
1766         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
1767
1768 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
1769
1770         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
1771         (libgcc_s_resume): Use __attribute_used__.
1772         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
1773         Likewise.
1774
1775 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1776
1777         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
1778         optimization when used with float constants.
1779
1780         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1781
1782 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
1783
1784         [BZ #16915]
1785         * locale/nl_langinfo_l.c: Make direct reference to every
1786         _nl_current_CATEGORY symbol.
1787         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
1788         (tests-static): Add tst-langinfo-static.
1789         (tests-special): Add tst-langinfo-static.out.
1790         ($(objpfx)tst-langinfo.out): Redirect output.
1791         ($(objpfx)tst-langinfo-static.out): New.
1792         * localedata/tst-langinfo.sh: Send output to stdout.
1793         * localedata/tst-langinfo-static.c: New file.
1794
1795         [BZ #16965]
1796         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
1797         when the shift amount is modulo the limb size.
1798
1799 2014-05-20  Richard Henderson  <rth@redhat.com>
1800
1801         [BZ #16967]
1802         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
1803         Change type of sa_flags from unsigned int to int.
1804
1805         [BZ #16966]
1806         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
1807
1808         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
1809
1810 2014-05-20  Will Newton  <will.newton@linaro.org>
1811
1812         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1813         Test the return value of the system call in the nocancel case.
1814
1815 2014-05-20  Will Newton  <will.newton@linaro.org>
1816             Yvan Roux  <yvan.roux@linaro.org>
1817
1818         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
1819         #include of asm/ptrace.h.
1820         (PTRACE_GET_THREAD_AREA): Remove #undef.
1821         (PTRACE_GETHBPREGS): Likewise.
1822         (PTRACE_SETHBPREGS): Likewise.
1823         (struct user_regs_struct): New structure.
1824         (struct user_fpsimd_struct): New structure.
1825         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
1826         #include of asm/ptrace.h and second #include of sys/user.h.
1827         (PTRACE_GET_THREAD_AREA): Remove #undef.
1828         (PTRACE_GETHBPREGS): Likewise.
1829         (PTRACE_SETHBPREGS): Likewise.
1830         (ELF_NGREG): Use new struct user_regs_struct.
1831         (elf_fpregset_t): Use new struct user_fpsimd_struct.
1832
1833 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1834
1835         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
1836         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
1837
1838 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
1839
1840         [BZ #16958]
1841         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
1842         membar to avoid block loads/stores to overlap previous stores.
1843
1844 2014-05-17  Richard Henderson  <rth@redhat.com>
1845
1846         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
1847         Create the __##syscall_name##_nocancel entry point.
1848         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
1849         Remove; let the sysdep-cancel.h code create it.
1850
1851 2014-05-17  David S. Miller  <davem@davemloft.net>
1852
1853         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
1854         Protect with __USE_GNU.
1855         (TIOCSET_TEMPT): Likewise.
1856         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
1857         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
1858         these are already provided in bits/ioctl-types.h
1859
1860 2014-05-16  Roland McGrath  <roland@hack.frob.com>
1861
1862         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
1863         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
1864
1865         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
1866         Use wait4 regardless of [__NR_waitpid].
1867
1868 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
1869
1870         PR libgcc/60166
1871         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
1872         (_FP_NANSIGN_Q): Set the quiet bit.
1873
1874 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
1875
1876         * benchtests/Makefile
1877         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
1878         not $(common-objpfx)math/libm.so.
1879         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
1880         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
1881         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
1882         $(common-objpfx)dlfcn/libdl.so.
1883         ($(objpfx)tst-audit8): Depend on $(libm), not
1884         $(common-objpfx)math/libm.so.
1885         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
1886         not $(common-objpfx)dlfcn/libdl.so.
1887         * math/Makefile
1888         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1889         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
1890         [$(build-shared) = yes].
1891         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
1892         $(common-objpfx)nptl/libpthread.so.
1893         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
1894         $(common-objpfx)math/libm.so$(libm.so-version) or
1895         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
1896         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
1897         $(common-objpfx)dlfcn/libdl.so.
1898         * setjmp/Makefile (link-libm): Remove variable.
1899         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
1900         * stdio-common/Makefile (link-libm): Remove variable.
1901         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
1902         * stdlib/Makefile (link-libm): Remove variable.
1903         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
1904         ($(objpfx)tst-strtod-round): Likewise.
1905         ($(objpfx)tst-tininess): Likewise.
1906         ($(objpfx)tst-strtod-underflow): Likewise.
1907         ($(objpfx)tst-strtod6): Likewise.
1908         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
1909         $(libdl), not $(common-objpfx)nptl/libpthread.so and
1910         $(common-objpfx)dlfcn/libdl.so.
1911
1912 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1913
1914         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
1915         BSD terminal modes definitions.
1916
1917 2014-05-16  Roland McGrath  <roland@hack.frob.com>
1918
1919         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
1920         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
1921
1922         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
1923         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
1924         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
1925         Don't do #include_next.
1926         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
1927         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
1928         Don't do #include_next.
1929         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
1930         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
1931         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
1932         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
1933
1934 2014-05-16  Allan McRae  <allan@archlinux.org>
1935
1936         * po/sv.po: Update Swedish translation from translation project.
1937
1938         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
1939         in sed expression.
1940
1941 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
1942
1943         [BZ #16917]
1944         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
1945         errno if the TIOCGPTN ioctl fails with an error different than
1946         EINVAL.
1947         * login/tst-ptsname.c: New file.
1948         * login/Makefile (tests): Add tst-ptsname.
1949
1950         [BZ #16943]
1951         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
1952         and prlimit64.
1953
1954 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1955
1956         [BZ #16849]
1957         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
1958         herrno to return EAI_AGAIN.
1959
1960 2014-05-14  Roland McGrath  <roland@hack.frob.com>
1961
1962         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
1963         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
1964         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
1965         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
1966         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
1967         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
1968         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
1969         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
1970         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
1971         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
1972         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
1973         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
1974         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
1975         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
1976         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
1977         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
1978         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
1979         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
1980         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
1981         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
1982         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
1983         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
1984         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
1985         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
1986         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
1987         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
1988         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
1989         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
1990         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
1991         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
1992         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
1993         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
1994         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
1995         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
1996         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
1997         Moved ...
1998         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
1999         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2000         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2001         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2002         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2003         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2004         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2005         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2006         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2007         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2008         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2009         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2010         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2011         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2012         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2013         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2014         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2015         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2016         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2017         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2018         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2019         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2020         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2021         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2022         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2023         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2024         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2025         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2026         Moved ...
2027         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2028         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2029         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2030         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2031         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2032         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2033         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2034         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2035         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2036         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2037         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2038         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2039         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2040         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2041         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2042         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2043         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2044         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2045         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2046         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2047         Moved ...
2048         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2049         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2050         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2051
2052         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2053         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2054         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2055         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2056         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2057         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2058         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2059         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2060         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2061         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2062         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2063         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2064         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2065         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2066         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2067         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2068         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2069         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2070         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2071         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2072         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2073         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2074         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2075         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2076         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2077         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2078         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2079         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2080         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2081         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2082         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2083
2084         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2085         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2086
2087         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2088         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2089         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2090         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2091         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2092         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2093         Moved ...
2094         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2095         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2096         Moved ...
2097         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2098         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2099         Moved ...
2100         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2101         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2102         Moved ...
2103         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2104         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2105         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2106         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2107         Moved ...
2108         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2109         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2110         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2111         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2112         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2113         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2114         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2115         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2116         Moved ...
2117         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2118         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2119         Moved ...
2120         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2121         ... here.
2122         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2123         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2124         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2125         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2126         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2127         Moved ...
2128         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2129         ... here.
2130         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2131         Moved ...
2132         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2133         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2134         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2135         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2136         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2137         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2138         Moved ...
2139         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2140         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2141         Moved ...
2142         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2143         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2144         Moved ...
2145         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2146         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2147         Moved ...
2148         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2149         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2150         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2151         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2152         Moved ...
2153         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2154         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2155         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2156         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2157         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2158         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2159         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2160         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2161         Moved ...
2162         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2163         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2164         Moved ...
2165         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2166         ... here.
2167         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2168         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2169         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2170         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2171         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2172         Moved ...
2173         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2174         ... here.
2175         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2176         Moved ...
2177         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2178         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2179         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2180         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2181         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2182         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2183         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2184         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2185         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2186         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2187         Moved ...
2188         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2189         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2190         Moved ...
2191         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2192         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2193         Moved ...
2194         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2195         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2196         Moved ...
2197         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2198         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2199         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2200         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2201         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2202         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2203         Moved ...
2204         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2205         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2206         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2207         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2208         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2209         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2210         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2211         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2212         Moved ...
2213         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2214         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2215         Moved ...
2216         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2217         ... here.
2218         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2219         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2220         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2221         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2222         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2223         Moved ...
2224         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2225         ... here.
2226         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
2227         Moved ...
2228         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
2229         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
2230         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
2231         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
2232         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
2233         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
2234         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
2235         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
2236         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
2237         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
2238         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
2239
2240         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
2241         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
2242
2243         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
2244         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
2245
2246         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
2247         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
2248         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
2249         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
2250         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
2251         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
2252         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
2253         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
2254         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
2255         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
2256         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
2257         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
2258         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
2259         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
2260         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
2261         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
2262         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
2263         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
2264         Moved ...
2265         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
2266         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
2267         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
2268         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
2269         Moved ...
2270         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
2271         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
2272         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
2273         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
2274         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
2275         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
2276         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
2277         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2278         Moved ...
2279         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
2280         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2281         Moved ...
2282         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
2283         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
2284         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
2285         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
2286         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
2287         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
2288         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
2289         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
2290         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
2291         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
2292         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
2293         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
2294         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
2295         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
2296         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
2297         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
2298         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
2299
2300         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
2301         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
2302         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
2303         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
2304         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
2305
2306         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
2307         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
2308         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
2309         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
2310         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
2311         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
2312         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
2313         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
2314         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
2315         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
2316
2317         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
2318         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
2319
2320         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
2321         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
2322         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
2323         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
2324         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
2325         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
2326         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
2327         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
2328         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
2329         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
2330         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
2331         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
2332         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
2333         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
2334         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
2335         Update #include.
2336         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
2337         Likewise.
2338         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2339         Likewise.
2340         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2341         Likewise.
2342         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2343         Likewise.
2344         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
2345         Likewise.
2346         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
2347         Likewise.
2348         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
2349         Likewise.
2350         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
2351         Likewise.
2352         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
2353         Likewise.
2354         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
2355         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
2356         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
2357         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
2358         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
2359         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
2360         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
2361         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
2362         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
2363         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
2364         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
2365         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
2366         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
2367         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
2368         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
2369
2370         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
2371         that was previously under [RESET_PID].
2372         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2373         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
2374         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
2375
2376         * sysdeps/i386/nptl/Implies: New file.
2377         * sysdeps/x86_64/nptl/Implies: New file.
2378         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
2379         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
2380         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
2381         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
2382
2383         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
2384         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2385         (__libc_vfork): New strong alias.
2386         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
2387         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
2388
2389         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
2390         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2391         (__libc_vfork): New strong alias.
2392         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
2393         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
2394
2395         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
2396         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2397         (__libc_vfork): New strong alias.
2398         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
2399         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
2400         * nptl/pt-vfork.c: New file.
2401         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
2402         (libpthread: GLIBC_2.20): New version set (empty).
2403
2404 2014-05-14  Will Newton  <will.newton@linaro.org>
2405
2406         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
2407         rather than #if.
2408
2409 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2410
2411         [BZ #16564]
2412         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
2413         arguments with exponent 65 or above.
2414         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
2415         arguments 0x1p113L or above.
2416         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
2417         to arguments 0x1p107L or above.
2418         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
2419         positive arguments with exponent 65 or above.
2420         * math/auto-libm-test-in: Add more tests of log1p.
2421         * math/auto-libm-test-out: Regenerated.
2422
2423         [BZ #16928]
2424         * math/s_cacos.c (__cacos): Ensure zero real part of result from
2425         non-finite arguments is +0.
2426         * math/s_cacosf.c (__cacosf): Likewise.
2427         * math/s_cacosl.c (__cacosl): Likewise.
2428         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
2429         * sysdeps/i386/fpu/libm-test-ulps: Update.
2430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2431
2432         [BZ #16927]
2433         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
2434         value.
2435         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
2436         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
2437         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
2438         for explicit high bit of mantissa when testing for argument equal
2439         to 1.
2440         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
2441         * sysdeps/i386/fpu/libm-test-ulps: Update.
2442         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2443
2444         [BZ #16516]
2445         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
2446         (__erf): Scale by 16 instead of 8 in potentially underflowing
2447         case.  Ensure exception if result actually underflows.
2448         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
2449         (__erff): Scale by 16 instead of 8 in potentially underflowing
2450         case.  Ensure exception if result actually underflows.
2451         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
2452         (efx8): Remove variable.
2453         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2454         case.  Ensure exception if result actually underflows.
2455         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
2456         (efx8): Remove variable.
2457         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2458         case.  Ensure exception if result actually underflows.
2459         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
2460         (efx8): Remove variable.
2461         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2462         case.  Ensure exception if result actually underflows.
2463         * math/auto-libm-test-in: Add more tests of erf.
2464         * math/auto-libm-test-out: Regenerated.
2465
2466 2014-05-14  Andreas Schwab  <schwab@suse.de>
2467
2468         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
2469         Remove code conditionalized on USE___THREAD.
2470
2471         * config.h.in (HAVE_PT_CHOWN): Define as 0.
2472         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
2473         not definedness.
2474
2475 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2476
2477         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
2478         Define unconditionally.
2479         (__ASSUME_O_CLOEXEC): Likewise.
2480         (__ASSUME_SOCK_CLOEXEC): Likewise.
2481         (__ASSUME_IN_NONBLOCK): Likewise.
2482         (__ASSUME_PIPE2): Likewise.
2483         (__ASSUME_EVENTFD2): Likewise.
2484         (__ASSUME_SIGNALFD4): Likewise.
2485         (__ASSUME_DUP3): Likewise.
2486         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
2487         (__ASSUME_DUP3): Do not define.
2488         (__ASSUME_EVENTFD2): Likewise.
2489         (__ASSUME_IN_NONBLOCK): Likewise.
2490         (__ASSUME_O_CLOEXEC): Likewise.
2491         (__ASSUME_PIPE2): Likewise.
2492         (__ASSUME_SIGNALFD4): Likewise.
2493         (__ASSUME_SOCK_CLOEXEC): Likewise.
2494         (__ASSUME_UTIMES): Undefine.
2495         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2496         (__ASSUME_UTIMES): Do not define.
2497         (__ASSUME_O_CLOEXEC): Likewise.
2498         (__ASSUME_SOCK_CLOEXEC): Likewise.
2499         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
2500         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
2501         0x020621].
2502         (__ASSUME_PIPE2): Likewise.
2503         (__ASSUME_EVENTFD2): Likewise.
2504         (__ASSUME_SIGNALFD4): Likewise.
2505         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
2506         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
2507         Do not define.
2508         (__ASSUME_EVENTFD2): Likewise.
2509         (__ASSUME_SIGNALFD4): Likewise.
2510         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2511         (__ASSUME_32BITUIDS): Likewise.
2512         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2513         (__ASSUME_IPC64): Likewise.
2514         (__ASSUME_ST_INO_64_BIT): Likewise.
2515         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
2516         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
2517         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2518         (__ASSUME_UTIMES): Do not define.
2519         (__ASSUME_PSELECT): Likewise.
2520         (__ASSUME_PPOLL): Likewise.
2521         (__ASSUME_O_CLOEXEC): Likewise.
2522         (__ASSUME_SOCK_CLOEXEC): Likewise.
2523         (__ASSUME_IN_NONBLOCK): Likewise.
2524         (__ASSUME_PIPE2): Likewise.
2525         (__ASSUME_EVENTFD2): Likewise.
2526         (__ASSUME_SIGNALFD4): Likewise.
2527         (__ASSUME_DUP3): Likewise.
2528         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2529         (__ASSUME_UTIMES): Likewise.
2530         (__ASSUME_O_CLOEXEC): Likewise.
2531         (__ASSUME_SOCK_CLOEXEC): Likewise.
2532         (__ASSUME_IN_NONBLOCK): Likewise.
2533         (__ASSUME_PIPE2): Likewise.
2534         (__ASSUME_EVENTFD2): Likewise.
2535         (__ASSUME_SIGNALFD4): Likewise.
2536         (__ASSUME_DUP3): Likewise.
2537         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2538         (__ASSUME_UTIMES): Likewise.
2539         (__ASSUME_O_CLOEXEC): Likewise.
2540         (__ASSUME_SOCK_CLOEXEC): Likewise.
2541         (__ASSUME_IN_NONBLOCK): Likewise.
2542         (__ASSUME_PIPE2): Likewise.
2543         (__ASSUME_EVENTFD2): Likewise.
2544         (__ASSUME_SIGNALFD4): Likewise.
2545         (__ASSUME_DUP3): Likewise.
2546         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
2547         Likewise.
2548         (__ASSUME_UTIMES): Likewise.
2549         (__ASSUME_EVENTFD2): Likewise.
2550         (__ASSUME_SIGNALFD4): Likewise.
2551         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2552         (__ASSUME_O_CLOEXEC): Likewise.
2553         (__ASSUME_SOCK_CLOEXEC): Likewise.
2554         (__ASSUME_IN_NONBLOCK): Likewise.
2555         (__ASSUME_PIPE2): Likewise.
2556         (__ASSUME_EVENTFD2): Likewise.
2557         (__ASSUME_SIGNALFD4): Likewise.
2558         (__ASSUME_DUP3): Likewise.
2559         (__ASSUME_UTIMES): Undefine.
2560
2561         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
2562         feclearexcept.  Remove symbol versioning code.
2563         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
2564         symbol versioning code.
2565         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
2566         symbol versioning code.
2567         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
2568         feupdateenv.  Remove symbol versioning code.
2569         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
2570         fegetexceptflag.  Remove symbol versioning code.
2571         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
2572         fesetexceptflag.  Remove symbol versioning code.
2573         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
2574         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
2575         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
2576         (__posix_fadvise64_l32): Remove prototype.
2577         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
2578         code.
2579
2580 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2581
2582         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
2583         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
2584         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
2585         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
2586
2587 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
2588
2589         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
2590         current working directory
2591
2592 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2593
2594         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
2595         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
2596         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
2597         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
2598         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
2599         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
2600         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
2601         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
2602         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
2603         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
2604         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
2605         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
2606         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
2607         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
2608         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
2609         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
2610         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
2611         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
2612         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
2613         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
2614         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
2615         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
2616         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
2617         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
2618         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
2619         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
2620         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
2621         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
2622         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
2623         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
2624         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
2625         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
2626         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
2627         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
2628         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
2629         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
2630         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
2631         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
2632         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
2633         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
2634         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
2635         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
2636
2637         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
2638         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
2639
2640         * sysdeps/unix/sysv/linux/arm/Makefile
2641         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
2642         Add rt-aeabi_unwind_cpp_pr1.
2643         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
2644         Add nptl-aeabi_unwind_cpp_pr1.
2645         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
2646         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
2647         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
2648         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
2649         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
2650         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
2651
2652         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
2653         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
2654         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
2655         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
2656
2657         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
2658         Deconditionalize the code that was previously under [RESET_PID].
2659         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
2660
2661         * sysdeps/generic/exit-thread.h: New file.
2662         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
2663         * include/unistd.h (__exit_thread): Remove declaration.
2664         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
2665         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
2666         * csu/libc-start.c: Include <exit-thread.h>.
2667         (LIBC_START_MAIN): Pass no argument to __exit_thread.
2668         * nptl/pthread_create.c: Include <exit-thread.h>.
2669         (start_thread): Call __exit_thread in place of __exit_thread_inline.
2670         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
2671         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
2672         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
2673         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
2674         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
2675         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
2676         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
2677         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
2678         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
2679         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
2680         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
2681         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
2682         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
2683         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
2684         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
2685         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
2686
2687 2014-05-13  Andreas Schwab  <schwab@suse.de>
2688
2689         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
2690
2691 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
2692
2693         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
2694         (__ASSUME_UTIMES): Do not condition on kernel version.
2695         (__ASSUME_PSELECT): Define unconditionally.
2696         (__ASSUME_PPOLL): Likewise.
2697         (__ASSUME_ATFCTS): Likewise.
2698         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
2699         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
2700         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
2701         (__ASSUME_UTIMENSAT): Define unconditionally.
2702         (__ASSUME_PRIVATE_FUTEX): Likewise.
2703         (__ASSUME_FALLOCATE): Likewise.
2704         (__ASSUME_O_CLOEXEC): Likewise.
2705         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
2706         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
2707         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
2708         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
2709         (__ASSUME_IN_NONBLOCK): Likewise.
2710         (__ASSUME_PIPE2): Likewise.
2711         (__ASSUME_EVENTFD2): Likewise.
2712         (__ASSUME_SIGNALFD4): Likewise.
2713         (__ASSUME_DUP3): Likewise.
2714         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
2715         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
2716         (__ASSUME_AT_RANDOM): Likewise.
2717         (__ASSUME_PREADV): Likewise.
2718         (__ASSUME_PWRITEV): Likewise.
2719         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
2720         (__ASSUME_F_GETOWN_EX): Define unconditionally.
2721         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
2722         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2723         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
2724         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2725         (__ASSUME_O_CLOEXEC): Define unconditionally.
2726         (__ASSUME_PSELECT): Do not undefine conditionally.
2727         (__ASSUME_PPOLL): Likewise.
2728         (__ASSUME_ATFCTS): Likewise.
2729         (__ASSUME_SET_ROBUST_LIST): Likewise.
2730         (__ASSUME_UTIMENSAT): Likewise.
2731         (__ASSUME_FDATASYNC): Define unconditionally.
2732         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2733         (__ASSUME_SIGFRAME_V2): Likewise.
2734         )__ASSUME_EVENTFD2): Likewise.
2735         (__ASSUME_SIGNALFD4): Likewise.
2736         (__ASSUME_PSELECT): Do not undefine conditionally.
2737         (__ASSUME_PPOLL): Likewise.
2738         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2739         (__ASSUME_PSELECT): Define unconditionally.
2740         (__ASSUME_PPOLL): Likewise.
2741         (__ASSUME_O_CLOEXEC): Likewise.
2742         (__ASSUME_SOCK_CLOEXEC): Likewise.
2743         (__ASSUME_IN_NONBLOCK): Likewise.
2744         (__ASSUME_PIPE2): Likewise.
2745         (__ASSUME_EVENTFD2): Likewise.
2746         (__ASSUME_SIGNALFD4): Likewise.
2747         (__ASSUME_DUP3): Likewise.
2748         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2749         (__ASSUME_O_CLOEXEC): Likewise.
2750         (__ASSUME_SOCK_CLOEXEC): Likewise.
2751         (__ASSUME_IN_NONBLOCK): Likewise.
2752         (__ASSUME_PIPE2): Likewise.
2753         (__ASSUME_EVENTFD2): Likewise.
2754         (__ASSUME_SIGNALFD4): Likewise.
2755         (__ASSUME_DUP3): Likewise.
2756         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2757         (__ASSUME_EVENTFD2): Likewise.
2758         (__ASSUME_SIGNALFD4): Likewise.
2759         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
2760
2761 2014-05-12  Andreas Schwab  <schwab@suse.de>
2762
2763         [BZ #16932]
2764         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
2765         (_nss_nis_gethostbyname4_r): Return error if item length is larger
2766         than maximum RPC packet size.
2767         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
2768         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
2769         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
2770         (_nss_nis_getservbyport_r): Likewise.
2771
2772 2014-05-12  Will Newton  <will.newton@linaro.org>
2773
2774         * malloc/Makefile (tests): Add tst-mallopt.
2775         * malloc/tst-mallopt.c: New file.
2776
2777 2014-05-09  Roland McGrath  <roland@hack.frob.com>
2778
2779         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
2780         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
2781
2782 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2783
2784         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
2785         (tst-tlsmod6.so): Likewise.
2786
2787 2014-05-09  Roland McGrath  <roland@hack.frob.com>
2788
2789         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
2790
2791 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
2792
2793         [BZ #16064]
2794         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
2795         and <dl-procinfo.h>.
2796         (__fegetenv): Save SSE state in envp->__eip if supported.
2797         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
2798         envp->__eip if supported.
2799         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
2800         and <dl-procinfo.h>.
2801         (__fesetenv): Always set __eip, __cs_selector, __opcode,
2802         __data_offset and __data_selector in environment to 0.  Set SSE
2803         state if supported.
2804         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
2805         test-fenv-sse.
2806         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
2807         -mfpmath=sse.
2808         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
2809
2810 2014-05-09  Will Newton  <will.newton@linaro.org>
2811
2812         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
2813         and libc_relro_required for ARM.
2814         * sysdeps/arm/preconfigure: Regenerate.
2815
2816 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2817             Stefan Liebler  <stli@linux.vnet.ibm.com>
2818
2819         * config.make.in (enable-lock-elision): New Makefile variable.
2820         * configure.ac: Likewise.
2821         * configure: Regenerate.
2822         * sysdeps/s390/configure.ac:
2823         Add check for gcc transactions support.
2824         * sysdeps/s390/configure: Regenerate.
2825         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
2826         Build elision files if enabled.
2827         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
2828         Add lock elision support for s390.
2829         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
2830         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
2831         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2832         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
2833         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
2834         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
2835         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
2836         Likewise.
2837         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
2838         Likewise.
2839         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
2840         Likewise.
2841         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
2842         Likewise.
2843         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
2844         (__lll_timedlock_elision, __lll_lock_elision)
2845         (__lll_unlock_elision, __lll_trylock_elision)
2846         (lll_timedlock_elision, lll_lock_elision)
2847         (lll_unlock_elision, lll_trylock_elision): Add.
2848         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2849         (pthread_mutex_t): Add lock elision support for s390.
2850
2851 2014-05-14  Wilco  <wdijkstr@arm.com>
2852
2853         * sysdeps/arm/fclrexcpt.c: Cleanup.
2854         * sysdeps/arm/fedisblxcpt.c: Cleanup.
2855         * sysdeps/arm/feenablxcpt.c: Cleanup.
2856         * sysdeps/arm/fegetenv.c: Cleanup.
2857         * sysdeps/arm/fegetexcept.c: Cleanup.
2858         * sysdeps/arm/fegetround.c: Cleanup.
2859         * sysdeps/arm/feholdexcpt.c: Cleanup.
2860         * sysdeps/arm/fesetenv.c: Cleanup.
2861         * sysdeps/arm/fesetround.c: Cleanup.
2862         * sysdeps/arm/feupdateenv.c: Cleanup.
2863         * sysdeps/arm/fgetexcptflg.c: Cleanup.
2864         * sysdeps/arm/fraiseexcpt.c: Cleanup.
2865         * sysdeps/arm/fsetexcptflg.c: Cleanup.
2866         * sysdeps/arm/ftestexcept.c: Cleanup.
2867         * sysdeps/arm/get-rounding-mode.h: Cleanup.
2868         * sysdeps/arm/setfpucw.c: Cleanup.
2869
2870 2014-05-09  Will Newton  <will.newton@linaro.org>
2871
2872         * sysdeps/arm/armv7/strcmp.S: New file.
2873         * NEWS: Mention addition of ARMv7 optimized strcmp.
2874
2875 2014-05-08  Roland McGrath  <roland@hack.frob.com>
2876
2877         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
2878         look for %.ac rather than %.in.
2879
2880         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
2881         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
2882         * sysdeps/mach/hurd/configure: Regenerated.
2883         * sysdeps/unix/sysv/linux/configure: Regenerated.
2884
2885         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
2886
2887 2014-05-07  Steve Ellcey  <sellcey@mips.com>
2888
2889         [BZ# 16922]
2890         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
2891         (LONG_SUB): Ditto.
2892         (PTR_SUB): Ditto.
2893
2894 2014-05-07  Andreas Schwab  <schwab@suse.de>
2895
2896         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
2897         when skipping over non-matching result from nscd.
2898
2899 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
2900
2901         [BZ #16876]
2902         * nptl/sockperf.c (client): Check socket return value.
2903
2904         [BZ #16877]
2905         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
2906         nscd security class.
2907
2908 2014-05-06  Roland McGrath  <roland@hack.frob.com>
2909
2910         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
2911         * sysdeps/arm/unwind.h: ... here.
2912
2913 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
2914
2915         [BZ# 16916]
2916         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
2917         Define.
2918
2919 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2920
2921         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
2922         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
2923         multiarch strncpy for PPC64.
2924         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
2925         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
2926         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
2927         multiarch optimizations.
2928         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2929         (__libc_ifunc_impl_list): Likewise.
2930         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
2931         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
2932         multiarch stpncpy for PPC64.
2933         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
2934         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
2935
2936 2014-05-06  Andreas Schwab  <schwab@suse.de>
2937
2938         [BZ #16912]
2939         * gmon/mcount.c (_MCOUNT_DECL): Use
2940         atomic_compare_and_exchange_bool_acq instead of
2941         catomic_compare_and_exchange_bool_acq.
2942
2943 2014-05-05  Roland McGrath  <roland@hack.frob.com>
2944
2945         * elf/Makefile (others, install-bin): Remove pldd.
2946         (pldd-modules): Variable removed.
2947         ($(objpfx)pldd): Target removed.
2948         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
2949         (others, install-bin): Append pldd here.
2950         ($(objpfx)pldd): New target.
2951
2952         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
2953         to 0, so the first #if test emitted later doesn't see it undefined.
2954         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
2955         * sysdeps/gnu/errlist.c: Regenerated.
2956
2957 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2958
2959         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
2960         [libc_hidden_builtin_def]: Define to empty value.
2961         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
2962         [libc_hidden_builtin_def]: Likewise.
2963         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
2964         [libc_hidden_builtin_def]: Likewise.
2965         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
2966         [libc_hidden_builtin_def]: Likewise.
2967         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
2968         __redirect_memcpy and define ifunc as default hidden symbol.
2969         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
2970         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
2971
2972 2014-05-04  Adam Conrad  <adconrad@0c3.net>
2973
2974         * locale/iso-4217.def: Reintroduce XDR currency.
2975
2976 2014-05-04  Allan McRae  <allan@archlinux.org>
2977
2978         * po/eo.po: Update Esperanto translation from translation project.
2979
2980 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
2981
2982         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
2983         and FEATURE_INDEX_MAX to 1.
2984         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
2985
2986 2014-05-01  Steve Ellcey  <sellcey@mips.com>
2987
2988         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
2989         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
2990         * iconvdata/big5.c (ONE_DIRECTION): Define.
2991         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
2992         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
2993         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
2994         * iconvdata/cp932.c (ONE_DIRECTION): Define.
2995         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
2996         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
2997         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
2998         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
2999         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3000         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3001         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3002         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3003         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3004         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3005         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3006         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3007         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3008         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3009         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3010         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3011         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3012         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3013         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3014         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3015         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3016         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3017         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3018         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3019         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3020         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3021         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3022         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3023         * iconvdata/johab.c (ONE_DIRECTION): Define.
3024         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3025         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3026         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3027         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3028         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3029         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3030         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3031         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3032         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3033         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3034
3035 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3036
3037         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3038         (_IO_JUMPS_OFFSET): Define to 0.
3039
3040         * nptl/sysdeps/pthread/bits/libc-lock.h
3041         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3042         (__libc_lock_define_initialized_recursive): Always define using
3043         initializer.  Modern compilers treat uninitialized (implicit zero) and
3044         explicit zero initializers the same (i.e. put the datum in bss).
3045
3046 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3047
3048         * nscd/nscd-client.h: Include <string.h>.
3049
3050 2014-05-01  David S. Miller  <davem@davemloft.net>
3051
3052         [BZ #16885]
3053         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3054         multiple zero bytes exist at the end of a string.
3055         Reported by Aurelien Jarno <aurelien@aurel32.net>
3056
3057         * string/test-strcmp.c (check): Add explicit test for situations where
3058         there are multiple zero bytes after the first.
3059
3060 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3061
3062         [BZ #16890]
3063         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3064         when compiling wprintf.
3065         * stdio-common/tstdiomisc.c (t3): New function.
3066         (main): Call it.
3067
3068 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3069
3070         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3071         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3072         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3073         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3074
3075 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3076
3077         * stdlib/longlong.h: Updated from GCC.
3078
3079 2014-05-01  Will Newton  <will.newton@linaro.org>
3080             Bernard Ogden  <bernie.ogden@linaro.org>
3081
3082         * NEWS: Update fixed bug list.
3083
3084         [BZ #15119]
3085         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3086
3087 2014-04-30  David S. Miller  <davem@davemloft.net>
3088
3089         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3090         (libc_feholdexcept_setround_sparc_ctx): New function.
3091         (libc_fesetenv_sparc_ctx): Likewise.
3092         (libc_feupdateenv_sparc_ctx): Likewise.
3093         (libc_feholdsetround_sparc_ctx): Likewise.
3094         (libc_feholdexcept_setround_ctx): Define.
3095         (libc_feholdexcept_setroundf_ctx): Likewise.
3096         (libc_feholdexcept_setroundl_ctx): Likewise.
3097         (libc_fesetenv_ctx): Likewise.
3098         (libc_fesetenvf_ctx): Likewise.
3099         (libc_fesetenvl_ctx): Likewise.
3100         (libc_feupdateenv_ctx): Likewise.
3101         (libc_feupdateenvf_ctx): Likewise.
3102         (libc_feupdateenvl_ctx): Likewise.
3103         (libc_feresetround_ctx): Likewise.
3104         (libc_feresetroundf_ctx): Likewise.
3105         (libc_feresetroundl_ctx): Likewise.
3106         (libc_feholdsetround_ctx): Likewise.
3107         (libc_feholdsetroundf_ctx): Likewise.
3108         (libc_feholdsetroundl_ctx): Likewise.
3109
3110         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3111         with __USE_GNU instead of XOPEN cpp guards.
3112
3113         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3114         0.
3115
3116         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3117         with XOPEN cpp guards.
3118
3119 2014-04-30  Julian Brown  <julian@codesourcery.com>
3120
3121         [BZ #16888]
3122         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3123         handling.
3124
3125 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3126
3127         [BZ #9894]
3128         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3129         Change to 2.6.32.
3130         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3131         * sysdeps/unix/sysv/linux/configure: Regenerated.
3132         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3133         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3134         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3135         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3136         * README: Update reference to required Linux kernel version.
3137         * manual/install.texi (Linux): Update reference to required Linux
3138         kernel headers version.
3139         * INSTALL: Regenerated.
3140
3141         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3142         header inclusion.
3143         [POSIX] (limits.h): Likewise.
3144         [POSIX] (math.h): Likewise.
3145         [POSIX] (sys/wait.h): Likewise.
3146         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3147         function.
3148         [POSIX] (stddef.h): Do not allow header inclusion.
3149
3150 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3151
3152         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3153
3154 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3155
3156         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3157         Return immediately after lll_futex_wake.
3158
3159 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3160
3161         [BZ #16791]
3162         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3163         structure.
3164         (datahead_init_pos): Call datahead_init_common early.
3165         (datahead_init_neg): Likewise.
3166
3167         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3168         datahead_init_neg): New functions.
3169         * nscd/aicache.c (addhstaiX): Use them.
3170         * nscd/grpcache.c (cache_addgr): Likewise.
3171         * nscd/hstcache.c (cache_addhst): Likewise.
3172         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3173         * nscd/netgroupcache.c (do_notfound): Likewise.
3174         (addgetnetgrentX): Likewise.
3175         (addinnetgrX): Likewise.
3176         * nscd/pwdcache.c (cache_addpw): Likewise.
3177         * nscd/servicescache.c (cache_addserv): Likewise.
3178
3179 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3180             Atsushi Onoe  <atsushi@onoe.org>
3181
3182         [BZ #14308]
3183         [BZ #12994]
3184         [BZ #13651]
3185         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3186         one response is valid.
3187         * resolv/res_send.c (send_dg): Check for validity of other
3188         response if the current response is a referral.
3189
3190 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3191
3192         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3193
3194 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3195
3196         [BZ #16823]
3197         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3198         Always divide by positive zero when computing -Inf result.
3199         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3200         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3201
3202 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3203
3204         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3205         FPSCR if value do not change.
3206         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3207         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3208         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3209         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3210         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3211         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3212         function.
3213
3214 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3215
3216         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3217         * sysdeps/unix/sysv/linux/hppa: Move directory from
3218         ports/systeps/unix/sysv/linux/hppa.
3219         * README: Update listing for hppa-*-linux-gnu.
3220
3221 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3222
3223         [BZ #16754]
3224         * manual/stdio.texi (Hook functions): Fix types of stream hook
3225         functions.
3226         [BZ #16854]
3227         * socket/sys/socket.h: Fix typo in comment.
3228
3229 2014-04-28  Wilco  <wdijkstr@arm.com>
3230
3231         * sysdeps/arm/fenv_private.h: New file.
3232         * sysdeps/arm/math_private.h: New file.
3233         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
3234
3235 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3236
3237         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
3238         with __int128_t.
3239         (La_x86_64_retval): Likewise.
3240
3241 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
3242
3243         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
3244         fpsr if value didn't change.
3245         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
3246         to fpcr if value didn't change.
3247         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
3248         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
3249         fpsr or fpcr if value didn't change.
3250         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3251         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
3252         fpcr if value didn't change.
3253         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
3254         to fpsr if value didn't change.
3255
3256 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3257
3258         * nptl/tst-sem3.c: Use test-skeleton.c
3259         (main): Rename to do_test.  Use return instead of
3260         exit.
3261         * nptl/tst-sem4.c: Use test-skeleton.c
3262         (main): Rename to do_test.
3263
3264 2014-04-22  David S. Miller  <davem@davemloft.net>
3265
3266         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
3267         (struct sigaction): New struct member __glibc_reserved0, change
3268         type of sa_flags to int.
3269
3270 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
3271
3272         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
3273         (COUNT_LEADING_ZEROS_0): Define for AArch64.
3274
3275 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3276
3277         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
3278         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3279
3280 2014-04-22  Will Newton  <will.newton@linaro.org>
3281             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
3282
3283         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
3284         (__longjmp): Add longjmp and longjmp_target SystemTap
3285         probes.
3286         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
3287         (__sigsetjmp): Add setjmp SystemTap probe.
3288
3289 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
3290
3291         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
3292         match manual order.
3293
3294 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3295
3296         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
3297
3298         * sysdeps/powerpc/fpu/fenv_private.h
3299         (libc_feholdexcept_setroundl_ctx): Define to
3300         libc_feholdexcept_setround_ppc_ctx.
3301         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
3302         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
3303         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
3304         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
3305
3306 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3307
3308         * sysdeps/aarch64/math-tests.h: New file.
3309
3310 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
3311
3312         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
3313         New.
3314         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3315         Check and set bit_AVX2_Usable.
3316         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
3317         macro.
3318         (bit_AVX2): Likewise.
3319         (index_AVX2_Usable): Likewise.
3320         (CPUID_AVX2): Likewise.
3321         (HAS_AVX2): Likewise.
3322
3323 2014-04-17  Will Newton  <will.newton@linaro.org>
3324
3325         * manual/setjmp.texi (System V contexts): Add note that
3326         calling setcontext on a context created by a call to a
3327         signal handler is undefined.  Update text to note that
3328         setcontext from a signal handler is possible but not
3329         recommended.
3330
3331         [BZ #16629]
3332         * stdlib/tst-setcontext.c: Include signal.h.
3333         (main): Check that the signal stack before and
3334         after swapcontext is the same.
3335
3336         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
3337         Re-implement to restore registers in user code and avoid
3338         rt_sigreturn system call.
3339
3340 2014-04-17  Wilco  <wdijkstr@arm.com>
3341
3342         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
3343         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
3344         * math/test-fenv.c: Skip exception trap tests on targets which only
3345         support non-stop mode.
3346
3347 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3348             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3349
3350         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
3351         (libc_feholdsetround_aarch64_ctx)
3352         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
3353         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
3354         (libc_feresetround_ctx, libc_feresetroundf_ctx)
3355         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
3356         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
3357         (libc_feresetround_noexl_ctx): Define.
3358
3359 2014-04-16  Richard Henderson  <rth@redhat.com>
3360
3361         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
3362
3363         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
3364         unwind tables.
3365
3366         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
3367         const from the non-libc, non-ldso copy.
3368
3369         * sysdeps/alpha/libm-test-ulps: Regenerate.
3370
3371 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
3372             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3373
3374         * sysdeps/aarch64/fpu/math_private.h: New file.
3375
3376 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3377
3378         * sysdeps/aarch64/libm-test-ulps: Regenerate.
3379
3380 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3381
3382         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
3383         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
3384         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3385         Intel MPX bound registers before _dl_profile_fixup.
3386         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
3387         registers after _dl_profile_fixup.  Save and restore bound
3388         registers bnd0/bnd1 when calling _dl_call_pltexit.
3389         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
3390         (LR_BND_OFFSET): Likewise.
3391         (LRV_BND0_OFFSET): Likewise.
3392         (LRV_BND1_OFFSET): Likewise.
3393
3394 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3395
3396         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
3397         to...
3398         * sysdeps/mach/hurd/i386/tls.h: ... here.
3399         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
3400         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
3401         fields.
3402
3403 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3404
3405         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
3406
3407 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3408
3409         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3410
3411 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3412
3413         [BZ #14770]
3414         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
3415         * sysdeps/s390/configure: Regenerate.
3416
3417         [BZ #16824]
3418         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
3419         Set round-to-nearest internally to reduce error accumulation.
3420
3421 2014-04-16  Alan Modra  <amodra@gmail.com>
3422
3423         [BZ #16740]
3424         [BZ #16619]
3425         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
3426         * math/libm-test.inc (frexp_test_data): Add tests.
3427         * NEWS: Update fixed bug list.
3428
3429 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3430
3431         * benchtests/Makefile: Depend on libraries in build directory.
3432         (bench-math): Separate out math tests.
3433         (bench-pthread): Separate out pthread tests.
3434         (bench): Include math and pthread tests.
3435
3436 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
3437
3438         [BZ #16831]
3439         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
3440         _dl_debug_initialize.
3441
3442         * configure.ac: Remove SELinux header check.
3443         * configure: Regenerate.
3444         * nscd/selinux.c (perms): Array of const char* to permission names.
3445         (nscd_request_avc_has_perm): Call security_deny_unknown to find
3446         default policy. Call string_to_security_class and string_to_av_perm to
3447         translate strings. Enforce default policy and call avs_has_perm with
3448         results of translated strings.
3449
3450 2014-04-13  David S. Miller  <davem@davemloft.net>
3451
3452         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3453
3454 2014-04-12  Allan McRae  <allan@archlinux.org>
3455
3456         [BZ #16838]
3457         * manual/string.texi (Collation Functions): Fix qsort argument
3458         order in example.
3459         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3460
3461 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
3462
3463         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
3464         Make the test a no-op if there are no exceptions defined.
3465
3466 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
3467
3468         * elf/Makefile (tests): make tst-dlopen-aout conditional on
3469         enable-hardcoded-path-in-tests
3470
3471 2014-04-11  Will Newton  <will.newton@linaro.org>
3472
3473         * benchtests/Makefile (extra-objs): Add json-lib.o.
3474         (bench-func): Tidy up JSON output.
3475         * benchtests/bench-skeleton.c: Include json-lib.h.
3476         (main): Use JSON library functions to do output of
3477         benchmark results.
3478         * benchtests/bench-timing-type.c (main): Output the
3479         timing type simply, leaving formatting to the user.
3480         * benchtests/json-lib.c: New file.
3481         * benchtests/json-lib.h: Likewise.
3482
3483 2014-04-11  Torvald Riegel  <triegel@redhat.com>
3484
3485         [BZ #15215]
3486         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
3487         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
3488         memory barriers.  Add comments.
3489         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
3490         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
3491         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
3492         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
3493         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
3494         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
3495
3496 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
3497
3498         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
3499         * sysdeps/s390/s390-64/configure.ac: ... this ...
3500         * sysdeps/s390/configure.ac: ... to here.
3501         * sysdeps/s390/s390-32/configure: Delete file.
3502         * sysdeps/s390/s390-64/configure: Delete file.
3503         * sysdeps/s390/configure: Regenerate.
3504
3505 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
3506
3507         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
3508
3509 2014-04-11  Will Newton  <will.newton@linaro.org>
3510
3511         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
3512         to zero if it is not defined elsewhere.  (mtrim): Test
3513         the value of MALLOC_DEBUG with #if rather than #ifdef.
3514
3515 2014-04-10 Torvald Riegel  <triegel@redhat.com>
3516
3517         * benchtests/pthread_once-inputs: New file.
3518         * benchtests/pthread_once-source.c: New file.
3519         * benchtests/README: Update documentation.
3520
3521 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
3522             H.J. Lu  <hongjiu.lu@intel.com>
3523
3524         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
3525         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
3526         * sysdeps/x86_64/configure: Regenerated.
3527         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
3528         macro.
3529         (REGISTER_SAVE_RAX): Likewise.
3530         (REGISTER_SAVE_RCX): Likewise.
3531         (REGISTER_SAVE_RDX): Likewise.
3532         (REGISTER_SAVE_RSI): Likewise.
3533         (REGISTER_SAVE_RDI): Likewise.
3534         (REGISTER_SAVE_R8): Likewise.
3535         (REGISTER_SAVE_R9): Likewise.
3536         (REGISTER_SAVE_BND0): Likewise.
3537         (REGISTER_SAVE_BND1): Likewise.
3538         (REGISTER_SAVE_BND2): Likewise.
3539         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
3540         bound registers when calling _dl_fixup.
3541
3542 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3543
3544         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
3545         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
3546         of its definition.
3547         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
3548         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
3549         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
3550         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
3551         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
3552         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
3553         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
3554
3555 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
3556
3557         [BZ #15514]
3558         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
3559         pathconf(_PC_NAME_MAX).
3560
3561 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3562
3563         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
3564         Remove macro usage.
3565         (__PTHREAD_SPINS): Move definition to ...
3566         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3567         (__PTHREAD_SPINS): ... here.
3568         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3569         (__PTHREAD_SPIN): Likewise.
3570         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
3571         (__PTHREAD_SPIN): Likewise.
3572         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3573         (__PTHREAD_SPIN): Likewise.
3574         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
3575         (__PTHREAD_SPIN): Likewise.
3576         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
3577         (__PTHREAD_SPIN): Likewise.
3578         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
3579         (__PTHREAD_SPIN): Likewise.
3580         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
3581         (__PTHREAD_SPIN): Likewise.
3582         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
3583         (__PTHREAD_SPIN): Likewise.
3584         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
3585         (__PTHREAD_SPIN): Likewise.
3586         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
3587         (__PTHREAD_SPIN): Likewise.
3588         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
3589         (__PTHREAD_SPIN): Likewise.
3590         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
3591         (__PTHREAD_SPIN): Likewise.
3592
3593         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3594         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
3595         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
3596         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
3597         imply folder.
3598         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
3599         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3600         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
3601         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
3602         correct imply path.
3603         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
3604         strlen symbol for non multi-arch builds.
3605         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
3606         missing hidden_def and weak_alias.
3607
3608 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
3609
3610         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
3611
3612 2014-04-07  Will Newton  <will.newton@linaro.org>
3613
3614         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
3615         and contents.  [!_LIBC] Remove #ifndef and contents.
3616         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
3617         * string/memccpy.c (__memccpy): Use ANSI prototype.
3618         * string/memfrob.c (memfrob): Likewise.
3619         * string/strcoll.c (STRCOLL): Likewise.
3620         * string/strlen.c (strlen): Likewise.
3621         * string/strtok.c (STRTOK): Likewise.
3622         * string/strcat.c: Remove unused #include of memcopy.h.
3623         (strcat): Use ANSI prototype.
3624         * string/strchr.c: Remove unused #include of memcopy.h.
3625         (strchr): Use ANSI prototype.
3626         * string/strcmp.c: Remove unused #include of memcopy.h.
3627         (strcmp): Use ANSI prototype.
3628         * string/strcpy.c: Remove unused #include of memcopy.h.
3629         (strcpy): Use ANSI prototype.
3630
3631 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3632
3633         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
3634         * config.make.in (config-extra-cppflags): Set it from
3635         libc_extra_cppflags.
3636         * configure.ac (libc_extra_cflags): Make it accumulate over
3637         configure fragments.
3638         (libc_extra_cppflags): New flag.
3639         * configure. Regenerate.
3640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3641         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
3642         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
3643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3644
3645         [BZ #16815]
3646         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
3647         result for FE_DOWNWARD rounding mode.
3648         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
3649         Likewise.
3650         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3651
3652 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
3653
3654         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
3655         in function argument name.
3656
3657 2014-04-03  David Svoboda  <svoboda@cert.org>
3658
3659         [BZ #5666]
3660         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
3661         explicitly.
3662
3663 2014-04-03  Roland McGrath  <roland@hack.frob.com>
3664
3665         * elf/dl-unmap-segments.h: New file.
3666         * sysdeps/generic/ldsodefs.h
3667         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
3668         * elf/dl-close.c: Include <dl-unmap-segments.h>.
3669         * elf/dl-fptr.c: Likewise.
3670         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
3671         * sysdeps/aarch64/tlsdesc.c: Likewise.
3672         * sysdeps/arm/tlsdesc.c: Likewise.
3673         * sysdeps/i386/tlsdesc.c: Likewise.
3674         * sysdeps/tile/dl-runtime.c: Likewise.
3675         * sysdeps/x86_64/tlsdesc.c: Likewise.
3676         * elf/dl-load.h: New file.
3677         * elf/dl-load.c: Include it.
3678         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
3679         Macros moved to dl-load.h.
3680         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
3681         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
3682         Use _dl_unmap_segments in place of __munmap.
3683         Break out segment-mapping loop into ...
3684         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
3685
3686 2014-04-03  Will Newton  <will.newton@linaro.org>
3687
3688         * elf/dl-lookup.c (do_lookup_x): Remove comment
3689         referring to nested function and move variable
3690         declarations down to before first use.
3691
3692 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
3693
3694         [BZ #16799]
3695         [BZ #16800]
3696         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
3697         with 0 numerator.
3698         * math/s_catanf.c (__catanf): Likewise.
3699         * math/s_catanh.c (__catanh): Likewise.
3700         * math/s_catanhf.c (__catanhf): Likewise.
3701         * math/s_catanhl.c (__catanhl): Likewise.
3702         * math/s_catanl.c (__catanl): Likewise.
3703         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
3704         by positive zero when computing -Inf result.
3705         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
3706         (catanh_test): Likewise.
3707         * sysdeps/i386/fpu/libm-test-ulps: Update.
3708         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3709
3710         [BZ #16789]
3711         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
3712         instead of using underflowing value in computing result.
3713         * math/s_clog10.c (__clog10): Likewise.
3714         * math/s_clog10f.c (__clog10f): Likewise.
3715         * math/s_clog10l.c (__clog10l): Likewise.
3716         * math/s_clogf.c (__clogf): Likewise.
3717         * math/s_clogl.c (__clogl): Likewise.
3718         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
3719         (clog10_test): Likewise.
3720         * sysdeps/i386/fpu/libm-test-ulps: Update.
3721         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3722
3723 2014-04-02  Alan Modra  <amodra@gmail.com>
3724
3725         [BZ #16739]
3726         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
3727         output when value is near a power of two.  Use int64_t for lx and
3728         remove casts.  Use decimal rather than hex exponent constants.
3729         Don't use long double multiplication when double will suffice.
3730         * math/libm-test.inc (nextafter_test_data): Add tests.
3731         * NEWS: Add 16739 and 16786 to bug list.
3732
3733         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
3734
3735         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
3736
3737 2014-04-01  Will Newton  <will.newton@linaro.org>
3738
3739         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
3740         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
3741
3742 2014-04-01  Florian Weimer  <fweimer@redhat.com>
3743
3744         [BZ #13347]
3745         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
3746         * nptl/tst-setuid2.c: New file.
3747         * nptl/Makefile (xtests): Add tst-setuid2.
3748
3749 2014-04-01  Alan Modra  <amodra@gmail.com>
3750
3751         [BZ #16786]
3752         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
3753
3754 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
3755
3756         [BZ #6803]
3757         [BZ #6804]
3758         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
3759         set errno as appropriate.
3760         * math/w_scalbf.c (__scalbf): Likewise.
3761         * math/w_scalbl.c (__scalbl): Likewise.
3762         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
3763         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
3764         * math/libm-test.inc (scalb_test_data): Add errno expectations.
3765         Add more NaN tests.
3766
3767         [BZ #16349]
3768         * math/w_atan2.c: Include <errno.h>.
3769         (__atan2): Set errno for result underflowing to zero.
3770         * math/w_atan2f.c: Include <errno.h>.
3771         (__atan2f): Set errno for result underflowing to zero.
3772         * math/w_atan2l.c: Include <errno.h>.
3773         (__atan2l): Set errno for result underflowing to zero.
3774         * math/auto-libm-test-in: Don't allow missing errno for some atan2
3775         tests.
3776         * math/auto-libm-test-out: Regenerated.
3777
3778 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3779
3780         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
3781         Encode instruction correctly in little endian.
3782         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
3783         Likewise.
3784         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
3785         Likewise.
3786         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
3787         Likewise.
3788         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
3789         Likewise.
3790
3791 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
3792
3793         [BZ #9894]
3794         * sysdeps/unix/sysv/linux/kernel-features.h
3795         [__sparc__ && !__arch64__ && !__sparc_v9__]
3796         (__ASSUME_SET_ROBUST_LIST): Do not define.
3797         [__sparc__ && !__arch64__ && !__sparc_v9__]
3798         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3799         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
3800         Likewise.
3801         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3802         (__ASSUME_FUTEX_LOCK_PI): Undefine.
3803         (__ASSUME_REQUEUE_PI): Likewise.
3804         (__ASSUME_SET_ROBUST_LIST): Likewise.
3805         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3806         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
3807         Undefine.
3808         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3809         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
3810         Likewise.
3811         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
3812         Likewise.
3813         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
3814         Likewise.
3815         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3816         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
3817         Undefine.
3818         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
3819         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
3820         Likewise.
3821
3822         [BZ #16648]
3823         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3824         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
3825         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
3826
3827 2014-03-31  Will Newton  <will.newton@linaro.org>
3828
3829         * benchtests/Makefile (bench): Add ffs and ffsll to list
3830         of tests.
3831         * benchtests/ffs-inputs: New file.
3832         * benchtests/ffsll-inputs: Likewise.
3833
3834 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
3835
3836         [BZ #16770]
3837         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
3838         too large before casting to int.
3839         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
3840         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
3841         * math/libm-test.inc (scalb_test_data): Add more tests.
3842
3843 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3844
3845         * benchtests/Makefile (DETAILED_OPT): New make option.
3846         (bench-func): Run benchmark program with -d if DETAILED_OPT is
3847         set.
3848         * benchtests/bench-skeleton.c: Include stdbool.h.
3849         (main): Store and print timings per input.
3850         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
3851         member to each argument value.
3852         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
3853         (_print_arg_data): Initialize per-input timing to 0.
3854
3855         * benchtests/Makefile (timing-type): New binary.
3856         (bench-clean): Also remove bench-timing-type.
3857         (bench): New target for timing-type.
3858         (bench-func): Print output in JSON format.
3859         * benchtests/bench-skeleton.c (main): Print output in JSON
3860         format.
3861         * benchtests/bench-timing-type.c: New file.
3862         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
3863         (TIMING_PRINT_STATS): Remove.
3864         * benchtests/scripts/bench.py (_print_arg_data): Store variant
3865         name separately.
3866
3867         * benchtests/bench-modf.c: Remove.
3868         * benchtests/modf-inputs: New inputs file.
3869
3870 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
3871
3872         [BZ #16362]
3873         * math/s_clog10.c (M_PI_LOG10E): New macro.
3874         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
3875         imaginary parts are 0.
3876         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
3877         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
3878         imaginary parts are 0.
3879         * math/s_clog10l.c (M_PI_LOG10El): New macro.
3880         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
3881         imaginary parts are 0.
3882         * math/libm-test.inc (clog10_test_data): Update expected results
3883         for when real and imaginary parts are 0.
3884
3885 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
3886
3887         * elf/dl-load.c: Finish conversion of __builtin_expect into
3888         __glibc_{un}likely.
3889
3890 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
3891
3892         [BZ #16348]
3893         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
3894         1+x for argument with exponent below -67.
3895         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
3896         Likewise.
3897         * math/auto-libm-test-in: Add more tests of exp.
3898         * math/auto-libm-test-out: Regenerated.
3899
3900 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3901
3902         [BZ #16759]
3903         * inet/getnetgrent_r.c (get_nonempty_val): New function.
3904         (nscd_getnetgrent): Use it.
3905
3906         [BZ #16760]
3907         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
3908         of stpcpy.
3909
3910 2014-03-27  Andi Kleen  <ak@linux.intel.com>
3911
3912         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
3913         (lll_robust_lock, lll_cond_lock, lll_timedlock)
3914         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
3915         (lll_robust_unlock): Remove out of line section. Use cfi
3916         intrinsics.
3917         (LLL_STUB_UNWIND_INFO*): Remove.
3918         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
3919         (lll_robust_lock, lll_cond_lock, lll_timedlock)
3920         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
3921         (lll_robust_unlock): Remove out of line section. Use cfi
3922         intrinsics.
3923         (LLL_STUB_UNWIND_INFO*): Remove.
3924
3925 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3926
3927         [BZ #16758]
3928         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
3929         blank values.
3930
3931 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
3932
3933         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
3934
3935 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
3936
3937         [BZ #16198]
3938         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
3939         fnstenv.
3940         * math/test-fenv-preserve.c: New file.
3941         * math/Makefile (tests): Add test-fenv-preserve.
3942
3943 2014-03-26  Will Newton <will.newton@linaro.org>
3944
3945         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
3946
3947 2014-03-25  Roland McGrath  <roland@hack.frob.com>
3948
3949         * scripts/versionlist.awk: Partition the version sets and emit all
3950         GLIBC_* (sorted) before all others (sorted).
3951
3952 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
3953
3954         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
3955         GLIBC_2.2.5 version.
3956
3957 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3958
3959         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
3960         calls.
3961
3962         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
3963         previous change.
3964
3965         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3966
3967 2014-03-25  Andreas Schwab  <schwab@suse.de>
3968
3969         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
3970         label to be used after in6ailist is initialized.
3971
3972 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3973
3974         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3975         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
3976
3977 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
3978
3979         [BZ #16357]
3980         [BZ #16599]
3981         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
3982         min_plus_half.
3983         (fp_formats): Update initializers.
3984         (init_fp_formats): Initialize new field.
3985         (output_for_one_input_case): Allow underflow for results up to
3986         min_plus_half.
3987         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
3988         * math/auto-libm-test-in: Don't mark some underflows from asin and
3989         atanh as spurious.
3990         * math/auto-libm-test-out: Regenerated.
3991         * sysdeps/i386/fpu/libm-test-ulps: Update.
3992         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3993
3994 2014-03-25  Andreas Schwab  <schwab@suse.de>
3995
3996         * libio/Makefile (tst-ftell-partial-wide-ENV)
3997         (tst-ftell-active-handler-ENV): Define.
3998
3999 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4000
4001         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4002
4003 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4004
4005         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4006
4007 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4008
4009         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4010         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4011         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4012
4013 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4014
4015         [BZ #16634]
4016         * elf/dl-load.c (open_verify): Add mode parameter.
4017         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4018         (open_path): Change from boolean 'secure' to complete flag 'mode'
4019         (_dl_map_object): Adjust.
4020         * elf/Makefile (tests): Add tst-dlopen-aout.
4021         * elf/tst-dlopen-aout.c: New test.
4022
4023 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4024
4025         [BZ #16714]
4026         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4027         (struct stat): Rename member pad0 to __glibc_reserved0.
4028
4029         [BZ #16712]
4030         * sysdeps/s390/s390-32/bits/wordsize.h
4031         (__WORDSIZE32_SIZE_ULONG): New define.
4032         * sysdeps/s390/s390-64/bits/wordsize.h
4033         (__WORDSIZE32_SIZE_ULONG): Likewise.
4034         * sysdeps/generic/stdint.h (SIZE_MAX):
4035         Define as UL if __WORDSIZE32_SIZE_ULONG.
4036
4037         [BZ #16713]
4038         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4039         (__glibc_reserved0): New variable.
4040         (sa_flags): Change type to int.
4041
4042         * posix/Makefile (before-compile): Use += before-compile instead
4043         of a :=.
4044
4045         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4046         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4047
4048 2014-03-20  Andreas Schwab  <schwab@suse.de>
4049
4050         [BZ #16743]
4051         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4052         non-matching result from nscd.
4053
4054 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4055
4056         * scripts/bench.py: Moved to ...
4057         * benchtests/scripts/bench.py: ... here.
4058         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4059
4060 2014-03-24  Andreas Schwab  <schwab@suse.de>
4061
4062         [BZ #16002]
4063         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4064         alloca_account and account alloca use for struct in6ailist.
4065
4066 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4067
4068         [BZ #16284]
4069         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4070         rounding mode to recompute results that overflow to infinity or
4071         underflow to zero.
4072         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4073         bug 16284.
4074         * math/auto-libm-test-out: Regenerated.
4075         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4076         (ccosh_test): Likewise.
4077         (csin_test_data): Use plus_oflow.
4078         (csin_test): Use ALL_RM_TEST.
4079         (csinh_test_data): Use plus_oflow.
4080         (csinh_test): Use ALL_RM_TEST.
4081         * sysdeps/i386/fpu/libm-test-ulps: Update.
4082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4083
4084 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4085
4086         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4087         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4088         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4089
4090         [BZ #16731]
4091         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4092         when x - 1 is zero.
4093         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4094         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4095         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4096         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4097         argument is 1.
4098         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4099         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4100         zero.
4101         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4102         * sysdeps/i386/fpu/libm-test-ulps: Update.
4103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4104
4105 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4106
4107         * scripts/bench.pl: Remove file.
4108         * scripts/bench.py: New benchmark script.
4109         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4110         * benchtests/README: Mention python dependency.
4111         * scripts/pylintrc: New file.
4112         * scripts/pylint: New file.
4113
4114         * bits/mathdef.h: Use #ifdef instead of #if.
4115         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4116         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4117         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4118         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4119         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4120         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4121
4122 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4123             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4124
4125         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4126         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4127         and strpbrk-ppc64 objects.
4128         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4129         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4130         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4131         multiarch strpbrk for POWER7.
4132         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4133         multiarch strpbrk for PPC64.
4134         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4135         ifunc selector.
4136         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4137         strpbrk for POWER7.
4138
4139 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4140
4141         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4142         (atan_test): Likewise.
4143         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4144         (atanh_test): Use ALL_RM_TEST.
4145         (atan2_test_data): Likewise.
4146         (cabs_test): Likewise.
4147         (cacosh_test): Likewise.
4148         (carg_test): Likewise.
4149         (casin_test): Likewise.
4150         (casinh_test): Likewise.
4151         (cbrt_test): Likewise.
4152         (csqrt_test): Likewise.
4153         (erf_test): Likewise.
4154         (erfc_test): Likewise.
4155         (pow10_test): Likewise.
4156         (exp2_test): Likewise.
4157         (hypot_test): Likewise.
4158         (j0_test): Likewise.
4159         (j1_test): Likewise.
4160         (lgamma_test): Likewise.
4161         (gamma_test): Likewise.
4162         (sincos_test): Likewise.
4163         (tanh_test): Likewise.
4164         (y0_test): Likewise.
4165         (y1_test): Likewise.
4166         * sysdeps/i386/fpu/libm-test-ulps: Update.
4167         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4168
4169 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4170
4171         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4172         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4173         and strcspn-ppc64 objects.
4174         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4175         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4176         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4177         multiarch strcspn for POWER7.
4178         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4179         multiarch strcspn for PPC64.
4180         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4181         ifunc selector.
4182         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4183         strcspn for POWER7.
4184
4185 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4186
4187         * math/gen-libm-test.pl (generate_testfile): Expect only function
4188         name as argument to AUTO_TESTS_* and pass results for all rounding
4189         modes to parse_args.
4190         (parse_auto_input): Separate inputs of automatic tests from
4191         outputs before storing in %auto_tests.
4192         * math/libm-test.inc (acos_test_data): Update call to
4193         AUTO_TESTS_f_f.
4194         (acos_test): Use ALL_RM_TEST.
4195         (acos_tonearest_test_data): Remove.
4196         (acos_test_tonearest): Likewise.
4197         (acos_towardzero_test_data): Likewise.
4198         (acos_test_towardzero): Likewise.
4199         (acos_downward_test_data): Likewise.
4200         (acos_test_downward): Likewise.
4201         (acos_upward_test_data): Likewise.
4202         (acos_test_upward): Likewise.
4203         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4204         (asin_test_data): Likewise.
4205         (asin_test): Use ALL_RM_TEST.
4206         (asin_tonearest_test_data): Remove.
4207         (asin_test_tonearest): Likewise.
4208         (asin_towardzero_test_data): Likewise.
4209         (asin_test_towardzero): Likewise.
4210         (asin_downward_test_data): Likewise.
4211         (asin_test_downward): Likewise.
4212         (asin_upward_test_data): Likewise.
4213         (asin_test_upward): Likewise.
4214         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4215         (atan_test_data): Likewise.
4216         (atanh_test_data): Likewise.
4217         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4218         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4219         (carg_test_data): Likewise.
4220         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4221         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4222         (ccosh_test_data): Likewise.
4223         (cexp_test_data): Likewise.
4224         (clog_test_data): Likewise.
4225         (clog10_test_data): Likewise.
4226         (cos_test_data): Update call to AUTO_TESTS_f_f.
4227         (cos_test): Use ALL_RM_TEST.
4228         (cos_tonearest_test_data): Remove.
4229         (cos_test_tonearest): Likewise.
4230         (cos_towardzero_test_data): Likewise.
4231         (cos_test_towardzero): Likewise.
4232         (cos_downward_test_data): Likewise.
4233         (cos_test_downward): Likewise.
4234         (cos_upward_test_data): Likewise.
4235         (cos_test_upward): Likewise.
4236         (cosh_test_data): Update call to AUTO_TESTS_f_f.
4237         (cosh_test): Use ALL_RM_TEST.
4238         (cosh_tonearest_test_data): Remove.
4239         (cosh_test_tonearest): Likewise.
4240         (cosh_towardzero_test_data): Likewise.
4241         (cosh_test_towardzero): Likewise.
4242         (cosh_downward_test_data): Likewise.
4243         (cosh_test_downward): Likewise.
4244         (cosh_upward_test_data): Likewise.
4245         (cosh_test_upward): Likewise.
4246         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
4247         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
4248         (ctan_test_data): Likewise.
4249         (ctan_test): Use ALL_RM_TEST.
4250         (ctan_tonearest_test_data): Remove.
4251         (ctan_test_tonearest): Likewise.
4252         (ctan_towardzero_test_data): Likewise.
4253         (ctan_test_towardzero): Likewise.
4254         (ctan_downward_test_data): Likewise.
4255         (ctan_test_downward): Likewise.
4256         (ctan_upward_test_data): Likewise.
4257         (ctan_test_upward): Likewise.
4258         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
4259         (ctanh_test): Use ALL_RM_TEST.
4260         (ctanh_tonearest_test_data): Remove.
4261         (ctanh_test_tonearest): Likewise.
4262         (ctanh_towardzero_test_data): Likewise.
4263         (ctanh_test_towardzero): Likewise.
4264         (ctanh_downward_test_data): Likewise.
4265         (ctanh_test_downward): Likewise.
4266         (ctanh_upward_test_data): Likewise.
4267         (ctanh_test_upward): Likewise.
4268         (erf_test_data): Update call to AUTO_TESTS_f_f.
4269         (erfc_test_data): Likewise.
4270         (exp_test_data): Likewise.
4271         (exp_test): Use ALL_RM_TEST.
4272         (exp_tonearest_test_data): Remove.
4273         (exp_test_tonearest): Likewise.
4274         (exp_towardzero_test_data): Likewise.
4275         (exp_test_towardzero): Likewise.
4276         (exp_downward_test_data): Likewise.
4277         (exp_test_downward): Likewise.
4278         (exp_upward_test_data): Likewise.
4279         (exp_test_upward): Likewise.
4280         (exp10_test_data): Update call to AUTO_TESTS_f_f.
4281         (exp10_test): Use ALL_RM_TEST.
4282         (exp10_tonearest_test_data): Remove.
4283         (exp10_test_tonearest): Likewise.
4284         (exp10_towardzero_test_data): Likewise.
4285         (exp10_test_towardzero): Likewise.
4286         (exp10_downward_test_data): Likewise.
4287         (exp10_test_downward): Likewise.
4288         (exp10_upward_test_data): Likewise.
4289         (exp10_test_upward): Likewise.
4290         (exp2_test_data): Update call to AUTO_TESTS_f_f.
4291         (expm1_test_data): Likewise.
4292         (expm1_test): Use ALL_RM_TEST.
4293         (expm1_tonearest_test_data): Remove.
4294         (expm1_test_tonearest): Likewise.
4295         (expm1_towardzero_test_data): Likewise.
4296         (expm1_test_towardzero): Likewise.
4297         (expm1_downward_test_data): Likewise.
4298         (expm1_test_downward): Likewise.
4299         (expm1_upward_test_data): Likewise.
4300         (expm1_test_upward): Likewise.
4301         (fma_test_data): Update call to AUTO_TESTS_fff_f.
4302         (fma_test): Use ALL_RM_TEST.
4303         (fma_towardzero_test_data): Remove.
4304         (fma_test_towardzero): Likewise.
4305         (fma_downward_test_data): Likewise.
4306         (fma_test_downward): Likewise.
4307         (fma_upward_test_data): Likewise.
4308         (fma_test_upward): Likewise.
4309         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
4310         (j0_test_data): Update call to AUTO_TESTS_f_f.
4311         (j1_test_data): Likewise.
4312         (jn_test_data): Update call to AUTO_TESTS_if_f.
4313         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
4314         (log_test_data): Update call to AUTO_TESTS_f_f.
4315         (log10_test_data): Likewise.
4316         (log1p_test_data): Likewise.
4317         (log2_test_data): Likewise.
4318         (pow_test_data): Update call to AUTO_TESTS_ff_f.
4319         (pow_tonearest_test_data): Likewise.
4320         (sin_test_data): Update call to AUTO_TESTS_f_f.
4321         (sin_test): Use ALL_RM_TEST.
4322         (sin_tonearest_test_data): Remove.
4323         (sin_test_tonearest): Likewise.
4324         (sin_towardzero_test_data): Likewise.
4325         (sin_test_towardzero): Likewise.
4326         (sin_downward_test_data): Likewise.
4327         (sin_test_downward): Likewise.
4328         (sin_upward_test_data): Likewise.
4329         (sin_test_upward): Likewise.
4330         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
4331         (sinh_test_data): Update call to AUTO_TESTS_f_f.
4332         (sinh_test): Use ALL_RM_TEST.
4333         (sinh_tonearest_test_data): Remove.
4334         (sinh_test_tonearest): Likewise.
4335         (sinh_towardzero_test_data): Likewise.
4336         (sinh_test_towardzero): Likewise.
4337         (sinh_downward_test_data): Likewise.
4338         (sinh_test_downward): Likewise.
4339         (sinh_upward_test_data): Likewise.
4340         (sinh_test_upward): Likewise.
4341         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
4342         (sqrt_test): Use ALL_RM_TEST.
4343         (sqrt_tonearest_test_data): Remove.
4344         (sqrt_test_tonearest): Likewise.
4345         (sqrt_towardzero_test_data): Likewise.
4346         (sqrt_test_towardzero): Likewise.
4347         (sqrt_downward_test_data): Likewise.
4348         (sqrt_test_downward): Likewise.
4349         (sqrt_upward_test_data): Likewise.
4350         (sqrt_test_upward): Likewise.
4351         (tan_test_data): Update call to AUTO_TESTS_f_f.
4352         (tan_test): Use ALL_RM_TEST.
4353         (tan_tonearest_test_data): Remove.
4354         (tan_test_tonearest): Likewise.
4355         (tan_towardzero_test_data): Likewise.
4356         (tan_test_towardzero): Likewise.
4357         (tan_downward_test_data): Likewise.
4358         (tan_test_downward): Likewise.
4359         (tan_upward_test_data): Likewise.
4360         (tan_test_upward): Likewise.
4361         (tanh_test_data): Update call to AUTO_TESTS_f_f.
4362         (tgamma_test_data): Likewise.
4363         (y0_test_data): Likewise.
4364         (y1_test_data): Likewise.
4365         (yn_test_data): Update call to AUTO_TESTS_if_f.
4366         (main): Do not call removed functions.
4367
4368 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4369
4370         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
4371         (ldexp_test_data): Remove.
4372         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
4373         scalbn_test_data.
4374         (scalb_test): Use ALL_RM_TEST.
4375
4376 2014-03-19  Andreas Schwab  <schwab@suse.de>
4377
4378         * nscd/nscd.service: Also invalidate netgroup cache on reload.
4379
4380 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4381
4382         [BZ #16649]
4383         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4384         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
4385         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
4386         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4387         (__ASSUME_PREADV): Undefine.
4388         (__ASSUME_PWRITEV): Likewise.
4389
4390 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4391
4392         * bits/mman-linux.h: Add comment about non-Linux use.
4393         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
4394         bits/mman-linux.h resting place.
4395
4396         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
4397         * bits/mman-linux.h: ... here.
4398
4399 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4400
4401         * conform/conformtest.pl: Add standard definition when calling C
4402         preprocessor on data files.
4403         (checknamespace): Remove unused variable.
4404
4405 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4406
4407         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
4408         minus_oflow, plus_uflow and minus_uflow in expected results.
4409         * math/libm-test.inc (scalbn_test_data): Add more tests of
4410         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
4411         minus_uflow.
4412         (scalbn_test): Use ALL_RM_TEST.
4413         (scalbln_test_data): Add more tests of negative arguments.  Use
4414         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
4415         (scalbln_test): Use ALL_RM_TEST.
4416
4417 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4418
4419         * scripts/abilist.awk: Ignore symbols marked with .hidden.
4420
4421 2014-03-18  Will Newton  <will.newton@linaro.org>
4422
4423         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
4424         inaccurate comment.
4425
4426 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4427
4428         * Makerules [!subdir] (check-abi): Exit with error status if a
4429         test failed.
4430
4431 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4432
4433         * math/libm-test.inc (nearbyint_test_data): Include all tests used
4434         for rint.  Include results for all rounding modes.
4435         (nearbyint_test): Use ALL_RM_TEST.
4436         (rint_test_data): Include all tests used for nearbyint.
4437
4438 2014-03-17  Will Newton  <will.newton@linaro.org>
4439
4440         * nptl/sysdeps/pthread/pthread.h: Revert previous
4441         change.
4442
4443         * sysdeps/generic/ldsodefs.h: Revert previous
4444         change.
4445
4446         * libio/genops.c: Revert previous change.
4447         * libio/libioP.h: Likewise.
4448         * stdio-common/vfprintf.c: Likewise.
4449
4450         * sysdeps/generic/math_private.h: Revert previous
4451         change.
4452
4453         * sysdeps/generic/math_private.h: Check whether
4454         HAVE_RM_CTX is defined with #ifdef rather
4455         than #if.
4456
4457         * argp/argp-fmtstream.h: Check whether
4458         __STRICT_ANSI__ is defined with #ifdef rather
4459         than #if.
4460         * argp/argp.h: Likewise.
4461
4462         * libio/genops.c: Check whether
4463         _IO_JUMPS_OFFSET is defined with #ifdef rather
4464         than #if.
4465         * libio/libioP.h: Likewise.
4466         * stdio-common/vfprintf.c: Likewise.
4467
4468         * sysdeps/generic/ldsodefs.h: Check whether
4469         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
4470         than #if.
4471
4472         * nptl/sysdeps/pthread/pthread.h: Check
4473         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
4474         its value.
4475
4476 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4477
4478         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
4479         setting O_APPEND.
4480         * libio/tst-ftell-active-handler.c (do_append_test): Add a
4481         test case.
4482
4483         [BZ #16680]
4484         * libio/fileops.c (_IO_file_open): Seek to end of file but
4485         don't cache the offset.
4486         (get_file_offset): Remove function.
4487         (do_ftell): Use cached offset when available.
4488         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
4489         don't cache the offset.
4490         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
4491         case.
4492         (do_one_test): Call it.
4493         (do_ftell_test): Fix up expected old offset for a+ mode.
4494         * libio/wfileops.c (do_ftell_wide): Used cached offset when
4495         available.
4496
4497         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
4498         up test status with function return status.
4499         (do_write_test): Likewise.
4500         (do_append_test): Likewise.
4501
4502         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
4503         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
4504         Remove.
4505
4506 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4507
4508         * math/gen-libm-test.pl (parse_args): Handle results specified for
4509         each rounding mode separately.
4510         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
4511         tests and results from lrint_tonearest_test_data,
4512         lrint_towardzero_test_data, lrint_downward_test_data and
4513         lrint_upward_test_data.
4514         (lrint_test): Use ALL_RM_TEST.
4515         (lrint_tonearest_test_data): Remove.
4516         (lrint_test_tonearest): Likewise.
4517         (lrint_towardzero_test_data): Likewise.
4518         (lrint_test_towardzero): Likewise.
4519         (lrint_downward_test_data): Likewise.
4520         (lrint_test_downward): Likewise.
4521         (lrint_upward_test_data): Likewise.
4522         (lrint_test_upward): Likewise.
4523         (llrint_test_data): Merge in per-rounding-mode tests and results
4524         from llrint_tonearest_test_data, llrint_towardzero_test_data,
4525         llrint_downward_test_data and llrint_upward_test_data.
4526         (llrint_test): Use ALL_RM_TEST.
4527         (llrint_tonearest_test_data): Remove.
4528         (llrint_test_tonearest): Likewise.
4529         (llrint_towardzero_test_data): Likewise.
4530         (llrint_test_towardzero): Likewise.
4531         (llrint_downward_test_data): Likewise.
4532         (llrint_test_downward): Likewise.
4533         (llrint_upward_test_data): Likewise.
4534         (llrint_test_upward): Likewise.
4535         (rint_test_data): Merge in per-rounding-mode tests and results
4536         from rint_tonearest_test_data, rint_towardzero_test_data,
4537         rint_downward_test_data and rint_upward_test_data.  Add
4538         per-rounding-mode results for tests not in those arrays.
4539         (rint_test): Use ALL_RM_TEST.
4540         (rint_tonearest_test_data): Remove.
4541         (rint_test_tonearest): Likewise.
4542         (rint_towardzero_test_data): Likewise.
4543         (rint_test_towardzero): Likewise.
4544         (rint_downward_test_data): Likewise.
4545         (rint_test_downward): Likewise.
4546         (rint_upward_test_data): Likewise.
4547         (rint_test_upward): Likewise.
4548         (main): Don't call removed functions.
4549
4550 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4551
4552         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
4553         "Compiled on ..." crapola.  It is anti-useful.
4554
4555 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
4556
4557         * scripts/evaluate-test.sh: Handle fourth argument to determine
4558         whether test run should stop on failure.
4559         * Makeconfig (stop-on-test-failure): New variable.
4560         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
4561         $(stop-on-test-failure).
4562         * Makefile (tests): Give a summary of results from testing and
4563         exit with failure status if they include an ERROR or FAIL.
4564         (xtests): Likewise.
4565         * manual/install.texi (Configuring and compiling): Mention
4566         stop-on-test-failure=y.
4567         * INSTALL: Regenerated.
4568
4569 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4570
4571         * scripts/versionlist.awk: New file.
4572         * Makerules [$(build-shared) = yes]
4573         (postclean-generated): Add Versions.def, not Versions.def.v and
4574         Versions.def.v.i.
4575         ($(common-objpfx)Versions.def.v.i): Target removed.
4576         ($(common-objpfx)Versions.def): New target.
4577         ($(common-objpfx)Versions.all): Depend on that rather that
4578         $(common-objpfx)Versions.def.v.
4579         * Versions.def: File removed.
4580
4581         * Makeconfig (+gccwarn): Add -Wundef.
4582         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
4583         a dl-sysdep.h breaking its contract.
4584         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
4585         * include/stackinfo.h: New file.
4586         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
4587         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
4588         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
4589         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
4590         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
4591         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
4592         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4593         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4594         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4595         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4596         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4597         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
4598         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4599         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4600         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4601
4602 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4603
4604         [BZ #16707]
4605         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
4606         implementation.
4607         * math/libm-test.inc (round_test_data): Add more tests.
4608
4609         [BZ #16706]
4610         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
4611         implementation.
4612         * math/libm-test.inc (nearbyint_test_data): Add more tests.
4613
4614         [BZ #16701]
4615         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
4616         implementation.
4617         * math/libm-test.inc (ceil_test_data): Add more tests.
4618
4619         * math/libm-test.inc (trunc_test_data): Add more tests related to
4620         BZ#16414.
4621
4622 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4623
4624         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
4625         with #if rather than #ifdef.
4626         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
4627
4628 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
4629
4630         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
4631         first.  Disable AVX-512 GCC support if assembler doesn't support
4632         it.
4633         * sysdeps/x86_64/configure: Regenerated.
4634
4635 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
4636
4637         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
4638         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
4639         (__old_pthread_attr_setstack): Likewise.
4640         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
4641         [!_STACK_GROWS_DOWN]: Likewise.
4642
4643 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
4644
4645         * config.make.in (have-bash2): Delete.
4646         * configure.ac (libc_cv_have_bash2): Delete.
4647         * configure: Regenerate.
4648         * elf/Makefile (common-ldd-rewrite): Rename to ...
4649         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
4650         (sh-ldd-rewrite): Delete.
4651         (bash-ldd-rewrite): Delete.
4652         (have-bash2): Delete checks.
4653         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
4654         ldd-rewrite.
4655
4656         * config.make.in (have-ksh): Delete.
4657         (KSH): Delete.
4658         * configure.ac (libc_cv_have_ksh): Delete.
4659         * configure: Regenerate.
4660
4661         * elf/Makefile: Delete $(have-ksh) check.
4662         ($(objpfx)sotruss): Change KSH to BASH.
4663         * elf/sotruss.ksh: Rename to ...
4664         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
4665         function style to match POSIX.  Drop ksh vim mode setting.
4666
4667         * manual/time.texi (Specifying the Time Zone with TZ): Change
4668         Tuesday to Thursday.
4669
4670         * debug/tst-longjmp_chk2.c: Update header comment.
4671         (stackoverflow_handler): Add comment.  Call assert on pass value.
4672
4673 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
4674
4675         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
4676         (HAVE_AVX512_ASM_SUPPORT): Likewise.
4677         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
4678         (La_x86_64_vector): Add zmm.
4679         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
4680         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
4681         ($(objpfx)tst-audit10): New target.
4682         ($(objpfx)tst-audit10.out): Likewise.
4683         (tst-audit10-ENV): New.
4684         (AVX512-CFLAGS): Likewise.
4685         (CFLAGS-tst-audit10.c): Likewise.
4686         (CFLAGS-tst-auditmod10a.c): Likewise.
4687         (CFLAGS-tst-auditmod10b.c): Likewise.
4688         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
4689         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
4690         * sysdeps/x86_64/configure: Regenerated.
4691         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
4692         AVX-512 zmm register support.
4693         (_dl_x86_64_save_sse): Likewise.
4694         (_dl_x86_64_restore_sse): Likewise.
4695         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
4696         size vector registers.
4697         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
4698         (ZMM_SIZE): Likewise.
4699         * sysdeps/x86_64/tst-audit10.c: New file.
4700         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
4701         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
4702
4703 2014-03-13  Roland McGrath  <roland@hack.frob.com>
4704
4705         * configure.ac (HAVE_EHDR_START): New check.
4706         * configure: Regenerated.
4707         * config.h.in (HAVE_EHDR_START): New #undef.
4708         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
4709         assuming the lowest-addressed segment maps the start of the file.
4710
4711 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
4712
4713         * INSTALL: Regenerated.
4714
4715 2014-03-13  Will Newton  <will.newton@linaro.org>
4716
4717         * manual/setjmp.texi (System V contexts): Improve
4718         clarity and grammar of documentation.
4719
4720 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
4721
4722         [BZ #16381]
4723         * elf/Makefile (tests): Add tst-pie2.
4724         (tests-pie): Add tst-pie2.
4725         * elf/tst-pie2.c: New file.
4726         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
4727         for ET_EXEC.
4728         * elf/rtld.c (map_doit): Load executable as lt_executable.
4729         (dl_main): Likewise.
4730
4731 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
4732
4733         [BZ #16642]
4734         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4735         (__ASSUME_PSELECT): Undefine.
4736
4737 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4738
4739         [BZ #16689]
4740         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
4741         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
4742         static build.
4743         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
4744         selector for static builds.
4745
4746 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
4747
4748         [BZ #16695]
4749         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
4750         key in the buffer.
4751
4752 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4753
4754         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
4755         IFUNC selector for static builds.
4756
4757 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
4758
4759         * sysdeps/mips/math_private.h [__mips_hard_float]
4760         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
4761         libc_feresetround_mips_ctx.
4762         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
4763         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
4764         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
4765
4766         [BZ #16677]
4767         * math/s_nextafter.c (__nextafter): Do not return value from
4768         overflowing computation.
4769         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
4770         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
4771         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
4772         Likewise.
4773         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4774         Likewise.
4775         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
4776         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
4777
4778 2014-03-11  Roland McGrath  <roland@hack.frob.com>
4779
4780         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
4781         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
4782         Move sfi_sp use from the load-multiple (that no longer sets sp) to
4783         the new mov targetting sp.
4784
4785 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4786
4787         [BZ #16683]
4788         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
4789         Define it for static builds as well.
4790         (NO_BZERO_IMPL): Likewise.
4791
4792 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4793
4794         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
4795         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
4796         multiarch strspn for PPC64.
4797         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
4798         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
4799         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4800         (__libc_ifunc_impl_list): Likewise.
4801         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
4802         multiarch optimizations
4803         * string/strspn.c (strspn): Using macro to redefine symbol name.
4804
4805 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4806             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4807
4808         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
4809         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
4810         multiarch strncat for PPC64.
4811         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
4812         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
4813         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4814         (__libc_ifunc_impl_list): Likewise.
4815         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
4816         multiarch optimizations
4817
4818 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4819
4820         [BZ #16639]
4821         * nscd/nscd.service: Make service type forking.
4822
4823 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4824
4825         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
4826         sign in non default rounding modes.
4827         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
4828
4829 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
4830
4831         * math/libm-test.inc (ALL_RM_TEST): New macro.
4832         (ceil_test): Use ALL_RM_TEST.
4833         (cimag_test): Likewise.
4834         (conj_test): Likewise.
4835         (copysign_test): Likewise.
4836         (cproj_test): Likewise.
4837         (creal_test): Likewise.
4838         (fabs_test): Likewise.
4839         (floor_test): Likewise.
4840         (fmax_test): Likewise.
4841         (fmin_test): Likewise.
4842         (fmod_test): Likewise.
4843         (fpclassify_test): Likewise.
4844         (frexp_test): Likewise.
4845         (ilogb_test): Likewise.
4846         (isfinite_test): Likewise.
4847         (finite_test): Likewise.
4848         (isgreater_test): Likewise.
4849         (isgreaterequal_test): Likewise.
4850         (isinf_test): Likewise.
4851         (isless_test): Likewise.
4852         (islessequal_test): Likewise.
4853         (islessgreater_test): Likewise.
4854         (isnan_test): Likewise.
4855         (isnormal_test): Likewise.
4856         (issignaling_test): Likewise.
4857         (isunordered_test): Likewise.
4858         (logb_test): Likewise.
4859         (logb_downward_test_data): Remove.
4860         (logb_test_downward): Likewise.
4861         (lround_test): Use ALL_RM_TEST.
4862         (llround_test): Likewise.
4863         (modf_test): Likewise.
4864         (nexttoward_test): Likewise.
4865         (remainder_test): Likewise.
4866         (drem_test): Likewise.
4867         (remainder_tonearest_test_data): Likewise.
4868         (remainder_test_tonearest): Likewise.
4869         (drem_test_tonearest): Likewise.
4870         (remainder_towardzero_test_data): Likewise.
4871         (remainder_test_towardzero): Likewise.
4872         (drem_test_towardzero): Likewise.
4873         (remainder_downward_test_data): Likewise.
4874         (remainder_test_downward): Likewise.
4875         (drem_test_downward): Likewise.
4876         (remainder_upward_test_data): Likewise.
4877         (remainder_test_upward): Likewise.
4878         (drem_test_upward): Likewise.
4879         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
4880         (round_test): Use ALL_RM_TEST.
4881         (signbit_test): Likewise.
4882         (trunc_test): Likewise.
4883         (significand_test): Likewise.
4884         (main): Don't call removed functions.
4885
4886 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
4887
4888         [BZ #16674]
4889         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
4890         || __USE_XOPEN2K8].
4891         (ILL_ILLOPN): Likewise.
4892         (ILL_ILLADR): Likewise.
4893         (ILL_ILLTRP): Likewise.
4894         (ILL_PRVOPC): Likewise.
4895         (ILL_PRVREG): Likewise.
4896         (ILL_COPROC): Likewise.
4897         (ILL_BADSTK): Likewise.
4898         (FPE_INTDIV): Likewise.
4899         (FPE_INTOVF): Likewise.
4900         (FPE_FLTDIV): Likewise.
4901         (FPE_FLTOVF): Likewise.
4902         (FPE_FLTUND): Likewise.
4903         (FPE_FLTRES): Likewise.
4904         (FPE_FLTINV): Likewise.
4905         (FPE_FLTSUB): Likewise.
4906         (SEGV_MAPERR): Likewise.
4907         (SEGV_ACCERR): Likewise.
4908         (BUS_ADRALN): Likewise.
4909         (BUS_ADRERR): Likewise.
4910         (BUS_OBJERR): Likewise.
4911         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4912         (TRAP_TRACE): Likewise.
4913         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4914         __USE_XOPEN2K8].
4915         (CLD_KILLED): Likewise.
4916         (CLD_DUMPED): Likewise.
4917         (CLD_TRAPPED): Likewise.
4918         (CLD_STOPPED): Likewise.
4919         (CLD_CONTINUED): Likewise.
4920         (POLL_IN): Likewise.
4921         (POLL_OUT): Likewise.
4922         (POLL_MSG): Likewise.
4923         (POLL_ERR): Likewise.
4924         (POLL_PRI): Likewise.
4925         (POLL_HUP): Likewise.
4926         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
4927         Likewise.
4928         (ILL_ILLOPN): Likewise.
4929         (ILL_ILLADR): Likewise.
4930         (ILL_ILLTRP): Likewise.
4931         (ILL_PRVOPC): Likewise.
4932         (ILL_PRVREG): Likewise.
4933         (ILL_COPROC): Likewise.
4934         (ILL_BADSTK): Likewise.
4935         (FPE_INTDIV): Likewise.
4936         (FPE_INTOVF): Likewise.
4937         (FPE_FLTDIV): Likewise.
4938         (FPE_FLTOVF): Likewise.
4939         (FPE_FLTUND): Likewise.
4940         (FPE_FLTRES): Likewise.
4941         (FPE_FLTINV): Likewise.
4942         (FPE_FLTSUB): Likewise.
4943         (SEGV_MAPERR): Likewise.
4944         (SEGV_ACCERR): Likewise.
4945         (BUS_ADRALN): Likewise.
4946         (BUS_ADRERR): Likewise.
4947         (BUS_OBJERR): Likewise.
4948         (BUS_MCEERR_AR): Likewise.
4949         (BUS_MCEERR_AO): Likewise.
4950         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4951         (TRAP_TRACE): Likewise.
4952         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4953         __USE_XOPEN2K8].
4954         (CLD_KILLED): Likewise.
4955         (CLD_DUMPED): Likewise.
4956         (CLD_TRAPPED): Likewise.
4957         (CLD_STOPPED): Likewise.
4958         (CLD_CONTINUED): Likewise.
4959         (POLL_IN): Likewise.
4960         (POLL_OUT): Likewise.
4961         (POLL_MSG): Likewise.
4962         (POLL_ERR): Likewise.
4963         (POLL_PRI): Likewise.
4964         (POLL_HUP): Likewise.
4965         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
4966         (ILL_ILLOPN): Likewise.
4967         (ILL_ILLADR): Likewise.
4968         (ILL_ILLTRP): Likewise.
4969         (ILL_PRVOPC): Likewise.
4970         (ILL_PRVREG): Likewise.
4971         (ILL_COPROC): Likewise.
4972         (ILL_BADSTK): Likewise.
4973         (FPE_INTDIV): Likewise.
4974         (FPE_INTOVF): Likewise.
4975         (FPE_FLTDIV): Likewise.
4976         (FPE_FLTOVF): Likewise.
4977         (FPE_FLTUND): Likewise.
4978         (FPE_FLTRES): Likewise.
4979         (FPE_FLTINV): Likewise.
4980         (FPE_FLTSUB): Likewise.
4981         (SEGV_MAPERR): Likewise.
4982         (SEGV_ACCERR): Likewise.
4983         (BUS_ADRALN): Likewise.
4984         (BUS_ADRERR): Likewise.
4985         (BUS_OBJERR): Likewise.
4986         (BUS_MCEERR_AR): Likewise.
4987         (BUS_MCEERR_AO): Likewise.
4988         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
4989         (TRAP_TRACE): Likewise.
4990         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
4991         __USE_XOPEN2K8].
4992         (CLD_KILLED): Likewise.
4993         (CLD_DUMPED): Likewise.
4994         (CLD_TRAPPED): Likewise.
4995         (CLD_STOPPED): Likewise.
4996         (CLD_CONTINUED): Likewise.
4997         (POLL_IN): Likewise.
4998         (POLL_OUT): Likewise.
4999         (POLL_MSG): Likewise.
5000         (POLL_ERR): Likewise.
5001         (POLL_PRI): Likewise.
5002         (POLL_HUP): Likewise.
5003         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5004         Likewise.
5005         (ILL_ILLOPN): Likewise.
5006         (ILL_ILLADR): Likewise.
5007         (ILL_ILLTRP): Likewise.
5008         (ILL_PRVOPC): Likewise.
5009         (ILL_PRVREG): Likewise.
5010         (ILL_COPROC): Likewise.
5011         (ILL_BADSTK): Likewise.
5012         (ILL_BADIADDR): Likewise.
5013         (ILL_BREAK): Likewise.
5014         (FPE_INTDIV): Likewise.
5015         (FPE_INTOVF): Likewise.
5016         (FPE_FLTDIV): Likewise.
5017         (FPE_FLTOVF): Likewise.
5018         (FPE_FLTUND): Likewise.
5019         (FPE_FLTRES): Likewise.
5020         (FPE_FLTINV): Likewise.
5021         (FPE_FLTSUB): Likewise.
5022         (FPE_DECOVF): Likewise.
5023         (FPE_DECDIV): Likewise.
5024         (FPE_DECERR): Likewise.
5025         (FPE_INVASC): Likewise.
5026         (FPE_INVDEC): Likewise.
5027         (SEGV_MAPERR): Likewise.
5028         (SEGV_ACCERR): Likewise.
5029         (SEGV_PSTKOVF): Likewise.
5030         (BUS_ADRALN): Likewise.
5031         (BUS_ADRERR): Likewise.
5032         (BUS_OBJERR): Likewise.
5033         (BUS_MCEERR_AR): Likewise.
5034         (BUS_MCEERR_AO): Likewise.
5035         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5036         (TRAP_TRACE): Likewise.
5037         (TRAP_BRANCH): Likewise.
5038         (TRAP_HWBKPT): Likewise.
5039         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5040         __USE_XOPEN2K8].
5041         (CLD_KILLED): Likewise.
5042         (CLD_DUMPED): Likewise.
5043         (CLD_TRAPPED): Likewise.
5044         (CLD_STOPPED): Likewise.
5045         (CLD_CONTINUED): Likewise.
5046         (POLL_IN): Likewise.
5047         (POLL_OUT): Likewise.
5048         (POLL_MSG): Likewise.
5049         (POLL_ERR): Likewise.
5050         (POLL_PRI): Likewise.
5051         (POLL_HUP): Likewise.
5052         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5053         (ILL_ILLOPN): Likewise.
5054         (ILL_ILLADR): Likewise.
5055         (ILL_ILLTRP): Likewise.
5056         (ILL_PRVOPC): Likewise.
5057         (ILL_PRVREG): Likewise.
5058         (ILL_COPROC): Likewise.
5059         (ILL_BADSTK): Likewise.
5060         (FPE_INTDIV): Likewise.
5061         (FPE_INTOVF): Likewise.
5062         (FPE_FLTDIV): Likewise.
5063         (FPE_FLTOVF): Likewise.
5064         (FPE_FLTUND): Likewise.
5065         (FPE_FLTRES): Likewise.
5066         (FPE_FLTINV): Likewise.
5067         (FPE_FLTSUB): Likewise.
5068         (SEGV_MAPERR): Likewise.
5069         (SEGV_ACCERR): Likewise.
5070         (BUS_ADRALN): Likewise.
5071         (BUS_ADRERR): Likewise.
5072         (BUS_OBJERR): Likewise.
5073         (BUS_MCEERR_AR): Likewise.
5074         (BUS_MCEERR_AO): Likewise.
5075         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5076         (TRAP_TRACE): Likewise.
5077         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5078         __USE_XOPEN2K8].
5079         (CLD_KILLED): Likewise.
5080         (CLD_DUMPED): Likewise.
5081         (CLD_TRAPPED): Likewise.
5082         (CLD_STOPPED): Likewise.
5083         (CLD_CONTINUED): Likewise.
5084         (POLL_IN): Likewise.
5085         (POLL_OUT): Likewise.
5086         (POLL_MSG): Likewise.
5087         (POLL_ERR): Likewise.
5088         (POLL_PRI): Likewise.
5089         (POLL_HUP): Likewise.
5090         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5091         (ILL_ILLOPN): Likewise.
5092         (ILL_ILLADR): Likewise.
5093         (ILL_ILLTRP): Likewise.
5094         (ILL_PRVOPC): Likewise.
5095         (ILL_PRVREG): Likewise.
5096         (ILL_COPROC): Likewise.
5097         (ILL_BADSTK): Likewise.
5098         (FPE_INTDIV): Likewise.
5099         (FPE_INTOVF): Likewise.
5100         (FPE_FLTDIV): Likewise.
5101         (FPE_FLTOVF): Likewise.
5102         (FPE_FLTUND): Likewise.
5103         (FPE_FLTRES): Likewise.
5104         (FPE_FLTINV): Likewise.
5105         (FPE_FLTSUB): Likewise.
5106         (SEGV_MAPERR): Likewise.
5107         (SEGV_ACCERR): Likewise.
5108         (BUS_ADRALN): Likewise.
5109         (BUS_ADRERR): Likewise.
5110         (BUS_OBJERR): Likewise.
5111         (BUS_MCEERR_AR): Likewise.
5112         (BUS_MCEERR_AO): Likewise.
5113         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5114         (TRAP_TRACE): Likewise.
5115         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5116         __USE_XOPEN2K8].
5117         (CLD_KILLED): Likewise.
5118         (CLD_DUMPED): Likewise.
5119         (CLD_TRAPPED): Likewise.
5120         (CLD_STOPPED): Likewise.
5121         (CLD_CONTINUED): Likewise.
5122         (POLL_IN): Likewise.
5123         (POLL_OUT): Likewise.
5124         (POLL_MSG): Likewise.
5125         (POLL_ERR): Likewise.
5126         (POLL_PRI): Likewise.
5127         (POLL_HUP): Likewise.
5128         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5129         (ILL_ILLOPN): Likewise.
5130         (ILL_ILLADR): Likewise.
5131         (ILL_ILLTRP): Likewise.
5132         (ILL_PRVOPC): Likewise.
5133         (ILL_PRVREG): Likewise.
5134         (ILL_COPROC): Likewise.
5135         (ILL_BADSTK): Likewise.
5136         (FPE_INTDIV): Likewise.
5137         (FPE_INTOVF): Likewise.
5138         (FPE_FLTDIV): Likewise.
5139         (FPE_FLTOVF): Likewise.
5140         (FPE_FLTUND): Likewise.
5141         (FPE_FLTRES): Likewise.
5142         (FPE_FLTINV): Likewise.
5143         (FPE_FLTSUB): Likewise.
5144         (SEGV_MAPERR): Likewise.
5145         (SEGV_ACCERR): Likewise.
5146         (BUS_ADRALN): Likewise.
5147         (BUS_ADRERR): Likewise.
5148         (BUS_OBJERR): Likewise.
5149         (BUS_MCEERR_AR): Likewise.
5150         (BUS_MCEERR_AO): Likewise.
5151         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5152         (TRAP_TRACE): Likewise.
5153         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5154         __USE_XOPEN2K8].
5155         (CLD_KILLED): Likewise.
5156         (CLD_DUMPED): Likewise.
5157         (CLD_TRAPPED): Likewise.
5158         (CLD_STOPPED): Likewise.
5159         (CLD_CONTINUED): Likewise.
5160         (POLL_IN): Likewise.
5161         (POLL_OUT): Likewise.
5162         (POLL_MSG): Likewise.
5163         (POLL_ERR): Likewise.
5164         (POLL_PRI): Likewise.
5165         (POLL_HUP): Likewise.
5166         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5167         (ILL_ILLOPN): Likewise.
5168         (ILL_ILLADR): Likewise.
5169         (ILL_ILLTRP): Likewise.
5170         (ILL_PRVOPC): Likewise.
5171         (ILL_PRVREG): Likewise.
5172         (ILL_COPROC): Likewise.
5173         (ILL_BADSTK): Likewise.
5174         (ILL_DBLFLT): Likewise.
5175         (ILL_HARDWALL): Likewise.
5176         (FPE_INTDIV): Likewise.
5177         (FPE_INTOVF): Likewise.
5178         (FPE_FLTDIV): Likewise.
5179         (FPE_FLTOVF): Likewise.
5180         (FPE_FLTUND): Likewise.
5181         (FPE_FLTRES): Likewise.
5182         (FPE_FLTINV): Likewise.
5183         (FPE_FLTSUB): Likewise.
5184         (SEGV_MAPERR): Likewise.
5185         (SEGV_ACCERR): Likewise.
5186         (BUS_ADRALN): Likewise.
5187         (BUS_ADRERR): Likewise.
5188         (BUS_OBJERR): Likewise.
5189         (BUS_MCEERR_AR): Likewise.
5190         (BUS_MCEERR_AO): Likewise.
5191         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5192         (TRAP_TRACE): Likewise.
5193         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5194         __USE_XOPEN2K8].
5195         (CLD_KILLED): Likewise.
5196         (CLD_DUMPED): Likewise.
5197         (CLD_TRAPPED): Likewise.
5198         (CLD_STOPPED): Likewise.
5199         (CLD_CONTINUED): Likewise.
5200         (POLL_IN): Likewise.
5201         (POLL_OUT): Likewise.
5202         (POLL_MSG): Likewise.
5203         (POLL_ERR): Likewise.
5204         (POLL_PRI): Likewise.
5205         (POLL_HUP): Likewise.
5206         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5207         (ILL_ILLOPN): Likewise.
5208         (ILL_ILLADR): Likewise.
5209         (ILL_ILLTRP): Likewise.
5210         (ILL_PRVOPC): Likewise.
5211         (ILL_PRVREG): Likewise.
5212         (ILL_COPROC): Likewise.
5213         (ILL_BADSTK): Likewise.
5214         (FPE_INTDIV): Likewise.
5215         (FPE_INTOVF): Likewise.
5216         (FPE_FLTDIV): Likewise.
5217         (FPE_FLTOVF): Likewise.
5218         (FPE_FLTUND): Likewise.
5219         (FPE_FLTRES): Likewise.
5220         (FPE_FLTINV): Likewise.
5221         (FPE_FLTSUB): Likewise.
5222         (SEGV_MAPERR): Likewise.
5223         (SEGV_ACCERR): Likewise.
5224         (BUS_ADRALN): Likewise.
5225         (BUS_ADRERR): Likewise.
5226         (BUS_OBJERR): Likewise.
5227         (BUS_MCEERR_AR): Likewise.
5228         (BUS_MCEERR_AO): Likewise.
5229         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5230         (TRAP_TRACE): Likewise.
5231         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5232         __USE_XOPEN2K8].
5233         (CLD_KILLED): Likewise.
5234         (CLD_DUMPED): Likewise.
5235         (CLD_TRAPPED): Likewise.
5236         (CLD_STOPPED): Likewise.
5237         (CLD_CONTINUED): Likewise.
5238         (POLL_IN): Likewise.
5239         (POLL_OUT): Likewise.
5240         (POLL_MSG): Likewise.
5241         (POLL_ERR): Likewise.
5242         (POLL_PRI): Likewise.
5243         (POLL_HUP): Likewise.
5244         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
5245         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5246
5247         [BZ #16670]
5248         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
5249         before #include of <time.h>.
5250         [!__USE_XOPEN2K] (__need_timespec): Likewise.
5251         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
5252         (test-xfail-UNIX98/sched.h/conform): Likewise.
5253
5254 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5255
5256         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
5257         error absence of trapping exception support.
5258         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
5259
5260 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5261
5262         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
5263         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
5264         * timezone/Makefile (testdata): Move definition above include of
5265         Rules.
5266         (test-zones): New variable.
5267         (tests-special): Add zone files.
5268         (build-testdata): Use $(evaluate-test).
5269
5270         * elf/Makefile (tests-special): Rename tests to end with .out.
5271         ($(objpfx)noload-mem): Likewise.
5272         ($(objpfx)tst-leaks1-mem): Likewise.
5273         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
5274         * iconv/Makefile (xtests-special): Change test-iconvconfig to
5275         $(objpfx)test-iconvconfig.out.
5276         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
5277         set -e inside subshell and redirect output to file.
5278         * iconvdata/Makefile (generated): Rename tests to end with .out.
5279         Correct type.
5280         (tests-special): Rename tests to end with .out.
5281         ($(objpfx)mtrace-tst-loading): Likewise.
5282         * intl/Makefile (generated): Likewise.
5283         (tests-special): Likewise.
5284         ($(objpfx)mtrace-tst-gettext): Likewise.
5285         * misc/Makefile (generated): Likewise.
5286         (tests-special): Likewise.
5287         ($(objpfx)tst-error1-mem): Likewise.
5288         * nptl/Makefile (tests-special): Likewise.
5289         ($(objpfx)tst-stack3-mem): Likewise.
5290         (generated): Likewise.
5291         * posix/Makefile (generated): Likewise.
5292         (tests-special): Likewise.
5293         (xtests-special): Likewise.
5294         ($(objpfx)tst-fnmatch-mem): Likewise.
5295         ($(objpfx)bug-regex2-mem): Likewise.
5296         ($(objpfx)bug-regex14-mem): Likewise.
5297         ($(objpfx)bug-regex21-mem): Likewise.
5298         ($(objpfx)bug-regex31-mem): Likewise.
5299         ($(objpfx)tst-vfork3-mem): Likewise.
5300         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
5301         ($(objpfx)tst-pcre-mem): Likewise.
5302         ($(objpfx)tst-boost-mem): Likewise.
5303         ($(objpfx)bug-ga2-mem): Likewise.
5304         ($(objpfx)bug-glob2-mem): Likewise.
5305         * resolv/Makefile (generate): Likewise.
5306         (tests-special): Likewise.
5307         (xtests-special): Likewise.
5308         (generated): Likewise.
5309         ($(objpfx)mtrace-tst-leaks): Likewise.
5310         ($(objpfx)mtrace-tst-leaks2): Likewise.
5311
5312         * scripts/merge-test-results.sh: New file.
5313         * Makefile (tests-special-notdir): New variable.
5314         (tests): Run merge-test-results.sh.
5315         (xtests): Likewise.
5316         * Rules (tests-special-notdir): New variable.
5317         (xtests-special-notdir): Likewise.
5318         (tests): Run merge-test-results.sh
5319         (xtests): Likewise.
5320
5321         * Makeconfig (test-xfail-name): New variable.
5322         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
5323         compute variable name for expected failures.
5324         * conform/Makefile (conformtest-headers-data): New variable.
5325         (conformtest-standards): Likewise.
5326         (conformtest-headers-ISO): Likewise.
5327         (conformtest-headers-ISO99): Likewise.
5328         (conformtest-headers-ISO11): Likewise.
5329         (conformtest-headers-POSIX): Likewise.
5330         (conformtest-headers-XPG3): Likewise.
5331         (conformtest-headers-XPG4): Likewise.
5332         (conformtest-headers-UNIX98): Likewise.
5333         (conformtest-headers-XOPEN2K): Likewise.
5334         (conformtest-headers-POSIX2008): Likewise.
5335         (conformtest-headers-XOPEN2K8): Likewise.
5336         (conformtest-header-list-base): Likewise.
5337         (conformtest-header-list-tests): Likewise.
5338         (conformtest-header-base): Likewise.
5339         (conformtest-header-tests): Likewise.
5340         (tests-special): Add $(conformtest-header-list-tests).  If
5341         [$(fast-check) && !$(cross-compiling)], add
5342         $(conformtest-header-tests) instead of
5343         $(objpfx)run-conformtest.out.
5344         (generated): Add $(conformtest-header-list-base).  If
5345         [$(fast-check) && !$(cross-compiling)], add
5346         $(conformtest-header-base).  Remove previous setting.
5347         ($(conformtest-header-list-tests)): New target.
5348         (test-xfail-run-conformtest): Remove variable.
5349         ($(objpfx)run-conformtest.out): Remove target.
5350         (test-xfail-ISO11/complex.h/conform): New variable.
5351         (test-xfail-ISO11/stdalign.h/conform): Likewise.
5352         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
5353         (test-xfail-XPG3/varargs.h/conform): Likewise.
5354         (test-xfail-XPG4/varargs.h/conform): Likewise.
5355         (test-xfail-UNIX98/varargs.h/conform): Likewise.
5356         (test-xfail-XPG4/ndbm.h/conform): Likewise.
5357         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
5358         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
5359         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
5360         (test-xfail-XPG3/fcntl.h/conform): Likewise.
5361         (test-xfail-XPG3/ftw.h/conform): Likewise.
5362         (test-xfail-XPG3/grp.h/conform): Likewise.
5363         (test-xfail-XPG3/langinfo.h/conform): Likewise.
5364         (test-xfail-XPG3/limits.h/conform): Likewise.
5365         (test-xfail-XPG3/pwd.h/conform): Likewise.
5366         (test-xfail-XPG3/search.h/conform): Likewise.
5367         (test-xfail-XPG3/signal.h/conform): Likewise.
5368         (test-xfail-XPG3/stdio.h/conform): Likewise.
5369         (test-xfail-XPG3/stdlib.h/conform): Likewise.
5370         (test-xfail-XPG3/string.h/conform): Likewise.
5371         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
5372         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
5373         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
5374         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
5375         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
5376         (test-xfail-XPG3/sys/types.h/conform): Likewise.
5377         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
5378         (test-xfail-XPG3/termios.h/conform): Likewise.
5379         (test-xfail-XPG3/time.h/conform): Likewise.
5380         (test-xfail-XPG3/unistd.h/conform): Likewise.
5381         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
5382         (test-xfail-XPG4/fcntl.h/conform): Likewise.
5383         (test-xfail-XPG4/langinfo.h/conform): Likewise.
5384         (test-xfail-XPG4/netdb.h/conform): Likewise.
5385         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
5386         (test-xfail-XPG4/signal.h/conform): Likewise.
5387         (test-xfail-XPG4/stdio.h/conform): Likewise.
5388         (test-xfail-XPG4/stdlib.h/conform): Likewise.
5389         (test-xfail-XPG4/stropts.h/conform): Likewise.
5390         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
5391         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
5392         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
5393         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
5394         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
5395         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
5396         (test-xfail-XPG4/sys/time.h/conform): Likewise.
5397         (test-xfail-XPG4/sys/types.h/conform): Likewise.
5398         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
5399         (test-xfail-XPG4/termios.h/conform): Likewise.
5400         (test-xfail-XPG4/ucontext.h/conform): Likewise.
5401         (test-xfail-XPG4/unistd.h/conform): Likewise.
5402         (test-xfail-XPG4/utmpx.h/conform): Likewise.
5403         (test-xfail-POSIX/sched.h/conform): Likewise.
5404         (test-xfail-POSIX/signal.h/conform): Likewise.
5405         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5406         (test-xfail-POSIX/tar.h/conform): Likewise.
5407         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
5408         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
5409         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
5410         (test-xfail-UNIX98/netdb.h/conform): Likewise.
5411         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
5412         (test-xfail-UNIX98/sched.h/conform): Likewise.
5413         (test-xfail-UNIX98/signal.h/conform): Likewise.
5414         (test-xfail-UNIX98/stdio.h/conform): Likewise.
5415         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5416         (test-xfail-UNIX98/stropts.h/conform): Likewise.
5417         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
5418         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
5419         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
5420         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
5421         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
5422         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
5423         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5424         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5425         (test-xfail-UNIX98/unistd.h/conform): Likewise.
5426         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
5427         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
5428         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
5429         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
5430         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
5431         (test-xfail-XOPEN2K/math.h/conform): Likewise.
5432         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
5433         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
5434         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
5435         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
5436         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5437         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
5438         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
5439         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
5440         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
5441         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
5442         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
5443         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
5444         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
5445         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5446         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
5447         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
5448         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5449         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
5450         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
5451         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
5452         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
5453         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
5454         (test-xfail-POSIX2008/signal.h/conform): Likewise.
5455         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
5456         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
5457         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5458         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
5459         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
5460         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
5461         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
5462         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
5463         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
5464         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5465         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
5466         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
5467         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
5468         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
5469         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
5470         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
5471         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
5472         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
5473         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
5474         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5475         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
5476         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
5477         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
5478         (conformtest-cc-flags): Likewise.
5479         ($(conformtest-header-tests): New target.
5480         * conform/check-header-lists.sh: New file.
5481         * conform/run-conformtest.sh: Remove.
5482
5483         * conform/conformtest.pl: Allow ' and \ in values given for
5484         constants.
5485         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
5486         inclusion.
5487         [POSIX] (sys/types.h): Likewise.
5488         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
5489         inclusion.
5490         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
5491         inclusion.
5492         * conform/data/signal.h-data (SIGIO): Remove expectation.
5493         [XPG3] (SIGBUS): Do not expect.
5494         [POSIX || XPG3] (SIGPOLL): Likewise.
5495         [POSIX || XPG3] (SIGPROF): Likewise.
5496         [POSIX || XPG3] (SIGSYS): Likewise.
5497         [XPG3] (SIGTRAP): Likewise.
5498         [POSIX || XPG3] (SIGURG): Likewise.
5499         [POSIX || XPG3] (SIGVTALRM): Likewise.
5500         [POSIX || XPG3] (SIGXCPU): Likewise.
5501         [POSIX || XPG3] (SIGXFSZ): Likewise.
5502         [POSIX] (SA_SIGINFO): Expect.
5503         [XPG3] (siginfo_t): Do not expect type or contents.
5504         [POSIX] (si_pid): Do not expect element.
5505         [POSIX] (si_uid): Likewise.
5506         [POSIX] (si_addr): Likewise.
5507         [POSIX] (si_status): Likewise.
5508         [POSIX] (si_band): Likewise.
5509         [XPG4] (si_value): Likewise.
5510         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
5511         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
5512         [POSIX || XPG3] (ILL_ILLADR): Likewise.
5513         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
5514         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
5515         [POSIX || XPG3] (ILL_PRVREG): Likewise.
5516         [POSIX || XPG3] (ILL_COPROC): Likewise.
5517         [POSIX || XPG3] (ILL_BADSTK): Likewise.
5518         [POSIX || XPG3] (FPE_INTDIV): Likewise.
5519         [POSIX || XPG3] (FPE_INTOVF): Likewise.
5520         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
5521         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
5522         [POSIX || XPG3] (FPE_FLTUND): Likewise.
5523         [POSIX || XPG3] (FPE_FLTRES): Likewise.
5524         [POSIX || XPG3] (FPE_FLTINV): Likewise.
5525         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
5526         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
5527         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
5528         [POSIX || XPG3] (BUS_ADRALN): Likewise.
5529         [POSIX || XPG3] (BUS_ADRERR): Likewise.
5530         [POSIX || XPG3] (BUS_OBJERR): Likewise.
5531         [POSIX || XPG3] (CLD_EXITED): Likewise.
5532         [POSIX || XPG3] (CLD_KILLED): Likewise.
5533         [POSIX || XPG3] (CLD_DUMPED): Likewise.
5534         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
5535         [POSIX || XPG3] (CLD_STOPPED): Likewise.
5536         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
5537         [POSIX || XPG3] (POLL_IN): Likewise.
5538         [POSIX || XPG3] (POLL_OUT): Likewise.
5539         [POSIX || XPG3] (POLL_MSG): Likewise.
5540         [POSIX || XPG3] (POLL_ERR): Likewise.
5541         [POSIX || XPG3] (POLL_PRI): Likewise.
5542         [POSIX || XPG3] (POLL_HUP): Likewise.
5543         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
5544         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
5545         (SIG*): Do not allow.
5546         [XPG3] (si_*): Likewise.
5547         [XPG3] (SI_*): Likewise.
5548         [XPG3 || XPG4] (sigev_*): Likewise.
5549         [XPG3 || XPG4] (SIGEV_*): Likewise.
5550         [XPG3 || XPG4] (sival_*): Likewise.
5551         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
5552         [POSIX || XPG3] (BUS_*): Likewise.
5553         [POSIX || XPG3] (CLD_*): Likewise.
5554         [POSIX || XPG3] (FPE_*): Likewise.
5555         [POSIX || XPG3] (ILL_*): Likewise.
5556         [POSIX || XPG3] (POLL_*): Likewise.
5557         [POSIX || XPG3] (SEGV_*): Likewise.
5558         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
5559         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
5560         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
5561         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
5562         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
5563         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
5564         Specify type and value.
5565         (TVERSLEN): Likewise.
5566         (REGTYPE): Likewise.
5567         (AREGTYPE): Likewise.
5568         (LNKTYPE): Likewise.
5569         (SYMTYPE): Likewise.
5570         (CHRTYPE): Likewise.
5571         (BLKTYPE): Likewise.
5572         (DIRTYPE): Likewise.
5573         (FIFOTYPE): Likewise.
5574         (CONTTYPE): Likewise.
5575         (TSUID): Likewise.
5576         (TSGID): Likewise.
5577         (TSVTX): Likewise.
5578         (TUREAD): Likewise.
5579         (TUWRITE): Likewise.
5580         (TUEXEC): Likewise.
5581         (TGREAD): Likewise.
5582         (TGWRITE): Likewise.
5583         (TGEXEC): Likewise.
5584         (TOREAD): Likewise.
5585         (TOWRITE): Likewise.
5586         (TOEXEC): Likewise.
5587         [POSIX] (TSVTX): Expect constant.
5588
5589 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
5590
5591         * Makefile (tests): Change dependencies to ....
5592         (tests-special): ... additions to this variable.
5593         (tests): Depend on $(tests-special).
5594         * Makerules (check-abi-list): New variable.
5595         (check-abi): Depend on $(check-abi-list).
5596         [$(subdir) = elf] (tests-special): Add
5597         $(objpfx)check-abi-libc.out.
5598         [$(build-shared) = yes && subdir] (tests-special): Add
5599         $(check-abi-list).
5600         [$(build-shared) = yes && subdir] (tests): Do not depend on
5601         check-abi.
5602         * Rules (tests): Depend on $(tests-special).
5603         (xtests): Depend on $(xtests-special).
5604         * catgets/Makefile (tests): Change dependencies to ....
5605         (tests-special): ... additions to this variable.
5606         * conform/Makefile (tests): Change dependencies to ....
5607         (tests-special): ... additions to this variable.
5608         * elf/Makefile (tests): Change dependencies to ....
5609         (tests-special): ... additions to this variable.
5610         * grp/Makefile (tests): Change dependencies to ....
5611         (tests-special): ... additions to this variable.
5612         * iconv/Makefile (xtests): Change dependencies to ....
5613         (xtests-special): ... additions to this variable.
5614         * iconvdata/Makefile (tests): Change dependencies to ....
5615         (tests-special): ... additions to this variable.
5616         * intl/Makefile (tests): Change dependencies to ....
5617         (tests-special): ... additions to this variable.  Also add
5618         $(objpfx)tst-gettext.out.
5619         * io/Makefile (tests): Change dependencies to ....
5620         (tests-special): ... additions to this variable.
5621         * libio/Makefile (tests): Change dependencies to ....
5622         (tests-special): ... additions to this variable.
5623         * malloc/Makefile (tests): Change dependencies to ....
5624         (tests-special): ... additions to this variable.
5625         * misc/Makefile (tests): Change dependencies to ....
5626         (tests-special): ... additions to this variable.
5627         * nptl/Makefile (tests): Change dependencies to ....
5628         (tests-special): ... additions to this variable.
5629         * nptl_db/Makefile (tests): Change dependencies to ....
5630         (tests-special): ... additions to this variable.
5631         * posix/Makefile (tests): Change dependencies to ....
5632         (tests-special): ... additions to this variable.
5633         (xtests): Change dependencies to ....
5634         (xtests-special): ... additions to this variable.
5635         * resolv/Makefile (tests): Change dependencies to ....
5636         (tests-special): ... additions to this variable.
5637         (xtests): Change dependencies to ....
5638         (xtests-special): ... additions to this variable.
5639         * stdio-common/Makefile (tests): Change dependencies to ....
5640         (tests-special): ... additions to this variable.
5641         (do-tst-unbputc): Remove target.
5642         (do-tst-printf): Likewise.
5643         * stdlib/Makefile (tests): Change dependencies to ....
5644         (tests-special): ... additions to this variable.
5645         * string/Makefile (tests): Change dependencies to ....
5646         (tests-special): ... additions to this variable.
5647         * sysdeps/x86/Makefile (tests): Change dependencies to ....
5648         (tests-special): ... additions to this variable.
5649
5650         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
5651         whole file.
5652         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
5653         whole file.
5654         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
5655         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
5656
5657         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
5658         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
5659         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
5660         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
5661         * conform/data/libgen.h-data [XPG3]: Likewise.
5662         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
5663         * conform/data/ndbm.h-data [XPG3]: Likewise.
5664         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
5665         * conform/data/netdb.h-data [XPG3]: Likewise.
5666         * conform/data/netinet/in.h-data [XPG3]: Likewise.
5667         * conform/data/poll.h-data [XPG3]: Likewise.
5668         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
5669         * conform/data/strings.h-data [XPG3]: Likewise.
5670         * conform/data/stropts.h-data [XPG3]: Likewise.
5671         * conform/data/sys/mman.h-data [XPG3]: Likewise.
5672         * conform/data/sys/resource.h-data [XPG3]: Likewise.
5673         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
5674         Likewise.
5675         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
5676         * conform/data/sys/time.h-data [XPG3]: Likewise.
5677         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
5678         * conform/data/sys/uio.h-data [XPG3]: Likewise.
5679         * conform/data/sys/un.h-data [XPG3]: Likewise.
5680         * conform/data/syslog.h-data [XPG3]: Likewise.
5681         * conform/data/ucontext.h-data [XPG3]: Likewise.
5682         * conform/data/utmpx.h-data [XPG3]: Likewise.
5683         * conform/data/varargs.h-data [UNIX98]: Enable file.
5684
5685         * manual/Makefile (INSTALL_INFO): Remove variable setting.
5686
5687         * math/libm-test.inc (struct test_f_f_data): Move expected results
5688         into structure for each rounding mode.
5689         (struct test_ff_f_data): Likewise.
5690         (struct test_ff_f_data_nexttoward): Likewise.
5691         (struct test_fi_f_data): Likewise.
5692         (struct test_fl_f_data): Likewise.
5693         (struct test_if_f_data): Likewise.
5694         (struct test_fff_f_data): Likewise.
5695         (struct test_c_f_data): Likewise.
5696         (struct test_f_f1_data): Likewise.
5697         (struct test_fF_f1_data): Likewise.
5698         (struct test_ffI_f1_data): Likewise.
5699         (struct test_c_c_data): Likewise.
5700         (struct test_cc_c_data): Likewise.
5701         (struct test_f_i_data): Likewise.
5702         (struct test_ff_i_data): Likewise.
5703         (struct test_f_l_data): Likewise.
5704         (struct test_f_L_data): Likewise.
5705         (struct test_fFF_11_data): Likewise.
5706         (RM_): New macro.
5707         (RM_FE_DOWNWARD): Likewise.
5708         (RM_FE_TONEAREST): Likewise.
5709         (RM_FE_TOWARDZERO): Likewise.
5710         (RM_FE_UPWARD): Likewise.
5711         (RUN_TEST_LOOP_f_f): Update references to expected results.
5712         (RUN_TEST_LOOP_2_f): Likewise.
5713         (RUN_TEST_LOOP_fff_f): Likewise.
5714         (RUN_TEST_LOOP_c_f): Likewise.
5715         (RUN_TEST_LOOP_f_f1): Likewise.
5716         (RUN_TEST_LOOP_fF_f1): Likewise.
5717         (RUN_TEST_LOOP_fI_f1): Likewise.
5718         (RUN_TEST_LOOP_ffI_f1): Likewise.
5719         (RUN_TEST_LOOP_c_c): Likewise.
5720         (RUN_TEST_LOOP_cc_c): Likewise.
5721         (RUN_TEST_LOOP_f_i): Likewise.
5722         (RUN_TEST_LOOP_f_i_tg): Likewise.
5723         (RUN_TEST_LOOP_ff_i_tg): Likewise.
5724         (RUN_TEST_LOOP_f_b): Likewise.
5725         (RUN_TEST_LOOP_f_b_tg): Likewise.
5726         (RUN_TEST_LOOP_f_l): Likewise.
5727         (RUN_TEST_LOOP_f_L): Likewise.
5728         (RUN_TEST_LOOP_fFF_11): Likewise.
5729         * math/gen-libm-test.pl (parse_args): Output four copies of
5730         expected results for each test.
5731
5732         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5733         (__ASSUME_UTIMES): Remove.
5734         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5735         (__ASSUME_UTIMES): Likewise.
5736
5737         * math/gen-auto-libm-tests.c: Update comment on output format.
5738         (output_for_one_input_case): Generate before-rounding and
5739         after-rounding information as conditions on output flags not
5740         floating-point format.
5741         * math/auto-libm-test-out: Regenerated.
5742         * math/gen-libm-test.pl (cond_value): New function.
5743         (or_cond_value): Use cond_value.
5744         (generate_testfile): Handle conditional exceptions.
5745
5746 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
5747
5748         * math/libm-test.inc (max_valid_error): New variable.
5749         (init_max_error): Take new argument specifying whether function
5750         results are exactly determined.  Set max_valid_error and bound
5751         other variables for errors based on this argument.
5752         (set_max_error): Do not record results above max_valid_error.
5753         (check_float_internal): Only accept errors of up to 0.5ulps if
5754         also at most max_valid_error.
5755         (START): Take new argument EXACT and pass it to init_max_error.
5756         (acos_test): Update call to START.
5757         (acos_test_tonearest): Likewise.
5758         (acos_test_towardzero): Likewise.
5759         (acos_test_downward): Likewise.
5760         (acos_test_upward): Likewise.
5761         (acosh_test): Likewise.
5762         (asin_test): Likewise.
5763         (asin_test_tonearest): Likewise.
5764         (asin_test_towardzero): Likewise.
5765         (asin_test_downward): Likewise.
5766         (asin_test_upward): Likewise.
5767         (asinh_test): Likewise.
5768         (atan_test): Likewise.
5769         (atanh_test): Likewise.
5770         (atan2_test): Likewise.
5771         (cabs_test): Likewise.
5772         (cacos_test): Likewise.
5773         (cacosh_test): Likewise.
5774         (carg_test): Likewise.
5775         (casin_test): Likewise.
5776         (casinh_test): Likewise.
5777         (catan_test): Likewise.
5778         (catanh_test): Likewise.
5779         (cbrt_test): Likewise.
5780         (ccos_test): Likewise.
5781         (ccosh_test): Likewise.
5782         (ceil_test): Likewise.
5783         (cexp_test): Likewise.
5784         (cimag_test): Likewise.
5785         (clog_test): Likewise.
5786         (clog10_test): Likewise.
5787         (conj_test): Likewise.
5788         (copysign_test): Likewise.
5789         (cos_test): Likewise.
5790         (cos_test_tonearest): Likewise.
5791         (cos_test_towardzero): Likewise.
5792         (cos_test_downward): Likewise.
5793         (cos_test_upward): Likewise.
5794         (cosh_test): Likewise.
5795         (cosh_test_tonearest): Likewise.
5796         (cosh_test_towardzero): Likewise.
5797         (cosh_test_downward): Likewise.
5798         (cosh_test_upward): Likewise.
5799         (cpow_test): Likewise.
5800         (cproj_test): Likewise.
5801         (creal_test): Likewise.
5802         (csin_test): Likewise.
5803         (csinh_test): Likewise.
5804         (csqrt_test): Likewise.
5805         (ctan_test): Likewise.
5806         (ctan_test_tonearest): Likewise.
5807         (ctan_test_towardzero): Likewise.
5808         (ctan_test_downward): Likewise.
5809         (ctan_test_upward): Likewise.
5810         (ctanh_test): Likewise.
5811         (ctanh_test_tonearest): Likewise.
5812         (ctanh_test_towardzero): Likewise.
5813         (ctanh_test_downward): Likewise.
5814         (ctanh_test_upward): Likewise.
5815         (erf_test): Likewise.
5816         (erfc_test): Likewise.
5817         (exp_test): Likewise.
5818         (exp_test_tonearest): Likewise.
5819         (exp_test_towardzero): Likewise.
5820         (exp_test_downward): Likewise.
5821         (exp_test_upward): Likewise.
5822         (exp10_test): Likewise.
5823         (exp10_test_tonearest): Likewise.
5824         (exp10_test_towardzero): Likewise.
5825         (exp10_test_downward): Likewise.
5826         (exp10_test_upward): Likewise.
5827         (pow10_test): Likewise.
5828         (exp2_test): Likewise.
5829         (expm1_test): Likewise.
5830         (expm1_test_tonearest): Likewise.
5831         (expm1_test_towardzero): Likewise.
5832         (expm1_test_downward): Likewise.
5833         (expm1_test_upward): Likewise.
5834         (fabs_test): Likewise.
5835         (fdim_test): Likewise.
5836         (floor_test): Likewise.
5837         (fma_test): Likewise.
5838         (fma_test_towardzero): Likewise.
5839         (fma_test_downward): Likewise.
5840         (fma_test_upward): Likewise.
5841         (fmax_test): Likewise.
5842         (fmin_test): Likewise.
5843         (fmod_test): Likewise.
5844         (fpclassify_test): Likewise.
5845         (frexp_test): Likewise.
5846         (hypot_test): Likewise.
5847         (ilogb_test): Likewise.
5848         (isfinite_test): Likewise.
5849         (finite_test): Likewise.
5850         (isgreater_test): Likewise.
5851         (isgreaterequal_test): Likewise.
5852         (isinf_test): Likewise.
5853         (isless_test): Likewise.
5854         (islessequal_test): Likewise.
5855         (islessgreater_test): Likewise.
5856         (isnan_test): Likewise.
5857         (isnormal_test): Likewise.
5858         (issignaling_test): Likewise.
5859         (isunordered_test): Likewise.
5860         (j0_test): Likewise.
5861         (j1_test): Likewise.
5862         (jn_test): Likewise.
5863         (ldexp_test): Likewise.
5864         (lgamma_test): Likewise.
5865         (gamma_test): Likewise.
5866         (lrint_test): Likewise.
5867         (lrint_test_tonearest): Likewise.
5868         (lrint_test_towardzero): Likewise.
5869         (lrint_test_downward): Likewise.
5870         (lrint_test_upward): Likewise.
5871         (llrint_test): Likewise.
5872         (llrint_test_tonearest): Likewise.
5873         (llrint_test_towardzero): Likewise.
5874         (llrint_test_downward): Likewise.
5875         (llrint_test_upward): Likewise.
5876         (log_test): Likewise.
5877         (log10_test): Likewise.
5878         (log1p_test): Likewise.
5879         (log2_test): Likewise.
5880         (logb_test): Likewise.
5881         (logb_test_downward): Likewise.
5882         (lround_test): Likewise.
5883         (llround_test): Likewise.
5884         (modf_test): Likewise.
5885         (nearbyint_test): Likewise.
5886         (nextafter_test): Likewise.
5887         (nexttoward_test): Likewise.
5888         (pow_test): Likewise.
5889         (pow_test_tonearest): Likewise.
5890         (pow_test_towardzero): Likewise.
5891         (pow_test_downward): Likewise.
5892         (pow_test_upward): Likewise.
5893         (remainder_test): Likewise.
5894         (drem_test): Likewise.
5895         (remainder_test_tonearest): Likewise.
5896         (drem_test_tonearest): Likewise.
5897         (remainder_test_towardzero): Likewise.
5898         (drem_test_towardzero): Likewise.
5899         (remainder_test_downward): Likewise.
5900         (drem_test_downward): Likewise.
5901         (remainder_test_upward): Likewise.
5902         (drem_test_upward): Likewise.
5903         (remquo_test): Likewise.
5904         (rint_test): Likewise.
5905         (rint_test_tonearest): Likewise.
5906         (rint_test_towardzero): Likewise.
5907         (rint_test_downward): Likewise.
5908         (rint_test_upward): Likewise.
5909         (round_test): Likewise.
5910         (scalb_test): Likewise.
5911         (scalbn_test): Likewise.
5912         (scalbln_test): Likewise.
5913         (signbit_test): Likewise.
5914         (sin_test): Likewise.
5915         (sin_test_tonearest): Likewise.
5916         (sin_test_towardzero): Likewise.
5917         (sin_test_downward): Likewise.
5918         (sin_test_upward): Likewise.
5919         (sincos_test): Likewise.
5920         (sinh_test): Likewise.
5921         (sinh_test_tonearest): Likewise.
5922         (sinh_test_towardzero): Likewise.
5923         (sinh_test_downward): Likewise.
5924         (sinh_test_upward): Likewise.
5925         (sqrt_test): Likewise.
5926         (sqrt_test_tonearest): Likewise.
5927         (sqrt_test_towardzero): Likewise.
5928         (sqrt_test_downward): Likewise.
5929         (sqrt_test_upward): Likewise.
5930         (tan_test): Likewise.
5931         (tan_test_tonearest): Likewise.
5932         (tan_test_towardzero): Likewise.
5933         (tan_test_downward): Likewise.
5934         (tan_test_upward): Likewise.
5935         (tanh_test): Likewise.
5936         (tgamma_test): Likewise.
5937         (trunc_test): Likewise.
5938         (y0_test): Likewise.
5939         (y1_test): Likewise.
5940         (yn_test): Likewise.
5941         (significand_test): Likewise.
5942
5943         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
5944         individual tests in comment.
5945         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
5946         (prev_max_error): New variable.
5947         (prev_real_max_error): Likewise.
5948         (prev_imag_max_error): Likewise.
5949         (compare_ulp_data): Don't refer to test names in comment.
5950         (find_test_ulps): Remove function.
5951         (find_function_ulps): Likewise.
5952         (find_complex_function_ulps): Likewise.
5953         (init_max_error): Take function name as argument.  Look up ulps
5954         for that function.
5955         (print_ulps): Remove function.
5956         (print_max_error): Use prev_max_error instead of calling
5957         find_function_ulps.
5958         (print_complex_max_error): Use prev_real_max_error and
5959         prev_imag_max_error instead of calling find_complex_function_ulps.
5960         (check_float_internal): Take max_ulp parameter instead of calling
5961         find_test_ulps.  Don't call print_ulps.
5962         (check_float): Update call to check_float_internal.
5963         (check_complex): Update calls to check_float_internal.
5964         (START): Pass argument to init_max_error.
5965         * math/gen-libm-test.pl (%results): Don't include "kind"
5966         information.
5967         (parse_ulps): Don't handle ulps of individual tests.
5968         (print_ulps_file): Likewise.
5969         (output_ulps): Likewise.
5970         * math/README.libm-test: Update.
5971         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
5972         individual tests.
5973         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
5974         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5975         * sysdeps/arm/libm-test-ulps: Likewise.
5976         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5977         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
5978         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
5979         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
5980         * sysdeps/microblaze/libm-test-ulps: Likewise.
5981         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5982         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5983         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5984         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5985         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5986         * sysdeps/sh/libm-test-ulps: Likewise.
5987         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5988         * sysdeps/tile/libm-test-ulps: Likewise.
5989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5990
5991 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
5992
5993         * math/libm-test.inc (print_complex_max_error): Check separately
5994         whether real and imaginary errors are within allowed range and
5995         pass 0 to print_complex_function_ulps instead of value within
5996         allowed range.
5997
5998 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5999
6000         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6001         formatting.
6002         (get_handles_fopen): Likewise.
6003         (do_write_test): Likewise.
6004
6005         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6006
6007         * libio/fileops.c (do_ftell): Use cached offset when
6008         available.
6009         * libio/iofwide.c (do_ftell_wide): Likewise.
6010         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6011         _IO_file_attach.
6012         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6013
6014         [BZ #16532]
6015         * libio/libioP.h (get_file_offset): New function.
6016         * libio/fileops.c (get_file_offset): Likewise.
6017         (do_ftell): Likewise.
6018         (_IO_new_file_seekoff): Split out ftell logic.
6019         * libio/wfileops.c (do_ftell_wide): Likewise.
6020         (_IO_wfile_seekoff): Split out ftell logic.
6021         * libio/tst-ftell-active-handler.c: New test case.
6022         * libio/Makefile (tests): Add it.
6023
6024 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6025
6026         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6027         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6028
6029 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6030
6031         [BZ #16639]
6032         * nscd/connections.c (nscd_init): Call do_exit.
6033         (start_threads): Call do_exit and notify_parent.
6034         (begin_drop_privileges): Call do_exit.
6035         (finish_drop_privileges): Likewise.
6036         * nscd/selinux.c (preserve_capabilities): Likewise.
6037         (install_real_capabilities): Likewise.
6038         (nscd_selinux_enabled): Likewise.
6039         (avc_create_thread): Likewise.
6040         (avc_alloc_lock): Likewise.
6041         (nscd_avc_init): Likewise.
6042         * nscd/nscd.c (parent_fd): New static variable.
6043         (main): Create a pipe between parent and child processes.
6044         Skip closing parent_fd.
6045         (monitor_child): New function.
6046         (do_exit): Likewise.
6047         (notify_parent): Likewise.
6048         * nscd/nscd.h (notify_parent): Likewise.
6049         (do_exit): Likewise.
6050
6051 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6052
6053         * malloc/malloc.c (__libc_calloc): Revert last change.
6054
6055 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6056
6057         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6058
6059 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6060
6061         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6062         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6063         implementation.
6064         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6065         (__libc_ifunc_impl_list): Likewise.
6066         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6067         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6068         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6069         * string/strrchr.c: Define STRRCHR.
6070
6071 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6072
6073         * benchtest/bench-strtok.c (simple_strtok): Delete.
6074         (strtok_string): Use as benchmark.
6075         * string/strtok (STRTOK): New macro.
6076
6077 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6078
6079         * manual/threads.texi: Add header and standard comments to all
6080         functions.
6081
6082         * elf/dl-lookup.c (check_match): New function.
6083         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6084         (do_lookup_x): Remove nested function check_match. Use non-nested
6085         function check_match.
6086
6087 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6088
6089         * csu/Makefile (generated, before-compile): Use += rather than =.
6090         * catgets/Makefile (generated, generated-dirs): Likewise.
6091         * debug/Makefile (generated): Likewise.
6092         * dlfcn/Makefile (generated): Likewise.
6093         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6094         * iconvdata/Makefile (before-compile, generated): Likewise.
6095         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6096         * libio/Makefile (generated): Likewise.
6097         * malloc/Makefile (generated): Likewise.
6098         * manual/Makefile (generated, generated-dirs): Likewise.
6099         * misc/Makefile (generated): Likewise.
6100         * posix/Makefile (generated): Likewise.
6101         * resolv/Makefile (generated): Likewise.
6102         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6103         * timezone/Makefile (generated, generated-dirs): Likewise.
6104
6105         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6106
6107 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6108
6109         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6110         power8 implementation.
6111         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6112         file: POWER8 llround ifunc implementation.
6113         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6114         (__lllround): Add POWER8 implementation.
6115         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6116         POWER8 llround implementation.
6117
6118         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6119         power8 implementation.
6120         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6121         file: POWER8 llrint ifunc implementation.
6122         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6123         Add POWER8 implementation.
6124         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6125         POWER8 llrint implementation.
6126
6127         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6128         power8 implementation.
6129         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6130         file: POWER8 finite ifunc implementation.
6131         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6132         Add POWER8 implementation.
6133         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6134         Likewise.
6135         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6136         POWER8 finite implementation.
6137         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6138
6139         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6140         power8 implementation.
6141         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6142         file: POWER8 isinf ifunc implementation.
6143         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6144         POWER8 implementation.
6145         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6146         Likewise.
6147         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6148         isinf implementation.
6149         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6150
6151         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6152         (INIT_ARCH): Add hwcap2 initialization.
6153         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6154         power8 implementation.
6155         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6156         file: POWER8 isnan ifunc implementation.
6157         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6158         POWER8 implementation.
6159         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6160         Likewise.
6161         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6162         isnan implementation.
6163         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6164
6165 2014-02-27  Joey Ye  <joey.ye@arm.com>
6166
6167         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6168         (_FP_NANFRAC_Q): Set to zero.
6169
6170 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6171
6172         [BZ #16623]
6173         * math/auto-libm-test-in: New test inputs.
6174         * math/auto-libm-test-out: Regenerate.
6175         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6176         and DA.
6177         (__cos): Likewise.
6178         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6179
6180 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6181
6182         * scripts/evaluate-test.sh: Take new argument indicating whether
6183         failure is expected.
6184         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6185         indicating whether failure is expected.
6186         * conform/Makefile (test-xfail-run-conformtest): New variable.
6187         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6188         level.
6189         * posix/Makefile (test-xfail-annexc): New variable.
6190         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6191
6192 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6193
6194         * argp/Makefile: Include Makeconfig immediately after defining
6195         subdir.
6196         * assert/Makefile: Likewise.
6197         * benchtests/Makefile: Likewise.
6198         * catgets/Makefile: Likewise.
6199         * conform/Makefile: Likewise.
6200         * crypt/Makefile: Likewise.
6201         * csu/Makefile: Likewise.
6202         (all): Remove target.
6203         * ctype/Makefile: Include Makeconfig immediately after defining
6204         subdir.
6205         * debug/Makefile: Likewise.
6206         * dirent/Makefile: Likewise.
6207         * dlfcn/Makefile: Likewise.
6208         * gmon/Makefile: Likewise.
6209         * gnulib/Makefile: Likewise.
6210         * grp/Makefile: Likewise.
6211         * gshadow/Makefile: Likewise.
6212         * hesiod/Makefile: Likewise.
6213         * hurd/Makefile: Likewise.
6214         (all): Remove target.
6215         * iconvdata/Makefile: Include Makeconfig immediately after
6216         defining subdir.
6217         * inet/Makefile: Likewise.
6218         * intl/Makefile: Likewise.
6219         * io/Makefile: Likewise.
6220         * libio/Makefile: Likewise.
6221         (all): Remove target.
6222         * locale/Makefile: Include Makeconfig immediately after defining
6223         subdir.
6224         * login/Makefile: Likewise.
6225         * mach/Makefile: Likewise.
6226         (all): Remove target.
6227         * malloc/Makefile: Include Makeconfig immediately after defining
6228         subdir.
6229         (all): Remove target.
6230         * manual/Makefile: Include Makeconfig immediately after defining
6231         subdir.
6232         * math/Makefile: Likewise.
6233         * misc/Makefile: Likewise.
6234         * nis/Makefile: Likewise.
6235         * nss/Makefile: Likewise.
6236         * po/Makefile: Likewise.
6237         (all): Remove target.
6238         * posix/Makefile: Include Makeconfig immediately after defining
6239         subdir.
6240         * pwd/Makefile: Likewise.
6241         * resolv/Makefile: Likewise.
6242         * resource/Makefile: Likewise.
6243         * rt/Makefile: Likewise.
6244         * setjmp/Makefile: Likewise.
6245         * shadow/Makefile: Likewise.
6246         * signal/Makefile: Likewise.
6247         * socket/Makefile: Likewise.
6248         * soft-fp/Makefile: Likewise.
6249         * stdio-common/Makefile: Likewise.
6250         * stdlib/Makefile: Likewise.
6251         * streams/Makefile: Likewise.
6252         * string/Makefile: Likewise.
6253         * sunrpc/Makefile: Likewise.
6254         (all): Remove target.
6255         * sysvipc/Makefile: Include Makeconfig immediately after defining
6256         subdir.
6257         * termios/Makefile: Likewise.
6258         * time/Makefile: Likewise.
6259         * timezone/Makefile: Likewise.
6260         (all): Remove target.
6261         * wcsmbs/Makefile: Include Makeconfig immediately after defining
6262         subdir.
6263         * wctype/Makefile: Likewise.
6264
6265 2014-02-26  Steve Ellcey  <sellcey@mips.com>
6266
6267         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
6268         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
6269         (libc_feholdexcept_setround_mips): Ditto.
6270         (libc_feholdsetround): New.
6271         (libc_feholdsetroundf): New.
6272         (libc_feholdsetroundl): New.
6273         (libc_feupdateenv_test_mips): New.
6274         (libc_feupdateenv_test): New.
6275         (libc_feupdateenv_testf): New.
6276         (libc_feupdateenv_testl): New.
6277         (libc_feresetround): New.
6278         (libc_feresetroundf): New.
6279         (libc_feresetroundl): New.
6280         (libc_fetestexcept_mips): New.
6281         (libc_fetestexcept): New.
6282         (libc_fetestexceptf): New.
6283         (libc_fetestexceptl): New.
6284         (HAVE_RM_CTX): New.
6285         (libc_feholdexcept_setround_mips_ctx): New.
6286         (libc_feholdexcept_setround_ctx): New.
6287         (libc_feholdexcept_setroundf_ctx): New.
6288         (libc_feholdexcept_setroundl_ctx): New.
6289         (libc_fesetenv_mips_ctx): New.
6290         (libc_fesetenv_ctx): New.
6291         (libc_fesetenv_ctxf): New.
6292         (libc_fesetenv_ctxl): New.
6293         (libc_feupdateenv_mips_ctx): New.
6294         (libc_feupdateenv_ctx): New.
6295         (libc_feupdateenvf_ctx): New.
6296         (libc_feupdateenvl_ctx): New.
6297         (libc_feholdsetround_mips_ctx): New.
6298         (libc_feholdsetround_ctx): New.
6299         (libc_feholdsetroundf_ctx): New.
6300         (libc_feholdsetroundl_ctx): New.
6301         (libc_feresetround_mips_ctx): New.
6302         (libc_feresetround_ctx): New.
6303         (libc_feresetroundf_ctx): New.
6304         (libc_feresetroundl_ctx): New.
6305
6306 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
6307
6308         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
6309
6310         * manual/ipc.texi: New file.
6311         * manual/Makefile (chapters): Add ipc.
6312         * manual/job.texi: Add "Inter-Process Communication" to next.
6313         * manual/process.texi: Add "Inter-Process Communication" to prev.
6314
6315 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6316
6317         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6318
6319 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
6320
6321         * malloc/malloc.c (__libc_calloc): Simplify implementation.
6322
6323         * manual/arith.texi: Fix spaces after sentences.
6324         * manual/charset.texi: Likewise.
6325         * manual/errno.texi: Likewise.
6326         * manual/install.texi: Likewise.
6327         * manual/llio.texi: Likewise.
6328         * manual/locale.texi: Likewise.
6329         * manual/maint.texi: Likewise.
6330         * manual/math.texi: Likewise.
6331         * manual/memory.texi: Likewise.
6332         * manual/message.texi: Likewise.
6333         * manual/probes.texi: Likewise.
6334         * manual/resource.texi: Likewise.
6335         * manual/signal.texi: Likewise.
6336         * manual/socket.texi: Likewise.
6337         * manual/stdio.texi: Likewise.
6338         * manual/string.texi: Likewise.
6339         * manual/time.texi: Likewise.
6340         * manual/users.texi: Likewise.
6341
6342 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
6343
6344         [BZ #16632]
6345         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
6346         _DEFAULT_SOURCE is defined.
6347
6348 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
6349             Carlos O'Donell  <carlos@redhat.com>
6350
6351         [BZ #16613]
6352         * elf/dl-tls.c (_dl_count_modids): New function.
6353         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
6354         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
6355         audit library and increment generation counter.
6356         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
6357         * elf/tst-audit9.c: New file.
6358         * elf/tst-auditmod9a.c: New file.
6359         * elf/tst-auditmod9b.c: New file.
6360         * elf/Makefile: Add rules to build and run tst-audit9.
6361
6362 2014-02-25  Florian Weimer  <fweimer@redhat.com>
6363
6364         [BZ #15347]
6365         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
6366
6367 2014-02-25  Will Newton  <will.newton@linaro.org>
6368
6369         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
6370         (__longjmp): Restore sp and lr before restoring callee
6371         saved registers.  Add longjmp and longjmp_target
6372         SystemTap probe point.
6373         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
6374         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
6375         Define to zero to match jmpbuf layout.
6376         * sysdeps/arm/setjmp.S: Include stap-probe.h.
6377         (__sigsetjmp): Save sp and lr before saving callee
6378         saved registers.  Add setjmp SystemTap probe point.
6379
6380 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
6381
6382         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6383
6384 2014-02-24  Andreas Schwab  <schwab@suse.de>
6385
6386         [BZ #15804]
6387         * elf/pldd.c (wait_for_ptrace_stop): New function.
6388         (main): Call it after attaching.
6389
6390 2014-02-22  Roland McGrath  <roland@hack.frob.com>
6391
6392         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
6393         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
6394         Versions files is now verboten.
6395         * hurd/Versions (libc: GLIBC_2.0):
6396         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
6397         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
6398         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
6399         * mach/Versions: Likewise.
6400
6401         * csu/Versions: Remove unused %include.
6402         * resolv/Versions: Likewise.
6403
6404 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
6405
6406         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
6407         ($(objpfx)check-local-headers.out): Likewise.
6408         ($(objpfx)begin-end-check.out): Likewise.
6409         * Makerules (check-abi-%.out): Likewise.
6410         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
6411         ($(objpfx)test2.cat): Likewise.
6412         ($(objpfx)de/libc.cat): Likewise.
6413         ($(objpfx)test-gencat.out): Likewise.
6414         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
6415         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
6416         ($(objpfx)noload-mem): Likewise.
6417         ($(objpfx)tst-pathopt.out): Likewise.
6418         ($(objpfx)tst-rtld-load-self.out): Likewise.
6419         ($(objpfx)tst-array1-cmp.out): Likewise.
6420         ($(objpfx)tst-array1-static-cmp.out): Likewise.
6421         ($(objpfx)tst-array2-cmp.out): Likewise.
6422         ($(objpfx)tst-array3-cmp.out): Likewise.
6423         ($(objpfx)tst-array4-cmp.out): Likewise.
6424         ($(objpfx)tst-array5-cmp.out): Likewise.
6425         ($(objpfx)tst-array5-static-cmp.out): Likewise.
6426         ($(objpfx)check-textrel.out): Likewise.
6427         ($(objpfx)check-execstack.out): Likewise.
6428         ($(objpfx)check-localplt.out): Likewise.
6429         ($(objpfx)order2-cmp.out): Likewise.
6430         ($(objpfx)tst-leaks1-mem): Likewise.
6431         ($(objpfx)tst-leaks1-static-mem): Likewise.
6432         ($(objpfx)tst-initorder-cmp.out): Likewise.
6433         ($(objpfx)tst-initorder2-cmp.out): Likewise.
6434         ($(objpfx)tst-unused-dep.out): Likewise.
6435         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
6436         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6437         * iconv/Makefile (test-iconvconfig): Likewise.
6438         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
6439         ($(objpfx)iconv-test.out): Likewise.
6440         ($(objpfx)tst-tables.out): Likewise.
6441         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
6442         ($(objpfx)tst-gettext.out): Likewise.
6443         ($(objpfx)tst-translit.out): Likewise.
6444         ($(objpfx)tst-gettext2.out): Likewise.
6445         ($(objpfx)tst-gettext4.out): Likewise.
6446         ($(objpfx)tst-gettext6.out): Likewise.
6447         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
6448         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6449         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
6450         ($(objpfx)tst-fopenloc-mem.out): Likewise.
6451         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6452         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
6453         * posix/Makefile ($(objpfx)globtest.out): Likewise.
6454         ($(objpfx)wordexp-tst.out): Likewise.
6455         ($(objpfx)annexc.out): Likewise.
6456         ($(objpfx)tst-fnmatch-mem): Likewise.
6457         ($(objpfx)bug-regex2-mem): Likewise.
6458         ($(objpfx)bug-regex14-mem): Likewise.
6459         ($(objpfx)bug-regex21-mem): Likewise.
6460         ($(objpfx)bug-regex31-mem): Likewise.
6461         ($(objpfx)tst-vfork3-mem): Likewise.
6462         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6463         ($(objpfx)tst-pcre-mem): Likewise.
6464         ($(objpfx)tst-boost-mem): Likewise.
6465         ($(objpfx)tst-getconf.out): Likewise.
6466         ($(objpfx)bug-ga2-mem): Likewise.
6467         ($(objpfx)bug-glob2-mem): Likewise.
6468         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
6469         ($(objpfx)mtrace-tst-leaks2): Likewise.
6470         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
6471         ($(objpfx)tst-printf.out): Likewise.
6472         ($(objpfx)tst-setvbuf1.out): Likewise.
6473         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
6474         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
6475         ($(objpfx)tst-fmtmsg.out): Likewise.
6476         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
6477         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
6478
6479         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
6480         * bits/sigaction.h [__USE_MISC]: Likewise.
6481         * bits/waitstatus.h: Update #endif comments.
6482         * ctype/ctype.h: Likewise.
6483         * dirent/dirent.h: Likewise.
6484         [__USE_MISC]: Remove redundant conditionals.
6485         * grp/grp.h: Update #endif comments.
6486         [__USE_GNU]: Remove redundant conditionals.
6487         [__USE_MISC]: Likewise.
6488         * inet/netinet/in.h [__USE_GNU]: Likewise.
6489         * io/sys/stat.h [__USE_MISC]: Likewise.
6490         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
6491         * libio/bits/stdio.h: Update #endif comments.
6492         [__USE_MISC]: Remove redundant conditionals.
6493         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
6494         * libio/stdio.h: Update #endif comments.
6495         [__USE_MISC]: Remove redundant conditionals.
6496         * math/bits/math-finite.h [__USE_MISC]: Likewise.
6497         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
6498         * math/math.h: Update #else and #endif comments.
6499         [__USE_MISC]: Remove redundant conditionals.
6500         * misc/sys/uio.h: Update #endif comments.
6501         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
6502         * posix/glob.h [__USE_MISC]: Likewise.
6503         * posix/sys/types.h: Update #endif comments.
6504         [__USE_MISC]: Remove redundant conditionals.
6505         * posix/sys/wait.h: Update #endif comments.
6506         [__USE_MISC]: Remove redundant conditionals.
6507         * posix/unistd.h: Update #endif comments.
6508         [__USE_MISC]: Remove redundant conditionals.
6509         * pwd/pwd.h [__USE_GNU]: Likewise.
6510         [__USE_MISC]: Likewise.
6511         * resolv/netdb.h [__USE_GNU]: Likewise.
6512         * signal/signal.h: Update #endif comments.
6513         [__USE_MISC]: Remove redundant conditionals.
6514         * stdlib/stdlib.h: Update #else and #endif comments.
6515         [__USE_MISC]: Remove redundant conditionals.
6516         [__USE_GNU]: Likewise.
6517         * string/bits/string2.h [__USE_MISC]: Likewise.
6518         * string/string.h: Update #endif comments.
6519         [__USE_MISC]: Remove redundant conditionals.
6520         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
6521         Likewise.
6522         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
6523         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
6524         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
6525         Likewise.
6526         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
6527         Likewise.
6528         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
6529         comments.
6530         [__USE_MISC]: Remove redundant conditionals.
6531         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
6532         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
6533         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
6534         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
6535         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
6536         Likewise.
6537         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
6538         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
6539         Likewise.
6540         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
6541         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
6542         Likewise.
6543         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
6544         Likewise.
6545         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
6546         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
6547         Likewise.
6548         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
6549         Likewise.
6550         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
6551         * sysdeps/x86/bits/string.h: Update #endif comments.
6552         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
6553         conditionals.
6554         * time/sys/time.h: Update #endif comments.
6555         * time/time.h: Likewise.
6556         [__USE_MISC]: Remove redundant conditionals.
6557
6558 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
6559
6560         [BZ #16600]
6561         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
6562
6563 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
6564
6565         * Versions.def (librt): Add GLIBC_2.17.
6566
6567 2014-02-21  Adam Conrad  <adconrad@0c3.net>
6568
6569         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
6570         synonym for _SYS_AUXV_H to allow direct inclusion.
6571         * sysdeps/sparc/bits/hwcap.h: Likewise.
6572         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
6573         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
6574         * sysdeps/sparc/sysdep.h: Likewise.
6575
6576 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6577
6578         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
6579
6580 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6581
6582         * benchtests/bench-strrchr.c: Print length instead of position.
6583
6584 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
6585
6586         [BZ #16611]
6587         * sysdeps/unix/sysv/linux/kernel-features.h
6588         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
6589         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
6590         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
6591         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
6592         Likewise.
6593         [__i386__ || __powerpc__ || __sh__ || __sparc__]
6594         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6595         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
6596         (__ASSUME_SENDMMSG): Define instead of using previous
6597         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
6598         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6599         (__ASSUME_SENDMMSG_SYSCALL): Define.
6600         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6601         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
6602         Likewise.
6603         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6604         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6605         Likewise.
6606         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6607         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6608         Likewise.
6609         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
6610         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6611         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6612         [__ASSUME_SENDMMSG]: Change conditionals to
6613         [__ASSUME_SENDMMSG_SOCKETCALL].
6614         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6615         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
6616         Define.
6617         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6618         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
6619         Likewise.
6620         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
6621         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6622         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6623         [!__ASSUME_SENDMMSG]: Change conditional to
6624         [!__ASSUME_SENDMMSG_SOCKETCALL].
6625         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6626         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6627         Define.
6628
6629         [BZ #16610]
6630         * sysdeps/unix/sysv/linux/kernel-features.h
6631         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
6632         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
6633         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
6634         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
6635         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
6636         [__i386__ || __sparc__]
6637         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6638         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
6639         (__ASSUME_RECVMMSG): Define instead of using previous
6640         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
6641         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6642         (__ASSUME_RECVMMSG_SYSCALL): Define.
6643         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6644         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6645         Likewise.
6646         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6647         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6648         Likewise.
6649         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6650         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6651         Likewise.
6652         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
6653         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
6654         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
6655         [__ASSUME_RECVMMSG]: Change condition to
6656         [__ASSUME_RECVMMSG_SOCKETCALL].
6657         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6658         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6659         Define.
6660         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6661         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6662         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6663         Likewise.
6664         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
6665         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
6666         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
6667         [!__ASSUME_RECVMMSG]: Change condition to
6668         [!__ASSUME_RECVMMSG_SOCKETCALL].
6669         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6670         (__ASSUME_RECVMMSG_SYSCALL): Define.
6671
6672         [BZ #16609]
6673         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
6674         __powerpc__ || __s390__ || __sh__ || __sparc__]
6675         (__ASSUME_SOCKETCALL): Define.
6676         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
6677         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
6678         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
6679         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
6680         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
6681         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
6682         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
6683         (__ASSUME_ACCEPT4): Define instead of using previous
6684         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
6685         __powerpc__ || __sparc__ || __s390__)] condition.
6686         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6687         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
6688         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
6689         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
6690         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
6691         [!__ASSUME_ACCEPT4]: Change condition to
6692         [!__ASSUME_ACCEPT4_SOCKETCALL].
6693         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6694         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
6695         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
6696         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6697         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
6698         __ASSUME_ACCEPT4_SYSCALL.
6699         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
6700         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
6701         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6702         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
6703         __ASSUME_ACCEPT4_SYSCALL.
6704         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
6705         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
6706         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
6707         [__ASSUME_ACCEPT4]: Change condition to
6708         [__ASSUME_ACCEPT4_SOCKETCALL].
6709         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6710         (__ASSUME_SOCKETCALL): Define.
6711         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
6712         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6713         (__ASSUME_SOCKETCALL): Define.
6714         (__ASSUME_ACCEPT4): Remove.
6715         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
6716         Define.
6717         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6718         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
6719         Likewise.
6720         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6721         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
6722
6723         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
6724         macro.
6725         (HWCAP_ARM_LPAE): Likewise.
6726         (HWCAP_ARM_EVTSTRM): Likewise.
6727         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
6728         Add vpfd32, lpae and evtstrm.
6729         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
6730         Increase to 22.
6731
6732 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
6733
6734         * math/auto-libm-test-in: Add tests of clog10.
6735         * math/auto-libm-test-out: Regenerated.
6736         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
6737         * sysdeps/i386/fpu/libm-test-ulps: Update.
6738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6739
6740 2014-02-18  Andreas Schwab  <schwab@suse.de>
6741
6742         [BZ #16574]
6743         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
6744         Store non-zero if the second buffer was newly allocated.
6745         (send_dg): Likewise.
6746         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
6747         to send_vc and send_dg.
6748         (res_nsend): Pass NULL for ansp2_malloced.
6749         * resolv/res_query.c (__libc_res_nquery): Add parameter
6750         answerp2_malloced and pass it down to __libc_res_nsend.
6751         (res_nquery): Pass additional NULL to __libc_res_nquery.
6752         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
6753         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
6754         second answer buffer if answerp2_malloced was set.
6755         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
6756         (__libc_res_nquerydomain): Add parameter
6757         answerp2_malloced and pass it down to __libc_res_nquery.
6758         (res_nquerydomain): Pass additional NULL to
6759         __libc_res_nquerydomain.
6760         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
6761         additional NULL to __libc_res_nsend and __libc_res_nquery.
6762         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
6763         additional NULL to __libc_res_nsearch.
6764         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
6765         parameter of __libc_res_nsearch to check for separately allocated
6766         second buffer.
6767         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
6768         __libc_res_nquery.
6769         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
6770         additional NULL to __libc_res_nquery.
6771         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
6772         __libc_res_nsearch.
6773         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
6774         * include/resolv.h: Update prototypes of __libc_res_nquery,
6775         __libc_res_nsearch, __libc_res_nsend.
6776
6777 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
6778
6779         * math/auto-libm-test-in: Add tests of fma.
6780         * math/auto-libm-test-out: Regenerated.
6781         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
6782         (fma_towardzero_test_data): Likewise.
6783         (fma_downward_test_data): Likewise.
6784         (fma_upward_test_data): Likewise.
6785         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
6786         mpc_mode.
6787         (rounding_modes): Add values for new field.
6788         (func_calc_method): Add value mpfr_fff_f.
6789         (func_calc_desc): Add mpfr_fff_f union field.
6790         (test_function): Add field exact_args.
6791         (FUNC): Add macro argument EXACT_ARGS.
6792         (FUNC_mpfr_f_f): Update call to FUNC.
6793         (FUNC_mpfr_f_f): Likewise.
6794         (FUNC_mpfr_ff_f): Likewise.
6795         (FUNC_mpfr_if_f): Likewise.
6796         (FUNC_mpc_c_f): Likewise.
6797         (FUNC_mpc_c_c): Likewise.
6798         (test_functions): Add fma.  Update calls to FUNC.
6799         (handle_input_arg): Add argument exact_args.
6800         (add_test): Update call to handle_input_arg.
6801         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
6802         (output_for_one_input_case): Update call to calc_generic_results.
6803         Recalculate exact zero results in each rounding mode.
6804
6805         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
6806         non-negative before setting low bit.
6807         * math/auto-libm-test-in: Mark one asin test possibly having
6808         spurious underflow.
6809         * math/auto-libm-test-out: Regenerated.
6810         * sysdeps/i386/fpu/libm-test-ulps: Update.
6811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6812
6813 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
6814
6815         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
6816         * sysdeps/unix/sysv/linux/microblaze: Move directory from
6817         ports/sysdeps/unix/sysv/linux/microblaze.
6818         * README: Add missing listing for microblaze*-*-linux-gnu.
6819
6820 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
6821
6822         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
6823         * sysdeps/unix/sysv/linux/ia64: Move directory from
6824         ports/sysdeps/unix/sysv/linux/ia64.
6825         * README: Update listing for ia64-*-linux-gnu.
6826
6827 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
6828             Joseph Myers  <joseph@codesourcery.com>
6829
6830         * Makeconfig (test-name): New variable.
6831         (evaluate-test): Likewise.
6832         * Makerules (do-test-clean): Remove .test-result files.
6833         (common-mostlyclean): Likewise.
6834         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
6835         * scripts/evaluate-test.sh: New file.
6836
6837 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
6838
6839         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
6840         separate $(objpfx)tst-fopenloc-cmp.out and
6841         $(objpfx)tst-fopenloc-mem.out targets.
6842         (tests): Update dependencies.
6843         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
6844         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
6845         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
6846         (tst-rxspencer-no-utf8-ARGS): New variable.
6847         (tst-rxspencer-no-utf8-ENV): Likewise.
6848         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
6849         instead of $(objpfx)tst-rxspencer-mem.
6850         ($(objpfx)tst-rxspencer-mem): Change target to
6851         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
6852         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
6853         * posix/tst-rxspencer-no-utf8.c: New file.
6854
6855         * elf/Makefile ($(objpfx)order.out): Remove rule.
6856         [$(run-built-tests) = yes] (tests): Depend on
6857         $(objpfx)order-cmp.out.
6858         ($(objpfx)order-cmp.out): New rule.
6859         [$(run-built-tests) = yes] (tests): Depend on
6860         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
6861         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
6862         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
6863         $(objpfx)tst-array5-static-cmp.out.
6864         ($(objpfx)tst-array1.out): Remove rule.
6865         ($(objpfx)tst-array1-cmp.out): New rule.
6866         ($(objpfx)tst-array1-static.out): Remove rule.
6867         ($(objpfx)tst-array1-static-cmp.out): New rule.
6868         ($(objpfx)tst-array2.out): Remove rule.
6869         ($(objpfx)tst-array2-cmp.out): New rule.
6870         ($(objpfx)tst-array3.out): Remove rule.
6871         ($(objpfx)tst-array3-cmp.out): New rule.
6872         ($(objpfx)tst-array4.out): Remove rule.
6873         ($(objpfx)tst-array4-cmp.out): New rule.
6874         ($(objpfx)tst-array5.out): Remove rule.
6875         ($(objpfx)tst-array5-cmp.out): New rule.
6876         ($(objpfx)tst-array5-static.out): Remove rule.
6877         ($(objpfx)tst-array5-static-cmp.out): New rule.
6878         [$(run-built-tests) = yes] (tests): Depend on
6879         $(objpfx)order2-cmp.out.
6880         ($(objpfx)order2.out): Remove rule.
6881         ($(objpfx)order2-cmp.out): New rule.
6882         ($(objpfx)tst-initorder.out): Remove rule.
6883         [$(run-built-tests) = yes] (tests): Depend on
6884         $(objpfx)tst-initorder-cmp.out.
6885         ($(objpfx)tst-initorder-cmp.out): New rule.
6886         ($(objpfx)tst-initorder2.out): Remove rule.
6887         [$(run-built-tests) = yes] (tests): Depend on
6888         $(objpfx)tst-initorder2-cmp.out.
6889         ($(objpfx)tst-initorder2-cmp.out): New rule.
6890         [$(run-built-tests) = yes] (tests): Depend on
6891         $(objpfx)tst-unused-dep-cmp.out.
6892         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
6893         ($(objpfx)tst-unused-dep-cmp.out): New rule.
6894         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
6895         on $(objpfx)tst-setvbuf1-cmp.out.
6896         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
6897         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
6898         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
6899         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
6900         ($(objpfx)tst-svc.out): Remove rule.
6901         ($(objpfx)tst-svc-cmp.out): New rule.
6902
6903 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
6904
6905         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
6906         * ctype/ctype.h [__USE_MISC]: Likewise.
6907         * dirent/dirent.h [__USE_MISC]: Likewise.
6908         * grp/grp.h [__USE_MISC]: Likewise.
6909         * io/fcntl.h [__USE_MISC]: Likewise.
6910         * io/sys/stat.h [__USE_MISC]: Likewise.
6911         * libio/stdio.h [__USE_MISC]: Likewise.
6912         * posix/unistd.h [__USE_MISC]: Likewise.
6913         * pwd/pwd.h [__USE_MISC]: Likewise.
6914         * stdlib.h [__USE_MISC]: Likewise.
6915         * string/bits/string2.h [__USE_MISC]: Likewise.
6916         * string/string.h [__USE_MISC]: Likewise.
6917         * time/time.h [__USE_MISC]: Likewise.
6918
6919 2014-02-13  Andreas Schwab  <schwab@suse.de>
6920
6921         [BZ #16574]
6922         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
6923         second answer buffer if it was separately allocated.
6924
6925 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
6926
6927         * sysdeps/mips/math-tests.h: Include <features.h>.
6928         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
6929         (ROUNDING_TESTS_long_double): Do not define.
6930         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
6931         (EXCEPTION_TESTS_long_double): Likewise.
6932         * sysdeps/mips/mips64/libm-test-ulps: Update.
6933
6934         * include/features.h (__USE_BSD): Remove macro definitions.
6935         (__USE_SVID): Likewise.
6936         (_BSD_SOURCE): Likewise.
6937         (_SVID_SOURCE): Likewise.
6938         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
6939         from definition of _DEFAULT_SOURCE.
6940         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
6941         [_DEFAULT_SOURCE].
6942         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
6943         * bits/mman.h [__USE_BSD]: Likewise.
6944         * bits/termios.h [__USE_BSD]: Likewise.
6945         * bits/waitstatus.h [__USE_BSD]: Likewise.
6946         * ctype/ctype.h [__USE_SVID]: Likewise.
6947         * dirent/dirent.h [__USE_BSD]: Likewise.
6948         * grp/grp.h [__USE_SVID]: Likewise.
6949         [__USE_BSD]: Likewise.
6950         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
6951         * io/fcntl.h [__USE_BSD]: Likewise.
6952         * io/ftw.h [__USE_BSD]: Likewise.
6953         * io/sys/stat.h [__USE_BSD]: Likewise.
6954         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
6955         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
6956         * libio/stdio.h [__USE_SVID]: Likewise.
6957         [__USE_BSD]: Likewise.
6958         * math/math.h [__USE_SVID]: Likewise.
6959         [__USE_BSD]: Likewise.
6960         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
6961         * misc/bits/syslog.h [__USE_BSD]: Likewise.
6962         * misc/search.h [__USE_SVID]: Likewise.
6963         * misc/sys/mman.h [__USE_BSD]: Likewise.
6964         * misc/sys/syslog.h [__USE_BSD]: Likewise.
6965         * misc/sys/uio.h [__USE_BSD]: Likewise.
6966         * posix/bits/unistd.h [__USE_BSD]: Likewise.
6967         * posix/glob.h [__USE_BSD]: Likewise.
6968         * posix/regex.h [__USE_BSD]: Likewise.
6969         * posix/sys/types.h [__USE_BSD]: Likewise.
6970         [__USE_SVID]: Likewise.
6971         * posix/sys/utsname.h [__USE_SVID]: Likewise.
6972         * posix/sys/wait.h [__USE_BSD]: Likewise.
6973         [__USE_SVID]: Likewise.
6974         * posix/unistd.h [__USE_BSD]: Likewise.
6975         [__USE_SVID]: Likewise.
6976         * pwd/pwd.h [__USE_SVID]: Likewise.
6977         * resolv/netdb.h [__USE_BSD]: Likewise.
6978         * setjmp/setjmp.h [__USE_BSD]: Likewise.
6979         * signal/signal.h [__USE_BSD]: Likewise.
6980         [__USE_SVID]: Likewise.
6981         * socket/sys/socket.h [__USE_BSD]: Likewise.
6982         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
6983         * stdlib/stdlib.h [__USE_BSD]: Likewise.
6984         [__USE_SVID]: Likewise.
6985         * string/bits/string2.h [__USE_BSD]: Likewise.
6986         [__USE_SVID]: Likewise.
6987         * string/bits/string3.h [__USE_BSD]: Likewise.
6988         * string/endian.h [__USE_BSD]: Likewise.
6989         * string/string.h [__USE_SVID]: Likewise.
6990         [__USE_BSD]: Likewise.
6991         * string/strings.h [__USE_BSD]: Likewise.
6992         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
6993         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
6994         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
6995         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
6996         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
6997         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
6998         Likewise.
6999         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7000         Likewise.
7001         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7002         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7003         Likewise.
7004         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7005         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7006         Likewise.
7007         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7008         Likewise.
7009         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7010         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7011         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7012         Likewise.
7013         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7014         Likewise.
7015         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7016         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7017         * termios/termios.h [__USE_BSD]: Likewise.
7018         * time/sys/time.h [__USE_BSD]: Likewise.
7019         * time/time.h [__USE_BSD]: Likewise.
7020         [__USE_SVID]: Likewise.
7021
7022         * Makefile (subdir_targets): Remove subdir_lint.out.
7023
7024         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7025         (do-tst-printf): Likewise.
7026         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7027         $(objpfx)tst-printf.out.
7028
7029         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7030
7031         * Makerules (check-abi-%): Change target to
7032         $(objpfx)check-abi-%.out.
7033         (check-abi target): Update dependencies.
7034         (check-abi-pattern variable): Redirect output of diff to $@.
7035         (check-abi variable): Likewise.
7036         * elf/Makefile (check-abi): Update dependencies.
7037
7038         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7039         unused.
7040         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7041         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7042         subnormal range.
7043         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7044         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7045         value has largest subnormal exponent.
7046         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7047         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7048         * sysdeps/aarch64/soft-fp/sfp-machine.h
7049         (_FP_TININESS_AFTER_ROUNDING): New macro.
7050         * sysdeps/alpha/soft-fp/sfp-machine.h
7051         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7052         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7053         Likewise.
7054         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7055         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7056         * sysdeps/mips/soft-fp/sfp-machine.h
7057         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7058         * sysdeps/powerpc/soft-fp/sfp-machine.h
7059         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7060         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7061         Likewise.
7062         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7063         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7064         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7065         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7066         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7067         Likewise.
7068
7069 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7070
7071         [BZ #16545]
7072         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7073         model 1.
7074
7075 2014-02-12  Richard Henderson  <rth@redhat.com>
7076
7077         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7078         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7079         * sysdeps/unix/sysv/linux/alpha: Move directory from
7080         ports/sysdeps/unix/sysv/linux/alpha.
7081         * README: Update listing for alpha-*-linux-gnu.
7082
7083 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7084
7085         * include/features.h: Update comment documenting feature test
7086         macros.
7087         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7088         _DEFAULT_SOURCE.
7089         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7090         (_SVID_SOURCE): Likewise.
7091         (_DEFAULT_SOURCE): Update description of default features.
7092         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7093         with _GNU_SOURCE.
7094         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7095         (S_ISVTX): Likewise.
7096         * manual/math.texi (Mathematical Constants): Likewise.
7097         * manual/signal.texi (Interrupted Primitives): Likewise.
7098         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7099         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7100         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7101         Don't refer to _SVID_SOURCE in warning text.
7102
7103         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7104
7105         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7106         already defined.
7107         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7108         * sysdeps/mips/dl-lookup.c: Remove.
7109         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7110
7111 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7112
7113         [BZ #16447]
7114         * math/auto-libm-test-in: Add testcase for expl.
7115         * math/auto-libm-test-out: Regenerate.
7116         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7117         calculation of unsafe.
7118         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7119
7120 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7121
7122         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7123         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7124         ports/sysdeps/unix/sysv/linux/aarch64.
7125         * README: Update listing for aarch64*-*-linux-gnu.
7126
7127 2014-02-11  Will Newton  <will.newton@linaro.org>
7128
7129         * manual/probes.texi (Mathematical Function Probes): Use
7130         "triggered" instead of "hit".
7131
7132         * manual/probes.texi (Internal Probes): Add documentation
7133         of setjmp, longjmp and longjmp_target probes.
7134
7135         * include/stap-probe.h: Add comment about probe argument
7136         format.
7137
7138         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7139         definition.  (tr_where, tr_freehook, tr_mallochook,
7140         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7141
7142 2014-02-11  David S. Miller  <davem@davemloft.net>
7143
7144         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7145         processing int_tests.
7146
7147 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7148
7149         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7150         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7151         * sysdeps/unix/sysv/linux/mips: Move directory from
7152         ports/sysdeps/unix/sysv/linux/mips.
7153         * README: Update listing for mips-*-linux-gnu and
7154         mips64-*-linux-gnu.
7155
7156 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7157
7158         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7159         * sysdeps/unix/sysv/linux/m68k: Move directory from
7160         ports/sysdeps/unix/sysv/linux/m68k.
7161         * README: Update listing for m68k-*-linux-gnu.
7162
7163 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7164
7165         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7166         * sysdeps/unix/sysv/linux/generic: Move directory from
7167         ports/sysdeps/unix/sysv/linux/generic.
7168         * sysdeps/unix/sysv/linux/tile: Move directory from
7169         ports/sysdeps/unix/sysv/linux/tile.
7170         * README: Update listing for tile*-*-linux-gnu.
7171
7172 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7173
7174         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7175         __builtin_expect.
7176         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7177         * catgets/open_catalog.c (__open_catalog): Likewise.
7178         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7179         * debug/confstr_chk.c: Likewise.
7180         * debug/fread_chk.c (__fread_chk): Likewise.
7181         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7182         * debug/getgroups_chk.c: Likewise.
7183         * debug/mbsnrtowcs_chk.c: Likewise.
7184         * debug/mbsrtowcs_chk.c: Likewise.
7185         * debug/mbstowcs_chk.c: Likewise.
7186         * debug/memcpy_chk.c: Likewise.
7187         * debug/memmove_chk.c: Likewise.
7188         * debug/mempcpy_chk.c: Likewise.
7189         * debug/memset_chk.c: Likewise.
7190         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7191         * debug/strcat_chk.c (__strcat_chk): Likewise.
7192         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7193         * debug/strncat_chk.c (__strncat_chk): Likewise.
7194         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7195         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7196         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7197         * debug/wcpncpy_chk.c: Likewise.
7198         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7199         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7200         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7201         * debug/wcsncpy_chk.c: Likewise.
7202         * debug/wcsnrtombs_chk.c: Likewise.
7203         * debug/wcsrtombs_chk.c: Likewise.
7204         * debug/wcstombs_chk.c: Likewise.
7205         * debug/wmemcpy_chk.c: Likewise.
7206         * debug/wmemmove_chk.c: Likewise.
7207         * debug/wmempcpy_chk.c: Likewise.
7208         * debug/wmemset_chk.c: Likewise.
7209         * dirent/scandirat.c (SCANDIRAT): Likewise.
7210         * dlfcn/dladdr1.c (dladdr1): Likewise.
7211         * dlfcn/dladdr.c (dladdr): Likewise.
7212         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7213         * dlfcn/dlerror.c (__dlerror): Likewise.
7214         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7215         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7216         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7217         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7218         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7219         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7220         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7221         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7222         Likewise.
7223         * elf/dl-conflict.c: Likewise.
7224         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7225         * elf/dl-dst.h: Likewise.
7226         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
7227         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
7228         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7229         * elf/dl-init.c (call_init, _dl_init): Likewise.
7230         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
7231         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
7232         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
7233         Likewise.
7234         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
7235         Likewise.
7236         * elf/dl-minimal.c (__libc_memalign): Likewise.
7237         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
7238         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7239         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7240         * elf/dl-sym.c (do_sym): Likewise.
7241         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
7242         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
7243         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
7244         * elf/dl-writev.h (_dl_writev): Likewise.
7245         * elf/ldconfig.c (search_dir): Likewise.
7246         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
7247         (dl_main): Likewise.
7248         * elf/setup-vdso.h (setup_vdso): Likewise.
7249         * grp/compat-initgroups.c (compat_call): Likewise.
7250         * grp/fgetgrent.c (fgetgrent): Likewise.
7251         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
7252         * grp/putgrent.c (putgrent): Likewise.
7253         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7254         Likewise.
7255         * hurd/hurdinit.c: Likewise.
7256         * iconvdata/8bit-gap.c (struct): Likewise.
7257         * iconvdata/ansi_x3.110.c : Likewise.
7258         * iconvdata/big5.c : Likewise.
7259         * iconvdata/big5hkscs.c : Likewise.
7260         * iconvdata/cp1255.c: Likewise.
7261         * iconvdata/cp1258.c : Likewise.
7262         * iconvdata/cp932.c : Likewise.
7263         * iconvdata/euc-cn.c: Likewise.
7264         * iconvdata/euc-jisx0213.c : Likewise.
7265         * iconvdata/euc-jp.c: Likewise.
7266         * iconvdata/euc-jp-ms.c : Likewise.
7267         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
7268         * iconvdata/gb18030.c : Likewise.
7269         * iconvdata/gbbig5.c (const): Likewise.
7270         * iconvdata/gbgbk.c: Likewise.
7271         * iconvdata/gbk.c : Likewise.
7272         * iconvdata/ibm1364.c : Likewise.
7273         * iconvdata/ibm930.c : Likewise.
7274         * iconvdata/ibm932.c: Likewise.
7275         * iconvdata/ibm933.c : Likewise.
7276         * iconvdata/ibm935.c : Likewise.
7277         * iconvdata/ibm937.c : Likewise.
7278         * iconvdata/ibm939.c : Likewise.
7279         * iconvdata/ibm943.c: Likewise.
7280         * iconvdata/iso_11548-1.c: Likewise.
7281         * iconvdata/iso-2022-cn.c : Likewise.
7282         * iconvdata/iso-2022-cn-ext.c : Likewise.
7283         * iconvdata/iso-2022-jp-3.c: Likewise.
7284         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
7285         * iconvdata/iso-2022-kr.c : Likewise.
7286         * iconvdata/iso646.c (gconv_end): Likewise.
7287         * iconvdata/iso_6937-2.c : Likewise.
7288         * iconvdata/iso_6937.c : Likewise.
7289         * iconvdata/iso8859-1.c: Likewise.
7290         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
7291         * iconvdata/shift_jisx0213.c : Likewise.
7292         * iconvdata/sjis.c : Likewise.
7293         * iconvdata/t.61.c : Likewise.
7294         * iconvdata/tcvn5712-1.c : Likewise.
7295         * iconvdata/tscii.c: Likewise.
7296         * iconvdata/uhc.c : Likewise.
7297         * iconvdata/unicode.c (gconv_end): Likewise.
7298         * iconvdata/utf-16.c (gconv_end): Likewise.
7299         * iconvdata/utf-32.c (gconv_end): Likewise.
7300         * iconvdata/utf-7.c (base64): Likewise.
7301         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7302         * iconv/gconv_close.c (__gconv_close): Likewise.
7303         * iconv/gconv_open.c (__gconv_open): Likewise.
7304         * iconv/gconv_simple.c (internal_ucs4_loop_single)
7305         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
7306         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
7307         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
7308         (ucs4le_internal_loop_single): Likewise.
7309         * iconv/iconv.c (iconv): Likewise.
7310         * iconv/iconv_close.c: Likewise.
7311         * iconv/loop.c (SINGLE): Likewise.
7312         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
7313         * include/atomic.h: Likewise.
7314         * inet/inet6_option.c (option_alloc): Likewise.
7315         * intl/bindtextdom.c (set_binding_values): Likewise.
7316         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
7317         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7318         * intl/localealias.c (read_alias_file): Likewise.
7319         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
7320         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
7321         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
7322         * libio/fmemopen.c (fmemopen): Likewise.
7323         * libio/iofgets.c (_IO_fgets): Likewise.
7324         * libio/iofgets_u.c (fgets_unlocked): Likewise.
7325         * libio/iofgetws.c (fgetws): Likewise.
7326         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
7327         * libio/iogetdelim.c (_IO_getdelim): Likewise.
7328         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
7329         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
7330         * locale/findlocale.c (_nl_find_locale): Likewise.
7331         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7332         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
7333         Likewise.
7334         * locale/setlocale.c (setlocale): Likewise.
7335         * login/programs/pt_chown.c (main): Likewise.
7336         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
7337         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
7338         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
7339         (mmap, mmap64, mremap, munmap): Likewise.
7340         * math/e_exp2l.c: Likewise.
7341         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
7342         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
7343         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
7344         * math/s_catan.c (__catan): Likewise.
7345         * math/s_catanf.c (__catanf): Likewise.
7346         * math/s_catanh.c (__catanh): Likewise.
7347         * math/s_catanhf.c (__catanhf): Likewise.
7348         * math/s_catanhl.c (__catanhl): Likewise.
7349         * math/s_catanl.c (__catanl): Likewise.
7350         * math/s_ccosh.c (__ccosh): Likewise.
7351         * math/s_ccoshf.c (__ccoshf): Likewise.
7352         * math/s_ccoshl.c (__ccoshl): Likewise.
7353         * math/s_cexp.c (__cexp): Likewise.
7354         * math/s_cexpf.c (__cexpf): Likewise.
7355         * math/s_cexpl.c (__cexpl): Likewise.
7356         * math/s_clog10.c (__clog10): Likewise.
7357         * math/s_clog10f.c (__clog10f): Likewise.
7358         * math/s_clog10l.c (__clog10l): Likewise.
7359         * math/s_clog.c (__clog): Likewise.
7360         * math/s_clogf.c (__clogf): Likewise.
7361         * math/s_clogl.c (__clogl): Likewise.
7362         * math/s_csin.c (__csin): Likewise.
7363         * math/s_csinf.c (__csinf): Likewise.
7364         * math/s_csinh.c (__csinh): Likewise.
7365         * math/s_csinhf.c (__csinhf): Likewise.
7366         * math/s_csinhl.c (__csinhl): Likewise.
7367         * math/s_csinl.c (__csinl): Likewise.
7368         * math/s_csqrt.c (__csqrt): Likewise.
7369         * math/s_csqrtf.c (__csqrtf): Likewise.
7370         * math/s_csqrtl.c (__csqrtl): Likewise.
7371         * math/s_ctan.c (__ctan): Likewise.
7372         * math/s_ctanf.c (__ctanf): Likewise.
7373         * math/s_ctanh.c (__ctanh): Likewise.
7374         * math/s_ctanhf.c (__ctanhf): Likewise.
7375         * math/s_ctanhl.c (__ctanhl): Likewise.
7376         * math/s_ctanl.c (__ctanl): Likewise.
7377         * math/w_pow.c: Likewise.
7378         * math/w_powf.c: Likewise.
7379         * math/w_powl.c: Likewise.
7380         * math/w_scalb.c (sysv_scalb): Likewise.
7381         * math/w_scalbf.c (sysv_scalbf): Likewise.
7382         * math/w_scalbl.c (sysv_scalbl): Likewise.
7383         * misc/error.c (error_tail): Likewise.
7384         * misc/pselect.c (__pselect): Likewise.
7385         * nis/nis_callback.c (__nis_create_callback): Likewise.
7386         * nis/nis_call.c (__nisfind_server): Likewise.
7387         * nis/nis_creategroup.c (nis_creategroup): Likewise.
7388         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
7389         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
7390         * nis/nis_getservlist.c (nis_getservlist): Likewise.
7391         * nis/nis_lookup.c (nis_lookup): Likewise.
7392         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
7393         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
7394         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
7395         * nis/nis_xdr.c (xdr_endpoint): Likewise.
7396         * nis/nss_compat/compat-grp.c (getgrent_next_file)
7397         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
7398         * nis/nss_compat/compat-initgroups.c (add_group)
7399         (internal_getgrent_r): Likewise.
7400         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
7401         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
7402         * nis/nss_compat/compat-spwd.c (getspent_next_file)
7403         (internal_getspnam_r): Likewise.
7404         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
7405         (_nss_nis_getaliasbyname_r): Likewise.
7406         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
7407         (_nss_nis_getntohost_r): Likewise.
7408         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
7409         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
7410         (_nss_nis_getgrgid_r): Likewise.
7411         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
7412         (internal_nis_gethostent_r, internal_gethostbyname2_r)
7413         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
7414         (_nss_nis_gethostbyname4_r): Likewise.
7415         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
7416         (initgroups_netid): Likewise.
7417         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
7418         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
7419         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
7420         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
7421         (_nss_nis_getprotobynumber_r): Likewise.
7422         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
7423         (_nss_nis_getsecretkey): Likewise.
7424         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
7425         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
7426         (_nss_nis_getpwuid_r): Likewise.
7427         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
7428         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
7429         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
7430         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
7431         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
7432         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
7433         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7434         Likewise.
7435         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
7436         (_nss_nisplus_getntohost_r): Likewise.
7437         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
7438         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7439         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
7440         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
7441         Likewise.
7442         * nis/nss_nisplus/nisplus-initgroups.c
7443         (_nss_nisplus_initgroups_dyn): Likewise.
7444         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
7445         (_nss_nisplus_getnetbyaddr_r): Likewise.
7446         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
7447         (_nss_nisplus_getprotobynumber_r): Likewise.
7448         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
7449         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
7450         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
7451         Likewise.
7452         * nis/nss_nisplus/nisplus-service.c
7453         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
7454         (_nss_nisplus_getservbyport_r): Likewise.
7455         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
7456         (_nss_nisplus_getspnam_r): Likewise.
7457         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
7458         Likewise.
7459         * nscd/aicache.c (addhstaiX): Likewise.
7460         * nscd/cache.c (cache_search, prune_cache): Likewise.
7461         * nscd/connections.c (register_traced_file, send_ro_fd)
7462         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
7463         (main_loop_epoll): Likewise.
7464         * nscd/grpcache.c (addgrbyX): Likewise.
7465         * nscd/hstcache.c (addhstbyX): Likewise.
7466         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7467         * nscd/mem.c (gc, mempool_alloc): Likewise.
7468         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
7469         (addinnetgrX): Likewise.
7470         * nscd/nscd-client.h (__nscd_acquire_maplock)
7471         (__nscd_drop_map_ref): Likewise.
7472         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7473         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7474         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
7475         Likewise.
7476         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7477         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7478         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
7479         (__nscd_get_map_ref): Likewise.
7480         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7481         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
7482         Likewise.
7483         * nscd/pwdcache.c (addpwbyX): Likewise.
7484         * nscd/selinux.c (preserve_capabilities): Likewise.
7485         * nscd/servicescache.c (addservbyX): Likewise.
7486         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
7487         * posix/fnmatch.c (fnmatch): Likewise.
7488         * posix/getopt.c (_getopt_internal_r): Likewise.
7489         * posix/glob.c (glob, glob_in_dir): Likewise.
7490         * posix/wordexp.c (exec_comm_child): Likewise.
7491         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
7492         (getanswer_r, gaih_getanswer_slice): Likewise.
7493         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
7494         * resolv/res_init.c: Likewise.
7495         * resolv/res_mkquery.c (res_nmkquery): Likewise.
7496         * resolv/res_query.c (__libc_res_nquery): Likewise.
7497         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
7498         Likewise.
7499         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
7500         * stdio-common/perror.c (perror): Likewise.
7501         * stdio-common/printf_fp.c (___printf_fp): Likewise.
7502         * stdio-common/tmpnam.c (tmpnam): Likewise.
7503         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7504         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
7505         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
7506         Likewise.
7507         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7508         * stdlib/putenv.c (putenv): Likewise.
7509         * stdlib/setenv.c (__add_to_environ): Likewise.
7510         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7511         * stdlib/strtol_l.c (INTERNAL): Likewise.
7512         * string/memmem.c (memmem): Likewise.
7513         * string/strerror.c (strerror): Likewise.
7514         * string/strnlen.c (__strnlen): Likewise.
7515         * string/test-memmem.c (simple_memmem): Likewise.
7516         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
7517         * sunrpc/pm_getport.c (__get_socket): Likewise.
7518         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
7519         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7520         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
7521         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
7522         Likewise.
7523         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7524         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
7525         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
7526         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
7527         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7528         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
7529         Likewise.
7530         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
7531         Likewise.
7532         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7533         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7534         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7535         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
7536         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7537         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
7538         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
7539         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
7540         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
7541         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7542         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7543         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7544         Likewise.
7545         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
7546         Likewise.
7547         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
7548         Likewise.
7549         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
7550         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7551         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
7552         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
7553         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7554         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
7555         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7556         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
7557         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
7558         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
7559         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
7560         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7561         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
7562         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
7563         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7564         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7565         Likewise.
7566         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
7567         Likewise.
7568         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
7569         Likewise.
7570         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
7571         Likewise.
7572         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7573         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7574         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
7575         Likewise.
7576         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
7577         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
7578         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7579         * sysdeps/posix/sleep.c: Likewise.
7580         * sysdeps/posix/tempname.c: Likewise.
7581         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
7582         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
7583         Likewise.
7584         * sysdeps/powerpc/powerpc32/dl-machine.h
7585         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
7586         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
7587         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7588         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
7589         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
7590         Likewise.
7591         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
7592         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
7593         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7594         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
7595         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7596         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
7597         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
7598         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
7599         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7600         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
7601         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
7602         (elf_machine_lazy_rel): Likewise.
7603         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
7604         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
7605         (elf_machine_lazy_rel): Likewise.
7606         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
7607         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
7608         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
7609         * sysdeps/unix/grantpt.c (grantpt): Likewise.
7610         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
7611         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
7612         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7613         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7614         Likewise.
7615         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
7616         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
7617         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
7618         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
7619         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
7620         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
7621         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
7622         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
7623         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7624         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7625         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7626         Likewise.
7627         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
7628         (__posix_fallocate64_l64): Likewise.
7629         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
7630         (posix_fallocate): Likewise.
7631         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7632         Likewise.
7633         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7634         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
7635         (getifaddrs_internal): Likewise.
7636         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
7637         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
7638         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
7639         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
7640         * sysdeps/unix/sysv/linux/posix_fallocate64.c
7641         (__posix_fallocate64_l64): Likewise.
7642         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
7643         Likewise.
7644         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7645         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
7646         (__get_clockfreq): Likewise.
7647         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
7648         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
7649         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
7650         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7651         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7652         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
7653         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
7654         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
7655         Likewise.
7656         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
7657         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
7658         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
7659         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
7660         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
7661         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
7662         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
7663         Likewise.
7664         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7665         (posix_fallocate): Likewise.
7666         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7667         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
7668         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
7669         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
7670         (elf_machine_rela, elf_machine_rela_relative)
7671         (elf_machine_lazy_rel): Likewise.
7672         * time/asctime.c (asctime_internal): Likewise.
7673         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
7674         * time/tzset.c (__tzset_parse_tz): Likewise.
7675         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
7676         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
7677         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
7678         * wcsmbs/wcsmbsload.h: Likewise.
7679
7680         [BZ #15894]
7681         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
7682
7683         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
7684         (arena_get2): Remove THREAD_STATS conditionals.
7685         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
7686         (__malloc_stats, int): Likewise.
7687
7688 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
7689
7690         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
7691         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
7692
7693         * manual/setjmp.texi: Fix typos/grammar errors.
7694
7695         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
7696         Only return early when n is <= 0.  Delete unused return statement.
7697
7698         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
7699         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
7700         * debug/tst-longjmp_chk3.c: New file.
7701
7702         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
7703         (test_main): Replace code with set_fortify_handler call.
7704         * debug/test-strcpy_chk.c: Likewise.
7705         * debug/tst-chk1.c: Likewise.
7706         * debug/tst-longjmp_chk.c: Likewise.
7707         * test-skeleton.c: Include fcntl.h & paths.h
7708         (set_fortify_handler): Define.
7709
7710         * debug/tst-longjmp_chk.c: Add header comment and include
7711         ../test-skeleton.c.
7712         (do_test): Mark static.
7713         (TEST_FUNCTION): Define.
7714
7715         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
7716         (IP_PMTUDISC_INTERFACE): Likewise.
7717         (IP_MULTICAST_IF): Likewise.
7718         (IP_MULTICAST_TTL): Likewise.
7719         (IP_MULTICAST_LOOP): Likewise.
7720         (IP_ADD_MEMBERSHIP): Likewise.
7721         (IP_DROP_MEMBERSHIP): Likewise.
7722         (IP_UNBLOCK_SOURCE): Likewise.
7723         (IP_BLOCK_SOURCE): Likewise.
7724         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
7725         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
7726         (IP_MSFILTER): Likewise.
7727         (MCAST_JOIN_GROUP): Likewise.
7728         (MCAST_BLOCK_SOURCE): Likewise.
7729         (MCAST_UNBLOCK_SOURCE): Likewise.
7730         (MCAST_LEAVE_GROUP): Likewise.
7731         (MCAST_JOIN_SOURCE_GROUP): Likewise.
7732         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
7733         (MCAST_MSFILTER): Likewise.
7734         (IP_MULTICAST_ALL): Likewise.
7735         (IP_UNICAST_IF): Likewise.
7736
7737         * timezone/Makefile: Delete $(have-ksh) check.
7738         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
7739         * timezone/tzselect.ksh: Add +x mode bits.
7740
7741         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
7742         (ANON_INODE_FS_MAGIC): Likewise.
7743         (BDEVFS_MAGIC): Likewise.
7744         (BINFMTFS_MAGIC): Likewise.
7745         (BTRFS_TEST_MAGIC): Likewise.
7746         (CRAMFS_MAGIC_WEND): Likewise.
7747         (DEBUGFS_MAGIC): Likewise.
7748         (ECRYPTFS_SUPER_MAGIC): Likewise.
7749         (EXT3_SUPER_MAGIC): Likewise.
7750         (EXT4_SUPER_MAGIC): Likewise.
7751         (FUTEXFS_SUPER_MAGIC): Likewise.
7752         (HOSTFS_SUPER_MAGIC): Likewise.
7753         (HUGETLBFS_MAGIC): Likewise.
7754         (MINIX3_SUPER_MAGIC): Likewise.
7755         (MTD_INODE_FS_MAGIC): Likewise.
7756         (NILFS_SUPER_MAGIC): Likewise.
7757         (OPENPROM_SUPER_MAGIC): Likewise.
7758         (PIPEFS_MAGIC): Likewise.
7759         (PSTOREFS_MAGIC): Likewise.
7760         (QNX6_SUPER_MAGIC): Likewise.
7761         (RAMFS_MAGIC): Likewise.
7762         (REISERFS_SUPER_MAGIC_STRING): Likewise.
7763         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
7764         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
7765         (SECURITYFS_MAGIC): Likewise.
7766         (SELINUX_MAGIC): Likewise.
7767         (SMACK_MAGIC): Likewise.
7768         (SOCKFS_MAGIC): Likewise.
7769         (SQUASHFS_MAGIC): Likewise.
7770         (STACK_END_MAGIC): Likewise.
7771         (TMPFS_MAGIC): Likewise.
7772         (USBDEVICE_SUPER_MAGIC): Likewise.
7773         (V9FS_MAGIC): Likewise.
7774         (XENFS_SUPER_MAGIC): Likewise.
7775         (CRAMFS_MAGIC): Fix typo in comment.
7776         (EXT2_SUPER_MAGIC): Update comment.
7777         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
7778
7779 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
7780
7781         * sysdeps/arm: Move directory from ports/sysdeps/arm.
7782         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
7783         * sysdeps/unix/sysv/linux/arm: Move directory from
7784         ports/sysdeps/unix/sysv/linux/arm.
7785         * README: Update listing for arm-*-linux-gnueabi.
7786
7787         * README: Remove mention of am33.
7788
7789 2014-02-07  Roland McGrath  <roland@hack.frob.com>
7790
7791         * bits/sigset.h (__sigemptyset): Use a statement expression rather
7792         than the comma operator, to avoid "rhs of comma has no effect"
7793         compiler warnings.
7794         (__sigfillset, __sigandset, __sigorset): Likewise.
7795         * include/signal.h (__sigemptyset): Likewise.
7796         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
7797
7798 2014-02-07  Allan McRae  <allan@archlinux.org>
7799
7800         * version.h (RELEASE): Set to "development".
7801         (VERSION): Set to "2.19.90"
7802         * NEWS: Add 2.20 section.
7803
7804 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
7805
7806         [BZ #16529]
7807         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
7808
7809 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
7810
7811         * manual/contrib.texi: Update entry for Carlos O'Donell,
7812         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
7813
7814 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
7815
7816         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
7817
7818         * sysdeps/unix/sysv/linux/kernel-features.h
7819         [__LINUX_KERNEL_VERSION >= 0x020621]
7820         (__ASSUME_PROC_PID_TASK_COMM): Define.
7821
7822 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7823
7824         [BZ #16398]
7825         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
7826         conversion when destination buffer does not have enough space.
7827         * libio/tst-ftell-partial-wide.c: New test case.
7828         * libio/Makefile (tests): Add tst-ftell-partial-wide.
7829
7830         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
7831         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
7832         Leonard and Allan McRae.
7833
7834 2014-02-04  David S. Miller  <davem@davemloft.net>
7835
7836         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
7837         32-bit.
7838
7839 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7840
7841         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
7842         New file
7843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
7844         New file
7845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
7846         New file.
7847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
7848         New file.
7849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
7850         New file.
7851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
7852         New file.
7853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
7854         New file.
7855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
7856         New file.
7857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
7858         New file.
7859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
7860         New file.
7861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
7862         New file.
7863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
7864         New file.
7865         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
7866         New file.
7867
7868 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7869
7870         * nptl/shlib-versions: Change powerpc*le start to 2.17.
7871         * shlib-versions: Likewise.
7872
7873 2014-02-04  Roland McGrath  <roland@hack.frob.com>
7874             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7875
7876         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
7877         (abilist-pattern): New variable, set to %-le.abilist.
7878
7879         * Makerules (abilist-pattern): New variable.
7880         (vpath): Use $(abilist-pattern) in place of %.abilist.
7881         (check-abi-% pattern rule): Likewise.
7882         (check-abi, update-abi): Likewise.
7883
7884 2014-02-04  Eric Wong  <normalperson@yhbt.net>
7885
7886         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7887
7888 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
7889
7890         * manual/startup.texi: Add next, previous, and top entries for
7891         the `Program Arguments' and `Environment Variables' nodes.
7892
7893 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
7894
7895         * manual/macros.texi: Add comments before MTASC-safety macros.
7896
7897         * manual/users.texi: Document MTASC-safety properties.
7898
7899         * manual/threads.texi (pthread_key_create, pthread_key_delete)
7900         (pthread_getspecific, pthread_setspecific): Format with
7901         @deftypefun, and add @safety note.
7902         * manual/signal.texi: Move comments that analyze the above
7903         functions to their home place.
7904
7905 2014-02-03  Allan McRae  <allan@archlinux.org>
7906
7907         * po/sl.po: Update Slovenian translation from translation project.
7908
7909 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
7910
7911         * manual/time.texi (timegm): Add missing blank after @c.
7912         Reported by Joseph Myers <joseph@codesourcery.com>.
7913
7914 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
7915
7916         * manual/check-safety.sh: New.
7917         * manual/Makefile ($(objpfx)stamp-summary): Run it.
7918
7919         * manual/terminal.texi: Document MTASC-safety properties.
7920
7921         * manual/filesys.texi: Document MTASC-safety properties.
7922
7923         * manual/errno.texi: Document MTASC-safety properties.
7924
7925         * manual/intro.texi: Document safety identifiers and
7926         conditionals.
7927
7928         * manual/string.texi (wcstok): Fix prototype.
7929         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
7930
7931         * manual/time.texi: Document MTASC-safety properties.
7932
7933         * manual/string.texi: Document MTASC-safety properties.
7934
7935         * manual/threads.texi: Document MTASC-safety properties.
7936
7937         * manual/stdio.texi: Document MTASC-safety properties.
7938
7939         * manual/syslog.texi: Document MTASC-safety properties.
7940
7941         * manual/sysinfo.texi: Document MTASC-safety properties.
7942
7943         * manual/startup.texi: Document MTASC-safety properties.
7944
7945         * manual/socket.texi: Document MTASC-safety properties.
7946
7947         * manual/signal.texi: Document MTASC-safety properties.
7948
7949 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
7950
7951         * manual/setjmp.texi: Document MTASC-safety properties.
7952
7953         * manual/search.texi: Document MTASC-safety properties.
7954
7955         * manual/resource.texi: Document MTASC-safety properties.
7956
7957         * manual/process.texi: Document MTASC-safety properties.
7958
7959         * manual/platform.texi: Document MTASC-safety properties.
7960
7961         * manual/pipe.texi: Document MTASC-safety properties.
7962
7963         * manual/pattern.texi: Document MTASC-safety properties.
7964
7965         * manual/message.texi: Document MTASC-safety properties.
7966
7967         [BZ #12751]
7968         * manual/memory.texi: Document MTASC-safety properties.
7969
7970         * manual/math.texi: Document MTASC-safety properties.
7971
7972         * manual/locale.texi: Document MTASC-safety properties.
7973
7974         * manual/llio.texi: Document MTASC-safety properties.
7975
7976         * manual/libdl.texi: New.
7977
7978         * manual/lang.texi: Document MTASC-safety properties.
7979
7980         * manual/job.texi: Document MTASC-safety properties.
7981
7982         * manual/getopt.texi: Document MTASC-safety properties.
7983
7984         * manual/ctype.texi: Document MTASC-safety properties.
7985
7986 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
7987
7988         [BZ #16046]
7989         * csu/libc-tls.c (static_map): Remove variable.
7990         (__libc_setup_tls): Use main executable's link map for TLS data.
7991         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
7992         casing for LM_ID_BASE and GL(dl_nns).
7993         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
7994         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
7995         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
7996         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
7997         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
7998         member.
7999         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8000         l_phnum members.
8001
8002 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8003
8004         * manual/debug.texi: Document MTASC-safety properties.
8005
8006 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8007
8008         [BZ #16510]
8009         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8010         of __x86_64__ when disabling x87 inline functions.
8011
8012 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8013
8014         * manual/charset.texi: Document MTASC-safety properties.
8015
8016         * manual/crypt.texi: Document MTASC-safety properties.
8017
8018         * manual/conf.texi: Document MTASC-safety properties.
8019
8020         * manual/arith.texi: Document MTASC-safety properties.
8021
8022         * manual/argp.texi: Document MTASC-safety properties.
8023
8024         * manual/macros.texi: Introduce macros to document multi
8025         thread, asynchronous signal and asynchronous cancellation
8026         safety properties.
8027         * manual/intro.texi: Introduce the properties themselves.
8028
8029 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8030
8031         * sysdeps/sh/sh4/Makefile: New file.
8032
8033 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8034
8035         * math/gen-libm-test.pl ($srcdir): New variable.
8036         ($auto_input): Use it.
8037
8038 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8039
8040         [BZ #16506]
8041         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8042         access beyond array bounds when parsing netgroups file.
8043
8044         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8045         the old buffer before realloc.
8046
8047 2014-01-27  Allan McRae  <allan@archlinux.org>
8048
8049         * po/fr.po: Update French translation from translation project.
8050
8051 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8052
8053         * sysdeps/sh/libm-test-ulps: Regenerate.
8054
8055 2014-01-24  David S. Miller  <davem@davemloft.net>
8056
8057         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8058
8059 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8060
8061         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8062         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8063
8064 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8065
8066         [BZ #16474]
8067         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8068         string pointers after reallocation.
8069
8070 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8071
8072         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8073         __SH4A__ instead of __SH_FPU_ANY__.
8074
8075 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8076
8077         * sysdeps/sh/fpu_control.h: New file.
8078         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8079         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8080         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8081         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8082         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8083         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8084         * sysdeps/sh/sys/ucontext.h: Remove.
8085         * sysdeps/sh/sys: Remove directory.
8086
8087 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8088
8089         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8090         s390/sys/ucontext.h.
8091         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8092         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8093
8094 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8095
8096         [BZ #15605]
8097         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8098
8099 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8100
8101         [BZ#16431]
8102         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8103         Adjust the vDSO correctly for internal calls.
8104         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8105
8106 2014-01-20  Allan McRae  <allan@archlinux.org>
8107
8108         * po/ca.po: Update Catalan translation from translation project.
8109
8110 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8111
8112         * sysdeps/s390/sotruss-lib.c: New file.
8113
8114 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8115
8116         [BZ#16430]
8117         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8118         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8119         local calls issues by not having a PLT stub required for IFUNC calls.
8120         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8121
8122 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8123
8124         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8125         * math/test-fpucw-static.c: Likewise.
8126
8127 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8128
8129         [BZ #16453]
8130         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8131
8132 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8133
8134         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8135         implementation for powerpc.
8136
8137 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8138
8139         [BZ #14782]
8140         * sysdeps/posix/system.c (__libc_system): Do not enable
8141         asynchronous cancellation.
8142
8143 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8144
8145         [BZ #16427]
8146         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8147         handling only for numbers special also in the IEEE case.
8148
8149 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8150
8151         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8152
8153 2014-01-11  Allan McRae  <allan@archlinux.org>
8154
8155         * po/bg.po: Update Bulgarian translation from translation project.
8156
8157         * po/de.po: Update German translation from translation project.
8158
8159 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8160
8161         * sysdeps/generic/gcc-compat.h: New file.
8162
8163 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8164
8165         * benchtests/asin-inputs: Correct slow inputs.
8166         * benchtests/acos-inputs: Likewise.
8167
8168 2014-01-10  Allan McRae  <allan@archlinux.org>
8169
8170         * po:sv.po: Update Swedish translation from translation project.
8171
8172         * po/vi.po: Update Vietnamese translation from translation project.
8173
8174         * po/eo.po: Update Esperanto translation from translation project.
8175
8176         * po/cs.po: Update Czech translation from translation project.
8177
8178         * po/nl.po: Update Dutch translation from translation project.
8179
8180         * po/pl.po: Update Polish translation from translation project.
8181
8182         * po/ru.po: Update Russian translation from translation project.
8183
8184         * po/uk.po: Update Ukrainian translation from translation project.
8185
8186 2014-01-08  Brooks Moses  <bmoses@google.com>
8187
8188         * elf/dl-load.c: Fix comment typo.
8189
8190 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8191
8192         * po/header.pot: Rename to...
8193         * po/pot.header: ... this.
8194         * po/Makefile: Use pot.header.
8195
8196 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8197             Maxim Kuvyrkov  <maxim@kugelworks.com>
8198
8199         [BZ #16394]
8200         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8201         SRC and DEST against LEN.
8202
8203 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8204
8205         [BZ #16414]
8206         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8207         implementation.
8208         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8209
8210 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8211
8212         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8213
8214 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8215
8216         [BZ #16408]
8217         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8218         for large positive arguments.
8219
8220 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8221
8222         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8223
8224         * math/auto-libm-test-in: Mark various tests with
8225         xfail-rounding:ldbl-128ibm.
8226         * math/auto-libm-test-out: Regenerated.
8227
8228         [BZ #16407]
8229         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
8230         Increase overflow threshold.
8231
8232 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
8233
8234         [BZ #14286]
8235         * stdio-common/vfprintf.c: Check for integer overflow.
8236
8237 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8238
8239         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
8240         the first argument and return value of __tls_get_addr_internal.
8241
8242 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8243
8244         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
8245         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
8246
8247 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8248
8249         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
8250         * sysdeps/s390/rtld-global-offsets.sym: New file.
8251         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
8252         GLIBC_2.19 symbol.
8253         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
8254         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
8255         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
8256         ... this.
8257         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
8258         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
8259         ... this.
8260         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8261         Regenerate.
8262         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8263         Regenerate.
8264         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
8265         halfs of GPRs for high_gprs contexts.
8266         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
8267         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
8268         field.
8269         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
8270         uc_flags field.
8271         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
8272         64 bit versions:
8273         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
8274         for high GPRs (uc_high_gprs) and for future extensions
8275         (__reserved).
8276         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
8277         for future extensions (__reserved).
8278         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
8279         64 bit versions:
8280         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
8281         SC_HIGHGPRS offset definition.
8282         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
8283         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
8284
8285         * Versions.def: Add GLIBC_2.19 for libpthread.
8286         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
8287         siglongjmp for libpthread with GLIBC_2.19 symver.
8288         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
8289         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
8290         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
8291         * sysdeps/s390/__longjmp.c: New file.
8292         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
8293         * sysdeps/s390/longjmp.c: New file.
8294         * sysdeps/s390/setjmp.S: New file.
8295         * sysdeps/s390/sigjmp.S: New file.
8296         * sysdeps/s390/v1-longjmp.c: New file.
8297         * sysdeps/s390/v1-setjmp.h: New file.
8298         * sysdeps/s390/v1-sigjmp.c: New file.
8299         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
8300         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
8301         GLIBC_2.19 version.
8302         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
8303         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
8304         versioned symbols for ____longjmp_chk.
8305         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
8306         Likewise.
8307         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8308         Regenerate.
8309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8310         Regenerate.
8311         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8312         Regenerate.
8313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8314         Regenerate.
8315         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
8316         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
8317         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
8318         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
8319         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
8320         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
8321         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
8322         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
8323         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
8324         * sysdeps/s390/rtld-__longjmp.c: New file.
8325         * sysdeps/s390/rtld-setjmp.S: New file.
8326
8327 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
8328
8329         [BZ #16400]
8330         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8331         Return -__logl (x) for small positive arguments without evaluating
8332         a polynomial.
8333
8334 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
8335
8336         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
8337         Rename to ...
8338         (__ptrace_peeksiginfo_args): ... this.
8339         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8340         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8341         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8342
8343 2014-01-06  Allan McRae  <allan@archlinux.org>
8344
8345         * inet/netinet/in.h: Fix typo in comment.
8346
8347 2014-01-05  Andreas Jaeger  <aj@suse.de>
8348
8349         * sysdeps/i386/fpu/libm-test-ulps: Update.
8350
8351 2014-01-05  Allan McRae  <allan@archlinux.org>
8352
8353         * po/libc.pot: Regenerated.
8354
8355         * malloc/memusagestat.c: Fix gettext call formatting.
8356
8357 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
8358
8359         * nscd/nscd.c: Improve usage() output.
8360
8361 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
8362
8363         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
8364         * sysdeps/unix/sysv/linux/configure: Regenerated.
8365         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
8366         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
8367
8368 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8369
8370         [BZ #16390]
8371         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
8372         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
8373
8374 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8375
8376         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
8377         extra tokens at end of #undef directive.
8378         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
8379         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
8380         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
8381
8382 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8383
8384         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8385
8386         * math/auto-libm-test-in: Mark various tests with
8387         xfail-rounding:ldbl-128ibm.
8388         * math/auto-libm-test-out: Regenerated.
8389
8390 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
8391
8392         [BZ #16386]
8393         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
8394         numbers with subnormal high part when calculating exponent.
8395
8396         [BZ #16385]
8397         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
8398         fabs.
8399
8400         [BZ #16384]
8401         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
8402         M_LN2l.
8403         (__ieee754_acoshl): Use __log1pl not __log1p.
8404
8405 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
8406
8407         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
8408         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
8409         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
8410         (grow_heap, heap_trim, _int_new_arena, get_free_list)
8411         (reused_arena, arena_get2): Convert to GNU style.
8412         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
8413         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
8414         (memalign_check, __malloc_set_state): Likewise.
8415         * malloc/mallocbug.c (main): Likewise.
8416         * malloc/malloc.c (__malloc_assert, malloc_init_state)
8417         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
8418         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
8419         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
8420         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
8421         (__posix_memalign, malloc_info): Likewise.
8422         * malloc/malloc.h: Likewise.
8423         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
8424         (mallochook, memalignhook, reallochook, mabort): Likewise.
8425         * malloc/mcheck.h: Likewise.
8426         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
8427         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
8428         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
8429         * malloc/morecore.c (__default_morecore): Likewise.
8430         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
8431         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
8432         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
8433         (print_and_abort): Likewise.
8434         * malloc/obstack.h: Likewise.
8435         * malloc/set-freeres.c (__libc_freeres): Likewise.
8436         * malloc/tst-mallocstate.c (main): Likewise.
8437         * malloc/tst-mtrace.c (main): Likewise.
8438         * malloc/tst-realloc.c (do_test): Likewise.
8439
8440 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8441
8442         [BZ #16366]
8443         * nscd/netgroupcache.c (do_notfound): New function.
8444         (addgetnetgrentX): Use it.
8445
8446         [BZ # 16365]
8447         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
8448         NSS_STATUS_NOTFOUND.
8449
8450 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
8451
8452         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
8453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8454
8455 2014-01-01  Allan McRae  <allan@archlinux.org>
8456
8457         * scripts/update-copyrights: Update configure input file suffix.
8458
8459         * NEWS: Update copyright year.
8460         * catgets/gencat.c: Likewise.
8461         * csu/version.c: Likewise.
8462         * debug/catchsegv.sh: Likewise.
8463         * debug/pcprofiledump.c: Likewise.
8464         * debug/xtrace.sh: Likewise.
8465         * elf/ldconfig.c: Likewise.
8466         * elf/ldd.bash.in: Likewise.
8467         * elf/pldd.c: Likewise.
8468         * elf/sotruss.ksh: Likewise.
8469         * elf/sprof.c: Likewise.
8470         * iconv/iconv_prog.c: Likewise.
8471         * iconv/iconvconfig.c: Likewise.
8472         * locale/programs/locale.c: Likewise.
8473         * locale/programs/localedef.c: Likewise.
8474         * login/programs/pt_chown.c: Likewise.
8475         * malloc/memusage.sh: Likewise.
8476         * malloc/memusagestat.c: Likewise.
8477         * malloc/mtrace.pl: Likewise.
8478         * manual/libc.texinfo: Likewise.
8479         * nscd/nscd.c: Likewise.
8480         * nss/getent.c: Likewise.
8481         * nss/makedb.c: Likewise.
8482         * posix/getconf.c: Likewise.
8483         * scripts/test-installation.pl: Likewise.
8484
8485         * All files with FSF copyright notices: Update copyright dates
8486         using scripts/update-copyrights.
8487         * intl/plural.c: Regenerated.
8488         * locale/programs/charmap-kw.h: Likewise.
8489         * locale/programs/locfile-kw.h: Likewise.
8490
8491 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
8492
8493         * sysdeps/unix/sysv/linux/configure: Regenerated.
8494         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
8495         the linux/fanotify.h header.
8496         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
8497         HAVE_LINUX_FANOTIFY_H is defined.
8498
8499 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8500
8501         * benchtests/cos-inputs: New inputs.
8502         * benchtests/sin-inputs: Likewise.
8503
8504         * benchtests/atan-inputs: New inputs. Fix name of multiple
8505         precision fallback inputs.
8506
8507         * benchtests/atanh-inputs: New inputs.
8508         * benchtests/tanh-inputs: Likewise.
8509
8510         * benchtests/acosh-inputs: New inputs.
8511         * benchtests/asinh-inputs: Likewise.
8512
8513         * benchtests/cosh-inputs: New inputs.
8514         * benchtests/sinh-inputs: Likewise.
8515
8516         * benchtests/acos-inputs: Add more inputs.
8517         * benchtests/asin-inputs: Likewise.
8518
8519 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
8520
8521         [BZ #16375]
8522         * manual/arith.texi: Fix spelling.
8523         * manual/charset.texi: Likewise.
8524         * manual/errno.texi: Likewise.
8525         * manual/filesys.texi: Likewise.
8526         * manual/lang.texi: Likewise.
8527         * manual/llio.texi: Likewise.
8528         * manual/locale.texi: Likewise.
8529         * manual/message.texi: Likewise.
8530         * manual/resource.texi: Likewise.
8531         * manual/search.texi: Likewise.
8532         * manual/setjmp.texi: Likewise.
8533         * manual/stdio.texi: Likewise.
8534         * manual/string.texi: Likewise.
8535         * manual/sysinfo.texi: Likewise.
8536         * manual/time.texi: Likewise.
8537
8538 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
8539
8540         * po/sl.po: New file.
8541
8542 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
8543
8544         * .gitignore: Add core/.gdbinit/.gdb_history.
8545
8546 2013-12-27  Allan McRae  <allan@archlinux.org>
8547
8548         [BZ #16369]
8549         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
8550         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
8551
8552 2013-12-24  Brooks Moses  <bmoses@google.com>
8553
8554         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
8555         all compilers that claim C++98 compliance, not just GCC.
8556         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
8557         Likewise.
8558
8559 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8560
8561         * NEWS: Restore accidentally deleted bug-fix entries.
8562
8563 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8564             Ondřej Bílka  <neleai@seznam.cz>
8565
8566         [BZ #15073]
8567         * malloc/malloc.c (_int_free): Perform sanity check only if we
8568         have_lock.
8569
8570 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
8571
8572         [BZ #12986]
8573         * manual/stdio.texi (String Input Conversions): Clarify that character
8574         classes are not supported.
8575
8576 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8577
8578         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8579
8580 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
8581
8582         [BZ #16337]
8583         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8584         Calculate results for small negative arguments directly rather
8585         than using reflection formula with special underflow handling.
8586
8587         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
8588         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
8589         sysdeps/unix/bsd/bsd4.4/syscalls.list.
8590         (fchflags): Likewise.
8591         (revoke): Likewise.
8592         (setlogin): Likewise.
8593         (sigaltstack): Likewise.
8594         (wait4): Likewise.
8595         (sigblock): Remove.
8596         (sigsetmask): Likewise.
8597         (wait3): Likewise.
8598         (waitpid): Likewise.
8599         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
8600         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
8601         file.
8602         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
8603         * sysdeps/unix/bsd/Makefile: ... here.
8604         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
8605         * sysdeps/unix/bsd/Versions: ... here.
8606         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
8607         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
8608         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
8609         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
8610         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
8611         * sysdeps/unix/bsd/sigblock.c: ... here.
8612         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
8613         * sysdeps/unix/bsd/sigsetmask.c: ... here.
8614         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
8615         * sysdeps/unix/bsd/sigvec.c: ... here.
8616         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
8617         * sysdeps/unix/bsd/tcdrain.c: ... here.
8618         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
8619         * sysdeps/unix/bsd/tcgetattr.c: ... here.
8620         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
8621         * sysdeps/unix/bsd/tcsetattr.c: ... here.
8622         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
8623         * sysdeps/unix/bsd/wait.c: ... here.
8624         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
8625         * sysdeps/unix/bsd/wait3.c: ... here.
8626         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
8627         * sysdeps/unix/bsd/waitpid.c: ... here.
8628
8629 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
8630
8631         [BZ #16356]
8632         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
8633         round-to-nearest for [!USE_AS_EXPM1L].
8634         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
8635         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
8636         more tests of exp and exp10.  Expect some exp10 tests to miss
8637         exceptions or fail in directed rounding modes.
8638         * math/auto-libm-test-out: Regenerated.
8639         * math/libm-test.inc (exp10_tonearest_test_data): New array.
8640         (exp10_test_tonearest): New function.
8641         (exp10_towardzero_test_data): New array.
8642         (exp10_test_towardzero): New function.
8643         (exp10_downward_test_data): New array.
8644         (exp10_test_downward): New function.
8645         (exp10_upward_test_data): New array.
8646         (exp10_test_upward): New function.
8647         (main): Call the new functions.
8648         * sysdeps/i386/fpu/libm-test-ulps: Update.
8649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8650
8651 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
8652
8653         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
8654         asinh, atan, atan2, atanh, cbrt, cos and cosh.
8655         * math/auto-libm-test-out: Regenerated.
8656         * math/libm-test.inc (acosh_test_data): Add more tests.
8657         (atanh_test_data): Likewise.
8658         (ceil_test_data): Likewise.
8659         (copysign_test_data): Likewise.
8660         * sysdeps/i386/fpu/libm-test-ulps: Update.
8661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8662
8663         * timezone/checktab.awk: Update from tzcode 2013i.
8664         * timezone/private.h: Likewise.
8665         * timezone/scheck.c: Likewise.
8666         * timezone/tzfile.h: Likewise.
8667         * timezone/tzselect.ksh: Likewise.
8668         * timezone/zdump.c: Likewise.
8669         * timezone/zic.c: Likewise.
8670
8671         * math/auto-libm-test-in: Add tests of cpow.
8672         * math/auto-libm-test-out: Regenerated.
8673         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
8674         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8675         mpc_cc_c.
8676         (func_calc_desc): Add mpc_cc_c union field.
8677         (test_functions): Add cpow.
8678         (special_fill_2pi): New function.
8679         (special_real_inputs): Add 2pi.
8680         (calc_generic_results): Handle mpc_cc_c.
8681         * sysdeps/i386/fpu/libm-test-ulps: Update.
8682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8683
8684         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
8685         csqrt, ctan and ctanh.
8686         * math/auto-libm-test-out: Regenerated.
8687         * math/libm-test.inc (TEST_COND_x86_64): New macro.
8688         (TEST_COND_x86): Likewise.
8689         (ccos_test_data): Use AUTO_TESTS_c_c.
8690         (ccosh_test_data): Likewise.
8691         (cexp_test_data): Likewise.
8692         (clog_test_data): Likewise.
8693         (csqrt_test_data): Likewise.
8694         (ctan_test_data): Likewise.
8695         (ctan_tonearest_test_data): Likewise.
8696         (ctan_towardzero_test_data): Likewise.
8697         (ctan_downward_test_data): Likewise.
8698         (ctan_upward_test_data): Likewise.
8699         (ctanh_test_data): Likewise.
8700         (ctanh_tonearest_test_data): Likewise.
8701         (ctanh_towardzero_test_data): Likewise.
8702         (ctanh_downward_test_data): Likewise.
8703         (ctanh_upward_test_data): Likewise.
8704         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8705         mpc_c_c.
8706         (func_calc_desc): Add mpc_c_c union field.
8707         (FUNC_mpc_c_c): New macro.
8708         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
8709         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
8710         ctanh.
8711         (special_fill_min_subnorm_p120): New function.
8712         (special_real_inputs): Add min_subnorm_p120.
8713         (calc_generic_results): Handle mpc_c_c.
8714         * sysdeps/i386/fpu/libm-test-ulps: Update.
8715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8716
8717 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8718
8719         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
8720         (do_sin_slow): New functions.
8721         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
8722         (cslow2, csloww1, csloww2): Use the new functions.
8723
8724         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
8725         Use M to change sign of result instead of X.  Assume X is
8726         positive.
8727         (csloww1): Likewise.
8728         (__sin): Adjust.
8729         (__cos): Adjust.
8730
8731         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
8732         arguments A and DA.
8733         (__sin): Adjust.
8734         (__cos): Likewise.
8735
8736         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
8737         (__cos): Likewise.
8738         (sloww1): Don't adjust sign of DX.
8739         (csloww1): Likewise.
8740         (sloww2): Use X directly and don't adjust sign of DX.
8741         (csloww2): Likewise.
8742
8743 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8744
8745         * math/auto-libm-test-in: Add tests of cabs and carg.
8746         * math/auto-libm-test-out: Regenerated.
8747         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
8748         (carg_test_data): Likewise.
8749         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8750         mpc_c_f.
8751         (func_calc_desc): Add mpc_c_f union field.
8752         (test_functions): Add cabs and carg.
8753         (calc_generic_results): Handle mpc_c_f.
8754
8755         * sysdeps/powerpc/powerpc32/libgcc-compat.S
8756         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
8757         as a macro and a compat symbol.
8758         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
8759         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
8760         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
8761         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
8762         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
8763         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
8764         not use .hidden.
8765         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
8766         Likewise.
8767         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
8768         Likewise.
8769         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
8770         Likewise.
8771         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
8772         Likewise.
8773         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
8774         Likewise.
8775         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
8776         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
8777         from GLIBC_2.3.2.
8778
8779 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8780
8781         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8782
8783 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8784
8785         * manual/texinfo.tex: Update to version 2013-11-26.10 with
8786         trailing whitespace removed.
8787         * scripts/config.guess: Update to version 2013-11-29.
8788         * scripts/config.sub: Update to version 2013-10-01.
8789
8790         * math/auto-libm-test-in: Add tests of sincos.
8791         * math/auto-libm-test-out: Regenerated.
8792         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
8793         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8794         mpfr_f_11.
8795         (func_calc_desc): Add mpfr_f_11 union field.
8796         (test_functions): Add sincos.
8797         (calc_generic_results): Handle mpfr_f_11.
8798         * sysdeps/i386/fpu/libm-test-ulps: Update.
8799         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8800
8801 2013-12-19  Andreas Schwab  <schwab@suse.de>
8802
8803         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
8804         CALL_MCOUNT.
8805         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
8806         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
8807         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
8808
8809 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8810
8811         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
8812         * sysdeps/i386/fpu/libm-test-ulps: Update.
8813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8814
8815         [BZ #16293]
8816         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
8817         round-to-nearest mode when using frndint.
8818         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
8819         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
8820         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
8821         Likewise.
8822         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
8823         sinh test to fail.
8824         * math/auto-libm-test-out: Regenerated.
8825         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
8826         (TEST_COND_x86): Likewise.
8827         (expm1_tonearest_test_data): New array.
8828         (expm1_test_tonearest): New function.
8829         (expm1_towardzero_test_data): New array.
8830         (expm1_test_towardzero): New function.
8831         (expm1_downward_test_data): New array.
8832         (expm1_test_downward): New function.
8833         (expm1_upward_test_data): New array.
8834         (expm1_test_upward): New function.
8835         (main): Run the new test functions.
8836         * sysdeps/i386/fpu/libm-test-ulps: Update.
8837         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8838
8839         * include/features.h: Update comment documenting feature test
8840         macros.  Mention _DEFAULT_SOURCE in comment.
8841         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
8842         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
8843         _BSD_SOURCE and _SVID_SOURCE.
8844         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
8845         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
8846         !_SVID_SOURCE]: Likewise.
8847         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8848         (__USE_POSIX_IMPLICITLY): Define.
8849         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8850         (_POSIX_SOURCE): Undefine and redefine.
8851         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8852         (_POSIX_C_SOURCE): Likewise.
8853         * manual/creature.texi (_DEFAULT_SOURCE): Document.
8854         (Feature Test Macros): Update documentation of default features.
8855
8856 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8857
8858         * benchtests/Makefile: Add bench-strtok.
8859         * benchtests/bench-strtok.c: New file: strtok benchtest.
8860
8861 2013-12-19  Allan McRae  <allan@archlinux.org>
8862
8863         * manual/install.texi: Suppress menu for plain text output.
8864         * INSTALL: Regenerated.
8865
8866 2013-12-18  Brooks Moses  <bmoses@google.com>
8867
8868         [BZ #15846]
8869         * misc/getauxval.c: Include errno.h.
8870         (__getauxval): Set errno to ENOENT if the requested type is not
8871         found.
8872         * misc/sys/auxv.h (getauxval): Document that it may set errno;
8873         don't declare with __attribute_const__.
8874         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
8875         * manual/startup.texi: Document that getauxval sets errno.
8876
8877 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
8878
8879         * math/auto-libm-test-in: Add tests of jn and yn.
8880         * math/auto-libm-test-out: Regenerated.
8881         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
8882         (yn_test_data): Likewise.
8883         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8884         mpfr_if_f.
8885         (func_calc_desc): Add mpfr_if_f union field.
8886         (FUNC_mpfr_if_f): New macro.
8887         (test_functions): Add jn and yn.
8888         (calc_generic_results): Assert type of second input for
8889         mpfr_ff_f.  Handle mpfr_if_f.
8890         (output_for_one_input_case): Disable all checking for arguments
8891         fitting floating-point types in case of an integer argument.
8892         * sysdeps/i386/fpu/libm-test-ulps: Update.
8893         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8894
8895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
8896         Don't expect fegetround reference in libm.so.
8897
8898 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8899
8900         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
8901         $(config-cflags-nofma).
8902
8903 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
8904
8905         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
8906         * math/auto-libm-test-out: Regenerated.
8907
8908         [BZ #16338]
8909         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
8910         to determine exponent and adjust argument to have exponent of -1.
8911         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
8912         log2.
8913         * math/auto-libm-test-out: Regenerated.
8914         * sysdeps/i386/fpu/libm-test-ulps: Update.
8915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8916
8917 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
8918
8919         * manual/probes.texi: Remove cases when per-thread arenas are
8920         disabled.
8921
8922 2013-12-18  Andreas Schwab  <schwab@suse.de>
8923
8924         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
8925         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
8926         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
8927         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
8928         * sysdeps/i386/i686/multiarch/Makefile: Update.
8929         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
8930
8931 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
8932
8933         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
8934         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
8935
8936 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8937
8938         [BZ #15968]
8939         Support TZ transition times < 00:00:00.
8940         This is needed for version-3 tz-format files; it supports time
8941         stamps past 2037 for America/Godthab (the only entry in the tz
8942         database for which this change is relevant).
8943         * manual/time.texi (TZ Variable): Document transition times
8944         from -167:59:59 through -00:00:01.
8945         * time/tzset.c (tz_rule): Time of day is now signed.
8946         (__tzset_parse_tz): Parse negative time of day.
8947
8948         Document TZ transition times >= 25:00:00.
8949         * manual/time.texi (TZ Variable): Document transition times from
8950         25:00:00 through 167:59:59.  These are already supported, and this
8951         support will help with version-3 tz-format files.
8952
8953         * manual/time.texi (TZ Variable): Modernize North America example
8954         to reflect current (i.e., 2007-and-later) daylight saving rules.
8955
8956         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
8957
8958 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
8959
8960         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
8961         * sysdeps/unix/bsd/bits/stat.h: Likewise.
8962         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
8963         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
8964         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
8965         * sysdeps/unix/bsd/bsdstat.h: Likewise.
8966         * sysdeps/unix/bsd/clock.c: Likewise.
8967         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
8968         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
8969         * sysdeps/unix/bsd/init-posix.c: Likewise.
8970         * sysdeps/unix/bsd/poll.c: Likewise.
8971         * sysdeps/unix/bsd/ptsname.c: Likewise.
8972         * sysdeps/unix/bsd/seekdir.c: Likewise.
8973         * sysdeps/unix/bsd/setegid.c: Likewise.
8974         * sysdeps/unix/bsd/seteuid.c: Likewise.
8975         * sysdeps/unix/bsd/setgid.c: Likewise.
8976         * sysdeps/unix/bsd/setrgid.c: Likewise.
8977         * sysdeps/unix/bsd/setruid.c: Likewise.
8978         * sysdeps/unix/bsd/setsid.c: Likewise.
8979         * sysdeps/unix/bsd/setuid.c: Likewise.
8980         * sysdeps/unix/bsd/sigaction.c: Likewise.
8981         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
8982         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
8983         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
8984         * sysdeps/unix/bsd/telldir.c: Likewise.
8985         * sysdeps/unix/bsd/times.c: Likewise.
8986         * sysdeps/unix/bsd/usleep.c: Likewise.
8987
8988         * misc/Makefile (install-lib): Remove libbsd-compat.a.
8989         ($(objpfx)libbsd-compat.a): Remove rule.
8990
8991         * include/features.h (__FAVOR_BSD): Do not define.
8992         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
8993         features conflicting with POSIX.
8994         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
8995         (_BSD_SOURCE): Remove description of not being a subset of other
8996         feature test macros.
8997         * manual/job.texi (getpgrp): Do not document BSD version.
8998         (getpgid): Do not document by reference to BSD getpgrp.
8999         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9000         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9001         * signal/signal.h [__FAVOR_BSD]: Likewise.
9002         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9003         instead of making contents conditional on [__FAVOR_BSD].
9004         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9005
9006 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9007
9008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9009
9010 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9011
9012         [BZ #16314]
9013         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9014         values below 2**-450, not 2**-500.
9015         * math/auto-libm-test-in: Don't allow spurious underflow from
9016         hypot.
9017         * math/auto-libm-test-out: Regenerated.
9018
9019         [BZ #16316]
9020         [BZ #16330]
9021         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9022         values of ha and hb and sort them after adjusting subnormal
9023         arguments.
9024         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9025         Likewise.
9026         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9027         values of ea and eb and sort them after adjusting subnormal
9028         arguments.
9029         * math/auto-libm-test-in: Do not expect some hypot tests of
9030         subnormals to fail.  Add more hypot tests.
9031         * math/auto-libm-test-out: Regenerated.
9032
9033 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9034
9035         [BZ #13304]
9036         * sysdeps/sh/s_fma.c: New file.
9037         * sysdeps/sh/s_fmaf.c: New file.
9038         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9039         version.
9040         * sysdeps/sh/Implies: Add sh/soft-fp.
9041
9042 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9043
9044         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9045         level of indirection to members `objname', `errstring', `malloced'.
9046         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9047         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9048         it as the __longjmp argument (just pass 1 instead).
9049         (_dl_catch_error): Initialize C with argument pointers and address of
9050         volatile local ERRCODE rather than copying values out of C at return.
9051
9052 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9053
9054         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9055         * math/auto-libm-test-out: Regenerated.
9056         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9057         (hypot_test_data): Likewise.
9058         (pow_test_data): Likewise.
9059         (pow_tonearest_test_data): Likewise.
9060         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9061         mpfr_ff_f.
9062         (func_calc_desc): Add mpfr_ff_f union field.
9063         (FUNC_mpfr_ff_f): New macro.
9064         (test_functions): Add atan2, hypot and pow.
9065         (special_fill_min): New function.
9066         (special_fill_minus_min): Likewise.
9067         (special_fill_min_subnorm): Likewise.
9068         (special_fill_minus_min_subnorm): Likewise.
9069         (special_real_inputs): Add min, -min, min_subnorm and
9070         -min_subnorm.
9071         (calc_generic_results): Handle mpfr_ff_f.
9072         * sysdeps/i386/fpu/libm-test-ulps: Update.
9073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9074
9075 2013-12-16  Will Newton  <will.newton@linaro.org>
9076
9077         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9078         (Aligned Memory Blocks): Add documentation for aligned_alloc
9079         and suggest it as an alternative to posix_memalign.
9080         (Hooks for Malloc): Document __memalign_hook is also called
9081         for aligned_alloc.  (Summary of Malloc): Add summary for
9082         aligned alloc.  Document __memalign_hook is also called
9083         for aligned_alloc.
9084
9085 2013-12-16  Will Newton  <will.newton@linaro.org>
9086
9087         * manual/memory.texi (Malloc Examples): Clarify default
9088         alignment documentation.  Suggest posix_memalign rather
9089         than memalign or valloc.
9090         (Aligned Memory Blocks): Remove suggestion to use memalign
9091         or valloc.  Remove obsolete comment about BSD.
9092         Document memalign errno values and mark the function obsolete.
9093         Document posix_memalign returned error codes.  Mark valloc
9094         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9095         called for posix_memalign and valloc.
9096         (Summary of Malloc): Add posix_memalign to function summary.
9097         __memalign_hook is also called for posix_memalign and valloc.
9098
9099 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9100
9101         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9102         TAYLOR_SIN.
9103         (__sin): Adjust.
9104         (__cos): Likewise.
9105         (sloww): Use mynumber union.  Expand ternary operator into
9106         if-else statements.
9107         (cslow): use mynumber union.
9108
9109 2013-12-16  Allan McRae  <allan@archlinux.org>
9110
9111         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9112         * configure: Regenerated.
9113
9114         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9115
9116         [BZ #14120]
9117         * configure.ac: Added --enable-maintainer-mode. Check for
9118         autoconf when enabled.
9119         * configure: Regenerated.
9120
9121         * nscd/nscd.service: New file.
9122         * nscd/nscd.tmpfiles: New file.
9123
9124 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9125
9126         [BZ #12100]
9127         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9128         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9129         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9130         (strstr): Add __strstr_sse2_unaligned ifunc.
9131         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9132         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9133         (strcasestr): Remove __strcasestr_sse42 ifunc.
9134         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9135         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9136         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9137
9138 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9139
9140         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9141         * sysdeps/sh/bits/fenv.h: ... here.
9142         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9143
9144 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9145
9146         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9147
9148         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9149         hypotf multiarch implementations.
9150         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9151         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9152         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9153         multiarch hypot for PPC64.
9154         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9155         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9156         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9157         multiarch hypotf for PPC64.
9158
9159         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9160         modff multiarch implementations.
9161         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9162         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9163         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9164         multiarch modf for PPC64.
9165         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9166         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9167         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9168         multiarch modff for PPC64.
9169
9170         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9171         and logl multiarch implementations.
9172         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9173         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9174         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9175         multiarch logb for PPC64.
9176         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9177         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9178         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9179         multiarch logb for PPC64.
9180         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9181         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9182         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9183         multiarch logb for PPC64.
9184
9185         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9186         isinff multiarch implementation.
9187         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9188         file.
9189         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9190         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9191         multiarch isinf for PPC64.
9192         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9193         file.
9194         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9195         multiarch isinff for PPC64.
9196
9197         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9198         finitef multiarch implementation.
9199         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9200         file.
9201         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9202         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9203         multiarch finite for PPC64.
9204         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9205         file.
9206         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9207         multiarch finitef for PPC64.
9208
9209         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9210         lrint multiarch implementation.
9211         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9212         file.
9213         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9214         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9215         multiarch llrint for PPC64.
9216         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9217         multiarch lrint for PPC64.
9218
9219         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9220         copysignf multiarch implementation.
9221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9222         file.
9223         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9224         file.
9225         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
9226         multiarch copysign for PPC64.
9227         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
9228         multiarch copysignf for PPC64.
9229
9230         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
9231         multiarch implementation.
9232         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
9233         file.
9234         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
9235         file.
9236         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
9237         file.
9238         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
9239         file.
9240         multiarch llround for PPC64.
9241         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
9242         multiarch trunc for PPC64.
9243         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
9244         multiarch truncf for PPC64.
9245
9246         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
9247         multiarch implementation.
9248         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
9249         file.
9250         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
9251         file.
9252         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
9253         file.
9254         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
9255         file.
9256         multiarch llround for PPC64.
9257         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
9258         multiarch round for PPC64.
9259         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
9260         multiarch roundf for PPC64.
9261
9262         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
9263         multiarch implementation.
9264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
9265         file.
9266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
9267         file.
9268         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
9269         file.
9270         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
9271         file.
9272         multiarch llround for PPC64.
9273         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
9274         multiarch floor for PPC64.
9275         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
9276         multiarch floorf for PPC64.
9277
9278         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
9279         multiarch implementation.
9280         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
9281         file.
9282         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
9283         file.
9284         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
9285         file.
9286         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
9287         file.
9288         multiarch llround for PPC64.
9289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
9290         multiarch ceil for PPC64.
9291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
9292         multiarch ceilf for PPC64.
9293
9294         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
9295         multiarch implementation.
9296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
9297         file.
9298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
9299         file.
9300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
9301         file.
9302         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
9303         multiarch llround for PPC64.
9304         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
9305         multiarch lround for PPC64.
9306
9307         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
9308         multiarch implementation.
9309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
9310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
9311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
9312         file.
9313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
9314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
9315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
9316         multiarch isnan for PPC64.
9317         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
9318         multiarch isnanf for PPC64.
9319
9320         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
9321         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
9322         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
9323         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
9324         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
9325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
9326
9327         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
9328         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9329         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9330         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9331
9332         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
9333         multiarch implementations.
9334         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9335         (__libc_ifunc_impl_list): Likewise.
9336         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
9337         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
9338         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
9339         multiarch stpcpy for PPC64.
9340
9341         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
9342         multiarch implementations.
9343         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9344         (__libc_ifunc_impl_list): Likewise.
9345         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
9346         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
9347         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
9348         multiarch strcpy for PPC64.
9349
9350         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
9351         redefine function name.
9352         (_wordcopy_fwd_dest_aligned): Likewise.
9353         (_wordcopy_bwd_aligned): Likewise.
9354         (_wordcopy_bwd_dest_aligned): Likewise.
9355         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
9356         multiarch implementations.
9357         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9358         (__libc_ifunc_impl_list): Likewise.
9359         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
9360         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
9361         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
9362         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
9363         multiarch wcscpy for PPC64.
9364
9365         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
9366         multiarch implementations.
9367         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9368         (__libc_ifunc_impl_list): Likewise.
9369         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
9370         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
9371         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
9372         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
9373         multiarch wcscpy for PPC64.
9374
9375         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
9376         multiarch implementations.
9377         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9378         (__libc_ifunc_impl_list): Likewise.
9379         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
9380         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
9381         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
9382         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
9383         multiarch wcsrchr for PPC64.
9384
9385         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
9386         multiarch implementations.
9387         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9388         (__libc_ifunc_impl_list): Likewise.
9389         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
9390         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
9391         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
9392         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
9393         multiarch wcschr for PPC64.
9394
9395         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
9396         multiarch implementations.
9397         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9398         (__libc_ifunc_impl_list): Likewise.
9399         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
9400         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
9401         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
9402         multiarch strchrnul for PPC64.
9403
9404         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
9405         implementations.
9406         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9407         (__libc_ifunc_impl_list): Likewise.
9408         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
9409         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
9410         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
9411         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
9412         strchr for PPC64.
9413
9414         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
9415         implementations.
9416         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9417         (__libc_ifunc_impl_list): Likewise.
9418         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
9419         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
9420         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
9421         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
9422         strncmp for PPC64.
9423
9424         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
9425         multiarch implementations.
9426         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9427         (__libc_ifunc_impl_list): Likewise.
9428         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
9429         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
9430         strncasecmp for PPC64.
9431         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
9432         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
9433         multiarch strncasecmp_l for PPC64.
9434
9435         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
9436         multiarch implementations.
9437         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9438         (__libc_ifunc_impl_list): Likewise.
9439         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
9440         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
9441         multiarch strcasecmp for PPC64.
9442         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
9443         file.
9444         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
9445         multiarch strcasecmp_l for PPC64.
9446
9447         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
9448         implementations.
9449         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9450         (__libc_ifunc_impl_list): Likewise.
9451         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
9452         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
9453         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
9454         strnlen for PPC64.
9455
9456         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
9457         implementations.
9458         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9459         (__libc_ifunc_impl_list): Likewise.
9460         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
9461         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
9462         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
9463         strlen for PPC64.
9464
9465         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
9466         implementations.
9467         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9468         (__libc_ifunc_impl_list): Likewise.
9469         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
9470         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
9471         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
9472         rawmemrchr for PPC64.
9473
9474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
9475         implementation.
9476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9477         (__libc_ifunc_impl_list): Likewise.
9478         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
9479         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
9480         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
9481         memrchr for PPC64.
9482
9483         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
9484         implementation.
9485         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9486         (__libc_ifunc_impl_list): Likewise.
9487         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
9488         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
9489         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
9490         memchr for PPC64.
9491
9492         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
9493         implementation.
9494         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9495         (__libc_ifunc_impl_list): Likewise.
9496         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
9497         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
9498         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
9499         mempcpy for PPC64.
9500
9501         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
9502         avoid cretion of __bzero symbol.
9503         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
9504         Likewise.
9505         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
9506         Likewise.
9507         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
9508         Likewise.
9509         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
9510         multiarch implementations.
9511         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9512         (__libc_ifunc_impl_list): Likewise.
9513         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
9514         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
9515         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
9516         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
9517         bzero for PPC32.
9518         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
9519         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
9520         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
9521         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
9522         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
9523         memset for PPC64.
9524         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
9525
9526         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
9527         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
9528         implementations.
9529         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9530         (__libc_ifunc_impl_list): Likewise.
9531         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
9532         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
9533         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
9534         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
9535         memcmp for PPC64.
9536
9537         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
9538         multiarch for POWER/PPC64.
9539         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
9540         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
9541         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
9542         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
9543         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
9544         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
9545         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
9546         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
9547         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
9548         memcpy for PPC64.
9549
9550         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
9551         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
9552         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
9553         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
9554         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
9555         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
9556         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
9557         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
9558         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
9559         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
9560         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
9561         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
9562         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
9563         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
9564         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
9565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
9566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
9567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
9568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
9569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
9570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
9571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
9572
9573 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9574
9575         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
9576
9577 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9578
9579         * benchtests/Makefile (bench): Add exp2 and log2.
9580         (LDLIBS-bench-exp2): Add -lm.
9581         (LDLIBS-bench-log2): Likewise.
9582         * benchtests/exp2-inputs: New inputs file.
9583         * benchtests/log2-inputs: New inputs file.
9584         * benchtests/log-inputs: Add new inputs.
9585         * benchtests/tan-inputs: Likewise.
9586
9587 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9588
9589         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
9590         definition...
9591         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
9592         (csloww2): ... from here.
9593
9594         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
9595         instead of structures.
9596         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
9597         (POLYNOMIAL): Likewise.
9598         (TAYLOR_SLOW): Likewise.
9599         (__sin): Likewise.
9600         (__cos): Likewise.
9601         (slow1): Likewise.
9602         (slow2): Likewise.
9603         (sloww): Likewise.
9604         (sloww1); Likewise.
9605         (sloww2): Likewise.
9606         (bsloww1): Likewise.
9607         (bsloww2): Likewise.
9608         (cslow2): Likewise.
9609         (csloww): Likewise.
9610         (csloww1): Likewise.
9611         (csloww2): Likewise.
9612
9613 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
9614
9615         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
9616         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
9617         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
9618         * malloc/hooks.c (realloc_check): Likewise.
9619
9620         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
9621         * malloc/arena.c: Remove PER_THREAD conditional.
9622         [!PER_THREAD]: Remove code.
9623         (ptmalloc_unlock_all2): Likewise.
9624         (ptmalloc_init): Likewise.
9625         (_int_new_arena): Likewise.
9626         (arena_get2): Likewise.
9627         * malloc/hooks.c (__malloc_get_state): Likewise.
9628         (__malloc_set_state): Likewise.
9629         * malloc/malloc.c: Likewise.
9630         (struct malloc_state): Likewise.
9631         (struct malloc_par): Likewise.
9632         (__libc_realloc): Likewise.
9633         (__libc_mallopt): Likewise.
9634
9635 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9636
9637         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
9638
9639 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
9640
9641         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
9642         macro to a function.  Check for zero perturb_byte.
9643         (_int_malloc, _int_free): Remove zero perturb_byte checks.
9644
9645         * malloc/malloc.c: (force_reg): Remove.
9646         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
9647         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
9648         force_reg by atomic_forced_read.
9649         * malloc/arena.c (ptmalloc_init): Likewise.
9650         * malloc/hooks.c (top_check): Likewise.
9651
9652 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9653
9654         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9655
9656 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
9657
9658         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9659
9660 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
9661
9662         * math/auto-libm-test-in: Add tests of lgamma.
9663         * math/auto-libm-test-out: Regenerated.
9664         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
9665         (M_LOG_2_SQRT_PIl): Likewise.
9666         (lgamma_test_data): Use AUTO_TESTS_f_f1.
9667         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9668         mpfr_f_f1.
9669         (func_calc_desc): Add mpfr_f_f1 union field.
9670         (ARGS1): New macro.
9671         (ARGS2): Likewise.
9672         (ARGS3): Likewise.
9673         (ARGS4): Likewise.
9674         (RET1): Likewise.
9675         (RET2): Likewise.
9676         (CALC): Likewise.
9677         (FUNC): Likewise.
9678         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
9679         (test_functions): Add lgamma.
9680         (calc_generic_results): Handle mpfr_f_f1.
9681         * sysdeps/i386/fpu/libm-test-ulps: Update.
9682         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9683
9684 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9685
9686         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
9687         __mpn_add_n for PowerPC64/POWER7.
9688         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
9689         __mpn_sub_n for PowerPC64/POWER7.
9690
9691         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
9692         __mpn_addmul_1 for PowerPC64.
9693         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
9694         __mpn_submul_1 for PowerPC64.
9695         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
9696         for PowerPC64.
9697         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
9698         for PowerPC64.
9699
9700 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
9701
9702         [BZ #15089]
9703         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
9704
9705 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9706
9707         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
9708
9709         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
9710         add multiarch folders.
9711         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
9712         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
9713         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
9714         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
9715         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
9716         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
9717         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
9718         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
9719         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
9720         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
9721         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
9722         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
9723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
9724         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
9725         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
9726         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
9727         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
9728
9729         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
9730         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
9731         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
9732         New file.
9733         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
9734         New file.
9735         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
9736         multiarch __ieee754_hypot for PowerPC32.
9737         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
9738         New file.
9739         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
9740         New file.
9741         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
9742         multiarch __ieee754_hypotf for PowerPC32.
9743
9744         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
9745         long_double_symbol only if __logbl is defined.
9746         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
9747         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
9748         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
9749         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
9750         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
9751         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
9752         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
9753         path for implementation.
9754         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
9755         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
9756         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
9757         logb, and logbl multiarch implementations for PowerPC32.
9758         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
9759         file.
9760         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
9761         file.
9762         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
9763         multiarch logb for PowerPC32.
9764         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
9765         file.
9766         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
9767         file.
9768         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
9769         multiarch logbf for PowerPC32.
9770         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
9771         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
9772         file.
9773         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
9774         multiarch logbl implementation for PowerPC32.
9775
9776         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
9777         and modff multiarch implementations.
9778         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
9779         New file.
9780         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
9781         New file.
9782         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
9783         multiarch modf for PowerPC32.
9784         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
9785         New file.
9786         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
9787         New file.
9788         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
9789         multiarch modff for PowerPC32.
9790
9791         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
9792         and lrintf multiarch implementations.
9793         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
9794         New file.
9795         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
9796         New file.
9797         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
9798         multiarch lrint for PowerPC32.
9799         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
9800         file: multiarch lrintf for PowerPC32.
9801
9802         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
9803         and lroundf multiarch implementations.
9804         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
9805         New file.
9806         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
9807         New file.
9808         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
9809         New file.
9810         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
9811         multiarch lround for PowerPC32.
9812         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
9813         file: multiarch lroundf for PowerPC32.
9814
9815         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
9816         copysign and copysignf multiarch implementations.
9817         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
9818         New file.
9819         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
9820         New file.
9821         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
9822         file: multiarch copysign for PowerPC32.
9823         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
9824         file: multiarch copysignf for PowerPC32.
9825
9826         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
9827         and truncf multiarch implementations.
9828         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
9829         New file.
9830         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
9831         file.
9832         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
9833         multiarch trunc for PowerPC32.
9834         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
9835         New file.
9836         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
9837         New file.
9838         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
9839         multiarch truncf for PowerPC32.
9840
9841         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
9842         and roundf multiarch implementations.
9843         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
9844         New file.
9845         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
9846         file.
9847         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
9848         multiarch round for PowerPC32.
9849         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
9850         New file.
9851         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
9852         New file.
9853         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
9854         multiarch roundf for PowerPC32.
9855
9856         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
9857         and floorf multiarch implementations.
9858         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
9859         New file.
9860         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
9861         file.
9862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
9863         multiarch floor for PowerPC32.
9864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
9865         New file.
9866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
9867         New file.
9868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
9869         multiarch floorf for PowerPC32.
9870
9871         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
9872         and ceilf multiarch implementations.
9873         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
9874         New file.
9875         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
9876         file.
9877         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
9878         multiarch ceil for PowerPC32.
9879         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
9880         New file.
9881         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
9882         file.
9883         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
9884         multiarch ceilf for PowerPC32.
9885
9886         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
9887         is defined.
9888         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
9889         FINITEF is defined.
9890         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
9891         and finitef multiarch implementations.
9892         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
9893         New file.
9894         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
9895         file.
9896         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
9897         multiarch finite for PowerPC32.
9898         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
9899         New file.
9900         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
9901         file: multiarch finitef for PowerPC32.
9902
9903         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
9904         and isinff multiarch implementations.
9905         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
9906         file.
9907         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
9908         file.
9909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
9910         multiarch isinf for PowerPC32.
9911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
9912         New file.
9913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
9914         multiarch isinff for PowerPC32.
9915
9916         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
9917         alias when __isnan is defined.
9918         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
9919         and isnanf multiarch implementations.
9920         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
9921         file.
9922         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
9923         file.
9924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
9925         file.
9926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
9927         file.
9928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
9929         multiarch isnan for PowerPC32.
9930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
9931         New file.
9932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
9933         New file.
9934         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
9935         multiarch isnanf for PowerPC32.
9936
9937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
9938         and sqrtf multiarch implementations.
9939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
9940         file.
9941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
9942         file.
9943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
9944         multiarch sqrt for PowerPC32.
9945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
9946         file.
9947         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
9948         file.
9949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
9950         multiarch sqrtf for PowerPC32.
9951
9952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
9953         and llroundf multiarch implementations.
9954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
9955         New file.
9956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
9957         New file.
9958         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
9959         New file.
9960         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
9961         file: multiarch llround for PowerPC32.
9962         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
9963         file: multiarch llroundf for PowerPC32.
9964
9965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
9966         multiarch PowerPC32 fpu implementations.
9967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
9968         New file.
9969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
9970         New file.
9971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
9972         multiarch llrint for PowerPC32.
9973         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
9974         New file.
9975         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
9976         New file.
9977         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
9978         file.
9979
9980         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
9981
9982         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
9983         file.
9984         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
9985         file.
9986         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
9987         file.
9988         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
9989         multiarch wordcopy for PPC32.
9990         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
9991         wordcopy objects.
9992         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
9993         (__libc_ifunc_impl_list): Likewise.
9994         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
9995         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
9996         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
9997         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
9998         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
9999         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10000
10001         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10002         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10003         file.
10004         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10005         file.
10006         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10007         file.
10008         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10009         multiarch wcscpy for PPC32.
10010         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10011         multiarch objects.
10012         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10013         (__libc_ifunc_impl_list): Likewise.
10014         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10015         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10016         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10017         sysdeps/powerpc/power6/wcscpy.c.
10018
10019         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10020         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10021         file.
10022         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10023         file.
10024         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10025         file.
10026         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10027         multiarch wcsrchr for PPC32.
10028         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10029         multiarch objects.
10030         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10031         (__libc_ifunc_impl_list): Likewise.
10032         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10033         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10034         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10035         sysdeps/powerpc/power6/wcsrchr.c.
10036
10037         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10038         file.
10039         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10040         file.
10041         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10042         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10043         multiarch wcschr for PPc32.
10044         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10045         multiarch objects.
10046         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10047         (__libc_ifunc_impl_list): Likewise.
10048         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10049         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10050         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10051         sysdeps/powerpc/power6/wcschr.c.
10052
10053         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10054         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10055         file.
10056         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10057         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10058         file: multiarch strchr for PPC32.
10059         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10060         multiarch objects.
10061         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10062         (__libc_ifunc_impl_list): Likewise.
10063
10064         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10065         name.
10066         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10067         file.
10068         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10069         file.
10070         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10071         multiarch strchrnul for PPC32.
10072         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10073         multiarch objects.
10074         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10075         (__libc_ifunc_impl_list): Likewise.
10076
10077         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10078         file.
10079         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10080         multiarch strncasecmp for PPC32.
10081         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10082         file.
10083         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10084         multiarch strncasecmp_l for PPC32.
10085         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10086         strncasecmp multiarch objects.
10087         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10088         (__libc_ifunc_impl_list): Likewise.
10089
10090         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10091         file.
10092         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10093         multiarch strncasecmp for PPC32.
10094         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10095         New file.
10096         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10097         multiarch strcasecmp_l for PPC32.
10098         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10099         multiarch objects.
10100         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10101         (__libc_ifunc_impl_list): Likewise.
10102
10103         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10104         file.
10105         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10106         file.
10107         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10108         multiarch strncmp for PPC32.
10109         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10110         multiarch objects.
10111         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10112         (__libc_ifunc_impl_list): Likewise.
10113
10114         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10115         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10116         file.
10117         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10118         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10119         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10120         multiarch objects.
10121         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10122         (__libc_ifunc_impl_list): Likewise.
10123
10124         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10125         file.
10126         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10127         file.
10128         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10129         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10130         multiarch objects.
10131         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10132         (__libc_ifunc_impl_list): Likewise.
10133
10134         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10135         file.
10136         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10137         file.
10138         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10139         multiarch rawmemchr for PPC32.
10140         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10141         multiarch objects.
10142         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10143         (__libc_ifunc_impl_list): Likewise.
10144
10145         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10146         file.
10147         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10148         file.
10149         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10150         file: memrchr multiarch for PPC32.
10151         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10152         multiarch objects.
10153         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10154         (__libc_ifunc_impl_list): Likewise.
10155
10156         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10157         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10158         file.
10159         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10160         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10161         multiarch memchr for PPC32.
10162         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10163         multiarch objects.
10164         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10165         (__libc_ifunc_impl_list): Likewise.
10166
10167         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10168         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10169         file.
10170         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10171         file.
10172         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10173         file: multiarch mempcpy for PPC32.
10174         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10175         multiarch objects.
10176         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10177         (__libc_ifunc_impl_list): Likewise.
10178
10179         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10180         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10181         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10182         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10183         multiarch bzero for PPC32.
10184         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10185         file.
10186         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10187         file.
10188         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10189         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10190         file: multiarch memset for PPC32.
10191         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10192         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10193         memset multiarch objects.
10194         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10195         (__libc_ifunc_impl_list): Likewise.
10196
10197         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10198         file.
10199         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10200         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10201         memcmp for PPC32.
10202         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10203         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10204         multiarch objects.
10205         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10206         (__libc_ifunc_impl_list): Likewise.
10207
10208         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10209         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10210         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10211         file.
10212         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10213         file.
10214         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10215         file.
10216         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10217         multiarch memcpy for PPC32.
10218         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10219         multiarch objects.
10220         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10221         (__libc_ifunc_impl_list): Likewise.
10222
10223         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10224         support multiarch for POWER/PPC32.
10225         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
10226         Likewise.
10227         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
10228         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
10229         Implies file to make multiarch folder appers before the fpu and
10230         default folder for power4 configuration.
10231
10232 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10233
10234         * scripts/bench.pl: Append volatile keyword to type.
10235
10236 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10237
10238         * sysdeps/sh/sotruss-lib.c: New file.
10239         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
10240
10241 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10242
10243         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10244
10245 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
10246
10247         [BZ #6810]
10248         * math/w_tgamma.c: Include <errno.h>.
10249         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
10250         * math/w_tgammaf.c: Include <errno.h>.
10251         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
10252         * math/w_tgammal.c: Include <errno.h>.
10253         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
10254         * math/auto-libm-test-in: Do not allow missing errno on tgamma
10255         underflow.  Add more tgamma tests.
10256         * math/auto-libm-test-out: Regenerated.
10257         * sysdeps/i386/fpu/libm-test-ulps: Update.
10258         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10259
10260         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
10261         sin, sinh, tan, tanh, tgamma, y0 and y1.
10262         * math/auto-libm-test-out: Regenerated.
10263         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10264         (TEST_COND_x86): Likewise.
10265         (M_E2l): Remove macro.
10266         (M_E3l): Likewise.
10267         (M_2_SQRT_PIl): Likewise.
10268         (M_SQRT_PIl): Likewise.
10269         (M_1_DIV_El): Likewise.
10270         (log_test_data): Use AUTO_TESTS_f_f.
10271         (log10_test_data): Likewise.
10272         (log1p_test_data): Likewise.
10273         (log2_test_data): Likewise.
10274         (sin_test_data): Likewise.
10275         (sin_tonearest_test_data): Likewise.
10276         (sin_towardzero_test_data): Likewise.
10277         (sin_downward_test_data): Likewise.
10278         (sin_upward_test_data): Likewise.
10279         (sinh_test_data): Likewise.
10280         (sinh_tonearest_test_data): Likewise.
10281         (sinh_towardzero_test_data): Likewise.
10282         (sinh_downward_test_data): Likewise.
10283         (sinh_upward_test_data): Likewise.
10284         (tan_test_data): Likewise.
10285         (tan_tonearest_test_data): Likewise.
10286         (tan_towardzero_test_data): Likewise.
10287         (tan_downward_test_data): Likewise.
10288         (tan_upward_test_data): Likewise.
10289         (tanh_test_data): Likewise.
10290         (tgamma_test_data): Likewise.
10291         (y0_test_data): Likewise.
10292         (y1_test_data): Likewise.
10293         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
10294         (special_real_inputs): Add pi/4.
10295         * sysdeps/i386/fpu/libm-test-ulps: Update.
10296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10297
10298 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10299
10300         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
10301         "longjmp_target" static probes.
10302         (__longjmp): Rename to __longjmp_symbol.
10303         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10304         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
10305         on which longjmp to generate.
10306         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10307         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
10308         probe.
10309         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10310         (__sigjmp_save): Rename to __sigjmp_save_symbol.
10311         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
10312         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
10313         and __sigjmp_save_symbol based on which sigsetjmp to generated.
10314         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
10315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
10316         __longjmp_symbol based on which __longjmp to generate.
10317         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
10318         probe.
10319         (setjmp): Rename to setjmp_symbol.
10320         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10321         (_setjmp): Rename to _setjmp_symbol.
10322         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10323         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
10324         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
10325         which setjmp to generate.
10326         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
10327         "longjmp_target" static probes.
10328
10329 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10330
10331         * benchtests/README: Add note about output arguments.
10332         * benchtests/bench-sincos.c: Remove file.
10333         * benchtests/sincos-inputs: New file.
10334         * scripts/bench.pl: Identify output arguments and define
10335         static variables for them.
10336
10337         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
10338
10339         [BZ #15941]
10340         * Makefile (INSTALL): Add install-plain.texi as the primary
10341         dependency.
10342         * manual/install-plain.texi: New file.
10343         * manual/install.texi: Include node directive only for
10344         non-plaintext output.
10345
10346 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
10347
10348         * stdlib/longlong.h: Update from GCC.
10349
10350         [BZ #6807]
10351         [BZ #15901]
10352         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
10353         * math/w_j0f.c (y0f): Likewise.
10354         * math/w_j0l.c (__y0l): Likewise.
10355         * math/w_j1.c (y1): Likewise.
10356         * math/w_j1f.c (y1f): Likewise.
10357         * math/w_j1l.c (__y1l): Likewise
10358         * math/w_jn.c (yn): Likewise.
10359         * math/w_jnf.c (ynf): Likewise.
10360         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
10361         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
10362         value for Bessel function domain errors outside _SVID_ mode.
10363         Adjust sign of return value for yn (negative integer, 0).
10364         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
10365         by zero in return for negative x and set sign appropriately for
10366         negative n.
10367         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
10368         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10369         * math/libm-test.inc (y0_test_data): Add more tests and adjust
10370         expectations in error cases.
10371         (y1_test_data): Likewise.
10372         (yn_test_data): Likewise.
10373         * sysdeps/i386/fpu/libm-test-ulps: Update.
10374         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10375
10376 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10377
10378         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
10379         "64" to "64-v1".  Add "64-v2".
10380         (abi-64-options): Rename to ...
10381         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
10382         (abi-64-condition): Rename to ...
10383         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
10384         (abi-64-ld-soname): Rename to ...
10385         (abi-64-v1-ld-soname): ... this.
10386         (abi-64-v2-options): Define.
10387         (abi-64-v2-condition): Likewise.
10388         (abi-64-v2-ld-soname): Likewise.
10389         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
10390         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
10391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
10392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
10393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
10394
10395 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10396             Alan Modra  <amodra@gmail.com>
10397
10398         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
10399         New versions for use with the ELFv2 ABI.
10400         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
10401         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
10402         declaration.
10403         (struct La_ppc64v2_retval): Likewise.
10404         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
10405         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
10406         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
10407         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
10408         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
10409         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
10410         Do not save or restore CR.
10411         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
10412         (_dl_profile_resolve): Do no save or restore CR.  Support extended
10413         return values for ELFv2 ABI.  Fix location of FPR return registers.
10414         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
10415         updated values for _CALL_ELF == 2.
10416         (La_regs, La_retval, int_retval): Likewise.
10417
10418 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10419
10420         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
10421         (FRAME_MIN_SIZE_PARM): Likewise.
10422         (FRAME_BACKCHAIN): Likewise.
10423         (FRAME_CR_SAVE): Likewise.
10424         (FRAME_LR_SAVE): Likewise.
10425         (FRAME_TOC_SAVE): Likewise.
10426         (FRAME_PARM_SAVE): Likewise.
10427         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
10428         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
10429         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10430         (call_mcount_parm_offset): New macro.
10431         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
10432         (PROF): Use symbolic stack frame offsets.
10433         (TAIL_CALL_SYSCALL_ERROR): Likewise.
10434         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
10435         Redefine in terms of FRAME_MIN_SIZE.
10436         (_dl_runtime_resolve): Use symbolic stack frame offsets.
10437         (_dl_profile_resolve): Likewise.  Update comment.
10438         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
10439         symbols stack frame offsets.
10440         (__sigsetjmp): Likewise.
10441         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10442         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
10443         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
10444         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
10445
10446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
10447         (FRAME_BACKCHAIN): Remove.
10448         (FRAME_CR_SAVE): Likewise.
10449         (FRAME_LR_SAVE): Likewise.
10450         (FRAME_COMPILER_DW): Likewise.
10451         (FRAME_LINKER_DW): Likewise.
10452         (FRAME_TOC_SAVE): Likewise.
10453         (FRAME_PARM_SAVE): Likewise.
10454         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
10455         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
10456         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
10458         (CHECK_SP): Use symbolic stack frame offsets.
10459         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
10460         zone" instead of caller's parameter save area for temp storage.
10461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10462         Likewise.  Also, use symbolic stack frame offsets.
10463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
10464         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
10465         our own stack frame instead of the caller's.
10466         (__socket): Use symbolic stack frame offsets.
10467
10468 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10469             Alan Modra  <amodra@gmail.com>
10470
10471         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
10472         Define.
10473         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
10474         (PPC64_LOCAL_ENTRY_OFFSET): Define.
10475         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
10476         New function.
10477         (elf_machine_fixup_plt): Call it.
10478         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
10479         reloc arguments.
10480         (elf_machine_rela): Update call to elf_machine_plt_conflict.
10481         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10482         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
10483         r2 before calling target.
10484
10485 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10486             Alan Modra  <amodra@gmail.com>
10487
10488         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
10489         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
10490         versions of macros to support ELFv2 ABI.
10491         (LOCALENTRY): New macro.
10492         (ENTRY, EALIGN): Use it.
10493         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
10494         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
10495         fall through into ENTRY entry point.
10496         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
10497         Only define if _CALL_ELF != 2.
10498
10499         (elf_machine_matches_host): Verify ABI version matches.
10500         (RTLD_START): Use LOCALENTRY.
10501         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
10502         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
10503         (PLT_ENTRY_WORDS): New macro.
10504         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
10505         (elf_machine_runtime_setup): Support ELFv2 ABI.
10506         (elf_machine_fixup_plt): Likewise.
10507         (elf_machine_plt_conflict): Likewise.
10508         (resolve_ifunc): Likewise.
10509         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
10510         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
10511         Likewise.
10512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10513         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
10514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10515         (makecontext): Support ELFv2 ABI.
10516         * elf/elf.h (EF_PPC64_ABI): Define.
10517
10518 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10519
10520         * sysdeps/powerpc/powerpc64/sysdep.h
10521         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
10522         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
10523         (ENTRY) [ASSEMBLER]: ... but instead here ...
10524         (EALIGN) [ASSEMBLER]: ... and here.
10525         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
10526         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
10527         (ENTRY_2) [!ASSEMBLER]: Use it.
10528         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
10529         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
10530         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10531         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
10532         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
10533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
10534         Use PPC64_LOAD_FUNCPTR.
10535
10536         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
10537
10538 2013-12-04  Alan Modra  <amodra@gmail.com>
10539
10540         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
10541         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
10542         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
10543         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
10544
10545         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
10546         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
10547         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
10548         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
10549         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
10550         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
10551
10552 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10553
10554         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10555         (__makecontext): Fix incorrect CFI when backtracing out of
10556         context created via makecontext.
10557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
10558         (__setcontext): Fix incorrect CFI during switch to new context.
10559         (__novec_setcontext): Likewise.
10560
10561 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10562
10563         [BZ #4772]
10564         * time/strptime_l.c (__strptime_internal): Allow modifiers
10565         in strptime.
10566         * time/tst-strptime.c (day_tests): Add testcase.
10567
10568 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10569
10570         * scripts/bench.pl: Skip over blank lines.
10571
10572 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
10573
10574         [BZ #926]
10575         * manual/time.texi (Calendar Time): Clarify what timezone functions
10576         use.
10577
10578 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10579
10580         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10581
10582 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10583
10584         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
10585         implementation.
10586         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
10587         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
10588         * debug/memset_chk.c (__memset_chk): Likewise.
10589         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
10590         * debug/strncpy_chk.c: Likewise.
10591
10592 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10593
10594         [BZ #15268]
10595         [BZ #15425]
10596         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
10597         (__ieee754_exp): For possibly underflowing results, check size of
10598         result and force underflow exception if required.
10599         * math/auto-libm-test-in: Add more tests of exp.
10600         * math/auto-libm-test-out: Regenerated.
10601         * sysdeps/i386/fpu/libm-test-ulps: Update.
10602         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10603
10604         [BZ #16283]
10605         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
10606         * math/w_exp2f.c (__exp2f): Likewise.
10607         * math/w_exp2l.c (__exp2l): Likewise.
10608         * math/auto-libm-test-in: Do not allow missing errno on exp2
10609         underflow.
10610         * math/auto-libm-test-out: Regenerated.
10611
10612 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
10613
10614         [BZ #16274]
10615         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
10616         handle filename validation.
10617         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
10618         (do_open): Delete.
10619
10620 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10621
10622         [BZ #6786]
10623         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
10624         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
10625         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
10626         <float.h>.
10627         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
10628         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
10629         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10630         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
10631         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10632         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
10633         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10634         * math/auto-libm-test-in: Don't allow missing errno from erfc.
10635         Add more erfc tests.
10636         * math/auto-libm-test-out: Regenerated.
10637         * sysdeps/i386/fpu/libm-test-ulps: Update.
10638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10639
10640         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
10641         exp2, expm1, j0 and j1.
10642         * math/auto-libm-test-out: Regenerated.
10643         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
10644         (erfc_test_data): Likewise.
10645         (exp_test_data): Likewise.
10646         (exp_tonearest_test_data): Likewise.
10647         (exp_towardzero_test_data): Likewise.
10648         (exp_downward_test_data): Likewise.
10649         (exp_upward_test_data): Likewise.
10650         (exp10_test_data): Likewise.
10651         (exp2_test_data): Likewise.
10652         (expm1_test_data): Likewise.
10653         (j0_test_data): Likewise.
10654         (j1_test_data): Likewise.
10655         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
10656         (input_flag_type): Add flag_xfail_rounding.
10657         (input_flags): Add xfail-rounding.
10658         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
10659         (output_for_one_input_case): Handle flag_xfail_rounding.
10660         * sysdeps/i386/fpu/libm-test-ulps: Update.
10661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10662
10663 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
10664
10665         [BZ #16289]
10666         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
10667         division by 0.
10668
10669 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10670
10671         [BZ #16195]
10672         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
10673         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
10674         (STAP_PROBE0): New macro.
10675         (STAP_PROBE1): Likewise.
10676         (STAP_PROBE2): Likewise.
10677         (STAP_PROBE3): Likewise.
10678         (STAP_PROBE4): Likewise.
10679
10680 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
10681
10682         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
10683
10684 2013-12-02  Steve Ellcey  <sellcey@mips.com>
10685
10686         * benchtests/Makefile (bench): Add sqrt.
10687         (LDLIBS-bench-sqrt): New.
10688         * benchtests/sqrt-input: New.
10689
10690 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
10691
10692         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
10693         (GAIH_EAI): Likewise.
10694         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
10695         (gaih_inet): Likewise.
10696         (getaddrinfo): Don't use GAIH_EAI.
10697
10698         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
10699         (struct gaih): Remove definition.
10700
10701 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10702
10703         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
10704         Use HERRNOP directly.
10705
10706 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10707
10708         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10709
10710 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
10711
10712         * math/gen-auto-libm-tests.c (test_functions): Add more
10713         single-argument functions.
10714         (special_fill_pi_2): New function.
10715         (special_fill_minus_pi_2): Likewise.
10716         (special_fill_pi_6): Likewise.
10717         (special_fill_minus_pi_6): Likewise.
10718         (special_fill_pi_3): Likewise.
10719         (special_fill_2pi_3): Likewise.
10720         (special_fill_e): Likewise.
10721         (special_fill_1_e): Likewise.
10722         (special_fill_e_minus_1): Likewise.
10723         (special_real_inputs): Add more special inputs.
10724         (output_for_one_input_case): Do not require ERANGE on underflow to
10725         zero if round-to-nearest result does not underflow to zero, unless
10726         exact results required.
10727         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
10728         atan, atanh, cbrt, cos and cosh.
10729         * math/auto-libm-test-out: Regenerated.
10730         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
10731         (acos_tonearest_test_data): Likewise.
10732         (acos_towardzero_test_data): Likewise.
10733         (acos_downward_test_data): Likewise.
10734         (acos_upward_test_data): Likewise.
10735         (acosh_test_data): Likewise.
10736         (asin_test_data): Likewise.
10737         (asin_tonearest_test_data): Likewise.
10738         (asin_towardzero_test_data): Likewise.
10739         (asin_upward_test_data): Likewise.
10740         (asinh_test_data): Likewise.
10741         (atan_test_data): Likewise.
10742         (atanh_test_data): Likewise.
10743         (cbrt_test_data): Likewise.
10744         (cos_test_data): Likewise.
10745         (cos_tonearest_test_data): Likewise.
10746         (cos_towardzero_test_data): Likewise.
10747         (cos_downward_test_data): Likewise.
10748         (cos_upward_test_data): Likewise.
10749         (cosh_test_data): Likewise.
10750         (cosh_tonearest_test_data): Likewise.
10751         (cosh_towardzero_test_data): Likewise.
10752         (cosh_downward_test_data): Likewise.
10753         (cosh_upward_test_data): Likewise.
10754         * sysdeps/i386/fpu/libm-test-ulps: Update.
10755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10756
10757 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
10758
10759         [BZ #6787]
10760         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
10761         * math/w_exp10f.c (__exp10f): Likewise.
10762         * math/w_exp10l.c (__exp10l): Likewise.
10763         * math/libm-test.inc (exp10_test_data): Add more tests and expect
10764         errno settings in existing tests.
10765
10766         [BZ #14032]
10767         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
10768         precision control set to double precision.
10769         * sysdeps/i386/fpu/w_sqrt.c: New file.
10770         * math/auto-libm-test-in: Add more tests.
10771         * math/auto-libm-test-out: Update.
10772
10773         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
10774         (sqrt_test_tonearest): New function.
10775         (sqrt_towardzero_test_data): New variable.
10776         (sqrt_test_towardzero): New function.
10777         (sqrt_downward_test_data): New variable.
10778         (sqrt_test_downward): New function.
10779         (sqrt_upward_test_data): New variable.
10780         (sqrt_test_upward): New function.
10781         (main): Call the new functions.
10782
10783         * math/gen-auto-libm-tests.c: New file.
10784         * math/auto-libm-test-in: Likewise.
10785         * math/auto-libm-test-out: New generated file.
10786         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
10787         variables.
10788         (%beautify): Add generated representations of zero.
10789         (top level): Set $auto_input and call parse_auto_input.
10790         (beautify): Remove trailing "f" from hex float constants.
10791         (parse_args): Handle XFAIL_TEST.
10792         (convert_condition): New function.
10793         (or_value): Likewise.
10794         (or_cond_value): Likewise.
10795         (generate_testfile): Handle AUTO_TESTS_* lines.
10796         (parse_auto_input): New function.
10797         * math/libm-test.inc (XFAIL_TEST): New macro.
10798         (ERRNO_UNCHANGED): Update value.
10799         (ERRNO_EDOM): Likewise.
10800         (ERRNO_ERANGE): Likewise.
10801         (IGNORE_RESULT): Likewise.
10802         (TEST_COND_flt_32): New macro.
10803         (TEST_COND_dbl_64): Likewise.
10804         (TEST_COND_ldbl_96_intel): Likewise.
10805         (TEST_COND_ldbl_96_m68k): Likewise.
10806         (TEST_COND_ldbl_128): Likewise.
10807         (TEST_COND_ldbl_128ibm): Likewise.
10808         (TEST_COND_long32): Likewise.
10809         (TEST_COND_long64): Likewise.
10810         (TEST_COND_before_rounding): Likewise.
10811         (TEST_COND_after_rounding): Likewise.
10812         (enable_test): Handle XFAIL_TEST flag.
10813         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
10814         with finite results.
10815         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
10816         auto-libm-test-out.
10817
10818 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10819             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10820
10821         [BZ #16214]
10822         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
10823         __tls_get_addr_internal instead of __tls_get_offset in order to
10824         avoid GOT pointer dependency.  Make rtld export
10825         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
10826         __tls_get_addr since we are a __tls_get_offset platform.
10827         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
10828         GOT pointer being set up before.
10829         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
10830
10831 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
10832
10833         * manual/math.texi (Errors in Math Functions): Document accuracy
10834         goals.
10835
10836         [BZ #15004]
10837         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
10838         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
10839         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10840         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10841         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10842         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10843         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10844         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10845         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10846         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10847         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10848         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10849         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10850         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10851         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10852         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10853
10854         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
10855         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
10856         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
10857         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
10858         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
10859         Likewise.
10860         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
10861         Likewise.
10862         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
10863         Likewise.
10864         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
10865         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10866         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
10867         atomic-feupdateenv and flt-rounds.
10868         * sysdeps/powerpc/nofpu/Versions (libc): Add
10869         __atomic_feholdexcept, __atomic_feclearexcept,
10870         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
10871         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
10872         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
10873         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
10874         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
10875         here.
10876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
10877         Update.
10878
10879         * manual/arith.texi (FP Exceptions): Document that exceptions may
10880         not be raised when matherr is used.
10881         (Math Error Reporting): Document overflow in directed rounding
10882         modes.  Document that errno may not be set when finite values are
10883         returned on overflow.  Document intent to set errno on underflow
10884         only for underflow to zero.
10885
10886         [BZ #16271]
10887         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
10888         round-to-nearest then adjust result for other rounding modes.
10889         * include/fenv.h (fegetround): Use libm_hidden_proto.
10890         * math/fegetround.c (fegetround): Use libm_hidden_def.
10891         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
10892         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
10893         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
10894         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
10895         Likewise.
10896         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
10897         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
10898         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
10899         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
10900
10901 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10902
10903         [BZ #16077]
10904         * nss/Versions (libnss_files): Add
10905         _nss_files_gethostbyname3_r.
10906         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
10907         New function.
10908         (HOST_DB_LOOKUP): Remove macro.
10909         (_nss_files_gethostbyname_r): Implement function without the
10910         HOST_DB_LOOKUP macro.
10911         (_nss_files_gethostbyname2_r): Likewise.
10912
10913 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
10914
10915         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
10916
10917 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
10918
10919         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
10920         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
10921         warning.
10922
10923 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10924
10925         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
10926         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
10927         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
10928         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
10929         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
10930         __fe_nomask_env_priv and attribute_hidden.
10931         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
10932         (libc_feupdateenv_test_ppc): Likewise.
10933         (libc_feresetround_ppc): Likewise.
10934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
10935         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
10936         compat_symbol macro.
10937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
10938         (__fe_nomask_env): Likewise.
10939         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
10940
10941 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
10942
10943         * string/Makefile: Remove ifunc tests.
10944         * string/test-string.h: Define TEST_IFUNC.
10945         * string/test-bcopy-ifunc.c: Remove.
10946         * string/test-bzero-ifunc.c: Likewise.
10947         * string/test-memccpy-ifunc.c: Likewise.
10948         * string/test-memchr-ifunc.c: Likewise.
10949         * string/test-memcmp-ifunc.c: Likewise.
10950         * string/test-memcpy-ifunc.c: Likewise.
10951         * string/test-memmem-ifunc.c: Likewise.
10952         * string/test-memmove-ifunc.c: Likewise.
10953         * string/test-mempcpy-ifunc.c: Likewise.
10954         * string/test-memrchr-ifunc.c: Likewise.
10955         * string/test-memset-ifunc.c: Likewise.
10956         * string/test-rawmemchr-ifunc.c: Likewise.
10957         * string/test-stpcpy-ifunc.c: Likewise.
10958         * string/test-stpncpy-ifunc.c: Likewise.
10959         * string/test-strcasecmp-ifunc.c: Likewise.
10960         * string/test-strcasestr-ifunc.c: Likewise.
10961         * string/test-strcat-ifunc.c: Likewise.
10962         * string/test-strchr-ifunc.c: Likewise.
10963         * string/test-strchrnul-ifunc.c: Likewise.
10964         * string/test-strcmp-ifunc.c: Likewise.
10965         * string/test-strcpy-ifunc.c: Likewise.
10966         * string/test-strcspn-ifunc.c: Likewise.
10967         * string/test-strlen-ifunc.c: Likewise.
10968         * string/test-strncasecmp-ifunc.c: Likewise.
10969         * string/test-strncat-ifunc.c: Likewise.
10970         * string/test-strncmp-ifunc.c: Likewise.
10971         * string/test-strncpy-ifunc.c: Likewise.
10972         * string/test-strnlen-ifunc.c: Likewise.
10973         * string/test-strpbrk-ifunc.c: Likewise.
10974         * string/test-strrchr-ifunc.c: Likewise.
10975         * string/test-strspn-ifunc.c: Likewise.
10976         * string/test-strstr-ifunc.c: Likewise.
10977
10978 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
10979
10980         * benchtests/Makefile: Remove ifunc tests.
10981         * benchtests/bench-string.h: Define TEST_IFUNC.
10982         * benchtests/bench-bcopy-ifunc.c: Remove.
10983         * benchtests/bench-bzero-ifunc.c: Likewise.
10984         * benchtests/bench-memccpy-ifunc.c: Likewise.
10985         * benchtests/bench-memchr-ifunc.c: Likewise.
10986         * benchtests/bench-memcmp-ifunc.c: Likewise.
10987         * benchtests/bench-memcpy-ifunc.c: Likewise.
10988         * benchtests/bench-memmem-ifunc.c: Likewise.
10989         * benchtests/bench-memmove-ifunc.c: Likewise.
10990         * benchtests/bench-mempcpy-ifunc.c: Likewise.
10991         * benchtests/bench-memrchr-ifunc.c: Likewise.
10992         * benchtests/bench-memset-ifunc.c: Likewise.
10993         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
10994         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
10995         * benchtests/bench-stpcpy-ifunc.c: Likewise.
10996         * benchtests/bench-stpncpy-ifunc.c: Likewise.
10997         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
10998         * benchtests/bench-strcasestr-ifunc.c: Likewise.
10999         * benchtests/bench-strcat-ifunc.c: Likewise.
11000         * benchtests/bench-strchr-ifunc.c: Likewise.
11001         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11002         * benchtests/bench-strcmp-ifunc.c: Likewise.
11003         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11004         * benchtests/bench-strcpy-ifunc.c: Likewise.
11005         * benchtests/bench-strcspn-ifunc.c: Likewise.
11006         * benchtests/bench-strlen-ifunc.c: Likewise.
11007         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11008         * benchtests/bench-strncat-ifunc.c: Likewise.
11009         * benchtests/bench-strncmp-ifunc.c: Likewise.
11010         * benchtests/bench-strncpy-ifunc.c: Likewise.
11011         * benchtests/bench-strnlen-ifunc.c: Likewise.
11012         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11013         * benchtests/bench-strrchr-ifunc.c: Likewise.
11014         * benchtests/bench-strsep-ifunc.c: Likewise.
11015         * benchtests/bench-strspn-ifunc.c: Likewise.
11016         * benchtests/bench-strstr-ifunc.c: Likewise.
11017
11018 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11019
11020         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11021
11022 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11023
11024         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11025         * rt/aio.h: Likewise.
11026         * sysdeps/gnu/bits/utmp.h: Likewise.
11027         * sysdeps/gnu/bits/utmpx.h: Likewise.
11028         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11029         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11030         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11031         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11032         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11033         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11034         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11035         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11036         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11037         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11038         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11039         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11040         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11042         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11043         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11044         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11045         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11046         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11047         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11048         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11049         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11050         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11051         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11052         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11053         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11054         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11055         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11056         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11057         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11058         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11059         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11060         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11061         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11062         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11063         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11064         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11065         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11066         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11067         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11068         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11069         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11070
11071 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11072
11073         [BZ #16245]
11074         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11075         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11076
11077 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11078
11079         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11080         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11081         Likewise.
11082
11083 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11084
11085         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11086         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11087         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11088         (__fesetround): Remove define.
11089         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11090         rounding and exceptions handling.
11091         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11092         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11093         (__fe_nomask_env): Likewise.
11094         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11095         __fegetround instead of fegetround.
11096         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11097         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11098
11099 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11100
11101         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11102         it's there.
11103
11104         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11105
11106 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11107
11108         [BZ #11157]
11109         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11110         (encrypt_r): Likewise.
11111         * malloc/obstack.h (obstack_free): Likewise.
11112         * posix/unistd.h (encrypt): Likewise.
11113
11114 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11115
11116         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11117         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11118         DL_CALL_DT_FINI() that call the functions directly.
11119         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11120         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11121         * elf/dl-fini.c: Likewise.
11122
11123 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11124
11125         * malloc/hooks.c (memalign_check): Add alignment rounding.
11126         * malloc/malloc.c (_mid_memalign): New function.
11127         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11128         Implement by calling _mid_memalign.
11129         * manual/probes.texi (Memory Allocation Probes): Remove
11130         memory_valloc_retry and memory_pvalloc_retry.
11131
11132 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11133
11134         * locale/programs/locarchive.c (open_archive): Add const
11135         qualifier to ARCHIVEFNAME and copy default fname to
11136         DEFAULT_FNAME.
11137
11138         [BZ #15601]
11139         * libio/tst-widetext.input: Rename Oriya to Odia.
11140         * locale/iso-639.def: Likewise.
11141
11142         * manual/probes.texi (Mathematical Function Probes): Add
11143         documentation for sin, cos, asin and acos probes.
11144         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11145         (__sin32): Add slowasin probe.
11146         (__cos32): Add slowacos probe.
11147         (__mpsin): Add slowsin probe.
11148         (__mpcos): Add slowcos probe.
11149
11150 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11151
11152         [BZ #15483]
11153         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11154         thread-local __sim_exceptions_thread and global
11155         __sim_exceptions_global.
11156         (__sim_disabled_exceptions): Change to thread-local
11157         __sim_disabled_exceptions_thread and global
11158         __sim_disabled_exceptions_global.
11159         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11160         and global __sim_round_mode_global.
11161         (__simulate_exceptions): Use thread-local floating-point state and
11162         set global state from it as needed.
11163         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11164         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11165         __sim_round_mode_thread.
11166         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11167         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11168         and global __sim_exceptions_global.
11169         (__sim_disabled_exceptions): Change to thread-local
11170         __sim_disabled_exceptions_thread and global
11171         __sim_disabled_exceptions_global.
11172         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11173         and global __sim_round_mode_global.
11174         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11175         (SIM_SET_GLOBAL): Likewise.
11176         * sysdeps/powerpc/soft-fp/sfp-machine.h
11177         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11178         __sim_round_mode_thread.
11179         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11180         __sim_disabled_exceptions_thread.
11181         (__sim_exceptions): Change to __sim_exceptions_thread.
11182         (__sim_disabled_exceptions): Change to
11183         __sim_disabled_exceptions_thread.
11184         (__sim_round_mode): Change to __sim_round_mode_thread.
11185         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11186         thread-local floating-point state and set global state from it as
11187         needed.
11188         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11189         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11190         (__sim_disabled_exceptions): Remove extern declaration.
11191         (feenableexcept): Use thread-local floating-point state and set
11192         global state from it as needed.
11193         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11194         extern declaration.
11195         (__sim_disabled_exceptions): Likewise.
11196         (__sim_round_mode): Likewise.
11197         (__fegetenv): Use thread-local floating-point state.
11198         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11199         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11200         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11201         floating-point state and set global state from it as needed.
11202         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11203         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11204         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11205         Likewise.
11206         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11207         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11208         Likewise.
11209         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11210         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11211         Use __sim_round_mode_thread.
11212         * math/test-fenv-tls.c: New file.
11213         * math/Makefile (tests): Add test-fenv-tls.
11214         ($(objpfx)test-fenv-tls): Depend on
11215         $(common-objpfx)nptl/libpthread.so.
11216
11217 2013-11-19  Andreas Schwab  <schwab@suse.de>
11218
11219         * locale/programs/locale.c (show_info): Decode wordarray elements.
11220         * locale/categories.def (LC_MONETARY): Add element for
11221         _NL_MONETARY_CRNCYSTR.
11222         * locale/C-monetary.c (conversion_rate): New variable.
11223         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11224         element.
11225
11226 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
11227
11228         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
11229         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
11230
11231 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11232
11233         * elf/Makefile (tst-auxv): New test.
11234         * elf/tst-auxv.c: New
11235         * elf/rtld.c (dl_main): Adjust AT_EXECFN
11236
11237 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
11238
11239         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
11240         (hidden_proto): Caller changed.
11241         (hidden_tls_proto): New macro.
11242         (libc_hidden_tls_proto): Likewise.
11243         (rtld_hidden_tls_proto): Likewise.
11244         (libm_hidden_tls_proto): Likewise.
11245         (libresolv_hidden_tls_proto): Likewise.
11246         (librt_hidden_tls_proto): Likewise.
11247         (libdl_hidden_tls_proto): Likewise.
11248         (libnss_files_hidden_tls_proto): Likewise.
11249         (libnsl_hidden_tls_proto): Likewise.
11250         (libnss_nisplus_hidden_tls_proto): Likewise.
11251         (libutil_hidden_tls_proto): Likewise.
11252
11253 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
11254
11255         [BZ #10253]
11256         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
11257         (decompose_rpath): Defer expansion to fillin_rpath.
11258         (_dl_init_paths): Pass linkmap to fillin_rpath.
11259
11260 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11261
11262         * benchtests/Makefile: Add strsep.
11263         * benchtests/bench-strsep.c: New file: strsep benchtest.
11264         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
11265
11266 2013-11-18  Andreas Schwab  <schwab@suse.de>
11267
11268         * locale/programs/locale.c (show_info) [case byte]: Check for
11269         '\377' instead of '\177'.
11270         * locale/C-monetary.c (not_available): Always use "\377".
11271         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
11272         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
11273         detect unavailable sign_posn locale elements.
11274         * locale/localeconv.c (__localeconv): For grouping and
11275         mon_grouping handle "\177" and "\377" like no grouping.
11276         (INT_ELEM): New macro.  Use it to set all numeric members.
11277         * locale/programs/ld-monetary.c (monetary_read)
11278         <tok_mon_grouping>: Normalize single -1 to the empty string.
11279         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
11280         Likewise.
11281
11282 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11283
11284         [BZ #16055]
11285         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
11286         when we match (nil).
11287         * stdio-common/tst-sscanf.c (struct test): Add testcase.
11288
11289 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
11290
11291         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
11292         (NO_TEST_INLINE): Update value.
11293         (ERRNO_UNCHANGED): Likewise.
11294         (ERRNO_EDOM): Likewise.
11295         (ERRNO_ERANGE): Likewise.
11296         (IGNORE_RESULT): Likewise.
11297         (check_float_internal): Check signs of NaN results if
11298         TEST_NAN_SIGN used.
11299         (check_complex): Pass TEST_NAN_SIGN flag through to second
11300         check_float_internal call.
11301         (copysign_test_data): Add tests with quiet NaNs as second
11302         argument.  Use TEST_NAN_SIGN.
11303         (fabs_test_data): Add test of negative quiet NaN argument.  Use
11304         TEST_NAN_SIGN.
11305         (signbit_test_data): Add tests of quiet NaN argument.
11306         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
11307
11308         * math/gen-libm-test.pl (show_exceptions): Take extra argument
11309         $ignore_result.
11310         (parse_args): Handle function results specified as IGNORE.
11311         * math/libm-test.inc (IGNORE_RESULT): New macro.
11312         (check_float_internal): Do not check numerical result if flag
11313         IGNORE_RESULT set.
11314         (check_complex): Pass through IGNORE_RESULT to second
11315         check_float_internal call.
11316         (check_int): Do not check numerical result if flag IGNORE_RESULT
11317         set.
11318         (check_long): Likewise.
11319         (check_bool): Likewise.
11320         (check_longlong): Likewise.
11321         (lrint_test_data): Add tests of infinite and NaN arguments.
11322         (lrint_tonearest_test_data): Likewise.
11323         (lrint_towardzero_test_data): Likewise.
11324         (lrint_downward_test_data): Likewise.
11325         (lrint_upward_test_data): Likewise.
11326         (llrint_test_data): Likewise.
11327         (llrint_tonearest_test_data): Likewise.
11328         (llrint_towardzero_test_data): Likewise.
11329         (llrint_downward_test_data): Likewise.
11330         (llrint_upward_test_data): Likewise.
11331         (lround_test_data): Likewise.
11332         (llround_test_data): Likewise.
11333
11334         * math/libm-test.inc (NO_TEST_INLINE): New macro.
11335         (ERRNO_UNCHANGED): Update value.
11336         (ERRNO_EDOM): Likewise.
11337         (ERRNO_ERANGE): Likewise.
11338         (NO_TEST_INLINE_FLOAT): New macro.
11339         (NO_TEST_INLINE_DOUBLE): Likewise.
11340         (enable_test): New function.
11341         (RUN_TEST_f_f): Check enable_test before running test.
11342         (RUN_TEST_2_f): Likewise.
11343         (RUN_TEST_fff_f): Likewise.
11344         (RUN_TEST_c_f): Likewise.
11345         (RUN_TEST_f_f1): Likewise.
11346         (RUN_TEST_fF_f1): Likewise.
11347         (RUN_TEST_fI_f1): Likewise.
11348         (RUN_TEST_ffI_f1): Likewise.
11349         (RUN_TEST_c_c): Likewise.
11350         (RUN_TEST_cc_c): Likewise.
11351         (RUN_TEST_f_i): Likewise.
11352         (RUN_TEST_f_i_tg): Likewise.
11353         (RUN_TEST_ff_i_tg): Likewise.
11354         (RUN_TEST_f_b): Likewise.
11355         (RUN_TEST_f_b_tg): Likewise.
11356         (RUN_TEST_f_l): Likewise.
11357         (RUN_TEST_f_L): Likewise.
11358         (RUN_TEST_fFF_11): Likewise.
11359         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
11360         conditionals.
11361         (cosh_test_data): Likewise.
11362         (exp_test_data): Likewise.
11363         (expm1_test_data): Likewise.
11364         (hypot_test_data): Likewise.
11365         (pow_test_data): Likewise.
11366         (sinh_test_data): Likewise.
11367         (tanh_test_data): Likewise.
11368         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
11369         flags argument.
11370
11371         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
11372         tests with quiet NaN input and output.
11373         (acosh_test_data): Likewise.
11374         (asin_test_data): Likewise.
11375         (asinh_test_data): Likewise.
11376         (atan_test_data): Likewise.
11377         (atanh_test_data): Likewise.
11378         (atan2_test_data): Likewise.
11379         (cbrt_test_data): Likewise.
11380         (cos_test_data): Likewise.
11381         (cosh_test_data): Likewise.
11382         (erf_test_data): Likewise.
11383         (erfc_test_data): Likewise.
11384         (exp_test_data): Likewise.
11385         (exp10_test_data): Likewise.
11386         (exp2_test_data): Likewise.
11387         (expm1_test_data): Likewise.
11388         (hypot_test_data): Likewise.
11389         (j0_test_data): Likewise.
11390         (j1_test_data): Likewise.
11391         (jn_test_data): Likewise.
11392         (lgamma_test_data): Likewise.
11393         (log_test_data): Likewise.
11394         (log10_test_data): Likewise.
11395         (log1p_test_data): Likewise.
11396         (log2_test_data): Likewise.
11397         (pow_test_data): Likewise.
11398         (scalb_test_data): Likewise.
11399         (sin_test_data): Likewise.
11400         (sincos_test_data): Likewise.
11401         (sinh_test_data): Likewise.
11402         (tan_test_data): Likewise.
11403         (tanh_test_data): Likewise.
11404         (tgamma_test_data): Likewise.
11405         (y0_test_data): Likewise.
11406         (y1_test_data): Likewise.
11407         (yn_test_data): Likewise.
11408
11409         [BZ #16167]
11410         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
11411         argument being NaN and avoid computations with second argument in
11412         that case.
11413         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11414         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11415         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11416
11417 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
11418
11419         * locale/iso-639.def: Add Chitwani Tharu (the).
11420
11421 2013-11-14  Andreas Schwab  <schwab@suse.de>
11422
11423         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
11424         word instead of empty string.
11425
11426 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11427
11428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11429         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
11430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11431         (__fe_nomask_env): Likewise.
11432
11433 2013-11-13  Steve Ellcey  <sellcey@mips.com>
11434
11435         * benchtests/bench-timing.h: Include time.h.
11436
11437 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
11438
11439         [BZ #15997]
11440         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
11441         to 3.4.0 for x32.
11442         * sysdeps/unix/sysv/linux/configure: Regenerated.
11443
11444 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11445
11446         [BZ #16151]
11447         * stdlib/strtod_l.c (round_and_return): Do not consider
11448         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
11449         exponent one less than half the least subnormal exponent.
11450         * stdlib/test-strtod-round-data: Add more tests.
11451         * stdlib/tst-strtod-round.c (tests): Regenerated.
11452
11453 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11454
11455         [BZ #14143]
11456         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
11457         (__fe_mask_env): Likewise.
11458         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
11459         libm_hidden_proto and add function prototype.
11460         (__fe_mask_env): Add function prototype.
11461         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11462         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
11463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11464         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
11465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11466         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
11467
11468 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11469
11470         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
11471         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
11472
11473 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11474
11475         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
11476         of htab_find_slot().
11477
11478 2013-11-11  David S. Miller  <davem@davemloft.net>
11479
11480         [BZ #16150]
11481         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
11482         symbol in the non-vis3 case in static builds.
11483         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
11484         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
11485         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
11486         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
11487
11488 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11489
11490         [BZ #387]
11491         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
11492         it is empty.
11493
11494 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11495
11496         * benchtests/Makefile: Add bench-strtod.
11497         * benchtests/bench-strtod.c: New file: strtod benchtest
11498
11499 2013-11-11  Andreas Schwab  <schwab@suse.de>
11500
11501         [BZ #16153]
11502         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
11503         terminating NUL in key length.
11504
11505 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11506
11507         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11508         Add artificial ODP entry for vDSO symbol for PPC64.
11509         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
11510         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
11511
11512 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11513
11514         [BZ #15374]
11515         * nss/getent.c (services_keys): Recognize services starting with digit.
11516
11517 2013-11-06  David S. Miller  <davem@davemloft.net>
11518
11519         [BZ #15985]
11520         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
11521         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
11522
11523 2013-11-06  Will Newton  <will.newton@linaro.org>
11524
11525         * manual/memory.texi (Malloc Examples): Remove register
11526         keyword from examples.
11527
11528 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
11529
11530         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
11531
11532 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11533
11534         [BZ #6981]
11535         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
11536         depending on [__GCC_IEC_559 > 0].
11537         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
11538         depending on [__GCC_IEC_559_COMPLEX > 0].
11539
11540 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
11541
11542         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
11543         to iso-639.def.
11544
11545 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
11546
11547         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
11548
11549 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
11550
11551         [BZ #16112]
11552         * malloc/malloc (malloc_info): Do not handle first bin as
11553         special case.
11554
11555 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
11556
11557         * locale/iso-639.def: Add Central Nahuatl (nhn).
11558
11559 2013-11-01  Bruno Haible  <bruno@clisp.org>
11560
11561         [BZ #7003]
11562         * manual/math.texi (BSD Random): Specify range upper bound as
11563         in POSIX.
11564
11565 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
11566
11567         * locale/iso-639.def: Add Meadow Mari (mhr).
11568
11569 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
11570
11571         [BZ #14752], [BZ #15763]
11572         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
11573         Validate name.
11574         * rt/tst_shm.c: Add test for escaping directory.
11575
11576 2013-10-31  Andreas Schwab  <schwab@suse.de>
11577
11578         [BZ #15917]
11579         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
11580         followed by 'x' as part of digit sequence.
11581         * stdio-common/tst-sscanf.c (double_tests2): New tests.
11582
11583 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11584
11585         [BZ #16037]
11586         * configure.ac: allow GNU Make 4.0 and greater.
11587         * configure: Regenerated.
11588
11589 2013-10-30  Will Newton  <will.newton@linaro.org>
11590
11591         [BZ #16038]
11592         * malloc/hooks.c (memalign_check): Limit alignment to the
11593         maximum representable power of two.
11594         * malloc/malloc.c (__libc_memalign): Likewise.
11595         * malloc/tst-memalign.c (do_test): Add test for very
11596         large alignment values.
11597         * malloc/tst-posix_memalign.c (do_test): Likewise.
11598
11599 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11600
11601         [BZ #11087]
11602         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
11603         (munmap_chunk): Likewise.
11604         (mremap_chunk): Likewise.
11605
11606 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11607
11608         [BZ #15799]
11609         * stdlib/div.c (div): Remove obsolete code.
11610         * stdlib/ldiv.c (ldiv): Likewise.
11611         * stdlib/lldiv.c (lldiv): Likewise.
11612
11613 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11614
11615         [BZ #16071]
11616         * nss/nss_files/files-XXX.c (get_contents_ret): New
11617         enumerator.
11618         (get_contents): New function.
11619         (internal_getent): Use it.  Expand size of LINEBUFLEN.
11620
11621 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
11622
11623         * configure.in: Moved to ...
11624         * configure.ac: ... here. Change reference to configure.in
11625         to configure.ac.
11626         * sysdeps/arm/preconfigure.ac: ... here.
11627         configure.in to configure.ac.
11628         * sysdeps/gnu/configure.in: Moved to ...
11629         * sysdeps/gnu/configure.ac: ... here.
11630         * sysdeps/i386/configure.in: Moved to ...
11631         * sysdeps/i386/configure.ac: ... here.
11632         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
11633         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
11634         * sysdeps/mach/configure.in: Moved to ...
11635         * sysdeps/mach/configure.ac: ... here.
11636         * sysdeps/mach/hurd/configure.in: Moved to ...
11637         * sysdeps/mach/hurd/configure.ac: ... here.
11638         * sysdeps/powerpc/configure.in: Moved to ...
11639         * sysdeps/powerpc/configure.ac: ... here.
11640         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
11641         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
11642         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
11643         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
11644         * sysdeps/s390/s390-32/configure.in: Moved to ...
11645         * sysdeps/s390/s390-32/configure.ac: ... here.
11646         * sysdeps/s390/s390-64/configure.in: Moved to ...
11647         * sysdeps/s390/s390-64/configure.ac: ... here.
11648         * sysdeps/sh/configure.in: Moved to ...
11649         * sysdeps/sh/configure.ac: ... here.
11650         * sysdeps/sparc/configure.in: Moved to ...
11651         * sysdeps/sparc/configure.ac: ... here.
11652         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
11653         * sysdeps/unix/sysv/linux/configure.ac: ... here.
11654         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
11655         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
11656         * sysdeps/x86_64/configure.in: Moved to ...
11657         * sysdeps/x86_64/configure.ac: ... here.
11658         * sysdeps/x86_64/preconfigure.in: Moved to ...
11659         * sysdeps/x86_64/preconfigure.ac: ... here.
11660         * aclocal.m4: Change reference to configure.in to configure.ac.
11661         * config.h.in: Likewise.
11662         * manual/install.texi: Likewise.
11663         * manual/maint.texi: Likewise.
11664         * Makefile: Likewise.
11665         * malloc/Makefile: Likewise.
11666         * nscd/Makefile: Likewise.
11667         * Makeconfig: Change reference to configure.in and
11668         preconfigure.in to configure.ac and preconfigure.ac
11669         respectively.
11670         * INSTALL: Regenerated.
11671         * configure: Likewise.
11672         * sysdeps/gnu/configure: Likewise.
11673         * sysdeps/i386/configure: Likewise.
11674         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
11675         * sysdeps/mach/configure: Likewise.
11676         * sysdeps/mach/hurd/configure: Likewise.
11677         * sysdeps/powerpc/configure: Likewise.
11678         * sysdeps/powerpc/powerpc32/configure: Likewise.
11679         * sysdeps/powerpc/powerpc64/configure: Likewise.
11680         * sysdeps/s390/s390-32/configure: Likewise.
11681         * sysdeps/s390/s390-64/configure: Likewise.
11682         * sysdeps/sh/configure: Likewise.
11683         * sysdeps/sparc/configure: Likewise.
11684         * sysdeps/unix/sysv/linux/configure: Likewise.
11685         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
11686         * sysdeps/x86_64/configure: Likewise.
11687         * sysdeps/x86_64/preconfigure: Likewise.
11688
11689 2013-10-29  Andreas Schwab  <schwab@suse.de>
11690
11691         * stdio-common/Makefile (tst-swscanf-ENV): Define.
11692
11693 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11694
11695         * benchtests/pow-inputs: Add new inputs.
11696
11697         * benchtests/exp-inputs: Add new inputs.
11698
11699         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
11700         conditional check for return value.
11701         (__cos32): Likewise.
11702
11703 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11704
11705         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
11706         to provide a boost for large inputs with word alignment.
11707         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
11708         implementation based on optimized PPC64 strcpy.
11709         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
11710         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
11711         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
11712         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
11713
11714 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11715
11716         [BZ #2801]
11717         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
11718
11719 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11720
11721         [BZ #14876]
11722         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
11723         * time/tst-strptime.c (day_tests): Add testcase.
11724
11725 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11726
11727         [BZ #14029]
11728         * manual/pattern.texi: Acknowledge that fnmatch can fail.
11729
11730 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
11731
11732         [BZ #16074]
11733         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
11734         MAP_FAILED on error.
11735
11736 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11737
11738         [BZ #16072]
11739         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
11740         heap for large requests.
11741
11742 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
11743
11744         [BZ #9954]
11745         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
11746         result if the result has no associated interface.
11747         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
11748         interface for all 127.X.Y.Z addresses.
11749
11750 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
11751
11752         * locale/iso-639.def: Add Ligurian (lij)
11753
11754 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
11755
11756         [BZ #15825]
11757         * sunrpc/rpc_main.c: Document rpcgen -5.
11758
11759 2013-10-19  Michael Stahl  <mstahl@redhat.com>
11760
11761         * elf/rtld.c (do_preload): Print the reason why preloading failed.
11762
11763 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
11764
11765         [BZ #10278]
11766         * posix/glob.c: Match only directories when trailing slash is present.
11767         * posix/tst-gnuglob.c (my_opendir): Do not open files.
11768         (main): Add testcase.
11769
11770 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
11771
11772         [BZ #15670]
11773         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
11774
11775 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
11776
11777         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
11778         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
11779         AUTH_DES and cindex for FIPS 140-2.
11780         (DES Encryption): Add cindex FIPS 46-3.
11781
11782         * locale/locarchive.h (struct locarhandle): Add fname.
11783         * locale/programs/localedef.c (main): Pass ARGV[remaining]
11784         if an optional argument was specified to --list-archive,
11785         otherwise NULL.
11786         * locale/programs/locarchive.c (show_archive_content): Take new
11787         argument fname and pass it via ah.fname to open_archive.
11788         * locale/programs/localedef.h: Update decl.
11789         (open_archive): If AH->fname is non-null, open that file
11790         rather than the default file name, and don't ignore ENOENT.
11791         (create_archive): Set AH.fname to NULL.
11792         (delete_locales_from_archive): Likewise.
11793         (add_locales_to_archive): Likewise.
11794         * locale/programs/locfile.c (write_all_categories): Likewise.
11795
11796 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
11797             Aldy Hernandez  <aldyh@redhat.com>
11798
11799         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
11800         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
11801         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
11802         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
11803         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
11804         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
11805         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
11806         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
11807         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
11808         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
11809         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
11810         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
11811         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
11812         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
11813         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
11814         Likewise.
11815         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
11816         Likewise.
11817         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
11818         Likewise.
11819         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
11820         Likewise.
11821         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
11822         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
11823         Likewise.
11824         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
11825         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
11826         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
11827         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
11828         Likewise.
11829         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
11830         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
11831         * sysdeps/powerpc/preconfigure: Likewise.
11832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11833         Likewise.
11834         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
11835         Replace contents of file by #include of <fenv_libc.h>.
11836         * sysdeps/powerpc/soft-fp/sfp-machine.h
11837         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
11838         and <sys/prctl.h>.
11839         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
11840         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
11841         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
11842         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
11843         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
11844         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
11845         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
11846         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
11847         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
11848         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
11849         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
11850         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
11851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
11852         Allow copysignl PLT reference to be missing.
11853
11854 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
11855             Joseph Myers  <joseph@codesourcery.com
11856
11857         [BZ #15948]
11858         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
11859         single character.
11860         (add_to_tablewc): Assert sequence of wide characters is nonempty.
11861
11862 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11863
11864         * elf/tst-tls-dlinfo.c: Don't include tls.h.
11865         * elf/tst-tls1.c: Likewise.
11866         * elf/tst-tls10.h: Likewise.
11867         * elf/tst-tls14.c: Likewise.
11868         * elf/tst-tls2.c: Likewise.
11869         * elf/tst-tls3.c: Likewise.
11870         * elf/tst-tls4.c: Likewise.
11871         * elf/tst-tls5.c: Likewise.
11872         * elf/tst-tls6.c: Likewise.
11873         * elf/tst-tls7.c: Likewise.
11874         * elf/tst-tls8.c: Likewise.
11875         * elf/tst-tls9.c: Likewise.
11876         * elf/tst-tlsmod1.c: Likewise.
11877         * elf/tst-tlsmod13.c: Likewise.
11878         * elf/tst-tlsmod13a.c: Likewise.
11879         * elf/tst-tlsmod14a.c: Likewise.
11880         * elf/tst-tlsmod16a.c: Likewise.
11881         * elf/tst-tlsmod16b.c: Likewise.
11882         * elf/tst-tlsmod2.c: Likewise.
11883         * elf/tst-tlsmod3.c: Likewise.
11884         * elf/tst-tlsmod4.c: Likewise.
11885         * elf/tst-tlsmod5.c: Likewise.
11886         * elf/tst-tlsmod6.c: Likewise.
11887
11888 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
11889
11890         [BZ #12486]
11891         * malloc/malloc.c: remove checks for statistics.
11892
11893 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
11894
11895         [BZ #15277]
11896         * inet/inet_net.c (inet_network): Detect additional invalid strings.
11897         * inet/tst-network.c: Add testcase.
11898
11899 2013-10-17  Andreas Schwab  <schwab@suse.de>
11900
11901         [BZ #15218]
11902         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
11903         to determine canonical name.
11904
11905 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
11906
11907         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
11908         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
11909         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11910         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11911         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11912         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11913         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11914         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11915         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11916         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11917         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
11918         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11919         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11920         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11921         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11922         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11923         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11924         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11925         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11926         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11927         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11928         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11929         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11930         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
11931         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
11932         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11933         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11934         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
11935         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11936         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
11937         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11938         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11939         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11940         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11941         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11942         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11943         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11944         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11945         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11946         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11947         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11948         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11949         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11950         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11951         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11952         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11953         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11954         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11955         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11956         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11957         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11958         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11959         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11960         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11961         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11962         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11963         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11964         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11965
11966 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
11967
11968         [BZ #16041]
11969         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
11970         make result into a quiet NaN.
11971
11972 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
11973
11974         * soft-fp/adddf3.c: Fix horizontal whitespace.
11975         * soft-fp/addsf3.c: Likewise.
11976         * soft-fp/addtf3.c: Likewise.
11977         * soft-fp/divdf3.c: Likewise.
11978         * soft-fp/divsf3.c: Likewise.
11979         * soft-fp/divtf3.c: Likewise.
11980         * soft-fp/double.h: Likewise.
11981         * soft-fp/eqdf2.c: Likewise.
11982         * soft-fp/eqsf2.c: Likewise.
11983         * soft-fp/eqtf2.c: Likewise.
11984         * soft-fp/extenddftf2.c: Likewise.
11985         * soft-fp/extended.h: Likewise.
11986         * soft-fp/extendsfdf2.c: Likewise.
11987         * soft-fp/extendsftf2.c: Likewise.
11988         * soft-fp/extendxftf2.c: Likewise.
11989         * soft-fp/fixdfdi.c: Likewise.
11990         * soft-fp/fixdfsi.c: Likewise.
11991         * soft-fp/fixdfti.c: Likewise.
11992         * soft-fp/fixsfdi.c: Likewise.
11993         * soft-fp/fixsfsi.c: Likewise.
11994         * soft-fp/fixsfti.c: Likewise.
11995         * soft-fp/fixtfdi.c: Likewise.
11996         * soft-fp/fixtfsi.c: Likewise.
11997         * soft-fp/fixtfti.c: Likewise.
11998         * soft-fp/fixunsdfdi.c: Likewise.
11999         * soft-fp/fixunsdfsi.c: Likewise.
12000         * soft-fp/fixunsdfti.c: Likewise.
12001         * soft-fp/fixunssfdi.c: Likewise.
12002         * soft-fp/fixunssfsi.c: Likewise.
12003         * soft-fp/fixunssfti.c: Likewise.
12004         * soft-fp/fixunstfdi.c: Likewise.
12005         * soft-fp/fixunstfsi.c: Likewise.
12006         * soft-fp/fixunstfti.c: Likewise.
12007         * soft-fp/floatdidf.c: Likewise.
12008         * soft-fp/floatdisf.c: Likewise.
12009         * soft-fp/floatditf.c: Likewise.
12010         * soft-fp/floatsidf.c: Likewise.
12011         * soft-fp/floatsisf.c: Likewise.
12012         * soft-fp/floatsitf.c: Likewise.
12013         * soft-fp/floattidf.c: Likewise.
12014         * soft-fp/floattisf.c: Likewise.
12015         * soft-fp/floattitf.c: Likewise.
12016         * soft-fp/floatundidf.c: Likewise.
12017         * soft-fp/floatundisf.c: Likewise.
12018         * soft-fp/floatunditf.c: Likewise.
12019         * soft-fp/floatunsidf.c: Likewise.
12020         * soft-fp/floatunsisf.c: Likewise.
12021         * soft-fp/floatunsitf.c: Likewise.
12022         * soft-fp/floatuntidf.c: Likewise.
12023         * soft-fp/floatuntisf.c: Likewise.
12024         * soft-fp/floatuntitf.c: Likewise.
12025         * soft-fp/fmadf4.c: Likewise.
12026         * soft-fp/fmasf4.c: Likewise.
12027         * soft-fp/fmatf4.c: Likewise.
12028         * soft-fp/gedf2.c: Likewise.
12029         * soft-fp/gesf2.c: Likewise.
12030         * soft-fp/getf2.c: Likewise.
12031         * soft-fp/ledf2.c: Likewise.
12032         * soft-fp/lesf2.c: Likewise.
12033         * soft-fp/letf2.c: Likewise.
12034         * soft-fp/muldf3.c: Likewise.
12035         * soft-fp/mulsf3.c: Likewise.
12036         * soft-fp/multf3.c: Likewise.
12037         * soft-fp/negdf2.c: Likewise.
12038         * soft-fp/negsf2.c: Likewise.
12039         * soft-fp/negtf2.c: Likewise.
12040         * soft-fp/op-1.h: Likewise.
12041         * soft-fp/op-2.h: Likewise.
12042         * soft-fp/op-4.h: Likewise.
12043         * soft-fp/op-8.h: Likewise.
12044         * soft-fp/op-common.h: Likewise.
12045         * soft-fp/quad.h: Likewise.
12046         * soft-fp/single.h: Likewise.
12047         * soft-fp/soft-fp.h: Likewise.
12048         * soft-fp/sqrtdf2.c: Likewise.
12049         * soft-fp/sqrtsf2.c: Likewise.
12050         * soft-fp/sqrttf2.c: Likewise.
12051         * soft-fp/subdf3.c: Likewise.
12052         * soft-fp/subsf3.c: Likewise.
12053         * soft-fp/subtf3.c: Likewise.
12054         * soft-fp/truncdfsf2.c: Likewise.
12055         * soft-fp/trunctfdf2.c: Likewise.
12056         * soft-fp/trunctfsf2.c: Likewise.
12057         * soft-fp/trunctfxf2.c: Likewise.
12058         * soft-fp/unorddf2.c: Likewise.
12059         * soft-fp/unordsf2.c: Likewise.
12060         * soft-fp/unordtf2.c: Likewise.
12061
12062 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12063
12064         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12065         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12066
12067 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12068
12069         * elf/dl-libc.c: Clear initfini list after freeing.
12070
12071 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12072
12073         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12074         * soft-fp/addsf3.c: Likewise.
12075         * soft-fp/addtf3.c: Likewise.
12076         * soft-fp/divdf3.c: Likewise.
12077         * soft-fp/divsf3.c: Likewise.
12078         * soft-fp/divtf3.c: Likewise.
12079         * soft-fp/double.h: Likewise.
12080         * soft-fp/eqdf2.c: Likewise.
12081         * soft-fp/eqsf2.c: Likewise.
12082         * soft-fp/eqtf2.c: Likewise.
12083         * soft-fp/extenddftf2.c: Likewise.
12084         * soft-fp/extended.h: Likewise.
12085         * soft-fp/extendsfdf2.c: Likewise.
12086         * soft-fp/extendsftf2.c: Likewise.
12087         * soft-fp/extendxftf2.c: Likewise.
12088         * soft-fp/fixdfdi.c: Likewise.
12089         * soft-fp/fixdfsi.c: Likewise.
12090         * soft-fp/fixdfti.c: Likewise.
12091         * soft-fp/fixsfdi.c: Likewise.
12092         * soft-fp/fixsfsi.c: Likewise.
12093         * soft-fp/fixsfti.c: Likewise.
12094         * soft-fp/fixtfdi.c: Likewise.
12095         * soft-fp/fixtfsi.c: Likewise.
12096         * soft-fp/fixtfti.c: Likewise.
12097         * soft-fp/fixunsdfdi.c: Likewise.
12098         * soft-fp/fixunsdfsi.c: Likewise.
12099         * soft-fp/fixunsdfti.c: Likewise.
12100         * soft-fp/fixunssfdi.c: Likewise.
12101         * soft-fp/fixunssfsi.c: Likewise.
12102         * soft-fp/fixunssfti.c: Likewise.
12103         * soft-fp/fixunstfdi.c: Likewise.
12104         * soft-fp/fixunstfsi.c: Likewise.
12105         * soft-fp/fixunstfti.c: Likewise.
12106         * soft-fp/floatdidf.c: Likewise.
12107         * soft-fp/floatdisf.c: Likewise.
12108         * soft-fp/floatditf.c: Likewise.
12109         * soft-fp/floatsidf.c: Likewise.
12110         * soft-fp/floatsisf.c: Likewise.
12111         * soft-fp/floatsitf.c: Likewise.
12112         * soft-fp/floattidf.c: Likewise.
12113         * soft-fp/floattisf.c: Likewise.
12114         * soft-fp/floattitf.c: Likewise.
12115         * soft-fp/floatundidf.c: Likewise.
12116         * soft-fp/floatundisf.c: Likewise.
12117         * soft-fp/floatunsidf.c: Likewise.
12118         * soft-fp/floatunsisf.c: Likewise.
12119         * soft-fp/floatuntidf.c: Likewise.
12120         * soft-fp/floatuntisf.c: Likewise.
12121         * soft-fp/floatuntitf.c: Likewise.
12122         * soft-fp/fmadf4.c: Likewise.
12123         * soft-fp/fmasf4.c: Likewise.
12124         * soft-fp/fmatf4.c: Likewise.
12125         * soft-fp/gedf2.c: Likewise.
12126         * soft-fp/gesf2.c: Likewise.
12127         * soft-fp/getf2.c: Likewise.
12128         * soft-fp/ledf2.c: Likewise.
12129         * soft-fp/lesf2.c: Likewise.
12130         * soft-fp/letf2.c: Likewise.
12131         * soft-fp/muldf3.c: Likewise.
12132         * soft-fp/mulsf3.c: Likewise.
12133         * soft-fp/multf3.c: Likewise.
12134         * soft-fp/negdf2.c: Likewise.
12135         * soft-fp/negsf2.c: Likewise.
12136         * soft-fp/negtf2.c: Likewise.
12137         * soft-fp/op-1.h: Likewise.
12138         * soft-fp/op-2.h: Likewise.
12139         * soft-fp/op-4.h: Likewise.
12140         * soft-fp/op-8.h: Likewise.
12141         * soft-fp/op-common.h: Likewise.
12142         * soft-fp/quad.h: Likewise.
12143         * soft-fp/single.h: Likewise.
12144         * soft-fp/soft-fp.h: Likewise.
12145         * soft-fp/sqrtdf2.c: Likewise.
12146         * soft-fp/sqrtsf2.c: Likewise.
12147         * soft-fp/sqrttf2.c: Likewise.
12148         * soft-fp/subdf3.c: Likewise.
12149         * soft-fp/subsf3.c: Likewise.
12150         * soft-fp/subtf3.c: Likewise.
12151         * soft-fp/truncdfsf2.c: Likewise.
12152         * soft-fp/trunctfdf2.c: Likewise.
12153         * soft-fp/trunctfsf2.c: Likewise.
12154         * soft-fp/trunctfxf2.c: Likewise.
12155         * soft-fp/unorddf2.c: Likewise.
12156         * soft-fp/unordsf2.c: Likewise.
12157         * soft-fp/unordtf2.c: Likewise.
12158
12159 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12160
12161         [BZ #15672]
12162         * misc/error.c (error_tail): Fix possible buffer overflow.
12163
12164 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12165
12166         [BZ #13028]
12167         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12168         address.
12169
12170 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12171
12172         [BZ #832]
12173         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12174         testing pipefail option.
12175
12176 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12177
12178         * soft-fp/double.h: Indent preprocessor directives inside #if.
12179         * soft-fp/extended.h: Likewise.
12180         * soft-fp/op-2.h: Likewise.
12181         * soft-fp/op-4.h: Likewise.
12182         * soft-fp/op-common.h: Likewise.
12183         * soft-fp/quad.h: Likewise.
12184         * soft-fp/single.h: Likewise.
12185         * soft-fp/soft-fp.h: Likewise.
12186
12187 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12188
12189         * iconv/iconv_prog.c: Fix typos.
12190         * stdio-common/psiginfo-data.h: Likewise.
12191
12192 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12193
12194         [BZ #15764]
12195         * locale/setlocale.c: Fix typo.
12196
12197 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12198
12199         [BZ #16036]
12200         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12201         signaling NaN arguments.
12202         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12203         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12204
12205         [BZ #14910]
12206         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12207         unordered operands.
12208         * soft-fp/gesf2.c (__gesf2): Likewise.
12209         * soft-fp/getf2.c (__getf2): Likewise.
12210         * soft-fp/ledf2.c (__ledf2): Likewise.
12211         * soft-fp/lesf2.c (__lesf2): Likewise.
12212         * soft-fp/letf2.c (__letf2): Likewise.
12213
12214         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12215         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12216         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12217         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12218         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12219         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12220         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12221         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12222         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12223         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12224         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12225         * soft-fp/fixtfti.c (__fixtfti): Likewise.
12226         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
12227         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
12228         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
12229         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
12230         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
12231         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
12232         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
12233         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
12234         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
12235         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
12236         * soft-fp/floatdisf.c (__floatdisf): Likewise.
12237         * soft-fp/floatsisf.c (__floatsisf): Likewise.
12238         * soft-fp/floattidf.c (__floattidf): Likewise.
12239         * soft-fp/floattisf.c (__floattisf): Likewise.
12240         * soft-fp/floattitf.c (__floattitf): Likewise.
12241         * soft-fp/floatundidf.c (__floatundidf): Likewise.
12242         * soft-fp/floatundisf.c (__floatundisf): Likewise.
12243         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
12244         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
12245         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
12246         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
12247         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
12248         * soft-fp/gesf2.c (__gesf2): Likewise.
12249         * soft-fp/getf2.c (__getf2): Likewise.
12250         * soft-fp/ledf2.c (__ledf2): Likewise.
12251         * soft-fp/lesf2.c (__lesf2): Likewise.
12252         * soft-fp/letf2.c (__letf2): Likewise.
12253
12254         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
12255         Undefine and redefine.
12256         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
12257         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
12258         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
12259         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
12260         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12261         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
12262         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12263         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
12264         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12265         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
12266         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12267         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
12268         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12269         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
12270         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12271
12272         [BZ #16032]
12273         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
12274         without decrementing exponent if mantissa >= that for the
12275         denominator, not >.
12276         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
12277         denominator, not >.  Decrement exponent in < case instead of
12278         incrementing in >= case.
12279         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
12280         without decrementing exponent if mantissa >= that for the
12281         denominator, not >.
12282
12283         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
12284         computing saturated result for unsigned overflow.
12285
12286 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
12287             Jeff Law  <law@redhat.com>
12288
12289         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
12290         (atan2Mp): Add systemtap probe marker.
12291         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
12292         (__ieee754_log): Add systemtap probe marker.
12293         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
12294         (atanMp): Add systemtap probe marker.
12295         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
12296         (tanMp): Add systemtap probe marker.
12297         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
12298         (__slowexp): Add systemtap probe marker.
12299         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
12300         (__slowpow): Add systemtap probe marker.
12301         * manual/probes.texi: Document probes.
12302
12303 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
12304
12305         [BZ #15362]
12306         * libio/fileops.c (_IO_new_file_write): Return count of bytes
12307         written.
12308         (_IO_new_file_xsputn): Don't return EOF if nothing has been
12309         written.
12310         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
12311         written to buffer but not flushed.
12312         * libio/iofwrite_u.c:  Likewise.
12313         * libio/iopadn.c:  Return bytes returned even if EOF was
12314         encountered.
12315         * libio/iowpadn.c:  Likewise.
12316         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
12317         if _IO_padn does not write the whole buffer.
12318         [!COMPILE_WPRINTF] (PAD): Likewise.
12319
12320 2013-10-10  David S. Miller  <davem@davemloft.net>
12321
12322         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
12323         directory block.
12324
12325 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12326
12327         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
12328         instead of FSF address.
12329         * soft-fp/fixdfti.c: Likewise.
12330         * soft-fp/fixsfti.c: Likewise.
12331         * soft-fp/fixtfti.c: Likewise.
12332         * soft-fp/fixunsdfti.c: Likewise.
12333         * soft-fp/fixunssfti.c: Likewise.
12334         * soft-fp/fixunstfti.c: Likewise.
12335         * soft-fp/floattidf.c: Likewise.
12336         * soft-fp/floattisf.c: Likewise.
12337         * soft-fp/floattitf.c: Likewise.
12338         * soft-fp/floatuntidf.c: Likewise.
12339         * soft-fp/floatuntisf.c: Likewise.
12340         * soft-fp/floatuntitf.c: Likewise.
12341         * soft-fp/trunctfxf2.c: Likewise.
12342
12343         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
12344         * soft-fp/fixdfti.c: Likewise.
12345         * soft-fp/fixsfti.c: Likewise.
12346         * soft-fp/fixtfti.c: Likewise.
12347         * soft-fp/fixunsdfti.c: Likewise.
12348         * soft-fp/fixunssfti.c: Likewise.
12349         * soft-fp/fixunstfti.c: Likewise.
12350         * soft-fp/floattidf.c: Likewise.
12351         * soft-fp/floattisf.c: Likewise.
12352         * soft-fp/floattitf.c: Likewise.
12353         * soft-fp/floatuntidf.c: Likewise.
12354         * soft-fp/floatuntisf.c: Likewise.
12355         * soft-fp/floatuntitf.c: Likewise.
12356         * soft-fp/trunctfxf2.c: Likewise.
12357
12358 2013-10-10  David S. Miller  <davem@davemloft.net>
12359
12360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12361
12362 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
12363
12364         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12365         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
12366         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
12367         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
12368         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
12369         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
12370         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
12371
12372         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
12373         for NaNs before doing comparisons on argument.
12374         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
12375         Likewise.
12376
12377 2013-10-10  Will Newton  <will.newton@linaro.org>
12378
12379         * malloc/hooks.c (memalign_check): Ensure the value of bytes
12380         passed to _int_memalign does not overflow.
12381
12382 2013-10-10  Torvald Riegel  <triegel@redhat.com>
12383
12384         * scripts/bench.pl: Add include-sources directive.
12385         * benchtests/README: Update documentation.
12386
12387 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12388
12389         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
12390         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
12391         instead of FP_INIT_ROUNDMODE.
12392         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
12393         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
12394
12395         [BZ #16034]
12396         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
12397         copy class of input value.
12398         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
12399         not handle exceptions.
12400         * soft-fp/negsf2.c (__negsf2): Likewise.
12401         * soft-fp/negtf2.c (__negtf2): Likewise.
12402         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
12403
12404 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
12405
12406         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
12407         semicolon.  From Linux kernel.
12408
12409 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
12410
12411         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
12412
12413 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
12414
12415         [BZ #156]
12416         * manual/socket.texi: Added statement about buffer
12417         for gethostbyname2_r.
12418
12419 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
12420
12421         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
12422         Use .p2align directive instead, throughout.
12423         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
12424         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
12425         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
12426         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12427         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12428         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
12429         * sysdeps/x86_64/strchr.S: Likewise.
12430         * sysdeps/x86_64/strrchr.S: Likewise.
12431
12432 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12433
12434         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
12435
12436         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
12437
12438         * sysdeps/generic/math_private.h (__mpsin1): Remove
12439         declaration.
12440         (__mpcos1): Likewise.
12441         (__mpsin): New argument __range_reduce.
12442         (__mpcos): Likewise.
12443         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12444         (slow): Use __mpsin and __mpcos.
12445         (slow1): Likewise.
12446         (slow2): Likewise.
12447         (sloww): Likewise.
12448         (sloww1): Likewise.
12449         (sloww2): Likewise.
12450         (bsloww): Likewise.
12451         (bsloww1): Likewise.
12452         (bsloww2): Likewise.
12453         (cslow2): Likewise.
12454         (csloww): Likewise.
12455         (csloww1): Likewise.
12456         (csloww2): Likewise.
12457         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
12458         range_reduce.  Merge in __mpsin1.
12459         (__mpcos): Likewise.
12460         (__mpsin1): Remove.
12461         (__mpcos1): Likewise.
12462
12463 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
12464
12465         * locale/loadlocale.c (_nl_intern_locale_data): Use
12466         LOCFILE_ALIGNED_P.
12467         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
12468         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
12469         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
12470         obstack data is appropriately aligned.
12471         (obstack_int32_grow_fast): Likewise.
12472         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
12473         * locale/programs/locfile.c (add_locale_uint32): Likewise.
12474         (add_locale_uint32_array): Likewise.
12475
12476 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12477
12478         * benchtests/Makefile: Remove ARGLIST and RET variables.
12479         ($(objpfx)bench-%.c): Pass only function name to the script.
12480         * benchtests/README: Update documentation.
12481         * benchtests/acos-inputs: Add new directives.
12482         * benchtests/acosh-inputs: Likewise.
12483         * benchtests/asin-inputs: Likewise.
12484         * benchtests/asinh-inputs: Likewise.
12485         * benchtests/atan-inputs: Likewise.
12486         * benchtests/atanh-inputs: Likewise.
12487         * benchtests/cos-inputs: Likewise.
12488         * benchtests/cosh-inputs: Likewise.
12489         * benchtests/exp-inputs: Likewise.
12490         * benchtests/log-inputs: Likewise.
12491         * benchtests/pow-inputs: Likewise.
12492         * benchtests/rint-inputs: Likewise.
12493         * benchtests/sin-inputs: Likewise.
12494         * benchtests/sinh-inputs: Likewise.
12495         * benchtests/tan-inputs: Likewise.
12496         * benchtests/tanh-inputs: Likewise.
12497         * scripts/bench.pl: Add support for new directives.
12498
12499 2013-10-07  Alan Modra  <amodra@gmail.com>
12500
12501         * README: Fix careless merge.
12502
12503 2013-10-05  Alan Modra  <amodra@gmail.com>
12504
12505         * NEWS: Mention powerpc64le support and bugs fixed.
12506         * README: Both big-endian and little-endian powerpc64 supported.
12507
12508 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12509
12510         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
12511         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
12512         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
12513         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
12514
12515 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
12516
12517         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
12518         match prototype.
12519
12520 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
12521
12522         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
12523         Move -mhard-float appending from
12524         ports/sysdeps/powerpc/powerpc32/Makefile.
12525         [$(with-fp) = yes] (ASFLAGS): Likewise.
12526         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
12527         * sysdeps/powerpc/nofpu: Move directory from
12528         ports/sysdeps/powerpc/nofpu.
12529         * sysdeps/powerpc/soft-fp: Move directory from
12530         ports/sysdeps/powerpc/soft-fp.
12531         * sysdeps/powerpc/powerpc32/405: Move directory from
12532         ports/sysdeps/powerpc/powerpc32/405.
12533         * sysdeps/powerpc/powerpc32/440: Move directory from
12534         ports/sysdeps/powerpc/powerpc32/440.
12535         * sysdeps/powerpc/powerpc32/464: Move directory from
12536         ports/sysdeps/powerpc/powerpc32/464.
12537         * sysdeps/powerpc/powerpc32/476: Move directory from
12538         ports/sysdeps/powerpc/powerpc32/476.
12539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
12540         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
12541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
12542         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
12543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
12544         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
12545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
12546         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
12547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
12548         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
12549         * README: Update for powerpc-*-linux-gnu software floating point
12550         support in libc.
12551
12552         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
12553         case to powerpc/powerpc32*.
12554         * sysdeps/unix/sysv/linux/configure: Regenerated.
12555
12556         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
12557         (_FPU_MASK_OM): Define as 0x04.
12558         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
12559         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
12560         0x00c10080.
12561         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
12562         0x0000003c.
12563         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
12564
12565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
12566         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12567         getcontext_e500.
12568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
12569         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12570         setcontext_e500.
12571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
12572         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
12573         and setcontext_e500.
12574
12575 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
12576
12577         * locale/iso-3166.def: Update iso-1366.def and related occurrences
12578
12579 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12580
12581         * manual/threads.texi (Default Thread Attributes): Fix typo.
12582
12583 2013-10-04  Will Newton  <will.newton@linaro.org>
12584
12585         * malloc/Makefile: Add tst-memalign.
12586         * malloc/tst-memalign.c: New file.
12587
12588         * malloc/tst-posix_memalign.c: Add comments.
12589         (do_test): Add comments and call free on all potentially
12590         allocated pointers. Add space after cast.
12591
12592         * malloc/tst-pvalloc.c: Add comments.
12593         (do_test): Add comments and call free on all potentially
12594         allocated pointers. Remove duplicate check for NULL pointer.
12595         Add space after cast.
12596
12597         * malloc/tst-valloc.c: Add comments.
12598         (do_test): Add comments and call free on all potentially
12599         allocated pointers. Remove duplicate check for NULL pointer.
12600         Add space after cast.
12601
12602 2013-10-04  Alan Modra  <amodra@gmail.com>
12603
12604         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12605         Use stdint types in rather than __attribute__((mode())).
12606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12607
12608 2013-10-04  Alan Modra  <amodra@gmail.com>
12609
12610         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12611         Correct handling of unaligned relocs for little-endian.
12612         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12613
12614 2013-10-04  Alan Modra  <amodra@gmail.com>
12615
12616         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
12617         * configure: Regenerate.
12618         * nptl/shlib-versions: Powerpc*le starts at 2.18.
12619         * shlib-versions: Likewise.
12620
12621 2013-10-04  Alan Modra  <amodra@gmail.com>
12622
12623         * string/tester.c (test_memrchr): Increment reported test cycle.
12624
12625 2013-10-04  Alan Modra  <amodra@gmail.com>
12626
12627         * string/test-memcpy.c (do_one_test): When reporting errors, print
12628         string address and don't overrun end of string.
12629
12630 2013-10-04  Alan Modra  <amodra@gmail.com>
12631
12632         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
12633         insrdi.  Make better use of reg selection to speed exit slightly.
12634         Schedule entry path a little better.  Remove useless "are we done"
12635         checks on entry to main loop.  Handle wrapping around zero address.
12636         Correct main loop count.  Handle single left-over word from main
12637         loop inline rather than by using loop_small.  Remove extra word
12638         case in loop_small caused by wrong loop count.  Add little-endian
12639         support.
12640         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
12641         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
12642         cache hint.
12643         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
12644         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
12645         support.  Avoid rlwimi.
12646         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
12647
12648 2013-10-04  Alan Modra  <amodra@gmail.com>
12649
12650         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
12651         insrdi.  Formatting.
12652         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
12653         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
12654         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
12655         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
12656         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
12657         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
12658
12659 2013-10-04  Alan Modra  <amodra@gmail.com>
12660
12661         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
12662         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
12663         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
12664         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
12665         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
12666         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
12667         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
12668         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12669         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
12670         use of regs.  Use power7 mtocrf.  Tidy function tails.
12671
12672 2013-10-04  Alan Modra  <amodra@gmail.com>
12673
12674         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
12675         Formatting.  Consistently use rXXX register defines or rN defines.
12676         Use early exit labels that avoid restoring unused non-volatile regs.
12677         Make cr field use more consistent with rWORDn compares.  Rename
12678         regs used as shift registers for unaligned loop, using rN defines
12679         for short lifetime/multiple use regs.
12680         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
12681         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
12682         addi 1,1,64 to pop stack frame.  Simplify return value code.
12683         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
12684
12685 2013-10-04  Alan Modra  <amodra@gmail.com>
12686
12687         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
12688         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
12689         rather than rlwimi.
12690         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
12691         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
12692         little-endian support.  Correct typos.
12693         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
12694         rather than rlwimi.
12695         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
12696         in loop and entry code to keep "and." results.
12697         (strchr): Add little-endian support.  Comment.  Move cntlzd
12698         earlier in tail.
12699         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
12700
12701 2013-10-04  Alan Modra  <amodra@gmail.com>
12702
12703         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
12704         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
12705         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
12706         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
12707
12708 2013-10-04  Alan Modra  <amodra@gmail.com>
12709
12710         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
12711         (rTMP): Define as r11.
12712         (strcmp): Add little-endian support.  Optimise tail.
12713         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
12714         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
12715         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
12716         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12717         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
12718         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12719         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12720
12721 2013-10-04  Alan Modra  <amodra@gmail.com>
12722
12723         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
12724         little-endian support.  Remove unnecessary "are we done" tests.
12725         Handle "s" wrapping around zero and extremely large "size".
12726         Correct main loop count.  Handle single left-over word from main
12727         loop inline rather than by using small_loop.  Correct comments.
12728         Delete "zero" tail, use "end_max" instead.
12729         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
12730
12731 2013-10-04  Alan Modra  <amodra@gmail.com>
12732
12733         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
12734         support.  Don't branch over align.
12735         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
12736         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
12737         support.  Rearrange tmp reg use to suit.  Comment.
12738         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
12739
12740 2013-10-04  Alan Modra  <amodra@gmail.com>
12741
12742         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
12743
12744 2013-10-04  Alan Modra  <amodra@gmail.com>
12745
12746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
12747         conditional form of branch and link when obtaining pc.
12748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
12749
12750 2013-10-04  Alan Modra  <amodra@gmail.com>
12751
12752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
12753         HIWORD/LOWORD.
12754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
12755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
12756
12757 2013-10-04  Alan Modra  <amodra@gmail.com>
12758
12759         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
12760         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
12761         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
12762         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
12763         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
12764         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
12765         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
12766         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
12767         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
12768         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
12769
12770 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12771             Alistair Popple <alistair@ozlabs.au.ibm.com>
12772             Alan Modra <amodra@gmail.com>
12773
12774         [BZ #15723]
12775         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
12776         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
12777         _dl_hwcap access for little-endian.
12778         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
12779         destroy vmx regs when saving unaligned.
12780         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
12781         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
12782         destroy vmx regs when saving unaligned.
12783
12784 2013-10-04  Alan Modra  <amodra@gmail.com>
12785
12786         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
12787         Don't use a union to pack hi/low value.
12788
12789 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12790
12791         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
12792         for little-endian.
12793         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
12794         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
12795         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
12796         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
12797         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
12798
12799 2013-10-04  Alan Modra  <amodra@gmail.com>
12800
12801         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
12802         constants to usual value for .cst8 section, and remove redundant
12803         high address load.
12804         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
12805         constant for 0x1p52.  Load little-endian words of double from
12806         correct stack offsets.
12807
12808 2013-10-04  Alan Modra  <amodra@gmail.com>
12809
12810         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
12811         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
12812         words of double from correct stack offsets.
12813         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
12814         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
12815         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
12816         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
12817         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
12818         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
12819         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
12820         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
12821         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
12822         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
12823         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
12824         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
12825         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12826         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12827         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12828         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
12829         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
12830
12831 2013-10-04  Alan Modra  <amodra@gmail.com>
12832
12833         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
12834         64-bit int/double union.
12835         (_FPU_SETCW): Likewise.
12836         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
12837         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
12838
12839 2013-10-04  Alan Modra  <amodra@gmail.com>
12840
12841         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
12842         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
12843
12844 2013-10-04  Alan Modra  <amodra@gmail.com>
12845
12846         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
12847         use vector int constants.
12848         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
12849
12850 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12851
12852         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
12853         array with long long.
12854         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
12855         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
12856         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
12857         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
12858         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
12859         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
12860         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
12861         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
12862         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
12863         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
12864         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
12865         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
12866         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
12867
12868 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12869
12870         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
12871         (__signbit): Likewise.  Correct for little-endian.
12872         (__signbitl): Call __signbit.
12873         (lrint): Correct for little-endian.
12874         (lrintf): Call lrint.
12875
12876 2013-10-04  Alan Modra  <amodra@gmail.com>
12877
12878         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
12879         union 32-bit int array member with 64-bit int array.
12880         (t515, tm256): Double rather than long double.
12881         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
12882
12883 2013-10-04  Alan Modra  <amodra@gmail.com>
12884
12885         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
12886         Delete.
12887         (IEEE854_LONG_DOUBLE_BIAS): Delete.
12888         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
12889         version of math_ldbl.h.
12890
12891 2013-10-04  Alan Modra  <amodra@gmail.com>
12892
12893         [BZ #15734], [BZ #15735]
12894         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
12895         all uses of ieee875 long double macros and unions.  Simplify test
12896         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
12897         ldbl_extract_mantissa value for ix,iy exponents.  Properly
12898         normalize after ldbl_extract_mantissa, and don't add hidden bit
12899         already handled.  Don't treat low word of ieee854 mantissa like
12900         low word of IBM long double and mask off bit when testing for
12901         zero.
12902         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
12903         all uses of ieee875 long double macros and unions.  Simplify tests
12904         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
12905         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
12906         two1022, instead use their values.  Recognise that tests for large
12907         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
12908         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
12909         Rewrite all uses of ieee875 long double macros and unions.  Simplify
12910         test for 0.0L and nan.  Correct negation.
12911         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
12912         ieee875 long double macros and unions.  Correct output for large
12913         magnitude x.  Correct absolute value calculation.
12914         (__erfcl): Likewise.
12915         * math/libm-test.inc: Add tests for errors discovered in IBM long
12916         double versions of fmodl, remainderl, erfl and erfcl.
12917
12918 2013-10-04  Alan Modra  <amodra@gmail.com>
12919
12920         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
12921         all uses of ieee854 long double macros and unions.  Simplify tests
12922         for long doubles that are fully specified by the high double.
12923         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12924         Likewise.
12925         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
12926         Remove dead code too.
12927         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12928         (__ieee754_ynl): Likewise.
12929         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
12930         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
12931         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
12932         Remove dead code too.
12933         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
12934         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
12935         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
12936         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
12937         Simplify.
12938         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
12939         Simplify.
12940         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
12941         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
12942         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
12943         Comment on variable precision.
12944         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
12945         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
12946         Likewise.
12947         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
12948         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12949         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12950         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
12951         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
12952
12953 2013-10-04  Alan Modra  <amodra@gmail.com>
12954
12955         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
12956         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
12957         all uses of ieee854 long double macros and unions.
12958         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
12959         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
12960         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
12961         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
12962         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
12963         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
12964         Likewise.
12965         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
12966         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
12967         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
12968         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
12969         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
12970         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
12971         Simplify sign and nan test too.
12972         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
12973         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
12974         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
12975         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
12976         Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
12978         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
12979         Likewise.
12980         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12981         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
12982         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
12984         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
12985         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
12986
12987 2013-10-04  Alan Modra  <amodra@gmail.com>
12988
12989         * stdio-common/printf_size.c (__printf_size): Don't use
12990         union ieee854_long_double in fpnum union.
12991         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
12992         signbit macro to retrieve sign from long double.
12993         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
12994         retrieve sign from long double.
12995         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
12996         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
12997         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
12998         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
12999         * math/test-misc.c (main): Don't use union ieee854_long_double.
13000
13001 2013-10-04  Alan Modra  <amodra@gmail.com>
13002
13003         [BZ #15680]
13004         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13005         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13006         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13007         calculation.  Remove unnecessary test for denormal exponent.
13008         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13009         Correct handling of denormals.  Avoid undefined shift behaviour.
13010         Correct normalisation of low mantissa when low double is denormal.
13011         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13012         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13013         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13014         Correct normalisation of low mantissa.  Test for overflow of high
13015         mantissa and normalise.
13016         (ldbl_nearbyint): Use more readable constant for two52.
13017         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13018         (__mpn_construct_long_double): Fix test for overflow of high
13019         mantissa and correct normalisation.  Avoid undefined shift.
13020
13021 2013-10-04  Alan Modra  <amodra@gmail.com>
13022
13023         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13024         (union ibm_extended_long_double): Define as an array of ieee754_double.
13025         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13026         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13027         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13028         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13029         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13031         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13032         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13036
13037 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13038
13039         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13040         page size instead of calling getpagesize.
13041
13042         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13043         (LOCFILE_ALIGN_MASK): Likewise.
13044         (LOCFILE_ALIGN_UP): Likewise.
13045         (LOCFILE_ALIGNED_P): Likewise.
13046         * locale/programs/ld-collate.c (collate_output): Use the new
13047         macros instead of __alignof__ (int32_t).
13048         * locale/weight.h (findidx): Likewise.
13049
13050 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13051
13052         [BZ #431]
13053         * manual/string.texi: Fix strncat and wcsncat.
13054
13055 2013-10-03  Brooks Moses  <bmoses@google.com>
13056
13057         [BZ #15915]
13058         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13059         * Makerules: ...here, and adjust associated comments.
13060
13061 2013-10-02  Will Newton  <will.newton@linaro.org>
13062
13063         * malloc/Makefile: Add tst-pvalloc.
13064         * malloc/tst-pvalloc.c: New file.
13065
13066 2013-10-02  Will Newton  <will.newton@linaro.org>
13067
13068         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13069         improve test coverage.
13070
13071 2013-10-02  Will Newton  <will.newton@linaro.org>
13072
13073         * malloc/Makefile: Add tst-posix_memalign.
13074         * malloc/tst-posix_memalign.c: New file.
13075
13076 2013-10-01  Eric Blake  <eblake@redhat.com>
13077
13078         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13079         Use __THROWNL rather than __THROW on static functions.
13080
13081 2013-09-30  Petr Machata  <pmachata@redhat.com>
13082
13083         * elf/elf.h (R_AARCH64_ABS16): New macro.
13084         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13085         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13086         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13087         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13088         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13089         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13090         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13091         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13092         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13093         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13094         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13095         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13096         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13097         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13098         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13099         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13100         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13101         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13102         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13103         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13104         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13105         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13106         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13107         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13108         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13109         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13110         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13111         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13112         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13113         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13114         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13115         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13116         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13117         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13118         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13119         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13120         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13121         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13122         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13123         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13124         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13125         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13126         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13127         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13128         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13129         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13130         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13131         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13132         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13133         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13134         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13135         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13136         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13137         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13138         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13139         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13140         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13141         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13142         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13143         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13144         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13145         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13146         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13147         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13148         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13149         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13150         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13151         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13152         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13153         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13154         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13155         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13156         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13157         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13158         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13159         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13160         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13161         (R_AARCH64_TLSDESC_LDR): Likewise.
13162         (R_AARCH64_TLSDESC_ADD): Likewise.
13163         (R_AARCH64_TLSDESC_CALL): Likewise.
13164
13165 2013-09-30  Andreas Schwab  <schwab@suse.de>
13166
13167         [BZ #15048]
13168         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13169         the nss database lookup.
13170         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13171         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13172
13173 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13174
13175         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13176
13177 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13178
13179         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13180         ${Bash-specific parameter/pattern/string} parameter expansion.
13181         * sysdeps/unix/make-syscalls.sh: Likewise.
13182
13183 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13184
13185         * sysdeps/sh/stackguard-macros.h: New file.
13186
13187 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13188
13189         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13190         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13191         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13192         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13193         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13194         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13195
13196 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13197
13198         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13199         Fix thread ID register.
13200
13201 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13202
13203         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13204         [POSIX || UNIX98]: Require rather than permitting all symbols from
13205         <time.h>.
13206         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13207         element of struct sched_param.
13208         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13209         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13210         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13211         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13212         constant.
13213
13214 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13215
13216         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13217         argument calculation.
13218
13219 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13220
13221         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13222         Expect macro.
13223         [POSIX] (pthread_attr_t): Do not require type.
13224         [POSIX] (pthread_cond_t): Likewise.
13225         [POSIX] (pthread_condattr_t): Likewise.
13226         [POSIX] (pthread_key_t): Likewise.
13227         [POSIX] (pthread_mutex_t): Likewise.
13228         [POSIX] (pthread_mutexattr_t): Likewise.
13229         [POSIX] (pthread_once_t): Likewise.
13230         [POSIX] (pthread_t): Likewise.
13231         [POSIX-based standards] (pthread_atfork): Expect function.
13232
13233 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13234             Richard Sandiford  <richard@codesourcery.com>
13235
13236         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
13237         (swap_endianness_p): New extern variable.
13238         (set_big_endian): New inline function.
13239         (maybe_swap_uint32): Likewise.
13240         (maybe_swap_uint32_array): Likewise.
13241         (maybe_swap_uint32_obstack): Likewise.
13242         * locale/programs/locfile.c: Include <stdbool.h>.
13243         (swap_endianness_p): New variable.
13244         (add_locale_uint32): Call maybe_swap_uint32.
13245         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
13246         (write_locale_data): Call maybe_swap_uint32_array.
13247         * locale/programs/ld-collate.c (obstack_int32_grow): Call
13248         maybe_swap_uint32.
13249         (obstack_int32_grow_fast): Likewise.
13250         (output_weightwc): Call maybe_swap_uint32_obstack.
13251         (collate_output): Likewise.
13252         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
13253         (OPT_LITTLE_ENDIAN): Likewise.
13254         (options): Add --little-endian and --big-endian options.
13255         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
13256         * locale/programs/locarchive.c: Include "locfile.h".
13257         (GET): New macro.
13258         (SET): Likewise.
13259         (INC): Likewise.
13260         (create_archive): Use the new macros to access fields of
13261         structures directly mapped from or written to locale archives.
13262         (oldlocrecentcmp): Likewise.
13263         (enlarge_archive): Likewise.
13264         (insert_name): Likewise.
13265         (add_alias): Likewise.
13266         (add_locale): Likewise.
13267         (delete_locales_from_archive): Likewise.
13268         (show_archive_content): Likewise.
13269         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
13270         locale data.
13271
13272 2013-09-24  Roland McGrath  <roland@hack.frob.com>
13273
13274         * manual/freemanuals.texi: Updated from (newly) canonical copy at
13275         http://www.gnu.org/doc/freemanuals.texi.
13276         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
13277
13278 2013-09-24  Will Newton  <will.newton@linaro.org>
13279
13280         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
13281         macro.
13282
13283 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * locale/hashval.h (compute_hashval): Interpret bytes of key as
13286         unsigned char.
13287
13288 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
13289
13290         * manual/threads.texi (POSIX Threads): Fix a typo.
13291
13292 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
13293
13294         [BZ #14547]
13295         * string/tst-strcoll-overflow.c: New test case.
13296         * string/Makefile (xtests): Add tst-strcoll-overflow.
13297         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
13298         cache if string sizes may cause integer overflow.
13299
13300         [BZ #14547]
13301         * string/strcoll_l.c (coll_seq): New members rule, idx,
13302         save_idx and back_us.
13303         (get_next_seq_nocache): New function.
13304         (do_compare_nocache): New function.
13305         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
13306         when malloc fails.
13307
13308 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
13309
13310         [BZ #15754]
13311         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
13312         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
13313         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
13314
13315         [BZ #15754]
13316         * elf/Makefile (tests): Add tst-ptrguard1.
13317         (tests-static): Add tst-ptrguard1-static.
13318         (tst-ptrguard1-ARGS): Define.
13319         (tst-ptrguard1-static-ARGS): Define.
13320         * elf/tst-ptrguard1.c: New file.
13321         * elf/tst-ptrguard1-static.c: New file.
13322         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
13323         * sysdeps/i386/stackguard-macros.h: Likewise.
13324         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13325         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13326         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13327         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13328         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13329         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13330
13331 2013-09-23  Hector Marco  <hecmargi@upv.es>
13332             Ismael Ripoll  <iripoll@disca.upv.es>
13333             Carlos O'Donell  <carlos@redhat.com>
13334
13335         [BZ #15754]
13336         * sysdeps/generic/stackguard-macros.h: Define
13337         __pointer_chk_guard_local and POINTER_CHK_GUARD.
13338         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
13339         Define __pointer_chk_guard_local.
13340         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
13341         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
13342
13343 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
13344
13345         [BZ #15859]
13346         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
13347
13348 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
13349
13350         * include/string.h (__ffs): Declare as hidden.
13351         * string/ffs.c (__ffs): Define as hidden.
13352         * sysdeps/i386/ffs.c (__ffs): Likewise.
13353         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
13354         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
13355         * sysdeps/s390/ffs.c (__ffs): Likewise.
13356         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
13357
13358 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
13359
13360         * NEWS: Mention malloc probes.
13361
13362         * malloc/arena.c (new_heap): New memory_heap_new probe.
13363         (grow_heap): New memory_heap_more probe.
13364         (shrink_heap): New memory_heap_less probe.
13365         (heap_trim): New memory_heap_free probe.
13366         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
13367         (systrim): New memory_sbrk_less probe.
13368         * manual/probes.texi: Document them.
13369
13370         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
13371         * manual/probes.texi: Document it.
13372
13373         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
13374         (__libc_realloc): Add memory_realloc_retry probe.
13375         (__libc_memalign): Add memory_memalign_retry probe.
13376         (__libc_valloc): Add memory_valloc_retry probe.
13377         (__libc_pvalloc): Add memory_pvalloc_retry probe.
13378         (__libc_calloc): Add memory_calloc_retry probe.
13379         * manual/probes.texi: Document them.
13380
13381         * malloc/arena.c (get_free_list): Add probe
13382         memory_arena_reuse_free_list.
13383         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
13384         and memory_arena_reuse.
13385         (arena_get2) [!PER_THREAD]: Likewise.
13386         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
13387         memory_arena_reuse_realloc.
13388         * manual/probes.texi: Document them.
13389
13390         * malloc/malloc.c (__libc_free): Add
13391         memory_mallopt_free_dyn_thresholds probe.
13392         (__libc_mallopt): Add multiple memory_mallopt probes.
13393         * manual/probes.texi: Document them.
13394
13395         * malloc/malloc.c: Include stap-probe.h.
13396         (__libc_mallopt): Add memory_mallopt probe.
13397         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
13398         * manual/probes.texi: New.
13399         * manual/Makefile (chapters): Add probes.
13400         * manual/threads.texi: Set next node.
13401
13402 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
13403
13404         [BZ #15963, #13985]
13405         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
13406         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
13407         Add `Chinese' to `nan' entry name.
13408
13409 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13410
13411         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
13412         (POLYNOMIAL): Likewise.
13413         (TAYLOR_SINCOS): Likewise.
13414         (TAYLOR_SLOW): Likewise.
13415         (__sin): Use TAYLOR_SINCOS.
13416         (__cos): Likewise.
13417         (slow): Use TAYLOR_SLOW.
13418         (sloww): Likewise.
13419         (bsloww): Likewise.
13420         (csloww): Likewise.
13421
13422 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13423
13424         * stdlib/strtod_l.c: Fix buffer overrun.
13425
13426 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13427
13428         * benchtests/Makefile (bench): Add sincos.
13429         * benchtests/bench-sincos.c: New file.
13430
13431         * math/libm-test.inc (cos_test_data): New test inputs.
13432         (sin_test_data): Likewise.
13433
13434         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
13435         macro.
13436         (__sin): Use it.
13437         (__cos): Likewise.
13438         (slow1): Likewise.
13439         (slow2): Likewise.
13440         (sloww1): Likewise.
13441         (sloww2): Likewise.
13442         (bsloww1): Likewise.
13443         (bsloww2): Likewise.
13444         (cslow2): Likewise.
13445         (csloww1): Likewise.
13446         (csloww2): Likewise.
13447
13448         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
13449         function.
13450         (__sin): Use it.
13451         (__cos): Likewise.
13452
13453         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
13454         gotos.
13455         (__cos): Likewise.
13456
13457 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
13458
13459         * config.h.in (HAVE_MIPS_NAN2008): New macro.
13460         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
13461         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
13462         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
13463         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
13464         * elf/cache.c (print_entry): Handle the new cache flags.
13465
13466 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13467             Aldy Hernandez  <aldyh@redhat.com>
13468
13469         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
13470         Change condition to [_SOFT_FLOAT].
13471         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
13472         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
13473         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
13474         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
13475         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
13476         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
13477         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
13478         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
13479         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
13480         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
13481         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
13482         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
13483         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
13484         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
13485         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
13486         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
13487         declaration.
13488
13489 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13490
13491         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
13492         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13493         (__longjmp): Use LOAD_GP to load saved GPRs.
13494         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
13495         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13496         (__sigsetjmp): Use SAVE_GP to save GPRs.
13497
13498         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
13499         Do not append -msoft-float.
13500         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
13501
13502 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13503
13504         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
13505
13506 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
13507
13508         [BZ #15966]
13509         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
13510         (_FPU_GETCW): Use initial "__" on variable and field names but not
13511         on macro parameter name.
13512         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
13513         parentheses around reference to macro parameter.
13514
13515 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
13516
13517         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
13518         prototype.
13519         (ctype_startup): Use uint32_t in cast and sizeof for
13520         ctype->charnames.
13521
13522 2013-09-11  Jia Liu  <proljc@gmail.com>
13523
13524         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
13525         __daddr_t_defined.
13526         [__FreeBSD__]: Likewise.
13527
13528 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
13529
13530         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13531         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
13532         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
13533         (strchr): Remove __strchr_sse42 ifunc selection.
13534         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
13535         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
13536
13537 2013-09-11  Will Newton  <will.newton@linaro.org>
13538
13539         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
13540         parameter to RES. Remove hardcoded 1000 value.
13541         * benchtests/bench-skeleton.c (main): Pass RES parameter
13542         to TIMING_INIT and multiply result by 1000.
13543
13544 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13545
13546         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13547
13548 2013-09-11  Andreas Schwab  <schwab@suse.de>
13549
13550         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
13551         if not defined.
13552         (O_TMPFILE) [__USE_GNU]: Define.
13553         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
13554         Define.
13555
13556 2013-09-11  Will Newton  <will.newton@linaro.org>
13557
13558         [BZ #15857]
13559         * malloc/malloc.c (__libc_memalign): Check the value of bytes
13560         does not overflow.
13561
13562 2013-09-11  Will Newton  <will.newton@linaro.org>
13563
13564         [BZ #15856]
13565         * malloc/malloc.c (__libc_valloc): Check the value of bytes
13566         does not overflow.
13567
13568 2013-09-11  Will Newton  <will.newton@linaro.org>
13569
13570         [BZ #15855]
13571         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
13572         does not overflow.
13573
13574 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
13575
13576         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
13577         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13578         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13579         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13580         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13581
13582 2013-09-10  Allan McRae  <allan@archlinux.org>
13583
13584         [BZ #15748]
13585         * manual/arith.texi (Parsing of Floats): Clarify
13586         cross-reference.
13587
13588         [BZ #15849]
13589         * manual/install.texi (Running make install): Mention
13590         --enable-pt-chown.
13591         * INSTALL: Regenerated.
13592
13593 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
13594
13595         * csu/init-first.c (_init): Remove the !SHARED condition around
13596         FPU control word initialization.
13597         * elf/dl-support.c (_dl_fpu_control): New variable.
13598         (_dl_aux_init) <AT_FPUCW>: Initialize it.
13599         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
13600         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
13601         * math/test-fpucw-static.c: New file.
13602         * math/test-fpucw-ieee.c: New file.
13603         * math/test-fpucw-ieee-static.c: New file.
13604         * math/Makefile (tests): Add `test-fpucw-ieee' and
13605         `$(tests-static)'.
13606         (tests-static): New variable.
13607         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
13608         dependency to...
13609         [($(build-shared),yes)]
13610         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
13611         ... this.
13612         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
13613         New dependency.
13614
13615 2013-09-09  Allan McRae  <allan@archlinux.org>
13616
13617         [BZ #15939]
13618         * manual/string.texi (Collation Functions): Fix typo in
13619         strcoll example.
13620         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
13621
13622         [BZ #15893]
13623         * stdlib/isomac.c (get_null_defines): Fix memory leak.
13624
13625         [BZ #15892]
13626         * libio/memstream.c (open_memstream): Fix memory leak.
13627         * libio/wmemstream.c (open_wmemstream): Likewise.
13628
13629         [BZ #15895]
13630         * nscd/netgroupcache.c: Fix nesting of ifdefs.
13631
13632 2013-09-09  Will Newton  <will.newton@linaro.org>
13633
13634         * malloc/Makefile: Add tst-realloc to tests.
13635         * malloc/tst-realloc.c: New file.
13636
13637 2013-09-09  Allan McRae  <allan@archlinux.org>
13638
13639         [BZ #15844]
13640         * COPYING: Update from GNU website to fix FSF address.
13641         * COPYING.LIB: Likewise.
13642
13643 2013-09-06  David S. Miller  <davem@davemloft.net>
13644
13645         * po/zh_TW.po: Update Chinese (traditional) translation from
13646         translation project.
13647
13648 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
13649             Joseph Myers  <joseph@codesourcery.com>
13650
13651         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
13652         "localeinfo.h".
13653         (obstack_chunk_alloc): New macro.
13654         (obstack_chunk_free): Likewise.
13655         (record_offset): New function.
13656         (init_locale_data): Likewise.
13657         (align_locale_data): Likewise.
13658         (add_locale_empty): Likewise.
13659         (add_locale_raw_data): Likewise.
13660         (add_locale_raw_obstack): Likewise.
13661         (add_locale_string): Likewise.
13662         (add_locale_wstring): Likewise.
13663         (add_locale_uint32): Likewise.
13664         (add_locale_uint32_array): Likewise.
13665         (add_locale_char): Likewise.
13666         (start_locale_structure): Likewise.
13667         (end_locale_structure): Likewise.
13668         (start_locale_prelude): Likewise.
13669         (end_locale_prelude): Likewise.
13670         (write_locale_data): Take locale_file structure rather than an
13671         iovec.
13672         * locale/programs/locfile.h: Include "obstack.h".
13673         (struct locale_file): Change to store locale file contents instead
13674         of header.
13675         (init_locale_data): New prototype.
13676         (align_locale_data): Likewise.
13677         (add_locale_empty): Likewise.
13678         (add_locale_raw_data): Likewise.
13679         (add_locale_raw_obstack): Likewise.
13680         (add_locale_string): Likewise.
13681         (add_locale_wstring): Likewise.
13682         (add_locale_uint32): Likewise.
13683         (add_locale_uint32_array): Likewise.
13684         (add_locale_char): Likewise.
13685         (start_locale_structure): Likewise.
13686         (end_locale_structure): Likewise.
13687         (start_locale_prelude): Likewise.
13688         (end_locale_prelude): Likewise.
13689         (write_locale_data): Update prototype.
13690         * locale/programs/3level.h (struct TABLE): Remove result field.
13691         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
13692         Use new locale_file interface.
13693         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
13694         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
13695         * locale/programs/ld-address.c (address_output): Use new
13696         locale_file interface.
13697         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
13698         NO_ADD_LOCALE.
13699         (collate_finish): Don't call collseq_table_finalize.
13700         (collate_output): Use new locale_file interface.
13701         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
13702         in file.
13703         (NO_FINALIZE): Change to NO_ADD_LOCALE.
13704         (TABLE): Move defines earlier in file.
13705         (ELEMENT): Likewise.
13706         (DEFAULT): Likewise.
13707         (wctrans_table_add): Move macro and inline function earlier in
13708         file.
13709         (struct wctype_table): Move type earlier in file.
13710         (add_locale_wctype_table): New static prototype.
13711         (struct locale_ctype_t): Use logical types instead of struct iovec
13712         pointers for members.
13713         (ctype_output): Use new locale_file interface.
13714         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
13715         new locale_file interface.
13716         (allocate_arrays): Update for use of new locale_file interface.
13717         * locale/programs/ld-identification.c (identification_output): Use
13718         new locale_file interface.
13719         * locale/programs/ld-measurement.c (measurement_output): Likewise.
13720         * locale/programs/ld-messages.c (messages_output): Likewise.
13721         * locale/programs/ld-monetary.c (monetary_output): Likewise.
13722         * locale/programs/ld-name.c (name_output): Likewise.
13723         * locale/programs/ld-numeric.c (numeric_output): Likewise.
13724         * locale/programs/ld-paper.c (paper_output): Likewise.
13725         * locale/programs/ld-telephone.c (telephone_output): Likewise.
13726         * locale/programs/ld-time.c (time_output): Likewise.
13727
13728 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13729
13730         * benchtests/Makefile: Add memrchr benchmark.
13731         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
13732         benchmark as memrchr.
13733         * benchtests/bench-memrchr-ifunc.c: New file.
13734         * benchtests/bench-memrchr.c: New file.
13735
13736 2013-09-06   Will Newton  <will.newton@linaro.org>
13737
13738         * benchtests/Makefile (string-bench): Add memcpy.
13739
13740 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
13741             Cong Wang  <amwang@redhat.com>
13742
13743         [BZ #15850]
13744         * sysdeps/unix/sysv/linux/bits/in.h
13745         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
13746         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
13747         before __USE_KERNEL_IPV6_DEFS uses.
13748         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
13749         IPPROTO_BEETPH.
13750         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
13751         sockaddr_in6, or ipv6_mreq.
13752
13753 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13754
13755         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
13756         memory access for final bytes in some large inputs.
13757         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
13758
13759 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13760
13761         * string/test-memrchr.c: New file.
13762         * string/test-memrchr-ifunc.c: New file.
13763         * string/Makefile: Add new memrchr testcase.
13764
13765 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
13766
13767         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
13768         fanotify_init returns EPERM.
13769
13770 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
13771
13772         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
13773         errors.
13774         (top level): Treat second token from macro or constant entries for
13775         allowed headers as allowed.
13776         * include/complex.h: Condition internal declarations on
13777         [!_ISOMAC].
13778         * include/fenv.h: Condition include of <stdbool.h> and internal
13779         declarations on [!_ISOMAC].
13780
13781 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
13782
13783         [BZ #15923]
13784         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
13785
13786 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
13787
13788         * configure.in (--enable-versioning): Remove configure option.
13789         (libc_cv_asm_symver_directive): Remove configure test.
13790         (libc_cv_ld_version_script_option): Likewise.
13791         (VERSIONING): Remove variable and AC_SUBST.
13792         (DO_VERSIONING): Remove AC_DEFINE.
13793         * configure: Regenerated.
13794         * config.h.in (DO_VERSIONING): Remove macro.
13795         * Makerules [$(versioning) = yes]: Change conditionals to
13796         [$(build-shared) = yes].
13797         * config.make.in (versioning): Remove variable.
13798         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
13799         [$(build-shared) = yes].
13800         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
13801         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
13802         * elf/Makefile [$(versioning) = yes]: Change conditionals to
13803         [$(build-shared) = yes].
13804         * extra-lib.mk [$(versioning) = yes]: Likewise.
13805         * hurd/Makefile [$(versioning) = yes]: Likewise.
13806         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
13807         [SHARED].
13808         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
13809         [SHARED].
13810         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
13811         [SHARED && !NO_HIDDEN].
13812         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
13813         [SHARED].
13814         [SHARED && DO_VERSIONING]: Likewise..
13815         * libio/Makefile [$(versioning) = yes]: Change conditionals to
13816         [$(build-shared) = yes].
13817         * manual/install.texi (--disable-versioning): Remove
13818         documentation.
13819         * INSTALL: Regenerated.
13820         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
13821         to [SHARED].
13822         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
13823         [$(build-shared) = yes].
13824         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
13825         * sysdeps/i386/i686/multiarch/strstr-c.c
13826         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
13827         [SHARED && !NO_HIDDEN].
13828         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
13829         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
13830         * sysdeps/powerpc/powerpc32/dl-machine.c
13831         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
13832         * sysdeps/powerpc/powerpc32/sysdep.h
13833         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
13834         to [SHARED && PIC && !NO_HIDDEN].
13835         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
13836         conditional to [SHARED].
13837
13838 2013-09-04   Will Newton  <will.newton@linaro.org>
13839
13840         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
13841         * benchtests/bench-string.h: Include bench-timing.h instead
13842         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
13843         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
13844         call to HP_TIMING_DIFF_INIT.
13845         * benchtests/bench-memccpy.c: Use bench-timing.h macros
13846         instead of hp-timing.h macros.
13847         * benchtests/bench-memchr.c: Likewise.
13848         * benchtests/bench-memcmp.c: Likewise.
13849         * benchtests/bench-memcpy.c: Likewise.
13850         * benchtests/bench-memmem.c: Likewise.
13851         * benchtests/bench-memmove.c: Likewise.
13852         * benchtests/bench-memset.c: Likewise.
13853         * benchtests/bench-rawmemchr.c: Likewise.
13854         * benchtests/bench-strcasecmp.c: Likewise.
13855         * benchtests/bench-strcasestr.c: Likewise.
13856         * benchtests/bench-strcat.c: Likewise.
13857         * benchtests/bench-strchr.c: Likewise.
13858         * benchtests/bench-strcmp.c: Likewise.
13859         * benchtests/bench-strcpy.c: Likewise.
13860         * benchtests/bench-strcpy_chk.c: Likewise.
13861         * benchtests/bench-strlen.c: Likewise.
13862         * benchtests/bench-strncasecmp.c: Likewise.
13863         * benchtests/bench-strncat.c: Likewise.
13864         * benchtests/bench-strncmp.c: Likewise.
13865         * benchtests/bench-strncpy.c: Likewise.
13866         * benchtests/bench-strnlen.c: Likewise.
13867         * benchtests/bench-strpbrk.c: Likewise.
13868         * benchtests/bench-strrchr.c: Likewise.
13869         * benchtests/bench-strspn.c: Likewise.
13870         * benchtests/bench-strstr.c: Likewise.
13871
13872 2013-09-04  Will Newton  <will.newton@linaro.org>
13873
13874         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
13875
13876 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
13877
13878         [BZ #15427]
13879         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
13880         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
13881         * math/libm-test.inc (lgamma_test_data): Add more tests.
13882         * sysdeps/i386/fpu/libm-test-ulps: Update.
13883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13884
13885 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
13886
13887         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
13888         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
13889         Add ifunc.
13890         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
13891         Add strcmp-sse2-unaligned
13892         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
13893
13894 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
13895
13896         * Versions.def (libc): Add GLIBC_2.19.
13897
13898 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
13899
13900         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
13901         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
13902
13903 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
13904
13905         [BZ #14155]
13906         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
13907         intermediate calculations in recurrence.
13908         (__ieee754_ynf): Likewise.
13909         * math/libm-test.inc (jn_test_data): Do not allow spurious
13910         underflow exception.  Add more tests.
13911         (yn_test_data): Add more tests.
13912         * sysdeps/i386/fpu/libm-test-ulps: Update.
13913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13914
13915 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
13916
13917         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
13918
13919 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
13920
13921         * csu/init-first.c: Fix then/than typos.
13922         * locale/programs/ld-collate.c: Likewise.
13923         * locale/programs/linereader.h: Likewise.
13924         * manual/charset.texi: Likewise.
13925         * manual/filesys.texi: Likewise.
13926         * manual/stdio.texi: Likewise.
13927         * manual/string.texi: Likewise.
13928         * stdlib/fmtmsg.c: Likewise.
13929         * sysdeps/i386/stpncpy.S: Likewise.
13930         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
13931         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
13932         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
13933         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
13934
13935 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
13936
13937         * elf/dl-open.c: Fix typos.
13938         * iconvdata/gbbig5.c: Likewise.
13939         * iconvdata/iso-2022-jp.c: Likewise.
13940         * iconv/gconv_int.h: Likewise.
13941         * iconv/loop.c: Likewise.
13942         * nis/rpcsvc/nis.h: Likewise.
13943         * resolv/ns_name.c: Likewise.
13944         * stdio-common/vfscanf.c: Likewise.
13945         * streams/stropts.h: Likewise.
13946         * sunrpc/rpc_thread.c: Likewise.
13947         * sysdeps/i386/strpbrk.S: Likewise.
13948         * sysdeps/ieee754/k_standard.c: Likewise.
13949         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13950         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13951         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
13952         * sysdeps/mach/hurd/profil.c: Likewise.
13953         * sysdeps/s390/dl-procinfo.h: Likewise.
13954         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
13955         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
13956         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
13957         * sysdeps/x86_64/dl-trampoline.S: Likewise.
13958         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13959
13960 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
13961
13962         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
13963         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
13964
13965 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
13966
13967         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
13968         aix specific files.
13969         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
13970         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
13971         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
13972         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
13973         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
13974         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
13975         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
13976         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
13977
13978 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
13979             Roland McGrath  <roland@hack.frob.com>
13980
13981         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
13982         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13983
13984 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13985
13986         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
13987         __executable_start symbol instead of _start.
13988
13989 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
13990
13991         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
13992         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
13993         Move macros to...
13994         * sysdeps/gnu/ldsodefs.h: ... this new file.
13995
13996         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
13997         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
13998         instead of ELFOSABI_LINUX.
13999
14000         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14001         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14002         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14003         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14004         Likewise.
14005         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14006         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14007         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14008         Likewise.
14009         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14010         (ibm_extended_long_double): Add ieee_nan member.
14011         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14012         (do_test): New function.
14013
14014         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14015         TEST_TRUNC.
14016         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14017         functions, renamed from truncdfsf_test, trunctfsf_test,
14018         trunctfdf_test.
14019         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14020         functions.
14021         (do_test): Run all these.
14022
14023 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14024
14025         * argp/argp-help.c: Fix typos.
14026         * argp/argp-parse.c: Likewise.
14027         * debug/backtracesyms.c: Likewise.
14028         * elf/elf.h: Likewise.
14029         * malloc/malloc.c: Likewise.
14030         * nis/nis_print.c: Likewise.
14031         * resolv/res_comp.c: Likewise.
14032         * stdlib/stdlib.h: Likewise.
14033         * sunrpc/clnt_tcp.c: Likewise.
14034         * sunrpc/clnt_udp.c: Likewise.
14035         * sunrpc/clnt_unix.c: Likewise.
14036         * sysdeps/unix/bsd/ptsname.c: Likewise.
14037         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14038         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14040         Likewise.
14041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14042         Likewise.
14043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14044         Likewise.
14045         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14046
14047 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14048
14049         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14050         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14051
14052 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14053
14054         [BZ #15897]
14055         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14056         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14057         ($(objpfx)bug-dl-leaf): New rule.
14058         ($(objpfx)bug-dl-leaf.so): Likewise.
14059         ($(objpfx)bug-dl-leaf.out): Likewise.
14060         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14061         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14062         * dlfcn/bug-dl-leaf.c: New test.
14063         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14064         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14065         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14066         (dlclose): Likewise.
14067         (dlmopen): Likewise.
14068
14069 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14070
14071         * include/netdb.h [!_ISOMAC]:
14072         Don't include <tls.h>.
14073         (h_errno, __libc_h_errno): Move declaration and macros out of
14074         [_LIBC_REENTRANT].
14075
14076         * include/resolv.h [_RESOLV_H_]:
14077         Don't include <tls.h>.
14078         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14079         * resolv/res_libc.c: Don't include <tls.h>.
14080         (_res): Use __attribute__ ((nocommon)) in place of
14081         __attribute__ ((section (".bss"))).
14082
14083         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14084         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14085
14086         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14087
14088         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14089         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14090
14091         * resolv/res_mkquery.c: Include <sys/time.h>.
14092
14093         * inet/ifreq.c: Moved to ...
14094         * sysdeps/unix/ifreq.c: ... here.
14095         * inet/ifreq.c: New file, true stub version.
14096
14097         * socket/sa_len.c: New file.
14098         * socket/Makefile (aux): Add it.
14099         * sysdeps/unix/sysv/linux/Makefile
14100         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14101         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14102         and #include <socket/sa_len.c>.
14103         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14104         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14105
14106         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14107         * bits/socket.h: ... here.
14108
14109         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14110         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14111         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14112
14113 2013-08-27  Andreas Schwab  <schwab@suse.de>
14114
14115         [BZ #15736]
14116         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14117         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14118         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14119         * string/test-strcasecmp.c (test_main): Run tests in several
14120         locales.
14121         * string/test-strncasecmp.c (test_main): Likewise.
14122
14123         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14124         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14125         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14126         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14127         (__strncasecmp_ssse3) [PIC]: Likewise.
14128
14129 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14130
14131         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14132
14133         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14134         instead of explicitly declaring xdecrypt.
14135         * nis/nss_nis/nis-publickey.c: Likewise.
14136
14137 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14138
14139         [BZ #15890]
14140         * nscd/aicache.c: Include res_hconf.h.
14141         (addhstaiX): Initialize res_hconf.
14142
14143 2013-08-26  Andreas Schwab  <schwab@suse.de>
14144
14145         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14146         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14147
14148 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14149
14150         * nscd/aicache.c (addhstaiX): Fix indentation.
14151
14152 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14153
14154         * configure.ac: Quote $build_pt_chown test.
14155         * configure: Regenerated.
14156
14157 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14158
14159         [BZ #15532]
14160         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14161         * math/s_cexpf.c (__cexpf): Likewise.
14162         * math/s_cexpl.c (__cexpl): Likewise.
14163         * math/libm-test.inc (cexp_test_data): Correct expected return
14164         value for NaN + i0.  Add another test.
14165
14166 2013-08-22  David S. Miller  <davem@davemloft.net>
14167
14168         * po/ca.po: Update Catalan translation from translation project.
14169         * po/uk.po: Add Ukrainian translations from translation project.
14170
14171 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14172
14173         [BZ #15797]
14174         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14175         is infinite, not alongside NaN test.
14176         * math/s_fdimf.c (__fdimf): Likewise.
14177         * math/s_fdiml.c (__fdiml): Likewise.
14178         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14179         errno is unchanged.
14180
14181 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14182
14183         * argp/argp-help.c: Fix typos.
14184         * crypt/speeds.c: Likewise.
14185         * csu/check_fds.c: Likewise.
14186         * elf/dl-load.c: Likewise.
14187         * elf/dl-open.c: Likewise.
14188         * elf/reldep3.c: Likewise.
14189         * elf/reldep.c: Likewise.
14190         * elf/sprof.c: Likewise.
14191         * iconv/iconv_charmap.c: Likewise.
14192         * iconv/skeleton.c: Likewise.
14193         * iconv/strtab.c: Likewise.
14194         * io/lockf64.c: Likewise.
14195         * libio/libioP.h: Likewise.
14196         * resolv/gai_notify.c: Likewise.
14197         * resolv/ns_name.c: Likewise.
14198         * resolv/ns_samedomain.c: Likewise.
14199         * resolv/res_send.c: Likewise.
14200         * stdlib/random.c: Likewise.
14201         * sunrpc/rpc/xdr.h: Likewise.
14202         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14203         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14204         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14205         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14206         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14207         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14208         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14209         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14210         * sysdeps/mach/hurd/check_fds.c: Likewise.
14211         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14212         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14213         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14214         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14215         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14216         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14217         * sysdeps/pthread/aio_notify.c: Likewise.
14218         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14219         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14220         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14221         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14222         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14223
14224 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14225
14226         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
14227         version if bit_Slow_SSE4_2 is set.
14228         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14229         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14230
14231 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14232
14233         [BZ #15867]
14234         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
14235         trampoline stack frame information.
14236         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
14237         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
14238         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
14239         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
14240         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
14241         * sysdeps/unix/sysv/linux/powerpc/init-first.c
14242         (_libc_vdso_platform_setup): Initialize the signal trampolines.
14243         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
14244         sa_flags value.
14245         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
14246         interrupting a syscall and set with option SA_SIGINFO.
14247
14248 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14249
14250         [BZ #15531]
14251         * math/s_cproj.c (__cproj): Only return an infinity if one part of
14252         argument is infinite.
14253         * math/s_cprojf.c (__cprojf): Likewise.
14254         * math/s_cprojl.c (__cprojl): Likewise.
14255         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
14256         * math/libm-test.inc (cproj_test_data): Add more tests.
14257
14258         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
14259
14260         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
14261         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
14262         size.  Use __ffs to determine corresponding shift.
14263
14264 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14265             Roland McGrath  <roland@hack.frob.com>
14266
14267         * Makefile (INSTALL): Remove trailing blank lines from output of
14268         makeinfo.
14269
14270 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14271
14272         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
14273         Align 32 bit compat elf_greg to 8 bytes.
14274
14275 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14276
14277         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
14278
14279 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14280
14281         * string/strcoll_l.c (coll_seq): New structure.
14282         (get_next_seq_cached): New function.
14283         (get_next_seq): New function.
14284         (do_compare): New function.
14285         (STRCOLL): Use GNU style definition.  Simplify implementation
14286         by using get_next_seq, get_next_seq_cached and do_compare.
14287
14288 2013-08-16  Florian Weimer  <fweimer@redhat.com>
14289
14290         [BZ #14699]
14291         CVE-2013-4237
14292         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
14293         member.
14294         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
14295         member.
14296         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
14297         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
14298         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
14299         conditional.
14300         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
14301         GETDENTS_64BIT_ALIGNED.
14302         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14303         * manual/filesys.texi (Reading/Closing Directory): Document
14304         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
14305         strongly.
14306         * manual/conf.texi (Limits for Files): Add portability note to
14307         NAME_MAX, PATH_MAX.
14308         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
14309
14310 2013-08-13  Andreas Schwab  <schwab@suse.de>
14311
14312         [BZ #15749]
14313         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
14314         of fabs.
14315         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
14316         LDBL_MAX_EXP >= 16384]: Add tests for it.
14317
14318 2013-08-12  David S. Miller  <davem@davemloft.net>
14319
14320         * version.h (RELEASE): Set to "development".
14321         (VERSION): Set to "2.18.90".
14322         * NEWS: Add 2.19 section.
14323
14324 2013-08-03  David S. Miller  <davem@davemloft.net>
14325
14326         * po/ko.po: Update Korean translation from translation project.
14327
14328 2013-08-01  David S. Miller  <davem@davemloft.net>
14329
14330         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
14331         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
14332         Bilka.
14333
14334 2013-07-30  David S. Miller  <davem@davemloft.net>
14335
14336         * po/fr.po: Update French translation from translation project.
14337
14338 2013-07-28  David S. Miller  <davem@davemloft.net>
14339
14340         * po/cs.po: Update Czech translation from translation project.
14341
14342         * po/sv.po: Update Swedish translation from translation project.
14343
14344 2013-07-27  David S. Miller  <davem@davemloft.net>
14345
14346         * po/eo.po: Update Esperanto translation from translation project.
14347
14348         * po/vi.po: Update Vietnamese translation from translation project.
14349
14350         * po/de.po: Update German translation from translation project.
14351
14352 2013-07-26  David S. Miller  <davem@davemloft.net>
14353
14354         * po/bg.po: Update Bulgarian translation from translation project.
14355
14356         * po/nl.po: Update Dutch translation from translation project.
14357         * po/pl.po: Update Polish translation from translation project.
14358         * po/ru.po: Update Russian translation from translation project.
14359
14360 2013-07-24  David S. Miller  <davem@davemloft.net>
14361
14362         * po/libc.pot: Update.
14363
14364 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14365
14366         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
14367         variable page size.
14368         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
14369         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
14370         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
14371
14372 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14373
14374         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
14375
14376 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14377             Andreas Schwab  <schwab@suse.de>
14378             Roland McGrath  <roland@hack.frob.com>
14379             Joseph Myers  <joseph@codesourcery.com>
14380             Carlos O'Donell  <carlos@redhat.com>
14381
14382         [BZ #15755]
14383         * config.h.in: Define HAVE_PT_CHOWN.
14384         * config.make.in (build-pt-chown): New variable.
14385         * configure.in (--enable-pt_chown): New configure option.
14386         * configure: Regenerate.
14387         * login/Makefile: Include Makeconfig.  Build pt_chown only if
14388         build-pt-chown is enabled.
14389         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
14390         pt_chown to fix pty ownership.
14391         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
14392         CLOSE_ALL_FDS.
14393         * manual/install.texi (Configuring and compiling): Mention
14394         --enable-pt_chown. Add @findex for grantpt.
14395         * INSTALL: Regenerate.
14396
14397 2013-07-20  David S. Miller  <davem@davemloft.net>
14398
14399         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
14400         difference between 32-bit and 64-bit.
14401
14402 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
14403
14404         [BZ #15711]
14405         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
14406         Avoid system header dependency with -ffreestanding.
14407         ($(objpfx)bits/syscall%d): Likewise.
14408
14409 2013-07-13  David S. Miller  <davem@davemloft.net>
14410
14411         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
14412         underflows from atanl/atan2l due to bug 15319.
14413         (casinh_test_data): Likewise.
14414
14415 2013-07-07  David S. Miller  <davem@davemloft.net>
14416
14417         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
14418
14419 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
14420
14421         * sysdeps/i386/fpu/libm-test-ulps: Update.
14422         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14423
14424 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14425
14426         * configure.in (--enable-lock-elision): Fix message text.
14427         * INSTALL: Regenerate.
14428         * configure: Regenerate.
14429
14430 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14431
14432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14433
14434 2013-07-03  Andreas Jaeger  <aj@suse.de>
14435
14436         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
14437         define.
14438         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
14439         (ptrace_peeksiginfo_args): Add.
14440         (__ptrace_peeksiginfo_flags): Add.
14441         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14442         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14443         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14444
14445 2013-07-03  Allan McRae  <allan@archlinux.org>
14446
14447         * sysdeps/i386/fpu/libm-test-ulps: Update.
14448
14449 2013-07-02  David S. Miller  <davem@davemloft.net>
14450
14451         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14452
14453 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
14454
14455         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14456
14457 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14458
14459         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
14460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14461
14462 2013-07-02  Andi Kleen <ak@linux.intel.com>
14463
14464         * config.h.in (ENABLE_LOCK_ELISION): Add.
14465         * configure.in (--enable-lock-elision): Add option.
14466         * manual/install.texi: Document --enable lock elision.
14467         * configure: Regenerate
14468         * INSTALL: Regenerate.
14469
14470 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14471
14472         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
14473         SSE4.2 strcasecmp for libc.a.
14474         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
14475
14476 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14477
14478         [BZ #13304]
14479         * soft-fp/op-common.h (_FP_FMA): New macro.
14480         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
14481         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
14482         (_FP_MUL_MEAT_1_imm): ... here.
14483         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
14484         (_FP_MUL_MEAT_1_wide): ... here.
14485         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
14486         (_FP_MUL_MEAT_1_hard): ... here.
14487         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
14488         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
14489         (_FP_MUL_MEAT_2_wide): ... here.
14490         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
14491         (_FP_MUL_MEAT_2_wide_3mul): ... here.
14492         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
14493         (_FP_MUL_MEAT_2_gmp): ... here.
14494         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
14495         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
14496         (_FP_MUL_MEAT_4_wide): ... here.
14497         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
14498         (_FP_MUL_MEAT_4_gmp): ... here.
14499         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
14500         (_FP_WFRACBITS_DW_S): Likewise.
14501         (_FP_WFRACXBITS_DW_S): Likewise.
14502         (_FP_HIGHBIT_DW_S): Likewise.
14503         (FP_FMA_S): Likewise.
14504         (_FP_FRAC_HIGH_DW_S): Likewise.
14505         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
14506         (_FP_WFRACBITS_DW_D): Likewise.
14507         (_FP_WFRACXBITS_DW_D): Likewise.
14508         (_FP_HIGHBIT_DW_D): Likewise.
14509         (FP_FMA_D): Likewise.
14510         (_FP_FRAC_HIGH_DW_D): Likewise.
14511         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
14512         (_FP_WFRACBITS_DW_E): Likewise.
14513         (_FP_WFRACXBITS_DW_E): Likewise.
14514         (_FP_HIGHBIT_DW_E): Likewise.
14515         (FP_FMA_E): Likewise.
14516         (_FP_FRAC_HIGH_DW_E): Likewise.
14517         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
14518         (_FP_WFRACBITS_DW_Q): Likewise.
14519         (_FP_WFRACXBITS_DW_Q): Likewise.
14520         (_FP_HIGHBIT_DW_Q): Likewise.
14521         (FP_FMA_Q): Likewise.
14522         (_FP_FRAC_HIGH_DW_Q): Likewise.
14523         * soft-fp/fmasf4.c: New file.
14524         * soft-fp/fmadf4.c: Likewise.
14525         * soft-fp/fmatf4.c: Likewise.
14526
14527 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14528
14529         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14530         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
14531         Silvermont.
14532         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
14533         macro.
14534         (index_Slow_SSE4_2): Likewise.
14535         (index_Prefer_PMINUB_for_stringop): Likewise.
14536         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
14537         bit_Slow_SSE4_2 is set.
14538         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14539         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14540
14541 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14542
14543         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
14544         rtld_global._dl_hwcap2.
14545         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
14546         POWER8.
14547         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
14548         POWER8 feature descriptions defined in _dl_hwcap2.
14549         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
14550         string handling for POWER8 feature bits.
14551         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
14552         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
14553         _dl_powerpc_cap_flags.
14554         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
14555         * sysdeps/powerpc/rtld-global-offsets.sym
14556         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
14557         _dl_hwcap2 in the rtld_global_ro structure.
14558
14559 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14560
14561         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
14562         hardware capabilities in support of AT_HWCAP2.
14563         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
14564         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
14565         GLRO(dl_hwcap2).
14566         (_dl_show_auxv): Add support for calling _dl_procinfo to display
14567         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
14568         explicitly the unknown a_type display mechanism is used.
14569         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
14570         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
14571         struct member.
14572         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
14573         to macro prototype for AT_HWCAP2 support.
14574         * sysdeps/i386/dl-procinfo.h: Likewise.
14575         * sysdeps/s390/dl-procinfo.h: Likewise.
14576         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
14577         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
14578         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
14579         return -1 for unknown a_type display fallback.
14580         * sysdeps/sparc/dl-procinfo.h: Likewise.
14581         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
14582         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
14583
14584 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
14585
14586         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
14587         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
14588
14589 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
14590
14591         [BZ #12492]
14592         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
14593         mprotect making __stack_prot writable.
14594
14595 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
14596             Joseph Myers  <joseph@codesourcery.com>
14597
14598         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
14599         as being properly aligned.
14600
14601 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
14602
14603         * dlfcn/modstatic5.c: New file.
14604         * dlfcn/tststatic5.c: New file.
14605         * dlfcn/Makefile (tests): Add tststatic5.
14606         (tests-static): Likewise.
14607         (modules-names): Add modstatic5.
14608         (tststatic5-ENV): New variable.
14609         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
14610
14611         [BZ #15022]
14612         * elf/dl-support.c (_dl_main_map): New variable.
14613         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
14614         (_dl_nns, _dl_load_adds): Set to 1.
14615         (_dl_initial_searchlist): Refer to _dl_main_map.
14616         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
14617         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
14618         call to _dl_get_origin.
14619         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
14620         around call_map.
14621         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
14622         * dlfcn/modstatic3.c: New file.
14623         * dlfcn/tststatic3.c: New file.
14624         * dlfcn/tststatic4.c: New file.
14625         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
14626         (tests-static): Likewise.
14627         (modules-names): Add modstatic3.
14628         (tststatic3-ENV, tststatic4-ENV): New variables.
14629         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
14630         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
14631
14632 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
14633
14634         * configure.in (CC): Require GCC version 4.4 or later.
14635         * configure: Regenerated.
14636         * manual/install.texi (Tools for Compilation): Update GCC version
14637         requirement.
14638         * INSTALL: Regenerated.
14639
14640 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14641
14642         [BZ #15674]
14643         * string/test-memcmp.c (check2): New.
14644         (main): Call check2.
14645
14646         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
14647
14648 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
14649
14650         [BZ #15022]
14651         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
14652         over to...
14653         (dl_open_worker) [!SHARED]: ... here.
14654
14655 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14656
14657         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
14658
14659 2013-06-25  Richard Henderson  <rth@redhat.com>
14660
14661         * locale/programs/locarchive.c: Include <libc-internal.h>
14662
14663 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
14664
14665         * manual/texinfo.tex: Update to version 2013-06-21.17, with
14666         trailing whitespace removed.
14667
14668 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
14669
14670         [BZ #10283]
14671         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
14672         * locale/programs/locarchive.c: Include libc-mmap.h.
14673         (prepare_address_space): Take two new outputs (the mmap base and len).
14674         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
14675         values.
14676         (create_archive): Declare new mmap base and len values for
14677         prepare_address_space, and store the result in ah.
14678         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
14679         (enlarge_archive): If ah->mmap_base is not NULL, use that and
14680         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
14681         Declare new mmap base and len values for
14682         prepare_address_space, and store the result in new_ah.
14683         (open_archive): Declare new mmap base and len values for
14684         prepare_address_space, and store the result in ah.
14685         (close_archive): If ah->mmap_base is not NULL, use that and
14686         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
14687         * sysdeps/generic/libc-mmap.h: New file.
14688
14689 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
14690
14691         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
14692         (ALIGN_UP): Likewise.
14693         (PTR_ALIGN_DOWN): Likewise.
14694         (PTR_ALIGN_UP): Likewise.
14695
14696 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14697
14698         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
14699         entry mapped to PPC_PLATFORM_POWER8.
14700         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
14701         POWER8.
14702         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
14703         (_dl_string_platform): Add case for exporting platform position for
14704         POWER8.
14705         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
14706         search path to sysdeps/powerpc/powerpc32/power8 directory.
14707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
14708         search path to sysdeps/powerpc/powerpc64/power8 directory.
14709         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
14710         power7 directories.
14711         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
14712         power7 directories.
14713
14714 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14715
14716         * INSTALL: Regenerate.
14717
14718         * nscd/connections.c (nscd_init): Fix comment.
14719
14720 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
14721
14722         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
14723
14724         [BZ #15667]
14725         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
14726         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
14727
14728 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
14729
14730         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
14731         DL_DST_REQ_STATIC.
14732         (DL_DST_REQ_STATIC): Remove macro.
14733
14734 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
14735
14736         [BZ #7006]
14737         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
14738         with a shift of 0 bits.
14739
14740 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
14741
14742         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
14743         $(tststatic-ENV).
14744
14745 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14746
14747         [BZ #15655]
14748         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
14749
14750 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14751
14752         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
14753         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
14754         accepts -fno-tree-loop-distribute-patterns.
14755         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
14756         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
14757         recursive call.
14758         * string/memset.c (memset): Likewise.
14759         * string/test-memmove.c (simple_memmove): Disable loop transformation
14760         to library calls.
14761         * string/test-memset.c (simple_memset): Likewise.
14762         * benchtests/bench-memmove.c (simple_memmove): Likewise.
14763         * benchtests/bench-memset.c (simple_memset): Likewise.
14764         * configure: Regenerated.
14765
14766 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
14767
14768         * math/test-misc.c (main): Ignore fesetround failure when failures
14769         of subsequent rounding tests would be ignored.
14770
14771         [BZ #15654]
14772         * math/fedisblxcpt.c (fedisableexcept): Return 0.
14773         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
14774         * math/fegetenv.c (__fegetenv): Return 0.
14775         * math/fegetexcept.c (fegetexcept): Return 0.
14776         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
14777         FE_TONEAREST.
14778         * math/feholdexcpt.c (feholdexcept): Return 0.
14779         * math/fesetenv.c (__fesetenv): Return 0.
14780         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
14781         argument FE_TONEAREST.
14782         * math/feupdateenv.c (__feupdateenv): Return 0.
14783         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
14784
14785 2013-06-18  Roland McGrath  <roland@hack.frob.com>
14786
14787         * elf/rtld-Rules (rtld-compile-command.S): New variable.
14788         (rtld-compile-command.s, rtld-compile-command.c): New variables.
14789         ($(objpfx)rtld-%.os rules): Use them.
14790
14791 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14792
14793         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
14794         fields.
14795
14796 2013-06-17  Roland McGrath  <roland@hack.frob.com>
14797
14798         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
14799         length of target pattern, then descending length of dependency pattern.
14800         * configure.in (AWK): Require gawk 3.1.2 or newer.
14801         * manual/install.texi (Tools for Compilation): Say that we do.
14802         * configure: Regenerated.
14803
14804         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
14805         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
14806         * scripts/sysd-rules.awk: ... this new script.
14807         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
14808         than a glob-style pattern.
14809
14810 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
14811
14812         * math/test-misc.c (main): Do not treat incorrectly rounded
14813         conversions as failure unless ROUNDING_TESTS passes.
14814
14815 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
14816
14817         [BZ #15631]
14818         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
14819         restore exception state around main square root computation, then
14820         check for inexactness explicitly.
14821
14822         * math/libm-test.inc (fma_test_data): Add another test.
14823
14824 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
14825
14826         * manual/threads.texi (Non-POSIX Extensions): New document
14827         node.  Document pthread_getattr_default_np and
14828         pthread_setattr_default_np.
14829
14830         * Versions.def (libpthread): Add GLIBC_2.18.
14831         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
14832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
14833         Likewise.
14834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14835         Likewise.
14836         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14837         Likewise.
14838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14839         Likewise.
14840         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
14841         Likewise.
14842         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14843         Likewise.
14844         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14845         Likewise.
14846         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
14847         Likewise.
14848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14849         Likewise.
14850
14851 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14852
14853         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14854         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
14855
14856 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14857             H.J. Lu  <hjl.tools@gmail.com>
14858
14859         [BZ #15627]
14860         * sysdeps/x86_64/rtld-memset.c: Remove file.
14861         * sysdeps/x86_64/rtld-memset.S: New file.
14862
14863 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
14864
14865         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
14866         (test_in_one_mode): Take arguments for whether the rounding mode
14867         is supported for each floating-point type.
14868         (do_test): Pass new arguments to test_in_one_mode using
14869         ROUNDING_TESTS.
14870
14871 2013-06-13  Roland McGrath  <roland@hack.frob.com>
14872
14873         * posix/tst-waitid.c (do_test): Distinguish different instances of
14874         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
14875         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
14876         before entering the kernel for waitpid.
14877
14878 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
14879
14880         * NEWS: Fix note on clock function precision.  Text by Roland
14881         McGrath.
14882
14883 2013-06-13  Roland McGrath  <roland@hack.frob.com>
14884
14885         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
14886         it into place only when and if the sanity check passes.
14887
14888 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
14889
14890         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
14891         output for whether conversion result is exact.  Take argument
14892         indicating whether type is IBM long double.
14893         (round_for_all): Change need_exact field to ibm_ld.
14894         * stdlib/tst-strtod-round.c (struct exactness): New type.
14895         (struct test): Change bool ld_ok field to struct exactness exact.
14896         (TEST): Update all definitions for change to field.
14897         (tests): Regenerate array contents.
14898         (test_in_one_mode): Take pointer to new field instead of old ld_ok
14899         field value.  Check for IBM long double here.
14900         (do_test): Update calls to test_in_one_mode.
14901
14902 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
14903
14904         [BZ #12515]
14905         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
14906         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
14907
14908 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14909
14910         [BZ #15605]
14911         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
14912         generated by the compiler on loop optimizations.
14913         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
14914         general definitions.
14915
14916 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
14917
14918         * math/bug-nextafter.c: Include <math-tests.h>.
14919         (main): Only test for exceptions if EXCEPTION_TESTS is true for
14920         the relevant type.
14921         * math/bug-nexttoward.c: Include <math-tests.h>.
14922         (main): Only test for exceptions if EXCEPTION_TESTS is true for
14923         the relevant type.
14924         * math/test-misc.c: Include <math-tests.h>.
14925         (main): Only test for exceptions if EXCEPTION_TESTS is true for
14926         the relevant type.
14927
14928 2013-06-12  Andreas Jaeger  <aj@suse.de>
14929
14930         * po/ia.po: Update Interlingua translation from translation
14931         project.
14932
14933 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
14934
14935         * include/fenv.h: Include stdbool.h.
14936         (struct rm_ctx): New structure.
14937         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
14938         Define macro.
14939         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
14940         (SET_RESTORE_ROUNDF): Likewise.
14941         (SET_RESTORE_ROUNDL): Likewise.
14942         (SET_RESTORE_ROUND_NOEX): Likewise.
14943         (SET_RESTORE_ROUND_NOEXF): Likewise.
14944         (SET_RESTORE_ROUND_NOEXL): Likewise.
14945         (SET_RESTORE_ROUND_53BIT): Likewise.
14946         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
14947         (libc_feresetround_noexf_ctx): Likewise.
14948         (libc_feresetround_noexl_ctx): Likewise.
14949         (libc_feholdsetround_53bit_ctx): Likewise.
14950         (libc_feresetround_53bit_ctx): Likewise.
14951         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
14952         (libc_feholdexcept_setround_sse_ctx): New function.
14953         (libc_fesetenv_sse_ctx): Likewise.
14954         (libc_feupdateenv_sse_ctx): Likewise.
14955         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
14956         (libc_feholdexcept_setround_387_ctx): Likewise.
14957         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
14958         (libc_feholdsetround_387_prec_ctx): Likewise.
14959         (libc_feholdsetround_387_ctx): Likewise.
14960         (libc_feholdsetround_387_53bit_ctx): Likewise.
14961         (libc_feholdsetround_sse_ctx): Likewise.
14962         (libc_feresetround_sse_ctx): Likewise.
14963         (libc_feresetround_387_ctx): Likewise.
14964         (libc_feupdateenv_387_ctx): Likewise.
14965         (libc_feholdexcept_setroundf_ctx): Define macro.
14966         (libc_fesetenvf_ctx): Likewise.
14967         (libc_feupdateenvf_ctx): Likewise.
14968         (libc_feholdsetroundf_ctx): Likewise.
14969         (libc_feresetroundf_ctx): Likewise.
14970         (libc_feholdexcept_setround_ctx): Likewise.
14971         (libc_fesetenv_ctx): Likewise.
14972         (libc_feupdateenv_ctx): Likewise.
14973         (libc_feholdsetround_ctx): Likewise.
14974         (libc_feresetround_ctx): Likewise.
14975         (libc_feholdexcept_setroundl_ctx): Likewise.
14976         (libc_feupdateenvl_ctx): Likewise.
14977         (libc_feholdsetroundl_ctx): Likewise.
14978         (libc_feresetroundl_ctx): Likewise.
14979         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
14980         (libc_feresetround_53bit_ctx): Likewise.
14981
14982 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14983
14984         * locale/iso-639.def: Convert to UTF-8.
14985
14986 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
14987
14988         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
14989         (EXCEPTION_TESTS_double): Likewise.
14990         (EXCEPTION_TESTS_long_double): Likewise.
14991         (EXCEPTION_TESTS): Likewise.
14992         * math/libm-test.inc (test_exceptions): Only test exceptions if
14993         EXCEPTION_TESTS (FLOAT).
14994
14995 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14996
14997         * benchtests/Makefile (string-bench): Add strcpy_chk and
14998         stpcpy_chk.
14999         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15000         * benchtests/bench-stpcpy_chk.c: New file.
15001         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15002         * benchtests/bench-strcpy_chk.c: New file.
15003         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15004         code.
15005         (do_test): Likewise.
15006
15007 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15008
15009         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15010         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15011         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15012         with tabs where appropriate.
15013         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15014         dl-procinfo.h.
15015         [PPC_PLATFORM_PPC440]: Likewise.
15016         [PPC_PLATFORM_PPC464]: Likewise.
15017         [PPC_PLATFORM_PPC476]: Likewise.
15018         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15019         ppc464, and ppc476 platform strings merging from ports/
15020         dl-procinfo.h.
15021
15022 2013-06-11  Andreas Schwab  <schwab@suse.de>
15023
15024         [BZ #14991]
15025         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15026         (from_ucs4_idx): Regenerate.
15027         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15028         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15029         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15030         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15031         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15032         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15033         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15034         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15035         from FROM_LOOP and TO_LOOP specific macros.
15036         (BODY): Handle combining characters.
15037         * iconvdata/BIG5HKSCS.irreversible: Update.
15038         * iconvdata/BIG5HKSCS.precomposed: New file.
15039         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15040         characters.
15041         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15042
15043 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15044
15045         * include/sys/time.h: Fix indentation and add copyright header.
15046
15047         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15048         (do_test): Likewise.
15049         * string/test-memchr.c (do_one_test): Likewise.
15050         (do_test): Likewise.
15051         * string/test-memcmp.c (do_one_test): Likewise.
15052         (do_test): Likewise.
15053         * string/test-memcpy.c (do_one_test): Likewise.
15054         (do_test): Likewise.
15055         * string/test-memmem.c (do_one_test): Likewise.
15056         (do_test): Likewise.
15057         (do_random_tests): Likewise.
15058         * string/test-memmove.c (do_one_test): Likewise.
15059         (do_test): Likewise.
15060         * string/test-memset.c (do_one_test): Likewise.
15061         (do_test): Likewise.
15062         * string/test-rawmemchr.c (do_one_test): Likewise.
15063         (do_test): Likewise.
15064         * string/test-strcasecmp.c (do_one_test): Likewise.
15065         (do_test): Likewise.
15066         * string/test-strcasestr.c (do_one_test): Likewise.
15067         (do_test): Likewise.
15068         * string/test-strcat.c (do_one_test): Likewise.
15069         (do_test): Likewise.
15070         * string/test-strchr.c (do_one_test): Likewise.
15071         (do_test): Likewise.
15072         * string/test-strcmp.c (do_one_test): Likewise.
15073         (do_test): Likewise.
15074         * string/test-strcpy.c (do_one_test): Likewise.
15075         (do_test): Likewise.
15076         * string/test-string.h: Likewise.
15077         (test_init): Likewise.
15078         * string/test-strlen.c (do_one_test): Likewise.
15079         (do_test): Likewise.
15080         * string/test-strncasecmp.c (do_one_test): Likewise.
15081         (do_test): Likewise.
15082         * string/test-strncat.c (do_one_test): Likewise.
15083         (do_test): Likewise.
15084         * string/test-strncmp.c (do_one_test): Likewise.
15085         (do_test_limit): Likewise.
15086         (do_test): Likewise.
15087         * string/test-strncpy.c (do_one_test): Likewise.
15088         (do_test): Likewise.
15089         * string/test-strnlen.c (do_one_test): Likewise.
15090         (do_test): Likewise.
15091         * string/test-strpbrk.c (do_one_test): Likewise.
15092         (do_test): Likewise.
15093         * string/test-strrchr.c (do_one_test): Likewise.
15094         (do_test): Likewise.
15095         * string/test-strspn.c (do_one_test): Likewise.
15096         (do_test): Likewise.
15097         * string/test-strstr.c (do_one_test): Likewise.
15098         (do_test): Likewise.
15099
15100         * benchtests/Makefile (string-bench): Add string benchmarks.
15101         * benchtests/bench-bcopy-ifunc.c: New file.
15102         * benchtests/bench-bcopy.c: New file.
15103         * benchtests/bench-bzero-ifunc.c: New file.
15104         * benchtests/bench-bzero.c: New file.
15105         * benchtests/bench-memccpy-ifunc.c: New file.
15106         * benchtests/bench-memccpy.c: New file.
15107         * benchtests/bench-memchr-ifunc.c: New file.
15108         * benchtests/bench-memchr.c: New file.
15109         * benchtests/bench-memcmp-ifunc.c: New file.
15110         * benchtests/bench-memcmp.c: New file.
15111         * benchtests/bench-memmem-ifunc.c: New file.
15112         * benchtests/bench-memmem.c: New file.
15113         * benchtests/bench-memmove-ifunc.c: New file.
15114         * benchtests/bench-memmove.c: New file.
15115         * benchtests/bench-mempcpy-ifunc.c: New file.
15116         * benchtests/bench-mempcpy.c: New file.
15117         * benchtests/bench-memset-ifunc.c: New file.
15118         * benchtests/bench-memset.c: New file.
15119         * benchtests/bench-rawmemchr-ifunc.c: New file.
15120         * benchtests/bench-rawmemchr.c: New file.
15121         * benchtests/bench-stpcpy-ifunc.c: New file.
15122         * benchtests/bench-stpcpy.c: New file.
15123         * benchtests/bench-stpncpy-ifunc.c: New file.
15124         * benchtests/bench-stpncpy.c: New file.
15125         * benchtests/bench-strcasecmp-ifunc.c: New file.
15126         * benchtests/bench-strcasecmp.c: New file.
15127         * benchtests/bench-strcasestr-ifunc.c: New file.
15128         * benchtests/bench-strcasestr.c: New file.
15129         * benchtests/bench-strcat-ifunc.c: New file.
15130         * benchtests/bench-strcat.c: New file.
15131         * benchtests/bench-strchr-ifunc.c: New file.
15132         * benchtests/bench-strchr.c: New file.
15133         * benchtests/bench-strchrnul-ifunc.c: New file.
15134         * benchtests/bench-strchrnul.c: New file.
15135         * benchtests/bench-strcmp-ifunc.c: New file.
15136         * benchtests/bench-strcmp.c: New file.
15137         * benchtests/bench-strcpy-ifunc.c: New file.
15138         * benchtests/bench-strcpy.c: New file.
15139         * benchtests/bench-strcspn-ifunc.c: New file.
15140         * benchtests/bench-strcspn.c: New file.
15141         * benchtests/bench-strlen-ifunc.c: New file.
15142         * benchtests/bench-strlen.c: New file.
15143         * benchtests/bench-strncasecmp-ifunc.c: New file.
15144         * benchtests/bench-strncasecmp.c: New file.
15145         * benchtests/bench-strncat-ifunc.c: New file.
15146         * benchtests/bench-strncat.c: New file.
15147         * benchtests/bench-strncmp-ifunc.c: New file.
15148         * benchtests/bench-strncmp.c: New file.
15149         * benchtests/bench-strncpy-ifunc.c: New file.
15150         * benchtests/bench-strncpy.c: New file.
15151         * benchtests/bench-strnlen-ifunc.c: New file.
15152         * benchtests/bench-strnlen.c: New file.
15153         * benchtests/bench-strpbrk-ifunc.c: New file.
15154         * benchtests/bench-strpbrk.c: New file.
15155         * benchtests/bench-strrchr-ifunc.c: New file.
15156         * benchtests/bench-strrchr.c: New file.
15157         * benchtests/bench-strspn-ifunc.c: New file.
15158         * benchtests/bench-strspn.c: New file.
15159         * benchtests/bench-strstr-ifunc.c: New file.
15160         * benchtests/bench-strstr.c: New file.
15161
15162         * benchtests/Makefile: Disable parallel execution of targets.
15163         (string-bench): Add memcpy.
15164         (benchset): New variable to store a list of benchmark sets.
15165         (bench-func): Renamed from bench.
15166         (bench-set): New target.
15167         (bench): Depend on bench-func and bench-set.
15168         * benchtests/README: Add section on benchmark sets.
15169         * benchtests/bench-memcpy-ifunc.c: New file.
15170         * benchtests/bench-memcpy.c: New file.
15171         * benchtests/bench-string.h: New file.
15172
15173 2013-06-11  Andreas Schwab  <schwab@suse.de>
15174
15175         [BZ #15577]
15176         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15177         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15178         values in the triple.
15179         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15180         terminator in the group key.
15181
15182 2013-06-11  Andreas Jaeger  <aj@suse.de>
15183
15184         * po/zh_TW.po: Update Chinese (traditional) translation from
15185         translation project.
15186
15187 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15188
15189         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15190         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15191         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15192         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15193         (clock_getcpuclockid): Likewise.
15194         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15195         Add weak_alias and libc_hidden_def.
15196         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15197         * rt/clock_gettime.c (clock_gettime): Rename to
15198         __clock_gettime.  Add weak_alias and libc_hidden_def.
15199         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15200         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15201         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15202         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15203         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15204         Likewise.
15205         * rt/clock_settime.c (clock_settime): Rename to
15206         __clock_settime.  Add weak_alias and libc_hidden_def.
15207         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15208
15209 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15210
15211         * mach/err_boot.sub: Remove trailing whitespace.
15212         * mach/err_ipc.sub: Likewise.
15213         * mach/err_mach.sub: Likewise.
15214
15215         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15216         (ROUNDING_TESTS_double): Likewise.
15217         (ROUNDING_TESTS_long_double): Likewise.
15218         (ROUNDING_TESTS): Likewise.
15219         * math/libm-test.inc: Include <math-tests.h>.
15220         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15221         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15222         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15223         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15224
15225 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15226
15227         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
15228         of assigning.
15229
15230 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
15231
15232         * sysdeps/gnu/errlist.awk: Do not generate space at end of
15233         otherwise empty TRANS lines.
15234         * sysdeps/gnu/errlist.c: Regenerated.
15235
15236         * catgets/gencat.c (error_print): Use (void) in function
15237         definition.
15238         * crypt/crypt_util.c (__init_des): Likewise.
15239         * crypt/speeds.c (Stop): Likewise.
15240         (main): Likewise.
15241         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
15242         * inet/ruserpass.c (token): Likewise.
15243         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
15244         * intl/localealias.c (extend_alias_table): Likewise.
15245         * intl/plural-exp.c (init_germanic_plural): Likewise.
15246         * libio/fcloseall.c (__fcloseall): Likewise.
15247         * libio/genops.c (_IO_flush_all): Likewise.
15248         (_IO_flush_all_linebuffered): Likewise.
15249         (_IO_cleanup): Likewise.
15250         (_IO_iter_begin): Likewise.
15251         (_IO_iter_end): Likewise.
15252         (_IO_list_lock): Likewise.
15253         (_IO_list_unlock): Likewise.
15254         (_IO_list_resetlock): Likewise.
15255         * libio/getchar.c (getchar): Likewise.
15256         * libio/getchar_u.c (getchar_unlocked): Likewise.
15257         * libio/getwchar.c (getwchar): Likewise.
15258         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
15259         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
15260         * login/getpt.c (__getpt): Likewise.
15261         * login/tst-utmp.c (main): Likewise.
15262         * malloc/hooks.c (__malloc_check_init): Likewise.
15263         * malloc/malloc.c (__malloc_stats): Likewise.
15264         * malloc/mtrace.c (tr_break): Likewise.
15265         (mtrace): Likewise.
15266         (muntrace): Likewise.
15267         * misc/fstab.c (endfsent): Likewise.
15268         * misc/getclktck.c (__getclktck): Likewise.
15269         * misc/getdtsz.c (__getdtablesize): Likewise.
15270         * misc/gethostid.c (gethostid): Likewise.
15271         * misc/getpagesize.c (__getpagesize): Likewise.
15272         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
15273         (__get_nprocs): Likewise.
15274         (__get_phys_pages): Likewise.
15275         (__get_avphys_pages): Likewise.
15276         * misc/getttyent.c (getttyent): Likewise.
15277         (setttyent): Likewise.
15278         (endttyent): Likewise.
15279         * misc/getusershell.c (getusershell): Likewise.
15280         (endusershell): Likewise.
15281         (setusershell): Likewise.
15282         (initshells): Likewise.
15283         * misc/hsearch.c (__hdestroy): Likewise.
15284         * misc/sync.c (sync): Likewise.
15285         * misc/syslog.c (closelog_internal): Likewise.
15286         (closelog): Likewise.
15287         * misc/ttyslot.c (ttyslot): Likewise.
15288         * misc/vhangup.c (vhangup): Likewise.
15289         * posix/fork.c (__fork): Likewise.
15290         * posix/getegid.c (__getegid): Likewise.
15291         * posix/geteuid.c (__geteuid): Likewise.
15292         * posix/getgid.c (__getgid): Likewise.
15293         * posix/getpid.c (__getpid): Likewise.
15294         * posix/getppid.c (__getppid): Likewise.
15295         * posix/getuid.c (__getuid): Likewise.
15296         * posix/pause.c (pause): Likewise.
15297         * posix/setpgrp.c (setpgrp): Likewise.
15298         * posix/setsid.c (__setsid): Likewise.
15299         * posix/test-vfork.c (noop): Likewise.
15300         * resolv/gethnamaddr.c (_endhtent): Likewise.
15301         (_gethtent): Likewise.
15302         (ht_endhostent): Likewise.
15303         (gethostent): Likewise.
15304         (dns_service): Likewise.
15305         * stdlib/drand48.c (drand48): Likewise.
15306         * stdlib/lrand48.c (lrand48): Likewise.
15307         * stdlib/mrand48.c (mrand48): Likewise.
15308         * stdlib/rand.c (rand): Likewise.
15309         * stdlib/random.c (__random): Likewise.
15310         * stdlib/setenv.c (clearenv): Likewise.
15311         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
15312         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
15313         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
15314         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
15315         (__get_nprocs): Likewise.
15316         (__get_phys_pages): Likewise.
15317         (__get_avphys_pages): Likewise.
15318         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
15319         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
15320         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
15321         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
15322         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
15323         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
15324         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
15325         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
15326         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
15327         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
15328         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
15329         * sysdeps/mach/hurd/sync.c (sync): Likewise.
15330         * sysdeps/posix/clock.c (clock): Likewise.
15331         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
15332         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
15333         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
15334         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
15335         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
15336         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
15337         (__get_nprocs_conf): Likewise.
15338         (__get_phys_pages): Likewise.
15339         (__get_avphys_pages): Likewise.
15340         * time/clock.c (clock): Likewise.
15341         * time/tzset.c (__tzname_max): Likewise.
15342
15343 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
15344
15345         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
15346         (__bswap_32): Do not use "register".
15347         * crypt/crypt.c (_ufc_doit_r): Likewise.
15348         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
15349         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
15350         * gmon/gmon.c (__monstartup): Likewise.
15351         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
15352         * hurd/hurdmalloc.c (more_memory): Likewise.
15353         (malloc): Likewise.
15354         (free): Likewise.
15355         (realloc): Likewise.
15356         (malloc_fork_prepare): Likewise.
15357         (malloc_fork_parent): Likewise.
15358         (malloc_fork_child): Likewise.
15359         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
15360         (_svcauth_des): Likewise.
15361         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15362         * inet/inet_net.c (inet_network): Likewise.
15363         * inet/inet_netof.c (inet_netof): Likewise.
15364         * inet/rcmd.c (__validuser2_sa): Likewise.
15365         * io/fts.c (fts_open): Likewise.
15366         (fts_load): Likewise.
15367         (fts_close): Likewise.
15368         (fts_read): Likewise.
15369         (fts_children): Likewise.
15370         (fts_build): Likewise.
15371         (fts_stat): Likewise.
15372         (fts_sort): Likewise.
15373         (fts_alloc): Likewise.
15374         (fts_lfree): Likewise.
15375         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
15376         (_IO_file_xsgetn): Likewise.
15377         (_IO_file_xsgetn_mmap): Likewise.
15378         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15379         (_IO_cookie_write): Likewise.
15380         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
15381         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
15382         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
15383         * malloc/obstack.c (_obstack_begin): Likewise.
15384         (_obstack_begin_1): Likewise.
15385         (_obstack_newchunk): Likewise.
15386         (_obstack_allocated_p): Likewise.
15387         (obstack_free): Likewise.
15388         (_obstack_memory_used): Likewise.
15389         * misc/getttyent.c (getttynam): Likewise.
15390         (getttyent): Likewise.
15391         (skip): Likewise.
15392         (value): Likewise.
15393         * misc/getusershell.c (initshells): Likewise.
15394         * misc/syslog.c (__vsyslog_chk): Likewise.
15395         * misc/ttyslot.c (ttyslot): Likewise.
15396         * nis/nis_hash.c (__nis_hash): Likewise.
15397         * posix/fnmatch_loop.c (FCT): Likewise.
15398         * posix/getconf.c (print_all): Likewise.
15399         (main): Likewise.
15400         * posix/getopt.c (exchange): Likewise.
15401         * posix/glob.c (globfree): Likewise.
15402         (prefix_array): Likewise.
15403         (__glob_pattern_type): Likewise.
15404         * resolv/arpa/nameser.h (NS_GET16): Likewise.
15405         (NS_GET32): Likewise.
15406         (NS_PUT16): Likewise.
15407         (NS_PUT32): Likewise.
15408         * resolv/gethnamaddr.c (getanswer): Likewise.
15409         (gethostbyname2): Likewise.
15410         (gethostbyaddr): Likewise.
15411         (_gethtent): Likewise.
15412         (_gethtbyname2): Likewise.
15413         (_gethtbyaddr): Likewise.
15414         * resolv/ns_print.c (dst_s_get_int16): Likewise.
15415         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
15416         * resolv/res_init.c (__res_vinit): Likewise.
15417         (net_mask): Likewise.
15418         * resolv/res_mkquery.c (outchar): Likewise.
15419         (PRINT): Likewise.
15420         * stdio-common/printf_fp.c (outchar): Likewise.
15421         (PRINT): Likewise.
15422         * stdio-common/printf_fphex.c (outchar): Likewise.
15423         (PRINT): Likewise.
15424         * stdio-common/printf_size.c (outchar): Likewise.
15425         (PRINT): Likewise.
15426         * stdio-common/test_rdwr.c (main): Likewise.
15427         * stdio-common/tfformat.c (matches): Likewise.
15428         * stdio-common/vfprintf.c (outchar): Likewise.
15429         (printf_unknown): Likewise.
15430         (buffered_vfprintf): Likewise.
15431         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
15432         * stdio-common/xbug.c (AppendToBuffer): Likewise.
15433         (ReadFile): Likewise.
15434         * stdlib/qsort.c (SWAP): Likewise.
15435         (_quicksort): Likewise.
15436         * stdlib/setenv.c (__add_to_environ): Likewise.
15437         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15438         * stdlib/strtol_l.c (__strtol_l): Likewise.
15439         * stdlib/tst-strtod.c (main): Likewise.
15440         * stdlib/tst-strtol.c (main): Likewise.
15441         * stdlib/tst-strtoll.c (main): Likewise.
15442         * string/bits/string2.h (__strcmp_cc): Likewise.
15443         (__strcmp_cg): Likewise.
15444         (__strcspn_c1): Likewise.
15445         (__strcspn_c2): Likewise.
15446         (__strcspn_c3): Likewise.
15447         (__strspn_c1): Likewise.
15448         (__strspn_c2): Likewise.
15449         (__strspn_c3): Likewise.
15450         (__strsep_1c): Likewise.
15451         (__strsep_2c): Likewise.
15452         (__strsep_3c): Likewise.
15453         * string/memccpy.c (__memccpy): Likewise.
15454         * string/stpcpy.c (__stpcpy): Likewise.
15455         * string/strcmp.c (strcmp): Likewise.
15456         * string/strrchr.c (strrchr): Likewise.
15457         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
15458         Likewise.
15459         * sysdeps/mach/hurd/getcwd.c
15460         (_hurd_canonicalize_directory_name_internal): Likewise.
15461         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
15462         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
15463         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
15464         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
15465         Likewise, in both definitions.
15466         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
15467         definitions.
15468         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
15469         64] (__bswap_64): Likewise.
15470         * time/test_time.c (main): Likewise.
15471         * time/tzfile.c (__tzfile_read): Likewise.
15472         (__tzfile_compute): Likewise.
15473         * time/tzset.c (__tzset_parse_tz): Likewise.
15474         (tzset_internal): Likewise.
15475         (compute_change): Likewise.
15476         * wcsmbs/wcscat.c (__wcscat): Likewise.
15477         * wcsmbs/wcschr.c (wcschr): Likewise.
15478         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15479         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15480         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15481         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
15482         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15483         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15484         * wcsmbs/wmemchr.c (wmemchr): Likewise.
15485         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15486         * wcsmbs/wmemset.c (wmemset): Likewise.
15487
15488 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
15489
15490         * scripts/config.guess: Update to version 2013-05-16.
15491         * scripts/config.sub: Update to version 2013-04-24.
15492         * scripts/install-sh: Update to version 2011-11-20.07.
15493         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
15494         * scripts/move-if-change: Update to version 2012-01-06 07:23.
15495
15496 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
15497
15498         * debug/fgetws_u_chk.c: Fix leading whitespaces.
15499         * elf/sln.c: Likewise.
15500         * hurd/hurd/ioctl.h: Likewise.
15501         * hurd/hurdmalloc.c: Likewise.
15502         * hurd/xattr.c: Likewise.
15503         * include/shlib-compat.h: Likewise.
15504         * inet/ruserpass.c: Likewise.
15505         * libio/iofgets_u.c: Likewise.
15506         * libio/iofgetws_u.c: Likewise.
15507         * locale/programs/ld-identification.c: Likewise.
15508         * locale/programs/ld-time.c: Likewise.
15509         * mach/msg-destroy.c: Likewise.
15510         * nss/nss_files/files-netgrp.c: Likewise.
15511         * resolv/res_data.c: Likewise.
15512         * soft-fp/op-1.h: Likewise.
15513         * soft-fp/op-2.h: Likewise.
15514         * soft-fp/op-4.h: Likewise.
15515         * soft-fp/op-common.h: Likewise.
15516         * stdio-common/printf_fphex.c: Likewise.
15517         * stdlib/strtod_l.c: Likewise.
15518         * sunrpc/rpc/clnt.h: Likewise.
15519         * sysdeps/generic/framestate.c: Likewise.
15520         * sysdeps/i386/bsd-_setjmp.S: Likewise.
15521         * sysdeps/i386/bsd-setjmp.S: Likewise.
15522         * sysdeps/i386/__longjmp.S: Likewise.
15523         * sysdeps/i386/setjmp.S: Likewise.
15524         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15525         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15526         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15527         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15528         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15529         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
15530         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15531         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15532         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15533         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15534         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15535         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15536         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15537         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15538         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15539         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15540         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15541         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
15542         * sysdeps/ieee754/support.c: Likewise.
15543         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15544         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
15545         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
15546         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
15547         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
15548         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
15549         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
15550         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
15551         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
15552         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
15553         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
15554         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
15555         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
15556         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
15557         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
15558         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
15559         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
15560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
15561
15562 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
15563
15564         * posix/transbug.c: Remove executable mode.
15565
15566 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
15567
15568         * crypt/speeds.c: Remove trailing whitespace.
15569         * dlfcn/default.c: Likewise.
15570         * elf/ifuncdep2.c: Likewise.
15571         * elf/ifuncmain1.c: Likewise.
15572         * elf/ifuncmain1vis.c: Likewise.
15573         * elf/testobj.h: Likewise.
15574         * elf/tst-stackguard1.c: Likewise.
15575         * gmon/sys/gmon.h: Likewise.
15576         * hurd/hurdmsg.c: Likewise.
15577         * hurd/new-fd.c: Likewise.
15578         * hurd/ports-get.c: Likewise.
15579         * iconvdata/ibm1008_420.c: Likewise.
15580         * inet/tst-getni1.c: Likewise.
15581         * inet/tst-getni2.c: Likewise.
15582         * libio/ioungetc.c: Likewise.
15583         * libio/wfiledoalloc.c: Likewise.
15584         * manual/libm-err-tab.pl: Likewise.
15585         * math/w_dremf.c: Likewise.
15586         * misc/ftruncate.c: Likewise.
15587         * posix/bug-glob2.c: Likewise.
15588         * posix/tst-pcre.c: Likewise.
15589         * posix/wait4.c: Likewise.
15590         * resolv/README: Likewise.
15591         * resolv/res_debug.h: Likewise.
15592         * resolv/tst-inet_ntop.c: Likewise.
15593         * setjmp/bug269-setjmp.c: Likewise.
15594         * soft-fp/extended.h: Likewise.
15595         * soft-fp/op-1.h: Likewise.
15596         * soft-fp/op-2.h: Likewise.
15597         * soft-fp/op-4.h: Likewise.
15598         * soft-fp/op-8.h: Likewise.
15599         * soft-fp/testit.c: Likewise.
15600         * stdio-common/bug16.c: Likewise.
15601         * stdlib/random.c: Likewise.
15602         * sunrpc/rpcsvc/rquota.x: Likewise.
15603         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
15604         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15605         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15606         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15607         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15608         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15609         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15610         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15611         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15612         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15613         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15614         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15615         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15616         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15617         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15618         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15619         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15620         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15621         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
15622         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15623         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15624         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15625         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
15626         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
15627         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15628         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15629         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
15630         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15631         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15632         * sysdeps/ieee754/s_lib_version.c: Likewise.
15633         * sysdeps/mach/hurd/check_fds.c: Likewise.
15634         * sysdeps/mach/hurd/getsockname.c: Likewise.
15635         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
15636         * sysdeps/mach/hurd/recvfrom.c: Likewise.
15637         * sysdeps/powerpc/bits/link.h: Likewise.
15638         * sysdeps/powerpc/dl-procinfo.c: Likewise.
15639         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
15640         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
15641         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
15642         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15643         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
15644         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
15645         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15646         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
15647         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15648         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
15649         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
15650         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
15651         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15652         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15653         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15654         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
15655         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
15656         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15657         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15658         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15659         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
15660         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15661         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
15662         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
15663         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
15664         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
15665         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15666         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15667         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
15668         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
15669         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
15670         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15671         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15672         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
15673         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15674         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
15675         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
15676         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
15677         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
15678         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
15679         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
15680         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
15681         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
15682         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
15683         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
15684         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
15685         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
15686         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
15687         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
15688         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15689         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15690         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15691         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15692         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
15693         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
15694         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
15695         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15696         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
15697         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
15698         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
15699         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
15700         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
15701         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15702         * sysdeps/powerpc/sysdep.h: Likewise.
15703         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
15704         * sysdeps/s390/s390-64/sub_n.S: Likewise.
15705         * sysdeps/sh/dl-trampoline.S: Likewise.
15706         * sysdeps/sh/memset.S: Likewise.
15707         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
15708         * sysdeps/sh/strlen.S: Likewise.
15709         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
15710         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
15711         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
15712         * sysdeps/sparc/sparc32/rem.S: Likewise.
15713         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
15714         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
15715         * sysdeps/sparc/sparc32/strchr.S: Likewise.
15716         * sysdeps/sparc/sparc32/udiv.S: Likewise.
15717         * sysdeps/sparc/sparc32/urem.S: Likewise.
15718         * sysdeps/sparc/sparc64/add_n.S: Likewise.
15719         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15720         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
15721         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
15722         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
15723         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
15724         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
15725         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
15726         * sysdeps/unix/bsd/times.c: Likewise.
15727         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
15728         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
15729         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
15730         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
15731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
15732         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
15733         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
15734         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
15735         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
15736         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
15737         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
15738         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
15739         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
15740         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
15741         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
15742         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
15743         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
15744         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15745         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
15746         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
15747         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
15748         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
15749         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
15750         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
15751         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
15752         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
15753         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
15754         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
15755         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
15756         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
15757         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
15758         * sysdeps/x86_64/strcspn.S: Likewise.
15759
15760 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15761
15762         * locale/C-translit.h: Revert #include <stdint.h> because this is a
15763         generated file.  Regenerate properly from gen-translit.pl.
15764         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
15765         locale/C-translit.h.
15766
15767 2013-06-05  Andreas Schwab  <schwab@suse.de>
15768
15769         [BZ #15100]
15770         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
15771         week as 6 instead of -1.
15772         * time/tst-strptime.c (day_tests): Add test case.
15773
15774 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15775
15776         * sysdeps/generic/math_private.h
15777         (libc_feholdexcept_setround_53bit): Replace with
15778         libc_feholdsetround_53bit.
15779         (libc_feupdateenv_53bit): Replace with
15780         libc_feresetround_53bit.
15781         (SET_RESTORE_ROUND_53BIT): Adjust.
15782
15783 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
15784
15785         * string/test-strchrnul.c: Add copyright header.
15786
15787         * posix/tst-getaddrinfo4.c: Increase test timeout.
15788
15789 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
15790
15791         [BZ #15536]
15792         * math/libm-test.inc (MAX_EXP): Remove
15793         (MIN_EXP): Define.
15794         (ulp): Use MIN_EXP - MANT_DIG.
15795         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
15796
15797 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
15798
15799         * po/be.po: Revert last change.
15800         * po/zh_CN.po: Likewise.
15801         * po/header.pot: Likewise.
15802
15803 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
15804
15805         * Makefile ($(common-objpfx)linkobj/libc.so): Define
15806         link-libc-deps to empty as target-specific variable.
15807         * Makerules (link-libc-args): New variable.
15808         (libc-for-link): Likewise.
15809         (link-libc-deps): Likewise.
15810         (lib%.so): Depend on $(link-libc-deps).  Link with
15811         $(link-libc-args).
15812         (build-module): Link with $(link-libc-args).
15813         (build-module-asneeded): Likewise.
15814         (build-module-helper-objlist): Filter out $(link-libc-deps) from
15815         list of objects.
15816         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
15817         target-specific variable.
15818         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
15819         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
15820         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
15821         libc.
15822         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
15823         libc and ld.so.
15824         ($(objpfx)libpcprofile.so): Likewise.
15825         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
15826         libc_nonshared.a.
15827         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
15828         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
15829         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
15830         $(link-libc-deps).
15831         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
15832         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
15833         * login/Makefile ($(objpfx)libutil.so): Likewise.
15834         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
15835         * math/Makefile ($(objpfx)libm.so): Likewise.
15836         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
15837         $(objpfx)libnsl.so): Define libc-for-link as target-specific
15838         variable instead of depending directly on libc.
15839         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
15840         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
15841         $(link-libc-deps).
15842         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
15843         libc.
15844         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
15845         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
15846         ($(objpfx)libanl.so): Likewise.
15847         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
15848         ld.so.
15849         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
15850         $(link-libc-deps).
15851         * sysdeps/i386/fpu/Makefile: Remove file.
15852         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
15853         ($(objpfx)libm.so): Remove dependency on ld.so.
15854
15855 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
15856
15857         [BZ # 15553]
15858         * nis/yp_xdr.c (XDRMAXNAME): Define.
15859         (XDRMAXRECORD): Define.
15860         (xdr_domainname): Use XDRMAXNAME.
15861         (xdr_mapname): Likewise.
15862         (xdr_peername): Likewise.
15863         (xdr_keydat): Use XDRMAXRECORD.
15864         (xdr_valdat): Likewise.
15865
15866 2013-05-30  Jeff Law  <law@redhat.com>
15867
15868         [BZ #14256]
15869         * manual/errno.texi (ESTALE): Update to account for more than
15870         just NFS file systems.
15871         * sysdeps/gnu/errlist.c: Regenerated.
15872
15873 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15874
15875         [BZ #15465]
15876         * elf/Makefile (tests): Add tst-null-argv.
15877         (modules-names):  Add tst-null-argv-lib.
15878         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
15879         (tst-null-argv-ENV): Set environment for tst-null-argv.
15880         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
15881         (RTLD_PROGNAME): New macro.
15882         * elf/tst-null-argv.c: New test case.
15883         * elf/tst-null-argv-lib.c: Library for test case.
15884         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
15885         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
15886         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
15887         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
15888         * elf/dl-init.c (call_init): Likewise.
15889         (_dl_init): Likewise.
15890         * elf/dl-load.c (print_search_path): Likewise.
15891         (_dl_map_object): Likewise.
15892         * elf/dl-lookup.c (do_lookup_x): Likewise.
15893         (add_dependency): Likewise.
15894         (_dl_lookup_symbol_x): Likewise.
15895         (_dl_debug_bindings): Likewise.
15896         * elf/dl-open.c (_dl_show_scope): Likewise.
15897         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
15898         * elf/dl-version.c (match_symbol): Likewise.
15899         (_dl_check_map_versions): Likewise.
15900         * elf/rtld.c (dl_main): Likewise.
15901         (print_unresolved): Use RTLD_PROGNAME.
15902         (print_missing_version): Likewise.
15903         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15904         (elf_machine_rela): Likewise.
15905         * sysdeps/powerpc/powerpc32/dl-machine.c
15906         (__process_machine_rela): Likewise.
15907         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15908         Likewise.
15909         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15910         Likewise.
15911         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15912         Likewise.
15913         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15914         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15915         Likewise.
15916         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15917         Likewise.
15918         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15919
15920 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
15921
15922         * po/be.po: Add descriptive title.
15923         * po/zh_CN.po: Likewise.
15924         * po/header.pot: Likewise.
15925
15926 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
15927
15928         * locale/programs/locarchive.c (create_archive): Inlucde fname in
15929         error message.
15930         (enlarge_archive): Likewise.
15931
15932 2013-05-28  Ben North  <ben@redfrontdoor.org>
15933
15934         * manual/arith.texi (frexp): It is the magnitude of the return
15935         value which lies in [0.5, 1), not the return value itself.
15936
15937 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15938
15939         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15940
15941 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
15942
15943         * stdio-common/bug26.c (main): Correct fscanf template.
15944
15945         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
15946         declare _dl_skip_args.
15947
15948         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
15949         Don't declare.
15950
15951         * manual/platform.texi: Add missing @end deftypefun.
15952
15953 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
15954
15955         [BZ #15529]
15956         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
15957         bit of mantissa of 2^16382.
15958         * math/libm-test.inc (hypot_test_data): Add more tests.
15959
15960         * math/libm-test.inc: Add drem and pow10 to list of tested
15961         functions.
15962         (pow10_test): New function.
15963         (drem_test): Likewise.
15964         (drem_test_tonearest): Likewise.
15965         (drem_test_towardzero): Likewise.
15966         (drem_test_downward): Likewise.
15967         (drem_test_upward): Likewise.
15968         (main): Call the new functions.
15969
15970         * math/libm-test.inc (finite_test_data): Remove.
15971         (finite_test): Run tests from isfinite_test_data.
15972         (gamma_test_data): Remove.
15973         (gamma_test): Run tests from lgamma_test_data.
15974         * sysdeps/i386/fpu/libm-test-ulps: Update.
15975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15976
15977 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15978
15979         * manual/platform.texi: Add PowerPC PPR function set documentation.
15980         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
15981         implementation.
15982
15983 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
15984
15985         * math/libm-test.inc (MAX_EXP): Define.
15986         (ULPDIFF): Define.
15987         (ulp): New function.
15988         (check_float_internal): Use ULPDIFF.
15989         (cpow_test): Disable failing test.
15990         (check_ulp): Test ulp() implemetnation.
15991         (main): Call check_ulp before starting tests.
15992
15993 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
15994
15995         * math/gen-libm-test.pl (generate_testfile): Do not handle
15996         START_DATA and END_DATA.
15997         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
15998         END_DATA.
15999         (acos_tonearest_test_data): Likewise.
16000         (acos_towardzero_test_data): Likewise.
16001         (acos_downward_test_data): Likewise.
16002         (acos_upward_test_data): Likewise.
16003         (acosh_test_data): Likewise.
16004         (asin_test_data): Likewise.
16005         (asin_tonearest_test_data): Likewise.
16006         (asin_towardzero_test_data): Likewise.
16007         (asin_downward_test_data): Likewise.
16008         (asin_upward_test_data): Likewise.
16009         (asinh_test_data): Likewise.
16010         (atan_test_data): Likewise.
16011         (atanh_test_data): Likewise.
16012         (atan2_test_data): Likewise.
16013         (cabs_test_data): Likewise.
16014         (cacos_test_data): Likewise.
16015         (cacosh_test_data): Likewise.
16016         (carg_test_data): Likewise.
16017         (casin_test_data): Likewise.
16018         (casinh_test_data): Likewise.
16019         (catan_test_data): Likewise.
16020         (catanh_test_data): Likewise.
16021         (cbrt_test_data): Likewise.
16022         (ccos_test_data): Likewise.
16023         (ccosh_test_data): Likewise.
16024         (ceil_test_data): Likewise.
16025         (cexp_test_data): Likewise.
16026         (cimag_test_data): Likewise.
16027         (clog_test_data): Likewise.
16028         (clog10_test_data): Likewise.
16029         (conj_test_data): Likewise.
16030         (copysign_test_data): Likewise.
16031         (cos_test_data): Likewise.
16032         (cos_tonearest_test_data): Likewise.
16033         (cos_towardzero_test_data): Likewise.
16034         (cos_downward_test_data): Likewise.
16035         (cos_upward_test_data): Likewise.
16036         (cosh_test_data): Likewise.
16037         (cosh_tonearest_test_data): Likewise.
16038         (cosh_towardzero_test_data): Likewise.
16039         (cosh_downward_test_data): Likewise.
16040         (cosh_upward_test_data): Likewise.
16041         (cpow_test_data): Likewise.
16042         (cproj_test_data): Likewise.
16043         (creal_test_data): Likewise.
16044         (csin_test_data): Likewise.
16045         (csinh_test_data): Likewise.
16046         (csqrt_test_data): Likewise.
16047         (ctan_test_data): Likewise.
16048         (ctan_tonearest_test_data): Likewise.
16049         (ctan_towardzero_test_data): Likewise.
16050         (ctan_downward_test_data): Likewise.
16051         (ctan_upward_test_data): Likewise.
16052         (ctanh_test_data): Likewise.
16053         (ctanh_tonearest_test_data): Likewise.
16054         (ctanh_towardzero_test_data): Likewise.
16055         (ctanh_downward_test_data): Likewise.
16056         (ctanh_upward_test_data): Likewise.
16057         (erf_test_data): Likewise.
16058         (erfc_test_data): Likewise.
16059         (exp_test_data): Likewise.
16060         (exp_tonearest_test_data): Likewise.
16061         (exp_towardzero_test_data): Likewise.
16062         (exp_downward_test_data): Likewise.
16063         (exp_upward_test_data): Likewise.
16064         (exp10_test_data): Likewise.
16065         (exp2_test_data): Likewise.
16066         (expm1_test_data): Likewise.
16067         (fabs_test_data): Likewise.
16068         (fdim_test_data): Likewise.
16069         (finite_test_data): Likewise.
16070         (floor_test_data): Likewise.
16071         (fma_test_data): Likewise.
16072         (fma_towardzero_test_data): Likewise.
16073         (fma_downward_test_data): Likewise.
16074         (fma_upward_test_data): Likewise.
16075         (fmax_test_data): Likewise.
16076         (fmin_test_data): Likewise.
16077         (fmod_test_data): Likewise.
16078         (fpclassify_test_data): Likewise.
16079         (frexp_test_data): Likewise.
16080         (gamma_test_data): Likewise.
16081         (hypot_test_data): Likewise.
16082         (ilogb_test_data): Likewise.
16083         (isfinite_test_data): Likewise.
16084         (isgreater_test_data): Likewise.
16085         (isgreaterequal_test_data): Likewise.
16086         (isinf_test_data): Likewise.
16087         (isless_test_data): Likewise.
16088         (islessequal_test_data): Likewise.
16089         (islessgreater_test_data): Likewise.
16090         (isnan_test_data): Likewise.
16091         (isnormal_test_data): Likewise.
16092         (issignaling_test_data): Likewise.
16093         (isunordered_test_data): Likewise.
16094         (j0_test_data): Likewise.
16095         (j1_test_data): Likewise.
16096         (jn_test_data): Likewise.
16097         (ldexp_test_data): Likewise.
16098         (lgamma_test_data): Likewise.
16099         (lrint_test_data): Likewise.
16100         (lrint_tonearest_test_data): Likewise.
16101         (lrint_towardzero_test_data): Likewise.
16102         (lrint_downward_test_data): Likewise.
16103         (lrint_upward_test_data): Likewise.
16104         (llrint_test_data): Likewise.
16105         (llrint_tonearest_test_data): Likewise.
16106         (llrint_towardzero_test_data): Likewise.
16107         (llrint_downward_test_data): Likewise.
16108         (llrint_upward_test_data): Likewise.
16109         (log_test_data): Likewise.
16110         (log10_test_data): Likewise.
16111         (log1p_test_data): Likewise.
16112         (log2_test_data): Likewise.
16113         (logb_test_data): Likewise.
16114         (logb_downward_test_data): Likewise.
16115         (lround_test_data): Likewise.
16116         (llround_test_data): Likewise.
16117         (modf_test_data): Likewise.
16118         (nearbyint_test_data): Likewise.
16119         (nextafter_test_data): Likewise.
16120         (nexttoward_test_data): Likewise.
16121         (pow_test_data): Likewise.
16122         (pow_tonearest_test_data): Likewise.
16123         (pow_towardzero_test_data): Likewise.
16124         (pow_downward_test_data): Likewise.
16125         (pow_upward_test_data): Likewise.
16126         (remainder_test_data): Likewise.
16127         (remainder_tonearest_test_data): Likewise.
16128         (remainder_towardzero_test_data): Likewise.
16129         (remainder_downward_test_data): Likewise.
16130         (remainder_upward_test_data): Likewise.
16131         (remquo_test_data): Likewise.
16132         (rint_test_data): Likewise.
16133         (rint_tonearest_test_data): Likewise.
16134         (rint_towardzero_test_data): Likewise.
16135         (rint_downward_test_data): Likewise.
16136         (rint_upward_test_data): Likewise.
16137         (round_test_data): Likewise.
16138         (scalb_test_data): Likewise.
16139         (scalbn_test_data): Likewise.
16140         (scalbln_test_data): Likewise.
16141         (signbit_test_data): Likewise.
16142         (sin_test_data): Likewise.
16143         (sin_tonearest_test_data): Likewise.
16144         (sin_towardzero_test_data): Likewise.
16145         (sin_downward_test_data): Likewise.
16146         (sin_upward_test_data): Likewise.
16147         (sincos_test_data): Likewise.
16148         (sinh_test_data): Likewise.
16149         (sinh_tonearest_test_data): Likewise.
16150         (sinh_towardzero_test_data): Likewise.
16151         (sinh_downward_test_data): Likewise.
16152         (sinh_upward_test_data): Likewise.
16153         (sqrt_test_data): Likewise.
16154         (tan_test_data): Likewise.
16155         (tan_tonearest_test_data): Likewise.
16156         (tan_towardzero_test_data): Likewise.
16157         (tan_downward_test_data): Likewise.
16158         (tan_upward_test_data): Likewise.
16159         (tanh_test_data): Likewise.
16160         (tgamma_test_data): Likewise.
16161         (trunc_test_data): Likewise.
16162         (y0_test_data): Likewise.
16163         (y1_test_data): Likewise.
16164         (yn_test_data): Likewise.
16165         (significand_test_data): Likewise.
16166
16167         * math/gen-libm-test.pl (@functions): Remove variable.
16168         (generate_testfile): Don't handle START and END lines.
16169         * math/libm-test.inc (START): New macro.
16170         (END): Likewise.
16171         (END_COMPLEX): Likewise.
16172         (acos_test): Use END macro without arguments.
16173         (acos_test_tonearest): Likewise.
16174         (acos_test_towardzero): Likewise.
16175         (acos_test_downward): Likewise.
16176         (acos_test_upward): Likewise.
16177         (acosh_test): Likewise.
16178         (asin_test): Likewise.
16179         (asin_test_tonearest): Likewise.
16180         (asin_test_towardzero): Likewise.
16181         (asin_test_downward): Likewise.
16182         (asin_test_upward): Likewise.
16183         (asinh_test): Likewise.
16184         (atan_test): Likewise.
16185         (atanh_test): Likewise.
16186         (atan2_test): Likewise.
16187         (cabs_test): Likewise.
16188         (cacos_test): Use END_COMPLEX macro without arguments.
16189         (cacosh_test): Likewise.
16190         (carg_test): Use END macro without arguments.
16191         (casin_test): Use END_COMPLEX macro without arguments.
16192         (casinh_test): Likewise.
16193         (catan_test): Likewise.
16194         (catanh_test): Likewise.
16195         (cbrt_test): Use END macro without arguments.
16196         (ccos_test): Use END_COMPLEX macro without arguments.
16197         (ccosh_test): Likewise.
16198         (ceil_test): Use END macro without arguments.
16199         (cexp_test): Use END_COMPLEX macro without arguments.
16200         (cimag_test): Use END macro without arguments.
16201         (clog_test): Use END_COMPLEX macro without arguments.
16202         (clog10_test): Likewise.
16203         (conj_test): Likewise.
16204         (copysign_test): Use END macro without arguments.
16205         (cos_test): Likewise.
16206         (cos_test_tonearest): Likewise.
16207         (cos_test_towardzero): Likewise.
16208         (cos_test_downward): Likewise.
16209         (cos_test_upward): Likewise.
16210         (cosh_test): Likewise.
16211         (cosh_test_tonearest): Likewise.
16212         (cosh_test_towardzero): Likewise.
16213         (cosh_test_downward): Likewise.
16214         (cosh_test_upward): Likewise.
16215         (cpow_test): Use END_COMPLEX macro without arguments.
16216         (cproj_test): Likewise.
16217         (creal_test): Use END macro without arguments.
16218         (csin_test): Use END_COMPLEX macro without arguments.
16219         (csinh_test): Likewise.
16220         (csqrt_test): Likewise.
16221         (ctan_test): Likewise.
16222         (ctan_test_tonearest): Likewise.
16223         (ctan_test_towardzero): Likewise.
16224         (ctan_test_downward): Likewise.
16225         (ctan_test_upward): Likewise.
16226         (ctanh_test): Likewise.
16227         (ctanh_test_tonearest): Likewise.
16228         (ctanh_test_towardzero): Likewise.
16229         (ctanh_test_downward): Likewise.
16230         (ctanh_test_upward): Likewise.
16231         (erf_test): Use END macro without arguments.
16232         (erfc_test): Likewise.
16233         (exp_test): Likewise.
16234         (exp_test_tonearest): Likewise.
16235         (exp_test_towardzero): Likewise.
16236         (exp_test_downward): Likewise.
16237         (exp_test_upward): Likewise.
16238         (exp10_test): Likewise.
16239         (exp2_test): Likewise.
16240         (expm1_test): Likewise.
16241         (fabs_test): Likewise.
16242         (fdim_test): Likewise.
16243         (finite_test): Likewise.
16244         (floor_test): Likewise.
16245         (fma_test): Likewise.
16246         (fma_test_towardzero): Likewise.
16247         (fma_test_downward): Likewise.
16248         (fma_test_upward): Likewise.
16249         (fmax_test): Likewise.
16250         (fmin_test): Likewise.
16251         (fmod_test): Likewise.
16252         (fpclassify_test): Likewise.
16253         (frexp_test): Likewise.
16254         (gamma_test): Likewise.
16255         (hypot_test): Likewise.
16256         (ilogb_test): Likewise.
16257         (isfinite_test): Likewise.
16258         (isgreater_test): Likewise.
16259         (isgreaterequal_test): Likewise.
16260         (isinf_test): Likewise.
16261         (isless_test): Likewise.
16262         (islessequal_test): Likewise.
16263         (islessgreater_test): Likewise.
16264         (isnan_test): Likewise.
16265         (isnormal_test): Likewise.
16266         (issignaling_test): Likewise.
16267         (isunordered_test): Likewise.
16268         (j0_test): Likewise.
16269         (j1_test): Likewise.
16270         (jn_test): Likewise.
16271         (ldexp_test): Likewise.
16272         (lgamma_test): Likewise.
16273         (lrint_test): Likewise.
16274         (lrint_test_tonearest): Likewise.
16275         (lrint_test_towardzero): Likewise.
16276         (lrint_test_downward): Likewise.
16277         (lrint_test_upward): Likewise.
16278         (llrint_test): Likewise.
16279         (llrint_test_tonearest): Likewise.
16280         (llrint_test_towardzero): Likewise.
16281         (llrint_test_downward): Likewise.
16282         (llrint_test_upward): Likewise.
16283         (log_test): Likewise.
16284         (log10_test): Likewise.
16285         (log1p_test): Likewise.
16286         (log2_test): Likewise.
16287         (logb_test): Likewise.
16288         (logb_test_downward): Likewise.
16289         (lround_test): Likewise.
16290         (llround_test): Likewise.
16291         (modf_test): Likewise.
16292         (nearbyint_test): Likewise.
16293         (nextafter_test): Likewise.
16294         (nexttoward_test): Likewise.
16295         (pow_test): Likewise.
16296         (pow_test_tonearest): Likewise.
16297         (pow_test_towardzero): Likewise.
16298         (pow_test_downward): Likewise.
16299         (pow_test_upward): Likewise.
16300         (remainder_test): Likewise.
16301         (remainder_test_tonearest): Likewise.
16302         (remainder_test_towardzero): Likewise.
16303         (remainder_test_downward): Likewise.
16304         (remainder_test_upward): Likewise.
16305         (remquo_test): Likewise.
16306         (rint_test): Likewise.
16307         (rint_test_tonearest): Likewise.
16308         (rint_test_towardzero): Likewise.
16309         (rint_test_downward): Likewise.
16310         (rint_test_upward): Likewise.
16311         (round_test): Likewise.
16312         (scalb_test): Likewise.
16313         (scalbn_test): Likewise.
16314         (scalbln_test): Likewise.
16315         (signbit_test): Likewise.
16316         (sin_test): Likewise.
16317         (sin_test_tonearest): Likewise.
16318         (sin_test_towardzero): Likewise.
16319         (sin_test_downward): Likewise.
16320         (sin_test_upward): Likewise.
16321         (sincos_test): Likewise.
16322         (sinh_test): Likewise.
16323         (sinh_test_tonearest): Likewise.
16324         (sinh_test_towardzero): Likewise.
16325         (sinh_test_downward): Likewise.
16326         (sinh_test_upward): Likewise.
16327         (sqrt_test): Likewise.
16328         (tan_test): Likewise.
16329         (tan_test_tonearest): Likewise.
16330         (tan_test_towardzero): Likewise.
16331         (tan_test_downward): Likewise.
16332         (tan_test_upward): Likewise.
16333         (tanh_test): Likewise.
16334         (tgamma_test): Likewise.
16335         (trunc_test): Likewise.
16336         (y0_test): Likewise.
16337         (y1_test): Likewise.
16338         (yn_test): Likewise.
16339         (significand_test): Likewise.
16340
16341 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
16342
16343         [BZ #15381]
16344         * libio/genops.c (_IO_no_init): Initialize wide struct info.
16345
16346 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
16347
16348         [BZ #14894]
16349         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
16350         __ppc_mdoio and __ppc_mdoom.
16351         * manual/platform.texi: Document new functions __ppc_yield,
16352         __ppc_mdoio and __ppc_mdoom.
16353
16354 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
16355
16356         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
16357         (main): Mention "tls" pseudo-hwcap is legacy.
16358         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
16359
16360 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16361
16362         * math/gen-libm-test.pl (parse_args): Output only string of
16363         arguments as text for test name, not full call or descriptions of
16364         tests for extra outputs.
16365         (generate_testfile): Do not pass function name to parse_args.
16366         Generate this_func variable from START.
16367         * math/libm-test.inc (struct test_f_f_data): Rename test_name
16368         field to arg_str.
16369         (struct test_ff_f_data): Likewise.
16370         (test_ff_f_data_nexttoward): Likewise.
16371         (struct test_fi_f_data): Likewise.
16372         (struct test_fl_f_data): Likewise.
16373         (struct test_if_f_data): Likewise.
16374         (struct test_fff_f_data): Likewise.
16375         (struct test_c_f_data): Likewise.
16376         (struct test_f_f1_data): Likewise.  Remove field extra_name.
16377         (struct test_fF_f1_data): Likewise.
16378         (struct test_ffI_f1_data): Likewise.
16379         (struct test_c_c_data): Rename test_name field to arg_str.
16380         (struct test_cc_c_data): Likewise.
16381         (struct test_f_i_data): Likewise.
16382         (struct test_ff_i_data): Likewise.
16383         (struct test_f_l_data): Likewise.
16384         (struct test_f_L_data): Likewise.
16385         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
16386         and extra2_name.
16387         (COMMON_TEST_SETUP): New macro.
16388         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
16389         (COMMON_TEST_CLEANUP): Likewise.
16390         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
16391         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
16392         macros.
16393         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
16394         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
16395         macros.
16396         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
16397         (RUN_TEST_fff_f): Take argument string.  Call new setup and
16398         cleanup macros.
16399         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
16400         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
16401         macros.
16402         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
16403         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
16404         macros.
16405         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16406         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
16407         cleanup macros.
16408         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16409         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
16410         cleanup macros.
16411         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16412         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
16413         cleanup macros.
16414         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16415         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
16416         macros.
16417         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
16418         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
16419         macros.
16420         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
16421         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
16422         macros.
16423         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
16424         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
16425         cleanup macros.
16426         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
16427         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
16428         cleanup macros.
16429         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
16430         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
16431         macros.
16432         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
16433         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
16434         cleanup macros.
16435         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
16436         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
16437         macros.
16438         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
16439         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
16440         macros.
16441         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
16442         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
16443         cleanup macros.
16444         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
16445
16446 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16447
16448         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
16449         to _sifields.sigfault.
16450         (si_addr_lsb): Define new macro.
16451         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
16452         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16453         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
16454
16455 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
16456
16457         [BZ #15441]
16458         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
16459         returns -1.
16460         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
16461         null return -1.
16462         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
16463         loading the domain.
16464
16465 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16466
16467         * math/gen-libm-test.pl (parse_args): Do not include expected
16468         result in test name.
16469         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
16470         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16471         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16472         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16473         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16475
16476 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16477
16478         * benchtests/Makefile: Sort function entries.
16479
16480         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
16481         tanh, asinh, acosh, atanh.
16482         * benchtests/acos-inputs: New file.
16483         * benchtests/acosh-inputs: New file.
16484         * benchtests/asin-inputs: New file.
16485         * benchtests/asinh-inputs: New file.
16486         * benchtests/atanh-inputs: New file.
16487         * benchtests/cosh-inputs: New file.
16488         * benchtests/log-inputs: New file.
16489         * benchtests/sinh-inputs: New file.
16490         * benchtests/tanh-inputs: New file.
16491
16492 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
16493
16494         [BZ #15339]
16495         * posix/tst-getaddrinfo4.c: New test.
16496         * posix/Makefile (tests): Add it.
16497
16498 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16499
16500         [BZ #15339]
16501         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
16502         when no services were used.
16503         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
16504         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
16505
16506 2013-05-21  Andreas Schwab  <schwab@suse.de>
16507
16508         [BZ #15014]
16509         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
16510         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
16511         successful.
16512         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
16513         redundant variable declarations and reallocation of buffer when
16514         parsing as IPv6 address.  Always set NSS status when called from
16515         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
16516         buffer too small.  Correct computation of needed size.
16517         * nss/Makefile (tests): Add test-digits-dots.
16518         * nss/test-digits-dots.c: New test.
16519
16520 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16521
16522         * benchtests/Makefile: Remove instructions for adding
16523         benchmark tests.
16524         * benchtests/README: New file to explain how to execute and
16525         enhance the benchmark tests.
16526
16527 2013-05-21  Andreas Schwab  <schwab@suse.de>
16528
16529         [BZ #15493]
16530         * setjmp/Makefile (tests): Add tst-sigsetjmp.
16531         * setjmp/tst-sigsetjmp.c: New test.
16532
16533 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16534
16535         * sysdeps/x86_64/memset.S (memset): New implementation.
16536         (__bzero): Likewise.
16537         (__memset_tail): New function.
16538
16539 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16540
16541         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
16542         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
16543         __memcpy_sse2_unaligned ifunc selection.
16544         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
16545         Add memcpy-sse2-unaligned.S.
16546         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16547         Add: __memcpy_sse2_unaligned.
16548
16549 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
16550
16551         [BZ #15490]
16552         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
16553         math_force_eval before restoring floating-point envrionment.
16554         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
16555         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
16556         Likewise.
16557         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
16558         <math_private.h>.
16559         (__nearbyintl): Use math_force_eval before restoring
16560         floating-point environment.
16561         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
16562
16563         * math/gen-libm-test.pl (special_functions): Remove.
16564         (parse_args): Don't handle TEST_extra.  Handle functions with no
16565         return value.
16566         * math/libm-test.inc (struct test_sincos_data): Replace with
16567         struct test_fFF_11_data.
16568         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
16569         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
16570         (sincos_test_data): Change element type to struct
16571         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
16572         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
16573         RUN_TEST_LOOP_sincos.
16574         * math/README.libm-test: Don't mention special handling of
16575         individual functions.
16576         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
16577         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16578         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16579         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16580         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16582
16583         * math/gen-libm-test.pl (get_variable): Remove function.
16584         (parse_args): Don't show pointer parameters to call in test
16585         names.  Use "extra output N" in test names for extra outputs
16586         rather than naming variables.
16587
16588 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
16589
16590         [BZ #15488]
16591         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
16592         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
16593         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
16594         double tests.
16595         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
16596         disable.
16597         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
16598         check_long_double.
16599
16600         * math/gen-libm-test.pl (@tests): Remove variable.
16601         ($count): Likewise.
16602         (new_test): Remove function.
16603         (show_exceptions): New function.
16604         (special_functions): Use show_exceptions instead of new_test.
16605         (parse_args): Likewise.
16606         (generate_testfile): Pass only function name in generated call to
16607         print_max_error or print_complex_max_error.
16608         (get_ulps): Do not handle complex tests specially.
16609         (output_test): Rename to ...
16610         (get_all_ulps_for_test): ... this.  Return a string rather than
16611         printing to a file.  Require ulps to be present.
16612         (output_ulps): Generate arrays rather than #defines.
16613         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
16614         (struct ulp_data): New type.
16615         (BUILD_COMPLEX_ULP): Remove macro.
16616         (compare_ulp_data): New function.
16617         (find_ulps): Likewise.
16618         (find_test_ulps): Likewise.
16619         (find_function_ulps): Likewise.
16620         (find_complex_function_ulps): Likewise.
16621         (print_max_error): Determine allowed ulps using
16622         find_function_ulps.
16623         (print_complex_max_error): Determine allowed ulps using
16624         find_complex_function_ulps.
16625         (check_float_internal): Determine max ulps using find_test_ulps.
16626         (check_float): Do not take max_ulp parameter.  Update call to
16627         check_float_internal.
16628         (check_complex): Likewise.
16629         (check_int): Do not take max_ulp parameter.
16630         (check_long): Likewise.
16631         (check_bool): Likewise.
16632         (check_longlong): Likewise.
16633         (struct test_f_f_data): Remove max_ulp field.
16634         (struct test_ff_f_data): Likewise.
16635         (struct test_ff_f_data_nexttoward): Likewise.
16636         (struct test_fi_f_data): Likewise.
16637         (struct test_fl_f_data): Likewise.
16638         (struct test_if_f_data): Likewise.
16639         (struct test_fff_f_data): Likewise.
16640         (struct test_c_f_data): Likewise.
16641         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
16642         (struct test_fF_f1_data): Likewise.
16643         (struct test_ffI_f1_data): Likewise.
16644         (struct test_c_c_data): Remove max_ulp field.
16645         (struct test_cc_c_data): Likewise.
16646         (struct test_f_i_data): Likewise.
16647         (struct test_ff_i_data): Likewise.
16648         (struct test_f_l_data): Likewise.
16649         (struct test_f_L_data): Likewise.
16650         (struct test_sincos_data): Likewise.
16651         (RUN_TEST_f_f): Do not handle ulps.
16652         (RUN_TEST_LOOP_f_f): Likewise.
16653         (RUN_TEST_2_f): Likewise.
16654         (RUN_TEST_LOOP_2_f): Likewise.
16655         (RUN_TEST_fff_f): Likewise.
16656         (RUN_TEST_LOOP_fff_f): Likewise.
16657         (RUN_TEST_c_f): Likewise.
16658         (RUN_TEST_LOOP_c_f): Likewise.
16659         (RUN_TEST_f_f1): Likewise.
16660         (RUN_TEST_LOOP_f_f1): Likewise.
16661         (RUN_TEST_fF_f1): Likewise.
16662         (RUN_TEST_LOOP_fF_f1): Likewise.
16663         (RUN_TEST_fI_f1): Likewise.
16664         (RUN_TEST_LOOP_fI_f1): Likewise.
16665         (RUN_TEST_ffI_f1): Likewise.
16666         (RUN_TEST_LOOP_ffI_f1): Likewise.
16667         (RUN_TEST_c_c): Likewise.
16668         (RUN_TEST_LOOP_c_c): Likewise.
16669         (RUN_TEST_cc_c): Likewise.
16670         (RUN_TEST_LOOP_cc_c): Likewise.
16671         (RUN_TEST_f_i): Likewise.
16672         (RUN_TEST_LOOP_f_i): Likewise.
16673         (RUN_TEST_f_i_tg): Likewise.
16674         (RUN_TEST_LOOP_f_i_tg): Likewise.
16675         (RUN_TEST_ff_i_tg): Likewise.
16676         (RUN_TEST_LOOP_ff_i_tg): Likewise.
16677         (RUN_TEST_f_b): Likewise.
16678         (RUN_TEST_LOOP_f_b): Likewise.
16679         (RUN_TEST_f_b_tg): Likewise.
16680         (RUN_TEST_LOOP_f_b_tg): Likewise.
16681         (RUN_TEST_f_l): Likewise.
16682         (RUN_TEST_LOOP_f_l): Likewise.
16683         (RUN_TEST_f_L): Likewise.
16684         (RUN_TEST_LOOP_f_L): Likewise.
16685         (RUN_TEST_sincos): Likewise.
16686         (RUN_TEST_LOOP_sincos): Likewise.
16687
16688 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
16689
16690         [BZ #15480]
16691         [BZ #15485]
16692         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
16693         main case of finite arguments, set rounding mode to FE_TONEAREST
16694         and discard exceptions.
16695         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
16696         exceptions.
16697         (remainder_tonearest_test_data): New variable.
16698         (remainder_test_tonearest): New function.
16699         (remainder_towardzero_test_data): New variable.
16700         (remainder_test_towardzero): New function.
16701         (remainder_downward_test_data): New variable.
16702         (remainder_test_downward): New function.
16703         (remainder_upward_test_data): New variable.
16704         (remainder_test_upward): New function.
16705         (main): Call the new test functions.
16706
16707         * math/libm-test.inc (struct test_f_f1_data): Remove field
16708         extra_init.
16709         (struct test_fF_f1_data): Likewise.
16710         (struct test_ffI_f1_data): Likewise.
16711         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
16712         based on value of EXTRA_EXPECTED.
16713         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16714         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
16715         EXTRA_VAR based on value of EXTRA_EXPECTED.
16716         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16717         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
16718         EXTRA_VAR based on value of EXTRA_EXPECTED.
16719         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16720         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
16721         EXTRA_VAR based on value of EXTRA_EXPECTED.
16722         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16723         * math/gen-libm-test.pl (parse_args): Don't output initializers
16724         for extra output values.
16725
16726         * math/libm-test.inc (check_int): Expect result to be exactly
16727         equal to expected value and do not handle ulps.
16728         (check_long): Likewise.
16729         (check_longlong): Likewise.
16730
16731         * math/libm-test.inc (ceil_test_data): Test for "inexact"
16732         exceptions.
16733         (cimag_test_data): Likewise.
16734         (conj_test_data): Likewise.
16735         (copysign_test_data): Likewise.
16736         (cproj_test_data): Likewise.
16737         (creal_test_data): Likewise.
16738         (fabs_test_data): Likewise.
16739         (fdim_test_data): Likewise.
16740         (finite_test_data): Likewise.
16741         (floor_test_data): Likewise.
16742         (fmax_test_data): Likewise.
16743         (fmin_test_data): Likewise.
16744         (fmod_test_data): Likewise.
16745         (fpclassify_test_data): Likewise.
16746         (frexp_test_data): Likewise.
16747         (ilogb_test_data): Likewise.
16748         (isfinite_test_data): Likewise.
16749         (isgreater_test_data): Likewise.
16750         (isgreaterequal_test_data): Likewise.
16751         (isinf_test_data): Likewise.
16752         (isless_test_data): Likewise.
16753         (islessequal_test_data): Likewise.
16754         (islessgreater_test_data): Likewise.
16755         (isnan_test_data): Likewise.
16756         (isnormal_test_data): Likewise.
16757         (issignaling_test_data): Likewise.
16758         (isunordered_test_data): Likewise.
16759         (ldexp_test_data): Likewise.
16760         (lrint_test_data): Likewise.
16761         (lrint_test_data) [TEST_FLOAT]: Disable one test.
16762         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
16763         (lrint_tonearest_test_data): Test for "inexact" exceptions.
16764         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
16765         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
16766         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
16767         test input.
16768         (lrint_towardzero_test_data): Test for "inexact" exceptions.
16769         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
16770         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
16771         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
16772         that test input.
16773         (lrint_downward_test_data): Test for "inexact" exceptions.
16774         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
16775         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
16776         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
16777         test input.
16778         (lrint_upward_test_data): Test for "inexact" exceptions.
16779         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
16780         test input.
16781         (llrint_test_data): Test for "inexact" exceptions.
16782         (llrint_test_data) [TEST_FLOAT]: Disable one test.
16783         (llrint_tonearest_test_data): Test for "inexact" exceptions.
16784         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
16785         (llrint_towardzero_test_data): Test for "inexact" exceptions.
16786         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
16787         (llrint_downward_test_data): Test for "inexact" exceptions.
16788         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
16789         (llrint_upward_test_data): Test for "inexact" exceptions.
16790         (logb_test_data): Likewise.
16791         (logb_downward_test_data): Likewise.
16792         (nextafter_test_data): Likewise.
16793         (nexttoward_test_data): Likewise.
16794         (remainder_test_data): Likewise.
16795         (remquo_test_data): Likewise.
16796         (scalbn_test_data): Likewise.
16797         (scalbln_test_data): Likewise.
16798         (signbit_test_data): Likewise.
16799         (sqrt_test_data): Likewise.
16800         (significand_test_data): Likewise.
16801
16802 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
16803
16804         [BZ #15424]
16805         * benchtests/bench-modf.c (struct args): Mark arg0 as
16806         volatile.
16807         * scripts/bench.pl: Mark members of struct args as volatile.
16808
16809 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16810
16811         [BZ # 15497]
16812         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
16813         negative infinity on POWER6 or lower.
16814         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
16815
16816 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
16817
16818         [BZ #15442]
16819         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
16820         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
16821         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
16822         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
16823         (_FP_SETQNAN): New macro.
16824         (_FP_SETQNAN_SEMIRAW): Likewise.
16825         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
16826         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
16827         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
16828         (FP_EXTEND): Use _FP_FRAC_SNANP.
16829         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
16830         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
16831         into account.
16832         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
16833         New macro.
16834         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
16835         Likewise.
16836
16837 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
16838
16839         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
16840         with DIVIDE_BY_ZERO_EXCEPTION.
16841         (gamma_test_data): Likewise.
16842         (lgamma_test_data): Likewise.
16843         (log_test_data): Likewise.
16844         (log10_test_data): Likewise.
16845         (log2_test_data): Likewise.
16846         (tgamma_test_data): Likewise.
16847
16848         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
16849         (acos_test_tonearest): Likewise.
16850         (acos_test_towardzero): Likewise.
16851         (acos_test_downward): Likewise.
16852         (acos_test_upward): Likewise.
16853         (acosh_test): Likewise.
16854         (asin_test): Likewise.
16855         (asin_test_tonearest): Likewise.
16856         (asin_test_towardzero): Likewise.
16857         (asin_test_downward): Likewise.
16858         (asin_test_upward): Likewise.
16859         (asinh_test): Likewise.
16860         (atan_test): Likewise.
16861         (atanh_test): Likewise.
16862         (atan2_test): Likewise.
16863         (cabs_test): Likewise.
16864         (cacos_test): Likewise.
16865         (cacosh_test): Likewise.
16866         (casin_test): Likewise.
16867         (casinh_test): Likewise.
16868         (catan_test): Likewise.
16869         (catanh_test): Likewise.
16870         (cbrt_test): Likewise.
16871         (ccos_test): Likewise.
16872         (ccosh_test): Likewise.
16873         (cexp_test): Likewise.
16874         (clog_test): Likewise.
16875         (clog10_test): Likewise.
16876         (cos_test): Likewise.
16877         (cos_test_tonearest): Likewise.
16878         (cos_test_towardzero): Likewise.
16879         (cos_test_downward): Likewise.
16880         (cos_test_upward): Likewise.
16881         (cosh_test): Likewise.
16882         (cosh_test_tonearest): Likewise.
16883         (cosh_test_towardzero): Likewise.
16884         (cosh_test_downward): Likewise.
16885         (cosh_test_upward): Likewise.
16886         (cpow_test): Likewise.
16887         (csin_test): Likewise.
16888         (csinh_test): Likewise.
16889         (csqrt_test): Likewise.
16890         (ctan_test): Likewise.
16891         (ctan_test_tonearest): Likewise.
16892         (ctan_test_towardzero): Likewise.
16893         (ctan_test_downward): Likewise.
16894         (ctan_test_upward): Likewise.
16895         (ctanh_test): Likewise.
16896         (ctanh_test_tonearest): Likewise.
16897         (ctanh_test_towardzero): Likewise.
16898         (ctanh_test_downward): Likewise.
16899         (ctanh_test_upward): Likewise.
16900         (erf_test): Likewise.
16901         (erfc_test): Likewise.
16902         (exp_test): Likewise.
16903         (exp_test_tonearest): Likewise.
16904         (exp_test_towardzero): Likewise.
16905         (exp_test_downward): Likewise.
16906         (exp_test_upward): Likewise.
16907         (exp10_test): Likewise.
16908         (exp2_test): Likewise.
16909         (expm1_test): Likewise.
16910         (fmod_test): Likewise.
16911         (gamma_test): Likewise.
16912         (hypot_test): Likewise.
16913         (j0_test): Likewise.
16914         (j1_test): Likewise.
16915         (jn_test): Likewise.
16916         (lgamma_test): Likewise.
16917         (log_test): Likewise.
16918         (log10_test): Likewise.
16919         (log1p_test): Likewise.
16920         (log2_test): Likewise.
16921         (logb_test_downward): Likewise.
16922         (pow_test): Likewise.
16923         (pow_test_tonearest): Likewise.
16924         (pow_test_towardzero): Likewise.
16925         (pow_test_downward): Likewise.
16926         (pow_test_upward): Likewise.
16927         (remainder_test): Likewise.
16928         (remquo_test): Likewise.
16929         (sin_test): Likewise.
16930         (sin_test_tonearest): Likewise.
16931         (sin_test_towardzero): Likewise.
16932         (sin_test_downward): Likewise.
16933         (sin_test_upward): Likewise.
16934         (sincos_test): Likewise.
16935         (sinh_test): Likewise.
16936         (sinh_test_tonearest): Likewise.
16937         (sinh_test_towardzero): Likewise.
16938         (sinh_test_downward): Likewise.
16939         (sinh_test_upward): Likewise.
16940         (sqrt_test): Likewise.
16941         (tan_test): Likewise.
16942         (tan_test_tonearest): Likewise.
16943         (tan_test_towardzero): Likewise.
16944         (tan_test_downward): Likewise.
16945         (tan_test_upward): Likewise.
16946         (tanh_test): Likewise.
16947         (tgamma_test): Likewise.
16948         (y0_test): Likewise.
16949         (y1_test): Likewise.
16950         (yn_test): Likewise.
16951
16952         * math/gen-libm-test.pl (adjust_arg): Remove function.
16953         (special_function): Remove argument $in_func.  Only handle
16954         generating output for tables of tests, not inside functions.
16955         (parse_args): Likewise.
16956         (generate_testfile): Remove variable $in_func.  Update call to
16957         parse_args.
16958         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
16959         (MINUS_ZERO_INIT): Rename macro to minus_zero.
16960         (PLUS_INFTY_INIT): Rename macro to plus_infty.
16961         (MINUS_INFTY_INIT): Rename macro to minus_infty.
16962         (QNAN_VALUE_INIT): Rename macro to qnan_value.
16963         (MAX_VALUE_INIT): Rename macro to max_value.
16964         (MIN_VALUE_INIT): Rename macro to min_value.
16965         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
16966         (plus_zero): Remove variable.
16967         (minus_zero): Likewise.
16968         (plus_infty): Likewise.
16969         (minus_infty): Likewise.
16970         (qnan_value): Likewise.
16971         (max_value): Likewise.
16972         (min_value): Likewise.
16973         (min_subnorm_value): Likewise.
16974
16975 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16976
16977         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
16978         uint64_t or uint32_t usage.
16979         * crypt/sha256-block.c: Likewise.
16980         * crypt/sha256-crypt.c: Likewise.
16981         * crypt/sha256.c: Likewise.
16982         * crypt/sha512-block.c: Likewise.
16983         * crypt/sha512-crypt.c: Likewise.
16984         * crypt/sha512.c: Likewise.
16985         * debug/backtrace-tst.c: Likewise.
16986         * debug/pcprofiledump.c: Likewise.
16987         * elf/cache.c: Likewise.
16988         * elf/dl-cache.c: Likewise.
16989         * elf/dl-misc.c: Likewise.
16990         * elf/dl-profile.c: Likewise.
16991         * elf/dl-support.c: Likewise.
16992         * elf/ldconfig.c: Likewise.
16993         * elf/sprof.c: Likewise.
16994         * iconv/dummy-repertoire.c: Likewise.
16995         * iconv/iconv_charmap.c: Likewise.
16996         * iconv/skeleton.c: Likewise.
16997         * iconvdata/8bit-generic.c: Likewise.
16998         * iconvdata/cp737.h: Likewise.
16999         * iconvdata/cp775.h: Likewise.
17000         * iconvdata/ibm1008.h: Likewise.
17001         * iconvdata/ibm1025.h: Likewise.
17002         * iconvdata/ibm1046.h: Likewise.
17003         * iconvdata/ibm1097.h: Likewise.
17004         * iconvdata/ibm1112.h: Likewise.
17005         * iconvdata/ibm1122.h: Likewise.
17006         * iconvdata/ibm1123.h: Likewise.
17007         * iconvdata/ibm1124.h: Likewise.
17008         * iconvdata/ibm1129.h: Likewise.
17009         * iconvdata/ibm1130.h: Likewise.
17010         * iconvdata/ibm1132.h: Likewise.
17011         * iconvdata/ibm1133.h: Likewise.
17012         * iconvdata/ibm1137.h: Likewise.
17013         * iconvdata/ibm1140.h: Likewise.
17014         * iconvdata/ibm1141.h: Likewise.
17015         * iconvdata/ibm1142.h: Likewise.
17016         * iconvdata/ibm1143.h: Likewise.
17017         * iconvdata/ibm1144.h: Likewise.
17018         * iconvdata/ibm1145.h: Likewise.
17019         * iconvdata/ibm1146.h: Likewise.
17020         * iconvdata/ibm1147.h: Likewise.
17021         * iconvdata/ibm1148.h: Likewise.
17022         * iconvdata/ibm1149.h: Likewise.
17023         * iconvdata/ibm1153.h: Likewise.
17024         * iconvdata/ibm1154.h: Likewise.
17025         * iconvdata/ibm1155.h: Likewise.
17026         * iconvdata/ibm1156.h: Likewise.
17027         * iconvdata/ibm1157.h: Likewise.
17028         * iconvdata/ibm1158.h: Likewise.
17029         * iconvdata/ibm1160.h: Likewise.
17030         * iconvdata/ibm1161.h: Likewise.
17031         * iconvdata/ibm1162.h: Likewise.
17032         * iconvdata/ibm1163.h: Likewise.
17033         * iconvdata/ibm1164.h: Likewise.
17034         * iconvdata/ibm1166.h: Likewise.
17035         * iconvdata/ibm1167.h: Likewise.
17036         * iconvdata/ibm12712.h: Likewise.
17037         * iconvdata/ibm1390.h: Likewise.
17038         * iconvdata/ibm1399.h: Likewise.
17039         * iconvdata/ibm16804.h: Likewise.
17040         * iconvdata/ibm4517.h: Likewise.
17041         * iconvdata/ibm4899.h: Likewise.
17042         * iconvdata/ibm4909.h: Likewise.
17043         * iconvdata/ibm4971.h: Likewise.
17044         * iconvdata/ibm5347.h: Likewise.
17045         * iconvdata/ibm803.h: Likewise.
17046         * iconvdata/ibm856.h: Likewise.
17047         * iconvdata/ibm901.h: Likewise.
17048         * iconvdata/ibm902.h: Likewise.
17049         * iconvdata/ibm9030.h: Likewise.
17050         * iconvdata/ibm9066.h: Likewise.
17051         * iconvdata/ibm921.h: Likewise.
17052         * iconvdata/ibm922.h: Likewise.
17053         * iconvdata/ibm9448.h: Likewise.
17054         * iconvdata/isiri-3342.h: Likewise.
17055         * iconvdata/jis0201.h: Likewise.
17056         * include/link.h: Likewise.
17057         * include/netdb.h: Likewise.
17058         * inet/check_native.c: Likewise.
17059         * inet/check_pf.c: Likewise.
17060         * inet/getipv4sourcefilter.c: Likewise.
17061         * inet/getnameinfo.c: Likewise.
17062         * inet/getsourcefilter.c: Likewise.
17063         * inet/htonl.c: Likewise.
17064         * inet/setipv4sourcefilter.c: Likewise.
17065         * inet/setsourcefilter.c: Likewise.
17066         * inet/test-inet6_opt.c: Likewise.
17067         * inet/tst-network.c: Likewise.
17068         * locale/C-collate.c: Likewise.
17069         * locale/C-ctype.c: Likewise.
17070         * locale/C-time.c: Likewise.
17071         * locale/C-translit.h: Likewise.
17072         * locale/loadarchive.c: Likewise.
17073         * locale/programs/3level.h: Likewise.
17074         * locale/programs/charmap.c: Likewise.
17075         * locale/programs/charmap.h: Likewise.
17076         * locale/programs/ld-address.c: Likewise.
17077         * locale/programs/ld-collate.c: Likewise.
17078         * locale/programs/ld-ctype.c: Likewise.
17079         * locale/programs/ld-identification.c: Likewise.
17080         * locale/programs/ld-measurement.c: Likewise.
17081         * locale/programs/ld-messages.c: Likewise.
17082         * locale/programs/ld-monetary.c: Likewise.
17083         * locale/programs/ld-name.c: Likewise.
17084         * locale/programs/ld-numeric.c: Likewise.
17085         * locale/programs/ld-paper.c: Likewise.
17086         * locale/programs/ld-telephone.c: Likewise.
17087         * locale/programs/ld-time.c: Likewise.
17088         * locale/programs/linereader.c: Likewise.
17089         * locale/programs/locale.c: Likewise.
17090         * locale/programs/locarchive.c: Likewise.
17091         * locale/programs/locfile.h: Likewise.
17092         * locale/programs/repertoire.c: Likewise.
17093         * locale/programs/simple-hash.c: Likewise.
17094         * locale/programs/simple-hash.h: Likewise.
17095         * malloc/memusage.c: Likewise.
17096         * malloc/memusagestat.c: Likewise.
17097         * nis/nis_defaults.c: Likewise.
17098         * nis/nis_hash.c: Likewise.
17099         * nis/nis_print.c: Likewise.
17100         * nis/nis_xdr.c: Likewise.
17101         * nscd/connections.c: Likewise.
17102         * nscd/hstcache.c: Likewise.
17103         * nscd/nscd_gethst_r.c: Likewise.
17104         * nscd/nscd_getserv_r.c: Likewise.
17105         * nscd/nscd_helper.c: Likewise.
17106         * nscd/servicescache.c: Likewise.
17107         * nss/makedb.c: Likewise.
17108         * nss/nss_db/db-XXX.c: Likewise.
17109         * nss/nss_db/db-initgroups.c: Likewise.
17110         * nss/nss_db/db-netgrp.c: Likewise.
17111         * nss/nss_files/files-network.c: Likewise.
17112         * nss/nss_files/files-parse.c: Likewise.
17113         * posix/bug-regex5.c: Likewise.
17114         * posix/fnmatch_loop.c: Likewise.
17115         * posix/regcomp.c: Likewise.
17116         * posix/regexec.c: Likewise.
17117         * posix/tst-rfc3484-2.c: Likewise.
17118         * posix/tst-rfc3484-3.c: Likewise.
17119         * posix/tst-rfc3484.c: Likewise.
17120         * resolv/nss_dns/dns-canon.c: Likewise.
17121         * resolv/nss_dns/dns-network.c: Likewise.
17122         * resolv/res_init.c: Likewise.
17123         * resolv/res_mkquery.c: Likewise.
17124         * resolv/tst-aton.c: Likewise.
17125         * stdlib/cxa_atexit.c: Likewise.
17126         * stdlib/cxa_finalize.c: Likewise.
17127         * stdlib/gen-fpioconst.c: Likewise.
17128         * stdlib/strtol_l.c: Likewise.
17129         * string/tst-endian.c: Likewise.
17130         * sunrpc/auth_des.c: Likewise.
17131         * sunrpc/clnt_udp.c: Likewise.
17132         * sunrpc/rtime.c: Likewise.
17133         * sunrpc/svcauth_des.c: Likewise.
17134         * sunrpc/xdr.c: Likewise.
17135         * sunrpc/xdr_intXX_t.c: Likewise.
17136         * sunrpc/xdr_rec.c: Likewise.
17137         * sysdeps/generic/ldconfig.h: Likewise.
17138         * sysdeps/generic/ldsodefs.h: Likewise.
17139         * sysdeps/generic/memusage.h: Likewise.
17140         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17141         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17142         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17143         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17144         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17145         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17146         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17147         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17148         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17149         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17150         * sysdeps/posix/getaddrinfo.c: Likewise.
17151         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17152         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17153         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17154         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17155         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17156         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17157         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17158         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17159         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17160         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17161         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17162         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17163         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17164         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17165         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17166         * sysdeps/x86_64/dl-tls.h: Likewise.
17167         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17168         * time/alt_digit.c: Likewise.
17169         * time/era.c: Likewise.
17170         * wcsmbs/tst-c16c32-1.c: Likewise.
17171
17172 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17173
17174         * math/libm-test.inc (struct test_sincos_data): New type.
17175         (RUN_TEST_LOOP_sincos): New macro.
17176         (sincos_test_data): New variable.
17177         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17178
17179 2013-05-16  Richard Henderson  <rth@redhat.com>
17180
17181         * math/atest-exp2.c (LIMB64): New macro.
17182         (CONSTSZ): New macro.
17183         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17184         (hexdig): Move ...
17185         (print_mpn_fp): ... to function scope.
17186         (read_mpn_hex): Remove.
17187         (get_log2): Remove.
17188         (exp2_mpn): Use mp_log2.
17189         (main): Use mp_exp1.
17190
17191 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17192
17193         * math/libm-test.inc: Remove comment about not testing "inexact"
17194         exceptions.
17195         (INEXACT_EXCEPTION): New macro.
17196         (NO_INEXACT_EXCEPTION): Likewise.
17197         (INVALID_EXCEPTION_OK): Update value.
17198         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17199         (OVERFLOW_EXCEPTION_OK): Likewise.
17200         (UNDERFLOW_EXCEPTION_OK): Likewise.
17201         (IGNORE_ZERO_INF_SIGN): Likewise.
17202         (ERRNO_UNCHANGED): Likewise.
17203         (ERRNO_EDOM): Likewise.
17204         (ERRNO_ERANGE): Likewise.
17205         (test_exceptions): Handle testing "inexact" exceptions.
17206         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17207         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17208         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17209         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17210         INEXACT_EXCEPTION.
17211         (rint_towardzero_test_data): Likewise.
17212         (rint_downward_test_data): Likewise.
17213         (rint_upward_test_data): Likewise.
17214
17215         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17216         with OVERFLOW_EXCEPTION.
17217         (exp10_test_data): Likewise.
17218         (exp2_test_data): Likewise.
17219         (expm1_test_data): Likewise.
17220         (lgamma_test_data): Likewise.
17221         (pow_test_data): Likewise.
17222         (tgamma_test_data): Likewise.
17223         (yn_test_data): Remove duplicate test of overflow.
17224
17225         * math/libm-test.inc (struct test_cc_c_data): New type.
17226         (RUN_TEST_LOOP_cc_c): New macro.
17227         (cpow_test_data): New variable.
17228         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
17229
17230         * math/libm-test.inc (struct test_f_L_data): New type.
17231         (RUN_TEST_LOOP_f_L): New macro.
17232         (llrint_test_data): New variable.
17233         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
17234         (llrint_tonearest_test_data): New variable.
17235         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
17236         (llrint_towardzero_test_data): New variable.
17237         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
17238         (llrint_downward_test_data): New variable.
17239         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
17240         (llrint_upward_test_data): New variable.
17241         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
17242         (llround_test_data): New variable.
17243         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
17244
17245 2013-05-13  Peter Collingbourne  <pcc@google.com>
17246
17247         * math/atest-exp2.c (get_log2): Remove const attribute.
17248
17249 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17250
17251         * math/libm-test.inc (struct test_f_l_data): New type.
17252         (RUN_TEST_LOOP_f_l): New macro.
17253         (lrint_test_data): New variable.
17254         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
17255         (lrint_tonearest_test_data): New variable.
17256         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
17257         (lrint_towardzero_test_data): New variable.
17258         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
17259         (lrint_downward_test_data): New variable.
17260         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
17261         (lrint_upward_test_data): New variable.
17262         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
17263         (lround_test_data): New variable.
17264         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
17265
17266 2013-05-15  Peter Collingbourne  <pcc@google.com>
17267
17268         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
17269         (EXTRACT_WORDS64) Use where appropriate.
17270         (INSERT_WORDS64) Likewise.
17271
17272         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
17273         constraints with x constraints.
17274         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
17275
17276         * malloc/obstack.c (_obstack_compat): Add initializer.
17277
17278 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17279
17280         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
17281         si_trapno and add si_addr_lsb to _sifields.sigfault.
17282         (si_trapno): Remove macro.
17283         (si_addr_lsb): Define new macro.
17284         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17285
17286 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17287
17288         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
17289         instead of TEST_f_l.
17290         (llrint_test_tonearest): Likewise.
17291         (llrint_test_towardzero): Likewise.
17292         (llrint_test_downward): Likewise.
17293         (llrint_test_upward): Likewise.
17294         (llround_test): Likewise.
17295
17296         * math/libm-test.inc (struct test_f_i_data): Add comment.
17297         (RUN_TEST_LOOP_f_b): New macro.
17298         (RUN_TEST_LOOP_f_b_tg): Likewise.
17299         (finite_test_data): New variable.
17300         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
17301         (isfinite_test_data): New variable.
17302         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17303         (isinf_test_data): New variable.
17304         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17305         (isnan_test_data): New variable.
17306         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17307         (isnormal_test_data): New variable.
17308         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17309         (issignaling_test_data): New variable.
17310         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17311         (signbit_test_data): New variable.
17312         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17313
17314         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
17315         with INVALID_EXCEPTION.
17316         (acosh_test_data): Likewise.
17317         (asin_test_data): Likewise.
17318         (atanh_test_data): Likewise.
17319         (fmod_test_data): Likewise.
17320         (log_test_data): Likewise.
17321         (log10_test_data): Likewise.
17322         (log2_test_data): Likewise.
17323         (pow_test_data): Likewise.
17324         (sqrt_test_data): Likewise.
17325         (y0_test_data): Likewise.
17326         (y1_test_data): Likewise.
17327         (yn_test_data): Likewise.
17328
17329         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
17330         function contents.
17331
17332         * math/libm-test.inc (struct test_ff_i_data): New type.
17333         (RUN_TEST_LOOP_ff_i_tg): New macro.
17334         (isgreater_test_data): New variable.
17335         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17336         (isgreaterequal_test_data): New variable.
17337         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17338         (isless_test_data): New variable.
17339         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17340         (islessequal_test_data): New variable.
17341         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17342         (islessgreater_test_data): New variable.
17343         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17344         (isunordered_test_data): New variable.
17345         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17346
17347 2013-05-14  David S. Miller  <davem@davemloft.net>
17348
17349         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17350
17351 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
17352
17353         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
17354
17355         * math/libm-test.inc (struct test_fF_f1_data): Change type of
17356         extra_test to int.
17357         (struct test_f_i_data): Change type of max_ulp to int.
17358
17359         * math/libm-test.inc (test_ffI_f1_data): New type.
17360         (RUN_TEST_LOOP_ffI_f1): New macro.
17361         (remquo_test_data): New variable.
17362         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
17363
17364         * setjmp/tst-setjmp-fp.c: New file.
17365         * setjmp/Makefile (tests): Add tst-setjmp-fp.
17366         (link-libm): New variable.
17367         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
17368
17369         * math/libm-test.inc (struct test_f_i_data): New type.
17370         (RUN_TEST_LOOP_f_i): New macro.
17371         (RUN_TEST_LOOP_f_i_tg): Likewise.
17372         (fpclassify_test_data): New variable.
17373         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
17374         (ilogb_test_data): New variable.
17375         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
17376
17377         * math/libm-test.inc (scalbln_test): Correct function name in END
17378         call.
17379
17380         * math/libm-test.inc (struct test_f_f1_data): Add comment.
17381         (RUN_TEST_LOOP_fI_f1): New macro.
17382         (frexp_test_data): New variable.
17383         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
17384
17385         * math/libm-test.inc (struct test_fF_f1_data): New type.
17386         (RUN_TEST_LOOP_fF_f1): New macro.
17387         (modf_test_data): New variable.
17388         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
17389
17390         * math/libm-test.inc (struct test_f_f1_data): New type.
17391         (RUN_TEST_LOOP_f_f1): New macro.
17392         (gamma_test_data): New variable.
17393         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17394         (lgamma_test_data): New variable.
17395         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17396
17397 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
17398
17399         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
17400         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
17401         (main): Comment "tls" pseudo-hwcap.
17402
17403 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
17404
17405         * math/libm-test.inc (struct test_fl_f_data): New type.
17406         (RUN_TEST_LOOP_fl_f): New variable.
17407         (scalbln_test_data): New variable.
17408         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
17409
17410         * math/libm-test.inc (struct test_fi_f_data): New type.
17411         (RUN_TEST_LOOP_fi_f): New macro.
17412         (ldexp_test_data): New variable.
17413         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
17414         (scalbn_test_data): New variable.
17415         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
17416
17417         * math/libm-test.inc (struct test_c_f_data): New type.
17418         (RUN_TEST_LOOP_c_f): New macro.
17419         (cabs_test_data): New variable.
17420         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
17421         (carg_test_data): New variable.
17422         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
17423         (cimag_test_data): New variable.
17424         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
17425         (creal_test_data): New variable.
17426         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
17427
17428         * math/libm-test.inc (struct test_if_f_data): New type.
17429         (RUN_TEST_LOOP_if_f): New macro.
17430         (jn_test_data): New variable.
17431         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
17432         (yn_test_data): New variable.
17433         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
17434
17435         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
17436
17437 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17438
17439         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
17440         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
17441
17442 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17443
17444         * benchtests/Makefile (CPPFLAGS-nonlib): Add
17445         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
17446         (bench-deps): Add bench-timing.h.
17447         * benchtests-bench-skeleton.c: Include bench-timing.h.
17448         (main): Use TIMING_* macros instead of clock_gettime.
17449         * benchtests/bench-timing.h: New file.
17450
17451         [BZ #14582]
17452         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
17453         Renamed from _LIB_VERSION.
17454         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
17455
17456 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
17457
17458         * math/libm-test.inc (struct test_fff_f_data): New type.
17459         (RUN_TEST_LOOP_fff_f): New macro.
17460         (fma_test_data): New variable.
17461         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
17462         (fma_towardzero_test_data): New variable.
17463         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
17464         (fma_downward_test_data): New variable.
17465         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
17466         (fma_upward_test_data): New variable.
17467         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
17468
17469         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
17470         (struct test_c_c_data): New type.
17471         (RUN_TEST_LOOP_c_c): New macro.
17472         (cacos_test_data): New variable.
17473         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
17474         (cacosh_test_data): New variable.
17475         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
17476         (casin_test_data): New variable.
17477         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
17478         (casinh_test_data): New variable.
17479         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
17480         (catan_test_data): New variable.
17481         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
17482         (catanh_test_data): New variable.
17483         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
17484         (ccos_test_data): New variable.
17485         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
17486         (ccosh_test_data): New variable.
17487         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
17488         (cexp_test_data): New variable.
17489         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
17490         (clog_test_data): New variable.
17491         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
17492         (clog10_test_data): New variable.
17493         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
17494         (conj_test_data): New variable.
17495         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
17496         (cproj_test_data): New variable.
17497         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
17498         (csin_test_data): New variable.
17499         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
17500         (csinh_test_data): New variable.
17501         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
17502         (csqrt_test_data): New variable.
17503         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
17504         (ctan_test_data): New variable.
17505         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
17506         (ctan_tonearest_test_data): New variable.
17507         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17508         (ctan_towardzero_test_data): New variable.
17509         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17510         (ctan_downward_test_data): New variable.
17511         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17512         (ctan_upward_test_data): New variable.
17513         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17514         (ctanh_test_data): New variable.
17515         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
17516         (ctanh_tonearest_test_data): New variable.
17517         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17518         (ctanh_towardzero_test_data): New variable.
17519         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17520         (ctanh_downward_test_data): New variable.
17521         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17522         (ctanh_upward_test_data): New variable.
17523         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17524         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
17525         of BUILD_COMPLEX.
17526
17527         * math/libm-test.inc (struct test_ff_f_data): New type.
17528         (struct test_ff_f_data_nexttoward): Likewise.
17529         (RUN_TEST_LOOP_2_f): New macro.
17530         (RUN_TEST_LOOP_ff_f): Likewise.
17531         (atan2_test_data): New variable.
17532         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
17533         (copysign_test_data): New variable.
17534         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
17535         (fdim_test_data): New variable.
17536         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
17537         (fmax_test_data): New variable.
17538         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
17539         (fmin_test_data): New variable.
17540         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
17541         (fmod_test_data): New variable.
17542         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
17543         (hypot_test_data): New variable.
17544         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
17545         (nextafter_test_data): New variable.
17546         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
17547         (nexttoward_test_data): New variable.
17548         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
17549         (pow_test_data): New variable.
17550         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
17551         (pow_tonearest_test_data): New variable.
17552         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
17553         (pow_towardzero_test_data): New variable.
17554         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
17555         (pow_downward_test_data): New variable.
17556         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
17557         (pow_upward_test_data): New variable.
17558         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
17559         (remainder_test_data): New variable.
17560         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
17561         (scalb_test_data): New variable.
17562         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
17563         * sysdeps/i386/fpu/libm-test-ulps: Update.
17564
17565 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
17566
17567         * math/libm-test.inc (fma_test): Use max_value instead of local
17568         variable fltmax.
17569         (nextafter_test): Likewise.
17570
17571         * math/libm-test.inc (acos_towardzero_test_data): New variable.
17572         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17573         (acos_downward_test_data): New variable.
17574         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17575         (acos_upward_test_data): New variable.
17576         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17577         (acosh_test_data): New variable.
17578         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
17579         (asin_test_data): New variable.
17580         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
17581         (asin_tonearest_test_data): New variable.
17582         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17583         (asin_towardzero_test_data): New variable.
17584         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17585         (asin_downward_test_data): New variable.
17586         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17587         (asin_upward_test_data): New variable.
17588         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17589         (asinh_test_data): New variable.
17590         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
17591         (atan_test_data): New variable.
17592         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
17593         (atanh_test_data): New variable.
17594         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
17595         (cbrt_test_data): New variable.
17596         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
17597         (ceil_test_data): New variable.
17598         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
17599         (cos_test_data): New variable.
17600         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
17601         (cos_tonearest_test_data): New variable.
17602         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17603         (cos_towardzero_test_data): New variable.
17604         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17605         (cos_downward_test_data): New variable.
17606         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17607         (cos_upward_test_data): New variable.
17608         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17609         (cosh_test_data): New variable.
17610         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
17611         (cosh_tonearest_test_data): New variable.
17612         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17613         (cosh_towardzero_test_data): New variable.
17614         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17615         (cosh_downward_test_data): New variable.
17616         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17617         (cosh_upward_test_data): New variable.
17618         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17619         (erf_test_data): New variable.
17620         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
17621         (erfc_test_data): New variable.
17622         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
17623         (exp_test_data): New variable.
17624         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
17625         (exp_tonearest_test_data): New variable.
17626         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17627         (exp_towardzero_test_data): New variable.
17628         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17629         (exp_downward_test_data): New variable.
17630         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17631         (exp_upward_test_data): New variable.
17632         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17633         (exp10_test_data): New variable.
17634         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
17635         (exp2_test_data): New variable.
17636         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
17637         (expm1_test_data): New variable.
17638         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
17639         (fabs_test_data): New variable.
17640         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
17641         (floor_test_data): New variable.
17642         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
17643         (j0_test_data): New variable.
17644         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
17645         (j1_test_data): New variable.
17646         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
17647         (log_test_data): New variable.
17648         (log_test): Run tests with RUN_TEST_LOOP_f_f.
17649         (log10_test_data): New variable.
17650         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
17651         (log1p_test_data): New variable.
17652         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
17653         (log2_test_data): New variable.
17654         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
17655         (logb_test_data): New variable.
17656         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
17657         (logb_downward_test_data): New variable.
17658         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17659         (nearbyint_test_data): New variable.
17660         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
17661         (rint_test_data): New variable.
17662         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
17663         (rint_tonearest_test_data): New variable.
17664         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17665         (rint_towardzero_test_data): New variable.
17666         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17667         (rint_downward_test_data): New variable.
17668         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17669         (rint_upward_test_data): New variable.
17670         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17671         (round_test_data): New variable.
17672         (round_test): Run tests with RUN_TEST_LOOP_f_f.
17673         (sin_test_data): New variable.
17674         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
17675         (sin_tonearest_test_data): New variable.
17676         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17677         (sin_towardzero_test_data): New variable.
17678         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17679         (sin_downward_test_data): New variable.
17680         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17681         (sin_upward_test_data): New variable.
17682         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17683         (sinh_test_data): New variable.
17684         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
17685         (sinh_tonearest_test_data): New variable.
17686         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17687         (sinh_towardzero_test_data): New variable.
17688         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17689         (sinh_downward_test_data): New variable.
17690         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17691         (sinh_upward_test_data): New variable.
17692         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17693         (sqrt_test_data): New variable.
17694         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
17695         (tan_test_data): New variable.
17696         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
17697         (tan_tonearest_test_data): New variable.
17698         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17699         (tan_towardzero_test_data): New variable.
17700         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17701         (tan_downward_test_data): New variable.
17702         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17703         (tan_upward_test_data): New variable.
17704         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17705         (tanh_test_data): New variable.
17706         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
17707         (tgamma_test_data): New variable.
17708         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
17709         (trunc_test_data): New variable.
17710         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
17711         (y0_test_data): New variable.
17712         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
17713         (y1_test_data): New variable.
17714         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
17715         (significand_test_data): New variable.
17716         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
17717
17718 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
17719
17720         [BZ #12387]
17721         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
17722
17723 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
17724
17725         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
17726
17727 2013-05-10  Andreas Jaeger  <aj@suse.de>
17728
17729         [BZ #15448]
17730         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
17731         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
17732
17733 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
17734
17735         * math/gen-libm-test.pl (adjust_arg): New function.
17736         (special_functions): Handle generating output in both functions
17737         and arrays.
17738         (parse_args): Likewise.
17739         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
17740         $in_func argument to parse_args.
17741         * math/libm-test.inc (struct test_f_f_data): New type.
17742         (IF_ROUND_INIT_): New macro.
17743         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
17744         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
17745         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
17746         (IF_ROUND_INIT_FE_UPWARD): Likewise.
17747         (ROUND_RESTORE_): Likewise.
17748         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
17749         (ROUND_RESTORE_FE_TONEAREST): Likewise.
17750         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
17751         (ROUND_RESTORE_FE_UPWARD): Likewise.
17752         (RUN_TEST_LOOP_f_f): New macro.
17753         (acos_test_data): New variable.
17754         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
17755         (acos_tonearest_test_data): New variable.
17756         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17757
17758 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17759
17760         * benchtests/bench-skeleton.c (startup): Fix coding style.
17761
17762 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
17763
17764         [BZ #6809]
17765         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
17766         negative infinity argument.
17767         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
17768         negative infinity argument.
17769         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
17770         negative infinity argument.
17771         * math/libm-test.inc (tgamma_test): Expect errno to be set for
17772         domain errors.
17773
17774 2013-05-10  Florian Weimer  <fweimer@redhat.com>
17775
17776         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
17777         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
17778         * iconv/iconv_prog.c (main): Likewise.
17779         * locale/programs/charmap-dir.c (charmap_readdir)
17780         (fopen_uncompressed): Likewise.
17781         * locale/programs/locfile.c (siblings_uncached)
17782         (write_locale_data): Use lstat64 instead of lstat.
17783         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
17784         stat.
17785
17786 2013-05-10  Andreas Jaeger  <aj@suse.de>
17787
17788         [BZ #15395]
17789         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
17790         localization.
17791         Include <locale.h>.
17792
17793 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
17794
17795         * elf/dl-close.c (_dl_close_worker): Add comments.
17796
17797 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
17798
17799         [BZ #15359]
17800         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
17801         high part of pi/2.
17802         (__ieee754_rem_pio2l): Update comments.
17803
17804         [BZ #15429]
17805         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
17806         high part of pi/2.
17807         (__ieee754_rem_pio2l): Update comments.
17808
17809         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
17810         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
17811
17812         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
17813         M_PI_4l.
17814
17815         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
17816         (M_PI_34_LOG10El): Likewise.
17817         (M_PI2_LOG10El): Likewise.
17818         (M_PI4_LOG10El): Likewise.
17819         (M_PI_LOG10El): Likewise.
17820
17821 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17822
17823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17824
17825 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
17826
17827         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
17828         (MINUS_ZERO_INIT): Likewise.
17829         (PLUS_INFTY_INIT): Likewise.
17830         (MINUS_INFTY_INIT): Likewise.
17831         (QNAN_VALUE_INIT): Likewise.
17832         (MAX_VALUE_INIT): Likewise.
17833         (MIN_VALUE_INIT): Likewise.
17834         (MIN_SUBNORM_VALUE_INIT): Likewise.
17835         (plus_zero): Initialize with PLUS_ZERO_INIT.
17836         (minus_zero): Initialize with MINUS_ZERO_INIT.
17837         (plus_infty): Initialize with PLUS_INFTY_INIT.
17838         (minus_infty): Initialize with MINUS_INFTY_INIT.
17839         (qnan_value): Initialize with QNAN_VALUE_INIT.
17840         (max_value): Initialize with MAX_VALUE_INIT.
17841         (min_value): Initialize with MIN_VALUE_INIT.
17842         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
17843
17844         * math/libm-test.inc (RUN_TEST_if_f): New macro.
17845         (jn_test): Use TEST_if_f instead of TEST_ff_f.
17846         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
17847         (yn_test): Use TEST_if_f instead of TEST_ff_f.
17848
17849         * math/libm-test.inc (RUN_TEST_f_f): New macro.
17850         (RUN_TEST_2_f): Likewise.
17851         (RUN_TEST_ff_f): Likewise.
17852         (RUN_TEST_fi_f): Likewise.
17853         (RUN_TEST_fl_f): Likewise.
17854         (RUN_TEST_fff_f): Likewise.
17855         (RUN_TEST_c_f): Likewise.
17856         (RUN_TEST_f_f1): Likewise.
17857         (RUN_TEST_fF_f1): Likewise.
17858         (RUN_TEST_fI_f1): Likewise.
17859         (RUN_TEST_ffI_f1): Likewise.
17860         (RUN_TEST_c_c): Likewise.
17861         (RUN_TEST_cc_c): Likewise.
17862         (RUN_TEST_f_i): Likewise.
17863         (RUN_TEST_f_i_tg): Likewise.
17864         (RUN_TEST_ff_i_tg): Likewise.
17865         (RUN_TEST_f_b): Likewise.
17866         (RUN_TEST_f_b_tg): Likewise.
17867         (RUN_TEST_f_l): Likewise.
17868         (RUN_TEST_f_L): Likewise.
17869         (RUN_TEST_sincos): Likewise.
17870         * math/gen-libm-test.pl (new_test): Take new argument to indicate
17871         whether to show exceptions.  Do not include ");\n" in return
17872         value.
17873         (special_functions): Output call to RUN_TEST_sincos instead of
17874         check_float calls.  Update calls to new_test.
17875         (parse_args): Output call to single RUN_TEST_* macro instead of
17876         check_* calls and other assignments.  Update calls to new_test.
17877
17878         [BZ #2546]
17879         [BZ #2560]
17880         [BZ #5159]
17881         [BZ #15426]
17882         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
17883         input to result for tgamma overflow.
17884         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
17885         (gamma_coeff): New variable.
17886         (NCOEFF): New macro.
17887         (gamma_positive): New function.
17888         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
17889         underflow here.  Use gamma_positive instead of exp (lgamma) for
17890         other arguments.
17891         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
17892         (gamma_coeff): New variable.
17893         (NCOEFF): New macro.
17894         (gammaf_positive): New function.
17895         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
17896         underflow here.  Use gamma_positive instead of exp (lgamma) for
17897         other arguments.
17898         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
17899         (gamma_coeff): New variable.
17900         (NCOEFF): New macro.
17901         (gammal_positive): New function.
17902         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
17903         underflow here.  Use gamma_positive instead of exp (lgamma) for
17904         other arguments.
17905         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
17906         (gamma_coeff): New variable.
17907         (NCOEFF): New macro.
17908         (gammal_positive): New function.
17909         (__ieee754_gammal_r): Handle positive infinity, overflow and
17910         underflow here.  Handle NaN the same as positive infinity.  Remove
17911         check x < 0xffffffff for negative integers.  Use gamma_positive
17912         instead of exp (lgamma) for other arguments.
17913         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
17914         (gamma_coeff): New variable.
17915         (NCOEFF): New macro.
17916         (gammal_positive): New function.
17917         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
17918         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
17919         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
17920         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
17921         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
17922         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
17923         * sysdeps/generic/math_private.h (__gamma_productf): New
17924         prototype.
17925         (__gamma_product): Likewise.
17926         (__gamma_productl): Likewise.
17927         * math/Makefile (libm-calls): Add gamma_product.
17928         * math/libm-test.inc (tgamma_test): Add more tests.
17929         * sysdeps/i386/fpu/libm-test-ulps: Update.
17930         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17931
17932 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
17933
17934         * benchtests/bench-skeleton.c (main): Preheat CPU.
17935
17936 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
17937
17938         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
17939
17940 2013-05-07  Roland McGrath  <roland@hack.frob.com>
17941
17942         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
17943         and _dl_skip_args_internal.
17944
17945 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
17946
17947         * manual/message.texi (Message Translation): Talk about users.
17948         Message to key mapping impacts design.
17949
17950 2013-05-06  Roland McGrath  <roland@hack.frob.com>
17951
17952         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
17953
17954         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
17955
17956         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
17957         * sysdeps/wordsize-64/glob64.c: ... here.
17958
17959         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
17960         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
17961         New macros.
17962
17963         * debug/getlogin_r_chk.c: Moved to ...
17964         * login/getlogin_r_chk.c: ... here.
17965         * debug/Makefile (routines): Move getlogin_r_chk to ...
17966         * login/Makefile (routines): ... here.
17967         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
17968         * login/Versions (libc: GLIBC_2.4): ... here.
17969
17970         * io/poll.c (__poll): Renamed from poll.
17971         Add libc_hidden_def.
17972         (poll): Define as weak alias.
17973
17974         * debug/ptsname_r_chk.c: Moved to ...
17975         * login/ptsname_r_chk.c: ... here.
17976         * debug/Makefile (routines): Move ptsname_r_chk to ...
17977         * login/Makefile (routines): ... here.
17978         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
17979         * login/Versions (libc: GLIBC_2.4): ... here.
17980
17981         * posix/getlogin.c: Moved to ...
17982         * login/getlogin.c: ... here.
17983         * posix/getlogin_r.c: Moved to ...
17984         * login/getlogin_r.c: ... here.
17985         * posix/getlogin_r.c: Moved to ...
17986         * login/getlogin_r.c: ... here.
17987         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
17988         * login/Makefile (routines): ... here.
17989         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
17990         * login/Versions (libc: GLIBC_2.0): ... here.
17991
17992         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
17993         (setrlimit): Define as weak alias.
17994
17995         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
17996         Call __ names for open, ftruncate, and close.
17997         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
17998         (truncate): Define as weak alias.
17999
18000 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18001
18002         * math/gen-libm-test.pl (parse_args): Initialize x before each
18003         test of frexp, modf and remquo.
18004
18005         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18006         test signgam value.
18007
18008 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18009
18010         [BZ #15418]
18011         [BZ #15419]
18012         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18013         internal tests.
18014         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18015
18016 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18017
18018         * elf/dl-writev.h: New file.
18019         * elf/dl-misc.c: Include it.
18020         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18021         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18022
18023 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18024
18025         * math/libm-test.inc (noXFails): Remove variable.
18026         (noXPasses): Likewise.
18027         (BUILD_COMPLEX_INT): Remove macro.
18028         (print_screen): Remove xfail argument.
18029         (print_screen_max_error): Likewise.
18030         (update_stats): Likewise.
18031         (print_max_error): Likewise.  Update calls to other affected
18032         functions.
18033         (print_complex_max_error): Likewise.
18034         (test_single_exception): Update calls to print_screen.
18035         (test_single_errno): Likewise.
18036         (check_float_internal): Remove xfail argument.  Update calls to
18037         other affected functions.
18038         (check_float): Likewise.
18039         (check_complex): Likewise.
18040         (check_int): Likewise.
18041         (check_long): Likewise.
18042         (check_bool): Likewise.
18043         (check_longlong): Likewise.
18044         (main): Don't print noXFails and noXPasses.
18045         * math/gen-libm-test.pl (top level): Don't mention expected
18046         failure handling in comment.
18047         (new_test): Don't handle expected failures.
18048         (parse_args): Don't mention expected failure handling in comment.
18049         (generate_testfile): Don't handle expected failures.
18050         (parse_ulps): Likewise.
18051         (print_ulps_file): Likewise.
18052         (get_failure): Remove function.
18053         (output_test): Don't handle expected failures.
18054         * make/README.libm-test: Don't mention expected failure handling.
18055
18056         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18057         (minus_zero): Likewise.
18058         (plus_infty): Likewise.
18059         (minus_infty): Likewise.
18060         (qnan_value): Likewise.
18061         (max_value): Likewise.
18062         (min_value): Likewise.
18063         (min_subnorm_value): Likewise.
18064         (initialize): Do not initialize those variables dynamically.
18065
18066 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18067
18068         * io/open.c (__open_2): Moved to ...
18069         * io/open_2.c: ... this new file.
18070         * io/open64.c (__open64_2): Moved to ...
18071         * io/open64_2.c: ... this new file.
18072         * io/openat.c (__openat_2): Moved to ...
18073         * io/openat_2.c: ... this new file.
18074         * io/openat64.c (__openat64_2): Moved to ...
18075         * io/openat64_2.c: ... this new file.
18076         * io/Makefile (routines): Add them.
18077         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18078         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18079         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18080         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18081         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18082         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18083         (__openat64): Add hidden_ver.
18084         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18085         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18086
18087         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18088         Separately conditionalize setting of GLRO(dl_sysinfo) so
18089         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18090         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18091
18092 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18093
18094         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18095         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18096         definition.
18097         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18098         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18099         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18100         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18101         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18102
18103 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18104
18105         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18106         test signgam value.
18107
18108         * math/libm-test.inc (hypot_test): Do not use
18109         IGNORE_ZERO_INF_SIGN.
18110
18111 2013-05-03  Andreas Jaeger  <aj@suse.de>
18112
18113         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18114         Linux 3.9.
18115         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18116         (PF_MAX): Adjust for VSOCK change.
18117
18118 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18119
18120         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18121
18122 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18123
18124         [BZ #15264]
18125         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18126         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18127         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18128
18129 2013-05-02  David S. Miller  <davem@davemloft.net>
18130
18131         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18132
18133 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18134
18135         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18136
18137 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18138
18139         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18140
18141 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18142
18143         [BZ #14952]
18144         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18145         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18146         Use __attribute__ ((__gnu_inline__)).
18147         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18148         Don't use __attribute__ ((__gnu_inline__)).
18149
18150 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18151
18152         [BZ #15423]
18153         * math/s_catan.c (__catan): Handle small real or imaginary part of
18154         input specially to avoid spurious underflow.
18155         * math/s_catanf.c (__catanf): Likewise.
18156         * math/s_catanh.c (__catanh): Likewise.
18157         * math/s_catanhf.c (__catanhf): Likewise.
18158         * math/s_catanhl.c (__catanhl): Likewise.
18159         * math/s_catanl.c (__catanl): Likewise.
18160         * math/libm-test.inc (catan_test): Add more tests.
18161         (catanh_test): Likewise.
18162         * sysdeps/i386/fpu/libm-test-ulps: Update.
18163         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18164
18165 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18166
18167         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18168
18169 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18170
18171         [BZ #15416]
18172         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18173         accurately for denominator in atan2.
18174         * math/s_catanf.c (__catanf): Likewise.
18175         * math/s_catanh.c (__catanh): Likewise.
18176         * math/s_catanhf.c (__catanhf): Likewise.
18177         * math/s_catanhl.c (__catanhl): Likewise.
18178         * math/s_catanl.c (__catanl): Likewise.
18179         * math/libm-test.inc (catan_test): Add more tests.
18180         (catanh_test): Likewise.
18181         * sysdeps/i386/fpu/libm-test-ulps: Update.
18182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18183
18184 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18185
18186         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18187
18188         * benchtests/Makefile (bench): Remove slow benchmarks.
18189         * benchtests/atan-inputs: Add slow benchmark inputs.
18190         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18191         (BENCH_FUNC): Accept variant offset.
18192         (VARIANT): Define.
18193         * benchtests/bench-skeleton.c (main): Run benchmark for each
18194         variant.
18195         * benchtests/cos-inputs: Add slow benchmark inputs.
18196         * benchtests/exp-inputs: Likewise.
18197         * benchtests/pow-inputs: Likewise.
18198         * benchtests/sin-inputs: Likewise.
18199         * benchtests/slowatan-inputs: Remove.
18200         * benchtests/slowatan.c: Remove.
18201         * benchtests/slowcos-inputs: Remove.
18202         * benchtests/slowcos.c: Remove.
18203         * benchtests/slowexp-inputs: Remove.
18204         * benchtests/slowexp.c: Remove.
18205         * benchtests/slowpow-inputs: Remove.
18206         * benchtests/slowpow.c: Remove.
18207         * benchtests/slowsin-inputs: Remove.
18208         * benchtests/slowsin.c: Remove.
18209         * benchtests/slowtan-inputs: Remove.
18210         * benchtests/slowtan.c: Remove.
18211         * benchtests/tan-inputs: Add slow benchmark inputs.
18212         * scripts/bench.pl: Parse comments and directives.
18213
18214         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18215         in CPPFLAGS.
18216         ($(objpfx)bench-%.c): Remove *-ITER.
18217         * benchtests/bench-modf.c: Remove definition of ITER.
18218         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18219         (main): Loop for DURATION seconds instead of fixed number of
18220         iterations.
18221         * scripts/bench.pl: Don't expect iterations in parameters.
18222
18223 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18224
18225         * io/fchdir.c (__fchdir): Renamed from fchdir.
18226         (fchdir): Define as weak alias.
18227
18228 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18229
18230         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
18231         (ERRNO_EDOM): Likewise.
18232         (ERRNO_ERANGE): Likewise.
18233         (noErrnoTests): New variable.
18234         (init_max_error): Set errno to 0.
18235         (test_single_errno): New function.
18236         (test_errno): Likewise.
18237         (check_float_internal): Call test_errno.  Set errno to 0.
18238         (check_complex): Refer to errno tests in comment.
18239         (check_int): Call test_errno.  Set errno to 0.
18240         (check_long): Likewise.
18241         (check_bool): Likewise.
18242         (check_longlong): Likewise.
18243         (cos_test): Use ERRNO_* flags for errno tests instead of
18244         check_int.
18245         (expm1_test): Likewise.
18246         (fmod_test): Likewise.
18247         (ilogb_test): Likewise.
18248         (lgamma_test): Likewise.
18249         (pow_test): Likewise.
18250         (remainder_test): Likewise.
18251         (sin_test): Likewise.
18252         (tan_test): Likewise.
18253         (yn_test): Likewise.
18254         (initialize): Set errno to 0.
18255         (main): Print number of errno tests.
18256         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
18257
18258 2013-04-29  Andreas Jaeger  <aj@suse.de>
18259
18260         [BZ #15084]
18261         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
18262         and RES_USEVC.
18263
18264         [BZ #15085]
18265         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
18266         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
18267         unimplemented.
18268
18269         [BZ #15380]
18270         * stdlib/random.c (__initstate): Return NULL if
18271         __initstate fails.
18272
18273         [BZ #15086]
18274         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
18275         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
18276         RES_SNGLKUPREOP.
18277
18278 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18279
18280         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18281
18282 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18283
18284         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
18285         of individual tests.
18286         (casin_test): Likewise.
18287         (casinh_test): Likewise.
18288
18289 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
18290
18291         [BZ #15409]
18292         * math/s_catan.c (__catan): Handle arguments with large real or
18293         imaginary part separately without squaring.
18294         * math/s_catanf.c (__catanf): Likewise.
18295         * math/s_catanh.c (__catanh): Likewise.
18296         * math/s_catanhf.c (__catanhf): Likewise.
18297         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18298         and redefine.
18299         (__catanhl): Handle arguments with large real or imaginary part
18300         separately without squaring.
18301         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18302         and redefine.
18303         (__catanl): Handle arguments with large real or imaginary part
18304         separately without squaring.
18305         * math/libm-test.inc (catan_test): Add more tests.
18306         (catanh_test): Likewise.
18307         * sysdeps/i386/fpu/libm-test-ulps: Update.
18308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18309
18310 2013-04-27  Andreas Jaeger  <aj@suse.de>
18311
18312         [BZ #15007]
18313         * stdlib/stdlib.h: Update guards for qecvt.
18314         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
18315         <stdlib.h>.
18316
18317 2013-04-27  Allan McRae  <allan@archlinux.org>
18318
18319         * sysdeps/i386/fpu/libm-test-ulps: Update.
18320
18321 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
18322
18323         [BZ #15406]
18324         * math/s_catan.c: Include <float.h>.
18325         (__catan): Ensure underflow exception occurs for underflowed
18326         result.
18327         * math/s_catanf.c: Include <float.h>.
18328         (__catanf): Ensure underflow exception occurs for underflowed
18329         result.
18330         * math/s_catanh.c: Include <float.h>.
18331         (__catanh): Ensure underflow exception occurs for underflowed
18332         result.
18333         * math/s_catanhf.c: Include <float.h>.
18334         (__catanhf): Ensure underflow exception occurs for underflowed
18335         result.
18336         * math/s_catanhl.c: Include <float.h>.
18337         (__catanhl): Ensure underflow exception occurs for underflowed
18338         result.
18339         * math/s_catanl.c: Include <float.h>.
18340         (__catanl): Ensure underflow exception occurs for underflowed
18341         result.
18342         * math/libm-test.inc (catan_test): Add more tests.
18343         (catanh_test): Likewise.
18344
18345         [BZ #15405]
18346         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
18347         underflowed result.
18348         * math/s_ccoshf.c (__ccoshf): Likewise.
18349         * math/s_ccoshl.c (__ccoshl): Likewise.
18350         * math/s_csin.c (__csin): Likewise.
18351         * math/s_csinf.c (__csinf): Likewise.
18352         * math/s_csinh.c (__csinh): Likewise.
18353         * math/s_csinhf.c (__csinhf): Likewise.
18354         * math/s_csinhl.c (__csinhl): Likewise.
18355         * math/s_csinl.c (__csinl): Likewise.
18356         * math/libm-test.inc (ccos_test): Add more tests.
18357         (ccosh_test): Likewise.
18358         (csin_test): Likewise.
18359         (csinh_test): Likewise.
18360
18361 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18362
18363         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
18364         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
18365         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
18366         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
18367         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
18368         powerpc/power5+/fpu folders.
18369         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18370
18371
18372 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18373
18374         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18375
18376 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
18377
18378         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
18379         additions to variable.
18380         [$(config-machine) = x86_64] (modules-names): Likewise.
18381         ($(objpfx)tst-audit3): Remove dependency.
18382         ($(objpfx)tst-audit3.out): Likewise.
18383         ($(objpfx)tst-audit4): Likewise.
18384         ($(objpfx)tst-audit4.out): Likewise.
18385         ($(objpfx)tst-audit5): Likewise.
18386         ($(objpfx)tst-audit5.out): Likewise.
18387         ($(objpfx)tst-audit6): Likewise.
18388         ($(objpfx)tst-audit6.out): Likewise.
18389         ($(objpfx)tst-audit7): Likewise.
18390         ($(objpfx)tst-audit7.out): Likewise.
18391         (tst-audit3-ENV): Remove variable.
18392         (tst-audit4-ENV): Likewise.
18393         (tst-audit5-ENV): Likewise.
18394         (tst-audit6-ENV): Likewise.
18395         (tst-audit7-ENV): Likewise.
18396         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
18397         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
18398         addition to variable.
18399         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
18400         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
18401         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
18402         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
18403         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
18404         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
18405         tst-audit3, tst-audit4 and tst-audit5.
18406         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
18407         tst-audit6 and tst-audit7.
18408         [$(subdir) = elf] (modules-names): Add audit modules for those
18409         tests.
18410         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
18411         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
18412         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
18413         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
18414         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
18415         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
18416         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
18417         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
18418         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
18419         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
18420         [$(subdir) = elf] (tst-audit3-ENV): New variable.
18421         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
18422         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
18423         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
18424         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
18425         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
18426         Likewise.
18427         [$(subdir) = elf && $(config-cflags-avx) = yes]
18428         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
18429         [$(subdir) = elf && $(config-cflags-avx) = yes]
18430         (CFLAGS-tst-auditmod4a.c): Likewise.
18431         [$(subdir) = elf && $(config-cflags-avx) = yes]
18432         (CFLAGS-tst-auditmod4b.c): Likewise.
18433         [$(subdir) = elf && $(config-cflags-avx) = yes]
18434         (CFLAGS-tst-auditmod6b.c): Likewise.
18435         [$(subdir) = elf && $(config-cflags-avx) = yes]
18436         (CFLAGS-tst-auditmod6c.c): Likewise.
18437         [$(subdir) = elf && $(config-cflags-avx) = yes]
18438         (CFLAGS-tst-auditmod7b.c): Likewise.
18439         * elf/tst-audit3.c: Move to ...
18440         * sysdeps/x86_64/tst-audit3.c: ... here.
18441         * elf/tst-audit4.c: Move to ...
18442         * sysdeps/x86_64/tst-audit4.c: ... here.
18443         * elf/tst-audit5.c: Move to ...
18444         * sysdeps/x86_64/tst-audit5.c: ... here.
18445         * elf/tst-audit6.c: Move to ...
18446         * sysdeps/x86_64/tst-audit6.c: ... here.
18447         * elf/tst-audit7.c: Move to ...
18448         * sysdeps/x86_64/tst-audit7.c: ... here.
18449         * elf/tst-auditmod3a.c: Move to ...
18450         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
18451         * elf/tst-auditmod3b.c: Move to ...
18452         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
18453         * elf/tst-auditmod4a.c: Move to ...
18454         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
18455         * elf/tst-auditmod4b.c: Move to ...
18456         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
18457         * elf/tst-auditmod5a.c: Move to ...
18458         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
18459         * elf/tst-auditmod5b.c: Move to ...
18460         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
18461         * elf/tst-auditmod6a.c: Move to ...
18462         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
18463         * elf/tst-auditmod6b.c: Move to ...
18464         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
18465         * elf/tst-auditmod6c.c: Move to ...
18466         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
18467         * elf/tst-auditmod7a.c: Move to ...
18468         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
18469         * elf/tst-auditmod7b.c: Move to ...
18470         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
18471
18472 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
18473
18474         [BZ #15366]
18475         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
18476         define unconditionally.
18477         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
18478         define unconditionally.
18479         (INT8_C, INT16_C, etc.): Likewise.
18480
18481 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
18482
18483         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
18484         __ehdr_start with hidden visibility.
18485
18486         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
18487
18488 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
18489
18490         * math/libm-test.inc (cos_test): Use accurate hex constants.
18491         (sincost_test): Likewise.
18492
18493 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
18494
18495         * math/libm-test.inc (catan_test): Add more tests.
18496         (catanh_test): Likewise.
18497
18498         * math/s_catanf.c (__catanf): Use suffixed floating-point
18499         constants.
18500         * math/s_catanhf.c (__catanhf): Likewise.
18501         * math/s_catanhl.c (__catanhl): Likewise.
18502         * math/s_catanl.c (__catanl): Likewise.
18503
18504         [BZ #15394]
18505         * math/s_catan.c (__catan): Calculate imaginary part of result
18506         with log1p not log unless computing log of number close to 0.
18507         * math/s_catanf.c (__catanf): Likewise.
18508         * math/s_catanl.c (__catanl): Likewise.
18509         * math/s_catanh.c (__catanh): Calculate real part of result with
18510         log1p not log unless computing log of number close to 0.
18511         * math/s_catanhf.c (__catanhf): Likewise.
18512         * math/s_catanhl.c (__catanhl): Likewise.
18513         * math/libm-test.inc (catan_test): Add more tests.
18514         (catanh_test): Likewise.
18515         * sysdeps/i386/fpu/libm-test-ulps: Update.
18516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18517
18518 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18519
18520         * benchtests/Makefile: Mention files in which fast and slow
18521         paths of math functions are implemented.
18522
18523 2013-04-23  Roland McGrath  <roland@hack.frob.com>
18524
18525         * sysdeps/posix/timespec_get.c: New file.
18526
18527 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18528
18529         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
18530         POWER.
18531         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
18532         for POWER.
18533         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
18534         powerpc/power5/fpu folders.
18535         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
18536         * benchtests/Makefile: Add modf testcase.
18537         * benchtests/bench-modf.c: New file: Benchmark test for mo
18538
18539 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
18540
18541         [BZ #14888]
18542         * time/Makefile (tests): Add tst-strptime-whitespace.
18543         * time/strptime_l.c (get_number): Use ISSPACE.
18544         (__strptime_internal): Likewise.
18545         * time/tst-strptime-whitespace.c: New test case.
18546
18547 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
18548
18549         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
18550         member.
18551         (_nss_files_init): Set it here.
18552
18553 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
18554
18555         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
18556         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
18557         unsigned.
18558
18559 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
18560
18561         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
18562
18563 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18564
18565         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
18566         size just once.
18567
18568 2013-04-21  David S. Miller  <davem@davemloft.net>
18569
18570         * po/ru.po: Update Russion translation from translation project.
18571
18572 2013-04-17  Adam Conrad  <adconrad@0c3.net>
18573
18574         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
18575         and setfsgid.
18576
18577 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
18578
18579         * configure.in: Remove i386 configure warning. Remove i386 case.
18580         * configure: Regenerate.
18581         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
18582         Add example to error message.
18583         * sysdeps/i386/configure: Regenerate.
18584
18585 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
18586
18587         * benchtests/Makefile (bench): Add cos, tan, slowcos and
18588         slowtan.
18589         * benchtests/cos-inputs: New file.
18590         * benchtests/slowcos-inputs: New file.
18591         * benchtests/slowcos.c: New file.
18592         * benchtests/slowtan-inputs: New file.
18593         * benchtests/slowtan.c: New file.
18594         * benchtests/tan-inputs: New file.
18595
18596 2013-04-16  Roland McGrath  <roland@hack.frob.com>
18597
18598         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
18599         considered kosher.
18600
18601 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18602
18603         * benchtests/Makefile: Include cppflags-iterator.mk to add
18604         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
18605
18606         * Makefile.in (bench-clean): New target.
18607         * benchtests/Makefile (bench-clean): Likewise.
18608
18609 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
18610
18611         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
18612
18613 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18614
18615         * stdio-common/tstdiomisc.c: Fix coding-style violation.
18616
18617 2013-04-15  Andreas Schwab  <schwab@suse.de>
18618
18619         * nscd/grpcache.c (cache_addgr): Properly check for short write.
18620         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18621         * nscd/pwdcache.c (cache_addpw): Likewise.
18622         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
18623         more than recsize.
18624
18625 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18626
18627         * benchtests/Makefile (bench): Write all output to
18628         bench-out.tmp together.
18629
18630 2013-04-15  Andreas Schwab  <schwab@suse.de>
18631
18632         * nscd/nscd.c (main): Don't fork again after closing files.
18633
18634 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18635
18636         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
18637
18638         * benchtests/Rules (bench-deps): Collect dependencies into a
18639         single variable.  Add Makefile to dependencies.
18640         ($(objpfx)bench-%.c): Depend on bench-deps.
18641
18642 2013-04-12  Roland McGrath  <roland@hack.frob.com>
18643             Xavier Roche  <roche+kml2@exalead.com>
18644
18645         [BZ #15361]
18646         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
18647         just that it's a file descriptor.
18648         * manual/llio.texi (Synchronizing AIO Operations): Update description
18649         for EBADF error from aio_fsync.
18650
18651 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
18652
18653         * Rules (bench): Move target definition...
18654         * benchtests/Makefile: ... here.
18655
18656 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
18657
18658         * math/libm-test.inc (cos_test): Fix PI/2 test.
18659         (sincos_test): Likewise.
18660         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
18661         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
18662
18663 2013-04-11  Andreas Schwab  <schwab@suse.de>
18664
18665         [BZ #13988]
18666         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
18667         accept exponent character only when digits were seen.
18668         * stdio-common/Makefile (tests): Add bug26.
18669         * stdio-common/bug26.c: New file.
18670
18671         [BZ #14293]
18672         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
18673         non-freeable.
18674
18675 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
18676
18677         * Makeconfig (rtld-prefix): Define built linker prefix.
18678         * Rules (run-bench): Use it.
18679         * math/Makefile (run-regen-ulps): Likewise.
18680
18681         * Rules (bench): Remove eval.
18682
18683 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18684             Roland McGrath  <roland@hack.frob.com>
18685             Ondrej Bilka  <neleai@seznam.cz>
18686
18687         [BZ #15346]
18688         * time/getdate.c: Include ctype.h and alloca.h.
18689         (__getdate_r): Trim leading and trailing spaces of input.
18690         * time/tst-getdate.c (tests): Add tests with leading and
18691         trailing spaces.
18692
18693 2013-04-08  Roland McGrath  <roland@hack.frob.com>
18694
18695         [BZ #14280]
18696         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
18697         when computing value.
18698
18699 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18700
18701         * math/README.libm-test (How can I generate "libm-test-ulps"?):
18702         Use testrun.sh to run libm tests.
18703
18704         [BZ #15309]
18705         * elf/dl-open.c (dl_open_worker): memset all of seen array.
18706
18707 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
18708
18709         [BZ #15264]
18710         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
18711
18712 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18713
18714         * Makefile.in (regen-ulps): New target.
18715         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
18716         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
18717         [ifneq (no,$(PERL)] (regen-ulps): New target.
18718         [ifeq (no,$(PERL)] (regen-ulps): New target.
18719         * math/libm-test.inc (ulps_file_name): Define.
18720         (output_dir): New variable.
18721         (options): Add "output-dir" option.
18722         (parse_opt): Handle 'o' case.
18723         (main): If output_dir is non-NULL use it as a prefix
18724         otherwise use "".
18725         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
18726
18727 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18728
18729         [BZ #10060, #10062]
18730         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
18731         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
18732         fail configure if __sync_val_compare_and_swap is not inlined.
18733         * sysdeps/i386/configure: Regenerate.
18734         * configure.in: Build for i686 when configured for i386.
18735         * configure: Regenerate.
18736         * README: Remove i386 reference.
18737
18738 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18739
18740         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
18741         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18742
18743 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18744
18745         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
18746         (lmsnanval): New variables.
18747         (F): Add conversion tests.
18748         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
18749         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
18750
18751         * stdio-common/tstdiomisc.c (F): Properly collect individual
18752         tests' results.
18753
18754         [BZ #14686, #15336]
18755         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
18756         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
18757         Instead, use input NaN values or generate a qNaN by arithmetic
18758         operation.  Also fix bugs to comply with the standard.
18759         * math/libm-test.inc (remainder_test): Add more tests.
18760
18761         [BZ #15335, #15342]
18762         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
18763         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
18764         input NaN values or generate a qNaN by arithmetic operation.
18765
18766         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
18767         unreachable code.
18768
18769         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
18770         definitions.
18771
18772 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
18773
18774         [BZ #14478]
18775         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
18776         underflowed result.
18777         * math/s_cexpf.c (__cexpf): Likewise.
18778         * math/s_cexpl.c (__cexpl): Likewise.
18779         * math/libm-test.inc (cexp_test): Add more tests.
18780
18781 2013-04-03  Andreas Schwab  <schwab@suse.de>
18782
18783         [BZ #15330]
18784         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
18785         order arrays from heap if bigger than alloca cutoff.
18786
18787 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
18788
18789         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
18790         (SNAN_TESTS_double): Refer to GCC PR56831.
18791         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
18792         GCC PR56828.
18793
18794 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
18795
18796         * Rules (bench): Move bench.out after the run is complete.
18797
18798         * Rules (bench): Echo currently running benchmark.
18799
18800         * benchtests/Makefile (bench): Add atan and slowatan.
18801         * benchtests/atan-inputs: New file.
18802         * benchtests/slowatan-inputs: New file.
18803         * benchtests/slowatan.c: New file.
18804
18805         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
18806         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
18807         its value.
18808
18809         [BZ #15305]
18810         * sysdeps/unix/sysv/linux/kernel-features.h
18811         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
18812         __ASSUME_XFS_RESTRICTED_CHOWN.
18813         * sysdeps/unix/sysv/linux/pathconf.c
18814         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
18815         Save and restore errno.
18816
18817 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
18818
18819         [BZ #15327]
18820         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
18821         arguments using __kernel_casinh.
18822         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
18823         arguments using __kernel_casinhf.
18824         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
18825         arguments using __kernel_casinhl.
18826         * math/libm-test.inc (cacosh_test): Add more tests.
18827         * sysdeps/i386/fpu/libm-test-ulps: Update.
18828         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18829
18830 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
18831
18832         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
18833         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
18834
18835         * bench/Makefile (bench): Add sin and slowsin.
18836         * benchtests/sin-inputs: New file.
18837         * benchtests/slowsin-inputs: New file.
18838         * benchtests/slowsin.c: New file.
18839
18840         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
18841         (bench): Add slowexp and slowpow.
18842         (exp-ITER): Increase iterations.
18843         (pow-ITER): Likewise.
18844         * benchtests/exp-inputs: Change input.
18845         * benchtests/pow-inputs: Likewise.
18846         * benchtests/slowexp-inputs: New file.
18847         * benchtests/slowexp.c: New file.
18848         * benchtests/slowpow-inputs: New file.
18849         * benchtests/slowpow.c: New file.
18850
18851 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18852
18853         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
18854         instructions.
18855         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
18856         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
18857         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
18858         * benchtests/Makefile: Add rint benchtest.
18859         * benchtests/rint-inputs: Input for rint benchtest.
18860
18861 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18862
18863         * Versions.def (libm): Add GLIBC_2.18.
18864         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
18865         hidden libm prototypes.
18866         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
18867         * math/Makefile (libm-calls): Add s_issignaling.
18868         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
18869         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
18870         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
18871         declaration.
18872         * math/math.h [__USE_GNU] (issignaling): New macro.
18873         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
18874         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
18875         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
18876         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
18877         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
18878         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
18879         * manual/arith.texi (issignaling): New section.
18880         * manual/libm-err-tab.pl (@all_functions): Update comment.
18881         * math/gen-libm-test.pl (parse_args): Apply special handling for
18882         issignaling.
18883         * math/libm-test.inc (print_float, issignaling_test): New
18884         functions.
18885         (check_float_internal): Add issignaling checks.
18886         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
18887         default definition.
18888         * sysdeps/powerpc/math-tests.h: New file.
18889         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
18890         tests.
18891         * math/test-snan.c (TEST_FUNC): Likewise.
18892
18893 2013-03-30  David S. Miller  <davem@davemloft.net>
18894
18895         * po/de.po: Update from translation team.
18896
18897 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
18898
18899         [BZ #10357]
18900         * math/k_casinh.c (__kernel_casinh): Handle arguments with
18901         imaginary part less than 1.0 and real part less than 0.5
18902         specially.
18903         * math/k_casinhf.c (__kernel_casinhf): Likewise.
18904         * math/k_casinhl.c (__kernel_casinhl): Likewise.
18905         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
18906         (cacos_test): Add more tests.
18907         (casin_test): Likewise.
18908         (casinh_test): Likewise.
18909         * sysdeps/i386/fpu/libm-test-ulps: Update.
18910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18911
18912 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18913
18914         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
18915         ONE with its value.
18916
18917         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
18918         (__pow_mp): Replace ONE and MONE with their values.
18919         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
18920         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
18921         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
18922         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
18923         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
18924         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
18925
18926         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
18927
18928         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
18929         (__pow_mp): Replace ZERO and MZERO with their values.
18930         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
18931         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
18932         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
18933         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
18934         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
18935         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
18936         (__sqr): Likewise.
18937
18938         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
18939
18940         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
18941
18942 2013-03-28  Roland McGrath  <roland@hack.frob.com>
18943
18944         * include/stdlib.h [!SHARED] (__call_tls_dtors):
18945         Declare with __attribute__ ((weak)).
18946         * stdlib/exit.c (__libc_atexit) [!SHARED]:
18947         Call __call_tls_dtors only if it's not NULL.
18948
18949 2013-03-28  Roland McGrath  <roland@hack.frob.com>
18950
18951         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
18952         didn't do it already, then set _dl_phdr and _dl_phnum based on the
18953         magic __ehdr_start linker symbol if it's defined.
18954         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
18955         them up here if it was already done.
18956
18957         * elf/dl-support.c (_dl_phdr): Make pointer to const.
18958         (_dl_aux_init): Use const in cast when setting it.
18959         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
18960         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
18961         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
18962
18963         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
18964         Declare them here.
18965         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
18966         * csu/libc-tls.c: Nor here.
18967         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
18968
18969         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
18970         (__libc_message): Never call vsyslog.
18971
18972 2013-03-28  Alan Modra  <amodra@gmail.com>
18973
18974         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
18975         Define as empty.
18976         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
18977         Likewise.
18978
18979 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18980
18981         [BZ #15214]
18982         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
18983         underflow.
18984         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18985
18986 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18987
18988         [BZ #15304]
18989         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
18990         Don't add gid passed as argument.
18991
18992         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
18993
18994 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
18995
18996         [BZ #15307]
18997         * math/k_casinh.c (__kernel_casinh): Handle arguments with
18998         imaginary part between 1.0 and 1.5 and real part less than 0.5
18999         specially.
19000         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19001         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19002         * math/libm-test.inc (cacos_test): Add more tests.
19003         (casin_test): Likewise.
19004         (casinh_test): Likewise.
19005         * sysdeps/i386/fpu/libm-test-ulps: Update.
19006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19007
19008 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19009
19010         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19011         constants.
19012         (norm): Likewise.
19013         (denorm): Likewise.
19014         (__dbl_mp): Likewise.
19015         (add_magnitudes): Likewise.
19016         (sub_magnitudes): Likewise.
19017         (__add): Likewise.
19018         (__sub): Likewise.
19019         (__mul): Likewise.
19020         (__sqr): Likewise.
19021         (__inv): Likewise.
19022         (__dvd): Likewise.
19023
19024         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19025         commented code.
19026         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19027         (__dubcos): Likewise.
19028         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19029         (__ieee754_acos): Likewise.
19030         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19031         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19032         (__exp1): Likewise.
19033         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19034         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19035         (log1): Likewise.
19036         (my_log2): Likewise.
19037         (checkint): Likewise.
19038         * sysdeps/ieee754/dbl-64/e_remainder.c
19039         (__ieee754_remainder): Likewise.
19040         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19041         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19042         (bsloww): Likewise.
19043         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19044
19045         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19046         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19047         MANTISSA_STORE_T to store computations on mantissa.  Use
19048         macros for rounding and division.
19049         (denorm): Likewise.
19050         (__dbl_mp): Likewise.
19051         (add_magnitudes): Likewise.
19052         (sub_magnitudes): Likewise.
19053         (__mul): Likewise.
19054         (__sqr): Likewise.
19055         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19056         powers of two in terms of TWOPOW macro.
19057         (mp_no): Make type of mantissa as MANTISSA_T.
19058         [!RADIXI]: Define RADIXI.
19059         [!TWO52]: Define TWO52.
19060         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19061
19062 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19063
19064         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19065         llroundl symbol when building for PPC32.
19066
19067 2013-03-24  Mark H Weaver  <mhw@netris.org>
19068
19069         * manual/arith.texi (Normalization Functions): Fix prototypes for
19070         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19071
19072 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19073
19074         [BZ #13889]
19075         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19076         high value to check if expl overflow.
19077         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19078         to check for underflow and overflow.
19079         * math/libm-test.inc: Add exp test.
19080
19081 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19082
19083         [BZ #11120]
19084         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19085         with NOT_IN_libc.
19086
19087 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19088
19089         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19090         symbol.
19091
19092 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19093
19094         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19095         wrap blocks consisting of several statements.
19096
19097         * sysdeps/generic/math-tests.h: New file.
19098         * sysdeps/i386/fpu/math-tests.h: Likewise.
19099         * math/test-snan.c: Include it.
19100         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19101
19102 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19103
19104         [BZ #15285]
19105         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19106         (__ieee754_j0l): Do not improve calculations using cos of twice
19107         input for inputs above LDBL_MAX / 2.0L.
19108         (__ieee754_y0l): Likewise.
19109         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19110         (__ieee754_j1l): Do not improve calculations using cos of twice
19111         input for inputs above LDBL_MAX / 2.0L.
19112         (__ieee754_y1l): Likewise.
19113         * math/libm-test.inc (j0_test): Add another test.
19114         (j1_test): Likewise.
19115         (y0_test): Likewise.
19116         (y1_test): Likewise.
19117         * sysdeps/i386/fpu/libm-test-ulps: Update.
19118
19119 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19120
19121         * Rules ($(objpfx)bench-%.c): Include code from a C source
19122         file.
19123
19124 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19125
19126         [BZ #15287]
19127         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19128         imaginary part 1.0 and real part less than 0.5 specially.
19129         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19130         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19131         * math/libm-test.inc (cacos_test): Add more tests.
19132         (casin_test): Likewise.
19133         (casinh_test): Likewise.
19134         * sysdeps/i386/fpu/libm-test-ulps: Update.
19135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19136
19137 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19138
19139         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19140         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19141
19142 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19143
19144         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19145         * config.make.in (config-cflags-sse4): Remove variable.
19146         (config-cflags-avx): Likewise.
19147         (config-cflags-sse2avx): Likewise.
19148         (config-cflags-novzeroupper): Likewise.
19149         (config-asflags-i686): Likewise.
19150         (have-mfma4): Likewise.
19151         (have-as-vis3): Likewise.
19152         (MIG): Likewise.
19153         * configure.in (MIG): Do not AC_SUBST.
19154         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19155         (libc_cv_cc_sse4): Do not AC_SUBST.
19156         (libc_cv_cc_avx): Likewise.
19157         (libc_cv_cc_sse2avx): Likewise.
19158         (libc_cv_cc_novzeroupper): Likewise.
19159         (libc_cv_cc_fma4): Likewise.
19160         (libc_cv_as_i686): Likewise.
19161         (libc_cv_sparc_as_vis3): Likewise.
19162         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19163         LIBC_CONFIG_VAR.
19164         (config-asflags-i686): Likewise.
19165         (config-cflags-avx): Likewise.
19166         (config-cflags-sse2avx): Likewise.
19167         (have-mfma4): Likewise.
19168         (config-cflags-novzeroupper): Likewise.
19169         * sysdeps/mach/configure.in (MIG): Likewise.
19170         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19171         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19172         LIBC_CONFIG_VAR.
19173         (config-cflags-avx): Likewise.
19174         (config-cflags-sse2avx): Likewise.
19175         (have-mfma4): Likewise.
19176         (config-cflags-novzeroupper): Likewise.
19177         * configure: Regenerated.
19178         * sysdeps/i386/configure: Likewise.
19179         * sysdeps/mach/configure: Likewise.
19180         * sysdeps/sparc/configure: Likewise.
19181         * sysdeps/x86_64/configure: Likewise.
19182
19183 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19184
19185         [BZ #14812]
19186         * locale/programs/localedef.c (options): Put N_ translation marker
19187         on argument names, not just descriptions.
19188
19189 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19190
19191         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19192
19193 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19194
19195         [BZ #14176]
19196         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19197
19198 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19199
19200         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19201         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19202         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19203         [!BEFORE_ABORT] (before_abort): New function.
19204         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19205         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19206         (writev_for_fatal): New function.
19207         (WRITEV_FOR_FATAL): New macro; call that.
19208         (backtrace_and_maps): New function.
19209         (BEFORE_ABORT): New macro; call that.
19210         (struct str_list): Type removed.
19211         (__libc_message, __libc_fatal): Functions removed.
19212         Include <sysdeps/posix/libc_fatal.c> instead.
19213
19214 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19215
19216         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19217         constants.
19218         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19219         double constants.
19220
19221 2013-03-19  Andreas Schwab  <schwab@suse.de>
19222
19223         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19224         * sysdeps/gnu/configure: Regenerate.
19225
19226         * configure.in: Substitute libc_cv_rtlddir.
19227         * configure: Regenerate.
19228         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
19229         * Makeconfig (rtlddir, inst_rtlddir): New variables.
19230         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
19231         * elf/Makefile (install-others, CFLAGS-interp.c)
19232         (ldso_install, common-ldd-rewrite): Likewise.
19233         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
19234         $(inst_slibdir)/$(rtld-installed-name).
19235         * scripts/rellns-sh: Add -p option.
19236         * Makerules (make-shlib-link): Use rellns-sh to get relative name
19237         for source.
19238
19239 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19240
19241         * manual/nptl.texi: Renamed to ...
19242         * manual/threads.texi: ... this.
19243         * manual/Makefile (chapters): Update.
19244
19245 2013-03-18  Roland McGrath  <roland@hack.frob.com>
19246
19247         [BZ #14812]
19248         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
19249         on argument names, not just descriptions.
19250         * malloc/memusagestat.c (options): Likewise.
19251         * nss/getent.c (options): Likewise.
19252
19253 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
19254
19255         [BZ #14812]
19256         * iconv/iconv_prog.c (options): Put N_ translation marker
19257         on argument names, not just descriptions.
19258         * iconv/iconvconfig.c (options): Likewise.
19259
19260 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
19261
19262         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
19263         implementation which is faster on all x86_64 architectures.
19264         Tested on AMD, Intel Nehalem, SNB, IVB.
19265         * sysdeps/x86_64/strnlen.S: Likewise.
19266
19267         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
19268         Remove all multiarch strlen and strnlen versions.
19269         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
19270         Remove strlen and strnlen related parts.
19271
19272         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
19273         Inline strlen part.
19274         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
19275
19276         * sysdeps/x86_64/multiarch/strlen.S: Remove.
19277         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
19278         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
19279         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
19280         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
19281         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
19282
19283 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
19284
19285         * manual/memory.texi (Malloc Tunable Parameters):
19286         Sort parameters alphabetically. Add comments for missing entries.
19287
19288 2013-03-17  David S. Miller  <davem@davemloft.net>
19289
19290         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19291
19292 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
19293
19294         [BZ #15283]
19295         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
19296         for arguments at most half maximum finite value.
19297         * math/libm-test.inc (j0_test): Add more tests.
19298         (j1_test): Likewise.
19299         (y0_test): Likewise.
19300         (y1_test): Likewise.
19301         * sysdeps/i386/fpu/libm-test-ulps: Update.
19302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19303
19304         [BZ #14155]
19305         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
19306         1 / x and functions P and Q for arguments above 0x1p256L.
19307         (__ieee754_y0l): Likewise.
19308         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19309         (__ieee754_y1l): Likewise.
19310         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
19311         (j1_test): Likewise.
19312         (y0_test): Likewise.
19313         (y1_test): Likewise.
19314
19315 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
19316
19317         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
19318         variable.
19319
19320 2013-03-15  Roland McGrath  <roland@hack.frob.com>
19321
19322         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
19323         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
19324         zero since it's initialized to EXEC_PAGESIZE.
19325
19326         * sysdeps/unix/sysv/linux/ldsodefs.h
19327         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
19328         * sysdeps/generic/ldsodefs.h: ... here.
19329
19330 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
19331
19332         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
19333
19334         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
19335         math/test-snan.c.
19336         * math/test-snan.c: Renamed from
19337         sysdeps/powerpc/fpu/test-powerpc-snan.c.
19338         * math/Makefile (tests): Add test-snan.
19339         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
19340         test-powerpc-snan.
19341
19342         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
19343         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
19344         functions.
19345         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
19346         __builtin_nan family of functions.
19347         * math/libm-test.inc (initialize): Initialize qnan_value with
19348         __builtin_nan family of functions.
19349         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
19350         Remove variables.
19351         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
19352         Remove functions.
19353         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
19354         storage class.  Initialize qNaN_var and sNaN_var with
19355         __builtin_nan and __builtin_nans families of functions,
19356         respectively.
19357
19358         * math/libm-test.inc (acosh_test): Also test with qNaN input.
19359         (sqrt_test): Remove duplicate test with qNaN input.
19360         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
19361         (round_test, signbit_test, significand_test): Note missing +/-Inf
19362         as well as qNaN tests.
19363
19364         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
19365         qNaN_var.  Fix a few strings, too.
19366         * math/libm-test.inc (nan_value): Rename to qnan_value.
19367         * math/gen-libm-test.pl (%beautify): Adjust to that.
19368         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
19369         * math/test-misc.c (main): Likewise.
19370         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
19371         to __qnan_bytes, and __qnan_union, respectively.
19372         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
19373         Likewise.
19374         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
19375         and lqnanval, respectively.
19376         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
19377         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
19378         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
19379         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
19380
19381         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
19382         * math/test-misc.c (main) [__x86_64__]: Enable test for long
19383         doubles.
19384
19385         * math/test-misc.c (main): Fix copy'n'pastos.
19386         * misc/tst-efgcvt.c (special): Likewise.
19387
19388         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
19389         Remove declarations.
19390
19391 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19392
19393         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
19394         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
19395         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
19396         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
19397
19398 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19399
19400         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
19401         macro to return vdso values correctly in IFUNC implementations.
19402         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
19403         Optimization by using IFUNC.
19404
19405 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19406             Richard Henderson  <rth@redhat.com>
19407             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19408
19409         * Makefile.in (bench): New target.
19410         * NEWS: Mention the benchmark framework.
19411         * Rules (bench): Likewise.
19412         (binaries-bench): Generate binaries for functions to
19413         benchmark.
19414         * benchtests/Makefile: New makefile for benchmark tests.
19415         * benchtests/bench-skeleton.c: New skeleton file for benchmark
19416         programs.
19417         * benchtests/exp-inputs: New input file for EXP function.
19418         * benchtests/pow-inputs: New input file for POW function.
19419         * scripts/bench.pl: New script to generate source files for
19420         benchmark programs.
19421
19422 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19423
19424         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19425         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
19426         computations on mantissa.  Use macros for rounding and
19427         division.
19428         (denorm): Likewise.
19429         (__dbl_mp): Likewise.
19430         (add_magnitudes): Likewise.
19431         (sub_magnitudes): Likewise.
19432         (__mul): Likewise.
19433         (__sqr): Likewise.
19434         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19435         powers of two in terms of TWOPOW macro.
19436         (mp_no): Make type of mantissa as MANTISSA_T.
19437         [!RADIXI]: Define RADIXI.
19438         [!TWO52]: Define TWO52.
19439         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19440
19441         * manual/nptl.texi (cindex): Modify threads to pthreads.
19442
19443 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
19444
19445         * sysdeps/x86_64/preconfigure: Regenerated.
19446
19447 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
19448
19449         [BZ #14155]
19450         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
19451         0x1p28 and above.
19452         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
19453         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
19454         0x1p28 and above.
19455         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
19456         * math/libm-test.inc (j0_test): Do not allow one spurious
19457         underflow exception.
19458         (y1_test): Likewise.
19459
19460 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19461
19462         * manual/Makefile (chapters): Add nptl.
19463         * manual/debug.texi (Debugging Support): Add link to Threads
19464         chapter.
19465         * manual/nptl.texi: New file.
19466
19467         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
19468
19469 2013-03-14  Petr Baudis  <pasky@ucw.cz>
19470
19471         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
19472         for non-NULL pointer before the memory validity test. Pointed
19473         out by Holger Brunck <holger.brunck@keymile.com>.
19474
19475 2013-03-13  Andreas Schwab  <schwab@suse.de>
19476
19477         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
19478         instead of .os.
19479
19480 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
19481
19482         * timezone/zic.c: Update from tzcode 2013b.
19483
19484 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
19485
19486         * manual/install.texi (Configuring and compiling):
19487         Mention i686 and i586.
19488         * INSTALL: Regenerate.
19489
19490 2013-03-12  Roland McGrath  <roland@hack.frob.com>
19491
19492         * sysdeps/init_array/elf-init.c: New file.
19493         * csu/elf-init.c
19494         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
19495         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
19496
19497         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
19498         __gmon_start__ as global, but as static with a .preinit_array pointer.
19499         * sysdeps/init_array/gmon-start.c: New file.  Use that.
19500         * sysdeps/init_array/crti.S: New file, empty except for comments.
19501         * sysdeps/init_array/crtn.S: Likewise.
19502
19503 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
19504
19505         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
19506         definining bcopy.
19507         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19508         Remove Prefer_SSE_for_memop.
19509         * sysdeps/x86_64/multiarch/init-arch.h: Remove
19510         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
19511         HAS_PREFER_SSE_FOR_MEMOP.
19512         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
19513         memset-x86-64.
19514         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19515         Remove bzero, memset ifunc support.
19516         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
19517         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
19518         * sysdeps/x86_64/multiarch/memset.S: Likewise.
19519         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19520
19521 2013-03-11  Andreas Schwab  <schwab@suse.de>
19522
19523         [BZ #15234]
19524         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
19525         by SHLIB_COMPAT.
19526         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
19527         (GLIBC_2.16): Remove pthread_atfork.
19528
19529 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19530
19531         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
19532         (ptestcases.h): Likewise.
19533
19534 2013-03-08  Roland McGrath  <roland@hack.frob.com>
19535
19536         * Makeconfig ($(common-objpfx)config.status): Depend on
19537         sysdeps/*/preconfigure{,.in} too.
19538
19539 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
19540
19541         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
19542         (__free_hook): Use void * instead of __malloc_ptr_t.
19543         (__malloc_hook): Likewise.
19544         (__realloc_hook): Likewise.
19545         (__memalign_hook): Likewise.
19546         (__after_morecore_hook): Likewise.
19547         * malloc/arena.c (save_malloc_hook): Likewise.
19548         (save_free_hook): Likewise.
19549         * malloc/hooks.c (malloc_hook_ini): Likewise.
19550         (realloc_hook_ini): Likewise.
19551         (memalign_hook_ini): Likewise.
19552         * malloc/malloc.c (malloc_hook_ini): Likewise.
19553         (realloc_hook_ini): Likewise.
19554         (memalign_hook_ini): Likewise.
19555         (__free_hook): Likewise.
19556         (__malloc_hook): Likewise.
19557         (__realloc_hook): Likewise.
19558         (__memalign_hook): Likewise.
19559         (__libc_malloc): Likewise.
19560         (__libc_free): Likewise.
19561         (__libc_realloc): Likewise.
19562         (__libc_memalign): Likewise.
19563         (__libc_valloc): Likewise.
19564         (__libc_pvalloc): Likewise.
19565         (__libc_calloc): Likewise.
19566         (__posix_memalign): Likewise.
19567         * malloc/morecore.c (__sbrk): Likewise.
19568         (__default_morecore): Likewise.
19569
19570         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
19571
19572         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
19573         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
19574         __malloc_ptrdiff_t.
19575
19576         * malloc/malloc.h (__malloc_size_t): Remove macro.
19577         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
19578         __malloc_size_t.
19579         (old_memalign_hook): Likewise.
19580         (old_realloc_hook): Likewise.
19581         (struct hdr): Likewise.
19582         (flood): Likewise.
19583         (mallochook): Likewise.
19584         (memalignhook): Likewise.
19585         (reallochook): Likewise.
19586         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
19587         (tr_old_realloc_hook): Likewise.
19588         (tr_old_memalign_hook): Likewise.
19589         (tr_mallochook): Likewise.
19590         (tr_reallochook): Likewise.
19591         (tr_memalignhook): Likewise.
19592
19593 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19594
19595         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
19596         default_ldbl_pack and using as default implementation.
19597         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
19598         implementation.
19599         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
19600         redundant definition.
19601         (ldbl_insert_mantissa): Likewise.
19602         (ldbl_canonicalize): Likewise.
19603         (ldbl_nearbyint): Likewise.
19604         (ldbl_pack): Rename to ldbl_pack_ppc.
19605         (ldbl_unpack): Rename to ldbl_unpack_ppc.
19606         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
19607         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
19608
19609 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
19610
19611         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
19612         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
19613         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
19614         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
19615         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
19616         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
19617         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
19618         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
19619
19620 2013-03-07  Andreas Jaeger  <aj@suse.de>
19621
19622         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19623         bits/mman-linux.h.
19624
19625 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19626
19627         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
19628         Include mpa.h and declare __MPEXP.
19629         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
19630         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
19631         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
19632         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
19633         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
19634         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
19635         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
19636
19637         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
19638         (__slowpow): Use long double EXPL and LOGL functions to
19639         compute POW.
19640         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
19641         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
19642         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
19643         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
19644         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
19645         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
19646
19647         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
19648         intermediate variable to calculate exponent.
19649         (__sqr): Likewise.
19650         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
19651         Likewise.
19652         (__sqr): Likewise.
19653
19654         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
19655         [!NO__SQR]: Define __sqr.
19656         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
19657         and NO__SQR.  Remove all code except __mul and __sqr.  Include
19658         sysdeps/ieee754/dbl-64/mpa.c.
19659         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
19660
19661         [BZ #12723]
19662         * posix/Makefile (tests): Add tst-pathconf.
19663         * posix/tst-pathconf.c: New test case.
19664         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
19665         _PC_PIPE_BUF.
19666         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
19667
19668 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
19669
19670         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
19671
19672 2013-03-06  Andreas Jaeger  <aj@suse.de>
19673
19674         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
19675         definition via __MAP_ANONYMOUS.
19676
19677         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
19678         it's not part of Linux headers.
19679
19680         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
19681         (MAP_HUGE_MASK): Define.
19682
19683         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19684         Define.
19685         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19686         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19687         Define.
19688         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19689         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19690         Define.
19691         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19692         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
19693         Define.
19694         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19695
19696         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
19697         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
19698         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
19699         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
19700         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
19701         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
19702
19703         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19704         Handle f2fs.
19705
19706         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19707         Handle f2fs and efivarfs.
19708
19709         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
19710         f2fs.
19711
19712         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
19713         (EFIVARFS_MAGIC): Add.
19714         (F2FS_LINK_MAX): Add.
19715
19716 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19717
19718         * stdio-common/vfprintf.c: Replace __builtin_expect with
19719         __glibc_unlikely.
19720
19721 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
19722
19723         [BZ #13550]
19724         * sysdeps/generic/bp-sym.h: Remove file.
19725         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
19726         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
19727         <bp-sym.h> and <bp-asm.h>.
19728         (__longjmp): Don't use BP_SYM.
19729         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
19730         and <bp-asm.h>.
19731         (memcpy): Don't use BP_SYM.
19732         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
19733         <bp-sym.h> and <bp-asm.h>.
19734         (memcpy): Don't use BP_SYM.
19735         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
19736         <bp-asm.h>.
19737         (memcpy): Don't use BP_SYM.
19738         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
19739         <bp-asm.h>.
19740         (memset): Don't use BP_SYM.
19741         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19742         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19743         (__bzero): Don't use BP_SYM.
19744         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19745         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19746         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
19747         <bp-sym.h> and <bp-asm.h>.
19748         (memcmp): Don't use BP_SYM.  Remove comment about bounded
19749         pointers.
19750         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
19751         <bp-sym.h> and <bp-asm.h>.
19752         (memcpy): Don't use BP_SYM.
19753         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
19754         <bp-sym.h> and <bp-asm.h>.
19755         (memset): Don't use BP_SYM.
19756         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19757         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19758         (__bzero): Don't use BP_SYM.
19759         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19760         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19761         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
19762         <bp-sym.h> and <bp-asm.h>.
19763         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19764         pointers.
19765         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
19766         <bp-sym.h> and <bp-asm.h>.
19767         (memcpy): Don't use BP_SYM.
19768         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
19769         <bp-sym.h> and <bp-asm.h>.
19770         (memset): Don't use BP_SYM.
19771         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19772         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19773         (__bzero): Don't use BP_SYM.
19774         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19775         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19776         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
19777         <bp-sym.h> and <bp-asm.h>.
19778         (__memchr): Don't use BP_SYM.
19779         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
19780         <bp-sym.h> and <bp-asm.h>.
19781         (memcmp): Don't use BP_SYM.  Remove comment about bounded
19782         pointers.
19783         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
19784         <bp-sym.h> and <bp-asm.h>.
19785         (memcpy): Don't use BP_SYM.
19786         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
19787         <bp-sym.h> and <bp-asm.h>.
19788         (__mempcpy): Don't use BP_SYM.
19789         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
19790         <bp-sym.h> and <bp-asm.h>.
19791         (__memrchr): Don't use BP_SYM.
19792         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
19793         <bp-sym.h> and <bp-asm.h>.
19794         (memset): Don't use BP_SYM.
19795         (__bzero): Likewise.
19796         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
19797         <bp-sym.h> and <bp-asm.h>.
19798         (__rawmemchr): Don't use BP_SYM.
19799         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
19800         <bp-sym.h> and <bp-asm.h>.
19801         (__STRCMP): Don't use BP_SYM.
19802         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
19803         <bp-sym.h> and <bp-asm.h>.
19804         (strchr): Don't use BP_SYM.
19805         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
19806         <bp-sym.h> and <bp-asm.h>.
19807         (__strchrnul): Don't use BP_SYM.
19808         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
19809         <bp-sym.h> and <bp-asm.h>.
19810         (strlen): Don't use BP_SYM.
19811         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
19812         <bp-sym.h> and <bp-asm.h>.
19813         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19814         pointers.
19815         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
19816         <bp-sym.h> and <bp-asm.h>.
19817         (__strnlen): Don't use BP_SYM.
19818         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
19819         <bp-sym.h> and <bp-asm.h>.
19820         (__GI__setjmp): Don't use BP_SYM.
19821         (_setjmp): Likewise.
19822         (__sigsetjmp): Likewise.
19823         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
19824         (L(start_addresses)): Don't use BP_SYM.
19825         (_start): Likewise.
19826         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
19827         <bp-asm.h>.
19828         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
19829         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
19830         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19831         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19832         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
19833         <bp-asm.h>.
19834         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
19835         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
19836         about bounded pointers.
19837         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19838         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19839         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
19840         <bp-asm.h>.
19841         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
19842         about bounded pointers.  Remove GKM FIXME comments.
19843         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19844         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
19845         <bp-asm.h>.
19846         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
19847         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
19848         Remove GKM FIXME comments.
19849         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19850         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19851         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
19852         <bp-asm.h>.
19853         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
19854         about bounded pointers.  Remove GKM FIXME comment.
19855         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
19856         and <bp-asm.h>.
19857         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19858         pointers.
19859         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
19860         <bp-sym.h> and <bp-asm.h>.
19861         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
19862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
19863         <bp-sym.h> and <bp-asm.h>.
19864         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
19865         comment.
19866
19867 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19868
19869         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
19870         call free(NULL).
19871
19872 2013-03-05  David S. Miller  <davem@davemloft.net>
19873
19874         * po/es.po: Update from translation team.
19875
19876 2013-03-05  Andreas Jaeger  <aj@suse.de>
19877
19878         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
19879         <bits/mman-linux.h>.
19880         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
19881         is fine.
19882         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
19883         <bits/mman-linux.h> to end of file.
19884         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
19885         is fine.
19886         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
19887         <bits/mman-linux.h> to end of file.
19888         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
19889         is fine.
19890         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
19891         <bits/mman-linux.h> to end of file.
19892
19893         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
19894         (MCL_CURRENT, MCL_FUTURE): Define here.
19895
19896 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19897
19898         [BZ #15232]
19899         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
19900         attribute_hidden.
19901         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
19902
19903 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19904
19905         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
19906         fourth parameter needed for rt_sigprocmask syscall.
19907         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
19908         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
19909         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
19910         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
19911         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
19912         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
19913
19914 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
19915
19916         [BZ #13550]
19917         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
19918         comment about bounded pointers.
19919         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
19920         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
19921
19922 2013-03-04  Andreas Jaeger  <aj@suse.de>
19923
19924         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
19925         common definitions.
19926
19927         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
19928         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
19929         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
19930         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19931         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19932         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19933
19934 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19935
19936         [BZ #15055]
19937         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
19938         __ieee754_sqrl instead of __sqrl.
19939
19940 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
19941
19942         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
19943         * sysdeps/powerpc/fpu_control.h: ... here.
19944         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
19945         * sysdeps/powerpc/bits/fenvinline.h: ... here.
19946         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
19947         * sysdeps/powerpc/bits/mathinline.h: ... here.
19948
19949 2013-03-01  Roland McGrath  <roland@hack.frob.com>
19950
19951         * elf/dl-hwcaps.c (_dl_important_hwcaps):
19952         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
19953         to just [NEED_DL_SYSINFO_DSO].
19954         * elf/dl-support.c: Likewise.
19955         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
19956         * elf/rtld.c (dl_main): Likewise.
19957         * elf/setup-vdso.h (setup_vdso): Likewise.
19958         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
19959         * sysdeps/unix/sysv/linux/dl-sysdep.c
19960         (_dl_discover_osversion): Likewise.
19961
19962 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
19963
19964         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
19965         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
19966
19967 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
19968
19969         * NEWS: Mention libm performance improvements and non-x86 PI
19970         futex support.
19971
19972         * csu/libc-start.c (__pthread_initialize_minimal): Change
19973         function arguments.
19974         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
19975
19976 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
19977
19978         [BZ #13550]
19979         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
19980         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
19981         <bp-sym.h> and <bp-asm.h>.
19982         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
19983         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
19984         and <bp-asm.h>.
19985         (memcpy): Don't use BP_SYM.
19986         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
19987         <bp-asm.h>.
19988         (__mpn_add_n): Don't use BP_SYM.
19989         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
19990         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
19991         and <bp-asm.h>.
19992         (__mpn_addmul_1): Don't use BP_SYM.
19993         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
19994         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
19995         <bp-sym.h>.
19996         (_setjmp): Don't use BP_SYM.
19997         (__novmx_setjmp): Likewise.
19998         (__GI__setjmp): Likewise.
19999         (__vmx_setjmp): Likewise.
20000         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20001         <bp-sym.h>.
20002         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20003         (__bzero): Don't use BP_SYM.
20004         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20005         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20006         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20007         <bp-sym.h> and <bp-asm.h>.
20008         (memcpy): Don't use BP_SYM.
20009         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20010         <bp-sym.h> and <bp-asm.h>.
20011         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20012         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20013         <bp-sym.h> and <bp-asm.h>.
20014         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20015         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20016         <bp-asm.h>.
20017         (__mpn_lshift): Don't use BP_SYM.
20018         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20019         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20020         <bp-asm.h>.
20021         (memset): Don't use BP_SYM.
20022         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20023         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20024         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20025         <bp-asm.h>.
20026         (__mpn_mul_1): Don't use BP_SYM.
20027         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20028         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20029         <bp-sym.h> and <bp-asm.h>.
20030         (memcmp): Don't use BP_SYM.
20031         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20032         <bp-sym.h> and <bp-asm.h>.
20033         (memcpy): Don't use BP_SYM.
20034         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20035         <bp-sym.h> and <bp-asm.h>.
20036         (memset): Don't use BP_SYM.
20037         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20038         <bp-sym.h> and <bp-asm.h>.
20039         (strncmp): Don't use BP_SYM.
20040         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20041         <bp-sym.h> and <bp-asm.h>.
20042         (memcpy): Don't use BP_SYM.
20043         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20044         <bp-sym.h> and <bp-asm.h>.
20045         (memset): Don't use BP_SYM.
20046         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20047         <bp-sym.h> and <bp-asm.h>.
20048         (__memchr): Don't use BP_SYM.
20049         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20050         <bp-sym.h> and <bp-asm.h>.
20051         (memcmp): Don't use BP_SYM.
20052         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20053         <bp-sym.h> and <bp-asm.h>.
20054         (memcpy): Don't use BP_SYM.
20055         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20056         <bp-sym.h> and <bp-asm.h>.
20057         (__mempcpy): Don't use BP_SYM.
20058         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20059         <bp-sym.h> and <bp-asm.h>.
20060         (__memrchr): Don't use BP_SYM.
20061         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20062         <bp-sym.h> and <bp-asm.h>.
20063         (memset): Don't use BP_SYM.
20064         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20065         <bp-sym.h> and <bp-asm.h>.
20066         (__rawmemchr): Don't use BP_SYM.
20067         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20068         <bp-sym.h> and <bp-asm.h>.
20069         (__STRCMP): Don't use BP_SYM.
20070         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20071         <bp-sym.h> and <bp-asm.h>.
20072         (strchr): Don't use BP_SYM.
20073         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20074         <bp-sym.h> and <bp-asm.h>.
20075         (__strchrnul): Don't use BP_SYM.
20076         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20077         <bp-sym.h> and <bp-asm.h>.
20078         (strlen): Don't use BP_SYM.
20079         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20080         <bp-sym.h> and <bp-asm.h>.
20081         (strncmp): Don't use BP_SYM.
20082         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20083         <bp-sym.h> and <bp-asm.h>.
20084         (__strnlen): Don't use BP_SYM.
20085         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20086         <bp-asm.h>.
20087         (__mpn_rshift): Don't use BP_SYM.
20088         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20089         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20090         <bp-sym.h> and <bp-asm.h>.
20091         (__sigsetjmp): Don't use BP_SYM.
20092         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20093         (L(start_addresses)): Don't use BP_SYM.
20094         (_start): Likewise.
20095         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20096         <bp-asm.h>.
20097         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20098         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20099         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20100         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20101         <bp-asm.h>.
20102         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20103         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20104         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20105         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20106         <bp-asm.h>.
20107         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20108         comments.
20109         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20110         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20111         <bp-asm.h>.
20112         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20113         FIXME comments.
20114         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20115         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20116         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20117         <bp-asm.h>.
20118         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20119         comment.
20120         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20121         and <bp-asm.h>.
20122         (strncmp): Don't use BP_SYM,
20123         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20124         <bp-asm.h>.
20125         (__mpn_sub_n): Don't use BP_SYM.
20126         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20127         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20128         and <bp-asm.h>.
20129         (__mpn_submul_1): Don't use BP_SYM.
20130         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20131         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20132         <bp-sym.h> and <bp-asm.h>.
20133         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20135         <bp-sym.h> and <bp-asm.h>.
20136         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20137         comment.
20138
20139 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20140
20141         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20142         Use ZK to minimize writes to Z.
20143         (sub_magnitudes): Simplify code a bit.
20144         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20145         Use ZK to minimize writes to Z.
20146         (sub_magnitudes): Simplify code a bit.
20147
20148 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20149
20150         * csu/gmon-start.c: Add special exception to license text.
20151
20152 2013-02-27  Richard Henderson  <rth@redhat.com>
20153
20154         * scripts/config.guess: Update from config.git.
20155         * scripts/config.sub: Likewise.
20156
20157 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20158
20159         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20160
20161         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20162
20163         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20164
20165         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20166
20167         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20168
20169 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20170
20171         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20172         [$(build-shared = yes].
20173
20174 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20175
20176         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20177         (__mul): Reduce iterations for calculating mantissa.
20178
20179         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20180         MPTWO.
20181         (__mpranred): Likewise.
20182
20183         [BZ #15160]
20184         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20185         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20186
20187 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20188
20189         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20190         Define __attribute__.
20191
20192 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20193
20194         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20195         unused.
20196         * posix/regex_internal.h (__attribute): Remove.
20197         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20198         (re_string_context_at): Likewise.
20199         (bitset_not): Use __attribute__ and mark function as possibly
20200         unused.
20201         (bitset_merge): Likewise.
20202         (bitset_mask): Likewise.
20203         (re_string_char_size_at): Likewise.
20204         (re_string_wchar_at): Likewise.
20205         (re_string_elem_size_at): Likewise.
20206
20207 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20208
20209         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20210         code.
20211         (cc32): Likewise.
20212
20213         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20214         (__acr): Likewise.
20215         (__cpy): Likewise.
20216         (norm): Likewise.
20217         (denorm): Likewise.
20218         (__dbl_mp): Likewise.
20219         (add_magnitudes): Likewise.
20220         (sub_magnitudes): Likewise.
20221         (__mul): Likewise.
20222         (__inv): Likewise.
20223
20224         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20225         style.
20226
20227         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
20228         style.
20229
20230         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
20231         code.
20232
20233         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
20234         up changes with default code.
20235         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
20236         Likewise.
20237
20238 2013-02-24  Allan McRae  <allan@archlinux.org>
20239
20240         * manual/socket.texi (The Internet Namespace): Order menu items
20241         to match that in the file.
20242
20243         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
20244         node listing of the info page menu.
20245
20246 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
20247
20248         [BZ #13550]
20249         * sysdeps/i386/bp-asm.h: Remove file.
20250         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20251         (PARMS): Do not use macros from bp-asm.h.
20252         (S1): Likewise.
20253         (S2): Likewise.
20254         (SIZE): Likewise.
20255         (__mpn_add_n): Do not use BP_SYM
20256         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
20257         "bp-asm.h".
20258         (PARMS): Do not use macros from bp-asm.h.
20259         (S1): Likewise.
20260         (SIZE): Likewise.
20261         (__mpn_addmul_1): Do not use BP_SYM
20262         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
20263         "bp-asm.h".
20264         (PARMS): Do not use macros from bp-asm.h.
20265         (SIGMSK): Likewise.
20266         (_setjmp): Likewise.  Do not use BP_SYM.
20267         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
20268         "bp-asm.h".
20269         (PARMS): Do not use macros from bp-asm.h.
20270         (SIGMSK): Likewise.
20271         (setjmp): Likewise.  Do not use BP_SYM.
20272         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
20273         "bp-asm.h".
20274         (PARMS): Do not use macros from bp-asm.h.
20275         (__frexp): Do not use BP_SYM.
20276         (frexp): Likewise.
20277         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
20278         "bp-asm.h".
20279         (PARMS): Do not use macros from bp-asm.h.
20280         (__frexpf): Do not use BP_SYM.
20281         (frexpf): Likewise.
20282         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
20283         "bp-asm.h".
20284         (PARMS): Do not use macros from bp-asm.h.
20285         (__frexpl): Do not use BP_SYM.
20286         (frexpl): Likewise.
20287         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
20288         "bp-asm.h".
20289         (PARMS): Do not use macros from bp-asm.h.
20290         (__remquo): Do not use BP_SYM.
20291         (remquo): Likewise.
20292         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
20293         "bp-asm.h".
20294         (PARMS): Do not use macros from bp-asm.h.
20295         (__remquof): Do not use BP_SYM.
20296         (remquof): Likewise.
20297         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
20298         "bp-asm.h".
20299         (PARMS): Do not use macros from bp-asm.h.
20300         (__remquol): Do not use BP_SYM.
20301         (remquol): Likewise.
20302         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
20303         "bp-asm.h".
20304         (PARMS): Do not use macros from bp-asm.h.
20305         (DEST): Likewise.
20306         (SRC): Likewise.
20307         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
20308         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
20309         "bp-asm.h".
20310         (PARMS): Do not use macros from bp-asm.h.
20311         (strlen): Do not use BP_SYM.
20312         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
20313         "bp-asm.h".
20314         (PARMS): Do not use macros from bp-asm.h.
20315         (S1): Likewise.
20316         (S2): Likewise.
20317         (SIZE): Likewise.
20318         (__mpn_add_n): Do not use BP_SYM.
20319         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
20320         "bp-asm.h".
20321         (PARMS): Do not use macros from bp-asm.h.
20322         (S1): Likewise.
20323         (SIZE): Likewise.
20324         (__mpn_addmul_1): Do not use BP_SYM.
20325         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
20326         weak_alias.
20327         (bzero): Likewise.
20328         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
20329         "bp-asm.h".
20330         (PARMS): Do not use macros from bp-asm.h.
20331         (S): Likewise.
20332         (SIZE): Likewise.
20333         (__mpn_lshift): Do not use BP_SYM.
20334         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
20335         "bp-asm.h".
20336         (PARMS): Do not use macros from bp-asm.h.
20337         (DEST): Likewise.
20338         (SRC): Likewise.
20339         (LEN): Likewise.
20340         (memcpy): Likewise.  Do not use BP_SYM.
20341         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
20342         libc_hidden_def and weak_alias.
20343         (mempcpy): Do not use BP_SYM in weak_alias.
20344         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
20345         "bp-asm.h".
20346         (PARMS): Do not use macros from bp-asm.h.
20347         (DEST): Likewise.
20348         (LEN): Likewise.
20349         [!BZERO_P] (CHR): Likewise.
20350         (memset): Likewise.  Do not use BP_SYM.
20351         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
20352         "bp-asm.h".
20353         (PARMS): Do not use macros from bp-asm.h.
20354         (S1): Likewise.
20355         (SIZE): Likewise.
20356         (__mpn_mul_1): Do not use BP_SYM.
20357         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
20358         "bp-asm.h".
20359         (PARMS): Do not use macros from bp-asm.h.
20360         (S): Likewise.
20361         (SIZE): Likewise.
20362         (__mpn_rshift): Do not use BP_SYM.
20363         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
20364         "bp-asm.h".
20365         (PARMS): Do not use macros from bp-asm.h.
20366         (STR): Likewise.
20367         (CHR): Likewise.
20368         (strchr): Likewise.  Do not use BP_SYM.
20369         (index): Do not use BP_SYM in weak_alias.
20370         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
20371         "bp-asm.h".
20372         (PARMS): Do not use macros from bp-asm.h.
20373         (DEST): Likewise.
20374         (SRC): Likewise.
20375         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
20376         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
20377         "bp-asm.h".
20378         (PARMS): Do not use macros from bp-asm.h.
20379         (strlen): Do not use BP_SYM.
20380         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
20381         "bp-asm.h".
20382         (PARMS): Do not use macros from bp-asm.h.
20383         (S1): Likewise.
20384         (S2): Likewise.
20385         (SIZE): Likewise.
20386         (__mpn_sub_n): Do not use BP_SYM.
20387         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
20388         "bp-asm.h".
20389         (PARMS): Do not use macros from bp-asm.h.
20390         (S1): Likewise.
20391         (SIZE): Likewise.
20392         (__mpn_submul_1): Do not use BP_SYM.
20393         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
20394         "bp-asm.h".
20395         (PARMS): Do not use macros from bp-asm.h.
20396         (S1): Likewise.
20397         (S2): Likewise.
20398         (SIZE): Likewise.
20399         (__mpn_add_n): Do not use BP_SYM.
20400         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
20401         weak_alias.
20402         (bzero): Likewise.
20403         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
20404         "bp-asm.h".
20405         (PARMS): Do not use macros from bp-asm.h.
20406         (BLK2): Likewise.
20407         (LEN): Likewise.
20408         (memcmp): Do not use BP_SYM.
20409         (bcmp): Do not use BP_SYM in weak_alias.
20410         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
20411         "bp-asm.h".
20412         (PARMS): Do not use macros from bp-asm.h.
20413         (DEST): Likewise.
20414         (SRC): Likewise.
20415         (LEN): Likewise.
20416         (memcpy): Likewise.  Do not use BP_SYM.
20417         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
20418         "bp-asm.h".
20419         (PARMS): Do not use macros from bp-asm.h.
20420         (DEST): Likewise.
20421         (SRC): Likewise.
20422         (LEN): Likewise.
20423         (memmove): Likewise.  Do not use BP_SYM.
20424         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
20425         "bp-asm.h".
20426         (PARMS): Do not use macros from bp-asm.h.
20427         (DEST): Likewise.
20428         (SRC): Likewise.
20429         (LEN): Likewise.
20430         (__mempcpy): Likewise.  Do not use BP_SYM.
20431         (mempcpy): Do not use BP_SYM in weak_alias.
20432         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
20433         "bp-asm.h".
20434         (PARMS): Do not use macros from bp-asm.h.
20435         (DEST): Likewise.
20436         (LEN): Likewise.
20437         [!BZERO_P] (CHR): Likewise.
20438         (memset): Likewise.  Do not use BP_SYM.
20439         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
20440         "bp-asm.h".
20441         (PARMS): Do not use macros from bp-asm.h.
20442         (STR2): Likewise.
20443         (strcmp): Do not use BP_SYM.
20444         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
20445         "bp-asm.h".
20446         (PARMS): Do not use macros from bp-asm.h.
20447         (STR): Likewise.
20448         (DELIM): Likewise.
20449         [USE_AS_STRTOK_R] (SAVE): Likewise.
20450         (FUNCTION): Likewise.  Do not use BP_SYM.
20451         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
20452         aliases.
20453         (strtok_r): Likewise.
20454         (__GI___strtok_r): Likewise.
20455         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20456         (PARMS): Do not use macros from bp-asm.h.
20457         (S): Likewise.
20458         (SIZE): Likewise.
20459         (__mpn_lshift): Do not use BP_SYM.
20460         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20461         (PARMS): Do not use macros from bp-asm.h.
20462         (STR): Likewise.
20463         (CHR): Likewise.
20464         (__memchr): Do not use BP_SYM.
20465         (memchr): Do not use BP_SYM in weak_alias.
20466         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20467         (PARMS): Do not use macros from bp-asm.h.
20468         (BLK2): Likewise.
20469         (LEN): Likewise.
20470         (memcmp): Do not use BP_SYM.
20471         (bcmp): Do not use BP_SYM in weak_alias.
20472         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
20473         (PARMS): Do not use macros from bp-asm.h.
20474         (S1): Likewise.
20475         (SIZE): Likewise.
20476         (__mpn_mul_1): Do not use BP_SYM.
20477         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
20478         "bp-asm.h".
20479         (PARMS): Do not use macros from bp-asm.h.
20480         (STR): Likewise.
20481         (CHR): Likewise.
20482         (__rawmemchr): Do not use BP_SYM.
20483         (rawmemchr): Do not use BP_SYM in weak_alias.
20484         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20485         (PARMS): Do not use macros from bp-asm.h.
20486         (S): Likewise.
20487         (SIZE): Likewise.
20488         (__mpn_rshift): Do not use BP_SYM.
20489         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20490         (PARMS): Do not use macros from bp-asm.h.
20491         (SIGMSK): Likewise.
20492         (__sigsetjmp): Likewise.  Do not use BP_SYM.
20493         * sysdeps/i386/start.S: Do not include "bp-sym.h".
20494         (_start): Do not use BP_SYM.
20495         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
20496         (PARMS): Do not use macros from bp-asm.h.
20497         (DEST): Likewise.
20498         (SRC): Likewise.
20499         (__stpcpy): Likewise.  Do not use BP_SYM.
20500         (stpcpy): Do not use BP_SYM in weak_alias.
20501         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
20502         "bp-asm.h".
20503         (PARMS): Do not use macros from bp-asm.h.
20504         (DEST): Likewise.
20505         (SRC): Likewise.
20506         (LEN): Likewise.
20507         (__stpncpy): Likewise.  Do not use BP_SYM.
20508         (stpncpy): Do not use BP_SYM in weak_alias.
20509         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20510         (PARMS): Do not use macros from bp-asm.h.
20511         (STR): Likewise.
20512         (CHR): Likewise.
20513         (strchr): Likewise.  Do not use BP_SYM.
20514         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
20515         "bp-asm.h".
20516         (PARMS): Do not use macros from bp-asm.h.
20517         (STR): Likewise.
20518         (CHR): Likewise.
20519         (__strchrnul): Likewise.  Do not use BP_SYM.
20520         (strchrnul): Do not use BP_SYM in weak_alias.
20521         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
20522         "bp-asm.h".
20523         (PARMS): Do not use macros from bp-asm.h.
20524         (STOP): Likewise.
20525         (strcspn): Do not use BP_SYM.
20526         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
20527         "bp-asm.h".
20528         (PARMS): Do not use macros from bp-asm.h.
20529         (STR): Likewise.
20530         (STOP): Likewise.
20531         (strpbrk): Likewise.  Do not use BP_SYM.
20532         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
20533         "bp-asm.h".
20534         (PARMS): Do not use macros from bp-asm.h.
20535         (STR): Likewise.
20536         (CHR): Likewise.
20537         (strrchr): Likewise.  Do not use BP_SYM.
20538         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
20539         (PARMS): Do not use macros from bp-asm.h.
20540         (SKIP): Likewise.
20541         (strspn): Do not use BP_SYM.
20542         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
20543         (PARMS): Do not use macros from bp-asm.h.
20544         (STR): Likewise.
20545         (DELIM): Likewise.
20546         (SAVE): Likewise.
20547         (FUNCTION): Likewise.  Do not use BP_SYM.
20548         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
20549         aliases.
20550         (strtok_r): Likewise.
20551         (__GI___strtok_r): Likewise.
20552         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20553         (PARMS): Do not use macros from bp-asm.h.
20554         (S1): Likewise.
20555         (S2): Likewise.
20556         (SIZE): Likewise.
20557         (__mpn_sub_n): Do not use BP_SYM.
20558         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
20559         "bp-asm.h".
20560         (PARMS): Do not use macros from bp-asm.h.
20561         (S1): Likewise.
20562         (SIZE): Likewise.
20563         (__mpn_submul_1): Do not use BP_SYM.
20564         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
20565         <bp-sym.h>.
20566         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
20567         and <bp-asm.h>.
20568         (PARMS): Do not use macros from bp-asm.h.
20569         (FLAGS): Likewise.
20570         (PTID): Likewise.
20571         (TLS): Likewise.
20572         (CTID): Likewise.
20573         (__clone): Do not use BP_SYM.
20574         (clone): Do not use BP_SYM in weak_alias.
20575         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
20576         and <bp-asm.h>.
20577         (PARMS): Do not use macros from bp-asm.h.
20578         (LEN): Likewise.
20579         (__mmap64): Do not use BP_SYM.
20580         (mmap64): Do not use BP_SYM in weak_alias.
20581         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20582         <bp-sym.h> and <bp-asm.h>.
20583         (PARMS): Do not use macros from bp-asm.h.
20584         (__posix_fadvise64_l64): Do not use BP_SYM.
20585         * sysdeps/unix/sysv/linux/i386/semtimedop.S
20586         (PARMS): Do not use macros from bp-asm.h.
20587         (NSOPS): Likewise.
20588         (semtimedop): Do not use BP_SYM.
20589         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
20590         and <bp-asm.h>.
20591
20592 2013-02-21  Allan McRae  <allan@archlinux.org>
20593
20594         * manual/message.texi (Charset conversion in gettext):
20595         Move @end statement to beginning of line.
20596
20597 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20598
20599         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
20600         static.
20601         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
20602         Likewise.
20603
20604         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
20605         (denorm): Likewise.
20606         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
20607         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
20608
20609 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20610
20611         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
20612         tail-call to the resolved function if pltexit isn't needed.
20613
20614 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20615
20616         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
20617         or Y being zero as being unlikely.
20618         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20619         Likewise.
20620
20621 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
20622
20623         * manual/nss.texi (System Databases and Name Service Switch):
20624         Remove frobnicate @pxref.
20625
20626 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
20627
20628         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
20629         __attribute__ ((unused)) to __attribute__ ((__unused__)).
20630
20631 2013-02-20  Petr Machata  <pmachata@redhat.com>
20632
20633         * elf/elf.h (R_ARM_TARGET1): New macro.
20634         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
20635         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
20636         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
20637         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
20638         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
20639         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
20640         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
20641         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
20642         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
20643         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
20644         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
20645         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
20646         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
20647         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
20648         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
20649         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
20650         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
20651         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
20652         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
20653         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
20654         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
20655         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
20656         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
20657         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
20658         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
20659         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
20660         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
20661         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
20662         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
20663         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
20664         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
20665         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
20666         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
20667         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
20668         (R_ARM_THM_GOT_BREL12): Likewise.
20669         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
20670         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
20671         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
20672         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
20673         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
20674         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
20675         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
20676         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
20677         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
20678
20679 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
20680
20681         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
20682         __attribute_used__ to __attribute__ ((unused)).
20683
20684 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
20685
20686         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
20687         powerpc mpa.c.
20688         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
20689         comment formatting.
20690         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
20691
20692 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
20693
20694         [BZ #13550]
20695         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
20696         Remove macro.
20697         (ENTER): Remove both macro definitions.
20698         (LEAVE): Likewise.
20699         (CHECK_BOUNDS_LOW): Likewise.
20700         (CHECK_BOUNDS_HIGH): Likewise.
20701         (CHECK_BOUNDS_BOTH): Likewise.
20702         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
20703         (RETURN_BOUNDED_POINTER): Likewise.
20704         (RETURN_NULL_BOUNDED_POINTER): Likewise.
20705         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
20706         (POP_ERRNO_LOCATION_RETURN): Likewise.
20707         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
20708         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20709         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
20710         macros.
20711         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20712         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
20713         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
20714         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
20715         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
20716         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
20717         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
20718         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
20719         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
20720         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
20721         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
20722         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
20723         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20724         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
20725         removed macros.
20726         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20727         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
20728         macros.
20729         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20730         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
20731         * sysdeps/i386/i586/memset.S (memset): Likewise.
20732         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
20733         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20734         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
20735         macros.
20736         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20737         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
20738         Change uses of L(2) to L(out).
20739         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
20740         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
20741         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
20742         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20743         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
20744         removed macros.
20745         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20746         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
20747         macros.
20748         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20749         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
20750         (RETURN): Do not use macro LEAVE.
20751         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
20752         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
20753         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
20754         * sysdeps/i386/i686/memset.S (memset): Likewise.
20755         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
20756         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
20757         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20758         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
20759         Likewise.
20760         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20761         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
20762         L(1_2) and L(1_3) into L(1).
20763         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
20764         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
20765         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20766         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
20767         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20768         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
20769         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
20770         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20771         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
20772         macros.
20773         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
20774         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20775         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
20776         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
20777         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
20778         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20779         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
20780         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
20781         * sysdeps/i386/strcspn.S (strcspn): Likewise.
20782         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
20783         * sysdeps/i386/strrchr.S (strrchr): Likewise.
20784         * sysdeps/i386/strspn.S (strspn): Likewise.
20785         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
20786         conditional code.
20787         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20788         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
20789         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
20790         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
20791         L(1_3) into L(1_1).
20792         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
20793         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20794         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
20795         macros.
20796         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20797
20798 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
20799
20800         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
20801         macro.
20802
20803 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20804
20805         * math/atest-exp.c (exp_mpn): Remove ROUND.
20806         * math/atest-exp2.c (exp_mpn): Likewise.
20807         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
20808
20809         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
20810         * stdlib/tst-tls-atexit-lib.c: Likewise.
20811         * stdlib/tst-tls-atexit.c: Likewise.
20812
20813 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20814
20815         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
20816         and __attribute_alloc_size__.
20817
20818 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20819
20820         * include/programs/xmalloc.h: Change __attribute_alloc_size to
20821         __attribute_alloc_size__.
20822         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
20823         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
20824
20825 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20826
20827         * include/programs/xmalloc.h: New file.
20828         * catgets/gencat.c: Include it.
20829         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
20830         * elf/pldd.c: Likewise.
20831         * iconv/iconv_charmap.c: Likewise.
20832         * iconv/iconvconfig.c: Likewise.
20833         * iconv/strtab.c: Likewise.
20834         * locale/programs/locale.c: Likewise.
20835         * locale/programs/localedef.h: Likewise.
20836         * locale/programs/simple-hash.c: Likewise.
20837         * nscd/nscd.h: Likewise.
20838         * nss/makedb.c: Likewise.
20839         * sysdeps/generic/ldconfig.h: Likewise.
20840
20841 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20842
20843         * Versions.def: Add GLIBC_2.18.
20844         * include/link.h (struct link_map): New member l_tls_dtor_count.
20845         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
20846         (__call_tls_dtors): Likewise.
20847         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
20848         __cxa_thread_atexit_impl.
20849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20850         Likewise.
20851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20852         Likewise.
20853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
20854         Likewise.
20855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
20856         Likewise.
20857         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20858         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
20859         Likewise.
20860         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
20861         Likewise.
20862         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20863         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
20864         Likewise.
20865         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
20866         (tests): Add test case tst-tls-atexit.
20867         (modules-names): Add shared library for tst-tls-atexit.
20868         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
20869         (GLIBC_PRIVATE): Add __call_tls_dtors.
20870         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
20871         for libstdc++.
20872         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
20873         * stdlib/tst-tls-atexit.c: New test case.
20874         * stdlib/tst-tls-atexit-lib.c: New test case.
20875
20876         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
20877
20878         * elf/Versions (ld): Add _dl_find_dso_for_object.
20879         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
20880         * elf/dl-open.c (_dl_find_dso_for_object): New function.
20881         (dl_open_worker): Use _dl_find_dso_for_object.
20882         * elf/dl-sym.c (do_sym): Likewise.
20883         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
20884
20885 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20886
20887         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
20888         Syntactic changes only.
20889         (_dl_runtime_profile): Do a tail-call to the resolved function.
20890
20891 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
20892
20893         [BZ #13550]
20894         * sysdeps/x86_64/bp-asm.h: Remove file.
20895         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
20896         <bp-sym.h> and <bp-asm.h>.
20897         (__clone): Do not use BP_SYM.
20898         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
20899         <bp-sym.h> and <bp-asm.h>.
20900         * sysdeps/unix/x86_64/sysdep.S: Likewise.
20901         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
20902         "bp-asm.h".
20903         (_setjmp): Do not use BP_SYM.
20904         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
20905         "bp-asm.h".
20906         (setjmp): Do not use BP_SYM.
20907         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
20908         libc_hidden_def.
20909         (mempcpy): Do not use BP_SYM in weak_alias.
20910         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
20911         "bp-asm.h".
20912         (strchr): Do not use BP_SYM.
20913         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
20914         "bp-asm.h".
20915         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
20916         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
20917         (_start): Do not use BP_SYM.
20918         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
20919         "bp-asm.h".
20920         (strcat): Do not use BP_SYM.
20921         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
20922         "bp-asm.h".
20923         (STRCMP): Do not use BP_SYM.
20924         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
20925         "bp-asm.h".
20926         (STRCPY): Do not use BP_SYM.
20927         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
20928         "bp-asm.h".
20929         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
20930         "bp-asm.h".
20931         (FUNCTION): Do not use BP_SYM.
20932         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
20933         weak_alias.
20934         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
20935
20936 2013-02-17  Andreas Jaeger  <aj@suse.de>
20937
20938         * time/Versions: Sort entries.
20939         * string/Versions: Likewise.
20940         * resolv/Versions: Likewise.
20941         * posix/Versions: Likewise.
20942         * iconv/Versions: Likewise.
20943         * elf/Versions: Likewise.
20944         * wcsmbs/Versions: Likewise.
20945
20946 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20947
20948         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
20949         loop termination condition.
20950
20951         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
20952         variable to calculate EZ.
20953         (__sqr): Likewise.
20954
20955         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
20956         the lower precision input.
20957
20958 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
20959
20960         [BZ #13550]
20961         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
20962         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
20963         (run-via-rtld-prefix): Do not handle %-bp tests.
20964         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
20965         (all-object-suffixes): Remove .ob.
20966         (bppfx): Remove variable.
20967         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
20968         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
20969         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
20970         [$(build-bounded) = yes] (libtype.ob): Likewise.
20971         * Makerules (elide-routines.ob): Remove variable.
20972         (do-tests-clean): Do not handle *-bp.out.
20973         (common-mostlyclean): Do not handle *-bp and *-bp.out.
20974         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
20975         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
20976         (tests): Do not include $(tests-bp.out).
20977         (xtests): Do not include $(xtests-bp.out).
20978         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
20979         [$(build-bounded) = yes] ($(addprefix
20980         $(objpfx),$(binaries-bounded))): Remove rule.
20981         ($(objpfx)%-bp.out): Remove rule.
20982         * config.make.in (build-bounded): Remove variable.
20983         * crypt/Makefile [$(build-bounded) = yes]
20984         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
20985         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
20986         append to variable.
20987         [$(build-bounded) = yes] (install-lib): Likewise.
20988         [$(build-bounded) = yes] (generated): Likewise.
20989         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
20990         Remove rule.
20991         * intl/Makefile [$(build-bounded) = yes]
20992         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
20993         * math/Makefile [$(build-bounded) = yes]
20994         ($(tests:%=$(objpfx)%-bp): Likewise.
20995         * misc/Makefile [$(build-bounded) = yes]
20996         ($(objpfx)tst-tsearch-bp): Likewise.
20997         * nptl/Makeconfig (bounded-thread-library): Remove variable.
20998         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
20999         Remove dependency.
21000         * string/Makefile (o-objects.ob): Remove variable.
21001         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21002         (CFLAGS-.ob): Remove variable.
21003         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21004         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21005         both definitions of variable.
21006         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21007         (ASFLAGS-.ob): Remove variable.
21008
21009 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21010
21011         [BZ #13550]
21012         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21013         Remove __BOUNDED_POINTERS__ from condition.
21014         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21015         * string/bits/string2.h [!__NO_STRING_INLINES &&
21016         !__BOUNDED_POINTERS__]: Likewise.
21017         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21018         Likewise.
21019         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21020         Remove conditional code.
21021         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21022         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21023         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21024         condition.
21025
21026         [BZ #13550]
21027         * csu/libc-start.c: Do not include <bp-sym.h>.
21028         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21029         * elf/dl-open.c: Do not include <bp-sym.h>.
21030         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21031         * math/fegetenv.c: Do not include <bp-sym.h>.
21032         (fegetenv): Do not use BP_SYM in versioned symbols.
21033         * nptl/sysdeps/pthread/bits/libc-lockP.h
21034         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21035         <bp-sym.h>.
21036         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21037         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21038         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21039         (__pthread_mutex_destroy): Likewise.
21040         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21041         (__pthread_mutex_lock): Likewise.
21042         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21043         (__pthread_mutex_trylock): Likewise.
21044         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21045         (__pthread_mutex_unlock): Likewise.
21046         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21047         (__pthread_mutexattr_init): Likewise.
21048         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21049         (__pthread_mutexattr_destroy): Likewise.
21050         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21051         (__pthread_mutexattr_settype): Likewise.
21052         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21053         (__pthread_rwlock_init): Likewise.
21054         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21055         (__pthread_rwlock_destroy): Likewise.
21056         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21057         (__pthread_rwlock_rdlock): Likewise.
21058         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21059         (__pthread_rwlock_tryrdlock): Likewise.
21060         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21061         (__pthread_rwlock_wrlock): Likewise.
21062         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21063         (__pthread_rwlock_trywrlock): Likewise.
21064         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21065         (__pthread_rwlock_unlock): Likewise.
21066         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21067         (__pthread_key_create): Likewise.
21068         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21069         (__pthread_setspecific): Likewise.
21070         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21071         (__pthread_getspecific): Likewise.
21072         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21073         Likewise.
21074         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21075         (_pthread_cleanup_push_defer): Likewise.
21076         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21077         (_pthread_cleanup_pop_restore): Likewise.
21078         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21079         (pthread_setcancelstate): Likewise.
21080         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21081         <bp-sym.h>.
21082         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21083         (memchr): Do not use BP_SYM in weak_alias.
21084         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21085         (fegetenv): Do not use BP_SYM in versioned symbols.
21086         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21087         (fesetenv): Do not use BP_SYM in versioned symbols.
21088         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21089         (feupdateenv): Do not use BP_SYM in versioned symbols.
21090         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21091         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21092         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21093         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21094         (open64): Do not use BP_SYM in weak_alias.
21095         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21096         (fegetenv): Do not use BP_SYM in versioned symbols.
21097         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21098         (fesetenv): Do not use BP_SYM in versioned symbols.
21099         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21100         (feupdateenv): Do not use BP_SYM in versioned symbols.
21101         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21102         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21103         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21104         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21105         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21106         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21107         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21108         <bp-sym.h>.
21109         (__libc_start_main): Do not use BP_SYM.
21110
21111 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21112
21113         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21114         redundant return line.
21115         (norm): Likewise.
21116         (denorm): Likewise.
21117         (dbl_mp): Likewise.
21118         (sub_magnitudes): Likewise.
21119         (__add): Likewise.
21120         (__sub): Likewise.
21121         (__mul): Likewise.
21122         (__inv): Likewise.
21123         (__dvd): Likewise.
21124         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21125         (norm): Likewise.
21126         (denorm): Likewise.
21127         (dbl_mp): Likewise.
21128         (sub_magnitudes): Likewise.
21129         (__add): Likewise.
21130         (__sub): Likewise.
21131         (__mul): Likewise.
21132         (__inv): Likewise.
21133         (__dvd): Likewise.
21134
21135         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21136         instead of __mul.
21137         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21138         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21139         (cc32): Likewise.
21140
21141         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21142         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21143         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21144         of __mul for squares.
21145         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21146         function
21147         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21148         Likewise.
21149         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21150         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21151
21152 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21153
21154         [BZ #13550]
21155         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21156         code.
21157         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21158         prototype or function definition.  Rename ubp_* variables and
21159         parameters.  Remove argv definitions conditional on
21160         [__BOUNDED_POINTERS__].
21161         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21162         * elf/dl-runtime.c (_dl_fixup): Likewise.
21163         * include/set-hooks.h (RUN_HOOK): Likewise.
21164         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21165         definition.
21166         * string/strcpy.c (strcpy): Do not use __unbounded.
21167         * sysdeps/generic/frame.h (struct layout): Likewise.
21168         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21169         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21170         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21171         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21172         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21173         (__backtrace): Likewise.
21174         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21175         use __ptrvalue.
21176         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21177         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21178         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21179         Likewise.
21180         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21181         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21182         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21183         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21184         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21185         Do not use __unbounded.
21186         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21187         Rename __unboundedrlimits parameter to rlimits in prototype.
21188         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21189         Do not use __unbounded.
21190         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21191         not use __ptrvalue.
21192         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21193         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21194         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21195         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21196         __ptrvalue or __unbounded.
21197         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21198         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21199         use __unbounded.
21200         (__new_msgctl): Do not use __ptrvalue.
21201         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21202         __unbounded.
21203         (__libc_msgrcv): Do not use __ptrvalue.
21204         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21205         startup_info): Do not use __unbounded.
21206         (__libc_start_main): Likewise.  Rename ubp_* variables and
21207         parameters.  Remove argv definitions conditional on
21208         [__BOUNDED_POINTERS__].
21209         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21210         __ptrvalue.
21211         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21212         use __unbounded.
21213         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21214         or __ptrvalue.
21215         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21216         use __unbounded.
21217         (__new_shmctl): Do not use __ptrvalue.
21218         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21219         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21220         Likewise.
21221         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21222         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21223         (__libc_sigaction): Likewise.
21224         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21225         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
21226         Likewise.
21227         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21228
21229 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
21230
21231         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
21232
21233         * string/mempcpy.c: Implement by calling memcpy.
21234
21235 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
21236
21237         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
21238
21239         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
21240         evaluation.
21241
21242         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
21243         values in the mantissa.
21244
21245         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
21246         minimize writes to Z.
21247         (sub_magnitudes): Simplify code a bit.
21248
21249 2013-02-12  Roland McGrath  <roland@hack.frob.com>
21250
21251         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
21252         from the message.  The linker prefixes all warnings with that already.
21253
21254 2013-02-12  Andreas Schwab  <schwab@suse.de>
21255
21256         [BZ #15078]
21257         * posix/regexec.c (extend_buffers): Add parameter min_len.
21258         (check_matching): Pass minimum needed length.
21259         (clean_state_log_if_needed): Likewise.
21260         (get_subexp): Likewise.
21261         * posix/Makefile (tests): Add bug-regex34.
21262         (bug-regex34-ENV): Define.
21263         * posix/bug-regex34.c: New file.
21264
21265         [BZ #11561]
21266         * posix/regcomp.c (parse_bracket_exp): When looking up collating
21267         elements compare against the byte sequence of it, not its name.
21268         * posix/Makefile (tests): Add bug-regex35.
21269         (bug-regex35-ENV): Define.
21270         * posix/bug-regex35.c: New file.
21271
21272 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21273
21274         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
21275         comment.
21276         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
21277         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
21278         (CHECK_EOL): Add undef.
21279
21280 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
21281
21282         * bits/stdlib-bsearch.h: New file.
21283         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
21284         * stdlib/stdlib.h: Likewise.
21285
21286 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21287
21288         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
21289         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
21290         declaration.
21291         * manual/search.texi (Array Search Function): Add missing const in
21292         lfind prototype.
21293         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
21294         declaration to use rlim_t.
21295         (Basic Scheduling Functions): Remove erroneous const from
21296         sched_getparam prototype.  Remove erroneous * from
21297         sched_get_priority_max and sched_get_priority_min prototypes.
21298         (Resource Usage): Fix summary @comment on vtimes to refer to
21299         sys/vtimes.h rather than vtimes.h.
21300         Add missing *s in vtimes prototype.
21301         (Limits on Resources): Fix ulimit prototype to return long int.
21302         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
21303         prototypes to use long int rather than double.
21304         (BSD Random): Fix initstate and setstate to use char *, not void *.
21305         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
21306         prototype to make second argument 'struct aiocb64 *const[]'.
21307         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
21308         (Status of AIO Operations): Remove erroneous const in aio_return and
21309         aio_return64 prototypes.
21310         (Synchronizing I/O): Fix sync prototype to return void.
21311         * manual/startup.texi (Suboptions): Remove an erroneous const in
21312         getsubopt prototype.
21313         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
21314         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
21315         use size_t rather than int.
21316         (Scanning All Users): Likewise for getpwent_r.
21317         (Setting Groups): Add missing const to setgroups prototype.
21318         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
21319         * manual/socket.texi (Host Names): Fix gethostbyaddr and
21320         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
21321         'const void *' rather than 'const char *'.
21322         (Host Address Functions): Likewise for inet_ntop.
21323         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
21324         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
21325         ssize_t for return value.
21326         (Sending Data): Likewise for send, sendto, sendmsg.
21327         (Socket Option Functions): Add a missing const in setsockopt prototype.
21328         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
21329         use wchar_t for the argument.
21330         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
21331         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
21332         take no arguments.
21333         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
21334         double/float/long double for second argument.
21335         Fix return types of significand, significandf, significandl.
21336         * manual/filesys.texi (Setting Permissions): Use mode_t for second
21337         argument in fchmod prototype.
21338         (File Owner): Use uid_t and gid_t in fchown prototype.
21339         (File Times): Add const to utimes, futimes, and lutimes prototypes.
21340         (Making Special Files): Use mode_t and dev_t in mknod prototype.
21341         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
21342         use 'const struct dirent **' as argument types to CMP function pointer
21343         argument.
21344         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
21345         (File Times): Fix summary magic @comment for struct utimbuf and utime
21346         to refer to utime.h, not time.h.
21347         * manual/string.texi (Argz Functions): Add missing const in
21348         argz_extract and argz_next prototypes.
21349         (Finding Tokens in a String): Likewise for basename.
21350         (String/Array Comparison): Fix typo in wcscasecmp prototype.
21351         (Copying and Concatenation): Fix typo in wmemmove prototype.
21352         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
21353         (Signal Stack): Remove erroneous const in sigstack prototype.
21354         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
21355         prototype.
21356         (Simple Calendar Time): Likewise for stime.
21357         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
21358         prototype.
21359         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
21360         say sys/sysctl.h instead.
21361         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
21362         and vsyslog prototypes.
21363
21364 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21365
21366         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
21367         Remove.
21368
21369 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21370
21371         * misc/sys/mman.h: Fix typo in mremap comment.
21372
21373 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21374
21375         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
21376         the '\0' terminator.
21377
21378 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21379
21380         [BZ #13550]
21381         * debug/segfault.c: Don't include <bp-checks.h>.
21382         * sysdeps/generic/bp-checks.h: Remove file.
21383         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
21384         (__GETDENTS): Don't use CHECK_N.
21385         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
21386         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
21387         (__getgroups): Don't use CHECK_N.
21388         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
21389         (setgroups): Don't use CHECK_N.
21390         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
21391         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
21392         (__libc_msgrcv): Don't use CHECK_N.
21393         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
21394         (__libc_msgsnd): Don't use CHECK_N.
21395         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
21396         <bp-checks.h>.
21397         (__libc_pread): Don't use CHECK_N.
21398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
21399         include <bp-checks.h>.
21400         (__libc_pread64): Don't use CHECK_N.
21401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
21402         include <bp-checks.h>.
21403         (__libc_pwrite): Don't use CHECK_N.
21404         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
21405         include <bp-checks.h>.
21406         (__libc_pwrite64): Don't use CHECK_N.
21407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
21408         <bp-checks.h>.
21409         (__libc_pread): Don't use CHECK_N.
21410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
21411         include <bp-checks.h>.
21412         (__libc_pread64): Don't use CHECK_N.
21413         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
21414         include <bp-checks.h>.
21415         (__libc_pwrite): Don't use CHECK_N.
21416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
21417         include <bp-checks.h>.
21418         (__libc_pwrite64): Don't use CHECK_N.
21419         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
21420         (do_pread): Don't use CHECK_N.
21421         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
21422         (do_pread64): Don't use CHECK_N.
21423         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
21424         (do_pwrite): Don't use CHECK_N.
21425         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
21426         (do_pwrite64): Don't use CHECK_N.
21427         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
21428         (__libc_readv): Don't use CHECK_N.
21429         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
21430         (semop): Don't use CHECK_N.
21431         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
21432         <bp-checks.h>.
21433         (semtimedop): Don't use CHECK_N.
21434         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
21435         (__libc_pread): Don't use CHECK_N.
21436         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
21437         <bp-checks.h>.
21438         (__libc_pread64): Don't use CHECK_N.
21439         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
21440         <bp-checks.h>.
21441         (__libc_pwrite): Don't use CHECK_N.
21442         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
21443         <bp-checks.h>.
21444         (__libc_pwrite64): Don't use CHECK_N.
21445         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
21446         <bp-checks.h>.
21447         (__libc_msgrcv): Don't use CHECK_N.
21448         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
21449         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
21450         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
21451         (__libc_writev): Don't use CHECK_N.
21452
21453 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21454
21455         * string/strcpy.c: Removed unused variable.
21456
21457         * Makeconfig (+sysdep-includes): Define with := rather than =.
21458         Use an existing include/ subdir of each sysdeps dir before it.
21459
21460 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21461
21462         * nscd/connection.c (register_traced_file): Comment function.
21463         [HAVE_INOTIFY] (union __inev): Define.
21464         [HAVE_INOTIFY] (inotify_check_files): New function.
21465         [HAVE_INOTIFY] (clear_db_cache): Likewise.
21466         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
21467         clear_db_cache.
21468         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
21469
21470 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21471
21472         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
21473         loaded if not already and that a failure is permanent.
21474
21475 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21476
21477         [BZ #15006]
21478         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
21479         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
21480
21481 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21482
21483         [BZ #13550]
21484         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
21485         (CHECK_1_NULL_OK): Likewise.
21486         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
21487         (__fxstat): Do not use CHECK_1.
21488         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
21489         <bp-checks.h>.
21490         (___fxstat64): Do not use CHECK_1.
21491         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
21492         <bp-checks.h>.
21493         (__fxstatat): Do not use CHECK_1.
21494         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
21495         <bp-checks.h>.
21496         (__fxstatat64): Do not use CHECK_1.
21497         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
21498         <bp-checks.h>.
21499         (__fxstat): Do not use CHECK_1.
21500         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
21501         <bp-checks.h>.
21502         (__fxstatat): Do not use CHECK_1.
21503         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
21504         <bp-checks.h>.
21505         (__getresgid): Do not use CHECK_1.
21506         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
21507         <bp-checks.h>.
21508         (__getresuid): Do not use CHECK_1.
21509         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
21510         <bp-checks.h>.
21511         (__lxstat): Do not use CHECK_1.
21512         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
21513         <bp-checks.h>.
21514         (__old_msgctl): Do not use CHECK_1.
21515         (__new_msgctl): Likewise.
21516         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
21517         <bp-checks.h>.
21518         (__new_setrlimit): Do not use CHECK_1.
21519         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
21520         <bp-checks.h>.
21521         (__old_shmctl): Do not use CHECK_1.
21522         (__new_shmctl): Likewise.
21523         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
21524         <bp-checks.h>.
21525         (__xstat): Do not use CHECK_1.
21526         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
21527         (__lxstat): Do not use CHECK_1.
21528         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
21529         <bp-checks.h>.
21530         (___lxstat64): Do not use CHECK_1.
21531         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
21532         (__old_msgctl): Do not use CHECK_1.
21533         (__new_msgctl): Likewise.
21534         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
21535         <bp-checks.h>.
21536         (__gettimeofday): Do not use CHECK_1.
21537         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
21538         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
21539         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
21540         <bp-checks.h>.
21541         (__gettimeofday): Do not use CHECK_1.
21542         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
21543         (__old_shmctl): Do not use CHECK_1_NULL_OK.
21544         (__new_shmctl): Do not use CHECK_1.
21545         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
21546         <bp-checks.h>.
21547         (do_sigtimedwait): Do not use CHECK_1.
21548         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
21549         <bp-checks.h>.
21550         (do_sigwaitinfo): Do not use CHECK_1.
21551         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
21552         <bp-checks.h>.
21553         (msgctl): Do not use CHECK_1.
21554         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
21555         <bp-checks.h>.
21556         (shmctl): Do not use CHECK_1.
21557         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
21558         (ustat): Do not use CHECK_1.
21559         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
21560         <bp-checks.h>.
21561         (__fxstat): Do not use CHECK_1.
21562         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
21563         <bp-checks.h>.
21564         (__fxstatat): Do not use CHECK_1.
21565         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
21566         <bp-checks.h>.
21567         (__lxstat): Do not use CHECK_1.
21568         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
21569         <bp-checks.h>.
21570         (__xstat): Do not use CHECK_1.
21571         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
21572         (__xstat): Do not use CHECK_1.
21573         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
21574         (___xstat64): Do not use CHECK_1.
21575
21576         [BZ #13550]
21577         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
21578         definitions.
21579         (CHECK_BOUNDS_HIGH): Likewise.
21580         * string/strcpy.c: Do not include <bp-checks.h>.
21581         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
21582
21583 2013-02-07  Roland McGrath  <roland@hack.frob.com>
21584
21585         * nscd/nscd-client.h (__nscd_drop_map_ref):
21586         Add __attribute__ ((unused)).
21587         * nis/nss-nisplus.h (niserr2nss): Likewise.
21588
21589         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
21590         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
21591
21592         * csu/libc-tls.c (init_static_tls, init_slotinfo):
21593         Remove inline keyword.
21594         * include/rounding-mode.h (round_away): Likewise.
21595         * libio/wfileops.c (adjust_wide_data): Likewise.
21596         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
21597         (__m128i_strloadu_tolower): Likewise.
21598         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
21599         (__m128i_strloadu_tolower): Likewise.
21600         * time/mktime.c (ydhms_diff): Likewise.
21601         * locale/elem-hash.h (elem_hash): Likewise.
21602         * locale/setlocale.c (setdata): Likewise.
21603         * posix/regex_internal.h (re_string_char_size_at): Likewise.
21604         (re_string_wchar_at): Likewise.
21605         (bitset_not, bitset_merge, bitset_mask): Likewise.
21606         [!(__GNUC__ > 3)] (inline): Remove macro.
21607         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
21608         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
21609         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
21610         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
21611         * string/memcmp.c (memcmp_bytes): Likewise.
21612         * locale/programs/locarchive.c (compute_hashval): Likewise.
21613         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
21614         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
21615         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
21616         * nss/getent.c (print_rpc, print_protocols): Likewise.
21617         (print_passwd, print_group, print_aliases): Likewise.
21618         * nis/nss-nisplus.h (niserr2nss): Likewise.
21619         * nscd/connections.c (restart_p): Likewise.
21620         Change return type to bool.
21621
21622 2013-02-05  Roland McGrath  <roland@hack.frob.com>
21623
21624         * Makeconfig (all-Depend-files): Add existing
21625         $(sorted-subdirs:=/Depend) files.
21626         (all-subdirs): Remove nss.
21627         * sysdeps/unix/inet/Subdirs: Add it here instead.
21628         * hesiod/Depend: New file.
21629
21630         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
21631         instead of calling alloca.
21632
21633         * io/lseek.c (__lseek): Rename to __libc_lseek.
21634         Define __lseek as an alias.
21635
21636         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
21637
21638 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
21639
21640         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
21641         else clause and remove check for non-standard endianness.
21642
21643 2013-02-04  David S. Miller  <davem@davemloft.net>
21644
21645         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21646
21647 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
21648
21649         [BZ #13550]
21650         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
21651         (__ubp_memchr): Remove prototype.
21652         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
21653         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
21654         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
21655         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
21656         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
21657         Remove alias.
21658         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
21659         (__ubp_memchr): Likewise.
21660         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
21661         (__ubp_memchr): Likewise.
21662         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
21663         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
21664         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
21665         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
21666         CHECK_STRING.
21667         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
21668         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
21669         (__getcwd): Do not use CHECK_STRING.
21670         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
21671         <bp-checks.h>.
21672         (__real_chown): Do not use CHECK_STRING.
21673         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
21674         <bp-checks.h>.
21675         (fchownat): Do not use CHECK_STRING.
21676         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
21677         CHECK_STRING.
21678         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
21679         <bp-checks.h>.
21680         (__lchown): Do not use CHECK_STRING.
21681         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21682         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21683         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21684         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
21685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
21686         include <bp-checks.h>.
21687         (truncate64): Do not use CHECK_STRING.
21688         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
21689         <bp-checks.h>.
21690         (__real_chown): Do not use CHECK_STRING.
21691         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
21692         <bp-checks.h>.
21693         (__lchown): Do not use CHECK_STRING.
21694         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
21695         <bp-checks.h>.
21696         (__chown): Do not use CHECK_STRING.
21697         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
21698         <bp-checks.h>.
21699         (truncate64): Do not use CHECK_STRING.
21700         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
21701         Likewise.
21702         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
21703         (__xmknod): Do not use CHECK_STRING.
21704         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
21705         <bp-checks.h>.
21706         (__xmknodat): Do not use CHECK_STRING.
21707         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21708         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
21709
21710 2013-02-04  Andreas Schwab  <schwab@suse.de>
21711
21712         [BZ #14142]
21713         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
21714         * include/netdb.h: Likewise for h_errno.
21715         * elf/tst-stackguard1.c: Include <tls.h>.
21716
21717 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
21718
21719         * elf/link.h (struct link_map): Extend the l_addr comment.
21720         * include/link.h (struct link_map): Likewise.
21721
21722 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
21723
21724         [BZ #13550]
21725         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
21726         (BOUNDED_1): Remove macro.
21727         * debug/backtrace.c: Don't include <bp-checks.h>.
21728         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
21729         (__backtrace): Likewise.
21730         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
21731         <bp-checks.h>.
21732         (__backtrace): Don't use BOUNDED_1.
21733         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
21734         <bp-checks.h>.
21735         (__backtrace): Don't use BOUNDED_1.
21736         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
21737         (__backtrace): Don't use BOUNDED_1.
21738         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
21739         (shmat): Don't use BOUNDED_N.
21740
21741 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
21742
21743         [BZ #13550]
21744         * sysdeps/generic/bp-start.h: Remove file.
21745         * csu/libc-start.c: Don't include <bp-start.h>.
21746         (LIBC_START_MAIN): Set up __environ directly instead of using
21747         INIT_ARGV_and_ENVIRON.
21748         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
21749         <bp-start.h>.
21750
21751         [BZ #13550]
21752         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
21753         definitions.
21754         (CHECK_FCNTL): Likewise.
21755         (CHECK_N_PAGES): Likewise.
21756
21757         [BZ #13550]
21758         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
21759         definitions.
21760         (CHECK_SIGSET_NULL_OK): Likewise.
21761         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
21762         <bp-checks.h>.
21763         (sigpending): Don't use CHECK_SIGSET.
21764         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
21765         <bp-checks.h>.
21766         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21767         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
21768         <bp-checks.h>.
21769         (do_sigsuspend): Don't use CHECK_SIGSET.
21770         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
21771         use CHECK_SIGSET.
21772         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
21773         (do_sigwait): Don't use CHECK_SIGSET.
21774         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
21775         use CHECK_SIGSET.
21776         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
21777         include <bp-checks.h>.
21778         (sigpending): Don't use CHECK_SIGSET.
21779         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
21780         include <bp-checks.h>.
21781         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21782         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
21783         <bp-checks.h>.
21784         (sigpending): Don't use CHECK_SIGSET.
21785         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
21786         <bp-checks.h>.
21787         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21788
21789         [BZ #13550]
21790         * sysdeps/generic/bp-semctl.h: Remove file.
21791         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
21792         <bp-checks.h> and <bp-semctl.h>.
21793         (__old_semctl): Don't use CHECK_SEMCTL.
21794         (__new_semctl): Likewise.
21795         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
21796         and <bp-semctl.h>.
21797         (__old_semctl): Don't use CHECK_SEMCTL.
21798         (__new_semctl): Likewise.
21799         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
21800         <bp-checks.h> and <bp-semctl.h>.
21801         (__old_semctl): Don't use CHECK_SEMCTL.
21802         (__new_semctl): Likewise.
21803         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
21804         <bp-checks.h> and <bp-semctl.h>.
21805         (semctl): Don't use CHECK_SEMCTL.
21806
21807         [BZ #13550]
21808         * Makerules (elide-bp-thunks): Remove variable.
21809         (elide-routines.oS): Don't use $(elide-bp-thunks).
21810         (elide-routines.os): Likewise.
21811         (elide-routines.o): Likewise.
21812         (elide-routines.op): Likewise.
21813         (elide-routines.og): Likewise.
21814         (objects): Don't use $(bp-thunks).
21815         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
21816         include.
21817         (common-generated): Do not add s-proto-bp.d.
21818         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
21819         (int): Likewise.
21820         (typ): Likewise.
21821         Do not generate makefile rules for bounded-pointer thunks.
21822         * sysdeps/generic/bp-thunks.h: Remove file.
21823         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
21824         * sysdeps/unix/s-proto-bp.S: Likewise.
21825
21826         [BZ #15062]
21827         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
21828         parts of result separately when argument is not close to line from
21829         -i to i and one part of argument is small.
21830         * math/k_casinhf.c (__kernel_casinhf): Likewise.
21831         * math/k_casinhl.c (__kernel_casinhl): Likewise.
21832         * math/libm-test.inc (cacos_test): Add more tests.
21833         (casin_test): Likewise.
21834         (casinh_test): Likewise.
21835         * sysdeps/i386/fpu/libm-test-ulps: Update.
21836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21837
21838 2013-01-31  David S. Miller  <davem@davemloft.net>
21839
21840         * po/de.po: Update from translation team.
21841
21842 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
21843
21844         * time/tzfile.c: Include stdint.h for SIZE_MAX.
21845
21846 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
21847
21848         * configure.in (_AC_PROG_CC_C89): New definition.
21849         * configure: Regenerate.
21850
21851         * configure.in (AC_PROG_CPP): New definition.
21852         * configure: Regenerate.
21853
21854 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
21855
21856         * debug/tst-backtrace.h: New file.
21857         * debug/tst-backtrace2.c: Include tst-backtrace.h.
21858         (ret): Remove variable.
21859         (x): Likewise.
21860         (FAIL): Remove macro.
21861         (NO_INLINE): Likewise.
21862         (fn1): Use match function instead of strstr.
21863         * debug/tst-backtrace3.c: Include tst-backtrace.h.
21864         (ret): Remove variable.
21865         (x): Likewise.
21866         (FAIL): Remove macro.
21867         (NO_INLINE): Likewise.
21868         (fn): Use match function instead of strstr.
21869         * debug/tst-backtrace4.c: Include tst-backtrace.h.
21870         (ret): Remove variable.
21871         (x): Likewise.
21872         (FAIL): Remove macro.
21873         (NO_INLINE): Likewise.
21874         (handle_signal): Use match function instead of strstr.
21875         * debug/tst-backtrace5.c: Include tst-backtrace.h.
21876         (ret): Remove variable.
21877         (x): Likewise.
21878         (FAIL): Remove macro.
21879         (NO_INLINE): Likewise.
21880         (handle_signal): Use match function instead of strstr.
21881
21882 2013-01-23  Roland McGrath  <roland@hack.frob.com>
21883
21884         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
21885
21886 2013-01-23  David S. Miller  <davem@davemloft.net>
21887
21888         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
21889         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
21890         argument of CAS if possible.
21891         * sysdeps/sparc/sparc64/bits/atomic.h
21892         (__arch_compare_and_exchange_val_32_acq): Likewise.
21893         (__arch_compare_and_exchange_val_64_acq): Likewise.
21894
21895 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
21896
21897         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
21898         * sysdeps/posix/ulimit.c: ... this.
21899         Include <limits.h>.
21900         * sysdeps/unix/bsd/ulimit.c: Remove file.
21901
21902 2013-01-23  Adam Conrad  <adconrad@0c3.net>
21903
21904         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
21905         (LDFLAGS-tst-array5): Likewise.
21906
21907 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
21908
21909         [BZ #15036]
21910         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
21911         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
21912         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
21913         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
21914
21915 2013-01-21  David S. Miller  <davem@davemloft.net>
21916
21917         * sysdeps/sparc/backtrace.c: New file.
21918         * sysdeps/sparc/sparc32/backtrace.h: New file.
21919         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
21920         * sysdeps/sparc/sparc64/backtrace.h: New file.
21921         * sysdeps/sparc/sparc64/backtrace.c: Delete.
21922         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
21923         -funwind-tables.
21924
21925 2013-01-21  Andreas Schwab  <schwab@suse.de>
21926
21927         [BZ #15020]
21928         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
21929         closed its stdout.
21930
21931 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
21932
21933         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
21934         "mpa2.h".
21935         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21936
21937 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
21938             Mark Mitchell  <mark@codesourcery.com>
21939             Tom de Vries  <tom@codesourcery.com>
21940             Paul Pluzhnikov  <ppluzhnikov@google.com>
21941
21942         * debug/tst-backtrace2.c: New file.
21943         * debug/tst-backtrace3.c: Likewise.
21944         * debug/tst-backtrace4.c: Likewise.
21945         * debug/tst-backtrace5.c: Likewise.
21946         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
21947         (CFLAGS-tst-backtrace3.c): Likewise.
21948         (CFLAGS-tst-backtrace4.c): Likewise.
21949         (CFLAGS-tst-backtrace5.c): Likewise.
21950         (LDFLAGS-tst-backtrace2): Likewise.
21951         (LDFLAGS-tst-backtrace3): Likewise.
21952         (LDFLAGS-tst-backtrace4): Likewise.
21953         (LDFLAGS-tst-backtrace5): Likewise.
21954         (tests): Add new tests tst-backtrace2, tst-backtrace3,
21955         tst-backtrace4 and tst-backtrace5.
21956
21957 2013-01-18  Anton Blanchard  <anton@samba.org>
21958             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
21959
21960         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
21961         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
21962         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
21963         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
21964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
21965         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
21966         "+r" and remove output regs list as redundant.  Add explicit inline
21967         asm to specify register of return val to work around compiler codegen
21968         bug.  Remove (int) cast on return value.  Add return type parameter to
21969         use in macro so that this macro does not truncate return value for
21970         64-bit values.
21971         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
21972         pass to INTERNAL_VSYSCALL_NCS.
21973         (INLINE_VSYSCALL): Add 'long int' as return type to
21974         INTERNAL_VSYSCALL_NCS macro invocation.
21975         (INTERNAL_VSYSCALL): Add 'long int' as return type to
21976         INTERNAL_VSYSCALL_NCS macro invocation.
21977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
21978
21979 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21980
21981         [BZ #14496]
21982         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
21983         Fix application of SIMD FP exception mask.
21984
21985         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
21986         mp_no from a power of two.
21987         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
21988         __mpexp_twomm1.  Use __pow_mp.
21989
21990         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
21991         multiplication.
21992
21993 2013-01-17  David S. Miller  <davem@davemloft.net>
21994
21995         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21996
21997 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
21998
21999         [BZ #15023]
22000         * include/complex.h: Condition contents on [!_COMPLEX_H].
22001         (__kernel_casinhf): New prototype.
22002         (__kernel_casinh): Likewise.
22003         (__kernel_casinhl): Likewise.
22004         * math/Makefile (libm_calls): Add k_casinh.
22005         * math/k_casinh.c: New file.
22006         * math/k_casinhf.c: Likewise.
22007         * math/k_casinhl.c: Likewise.
22008         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22009         finite nonzero arguments.
22010         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22011         finite nonzero arguments.
22012         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22013         finite nonzero arguments.
22014         * math/s_casinh.c: Do not include <float.h>.
22015         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22016         * math/s_casinhf.c: Do not include <float.h>.
22017         (__casinhf): Move code for finite nonzero arguments to
22018         k_casinhf.c.
22019         * math/s_casinhl.c: Do not include <float.h>.
22020         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22021         redefine.
22022         (__casinhl): Move code for finite nonzero arguments to
22023         k_casinhl.c.
22024         * math/libm-test.inc (cacos_test): Add more tests.
22025         * sysdeps/i386/fpu/libm-test-ulps: Update.
22026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22027
22028 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22029
22030         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22031         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22032         [!HAVE_MREMAP]: Remove [defined linux] case.
22033         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22034
22035 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22036
22037         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22038
22039 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22040
22041         * elf/elf.h (R_386_SIZE32): New relocation.
22042         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22043         R_386_SIZE32.
22044         (elf_machine_rela): Likewise.
22045         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22046         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22047
22048 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22049
22050         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22051         (FP_FAST_FMA): Do not define.
22052         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22053         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22054         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22055         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22056         !_SOFT_FLOAT]: Likewise.
22057         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22058         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22059         value.
22060         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22061         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22062         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22063         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22064         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22065         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22066         file.
22067
22068 2013-01-16  Andreas Schwab  <schwab@suse.de>
22069
22070         [BZ #14327]
22071         * include/stdlib.h (__mktemp): Add declaration.
22072         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22073         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22074
22075 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22076
22077         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22078         definitions.
22079         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22080         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22081         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22082         definitions here.
22083         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22084         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22085         definitions.
22086         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22087         and ONE.
22088         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22089         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22090         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22091         definitions.
22092         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22093         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22094         definitions.
22095         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22096
22097         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22098
22099 2013-01-15  David S. Miller  <davem@davemloft.net>
22100
22101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22102         trunc{,f} to libm-sysdep_routes.
22103         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22105         file.
22106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22108         file.
22109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22110         file.
22111         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22112         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22113         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22114         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22115         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22116         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22117         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22118         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22119
22120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22121         nearbyint{,f} to libm-sysdep_routes.
22122         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22124         New file.
22125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22126         file.
22127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22128         New file.
22129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22130         file.
22131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22132         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22133         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22134         file.
22135         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22136         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22137         file.
22138         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22139         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22140         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22141
22142         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22143         libc_feholdexcept and libc_fesetenv.
22144
22145 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22146
22147         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22148
22149 2013-01-14  David S. Miller  <davem@davemloft.net>
22150
22151         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22152         (SPARC_ASM_VIS2_IFUNC): Likewise.
22153         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22155         use of 'siam' instruction.
22156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22157         Likewise.
22158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22159         Likewise.
22160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22161         Likewise.
22162         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22163         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22164         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22165         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22167         file.
22168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22169         file.
22170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22171         file.
22172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22173         file.
22174         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22175         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22176         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22177         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22179         new VIS2 routines.
22180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22183         Likewise.
22184         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22185         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22186         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22187         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22189         routines to libm-sysdep_routines.
22190         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22191
22192         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22193         fdim/fdimf to libm-sysdep_routines.
22194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22195         file.
22196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22197         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22198         file.
22199         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22200         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22201         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22202         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22203         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22204         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22205         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22206
22207 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22208
22209         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22210         to optimize copies.
22211
22212         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22213         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22214         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22215
22216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22217         local variable MPTWO.
22218         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22219         Likewise.
22220
22221 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22222
22223         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22224         GLOB_NOESCAPE.
22225
22226 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22227
22228         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
22229
22230 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22231
22232         * manual/pattern.texi (glob_t): Document gl_flags.
22233         (glob64_t): Likewise.
22234
22235 2013-01-11  David S. Miller  <davem@davemloft.net>
22236
22237         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
22238         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
22239         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
22240         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
22241         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
22242         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
22243         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
22244         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
22245         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
22246         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
22247         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
22248         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
22249         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
22250
22251         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22252         sparc V9 rather than using V8 code.
22253         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22254         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22255
22256         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22257         Move to...
22258         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
22259         Here.
22260
22261 2013-01-11  Roland McGrath  <roland@hack.frob.com>
22262
22263         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
22264         not in the main loop.
22265         * configure: Regenerated.
22266
22267 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
22268
22269         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
22270         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
22271         to just #else.
22272         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
22273         [!__GLIBC_HAVE_LONG_LONG] case.
22274         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
22275         condition to just #else.
22276         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
22277         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
22278         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
22279         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
22280         unconditional.
22281         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
22282         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22283         #elif condition to just #else.
22284         * sysdeps/unix/sysv/linux/sys/sysmacros.h
22285         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
22286         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22287         #elif condition to just #else.
22288
22289 2013-01-11  Steve Ellcey  <sellcey@mips.com>
22290
22291         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
22292         (EF_MIPS_ARCH_64): Fix value.
22293         (EF_MIPS_ARCH_32R2): New.
22294         (EF_MIPS_ARCH_64R2): New.
22295
22296 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
22297
22298         * Makeconfig (+link-pie-before-libc): New.
22299         (+link-pie-after-libc): Likewise.
22300         (+link-pie-tests): Likewise.
22301         (+link-pie): Rewritten.
22302         (link-before-libc): Remove $(config-LDFLAGS).
22303         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
22304         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
22305         (config-LDFLAGS): Renamed to ...
22306         (rtld-LDFLAGS): This.
22307         (rtld-tests-LDFLAGS): New macro.
22308         (link-libc-rpath-link): Likewise.
22309         (link-libc-tests-rpath-link): Likewise.
22310         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
22311         (link-libc): Prepand $(link-libc-rpath-link).
22312         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
22313         (test-program-prefix): New macro.
22314         (test-via-rtld-prefix): Likewise.
22315         (test-program-cmd): Likewise.
22316         (host-test-program-cmd): Likewise.
22317         * Makefile ($(common-objpfx)testrun.sh): Replace
22318         $(run-program-prefix) with $(test-program-prefix).
22319         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
22320         $(rtld-LDFLAGS).
22321         ($(common-objpfx)shlib.lds): Likewise.
22322         (build-module-helper): Likewise.
22323         ($(common-objpfx)format.lds): Likewise.
22324         * Rules (binaries-pie-tests): New.
22325         (binaries-pie-notests): Likewise.
22326         (binaries-pie): Rewritten.
22327         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
22328         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
22329         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
22330         (make-test-out): Replace $(host-built-program-cmd) with
22331         $(host-test-program-cmd).
22332         * config.make.in (build-hardcoded-path-in-tests): New variable.
22333         * configure.in (--enable-hardcoded-path-in-tests): New configure
22334         option.
22335         (hardcoded_path_in_tests): New AC_SUBST.
22336         * configure: Regenerated.
22337         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
22338         $(built-program-cmd) with $(test-program-cmd).
22339         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
22340         (test_program_cmd): This.
22341         * elf/Makefile ($(objpfx)order.out): Run test with
22342         $(test-program-prefix).
22343         ($(objpfx)order2.out): Likewise.
22344         ($(objpfx)tst-initorder.out): Likewise.
22345         ($(objpfx)tst-initorder2.out): Likewise.
22346         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
22347         $(test-program-cmd).
22348         ($(objpfx)tst-array1-static.out): Likewise.
22349         ($(objpfx)tst-array2.out): Likewise.
22350         ($(objpfx)tst-array3.out): Likewise.
22351         ($(objpfx)tst-array4.out): Likewise.
22352         ($(objpfx)tst-array5.out): Likewise.
22353         ($(objpfx)tst-array5-static.out): Likewise.
22354         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
22355         $(test-program-cmd).
22356         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
22357         $(run-program-prefix) with $(test-program-prefix).
22358         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
22359         (test_program_prefix): This.
22360         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
22361         $(run-program-prefix) with $(test-program-prefix).
22362         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
22363         (test_program_prefix): This.
22364         * iconvdata/tst-tables.sh: Likewise.
22365         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
22366         $(run-program-prefix) with $(test-program-prefix).
22367         ($(objpfx)tst-translit.out): Likewise.
22368         ($(objpfx)tst-gettext2.out): Likewise.
22369         ($(objpfx)tst-gettext4.out): Likewise.
22370         ($(objpfx)tst-gettext6.out): Likewise.
22371         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
22372         (test_program_prefix): This.
22373         * intl/tst-gettext2.sh: Likewise.
22374         * intl/tst-gettext4.sh  Likewise.
22375         * intl/tst-gettext6.sh: Likewise.
22376         * intl/tst-translit.sh: Likewise.
22377         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
22378         with $(test-program-cmd).
22379         * libio/Makefile ($(objpfx)test-freopen.out): Replace
22380         $(run-program-prefix) with $(test-program-prefix).
22381         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
22382         (test_program_prefix): This.
22383         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
22384         $(run-program-prefix) with $(test-program-prefix).
22385         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
22386         (test_program_prefix): This.
22387         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
22388         * posix/Makefile ($(objpfx)globtest.out): Replace
22389         $(run-via-rtld-prefix) and $(test-wrapper) with
22390         $(test-program-prefix) and $(test-via-rtld-prefix).
22391         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
22392         $(test-program-prefix).
22393         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
22394         $(host-test-program-cmd).
22395         (tst-spawn-ARGS): Likewise.
22396         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
22397         $(test-program-prefix).
22398         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
22399         (test_via_rtld_prefix): This.
22400         (test_wrapper): Renamed to ...
22401         (test_program_prefix): This.
22402         (run_program_prefix): Replaced by test_program_prefix.
22403         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
22404         (test_program_prefix): This.
22405         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
22406         with $(host-test-program-cmd).
22407         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
22408         $(run-program-prefix) with $(test-program-prefix).
22409         ($(objpfx)tst-printf.out): Likewise.
22410         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
22411         $(test-program-cmd).
22412         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
22413         (test_program_prefix): This.
22414         * stdio-common/tst-unbputc.sh: Likewise.
22415         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
22416         $(run-program-prefix) with $(test-program-prefix).
22417         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
22418         (test_program_prefix): This.
22419         * string/Makefile ($(objpfx)tst-svc.out):  Replace
22420         $(built-program-cmd) with $(test-program-cmd).
22421
22422 2013-01-11  Andreas Jaeger  <aj@suse.de>
22423
22424         [BZ #15003]
22425         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
22426         value. Sync with Linux 3.7.
22427
22428 2013-01-10  David S. Miller  <davem@davemloft.net>
22429
22430         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
22431         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22432         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22433
22434 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22435
22436         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
22437         never set.
22438         * configure: Regenerated.
22439
22440 2013-01-10  David S. Miller  <davem@davemloft.net>
22441
22442         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22443         sparc V9 rather than using V8 code.
22444         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22445         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22446
22447 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22448
22449         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
22450         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
22451         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
22452         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
22453         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
22454         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
22455         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
22456         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
22457         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
22458         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
22459         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
22460         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
22461         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
22462         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
22463         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
22464         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
22465         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
22466         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
22467         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
22468         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
22469         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
22470         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
22471         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
22472         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
22473         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
22474         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
22475         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
22476
22477 2013-01-10  David S. Miller  <davem@davemloft.net>
22478
22479         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22480
22481 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22482
22483         * posix/Makefile (tests-static): New variable.
22484         (tests): Add $(tests-static).
22485         (tst-exec-static-ARGS): New variable.
22486         (tst-spawn-static-ARGS): Likewise.
22487         * posix/tst-exec-static.c: New file.
22488         * posix/tst-spawn-static.c: Likewise.
22489         * posix/tst-exec.c: Support run directly.
22490         * posix/tst-spawn.c: Likewise.
22491
22492 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
22493
22494         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
22495         long.
22496         * math/bits/mathcalls.h (llrint): Likewise.
22497         (llround): Likewise.
22498         * stdlib/stdlib.h (struct drand48_data): Likewise.
22499         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
22500         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
22501         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
22502         Likewise.
22503         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
22504         Likewise.
22505         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
22506         (elf_greg_t): Likewise.
22507         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
22508         (__jmp_buf): Likewise.
22509         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
22510         definitions.
22511         (llrint): Likewise, for all definitions.
22512         (llrintl): Likewise.
22513
22514         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
22515         Remove [__GNUC__] condition.
22516         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
22517         condition to just [__USE_ISOC99].
22518         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
22519
22520 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22521
22522         [BZ #14200]
22523         * sysdeps/unix/sysv/linux/x86/bits/environments.h
22524         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
22525         defined.
22526         (_POSIX_V6_ILP32_OFF32): Likewise.
22527         (_XBS5_ILP32_OFF32): Likewise.
22528         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
22529         (__ILP32_OFFBIG_LDFLAGS): Likewise.
22530
22531 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22532
22533         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
22534
22535         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
22536         doubles __mpexp_twomm1.  Adjust usage.
22537         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
22538         Remove.
22539
22540 2013-01-10  Andreas Schwab  <schwab@suse.de>
22541
22542         [BZ #14964]
22543         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
22544         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
22545
22546 2013-01-09  David S. Miller  <davem@davemloft.net>
22547
22548         [BZ #15003]
22549         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
22550         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
22551         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
22552         (TCP_FASTOPEN): Define.
22553         (tcp_repair_opt): New structure.
22554         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
22555         enum values.
22556         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
22557         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
22558         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
22559         (tcp_cookie_transactions): New structure.
22560
22561 2013-01-09  Anton Blanchard  <anton@samba.org>
22562
22563         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
22564         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
22565         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
22566         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
22567
22568 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
22569
22570         * include/features.h (__USE_ANSI): Remove.
22571
22572 2013-01-09  Roland McGrath  <roland@hack.frob.com>
22573
22574         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
22575
22576         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
22577
22578 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
22579
22580         * sysdeps/s390/fpu/libm-test-ulps: Update.
22581
22582         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22583
22584         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
22585         (__acr): Likewise.
22586         (__cpy): Likewise.
22587         (norm): Likewise.
22588         (denorm): Likewise.
22589         (__mp_dbl): Likewise.
22590         (__dbl_mp): Likewise.
22591         (add_magnitudes): Likewise.
22592         (sub_magnitudes): Likewise.
22593         (__add): Likewise.
22594         (__sub): Likewise.
22595         (__mul): Likewise.
22596         (__inv): Likewise.
22597         (__dvd): Likewise.
22598         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
22599         (__acr): Likewise.
22600         (__cpy): Likewise.
22601         (norm): Likewise.
22602         (denorm): Likewise.
22603         (__mp_dbl): Likewise.
22604         (__dbl_mp): Likewise.
22605         (add_magnitudes): Likewise.
22606         (sub_magnitudes): Likewise.
22607         (__add): Likewise.
22608         (__sub): Likewise.
22609         (__mul): Likewise.
22610         (__inv): Likewise.
22611         (__dvd): Likewise.
22612         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
22613         (__acr): Likewise.
22614         (__cpy): Likewise.
22615         (norm): Likewise.
22616         (denorm): Likewise.
22617         (__mp_dbl): Likewise.
22618         (__dbl_mp): Likewise.
22619         (add_magnitudes): Likewise.
22620         (sub_magnitudes): Likewise.
22621         (__add): Likewise.
22622         (__sub): Likewise.
22623         (__mul): Likewise.
22624         (__inv): Likewise.
22625         (__dvd): Likewise.
22626
22627 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
22628
22629         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
22630         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
22631         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
22632         2 && __USE_EXTERN_INLINES]: Likewise.
22633
22634 2013-01-08  Andreas Jaeger  <aj@suse.de>
22635
22636         [BZ# 14985]
22637         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
22638         Remove.
22639         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
22640         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
22641
22642 2013-01-07  Anton Blanchard  <anton@samba.org>
22643
22644         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
22645         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
22646         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
22647         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
22648         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
22649         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
22650         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
22651         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
22652         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22653         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
22654         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22655         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22656         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
22657         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
22658         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
22659         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22660         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22661         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
22662         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
22663         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
22664         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
22665         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
22666         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
22667         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
22668         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
22669         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
22670         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
22671         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
22672         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
22673         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
22674         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
22675         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22676         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
22677         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
22678         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
22679         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
22680         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
22681         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
22682         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
22683         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
22684         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
22685         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22686         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
22687
22688 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
22689
22690         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
22691         (__MALLOC_PMT): Likewise.
22692         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
22693         [__GNUC__], only on [_LIBC].
22694         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
22695         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
22696         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
22697         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
22698         forward declaration.
22699         (realloc_hook_ini): Likewise.
22700         (memalign_hook_ini): Likewise.
22701         (__libc_memalign): Do not use __MALLOC_PMT in variable
22702         declaration.
22703         (__libc_valloc): Likewise.
22704         (__libc_pvalloc): Likewise.
22705         (__libc_calloc): Likewise.
22706         (__posix_memalign): Likewise.
22707
22708         [BZ #14996]
22709         * math/s_casinh.c: Include <float.h>.
22710         (__casinh): Do not do computation with squaring and square root
22711         for large arguments.
22712         * math/s_casinhf.c: Include <float.h>.
22713         (__casinhf): Do not do computation with squaring and square root
22714         for large arguments.
22715         * math/s_casinhl.c: Include <float.h>.
22716         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
22717         (__casinhl): Do not do computation with squaring and square root
22718         for large arguments.
22719         * math/libm-test.inc (casin_test): Add more tests.
22720         (casinh_test): Likewise.
22721         * sysdeps/i386/fpu/libm-test-ulps: Update.
22722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22723
22724 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22725
22726         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
22727         (__x86_64_raw_data_cache_size): Likewise.
22728         (__x86_64_data_cache_size_half): Likewise.
22729         (__x86_64_raw_data_cache_size_half): Likewise.
22730         (__x86_64_shared_cache_size): Likewise.
22731         (__x86_64_raw_shared_cache_size): Likewise.
22732         (__x86_64_shared_cache_size_half): Likewise.
22733         (__x86_64_raw_shared_cache_size_half): Likewise.
22734         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
22735         to ...
22736         (__x86_data_cache_size): This.
22737         (__x86_64_raw_data_cache_size): Renamed to ...
22738         (__x86_raw_data_cache_size): This.
22739         (__x86_64_data_cache_size_half): Renamed to ...
22740         (__x86_data_cache_size_half): This.
22741         (__x86_64_raw_data_cache_size_half): Renamed to ...
22742         (__x86_raw_data_cache_size_half): This.
22743         (__x86_64_shared_cache_size): Renamed to ...
22744         (__x86_shared_cache_size): This.
22745         (__x86_64_raw_shared_cache_size): Renamed to ...
22746         (__x86_raw_shared_cache_size): This.
22747         (__x86_64_shared_cache_size_half): Renamed to ...
22748         (__x86_shared_cache_size_half): This.
22749         (__x86_64_raw_shared_cache_size_half): Renamed to ...
22750         (__x86_raw_shared_cache_size_half): This.
22751         * sysdeps/x86_64/memcpy.S: Updated.
22752         * sysdeps/x86_64/memset.S: Likewise.
22753         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
22754         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
22755         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
22756
22757 2013-01-04  David S. Miller  <davem@davemloft.net>
22758
22759         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22760
22761 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
22762
22763         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
22764         1 to avoid redefinition warning.
22765         (__USE_GNU): Don't define.
22766         (init_signaling_nan): Protoize.
22767
22768         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22769
22770 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22771
22772         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
22773         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
22774         (__cpymn): Likewise.
22775         (norm): Remove commented code.
22776         (denorm): Likewise.
22777         (__mp_dbl): Likewise.
22778         (__inv): Likewise.
22779         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
22780         (__cpymn): Likewise.
22781         (norm): Remove commented code.
22782         (denorm): Likewise.
22783         (__mp_dbl): Likewise.
22784         (__inv): Likewise.
22785
22786         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
22787         mp_no value for 1.0 and 2.0.
22788         (norm): Use RADIXI instead of radixi.d.
22789         (denorm): Likewise.
22790         (__mul): Use 0.0 instead of zero.d.
22791         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
22792         mp_no value for 1.0 and 2.0.
22793         (norm): Use RADIXI instead of radixi.d.
22794         (denorm): Likewise.
22795         (__mul): Use 0.0 instead of zero.d.
22796
22797 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
22798
22799         [BZ #14994]
22800         * math/s_casinh.c (__casinh): Reduce finite argument to first
22801         quadrant then set signs of results at the end.
22802         * math/s_casinhf.c (__casinhf): Likewise.
22803         * math/s_casinhl.c (__casinhl): Likewise.
22804         * math/libm-test.inc (casin_test): Add more tests.
22805         (casinh_test): Likewise.
22806         * sysdeps/i386/fpu/libm-test-ulps: Update.
22807         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22808
22809 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22810
22811         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
22812
22813         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
22814
22815         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
22816         declarations.
22817         (denorm): Likewise.
22818         (__mp_dbl): Likewise.
22819         (__inv): Likewise.
22820
22821         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
22822         and adjust the header comment.
22823
22824         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
22825         variable name from declaration.
22826
22827 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22828
22829         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22830         Initialize COMMON_CPUID_INDEX_7 element.
22831         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
22832         (CPUID_RTM): Likewise.
22833         (HAS_RTM): Likewise.
22834         (COMMON_CPUID_INDEX_7): New enum.
22835
22836 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
22837
22838         [BZ #14981]
22839         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
22840         size is zero, record memory as freed.
22841
22842 2013-01-03  Andreas Jaeger  <aj@suse.de>
22843
22844         * po/ia.po: Add new Interlingua translation.
22845
22846 2012-01-03  Allan McRae  <allan@archlinux.org>
22847
22848         * locale/programs/localedef.c: Fix description of '--posix' flag.
22849
22850 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
22851
22852         * NEWS: Update dates in second copyright notice.
22853         * README: Update copyright dates in example.
22854         * manual/libc.texinfo: Update copyright dates.
22855         * scripts/test-installation.pl: Update copyright date in --version
22856         output.
22857
22858         * hurd/ctty-input.c: Fix copyright notice formatting.
22859         * hurd/ctty-output.c: Likewise.
22860         * hurd/dtable.c: Likewise.
22861         * hurd/hurd-raise.c: Likewise.
22862         * hurd/hurdprio.c: Likewise.
22863         * hurd/msgportdemux.c: Likewise.
22864         * misc/sys/file.h: Likewise.
22865         * misc/sys/ioctl.h: Likewise.
22866         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
22867         * sysdeps/mach/hurd/chdir.c: Likewise.
22868         * sysdeps/mach/hurd/fchdir.c: Likewise.
22869         * sysdeps/mach/hurd/rename.c: Likewise.
22870         * sysdeps/mach/hurd/rmdir.c: Likewise.
22871         * sysdeps/mach/hurd/seekdir.c: Likewise.
22872         * sysdeps/mach/hurd/setsid.c: Likewise.
22873         * sysdeps/posix/wait3.c: Likewise.
22874
22875         * All files with FSF copyright notices: Update copyright dates
22876         using scripts/update-copyrights.
22877         * intl/plural.c: Regenerated.
22878         * locale/programs/charmap-kw.h: Likewise.
22879         * locale/programs/locfile-kw.h: Likewise.
22880
22881 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
22882
22883         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
22884         four values.
22885
22886         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
22887         calculation loop and add branch prediction.
22888
22889         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
22890         check access beyond bounds of m1np.
22891
22892         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
22893         MPTWO.
22894         (__inv): Remove local variable MPTWO to use the global
22895         constant.
22896         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
22897         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
22898         variable MPTWO.
22899         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
22900         MP3HALFS static const.
22901
22902 2013-01-01  David S. Miller  <davem@davemloft.net>
22903
22904         * po/ca.po: Update from translation team.
22905
22906 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
22907
22908         * scripts/update-copyrights: New file.
22909         * Makeconfig: Reformat copyright notice.
22910         * ctype/ctype.h: Likewise.
22911         * debug/swprintf_chk.c: Likewise.
22912         * elf/dl-cache.c: Likewise.
22913         * elf/dl-debug.c: Likewise.
22914         * elf/dl-object.c: Likewise.
22915         * grp/initgroups.c: Likewise.
22916         * hurd/Makefile: Likewise.
22917         * hurd/hurd/signal.h: Likewise.
22918         * hurd/hurdfault.c: Likewise.
22919         * hurd/hurdioctl.c: Likewise.
22920         * hurd/hurdlookup.c: Likewise.
22921         * hurd/intr-msg.c: Likewise.
22922         * iconv/gconv_open.c: Likewise.
22923         * libio/swprintf.c: Likewise.
22924         * locale/lc-ctype.c: Likewise.
22925         * locale/nl_langinfo.c: Likewise.
22926         * mach/Machrules: Likewise.
22927         * mach/Makefile: Likewise.
22928         * malloc/obstack.h: Likewise.
22929         * manual/Makefile: Likewise.
22930         * manual/tsort.awk: Likewise.
22931         * misc/bits/stab.def: Likewise.
22932         * nis/nis_print_group_entry.c: Likewise.
22933         * nis/nis_table.c: Likewise.
22934         * nis/nss_compat/compat-pwd.c: Likewise.
22935         * nis/nss_compat/compat-spwd.c: Likewise.
22936         * po/Makefile: Likewise.
22937         * posix/fnmatch.c: Likewise.
22938         * posix/regex.h: Likewise.
22939         * resolv/Makefile: Likewise.
22940         * resolv/nss_dns/dns-network.c: Likewise.
22941         * resolv/res_hconf.c: Likewise.
22942         * scripts/gen-sorted.awk: Likewise.
22943         * soft-fp/soft-fp.h: Likewise.
22944         * stdio-common/printf.h: Likewise.
22945         * stdlib/monetary.h: Likewise.
22946         * stdlib/random.c: Likewise.
22947         * stdlib/random_r.c: Likewise.
22948         * sysdeps/generic/Makefile: Likewise.
22949         * sysdeps/gnu/Makefile: Likewise.
22950         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22951         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22952         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22953         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22954         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22955         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22956         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22957         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
22958         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22959         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22960         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
22961         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
22962         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
22963         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
22964         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
22965         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
22966         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
22967         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22968         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22969         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22970         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22971         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22972         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22973         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
22974         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
22975         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
22976         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
22977         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
22978         * sysdeps/mach/hurd/errnos.awk: Likewise.
22979         * sysdeps/mach/hurd/fork.c: Likewise.
22980         * sysdeps/mach/hurd/getcwd.c: Likewise.
22981         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
22982         * sysdeps/mach/hurd/mmap.c: Likewise.
22983         * sysdeps/mach/hurd/utimes.c: Likewise.
22984         * sysdeps/mach/hurd/xmknod.c: Likewise.
22985         * sysdeps/posix/profil.c: Likewise.
22986         * sysdeps/posix/readdir_r.c: Likewise.
22987         * sysdeps/powerpc/bits/mathdef.h: Likewise.
22988         * sysdeps/powerpc/bits/setjmp.h: Likewise.
22989         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
22990         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
22991         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22992         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
22993         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
22994         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
22995         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22996         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
22997         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
22998         * sysdeps/pthread/lio_listio.c: Likewise.
22999         * sysdeps/sparc/dl-procinfo.h: Likewise.
23000         * sysdeps/unix/i386/sysdep.S: Likewise.
23001         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23002         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23003         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23004         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23006         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23007         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23008         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23009         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23010         * sysdeps/wordsize-32/divdi3.c: Likewise.
23011         * time/sys/time.h: Likewise.
23012         * wcsmbs/Makefile: Likewise.
23013
23014 2013-01-01  David S. Miller  <davem@davemloft.net>
23015
23016         * po/fr.po: Update from translation team.
23017
23018         * catgets/gencat.c: Update copyright year.
23019         * csu/version.c: Likewise.
23020         * debug/catchsegv.sh: Likewise.
23021         * debug/pcprofiledump.c: Likewise.
23022         * debug/xtrace.sh: Likewise.
23023         * elf/ldconfig.c: Likewise.
23024         * elf/ldd.bash.in: Likewise.
23025         * elf/pldd.c: Likewise.
23026         * elf/sotruss.ksh: Likewise.
23027         * elf/sprof.c: Likewise.
23028         * iconv/iconv_prog.c: Likewise.
23029         * iconv/iconvconfig.c: Likewise.
23030         * locale/programs/locale.c: Likewise.
23031         * locale/programs/localedef.c: Likewise.
23032         * login/programs/pt_chown.c: Likewise.
23033         * malloc/memusage.sh: Likewise.
23034         * malloc/memusagestat.c: Likewise.
23035         * malloc/mtrace.pl: Likewise.
23036         * nscd/nscd.c: Likewise.
23037         * nss/getent.c: Likewise.
23038         * nss/makedb.c: Likewise.
23039         * posix/getconf.c: Likewise.
23040
23041 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23042
23043         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23044         numbers.
23045
23046 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23047
23048         * math/bits/mathcalls.h (modf): Use __nonnull.
23049
23050 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23051
23052         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23053         (split): Use macro CN instead of the bare value.
23054         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23055         could be used.
23056         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23057         instead of the bare value.
23058         (power1): Likewise.
23059
23060 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23061
23062         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23063         __ATAN_TWOM.
23064         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23065
23066         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23067         their values.
23068         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23069         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23070         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23071         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23072
23073 2012-12-28  Andreas Jaeger  <aj@suse.de>
23074
23075         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23076         values are from Linux 3.7.
23077
23078         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23079         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23080
23081 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23082
23083         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23084         TRUE case.
23085
23086         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23087         (norm): Likewise.
23088         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23089         variables with preprocessor constants.
23090         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23091         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23092         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23093
23094 2012-12-27  Bruno Haible  <bruno@clisp.org>
23095
23096         [BZ #14317]
23097         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23098         only if needed.
23099
23100 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23101
23102         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23103         and use variable directly.
23104         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23105
23106         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23107         MPONE.
23108         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23109         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23110         variable MPONE.
23111         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23112         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23113         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23114         include directive.  Remove local variable MPONE.
23115         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23116         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23117         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23118
23119 2012-12-25  David S. Miller  <davem@davemloft.net>
23120
23121         * version.h (RELEASE): Set to "development".
23122         (VERSION): Set to "2.17.90".
23123         * NEWS: Add 2.18 section.
23124
23125 2012-12-21  David S. Miller  <davem@davemloft.net>
23126
23127         * po/hr.po: Update from translation team.
23128
23129 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23130
23131         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23132
23133 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23134
23135         * NEWS:  Mention new memcpy for MIPS.
23136
23137 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23138
23139         * manual/contrib.texi (Contributors): Spelling correction.
23140
23141 2012-12-15  David S. Miller  <davem@davemloft.net>
23142
23143         * po/ru.po: Update from translation team.
23144
23145 2012-12-13  David S. Miller  <davem@davemloft.net>
23146
23147         * NEWS: Mention IFUNC testsuite enhancements.
23148
23149         * po/pl.po: Update from translation team.
23150         * po/bg.po: Likewise.
23151
23152         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23153         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23154
23155 2012-12-11  David S. Miller  <davem@davemloft.net>
23156
23157         * po/sv.po: Update from translation team.
23158
23159         * po/vi.po: Update from translation team.
23160
23161         * po/cs.po: Update from translation team.
23162
23163         * po/de.po: Update from translation team.
23164         * po/eo.po: Likewise.
23165         * po/nl.po: Likewise.
23166
23167 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23168
23169         [BZ #14246]
23170         * manual/argp.texi (Argp Helper Functions): Move node to follow
23171         Argp Parsing State.
23172
23173         [BZ #14872]
23174         * manual/conf.texi (Limits on File System Capacity): Mention if
23175         terminating null is included in the max size.
23176
23177 2012-12-10  Andreas Jaeger  <aj@suse.de>
23178
23179         * po/cs.po: Update from translation team.
23180
23181 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23182
23183         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23184         void pointer and cast to uintptr_t.
23185         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23186         path.
23187         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23188         * sysdeps/s390/s390-64/memset.S: Likewise.
23189
23190 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23191
23192         [BZ #14833]
23193         * menual/message.texi (Message Translation): Fix typos.
23194         (Helper programs for gettext): Likewise.
23195
23196 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23197
23198         [BZ #14898]
23199         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23200         Change to -1.
23201
23202 2012-12-07  David S. Miller  <davem@davemloft.net>
23203
23204         * po/libc.pot: Update.
23205
23206 2012-12-07  Richard Henderson  <rth@redhat.com>
23207
23208         [BZ #10114]
23209         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23210         normal/normal case to before the switch.
23211         (_FP_DIV): Likewise.
23212
23213 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23214             Mike Frysinger  <vapier@gentoo.org>
23215
23216         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23217         check for __NR_fadvise64_64.
23218
23219 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23220
23221         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23222         0, not just to plain "0" as a statement.
23223         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23224         with cw.
23225
23226 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
23227
23228         * NEWS: Use sourceware.org in Bugzilla URL.
23229
23230 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
23231
23232         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23233         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23234
23235         * stdio-common/tst-put-error.c (do_test): Add newline to the
23236         padded test to ensure flush.
23237
23238 2012-12-05  Jeff Law  <law@redhat.com>
23239
23240         * sunrpc/etc.rpc (fedfs_admin): Add entry.
23241
23242 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
23243
23244         * README: Don't refer to ports add-on as distributed separately.
23245         Mention AArch64 in list of systems supported in the ports add-on.
23246
23247         * LICENSES: Add more non-FSF copyright and license notices.
23248
23249         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
23250         ((unused)).
23251
23252         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
23253
23254         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
23255         10000 as width of padded output.
23256
23257 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23258
23259         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
23260
23261         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
23262         variable LX with __attribute__ ((unused)).
23263         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
23264         Likewise.
23265         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
23266         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23267         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
23268         with __attribute__ ((unused)).
23269
23270 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
23271
23272         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
23273
23274 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23275
23276         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
23277         (CFLAGS-nldbl-acos.c): New variable.
23278         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
23279         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
23280         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
23281         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
23282         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
23283         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
23284         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
23285         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
23286         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
23287         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
23288         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
23289         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
23290         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
23291         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
23292         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
23293         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
23294         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
23295         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
23296         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
23297         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
23298         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
23299         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
23300         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
23301         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
23302         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
23303         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
23304         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
23305         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
23306         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
23307         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
23308         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
23309         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
23310         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
23311         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
23312         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
23313         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
23314         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
23315         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
23316         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
23317         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
23318         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
23319         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
23320         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
23321         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
23322         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
23323         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
23324         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
23325         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
23326         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
23327         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
23328         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
23329         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
23330         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
23331         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
23332         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
23333         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
23334         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
23335         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
23336         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
23337         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
23338         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
23339         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
23340         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
23341         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
23342         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
23343         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
23344         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
23345         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
23346         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
23347         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
23348         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
23349         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
23350         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
23351         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
23352         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
23353         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
23354         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
23355         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
23356         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
23357         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
23358         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
23359         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
23360         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
23361         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
23362         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
23363         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
23364         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
23365         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
23366         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
23367         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
23368         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
23369         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
23370         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
23371         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
23372         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
23373         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
23374         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
23375
23376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23377         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23378
23379         [BZ #14914]
23380         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
23381         whole low double instead of just low 47 bits when splitting values
23382         into two parts.
23383
23384 2012-12-03  Allan McRae  <allan@archlinux.org>
23385
23386         * manual/stdio.texi (Predefined Printf Handlers): Remove
23387         @hsep and @vsep usage.
23388
23389 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
23390
23391         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
23392         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
23393
23394 2012-12-03  Jeff Law  <law@redhat.com>
23395
23396         * time/sys/time.h (settimeofday): Do not mark TV argument
23397         as __nonnull.
23398
23399 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
23400
23401         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
23402         when currently writing and seek to current position when not.
23403         * libio/Makefile (tests): Remove bug-fclose1.
23404         * libio/bug-fclose1.c: Delete.
23405
23406 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
23407
23408         * manual/arith.texi (feenableexcept): Fix typo.
23409         (fedisableexcept): Likewise.
23410
23411 2012-11-30  Roland McGrath  <roland@hack.frob.com>
23412
23413         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
23414         second, differently-typed declaration, rather than a cast.
23415
23416 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23417
23418         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
23419         * include/rpc/svc.h: ... here.
23420
23421 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
23422
23423         [BZ #13013]
23424         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
23425         depending n and resplen2 to catch cases where answer
23426         equals answerp2.
23427
23428 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
23429
23430         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
23431         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
23432
23433 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
23434
23435         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
23436
23437 2012-11-29  Roland McGrath  <roland@hack.frob.com>
23438
23439         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
23440
23441 2012-11-28  Jeff Law  <law@redhat.com>
23442
23443         [BZ #13761]
23444         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
23445         dataset_temporary.  Track alloca usage into alloca_used.
23446         If dataset is large allocate and release it via malloc/free.
23447
23448 2012-06-04  Florian Weimer  <fweimer@redhat.com>
23449
23450         [BZ #14197]
23451         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
23452
23453 2012-11-28  David S. Miller  <davem@davemloft.net>
23454
23455         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23456
23457 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23458
23459         [BZ #14803]
23460         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
23461         of pi/2 rounded to nearest to 64 bits.
23462         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
23463         nearest to 64 bits.
23464         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
23465         bits.
23466
23467 2012-11-28  Jeff Law <law@redhat.com>
23468             Martin Osvald <mosvald@redhat.com>
23469
23470         [BZ #14889]
23471         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
23472         * sunrpc/svc.c: Include time.h.
23473         (__svc_accept_failed): New function.
23474         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
23475         any reason other than EINTR, call __svc_accept_failed.
23476         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
23477         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
23478
23479 2012-11-28  Andreas Schwab  <schwab@suse.de>
23480
23481         * scripts/abilist.awk: Also handle indirect functions in .opd
23482         section.
23483
23484 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23485
23486         [BZ #13881]
23487         * sysdeps/x86/fpu/powl_helper.c: New file.
23488         * sysdeps/x86/fpu/Makefile: Likewise.
23489         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
23490         (p3): New object.
23491         (__ieee754_powl): Use __powl_helper for finite arguments except
23492         integer exponents below 8.
23493         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
23494         (p3): New object.
23495         (__ieee754_powl): Use __powl_helper for finite arguments except
23496         integer exponents below 8.
23497         * math/libm-test.inc (pow_test): Add more tests and enable some
23498         previously disabled tests.
23499         * sysdeps/i386/fpu/libm-test-ulps: Update.
23500         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23501
23502 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23503             Carlos O'Donell  <carlos_odonell@mentor.com>
23504
23505         * nss/makedb.c (is_prime): Assert that input is odd and greater
23506         than 4.  Note that fact in a comment too.
23507         (next_prime): Add 4 to input.
23508
23509 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23510
23511         [BZ #11741]
23512         * libio/Makefile (tests): Add test case tst-fwrite-error.
23513         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
23514         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
23515         * libio/tst-fwrite-error.c: New test case.
23516
23517 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
23518
23519         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
23520         before casting to void *.
23521         * include/libc-internal.h (__pointer_type): New macro.
23522         (__integer_if_pointer_type_sub): Likewise.
23523         (__integer_if_pointer_type): Likewise.
23524         (cast_to_integer): Likewise.
23525         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
23526         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
23527         before casting to atomic64_t.
23528         (atomic_exchange_acq): Likewise.
23529         (__arch_exchange_and_add_body): Likewise.
23530         (__arch_add_body): Likewise.
23531         (atomic_add_negative): Likewise.
23532         (atomic_add_zero): Likewise.
23533
23534 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
23535
23536         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
23537         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
23538         (add_fdes): Likewise.
23539         (linear_search_fdes): Likewise.
23540         (binary_search_unencoded_fdes): Likewise.
23541
23542 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
23543
23544         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
23545
23546 2012-11-24  Adam Conrad  <adconrad@0c3.net>
23547
23548         * configure.in: Autodetect C++ header directories.
23549         * configure: Regenerated.
23550
23551 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
23552
23553         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
23554
23555 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
23556
23557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23558
23559 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
23560
23561         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
23562         LDBL_MANT_DIG == 106]: Disable some tests.
23563         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23564         Likewise.
23565         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23566         Likewise.
23567
23568         [BZ #14871]
23569         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
23570         input for small inputs.  Return +/- pi/2 for large inputs.
23571         * math/libm-test.inc (atan_test): Add more tests.
23572
23573         * sysdeps/generic/unwind-dw2-fde-glibc.c
23574         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
23575         __attribute__ ((unused)).
23576
23577         [BZ #14645]
23578         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
23579         x * y if x and y are nonzero and z is zero.
23580
23581         [BZ #14811]
23582         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
23583         nonzero exponents with absolute value below 0x1p-117 to +/-
23584         0x1p-117.
23585
23586         [BZ #14869]
23587         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
23588         up arguments below 2**-450, not just those below 2**-500.
23589         * math/libm-test.inc (hypot_test): Add another test.
23590
23591         [BZ #14868]
23592         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
23593         Return a+b for ratio over 2**120, not 2**60.
23594         * math/libm-test.inc (hypot_test): Add another test.
23595
23596         * math/libm-test.inc (clog_test): Use
23597         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
23598         (clog10_test): Likewise.
23599
23600         [BZ #6778]
23601         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
23602
23603 2012-11-22  Andreas Schwab  <schwab@suse.de>
23604
23605         * sysdeps/i386/fpu/libm-test-ulps: Update.
23606
23607 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
23608
23609         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
23610         printf output with newline.
23611
23612 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
23613
23614         [BZ #14865]
23615         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
23616         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
23617         -z nodlopen, -z initfirst and -z execstack support.
23618         * configure: Regenerated.
23619
23620         * elf/elf.h (DF_1_NODIRECT): New macro.
23621         (DF_1_IGNMULDEF): Likewise.
23622         (DF_1_NOKSYMS): Likewise.
23623         (DF_1_NOHDR): Likewise.
23624         (DF_1_EDITED): Likewise.
23625         (DF_1_NORELOC): Likewise.
23626         (DF_1_SYMINTPOSE): Likewise.
23627         (DF_1_GLOBAUDIT): Likewise.
23628         (DF_1_SINGLETON): Likewise.
23629         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
23630         DT_1_SUPPORTED_MASK bits.
23631         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
23632
23633 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
23634
23635         * sysdeps/unix/make-syscalls.sh: Document prefixes.
23636
23637 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
23638
23639         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
23640         macro.
23641
23642         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
23643         (sendmmsg): Move declarations...
23644         * socket/sys/socket.h: ... here.
23645         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
23646         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
23647         include it from...
23648         * socket/recvmmsg.c: ... this new file.
23649         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
23650         (sendmmsg): Rename to __sendmmsg, create weak alias and make
23651         definition of __sendmmsg hidden.
23652         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23653         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
23654         Move ENOSYS stub into and include it from...
23655         * socket/sendmmsg.c: ... this new file.
23656         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
23657         (sysdep_routines): Move recvmmsg and sendmmsg...
23658         * socket/Makefile (routines): ... here.
23659         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
23660         (GLIBC_PRIVATE): Add __sendmmsg.
23661         * include/sys/socket.h (__sendmmsg): Add declarations.
23662         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
23663         sendmmsg.
23664
23665 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
23666
23667         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
23668         variable I1 with __attribute__ ((unused)).
23669         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
23670
23671 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
23672
23673         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
23674         DUMMY variables with __attribute__ ((unused)).
23675
23676         * bits/byteswap.h: Include <bits/types.h>.
23677         (__bswap_64): Use __uint64_t instead of unsigned long long int.
23678
23679 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
23680
23681         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
23682         string_t.  Do not manually set errno.
23683         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
23684         length with __strnlen.  Make sure to both set errno and return it on
23685         failure.
23686
23687 2012-11-19  David S. Miller  <davem@davemloft.net>
23688
23689         With help from Joseph Myers.
23690         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
23691         very large arguments properly.
23692         * math/libm-test.inc (atan_test): New tests.
23693         (atan2_test): New tests.
23694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23695         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23696
23697 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
23698
23699         [BZ #14856]
23700         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
23701         Define to 3.
23702
23703         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
23704         [POSIX] (EADDRNOTAVAIL): Likewise.
23705         [POSIX] (EAFNOSUPPORT): Likewise.
23706         [POSIX] (EALREADY): Likewise.
23707         [POSIX] (ECONNABORTED): Likewise.
23708         [POSIX] (ECONNREFUSED): Likewise.
23709         [POSIX] (ECONNRESET): Likewise.
23710         [POSIX] (EDESTADDRREQ): Likewise.
23711         [POSIX] (EDQUOT): Likewise.
23712         [POSIX] (EHOSTUNREACH): Likewise.
23713         [POSIX] (EIDRM): Likewise.
23714         [POSIX] (EISCONN): Likewise.
23715         [POSIX] (ELOOP): Likewise.
23716         [POSIX] (EMULTIHOP): Likewise.
23717         [POSIX] (ENETDOWN): Likewise.
23718         [POSIX] (ENETUNREACH): Likewise.
23719         [POSIX] (ENOBUFS): Likewise.
23720         [POSIX] (ENODATA): Likewise.
23721         [POSIX] (ENOLINK): Likewise.
23722         [POSIX] (ENOMSG): Likewise.
23723         [POSIX] (ENOPROTOOPT): Likewise.
23724         [POSIX] (ENOSR): Likewise.
23725         [POSIX] (ENOSTR): Likewise.
23726         [POSIX] (ENOTCONN): Likewise.
23727         [POSIX] (ENOTSOCK): Likewise.
23728         [POSIX] (EOPNOTSUPP): Likewise.
23729         [POSIX] (EOVERFLOW): Likewise.
23730         [POSIX] (EPROTO): Likewise.
23731         [POSIX] (EPROTONOSUPPORT): Likewise.
23732         [POSIX] (EPROTOTYPE): Likewise.
23733         [POSIX] (ESTALE): Likewise.
23734         [POSIX] (ETIME): Likewise.
23735         [POSIX] (ETXTBSY): Likewise.
23736         [POSIX] (EWOULDBLOCK): Likewise.
23737         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
23738         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
23739         [POSIX] (SEEK_CUR): Likewise.
23740         [POSIX] (SEEK_END): Likewise.
23741         [POSIX || UNIX98] (mode_t): Do not require.
23742         [POSIX] (off_t): Likewise.
23743         [POSIX] (pid_t): Likewise.
23744         [POSIX] (sys/stat.h): Do not allow header.
23745         [POSIX] (unistd.h): Likewise.
23746         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
23747         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
23748         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
23749         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
23750         require.
23751         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
23752         sigevent): Specify elements.
23753         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
23754         entry.
23755         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
23756         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
23757
23758         * conform/data/cpio.h-data [POSIX]: Disable whole file.
23759         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
23760         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
23761         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
23762         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
23763         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
23764         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
23765         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
23766         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
23767         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
23768         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
23769         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
23770         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
23771         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
23772         Likewise.
23773         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
23774         Likewise.
23775         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
23776         Likewise.
23777         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
23778         Likewise.
23779         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
23780         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
23781         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
23782         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
23783         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
23784         Specify lower bound on value.
23785         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
23786         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
23787         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
23788         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
23789         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
23790         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
23791         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
23792         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
23793         value.
23794         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
23795         as optional.
23796         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
23797         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
23798         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
23799         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
23800         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
23801         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
23802         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
23803         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
23804         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
23805         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
23806         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
23807         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
23808         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
23809         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
23810         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
23811         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
23812         entry.
23813         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
23814         optional.
23815         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
23816         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
23817         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
23818         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
23819         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
23820         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
23821         Likewise.
23822         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
23823         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
23824         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
23825         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
23826         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
23827         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
23828         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
23829         as optional.
23830         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
23831         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
23832         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
23833         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
23834         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
23835         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
23836         specify as optional.
23837         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
23838         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
23839         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
23840         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
23841         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
23842         [XPG3] (NL_LANGMAX): Likewise.
23843         [POSIX || XPG3] (NL_MSGMAX): Likewise.
23844         [POSIX || XPG3] (NL_NMAX): Likewise.
23845         [POSIX || XPG3] (NL_SETMAX): Likewise.
23846         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
23847         [XPG3] (NZERO): Likewise.
23848         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
23849         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
23850         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
23851         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
23852         (REG_ERANGE): Expect.
23853         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
23854         optional-constant.
23855         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
23856         Use (void) in prototype.
23857         [POSIX] (*_t): Allow.
23858         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
23859         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
23860         (WRDE_BADVAL): Expect.
23861
23862         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
23863         expect.
23864         [XPG3 || XPG4] (O_RSYNC): Likewise.
23865         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
23866         Likewise.
23867         [XPG3 || XPG4] (pthread_sigmask): Likewise.
23868         [XPG3 || XPG4] (sigqueue): Likewise.
23869         [XPG3 || XPG4] (sigtimedwait): Likewise.
23870         [XPG3 || XPG4] (sigwaitinfo): Likewise.
23871         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
23872         [XPG3 || XPG4] (vsnprintf): Likewise.
23873         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
23874         Likewise.
23875         [XPG3 || XPG4] (blksize_t): Likewise.
23876         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
23877         Likewise.
23878         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
23879         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
23880         [XPG3 || XPG4] (struct itimerspec): Likewise.
23881         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
23882         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
23883         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
23884         [XPG3 || XPG4] (clockid_t): Likewise.
23885         [XPG3 || XPG4] (timer_t): Likewise.
23886         [XPG3 || XPG4] (clock_getres): Likewise.
23887         [XPG3 || XPG4] (clock_gettime): Likewise.
23888         [XPG3 || XPG4] (clock_settime): Likewise.
23889         [XPG3 || XPG4] (nanosleep): Likewise.
23890         [XPG3 || XPG4] (timer_create): Likewise.
23891         [XPG3 || XPG4] (timer_delete): Likewise.
23892         [XPG3 || XPG4] (timer_gettime): Likewise.
23893         [XPG3 || XPG4] (timer_getoverrun): Likewise.
23894         [XPG3 || XPG4] (timer_settime): Likewise.
23895         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
23896         [XPG3 || XPG4] (getlogin_r): Likewise.
23897         [XPG3 || XPG4] (pread): Likewise.
23898         [XPG3 || XPG4] (pthread_atfork): Likewise.
23899         [XPG3 || XPG4] (pwrite): Likewise.
23900
23901         [BZ #14835]
23902         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
23903         <bits/siginfo.h>.
23904
23905 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
23906
23907         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
23908         finalizing MALLSTREAM.
23909
23910         * sysdeps/mach/hurd/syncfs.c: New file.
23911
23912 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
23913
23914         [BZ #14719]
23915         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
23916         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
23917         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
23918         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
23919         (_nss_dns_gethostbyname4_r): Likewise.
23920         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
23921         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
23922
23923 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
23924
23925         [BZ #13763]
23926         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
23927
23928 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
23929
23930         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
23931         * elf/cache.c (print_entry): Print ",AArch64" for
23932         FLAG_AARCH64_LIB64
23933
23934         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
23935         * elf/cache.c (print_entry): Print ",hard-float" for
23936         FLAG_ARM_LIBHF.
23937
23938 2012-11-18  David S. Miller  <davem@davemloft.net>
23939
23940         With help from Joseph Myers.
23941         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
23942         cutoff to 2**-13.
23943         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
23944         cutoff to 2**-25.
23945         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
23946         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
23947         small.
23948         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
23949         * math/libm-test.inc (y0_test): New tests.
23950         (y1_test): New tests.
23951         * sysdeps/i386/fpu/libm-test-ulps: Update.
23952         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23953         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23954
23955 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
23956
23957         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
23958         64-bit targets.
23959         * configure: Regenerated.
23960
23961 2012-11-17  David S. Miller  <davem@davemloft.net>
23962
23963         [BZ #14811]
23964         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
23965         nonzero exponents with absolute value below 0x1p-128 to +/-
23966         0x1p-128.
23967
23968 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
23969
23970         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
23971
23972         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
23973
23974         * posix/getconf-speclist.c: New file.
23975         * posix/posix-envs.def: Likewise.
23976         * posix/confstr.c (START_ENV_GROUP): New macro.
23977         (END_ENV_GROUP): Likewise.
23978         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
23979         (KNOWN_PRESENT_ENV_STRING): Likewise.
23980         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
23981         (UNKNOWN_ENVIRONMENT): Likewise.
23982         (confstr): Include posix-envs.def instead of handling
23983         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
23984         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
23985         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
23986         (END_ENV_GROUP): Likewise.
23987         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
23988         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
23989         (UNKNOWN_ENVIRONMENT): Likewise.
23990         (__sysconf): Include posix-envs.def instead of handling associated
23991         cases directly here.
23992         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
23993         preprocessing getconf-speclist.c rather than running getconf or
23994         generating empty file.
23995
23996 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
23997
23998         * scripts/check-local-headers.sh: Ignore 'mach' headers.
23999
24000 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24001
24002         [BZ #14672]
24003         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24004
24005 2012-11-16  David S. Miller  <davem@davemloft.net>
24006
24007         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24008         smaller than LDBL_EPSILON/2.0L, just return xm1.
24009
24010 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24011
24012         * elf/tst-array1.c (init): Set constructor priority to 1000.
24013         (fini): Set destructor priority to 1000.
24014         * elf/tst-array2dep.c: Likewise.
24015
24016 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24017
24018         [BZ #11741]
24019         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24020         (_IO_new_file_xsputn): Also return EOF if none of the input
24021         data was written when overflow failed.
24022         * libio/iopadn.c (_IO_padn): Likewise.
24023         * libio/iowpadn.c (_IO_wpadn): Likewise.
24024         * stdio-common/tst-put-error.c: Add copyright notice.
24025         (do_test): Add case for printing padded string.
24026         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24027         _IO_padn returned error.
24028         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24029         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24030         return EOF.
24031
24032 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24033
24034         * libio/libioP.h: Add comment note that the references to C++
24035         bits are now obsolete.
24036
24037 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24038
24039         * math/libm-test.inc (check_complex): Use asprintf.
24040
24041 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24042
24043         * debug/pcprofiledump.c (print_version): Update copyright year.
24044         * malloc/memusagestat.c (print_version): Likewise.
24045
24046 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24047
24048         [BZ #14831]
24049         * elf/Makefile (tests): Add tst-audit8.
24050         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24051         ($(objpfx)tst-audit8.out): New target.
24052         (tst-audit8-ENV): New variable.
24053         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24054         audit if l_reloc_result is NULL.
24055         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24056         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24057         * elf/tst-audit8.c: New file.
24058
24059 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24060
24061         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24062         * misc/Makefile (CFLAGS-select.c): Define.
24063         * posix/Makefile (CFLAGS-pause.c): Define.
24064
24065 2012-11-13  David S. Miller  <davem@davemloft.net>
24066
24067         * crypt/Makefile: Move test targets after toplevel Rules
24068         inclusion.  Grab any necessary sysdep routines when linking.
24069         * crypt/md5.c (md5_process_block): Remove define, we will always
24070         name it __md5_process_block.
24071         (md5_finish_ctx): Update md5_process_block call.
24072         (md5_stream): Likewise.
24073         (md5_process_bytes): Likewise.
24074         (md5_process_block): Rename to __md5_process_block and move to ...
24075         * crypt/md5-block.c: ... here.
24076         * crypt/sha256.c (sha256_process_block): Move to ...
24077         * crypt/sha256-block.c: ... here.
24078         * crypt/sha512.c (sha512_process_block): Move to ...
24079         * crypt/sha512-block.c: ... here.
24080         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24081         path.
24082         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24083         * sysdeps/sparc/sparc64/multiarch/Makefile
24084         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24085         crypt subdir.
24086         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24087         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24088         multiarch changes.
24089         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24090         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24091         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24092         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24093         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24094         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24095         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24096         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24097         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24098         file.
24099         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24100         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24101         file.
24102         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24103
24104 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24105
24106         * timezone/tzselect.ksh: Update from tzcode git revision
24107         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24108         * timezone/zdump.c: Likewise.
24109         * timezone/zic.c: Likewise.
24110         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24111         in TZVERSION setting, not $(PKGVERSION).
24112         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24113         REPORT_BUGS_TO settings.
24114
24115         [BZ #14838]
24116         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24117         macro.
24118
24119 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24120
24121         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24122         detection to immediately after _FP_ROUND().
24123         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24124         bits are 0.
24125
24126 2012-11-11  David S. Miller  <davem@davemloft.net>
24127
24128         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24129         inttypes.h
24130         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24131         __close rather than their public counterparts.
24132
24133 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24134
24135         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24136         file.
24137         [UNIX98] (sem_timedwait): Do not expect.
24138         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24139         [XPG4 || UNIX98] (sockatmark): Do not expect.
24140         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24141         (clock_getcpuclockid): Do not expect.
24142         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24143         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24144         Do not expect.
24145         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24146         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24147         [UNIX98] (vwscanf): Likewise.
24148         [UNIX98] (vswscanf): Likewise.
24149
24150 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24151
24152         * timezone/version.h: Remove file.
24153         * timezone/README: Do not refer to version.h.
24154         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24155         $(objpfx)version.h.
24156         ($(objpfx)zdump.o): Likewise.
24157         ($(objpfx)version.h): New target.
24158
24159         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24160         2012i.
24161         * timezone/README: Don't mention modification to tzselect.ksh.
24162         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24163         work on unmodified tzselect.ksh.  Substitute version numbers in
24164         tzselect.ksh.
24165
24166         * Makefile (format-me): Remove.
24167         (INSTALL): Adjust indentation.  Use commands directly instead of
24168         using $(format-me).
24169
24170         * aclocal.m4 (ACX_PKGVERSION): New macro.
24171         (ACX_BUGURL): Likewise.
24172         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24173         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24174         (REPORT_BUGS_TO): Likewise.
24175         * configure: Regenerated.
24176         * config.h.in (PKGVERSION): New macro.
24177         (REPORT_BUGS_TO): Likewise.
24178         * config.make.in (PKGVERSION): New variable.
24179         (PKGVERSION_TEXI): Likewise.
24180         (REPORT_BUGS_TO): Likewise.
24181         (REPORT_BUGS_TEXI): Likewise.
24182         * Makefile (format-me): Use -I$(common-objpfx)manual.
24183         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24184         ($(common-objpfx)manual/%): New target.
24185         (manual/%): Remove target.
24186         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24187         (print_version): Use PKGVERSION.
24188         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24189         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24190         and REPORT_BUGS_TO.
24191         ($(objpfx)xtrace): Likewise.
24192         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24193         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24194         (print_version): Use PKGVERSION.
24195         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24196         (do_version): Use PKGVERSION.
24197         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24198         REPORT_BUGS_TO.
24199         (common-ldd-rewrite): Likewise.
24200         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24201         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24202         (print_version): Use PKGVERSION.
24203         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24204         * elf/pldd.c (argp_program_bug_address): Remove variable.
24205         (more_help): New function.
24206         (argp): Use more_help.
24207         (print_version): Use PKGVERSION.
24208         * elf/sln.c (main): Use PKGVERSION.
24209         (usage): Use REPORT_BUGS_TO.
24210         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24211         (top level): Use PKGVERSION.
24212         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24213         (print_version): Use PKGVERSION.
24214         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24215         (print_version): Use PKGVERSION.
24216         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24217         (print_version): Use PKGVERSION.
24218         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24219         (print_version): Use PKGVERSION.
24220         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24221         (print_version): Use PKGVERSION.
24222         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24223         (print_version): Use PKGVERSION.
24224         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24225         and BUGURL.
24226         ($(objpfx)memusage): Likewise.
24227         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
24228         (do_version): Use PKGVERSION.
24229         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
24230         (print_version): Use PKGVERSION.
24231         * malloc/mtrace.pl ($PACKAGE): Remove variable.
24232         ($PKGVERSION): New variable.
24233         ($REPORT_BUGS_TO): Likewise.
24234         (usage): Use $REPORT_BUGS_TO.
24235         (top level): Use $PKGVERSION.
24236         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
24237         ($(objpfx)pkgvers.texi): New rule.
24238         ($(objpfx)stamp-pkgvers): Likewise.
24239         * manual/install.texi: Include pkgvers.texi.
24240         (--with-pkgversion): Document new configure option.
24241         (--with-bugurl): Likewise.
24242         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
24243         than necessarily for this particular distribution.  Use
24244         REPORT_BUGS_TO for where to report bugs.
24245         * INSTALL: Regenerated.
24246         * manual/libc.texinfo: Include pkgvers.texi.
24247         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
24248         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
24249         (print_version): Use PKGVERSION.
24250         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
24251         (print_version): Use PKGVERSION.
24252         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
24253         (print_version): Use PKGVERSION.
24254         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
24255         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
24256         macro.
24257         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
24258         (print_version): Use PKGVERSION.
24259         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
24260         (print_version): Use PKGVERSION.
24261         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
24262         and PKGVERSION.
24263
24264         * timezone/checktab.awk: Update from tzcode 2012i.
24265         * timezone/ialloc.c: Likewise.
24266         * timezone/private.h: Likewise.
24267         * timezone/scheck.c: Likewise.
24268         * timezone/tzfile.h: Likewise.
24269         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
24270         (TZVERSION): Hardcode tzcode version number.
24271         * timezone/zdump.c: Update from tzcode 2012i.
24272         * timezone/zic.c: Likewise.
24273         * timezone/version.h: New file.
24274         * timezone/README: Describe version.h.  Update upstream location.
24275
24276         [BZ #14824]
24277         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
24278         (mktemp): Enable declaration.
24279         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
24280         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
24281         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
24282         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
24283         Likewise.
24284         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
24285         Likewise.
24286         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
24287         Likewise.
24288         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
24289         Likewise.
24290         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
24291         Likewise.
24292         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
24293         Likewise.
24294
24295         [BZ #14821]
24296         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
24297         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
24298         for copies of such integer values.
24299         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24300         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24301
24302 2012-11-09  Andreas Jaeger  <aj@suse.de>
24303
24304         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
24305         definitions and declarations that are provided by
24306         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24307
24308 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24309
24310         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
24311         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
24312         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
24313         definition.
24314
24315 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24316
24317         * elf/elf.h: Update comment before AArch64 relocations.
24318
24319 2012-11-07  David S. Miller  <davem@davemloft.net>
24320
24321         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
24322         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24323         (__start_context): Declare.
24324         (__makecontext_ret): Delete.
24325         (__makecontext): Hook up __start_context instead of
24326         __makecontext_ret.
24327         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
24328         (sysdep_routines): Add __start_context when in stdlib.
24329
24330 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24331
24332         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
24333         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
24334         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
24335         hardcoded "nm".
24336         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
24337         (READELF): New variable.  Use it instead of hardcoded "readelf".
24338
24339 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24340
24341         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
24342         * sysdeps/x86/Makefile: Here.
24343         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
24344         * sysdeps/x86/tst-xmmymm.sh: This.
24345
24346 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24347
24348         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
24349         expectations.
24350         [UNIX98] (pthread_barrier_t): Do not expect.
24351         [UNIX98] (pthread_barrierattr_t): Likewise.
24352         [UNIX98] (pthread_spinlock_t): Likewise.
24353         [UNIX98] (pthread_barrier_destroy): Likewise.
24354         [UNIX98] (pthread_barrier_init): Likewise.
24355         [UNIX98] (pthread_barrier_wait): Likewise.
24356         [UNIX98] (pthread_barrierattr_destroy): Likewise.
24357         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
24358         [UNIX98] (pthread_barrierattr_init): Likewise.
24359         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
24360         [UNIX98] (pthread_getcpuclockid): Likewise.
24361         [UNIX98] (pthread_mutex_timedlock): Likewise.
24362         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
24363         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
24364         [UNIX98] (pthread_sigmask): Likewise.
24365         [UNIX98] (pthread_spin_destroy): Likewise.
24366         [UNIX98] (pthread_spin_init): Likewise.
24367         [UNIX98] (pthread_spin_lock): Likewise.
24368         [UNIX98] (pthread_spin_trylock): Likewise.
24369         [UNIX98] (pthread_spin_unlock): Likewise.
24370         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
24371         Do not expect.
24372         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
24373         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
24374         [XPG3 || XPG4] (pthread_cond_t): Likewise.
24375         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
24376         [XPG3 || XPG4] (pthread_key_t): Likewise.
24377         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
24378         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
24379         [XPG3 || XPG4] (pthread_once_t): Likewise.
24380         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
24381         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
24382         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
24383         [XPG3 || XPG4] (pthread_t): Likewise.
24384
24385         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
24386         not expect.
24387         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
24388
24389         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
24390         Change function return type to int.
24391
24392         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
24393         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
24394         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
24395         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
24396         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
24397         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
24398         [!POSIX] (posix_madvise): Likewise.
24399         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
24400         && !UNIX98].
24401         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
24402         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
24403         (mode_t): Likewise.
24404         (posix_mem_offset): Likewise.
24405         (posix_typed_mem_get_info): Likewise.
24406         (posix_typed_mem_open): Likewise.
24407
24408         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
24409         Change condition to [XOPEN2K8].
24410
24411         * conform/conformtest.pl: Preprocess allow-header data with -x c
24412         instead of from stdin.
24413         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
24414         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
24415         [C99-based standards] (cerfc): Likewise.
24416         [C99-based standards] (cexp2): Likewise.
24417         [C99-based standards] (cexpm1): Likewise.
24418         [C99-based standards] (clog10): Likewise.
24419         [C99-based standards] (clog1p): Likewise.
24420         [C99-based standards] (clog2): Likewise.
24421         [C99-based standards] (clgamma): Likewise.
24422         [C99-based standards] (ctgamma): Likewise.
24423         [C99-based standards] (cerff): Likewise.
24424         [C99-based standards] (cerfcf): Likewise.
24425         [C99-based standards] (cexp2f): Likewise.
24426         [C99-based standards] (cexpm1f): Likewise.
24427         [C99-based standards] (clog10f): Likewise.
24428         [C99-based standards] (clog1pf): Likewise.
24429         [C99-based standards] (clog2f): Likewise.
24430         [C99-based standards] (clgammaf): Likewise.
24431         [C99-based standards] (ctgammaf): Likewise.
24432         [C99-based standards] (cerfl): Likewise.
24433         [C99-based standards] (cerfcl): Likewise.
24434         [C99-based standards] (cexp2l): Likewise.
24435         [C99-based standards] (cexpm1l): Likewise.
24436         [C99-based standards] (clog10l): Likewise.
24437         [C99-based standards] (clog1pl): Likewise.
24438         [C99-based standards] (clog2l): Likewise.
24439         [C99-based standards] (clgammal): Likewise.
24440         [C99-based standards] (ctgammal): Likewise.
24441         * conform/data/inttypes.h-data [C99-based standards]: Include
24442         stdint.h-data.  Remove all expectations for stdint.h contents.
24443         [C99-based standards] (PRI*): Do not allow.
24444         [C99-based standards] (SCN*): Likewise.
24445         [C99-based standards] (*_t): Likewise.
24446         [C99-based-standards] (PRId8): Expect macro.
24447         [C99-based-standards] (PRIi8): Likewise.
24448         [C99-based-standards] (PRIo8): Likewise.
24449         [C99-based-standards] (PRIu8): Likewise.
24450         [C99-based-standards] (PRIx8): Likewise.
24451         [C99-based-standards] (PRIX8): Likewise.
24452         [C99-based-standards] (SCNd8): Likewise.
24453         [C99-based-standards] (SCNi8): Likewise.
24454         [C99-based-standards] (SCNo8): Likewise.
24455         [C99-based-standards] (SCNu8): Likewise.
24456         [C99-based-standards] (SCNx8): Likewise.
24457         [C99-based-standards] (PRIdLEAST8): Likewise.
24458         [C99-based-standards] (PRIiLEAST8): Likewise.
24459         [C99-based-standards] (PRIoLEAST8): Likewise.
24460         [C99-based-standards] (PRIuLEAST8): Likewise.
24461         [C99-based-standards] (PRIxLEAST8): Likewise.
24462         [C99-based-standards] (PRIXLEAST8): Likewise.
24463         [C99-based-standards] (SCNdLEAST8): Likewise.
24464         [C99-based-standards] (SCNiLEAST8): Likewise.
24465         [C99-based-standards] (SCNoLEAST8): Likewise.
24466         [C99-based-standards] (SCNuLEAST8): Likewise.
24467         [C99-based-standards] (SCNxLEAST8): Likewise.
24468         [C99-based-standards] (PRIdFAST8): Likewise.
24469         [C99-based-standards] (PRIiFAST8): Likewise.
24470         [C99-based-standards] (PRIoFAST8): Likewise.
24471         [C99-based-standards] (PRIuFAST8): Likewise.
24472         [C99-based-standards] (PRIxFAST8): Likewise.
24473         [C99-based-standards] (PRIXFAST8): Likewise.
24474         [C99-based-standards] (SCNdFAST8): Likewise.
24475         [C99-based-standards] (SCNiFAST8): Likewise.
24476         [C99-based-standards] (SCNoFAST8): Likewise.
24477         [C99-based-standards] (SCNuFAST8): Likewise.
24478         [C99-based-standards] (SCNxFAST8): Likewise.
24479         [C99-based-standards] (PRId16): Likewise.
24480         [C99-based-standards] (PRIi16): Likewise.
24481         [C99-based-standards] (PRIo16): Likewise.
24482         [C99-based-standards] (PRIu16): Likewise.
24483         [C99-based-standards] (PRIx16): Likewise.
24484         [C99-based-standards] (PRIX16): Likewise.
24485         [C99-based-standards] (SCNd16): Likewise.
24486         [C99-based-standards] (SCNi16): Likewise.
24487         [C99-based-standards] (SCNo16): Likewise.
24488         [C99-based-standards] (SCNu16): Likewise.
24489         [C99-based-standards] (SCNx16): Likewise.
24490         [C99-based-standards] (PRIdLEAST16): Likewise.
24491         [C99-based-standards] (PRIiLEAST16): Likewise.
24492         [C99-based-standards] (PRIoLEAST16): Likewise.
24493         [C99-based-standards] (PRIuLEAST16): Likewise.
24494         [C99-based-standards] (PRIxLEAST16): Likewise.
24495         [C99-based-standards] (PRIXLEAST16): Likewise.
24496         [C99-based-standards] (SCNdLEAST16): Likewise.
24497         [C99-based-standards] (SCNiLEAST16): Likewise.
24498         [C99-based-standards] (SCNoLEAST16): Likewise.
24499         [C99-based-standards] (SCNuLEAST16): Likewise.
24500         [C99-based-standards] (SCNxLEAST16): Likewise.
24501         [C99-based-standards] (PRIdFAST16): Likewise.
24502         [C99-based-standards] (PRIiFAST16): Likewise.
24503         [C99-based-standards] (PRIoFAST16): Likewise.
24504         [C99-based-standards] (PRIuFAST16): Likewise.
24505         [C99-based-standards] (PRIxFAST16): Likewise.
24506         [C99-based-standards] (PRIXFAST16): Likewise.
24507         [C99-based-standards] (SCNdFAST16): Likewise.
24508         [C99-based-standards] (SCNiFAST16): Likewise.
24509         [C99-based-standards] (SCNoFAST16): Likewise.
24510         [C99-based-standards] (SCNuFAST16): Likewise.
24511         [C99-based-standards] (SCNxFAST16): Likewise.
24512         [C99-based-standards] (PRId32): Likewise.
24513         [C99-based-standards] (PRIi32): Likewise.
24514         [C99-based-standards] (PRIo32): Likewise.
24515         [C99-based-standards] (PRIu32): Likewise.
24516         [C99-based-standards] (PRIx32): Likewise.
24517         [C99-based-standards] (PRIX32): Likewise.
24518         [C99-based-standards] (SCNd32): Likewise.
24519         [C99-based-standards] (SCNi32): Likewise.
24520         [C99-based-standards] (SCNo32): Likewise.
24521         [C99-based-standards] (SCNu32): Likewise.
24522         [C99-based-standards] (SCNx32): Likewise.
24523         [C99-based-standards] (PRIdLEAST32): Likewise.
24524         [C99-based-standards] (PRIiLEAST32): Likewise.
24525         [C99-based-standards] (PRIoLEAST32): Likewise.
24526         [C99-based-standards] (PRIuLEAST32): Likewise.
24527         [C99-based-standards] (PRIxLEAST32): Likewise.
24528         [C99-based-standards] (PRIXLEAST32): Likewise.
24529         [C99-based-standards] (SCNdLEAST32): Likewise.
24530         [C99-based-standards] (SCNiLEAST32): Likewise.
24531         [C99-based-standards] (SCNoLEAST32): Likewise.
24532         [C99-based-standards] (SCNuLEAST32): Likewise.
24533         [C99-based-standards] (SCNxLEAST32): Likewise.
24534         [C99-based-standards] (PRIdFAST32): Likewise.
24535         [C99-based-standards] (PRIiFAST32): Likewise.
24536         [C99-based-standards] (PRIoFAST32): Likewise.
24537         [C99-based-standards] (PRIuFAST32): Likewise.
24538         [C99-based-standards] (PRIxFAST32): Likewise.
24539         [C99-based-standards] (PRIXFAST32): Likewise.
24540         [C99-based-standards] (SCNdFAST32): Likewise.
24541         [C99-based-standards] (SCNiFAST32): Likewise.
24542         [C99-based-standards] (SCNoFAST32): Likewise.
24543         [C99-based-standards] (SCNuFAST32): Likewise.
24544         [C99-based-standards] (SCNxFAST32): Likewise.
24545         [C99-based-standards] (PRId64): Likewise.
24546         [C99-based-standards] (PRIi64): Likewise.
24547         [C99-based-standards] (PRIo64): Likewise.
24548         [C99-based-standards] (PRIu64): Likewise.
24549         [C99-based-standards] (PRIx64): Likewise.
24550         [C99-based-standards] (PRIX64): Likewise.
24551         [C99-based-standards] (SCNd64): Likewise.
24552         [C99-based-standards] (SCNi64): Likewise.
24553         [C99-based-standards] (SCNo64): Likewise.
24554         [C99-based-standards] (SCNu64): Likewise.
24555         [C99-based-standards] (SCNx64): Likewise.
24556         [C99-based-standards] (PRIdLEAST64): Likewise.
24557         [C99-based-standards] (PRIiLEAST64): Likewise.
24558         [C99-based-standards] (PRIoLEAST64): Likewise.
24559         [C99-based-standards] (PRIuLEAST64): Likewise.
24560         [C99-based-standards] (PRIxLEAST64): Likewise.
24561         [C99-based-standards] (PRIXLEAST64): Likewise.
24562         [C99-based-standards] (SCNdLEAST64): Likewise.
24563         [C99-based-standards] (SCNiLEAST64): Likewise.
24564         [C99-based-standards] (SCNoLEAST64): Likewise.
24565         [C99-based-standards] (SCNuLEAST64): Likewise.
24566         [C99-based-standards] (SCNxLEAST64): Likewise.
24567         [C99-based-standards] (PRIdFAST64): Likewise.
24568         [C99-based-standards] (PRIiFAST64): Likewise.
24569         [C99-based-standards] (PRIoFAST64): Likewise.
24570         [C99-based-standards] (PRIuFAST64): Likewise.
24571         [C99-based-standards] (PRIxFAST64): Likewise.
24572         [C99-based-standards] (PRIXFAST64): Likewise.
24573         [C99-based-standards] (SCNdFAST64): Likewise.
24574         [C99-based-standards] (SCNiFAST64): Likewise.
24575         [C99-based-standards] (SCNoFAST64): Likewise.
24576         [C99-based-standards] (SCNuFAST64): Likewise.
24577         [C99-based-standards] (SCNxFAST64): Likewise.
24578         [C99-based-standards] (PRIdMAX): Likewise.
24579         [C99-based-standards] (PRIiMAX): Likewise.
24580         [C99-based-standards] (PRIoMAX): Likewise.
24581         [C99-based-standards] (PRIuMAX): Likewise.
24582         [C99-based-standards] (PRIxMAX): Likewise.
24583         [C99-based-standards] (PRIXMAX): Likewise.
24584         [C99-based-standards] (SCNdMAX): Likewise.
24585         [C99-based-standards] (SCNiMAX): Likewise.
24586         [C99-based-standards] (SCNoMAX): Likewise.
24587         [C99-based-standards] (SCNuMAX): Likewise.
24588         [C99-based-standards] (SCNxMAX): Likewise.
24589         [C99-based-standards] (PRIdPTR): Likewise.
24590         [C99-based-standards] (PRIiPTR): Likewise.
24591         [C99-based-standards] (PRIoPTR): Likewise.
24592         [C99-based-standards] (PRIuPTR): Likewise.
24593         [C99-based-standards] (PRIxPTR): Likewise.
24594         [C99-based-standards] (PRIXPTR): Likewise.
24595         [C99-based-standards] (SCNdPTR): Likewise.
24596         [C99-based-standards] (SCNiPTR): Likewise.
24597         [C99-based-standards] (SCNoPTR): Likewise.
24598         [C99-based-standards] (SCNuPTR): Likewise.
24599         [C99-based-standards] (SCNxPTR): Likewise.
24600         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
24601         allow.
24602         * conform/data/stdint.h-data: Update comments to clarify
24603         requirements.
24604         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
24605         type.
24606         [C99-based standards] (INT8_MAX): Likewise.
24607         [C99-based standards] (INT16_MIN): Likewise.
24608         [C99-based standards] (INT16_MAX): Likewise.
24609         [C99-based standards] (INT32_MIN): Likewise.
24610         [C99-based standards] (INT32_MAX): Likewise.
24611         [C99-based standards] (INT64_MIN): Likewise.
24612         [C99-based standards] (INT64_MAX): Likewise.
24613         [C99-based standards] (UINT8_MAX): Likewise.
24614         [C99-based standards] (UINT16_MAX): Likewise.
24615         [C99-based standards] (UINT32_MAX): Likewise.
24616         [C99-based standards] (UINT64_MAX): Likewise.
24617         [C99-based standards] (INT_LEAST8_MIN): Likewise.
24618         [C99-based standards] (INT_LEAST8_MAX): Likewise.
24619         [C99-based standards] (INT_LEAST16_MIN): Likewise.
24620         [C99-based standards] (INT_LEAST16_MAX): Likewise.
24621         [C99-based standards] (INT_LEAST32_MIN): Likewise.
24622         [C99-based standards] (INT_LEAST32_MAX): Likewise.
24623         [C99-based standards] (INT_LEAST64_MIN): Likewise.
24624         [C99-based standards] (INT_LEAST64_MAX): Likewise.
24625         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
24626         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
24627         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
24628         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
24629         [C99-based standards] (INT_FAST8_MIN): Likewise.
24630         [C99-based standards] (INT_FAST8_MAX): Likewise.
24631         [C99-based standards] (INT_FAST16_MIN): Likewise.
24632         [C99-based standards] (INT_FAST16_MAX): Likewise.
24633         [C99-based standards] (INT_FAST32_MIN): Likewise.
24634         [C99-based standards] (INT_FAST32_MAX): Likewise.
24635         [C99-based standards] (INT_FAST64_MIN): Likewise.
24636         [C99-based standards] (INT_FAST64_MAX): Likewise.
24637         [C99-based standards] (UINT_FAST8_MAX): Likewise.
24638         [C99-based standards] (UINT_FAST16_MAX): Likewise.
24639         [C99-based standards] (UINT_FAST32_MAX): Likewise.
24640         [C99-based standards] (UINT_FAST64_MAX): Likewise.
24641         [C99-based standards] (INTPTR_MIN): Likewise.
24642         [C99-based standards] (INTPTR_MAX): Likewise.
24643         [C99-based standards] (UINTPTR_MAX): Likewise.
24644         [C99-based standards] (INTMAX_MIN): Likewise.
24645         [C99-based standards] (INTMAX_MAX): Likewise.
24646         [C99-based standards] (UINTMAX_MAX): Likewise.
24647         [C99-based standards] (PTRDIFF_MIN): Likewise.
24648         [C99-based standards] (PTRDIFF_MAX): Likewise.
24649         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
24650         [C99-based standards] (SIZE_MAX): Likewise.
24651         [C99-based standards] (WCHAR_MAX): Likewise.
24652         [C99-based standards] (WINT_MAX): Likewise.
24653         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
24654         constraint on value.
24655         [C99-based standards] (WCHAR_MIN): Likewise.
24656         [C99-based standards] (WINT_MIN): Likewise.
24657         [C99-based standards] (*_t): Allow.
24658         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
24659         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
24660         Include math.h-data and complex.h-data.  Remove all expectations
24661         of math.h and complex.h contents.
24662         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
24663         at end of line.
24664         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
24665         (struct tm): Expect tag.
24666         [C99-based-standards] (wcstof): Expect function.
24667         [C99-based-standards] (wcstold): Likewise.
24668         [C99-based-standards] (wcstoll): Likewise.
24669         [C99-based-standards] (wcstoull): Likewise.
24670         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
24671         macro-int-constant.  Specify type.
24672         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
24673         constraint on value.
24674         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
24675         Specify type.
24676         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
24677         Specify value.
24678         [ISO C standards]: Do not allow headers.
24679         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
24680         wcs[abcdefghijklmnopqrstuvwxyz]*.
24681         [ISO C standards] (*_t): Do not allow.
24682         * conform/data/wctype.h-data [C99-based standards] (iswblank):
24683         Expect function.
24684         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
24685         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
24686         Specify type.
24687         [ISO C standards]: Do not allow headers.
24688         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
24689         is[abcdefghijklmnopqrstuvwxyz]*.
24690         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
24691         to[abcdefghijklmnopqrstuvwxyz]*.
24692         [ISO C standards] (*_t): Do not allow.
24693         * conform/data/stdalign.h-data: New file.
24694         * conform/data/stdbool.h-data: Likewise.
24695         * conform/data/stdnoreturn.h-data: Likewise.
24696
24697 2012-11-07  Roland McGrath  <roland@hack.frob.com>
24698
24699         [BZ #14815]
24700         * manual/filesys.texi (Directory Entries): Typo fix.
24701         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
24702
24703 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24704
24705         * elf/elf.h (EM_AARCH64): New macro.
24706         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
24707         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
24708         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
24709         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
24710         (R_AARCH64_TLSDESC): Likewise.
24711         (NT_ARM_TLS): Likewise.
24712         (NT_ARM_HW_BREAK): Likewise.
24713         (NT_ARM_HW_WATCH): Likewise.
24714
24715 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24716
24717         [BZ #14811]
24718         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
24719         (__ieee754_powl): Saturate nonzero exponents with absolute value
24720         below 0x1p-79 to +/- 0x1p-79.
24721         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
24722         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
24723         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
24724         nonzero exponents with absolute value below 0x1p-32 to +/-
24725         0x1p-32.
24726         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
24727         (__ieee754_powl): Saturate nonzero exponents with absolute value
24728         below 0x1p-79 to +/- 0x1p-79.
24729         * math/libm-test.inc (pow_test): Add more tests.
24730
24731 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24732
24733         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
24734         _dl_s390_cap_flags with kernel. Increase string length.
24735         (_dl_s390_platforms): Add z196 and zEC12.
24736
24737 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24738
24739         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
24740         Change XOPEN21K to XOPEN2K.
24741
24742 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
24743
24744         * string/memmove.c: Use memcpy when possible.
24745
24746 2012-11-06  Andreas Jaeger  <aj@suse.de>
24747
24748         * po/eo.po: Update from translation team.
24749
24750 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
24751
24752         [BZ #14793]
24753         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
24754         exponent and small x and y exponents, scale x or y up.  Increase
24755         by 2 the exponent used in scaling up.
24756         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24757         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24758         * math/libm-test.inc (fma_test): Add more tests.
24759         (fma_test_towardzero): Likewise.
24760         (fma_test_downward): Likewise.
24761         (fma_test_upward): Likewise.
24762
24763 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
24764
24765         [BZ #14805]
24766         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
24767         fenv_t *.
24768
24769         [BZ #14801]
24770         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
24771         namespace for names of struct fields.
24772         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
24773         fenv_t fields.
24774         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
24775         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
24776
24777 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24778
24779         [BZ #3665]
24780         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
24781
24782 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
24783
24784         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
24785         PTR_DEMANGLE.
24786
24787         [BZ #5246]
24788         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
24789         PTR_DEMANGLE.
24790
24791 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
24792
24793         [BZ #14797]
24794         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
24795         definitely overflow as x * y not x * y + z.
24796         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24797         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24798         * math/libm-test.inc (fma_test): Add more tests.
24799         (fma_test_towardzero): Likewise.
24800         (fma_test_downward): Likewise.
24801         (fma_test_upward): Likewise.
24802
24803 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
24804
24805         [BZ #157]
24806
24807         * include/stub-tag.h: Remove file.
24808         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
24809         '#include' of it.
24810         * manual/maint.texi (Porting): Don't reference it.
24811         * Makerules ($(objpfx)stubs): Likewise.
24812         * dirent/closedir.c: Don't include <stub-tag.h>.
24813         * dirent/dirfd.c: Likewise.
24814         * dirent/fdopendir.c: Likewise.
24815         * dirent/getdents.c: Likewise.
24816         * dirent/getdents64.c: Likewise.
24817         * dirent/opendir.c: Likewise.
24818         * dirent/readdir.c: Likewise.
24819         * dirent/readdir64.c: Likewise.
24820         * dirent/readdir64_r.c: Likewise.
24821         * dirent/readdir_r.c: Likewise.
24822         * dirent/rewinddir.c: Likewise.
24823         * dirent/seekdir.c: Likewise.
24824         * dirent/telldir.c: Likewise.
24825         * gmon/profil.c: Likewise.
24826         * grp/setgroups.c: Likewise.
24827         * inet/if_index.c: Likewise.
24828         * io/access.c: Likewise.
24829         * io/chdir.c: Likewise.
24830         * io/chmod.c: Likewise.
24831         * io/chown.c: Likewise.
24832         * io/close.c: Likewise.
24833         * io/dup.c: Likewise.
24834         * io/dup2.c: Likewise.
24835         * io/dup3.c: Likewise.
24836         * io/euidaccess.c: Likewise.
24837         * io/faccessat.c: Likewise.
24838         * io/fchdir.c: Likewise.
24839         * io/fchmod.c: Likewise.
24840         * io/fchmodat.c: Likewise.
24841         * io/fchown.c: Likewise.
24842         * io/fchownat.c: Likewise.
24843         * io/fcntl.c: Likewise.
24844         * io/flock.c: Likewise.
24845         * io/fstatfs.c: Likewise.
24846         * io/fstatfs64.c: Likewise.
24847         * io/fstatvfs.c: Likewise.
24848         * io/fstatvfs64.c: Likewise.
24849         * io/futimens.c: Likewise.
24850         * io/fxstat.c: Likewise.
24851         * io/fxstat64.c: Likewise.
24852         * io/fxstatat.c: Likewise.
24853         * io/fxstatat64.c: Likewise.
24854         * io/getcwd.c: Likewise.
24855         * io/isatty.c: Likewise.
24856         * io/lchmod.c: Likewise.
24857         * io/lchown.c: Likewise.
24858         * io/link.c: Likewise.
24859         * io/linkat.c: Likewise.
24860         * io/lseek.c: Likewise.
24861         * io/lseek64.c: Likewise.
24862         * io/lxstat64.c: Likewise.
24863         * io/mkdir.c: Likewise.
24864         * io/mkdirat.c: Likewise.
24865         * io/mkfifo.c: Likewise.
24866         * io/mkfifoat.c: Likewise.
24867         * io/open.c: Likewise.
24868         * io/open64.c: Likewise.
24869         * io/openat.c: Likewise.
24870         * io/openat64.c: Likewise.
24871         * io/pipe.c: Likewise.
24872         * io/pipe2.c: Likewise.
24873         * io/poll.c: Likewise.
24874         * io/posix_fadvise.c: Likewise.
24875         * io/posix_fadvise64.c: Likewise.
24876         * io/posix_fallocate.c: Likewise.
24877         * io/posix_fallocate64.c: Likewise.
24878         * io/read.c: Likewise.
24879         * io/readlink.c: Likewise.
24880         * io/readlinkat.c: Likewise.
24881         * io/rmdir.c: Likewise.
24882         * io/sendfile.c: Likewise.
24883         * io/sendfile64.c: Likewise.
24884         * io/statfs.c: Likewise.
24885         * io/statfs64.c: Likewise.
24886         * io/statvfs.c: Likewise.
24887         * io/statvfs64.c: Likewise.
24888         * io/symlink.c: Likewise.
24889         * io/symlinkat.c: Likewise.
24890         * io/ttyname.c: Likewise.
24891         * io/ttyname_r.c: Likewise.
24892         * io/umask.c: Likewise.
24893         * io/unlink.c: Likewise.
24894         * io/unlinkat.c: Likewise.
24895         * io/utime.c: Likewise.
24896         * io/utimensat.c: Likewise.
24897         * io/write.c: Likewise.
24898         * io/xmknod.c: Likewise.
24899         * io/xmknodat.c: Likewise.
24900         * io/xstat.c: Likewise.
24901         * io/xstat64.c: Likewise.
24902         * login/getpt.c: Likewise.
24903         * login/grantpt.c: Likewise.
24904         * login/unlockpt.c: Likewise.
24905         * math/e_acoshl.c: Likewise.
24906         * math/e_acosl.c: Likewise.
24907         * math/e_asinl.c: Likewise.
24908         * math/e_atan2l.c: Likewise.
24909         * math/e_atanhl.c: Likewise.
24910         * math/e_coshl.c: Likewise.
24911         * math/e_expl.c: Likewise.
24912         * math/e_fmodl.c: Likewise.
24913         * math/e_gammal_r.c: Likewise.
24914         * math/e_hypotl.c: Likewise.
24915         * math/e_j0l.c: Likewise.
24916         * math/e_j1l.c: Likewise.
24917         * math/e_jnl.c: Likewise.
24918         * math/e_lgammal_r.c: Likewise.
24919         * math/e_log10l.c: Likewise.
24920         * math/e_log2l.c: Likewise.
24921         * math/e_logl.c: Likewise.
24922         * math/e_powl.c: Likewise.
24923         * math/e_rem_pio2l.c: Likewise.
24924         * math/e_sinhl.c: Likewise.
24925         * math/e_sqrtl.c: Likewise.
24926         * math/fclrexcpt.c: Likewise.
24927         * math/fedisblxcpt.c: Likewise.
24928         * math/feenablxcpt.c: Likewise.
24929         * math/fegetenv.c: Likewise.
24930         * math/fegetexcept.c: Likewise.
24931         * math/fegetround.c: Likewise.
24932         * math/feholdexcpt.c: Likewise.
24933         * math/fesetenv.c: Likewise.
24934         * math/fesetround.c: Likewise.
24935         * math/feupdateenv.c: Likewise.
24936         * math/fgetexcptflg.c: Likewise.
24937         * math/fraiseexcpt.c: Likewise.
24938         * math/fsetexcptflg.c: Likewise.
24939         * math/ftestexcept.c: Likewise.
24940         * math/k_cosl.c: Likewise.
24941         * math/k_rem_pio2l.c: Likewise.
24942         * math/k_sinl.c: Likewise.
24943         * math/k_tanl.c: Likewise.
24944         * math/s_asinhl.c: Likewise.
24945         * math/s_atanl.c: Likewise.
24946         * math/s_cbrtl.c: Likewise.
24947         * math/s_erfl.c: Likewise.
24948         * math/s_expm1l.c: Likewise.
24949         * math/s_log1pl.c: Likewise.
24950         * math/s_tanhl.c: Likewise.
24951         * misc/acct.c: Likewise.
24952         * misc/brk.c: Likewise.
24953         * misc/chflags.c: Likewise.
24954         * misc/chroot.c: Likewise.
24955         * misc/fchflags.c: Likewise.
24956         * misc/fgetxattr.c: Likewise.
24957         * misc/flistxattr.c: Likewise.
24958         * misc/fremovexattr.c: Likewise.
24959         * misc/fsetxattr.c: Likewise.
24960         * misc/fsync.c: Likewise.
24961         * misc/ftruncate.c: Likewise.
24962         * misc/futimes.c: Likewise.
24963         * misc/futimesat.c: Likewise.
24964         * misc/getdomain.c: Likewise.
24965         * misc/getdtsz.c: Likewise.
24966         * misc/gethostid.c: Likewise.
24967         * misc/gethostname.c: Likewise.
24968         * misc/getloadavg.c: Likewise.
24969         * misc/getpagesize.c: Likewise.
24970         * misc/getsysstats.c: Likewise.
24971         * misc/getxattr.c: Likewise.
24972         * misc/gtty.c: Likewise.
24973         * misc/ioctl.c: Likewise.
24974         * misc/lgetxattr.c: Likewise.
24975         * misc/listxattr.c: Likewise.
24976         * misc/llistxattr.c: Likewise.
24977         * misc/lremovexattr.c: Likewise.
24978         * misc/lsetxattr.c: Likewise.
24979         * misc/lutimes.c: Likewise.
24980         * misc/madvise.c: Likewise.
24981         * misc/mincore.c: Likewise.
24982         * misc/mlock.c: Likewise.
24983         * misc/mlockall.c: Likewise.
24984         * misc/mmap.c: Likewise.
24985         * misc/mprotect.c: Likewise.
24986         * misc/msync.c: Likewise.
24987         * misc/munlock.c: Likewise.
24988         * misc/munlockall.c: Likewise.
24989         * misc/munmap.c: Likewise.
24990         * misc/preadv.c: Likewise.
24991         * misc/preadv64.c: Likewise.
24992         * misc/ptrace.c: Likewise.
24993         * misc/pwritev.c: Likewise.
24994         * misc/pwritev64.c: Likewise.
24995         * misc/readv.c: Likewise.
24996         * misc/reboot.c: Likewise.
24997         * misc/remap_file_pages.c: Likewise.
24998         * misc/removexattr.c: Likewise.
24999         * misc/revoke.c: Likewise.
25000         * misc/select.c: Likewise.
25001         * misc/setdomain.c: Likewise.
25002         * misc/setegid.c: Likewise.
25003         * misc/seteuid.c: Likewise.
25004         * misc/sethostid.c: Likewise.
25005         * misc/sethostname.c: Likewise.
25006         * misc/setregid.c: Likewise.
25007         * misc/setreuid.c: Likewise.
25008         * misc/setxattr.c: Likewise.
25009         * misc/sstk.c: Likewise.
25010         * misc/stty.c: Likewise.
25011         * misc/swapoff.c: Likewise.
25012         * misc/swapon.c: Likewise.
25013         * misc/sync.c: Likewise.
25014         * misc/syncfs.c: Likewise.
25015         * misc/syscall.c: Likewise.
25016         * misc/truncate.c: Likewise.
25017         * misc/ualarm.c: Likewise.
25018         * misc/usleep.c: Likewise.
25019         * misc/ustat.c: Likewise.
25020         * misc/utimes.c: Likewise.
25021         * misc/vhangup.c: Likewise.
25022         * misc/writev.c: Likewise.
25023         * posix/_exit.c: Likewise.
25024         * posix/alarm.c: Likewise.
25025         * posix/execve.c: Likewise.
25026         * posix/fexecve.c: Likewise.
25027         * posix/fork.c: Likewise.
25028         * posix/fpathconf.c: Likewise.
25029         * posix/getaddrinfo.c: Likewise.
25030         * posix/getegid.c: Likewise.
25031         * posix/geteuid.c: Likewise.
25032         * posix/getgid.c: Likewise.
25033         * posix/getgroups.c: Likewise.
25034         * posix/getlogin.c: Likewise.
25035         * posix/getlogin_r.c: Likewise.
25036         * posix/getpgid.c: Likewise.
25037         * posix/getpid.c: Likewise.
25038         * posix/getppid.c: Likewise.
25039         * posix/getresgid.c: Likewise.
25040         * posix/getresuid.c: Likewise.
25041         * posix/getsid.c: Likewise.
25042         * posix/getuid.c: Likewise.
25043         * posix/glob64.c: Likewise.
25044         * posix/nanosleep.c: Likewise.
25045         * posix/pathconf.c: Likewise.
25046         * posix/pause.c: Likewise.
25047         * posix/posix_madvise.c: Likewise.
25048         * posix/pread.c: Likewise.
25049         * posix/pread64.c: Likewise.
25050         * posix/pwrite.c: Likewise.
25051         * posix/pwrite64.c: Likewise.
25052         * posix/sched_getaffinity.c: Likewise.
25053         * posix/sched_getp.c: Likewise.
25054         * posix/sched_gets.c: Likewise.
25055         * posix/sched_primax.c: Likewise.
25056         * posix/sched_primin.c: Likewise.
25057         * posix/sched_rr_gi.c: Likewise.
25058         * posix/sched_setaffinity.c: Likewise.
25059         * posix/sched_setp.c: Likewise.
25060         * posix/sched_sets.c: Likewise.
25061         * posix/sched_yield.c: Likewise.
25062         * posix/setgid.c: Likewise.
25063         * posix/setlogin.c: Likewise.
25064         * posix/setpgid.c: Likewise.
25065         * posix/setresgid.c: Likewise.
25066         * posix/setresuid.c: Likewise.
25067         * posix/setsid.c: Likewise.
25068         * posix/setuid.c: Likewise.
25069         * posix/sleep.c: Likewise.
25070         * posix/spawni.c: Likewise.
25071         * posix/sysconf.c: Likewise.
25072         * posix/times.c: Likewise.
25073         * posix/wait.c: Likewise.
25074         * posix/wait3.c: Likewise.
25075         * posix/wait4.c: Likewise.
25076         * posix/waitpid.c: Likewise.
25077         * resolv/gai_sigqueue.c: Likewise.
25078         * resource/getpriority.c: Likewise.
25079         * resource/getrlimit.c: Likewise.
25080         * resource/getrusage.c: Likewise.
25081         * resource/nice.c: Likewise.
25082         * resource/setpriority.c: Likewise.
25083         * resource/setrlimit.c: Likewise.
25084         * resource/ulimit.c: Likewise.
25085         * rt/aio_cancel.c: Likewise.
25086         * rt/aio_fsync.c: Likewise.
25087         * rt/aio_read.c: Likewise.
25088         * rt/aio_sigqueue.c: Likewise.
25089         * rt/aio_suspend.c: Likewise.
25090         * rt/aio_write.c: Likewise.
25091         * rt/clock_getres.c: Likewise.
25092         * rt/clock_gettime.c: Likewise.
25093         * rt/clock_nanosleep.c: Likewise.
25094         * rt/clock_settime.c: Likewise.
25095         * rt/lio_listio.c: Likewise.
25096         * rt/mq_close.c: Likewise.
25097         * rt/mq_getattr.c: Likewise.
25098         * rt/mq_notify.c: Likewise.
25099         * rt/mq_open.c: Likewise.
25100         * rt/mq_receive.c: Likewise.
25101         * rt/mq_send.c: Likewise.
25102         * rt/mq_setattr.c: Likewise.
25103         * rt/mq_timedreceive.c: Likewise.
25104         * rt/mq_timedsend.c: Likewise.
25105         * rt/mq_unlink.c: Likewise.
25106         * rt/shm_open.c: Likewise.
25107         * rt/shm_unlink.c: Likewise.
25108         * rt/timer_create.c: Likewise.
25109         * rt/timer_delete.c: Likewise.
25110         * rt/timer_getoverr.c: Likewise.
25111         * rt/timer_gettime.c: Likewise.
25112         * rt/timer_settime.c: Likewise.
25113         * setjmp/__longjmp.c: Likewise.
25114         * setjmp/setjmp.c: Likewise.
25115         * signal/kill.c: Likewise.
25116         * signal/killpg.c: Likewise.
25117         * signal/raise.c: Likewise.
25118         * signal/sigaction.c: Likewise.
25119         * signal/sigaltstack.c: Likewise.
25120         * signal/sigblock.c: Likewise.
25121         * signal/sigignore.c: Likewise.
25122         * signal/sigintr.c: Likewise.
25123         * signal/signal.c: Likewise.
25124         * signal/sigpause.c: Likewise.
25125         * signal/sigpending.c: Likewise.
25126         * signal/sigqueue.c: Likewise.
25127         * signal/sigreturn.c: Likewise.
25128         * signal/sigset.c: Likewise.
25129         * signal/sigsetmask.c: Likewise.
25130         * signal/sigstack.c: Likewise.
25131         * signal/sigsuspend.c: Likewise.
25132         * signal/sigtimedwait.c: Likewise.
25133         * signal/sigvec.c: Likewise.
25134         * signal/sigwait.c: Likewise.
25135         * signal/sigwaitinfo.c: Likewise.
25136         * signal/sysv_signal.c: Likewise.
25137         * socket/accept.c: Likewise.
25138         * socket/accept4.c: Likewise.
25139         * socket/bind.c: Likewise.
25140         * socket/connect.c: Likewise.
25141         * socket/getpeername.c: Likewise.
25142         * socket/getsockname.c: Likewise.
25143         * socket/getsockopt.c: Likewise.
25144         * socket/isfdtype.c: Likewise.
25145         * socket/listen.c: Likewise.
25146         * socket/recv.c: Likewise.
25147         * socket/recvfrom.c: Likewise.
25148         * socket/recvmsg.c: Likewise.
25149         * socket/send.c: Likewise.
25150         * socket/sendmsg.c: Likewise.
25151         * socket/sendto.c: Likewise.
25152         * socket/setsockopt.c: Likewise.
25153         * socket/shutdown.c: Likewise.
25154         * socket/sockatmark.c: Likewise.
25155         * socket/socket.c: Likewise.
25156         * socket/socketpair.c: Likewise.
25157         * stdio-common/ctermid.c: Likewise.
25158         * stdio-common/cuserid.c: Likewise.
25159         * stdio-common/remove.c: Likewise.
25160         * stdio-common/rename.c: Likewise.
25161         * stdio-common/renameat.c: Likewise.
25162         * stdio-common/tempname.c: Likewise.
25163         * stdlib/getcontext.c: Likewise.
25164         * stdlib/makecontext.c: Likewise.
25165         * stdlib/setcontext.c: Likewise.
25166         * stdlib/swapcontext.c: Likewise.
25167         * stdlib/system.c: Likewise.
25168         * streams/fattach.c: Likewise.
25169         * streams/fdetach.c: Likewise.
25170         * streams/getmsg.c: Likewise.
25171         * streams/getpmsg.c: Likewise.
25172         * streams/putmsg.c: Likewise.
25173         * streams/putpmsg.c: Likewise.
25174         * sysdeps/unix/bsd/getpt.c: Likewise.
25175         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25176         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25177         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25179         Likewise.
25180         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25181         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25182         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25183         * sysvipc/msgctl.c: Likewise.
25184         * sysvipc/msgget.c: Likewise.
25185         * sysvipc/msgrcv.c: Likewise.
25186         * sysvipc/msgsnd.c: Likewise.
25187         * sysvipc/semctl.c: Likewise.
25188         * sysvipc/semget.c: Likewise.
25189         * sysvipc/semop.c: Likewise.
25190         * sysvipc/semtimedop.c: Likewise.
25191         * sysvipc/shmat.c: Likewise.
25192         * sysvipc/shmctl.c: Likewise.
25193         * sysvipc/shmdt.c: Likewise.
25194         * sysvipc/shmget.c: Likewise.
25195         * termios/tcdrain.c: Likewise.
25196         * termios/tcflow.c: Likewise.
25197         * termios/tcflush.c: Likewise.
25198         * termios/tcgetattr.c: Likewise.
25199         * termios/tcgetpgrp.c: Likewise.
25200         * termios/tcsendbrk.c: Likewise.
25201         * termios/tcsetattr.c: Likewise.
25202         * termios/tcsetpgrp.c: Likewise.
25203         * time/adjtime.c: Likewise.
25204         * time/clock.c: Likewise.
25205         * time/getitimer.c: Likewise.
25206         * time/gettimeofday.c: Likewise.
25207         * time/setitimer.c: Likewise.
25208         * time/settimeofday.c: Likewise.
25209         * time/stime.c: Likewise.
25210         * time/time.c: Likewise.
25211
25212 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25213
25214         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25215         /usr/old/bin.
25216
25217         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25218         instead of spaces.
25219         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25220
25221 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25222
25223         [BZ #14796]
25224         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25225         FE_TONEAREST before applying Dekker multiplication and Knuth
25226         addition.  Clear inexact exceptions and check for exact zero
25227         results afterwards.
25228         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25229         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25230         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25231         * math/libm-test.inc (fma_test): Add more tests.
25232         (fma_test_towardzero): Likewise.
25233         (fma_test_downward): Likewise.
25234         (fma_test_upward): Likewise.
25235         * sysdeps/generic/math_private.h (default_libc_fesetround): New
25236         function.
25237         (libc_fesetround): New macro.
25238         (libc_fesetroundf): Likewise.
25239         (libc_fesetroundl): Likewise.
25240         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
25241         function.
25242         (libc_fesetround_387): Likewise.
25243         (libc_fesetroundf): New macro.
25244         (libc_fesetround): Likewise.
25245         (libc_fesetroundl): Likewise.
25246         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
25247         function.
25248         (libc_fesetroundf): New macro.
25249         (libc_fesetround): Likewise.
25250         (libc_fesetroundl): Likewise.
25251         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
25252         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
25253         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
25254         libm_hidden_ver.
25255         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
25256         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
25257         libm_hidden_def.
25258         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
25259         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
25260         libm_hidden_ver.
25261         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
25262         libm_hidden_def.
25263
25264         [BZ #3439]
25265         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
25266         integer constant usable in #if and use that to give value to enum
25267         constant.
25268         (FE_DIVBYZERO): Likewise.
25269         (FE_UNDERFLOW): Likewise.
25270         (FE_OVERFLOW): Likewise.
25271         (FE_INVALID): Likewise.
25272         (FE_INVALID_SNAN): Likewise.
25273         (FE_INVALID_ISI): Likewise.
25274         (FE_INVALID_IDI): Likewise.
25275         (FE_INVALID_ZDZ): Likewise.
25276         (FE_INVALID_IMZ): Likewise.
25277         (FE_INVALID_COMPARE): Likewise.
25278         (FE_INVALID_SOFTWARE): Likewise.
25279         (FE_INVALID_SQRT): Likewise.
25280         (FE_INVALID_INTEGER_CONVERSION): Likewise.
25281         (FE_TONEAREST): Likewise.
25282         (FE_TOWARDZERO): Likewise.
25283         (FE_UPWARD): Likewise.
25284         (FE_DOWNWARD): Likewise.
25285         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
25286         (FE_DIVBYZERO): Likewise.
25287         (FE_OVERFLOW): Likewise.
25288         (FE_UNDERFLOW): Likewise.
25289         (FE_INEXACT): Likewise.
25290         (FE_TONEAREST): Likewise.
25291         (FE_DOWNWARD): Likewise.
25292         (FE_UPWARD): Likewise.
25293         (FE_TOWARDZERO): Likewise.
25294         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
25295         (FE_UNDERFLOW): Likewise.
25296         (FE_OVERFLOW): Likewise.
25297         (FE_DIVBYZERO): Likewise.
25298         (FE_INVALID): Likewise.
25299         (FE_TONEAREST): Likewise.
25300         (FE_TOWARDZERO): Likewise.
25301         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
25302         (FE_OVERFLOW): Likewise.
25303         (FE_UNDERFLOW): Likewise.
25304         (FE_DIVBYZERO): Likewise.
25305         (FE_INEXACT): Likewise.
25306         (FE_TONEAREST): Likewise.
25307         (FE_TOWARDZERO): Likewise.
25308         (FE_UPWARD): Likewise.
25309         (FE_DOWNWARD): Likewise.
25310         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
25311         (FE_DIVBYZERO): Likewise.
25312         (FE_OVERFLOW): Likewise.
25313         (FE_UNDERFLOW): Likewise.
25314         (FE_INEXACT): Likewise.
25315         (FE_TONEAREST): Likewise.
25316         (FE_DOWNWARD): Likewise.
25317         (FE_UPWARD): Likewise.
25318         (FE_TOWARDZERO): Likewise.
25319
25320 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
25321
25322         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
25323
25324 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
25325
25326         * scripts/cross-test-ssh.sh (command): Use newlines to separate
25327         commands.  Quote $PWD.
25328         (blacklist_exports): Don't use remove_newlines.  Replace "declare
25329         -x" by "export".
25330         (remove_newlines): Remove.
25331
25332 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
25333
25334         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
25335         * stdlib/stdlib.h (atof): Moved to ...
25336         * include/bits/stdlib-float.h: Here.  New file.
25337         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
25338         * stdlib/bits/stdlib-float.h: New file.
25339         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
25340         -mno-sse -mno-mmx.
25341         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
25342         <xmmintrin.h>.
25343
25344 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25345
25346         * conform/conformtest.pl (@headers): Add fenv.h.
25347         * conform/data/fenv.h-data: New file.
25348         * include/fenv.h [_ISOMAC]: Disable all contents of file except
25349         include of <math/fenv.h>.
25350
25351         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
25352         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
25353         && !UNIX98].  Enables tests for XOPEN2K8.
25354         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
25355         POSIX2008]: Likewise.
25356
25357         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
25358         (struct rusage): Do not expect type or its members.
25359
25360         [BZ #3439]
25361         * math/math.h (FP_NAN): Define macro to integer constant usable in
25362         #if and use that to give value to enum constant.
25363         (FP_INFINITE): Likewise.
25364         (FP_ZERO): Likewise.
25365         (FP_SUBNORMAL): Likewise.
25366         (FP_NORMAL): Likewise.
25367
25368 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
25369
25370         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
25371         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
25372         arguments.
25373
25374 2012-11-02  Roland McGrath  <roland@hack.frob.com>
25375
25376         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
25377         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
25378         autoconf-time if not.
25379         * configure.in: Remove AC_PREREQ.
25380
25381 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25382
25383         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
25384         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
25385         of the internal implementation.
25386
25387 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25388
25389         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
25390         except include of <misc/sys/syslog.h>.
25391
25392 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25393
25394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
25395         function returns with a NULL context exit with zero.
25396
25397 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25398
25399         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
25400
25401 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25402
25403         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
25404         (run_program_cmd): This.
25405         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
25406         (tst_langinfo): New variable.  Use it.
25407
25408 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
25409
25410         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
25411         floating point opcodes.
25412
25413 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25414
25415         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
25416         variable.
25417
25418         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
25419
25420         * sysdeps/mach/hurd/powerpc: Remove directory.
25421         * sysdeps/mach/powerpc: Likewise.
25422
25423 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25424
25425         * scripts/check-local-headers.sh: Ignore c++ headers.
25426
25427 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25428
25429         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
25430         __libc_cleanup_region_start argument.
25431
25432 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
25433
25434         [BZ #14784]
25435         [BZ #14785]
25436         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
25437         x * y using scaling, not as x * y + z.
25438         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25439         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25440         * math/libm-test.inc (fma_test): Add more tests.
25441         (fma_test_towardzero): Likewise.
25442         (fma_test_downward): Likewise.
25443         (fma_test_upward): Likewise.
25444
25445 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25446
25447         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
25448
25449 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25450
25451         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
25452         New variable.
25453
25454 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
25455
25456         * rt/tst-shm.c (worker): Correct checking for mmap failure.
25457
25458 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25459
25460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25461         Fix sort order.
25462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25463         Likewise.
25464
25465 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25466
25467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25468         Fix the order of the list for glibc 2.17.
25469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25470         Likewise.
25471
25472 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25473
25474         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25475
25476 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25477
25478         [BZ #14610]
25479         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
25480         for low part of x being zero before using __atanl (y).
25481         * math/libm-test.inc (atan2_test): Add another test.
25482
25483         * manual/install.texi (Configuring and compiling): Document
25484         general use of test-wrapper and test-wrapper-env.
25485         * INSTALL: Regenerated.
25486
25487         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
25488         (__fma): Do not extract and scale down low bits on after-rounding
25489         systems when result rounded to normal precision would have normal
25490         exponent.
25491         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
25492         (__fmal): Do not extract and scale down low bits on after-rounding
25493         systems when result rounded to normal precision would have normal
25494         exponent.
25495         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
25496         (__fmal): Do not extract and scale down low bits on after-rounding
25497         systems when result rounded to normal precision would have normal
25498         exponent.
25499         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
25500         macro.
25501         (fma_test): Add more tests.
25502         (fma_test_towardzero): Likewise.
25503         (fma_test_downward): Likewise.
25504         (fma_test_upward): Likewise.
25505
25506 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25507
25508         * sysdeps/i386/tininess.h: Renamed to ...
25509         * sysdeps/x86/tininess.h: This.
25510         * sysdeps/x86_64/tininess.h: Removed.
25511
25512 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25513
25514         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
25515         input.  Use $(build-program-cmd).
25516         ($(objpfx)tst-array1-static.out): Likewise.
25517         ($(objpfx)tst-array2.out): Likewise.
25518         ($(objpfx)tst-array3.out): Likewise.
25519         ($(objpfx)tst-array4.out): Likewise.
25520         ($(objpfx)tst-array5.out): Likewise.
25521         ($(objpfx)tst-array5-static.out): Likewise.
25522
25523 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
25524
25525         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
25526         if defined.
25527
25528         * nss/nsswitch.h (nss_interface_function): Provide new
25529         macro for use with NSS functions.
25530         * grp/initgroups.c: Use new macro.
25531         * nss/getXXbyYY.c: Likewise.
25532         * nss/getXXbyYY_r.c: Likewise.
25533         * nss/getXXent.c: Likewise.
25534         * nss/getXXent_r.c: Likewise.
25535         * sysdeps/posix/getaddrinfo.c: Likewise.
25536
25537 2012-10-30  Andreas Jaeger  <aj@suse.de>
25538
25539         * po/ru.po: Update Russion translation from translation project.
25540
25541 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25542
25543         [BZ #14152]
25544         [BZ #14783]
25545         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
25546         result and shift together with sticky bit instead of replicating
25547         round-to-nearest rounding.
25548         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25549         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25550         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
25551         missing underflow exceptions.
25552         (fma_test_towardzero): Add more tests.
25553         (fma_test_downward): Likewise.
25554         (fma_test_upward): Likewise.
25555
25556         [BZ #14047]
25557         * sysdeps/generic/tininess.h: New file.
25558         * sysdeps/i386/tininess.h: Likewise.
25559         * sysdeps/sh/tininess.h: Likewise.
25560         * sysdeps/x86_64/tininess.h: Likewise.
25561         * stdlib/tst-strtod-underflow.c: Likewise.
25562         * stdlib/tst-tininess.c: Likewise.
25563         * stdlib/strtod_l.c: Include <tininess.h>.
25564         (round_and_return): Do not set errno for exact underflow cases.
25565         Force an underflow exception when setting errno for underflow.
25566         Determine underflow based on rounding to normal precision if
25567         TININESS_AFTER_ROUNDING.
25568         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
25569         ERANGE for exact underflow cases.
25570         * stdlib/Makefile (tests): Add tst-tininess and
25571         tst-strtod-underflow.
25572         ($(objpfx)tst-tininess): Use $(link-libm).
25573         ($(objpfx)tst-strtod-underflow): Likewise.
25574
25575 2012-10-30  Andreas Jaeger  <aj@suse.de>
25576
25577         [BZ#14767]
25578         * elf/Makefile (tests): Remove conditional for have-initfini-array
25579         since this is now always required and the variable does not exist
25580         anymore.
25581         (tests-static): Likewise.
25582         (modules-names): Likewise.
25583
25584         * po/eo.po: Add Esperanto translation from translation project.
25585
25586         * elf/tst-array1.c (fini_array): Make writeable so that it can be
25587         merged with constructor/destructor.
25588         (init_array): Likewise.
25589         * elf/tst-array2dep.c (fini_array): Likewise.
25590         (init_array): Likewise.
25591
25592 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
25593
25594         * manual/message.texi: Delete @cartouche tags.
25595
25596 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
25597
25598         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
25599         EOPNOTSUPP.
25600         * sysdeps/mach/hurd/fsync.c: Likewise.
25601
25602         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
25603         [_POSIX_REALTIME_SIGNALS]: Change condition to
25604         [_POSIX_REALTIME_SIGNALS > 0].
25605
25606 2012-10-27  Andreas Jaeger  <aj@suse.de>
25607
25608         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
25609         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
25610         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
25611         [__WORDSIZE != 64]: Likewise.
25612
25613 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
25614
25615         *  iconvdata/tst-table.sh: Remove ${SHELL}.
25616         *  iconvdata/tst-tables.sh: Likewise.
25617
25618 2012-10-25  David S. Miller  <davem@davemloft.net>
25619
25620         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25621         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
25622         of strtoull.
25623
25624         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
25625         ifunc-impl-list.c
25626         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25627         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
25628         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
25629         file.
25630
25631 2012-10-25  Roland McGrath  <roland@hack.frob.com>
25632
25633         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25634         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
25635         __getdirentries.
25636
25637 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
25638             Jim Blandy  <jimb@codesourcery.com>
25639
25640         * scripts/cross-test-ssh.sh: New file.
25641         * manual/install.texi (Configuring and compiling): Document use of
25642         cross-test-ssh.sh.
25643         * INSTALL: Regenerated.
25644
25645 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
25646
25647         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
25648         EOPNOTSUPP.
25649
25650 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
25651
25652         * Makeconfig (run-program-prefix): Fix comment.
25653
25654 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25655             Jim Blandy  <jimb@codesourcery.com>
25656
25657         * Makeconfig (test-wrapper): New variable,
25658         (test-wrapper-env): Likewise.
25659         [$(cross-compiling) = yes && $(test-wrapper) != ""]
25660         (run-built-tests): Define to yes.
25661         (run-program-prefix): Use $(test-wrapper).
25662         (built-program-cmd): Likewise.
25663         * Rules (make-test-out): Use $(test-wrapper-env) and
25664         $(host-built-program-cmd).
25665         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
25666         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
25667         tst-pathopt.sh.
25668         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
25669         $(test-wrapper-env) to tst-rtld-load-self.sh.
25670         ($(objpfx)order2.out): Use $(test-wrapper).
25671         ($(objpfx)tst-initorder.out): Likewise.
25672         ($(objpfx)tst-initorder2.out): Likewise.
25673         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
25674         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
25675         (test_wrapper_env): New variable.  Use it to run ld.so.
25676         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
25677         Use it to run ld.so.
25678         (test_wrapper_env): Likewise.
25679         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
25680         $(test-wrapper) to run-iconv-test.sh.
25681         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
25682         (ICONV): Use $test_wrapper.
25683         * posix/Makefile ($(objpfx)globtest.out): Pass
25684         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
25685         globtest.sh, not $(run-program-prefix).
25686         * posix/globtest.sh (run_via_rtld_prefix): New variable.
25687         (test_wrapper): Likewise.
25688         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
25689         set together with run_via_rtld_prefix.
25690         (run_program_prefix): Define in terms of test_wrapper and
25691         run_via_rtld_prefix.
25692
25693 2012-10-24  Roland McGrath  <roland@hack.frob.com>
25694
25695         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
25696         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
25697         Targets removed.
25698
25699         [BZ #14743]
25700         * include/time.h: Remove librt_hidden_proto (clock_gettime).
25701         Declare __clock_getres, __clock_gettime, __clock_settime,
25702         __clock_nanosleep, and __clock_getcpuclockid.
25703         * rt/clock_gettime.c: Define __clock_gettime as an alias.
25704         Remove librt_hidden_def (clock_gettime).
25705         * sysdeps/unix/clock_gettime.c: Likewise.
25706         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
25707         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
25708         * rt/clock_getres.c: Define __clock_getres as an alias.
25709         * sysdeps/posix/clock_getres.c: Likewise.
25710         * rt/clock_settime.c: Define __clock_settime as an alias.
25711         * sysdeps/unix/clock_settime.c: Likewise.
25712         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
25713         * sysdeps/unix/clock_nanosleep.c: Likewise.
25714         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
25715         * rt/clock-compat.c: New file.
25716         * rt/Makefile (librt-routines): Add clock-compat and move
25717         $(clock-routines) to ...
25718         (routines): ... here, new variable.
25719         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
25720         Don't add get_clockfreq here.
25721         * rt/Versions (libc: GLIBC_2.17): New version set.
25722         Add clock_* symbols here.
25723         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
25724         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
25725         (GLIBC_2.17): Add clock_* symbols.
25726         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
25727         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
25728         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
25729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25730         Likewise.
25731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25732         Likewise.
25733         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
25734         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
25735         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
25736         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
25737         * NEWS: Mention the move.
25738
25739         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
25740         Use __open, __read, __close rather than their public counterparts.
25741         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25742         (__get_clockfreq_via_cpuinfo): Likewise.
25743         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
25744         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
25745
25746         * config.h.in (HAVE_IFUNC): New #undef.
25747         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
25748         was successful.
25749         * configure: Regenerated.
25750
25751 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
25752
25753         * configure.in: Move READELF check to start of file.
25754         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
25755         libc_cv_asm_gnu_indirect_function in the process.
25756         * configure: Regenerated.
25757
25758 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
25759
25760         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
25761         send the output to /dev/null.
25762         (libc_cv_cc_with_libunwind): Likewise.
25763         (libc_cv_as_noexecstack): Likewise.
25764         * configure: Regenerate.
25765
25766 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25767
25768         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
25769
25770         * posix/globtest.sh (TMPDIR): Do not set.
25771         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
25772         (testout): Likewise.
25773
25774 2012-10-24  Andreas Jaeger  <aj@suse.de>
25775
25776         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
25777         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
25778         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
25779         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
25780         posix_fadvise64, posix_fallocate64.
25781
25782         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
25783         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
25784         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
25785         Likewise.
25786         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
25787         Likewise.
25788         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
25789
25790         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
25791         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
25792         <bits/fcntl-linux.h>.
25793         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
25794
25795         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
25796         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
25797         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
25798         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
25799         [__WORDSIZE != 64]: Likewise.
25800
25801 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
25802
25803         * Makeconfig (run-built-tests): New variable.
25804         * Rules [$(cross-compiling) = yes]: Change condition to
25805         [$(run-built-tests) = no].
25806         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
25807         to [$(run-built-tests) = yes].
25808         * elf/Makefile [$(cross-compiling) = no]: Likewise
25809         * grp/Makefile [$(cross-compiling) = no]: Likewise.
25810         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
25811         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
25812         * intl/Makefile [$(cross-compiling) = no]: Likewise.
25813         * io/Makefile [$(cross-compiling) = no]: Likewise.
25814         * libio/Makefile [$(cross-compiling) = no]: Likewise.
25815         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
25816         * misc/Makefile [$(cross-compiling) = no]: Likewise.
25817         * posix/Makefile [$(cross-compiling) = no]: Likewise.
25818         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
25819         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
25820         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
25821         * string/Makefile [$(cross-compiling) = no]: Likewise.
25822
25823         * posix/Makefile ($(objpfx)globtest.out): Pass
25824         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
25825         $(rtld-installed-name).
25826         * posix/globtest.sh (elf_objpfx): Remove variable.
25827         (rtld_installed_name): Likewise.
25828         (library_path): Likewise.
25829         (run_program_prefix): New variable.  Use for running globtest
25830         binary.
25831
25832 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
25833             Joseph Myers  <joseph@codesourcery.com>
25834
25835         * Makeconfig (host-built-program-cmd): New variable.
25836         * elf/Makefile (tst-stackguard1-ARGS): Use
25837         $(host-built-program-cmd).
25838         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
25839         (tst-spawn-ARGS): Likewise.
25840         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
25841
25842 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
25843             Jim Blandy  <jimb@codesourcery.com>
25844
25845         * Makeconfig (run-via-rtld-prefix): New variable.
25846         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
25847         (built-program-cmd): Likewise.
25848
25849 2012-10-22  Andreas Jaeger  <aj@suse.de>
25850
25851         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
25852         __O_RSYNC if it exists, otherwise to O_SYNC.
25853
25854 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
25855             Joseph Myers  <joseph@codesourcery.com>
25856
25857         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
25858         /dev/null.
25859         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
25860         from /dev/null
25861         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
25862         /dev/null.
25863
25864 2012-10-22  Andreas Jaeger  <aj@suse.de>
25865
25866         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
25867         Define always.
25868         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
25869
25870         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25871         bits/fcntl-linux.h.
25872
25873         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
25874         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
25875
25876         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
25877         to __O_LARGEFILE.
25878         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
25879         to __O_LARGEFILE.
25880
25881 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
25882             Joseph Myers  <joseph@codesourcery.com>
25883
25884         * config.make.in (NM): New variable.
25885
25886 2012-10-21  Andreas Jaeger  <aj@suse.de>
25887
25888         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
25889         definitions and declarations that are provided by
25890         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
25891
25892 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25893
25894         [BZ #14683]
25895         * elf/Makefile (tests-static): Add tst-leaks1-static.
25896         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
25897         ($(objpfx)tst-leaks1-static): New rule.
25898         ($(objpfx)tst-leaks1-static-mem): Likewise.
25899         (tst-leaks1-static-ENV): New macro.
25900         * elf/dl-open.c (dl_open_worker): Check the main application
25901         only if SHARED is defined.
25902         * elf/tst-leaks1-static.c: New file.
25903
25904 2012-10-20  Andreas Jaeger  <aj@suse.de>
25905
25906         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
25907         generic values for Linux.
25908         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
25909         and declarations that are provided by <bits/fcntl-linux.h> and
25910         include <bits/fcntl-linux.h>.
25911         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
25912         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
25913
25914 2012-10-20  Roland McGrath  <roland@hack.frob.com>
25915
25916         * io/fcntl.h: Move include of <bits/types.h> to the top and
25917         include it unconditionally.
25918
25919 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
25920
25921         * wcsmbs/Makefile (tests-ifunc): New variable.
25922         (tests): Add $(tests-ifunc).
25923         * wcsmbs/test-wcschr-ifunc.c: New file.
25924         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
25925         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
25926         * wcsmbs/test-wcslen-ifunc.c: Likewise.
25927         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
25928         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
25929
25930         * string/Makefile (tests-ifunc): New variable.
25931         (tests): Add $(tests-ifunc).
25932         * string/test-memccpy.c (TEST_NAME): New macro.
25933         * string/test-memchr.c (TEST_NAME): Likewise.
25934         * string/test-memcmp.c (TEST_NAME): Likewise.
25935         * string/test-memcpy.c (TEST_NAME): Likewise.
25936         * string/test-memmem.c (TEST_NAME): Likewise.
25937         * string/test-memmove.c (TEST_NAME): Likewise.
25938         * string/test-memset.c (TEST_NAME): Likewise.
25939         * string/test-rawmemchr.c (TEST_NAME): Likewise.
25940         * string/test-stpcpy.c (TEST_NAME): Likewise.
25941         * string/test-stpncpy.c (TEST_NAME): Likewise.
25942         * string/test-strcasecmp.c (TEST_NAME): Likewise.
25943         * string/test-strcasestr.c (TEST_NAME): Likewise.
25944         * string/test-strcat.c (TEST_NAME): Likewise.
25945         * string/test-strchr.c (TEST_NAME): Likewise.
25946         * string/test-strcmp.c(TEST_NAME): Likewise.
25947         * string/test-strcpy.c (TEST_NAME): Likewise.
25948         * string/test-strcspn.c (TEST_NAME): Likewise.
25949         * string/test-strlen.c (TEST_NAME): Likewise.
25950         * string/test-strncasecmp.c (TEST_NAME): Likewise.
25951         * string/test-strncmp.c (TEST_NAME): Likewise.
25952         * string/test-strncpy.c (TEST_NAME): Likewise.
25953         * string/test-strnlen.c (TEST_NAME): Likewise.
25954         * string/test-strpbrk.c (TEST_NAME): Likewise.
25955         * string/test-strrchr.c (TEST_NAME): Likewise.
25956         * string/test-strspn.c (TEST_NAME): Likewise.
25957         * string/test-strstr.c (TEST_NAME): Likewise.
25958         * string/test-bcopy-ifunc.c: New file.
25959         * string/test-bzero-ifunc.c: Likewise.
25960         * string/test-memccpy-ifunc.c: Likewise.
25961         * string/test-memchr-ifunc.c: Likewise.
25962         * string/test-memcmp-ifunc.c: Likewise.
25963         * string/test-memcpy-ifunc.c: Likewise.
25964         * string/test-memmem-ifunc.c: Likewise.
25965         * string/test-memmove-ifunc.c: Likewise.
25966         * string/test-mempcpy-ifunc.c: Likewise.
25967         * string/test-memset-ifunc.c: Likewise.
25968         * string/test-rawmemchr-ifunc.c: Likewise.
25969         * string/test-stpcpy-ifunc.c: Likewise.
25970         * string/test-stpncpy-ifunc.c: Likewise.
25971         * string/test-strcasecmp-ifunc.c: Likewise.
25972         * string/test-strcasestr-ifunc.c: Likewise.
25973         * string/test-strcat-ifunc.c: Likewise.
25974         * string/test-strchr-ifunc.c: Likewise.
25975         * string/test-strchrnul-ifunc.c: Likewise.
25976         * string/test-strcmp-ifunc.c: Likewise.
25977         * string/test-strcpy-ifunc.c: Likewise.
25978         * string/test-strcspn-ifunc.c: Likewise.
25979         * string/test-strlen-ifunc.c: Likewise.
25980         * string/test-strncasecmp-ifunc.c: Likewise.
25981         * string/test-strncat-ifunc.c: Likewise.
25982         * string/test-strncmp-ifunc.c: Likewise.
25983         * string/test-strncpy-ifunc.c: Likewise.
25984         * string/test-strnlen-ifunc.c: Likewise.
25985         * string/test-strpbrk-ifunc.c: Likewise.
25986         * string/test-strrchr-ifunc.c: Likewise.
25987         * string/test-strspn-ifunc.c: Likewise.
25988         * string/test-strstr-ifunc.c: Likewise.
25989
25990         * debug/Makefile (tests-ifunc): New variable.
25991         (tests): Add $(tests-ifunc).
25992         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
25993         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
25994         * debug/test-stpcpy_chk-ifunc.c: New file.
25995         * debug/test-strcpy_chk-ifunc.c: Likewise.
25996
25997 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
25998
25999         [BZ #13601]
26000         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26001         header is not read in.
26002
26003 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26004
26005         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26006         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26007         directly.  Pass built executable to script as
26008         $(built-program-cmd).
26009         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26010         $testprogram without using LD_LIBRARY_PATH and $ldso.
26011
26012         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26013         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26014         $(rtld-installed-name).
26015         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26016         (rtld_installed_name): Likewise.
26017         (library_path): Likewise.
26018         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26019         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26020         $(run-program-prefix) to tst-tables.sh.
26021         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26022         it to run tst-table-from and tst-table-to.
26023         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26024         Pass it to tst-table.sh.
26025         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26026         $(run-program-prefix) to tst-gettext.sh.
26027         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26028         tst-translit.sh.
26029         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26030         tst-gettext2.sh.
26031         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26032         to run tst-gettext.
26033         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26034         to run tst-gettext2.
26035         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26036         to run tst-translit.
26037         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26038         $(run-program-prefix) to tst-mtrace.sh.
26039         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26040         to run tst-mtrace.
26041         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26042         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26043         $(rtld-installed-name).
26044         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26045         (rtld_installed_name): Likewise.
26046         (run_program_prefix): New variable.  Use it to run wordexp-test.
26047
26048         * Makeconfig (ARCH): Remove all definitions.
26049         (machine): Likewise.
26050         [ARCH]: Remove conditional code.
26051         [!objdir]: Give error.
26052         [!objdir] (objpfx): Remove.
26053         [!objdir] (common-objpfx): Likewise.
26054         [!objdir] (common-objdir): Likewise.
26055         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26056         AC_CONFIG_FILES call.
26057         * configure: Regenerated.
26058
26059         [BZ #13888]
26060         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26061         or TMPDIR.
26062         (testout): Likewise.
26063
26064         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26065         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26066         $(rtld-installed-name).
26067         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26068         (rtld_installed_name): Likwise.
26069         (runit): Remove function.
26070         (run_getconf): New variable,  Use it for running getconf binary.
26071
26072 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26073
26074         [BZ #14716]
26075         * string/test-memmem.c (check_result): New function.
26076         (do_one_test): Use it.
26077         (check1): New function.
26078         (test_main): Use it.
26079
26080 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26081
26082         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26083
26084 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26085
26086         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26087         (_G_LSEEK64): Likewise.
26088         (_G_MMAP64): Likewise.
26089         (_G_FSTAT64): Likewise.
26090         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26091         (_G_LSEEK64): Likewise.
26092         (_G_MMAP64): Likewise.
26093         (_G_FSTAT64): Likewise.
26094         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26095         unconditional.  Call __mmap64 directly.
26096         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26097         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26098         __lseek64 directly.
26099         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26100         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26101         __mmap64 directly.
26102         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26103         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26104         __lseek64 directly.
26105         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26106         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26107         __lseek64 directly.
26108         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26109         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26110         __lseek64 directly.
26111         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26112         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26113         __fxstat64 directly.
26114         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26115         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26116         unconditional.
26117         (freopen64) [!_G_OPEN64]: Remove conditional code.
26118         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26119         unconditional.
26120         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26121         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26122         unconditional.
26123         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26124         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26125         unconditional.
26126         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26127         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26128         unconditional.
26129         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26130         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26131         unconditional.
26132         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26133         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26134         unconditional.
26135         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26136         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26137         unconditional.
26138         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26139
26140 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26141
26142         [BZ #12140]
26143         * manual/memory.texi (Malloc Tunable Parameters): Add note
26144         about free list pointers overwriting some perturb bytes.
26145         Wording suggested by Roland McGrath.
26146
26147 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26148
26149         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26150         (lgamma_test): Likewise.
26151         (tgamma_test): Likewise.
26152
26153 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26154
26155         [BZ #14700]
26156         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26157         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26158
26159 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26160
26161         * NEWS: Mention BZ #14716.
26162         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26163         when removing AVAILABLE1_USES_J macro.
26164
26165 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26166
26167         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26168         (__bswap_64): __uint64_t for unsigned 64-bit int.
26169
26170 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26171
26172         * include/string.h (memmem): Declare libc hidden alias.
26173         * string/memmem.c (memmem): Define libc hidden alias.
26174         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26175         __read, __close instead of open, read, close.
26176
26177 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26178
26179         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26180         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26181         global and hidden.
26182         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26183         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26184         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26185         Likewise.
26186         (__rawmemchr_sse2): Likewise.
26187         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26188         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26189         (__strchr_sse2): Likewise.
26190         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26191         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26192         (__strcasecmp_sse2): Likewise.
26193         (__strncasecmp_sse2): Likewise.
26194         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26195         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26196         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26197         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26198         (__strrchr_sse2): Likewise.
26199         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26200         ifunc-impl-list.c.
26201         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26202         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26203         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26204         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26205         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26206         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26207         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26208         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26209         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26210         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26211         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26212         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26213         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26214         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26215         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26216         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26217         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26218         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26219         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26220         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26221         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26222         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26223         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26224         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26225         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
26226         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26227         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26228         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26229         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26230         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26231
26232         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
26233         global and hidden.
26234         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
26235         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
26236         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
26237         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
26238         Likewise.
26239         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
26240         Likewise.
26241         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
26242         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
26243         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
26244         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
26245         ifunc-impl-list.c.
26246         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26247         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26248         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26249         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26250         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26251         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26252         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26253         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26254         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26255         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26256         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26257         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26258         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26259         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
26260         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
26261         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26262         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
26263         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
26264         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26265         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26266         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26267         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26268         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26269         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26270         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26271         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
26272         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
26273         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
26274         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
26275         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26276         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
26277         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26278         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26279         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
26280         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26281         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26282         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26283         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26284         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26285         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26286         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
26287
26288         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
26289         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
26290         * include/ifunc-impl-list.h: New file.
26291         * misc/ifunc-impl-list.c: Likewise.
26292         * misc/Makefile (routines): Add ifunc-impl-list.
26293         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
26294         * string/test-string.h: Include <ifunc-impl-list.h>.
26295         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
26296         TEST_NAME]: New variables.
26297         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
26298         are defined.
26299         (test_init): Call __libc_ifunc_impl_list to initialize
26300         func_list if TEST_IFUNC and TEST_NAME are defined.
26301
26302         * string/Makefile (strop-tests): Add bcopy and bzero.
26303         * string/test-bcopy.c: New file.
26304         * string/test-bzero.c: Likewise.
26305         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
26306         defined.
26307         * string/test-memset.c: Support bzero test if TEST_BZERO is
26308         defined.
26309         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
26310         __libc_memmove.
26311         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
26312         __libc_memset.
26313         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
26314         of memset.
26315
26316 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
26317
26318         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
26319         * configure: Regenerated.
26320
26321         * Makeconfig (+link-static-before-libc): Don't include
26322         $(link-static-libc).
26323
26324         * libio/libio.h (_IO_pos_t): Remove.
26325
26326 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26327
26328         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
26329         McGrath.
26330
26331 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26332
26333         * crypt/crypt-entry.c: Include fips-private.h.
26334         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
26335         * crypt/md5c-test.c (main): Tolerate disabled MD5.
26336         * sysdeps/unix/sysv/linux/fips-private.h: New file.
26337         * sysdeps/generic/fips-private.h: New file, dummy fallback.
26338
26339 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26340
26341         * crypt/crypt-private.h: Include stdbool.h.
26342         (_ufc_setup_salt_r): Return bool.
26343         * crypt/crypt-entry.c: Include errno.h.
26344         (__crypt_r): Return NULL with EINVAL for bad salt.
26345         * crypt/crypt_util.c (bad_for_salt): New.
26346         (_ufc_setup_salt_r): Check that salt is long enough and within
26347         the specified alphabet.
26348         * crypt/badsalttest.c: New file.
26349         * crypt/Makefile (tests): Add it.
26350         ($(objpfx)badsalttest): New.
26351
26352 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
26353
26354         * NEWS: Add entry for BZ #14602.
26355
26356 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26357
26358         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
26359         type-generic.
26360         * math/libm-test.inc: Update comment listing what functions and
26361         macros are tested.
26362         (isgreater_test): New function.
26363         (isgreaterequal_test): Likewise.
26364         (isless_test): Likewise.
26365         (islessequal_test): Likewise.
26366         (islessgreater_test): Likewise.
26367         (isunordered_test): Likewise.
26368         (main): Call the new functions.
26369
26370 2012-10-09  Roland McGrath  <roland@hack.frob.com>
26371
26372         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
26373         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
26374         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
26375         * sysdeps/i386/configure: Regenerated.
26376         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
26377         * sysdeps/mach/configure: Regenerated.
26378         * sysdeps/mach/hurd/configure: Regenerated.
26379         * sysdeps/powerpc/configure: Regenerated.
26380         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26381         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26382         * sysdeps/s390/s390-32/configure: Regenerated.
26383         * sysdeps/s390/s390-64/configure: Regenerated.
26384         * sysdeps/sh/configure: Regenerated.
26385         * sysdeps/sparc/configure: Regenerated.
26386         * sysdeps/unix/sysv/linux/configure: Regenerated.
26387         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
26388         * sysdeps/x86_64/configure: Regenerated.
26389
26390         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
26391         defined.  Don't check if MAP is NULL.
26392
26393 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26394
26395         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
26396         (_G_stat64): Likewise.
26397         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
26398         (_G_stat64): Likewise.
26399         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
26400         instead of struct _G_stat64.
26401         * libio/fileops.c (mmap_remap_check): Likewise.
26402         (decide_maybe_mmap): Likewise.
26403         (_IO_new_file_seekoff): Likewise.
26404         (_IO_file_stat): Likewise.
26405         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
26406         _G_off64_t.
26407         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
26408         instead of struct _G_stat64.
26409         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26410
26411 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26412
26413         [BZ #14602]
26414         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26415         Replace with ...
26416         (CHECK_EOL): New macro.
26417         (two_way_short_needle): Check beginning of haystack for EOL.  Use
26418         CHECK_EOL.
26419         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26420         Replace with CHECK_EOL.
26421         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26422         Replace with CHECK_EOL.
26423
26424 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
26425
26426         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
26427         type-generic.
26428         * math/libm-test.inc: Update comment listing what functions and
26429         macros are tested.
26430         (finite_test): New function.
26431         (isinf_test): Likewise.
26432         (isnan_test): Likewise.
26433         (fpclassify_test): Test subnormal input.
26434         (isfinite_test): Likewise.
26435         (isnormal_test): Likewise.
26436         (main): Call the new functions.
26437
26438 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
26439
26440         [BZ #14660]
26441         * Makerules (%.dynsym): Force C locale when running
26442         $(OBJDUMP) --dynamic-syms.
26443
26444 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
26445
26446         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
26447         <stdint.h>.
26448
26449 2012-10-06  David S. Miller  <davem@davemloft.net>
26450
26451         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
26452         upper 32-bits of the length value in %o2 since we use branch-on-register
26453         tests which consider the entire 64-bit register.
26454
26455 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
26456
26457         * string/test-strstr.c (check2): Add a test for page boundary.
26458
26459 2012-10-05  David S. Miller  <davem@davemloft.net>
26460
26461         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
26462         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
26463         file.
26464         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26465         sysdep_routines.
26466         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26467         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
26468         and bzero when HWCAP_SPARC_CRYPTO is present.
26469
26470 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
26471
26472         [BZ #14602]
26473         * string/test-strstr.c (check2): New function.
26474         (test_main): Call check2.
26475
26476         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
26477         and bug-strchr1.
26478         * string/bug-strcasestr1.c (do_test): Moved to ...
26479         * string/test-strcasestr.c (check1): Here.  New function.
26480         (do_one_test): Break out result checking code into ...
26481         (check_result): This.  New function.
26482         (do_one_test): Call check_result.
26483         (test_main): Call check1.
26484         * string/bug-strchr1.c (do_test): Moved to ...
26485         * string/test-strchr.c (check1): Here.  New function.
26486         (do_one_test): Break out result checking code into ...
26487         (check_result): This.  New function.
26488         (do_one_test): Call check_result.
26489         (test_main): Call check1.
26490         * string/bug-strstr1.c (main): Moved to ...
26491         * string/test-strstr.c (check1): Here.  New function.
26492         (do_one_test): Break out result checking code into ...
26493         (check_result): This.  New function.
26494         (do_one_test): Call check_result.
26495         (test_main): Call check1.
26496         * string/bug-strcasestr1.c: Removed.
26497         * string/bug-strchr1.c: Likewise.
26498         * string/bug-strstr1.c: Likewise.
26499
26500         * elf/Makefile (dl-routines): Add hwcaps.
26501         * elf/dl-support.c (_dl_important_hwcaps): Removed.
26502         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
26503         (_dl_important_hwcaps): Moved to ...
26504         * elf/dl-hwcaps.c: Here.  New file.
26505         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
26506
26507         [BZ #14557]
26508         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
26509         if IS_IN_rtld isn't defined.
26510
26511         * elf/dl-support.c (_dl_sysinfo_map): New.
26512         Include "get-dynamic-info.h" and "setup-vdso.h".
26513         (_dl_non_dynamic_init): Call setup_vdso.
26514         * elf/dynamic-link.h: Don't include <assert.h>.
26515         (elf_get_dynamic_info): Moved to ...
26516         * elf/get-dynamic-info.h: Here.  New file.
26517         * elf/dynamic-link.h: Include "get-dynamic-info.h".
26518         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
26519         * elf/setup-vdso.h: Here.  New file.
26520         * elf/rtld.c: Include "setup-vdso.h".
26521         (dl_main): Call setup_vdso.
26522
26523 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
26524
26525         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
26526         creal in comment listing functions tested.  List finite, isinf,
26527         isnan, isless, islessequal, isgreater, isgreaterequal,
26528         islessgreater, isunordered, lgamma_r and pow10 as functions and
26529         macros not tested.  Mention which functions not tested are aliases
26530         for other functions.  Fix typo.  Note that signs of NaNs are not
26531         tested.
26532
26533         * scripts/config.guess: Update from config.git.
26534         * scripts/config.sub: Likewise.
26535
26536 2012-10-04  Roland McGrath  <roland@hack.frob.com>
26537
26538         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
26539         * misc/madvise.c (madvise): Renamed to __madvise.
26540         Make madvise a weak alias.
26541         * include/sys/mman.h: Declare __madvise.
26542         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
26543         * sysdeps/unix/syscalls.list
26544         (madvise): Make __madvise the strong name, and madvise a weak alias.
26545         * sysdeps/unix/sysv/linux/syscalls.list
26546         (madvise, mmap): Remove redundant entries.
26547         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
26548         * malloc/malloc.c (mtrim): Likewise.
26549         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
26550
26551 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26552
26553         * sysdeps/mach/hurd/dl-cache.c: File removed.
26554         * config.h.in (USE_LDCONFIG): New #undef.
26555         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
26556         * configure: Regenerated.
26557         * elf/Makefile (dl-routines): Add dl-cache only under
26558         [$(use-ldconfig) = yes].
26559         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
26560         cache on [USE_LDCONFIG].
26561         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
26562         [USE_LDCONFIG].
26563         * elf/rtld.c (dl_main): Likewise.
26564
26565 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
26566
26567         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
26568         _SC_LEVEL4_CACHE_LINESIZE.
26569
26570 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26571
26572         * sysdeps/unix/bsd/confstr.h: File removed.
26573
26574 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
26575
26576         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
26577         sys/sdt-config.h.
26578
26579 2012-10-02  Roland McGrath  <roland@hack.frob.com>
26580
26581         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
26582         Make 'mapoff' field ElfW(Off) rather than off_t.
26583
26584 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
26585
26586         * nscd/Makefile: Remove nscd-cflags and all its users.
26587         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
26588         (CFLAGS-nonlib): Add compiler flags for nscd modules.
26589
26590         [BZ #10631]
26591         * malloc.c (malloc_printerr): Clarify error message.
26592
26593 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
26594
26595         [BZ #14648]
26596         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26597         Set bit_FMA_Usable if FMA is supported.
26598         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
26599         macro.
26600         (bit_FMA4_Usable): Updated.
26601         (index_FMA_Usable): New macro.
26602         (CPUID_FMA): Likewise
26603         (HAS_FMA): Defined with bit_FMA_Usable.
26604
26605 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26606
26607         * bits/types.h (__swblk_t): Type removed.
26608         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
26609         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
26610         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26611         (__SWBLK_T_TYPE): Likewise.
26612         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26613         (__SWBLK_T_TYPE): Likewise.
26614         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26615         (__SWBLK_T_TYPE): Likewise.
26616         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26617         (__SWBLK_T_TYPE): Likewise.
26618
26619 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
26620             Honza Horak <hhorak@redhat.com>
26621
26622         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
26623         (xdr_mapname): Use YPMAXMAP as maxsize.
26624         (xdr_peername): Use YPMAXPEER as maxsize.
26625         (xdr_keydat): Use YPAXRECORD as maxsize.
26626         (xdr_valdat): Use YPMAXRECORD as maxsize.
26627
26628 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26629
26630         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
26631
26632         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
26633         * csu/init-first.c: ... here.
26634         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
26635         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
26636         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
26637         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
26638         * sysdeps/i386/init-first.c: File removed.
26639         * sysdeps/sh/init-first.c: File removed.
26640
26641 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
26642
26643         [BZ #14645]
26644         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
26645         if x * y might underflow to zero and z is zero.
26646         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26647         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26648         * math/libm-test.inc (min_subnorm_value): New variable.
26649         (fma_test): Add more tests.
26650         (fma_test_towardzero): Likewise.
26651         (fma_test_downward): Likewise
26652         (fma_test_upward): Likewise.
26653         (initialize): Set min_subnorm_value.
26654
26655 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
26656
26657         [BZ #14638]
26658         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
26659         0 + 0.
26660         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
26661         mode for addition resulting in exact zero.
26662         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
26663         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
26664         exact 0 + 0.
26665         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26666         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26667         * math/libm-test.inc (fma_test): Add more tests.
26668         (fma_test_towardzero): New function.
26669         (fma_test_downward): Likewise.
26670         (fma_test_upward): Likewise.
26671         (main): Call the new functions.
26672
26673 2012-09-28  David S. Miller  <davem@davemloft.net>
26674
26675         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
26676
26677 2012-09-28  Roland McGrath  <roland@hack.frob.com>
26678
26679         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
26680         instead of SIGALRM.
26681
26682         * sysdeps/gnu/_G_config.h: Moved to ...
26683         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
26684         * sysdeps/mach/hurd/_G_config.h: Moved to ...
26685         * sysdeps/generic/_G_config.h: ... here.
26686
26687         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
26688
26689         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
26690
26691         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
26692         Conditionalize target on [libnss_test1.so-version].
26693
26694         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
26695
26696         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
26697         (elfobjdir): Move out of conditionals.
26698
26699         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
26700         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
26701         (__nss_lookup_function): Conditionalize label remove_from_tree on
26702         [!DO_STATIC_NSS || SHARED], matching its only use.
26703
26704 2012-09-28  David S. Miller  <davem@davemloft.net>
26705
26706         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
26707         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
26708         file.
26709         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26710         sysdep_routines.
26711         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26712         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
26713         when HWCAP_SPARC_CRYPTO is present.
26714
26715 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26716
26717         * io/tst-mknodat.c: Create a FIFO instead of a socket.
26718
26719 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
26720
26721         [BZ #6530]
26722         * stdio-common/vfprintf.c (process_string_arg): Revert
26723         2000-07-22 change.
26724
26725 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
26726
26727         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
26728         for testcase.
26729         * stdio-common/tst-sprintf.c: Include <locale.h>
26730         (main): Test sprintf's handling of incomplete multibyte
26731         characters.
26732
26733 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
26734
26735         * elf/dl-runtime.c (VERSYMIDX): Removed.
26736         * elf/dl-version.c (VERSYMIDX): Likewise.
26737         * elf/do-rel.h (VERSYMIDX): Likewise.
26738         (VALIDX): Likewise.
26739         * elf/dynamic-link.h (VERSYMIDX): Likewise.
26740         * elf/rtld.c (VALIDX): Likewise.
26741         (ADDRIDX): Likewise.
26742         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
26743         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
26744         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
26745         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
26746         (VALIDX): Likewise.
26747         (ADDRIDX): Likewise.
26748
26749 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26750
26751         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
26752
26753 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
26754
26755         [BZ #11438]
26756         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
26757         to global scope.
26758         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
26759         addresses are in the same scope as 192.0.2/24.
26760         * posix/gai.conf: Document new scope table defaults.
26761
26762 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26763
26764         [BZ #5298]
26765         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
26766         for ftell.  Compute offsets from write pointers instead.
26767         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26768
26769 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26770
26771         [BZ #14543]
26772         * libio/Makefile (tests): New test case tst-fseek.
26773         * libio/tst-fseek.c: New test case to verify that fseek/ftell
26774         combination works in wide mode.
26775         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
26776         state when the external buffer state changes.
26777
26778 2012-09-27  David S. Miller  <davem@davemloft.net>
26779
26780         [BZ #14376]
26781         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
26782         pass reloc->r_addend in as the 'high' argument to
26783         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
26784
26785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26786
26787 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26788
26789         * rt/tst-aio2.c: Include <pthread.h>.
26790         * rt/tst-aio3.c: Likewise.
26791
26792 2012-09-27  Steve Ellcey  <sellcey@mips.com>
26793
26794         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
26795
26796 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
26797
26798         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
26799         contents on [SHARED].
26800
26801 2012-09-26  Marek Polacek  <polacek@redhat.com>
26802
26803         [BZ #14530]
26804         [BZ #13741]
26805         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
26806         for C++ and GCC <4.3 as well as for non GCC compilers.
26807
26808 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26809
26810         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26811
26812 2012-09-25  Roland McGrath  <roland@hack.frob.com>
26813
26814         * Makefile.in (all, install): Declare with .PHONY.
26815         Reported by Michael Hope <michael.hope@linaro.org>.
26816
26817 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26818
26819         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
26820         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
26821         system header.
26822         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
26823         Likewise.
26824         (sydep_routines): Add the new and the internal functions.
26825         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
26826         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
26827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
26828         (GLIBC_2.17): Add the new function.
26829         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
26830         (GLIBC_2.17): Likewise.
26831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
26832         (GLIBC_2.17): Likewise.
26833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
26834         (GLIBC_2.17): Likewise.
26835         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
26836
26837 2012-09-25  Alan Modra  <amodra@gmail.com>
26838
26839         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
26840         Add release barrier before setting once_control to say
26841         initialisation is done.  Add hints on lwarx.  Use macro in
26842         place of isync.
26843         (clear_once_control): Add release barrier.
26844
26845 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
26846
26847         [BZ #13629]
26848         * math/s_clog.c (__clog): Handle more values close to |z| = 1
26849         specially.
26850         * math/s_clog10.c (__clog10): Likewise.
26851         * math/s_clog10f.c (__clog10f): Likewise.
26852         * math/s_clog10l.c (__clog10l): Likewise.
26853         * math/s_clogf.c (__clogf): Likewise.
26854         * math/s_clogl.c (__clogl): Likewise.
26855         * math/Makefile (libm-calls): Add x2y2m1.
26856         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
26857         (__x2y2m1): Likewise.
26858         (__x2y2m1l): Likewise.
26859         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
26860         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
26861         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
26862         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
26863         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
26864         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
26865         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
26866         * sysdeps/i386/fpu/libm-test-ulps: Update.
26867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26868
26869         [BZ #14621]
26870         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
26871         int as type of variable DEPTH.
26872         (glob): Use size_t instead of int as type of variables NEWCOUNT
26873         and OLD_PATHC.
26874
26875 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26876
26877         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
26878         Add s_sincosf-sse2.
26879         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
26880         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
26881         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
26882         macros for using routine as __sincosf_ia32.
26883         Use macro for function declaration and weak_alias.
26884         * sysdeps/i386/fpu/libm-test-ulps: Update.
26885
26886         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
26887         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26888
26889         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
26890         subnormal argument.
26891         * math/s_cexpf.c (__cexpf): Likewise.
26892         * math/s_csinf.c (__csinf): Likewise.
26893         * math/s_csinhf.c (__csinhf): Likewise.
26894         * math/s_ctanf.c (__ctanf): Likewise.
26895         * math/s_ctanhf.c (__ctanhf): Likewise.
26896         * math/s_ccosh.c (__ccoshf): Likewise.
26897         * math/s_cexp.c (__cexpl): Likewise.
26898         * math/s_csin.c (__csin): Likewise.
26899         * math/s_csinh.c (__csinh): Likewise.
26900         * math/s_ctan.c (__ctan): Likewise.
26901         * math/s_ctanh.c (ctanh): Likewise.
26902         * math/s_ccoshl.c (__ccoshl): Likewise.
26903         * math/s_cexpl.c (__cexpl): Likewise.
26904         * math/s_csinl.c (__csinl): Likewise.
26905         * math/s_csinhl.c (__csinhl): Likewise.
26906         * math/s_ctanl.c (__ctanl): Likewise.
26907         * math/s_ctanhl.c (__ctanhl): Likewise.
26908
26909 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
26910
26911         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
26912         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
26913         (_IO_off_t): Define to __off_t, not _G_off_t.
26914         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
26915         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
26916         (_IO_wint_t): Define to wint_t, not _G_wint_t.
26917         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
26918         type of __dummy and __dummy2 fields.
26919         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
26920         (_G_ssize_t): Likewise.
26921         (_G_off_t): Likewise.
26922         (_G_pid_t): Likewise.
26923         (_G_uid_t): Likewise.
26924         (_G_wchar_t): Likewise.
26925         (_G_wint_t): Likewise.
26926         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
26927         (_G_ssize_t): Likewise.
26928         (_G_off_t): Likewise.
26929         (_G_pid_t): Likewise.
26930         (_G_uid_t): Likewise.
26931         (_G_wchar_t): Likewise.
26932         (_G_wint_t): Likewise.
26933         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
26934         (_G_ssize_t): Likewise.
26935         (_G_off_t): Likewise.
26936         (_G_pid_t): Likewise.
26937         (_G_uid_t): Likewise.
26938         (_G_wchar_t): Likewise.
26939         (_G_wint_t): Likewise.
26940
26941 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26942
26943         * malloc/arena.c: Include malloc-sysdep.h.
26944         (shrink_heap): Use check_may_shrink_heap to decide if madvise
26945         is sufficient to shrink the heap or an unmap is needed.
26946         * sysdeps/generic/malloc-sysdep.h: New file.  Define
26947         new function check_may_shrink_heap.
26948         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
26949         new function check_may_shrink_heap.
26950
26951 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
26952
26953         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
26954         comments.
26955
26956 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
26957
26958         * catgets/test-gencat.sh: Add "set -e".
26959         * elf/tst-pathopt.sh: Likewise.
26960         * grp/tst_fgetgrent.sh: Likewise.
26961         * iconvdata/run-iconv-test.sh: Likewise.
26962         * intl/tst-gettext.sh: Likewise.
26963         * intl/tst-gettext2.sh: Likewise.
26964         * intl/tst-gettext4.sh: Likewise.
26965         * intl/tst-gettext6.sh: Likewise.
26966         * intl/tst-translit.sh: Likewise.
26967         * io/ftwtest-sh: Likewise.
26968         * libio/test-freopen.sh: Likewise.
26969         * malloc/tst-mtrace.sh: Likewise.
26970         * posix/globtest.sh: Likewise.
26971         * posix/tst-getconf.sh: Likewise.
26972         * posix/wordexp-tst.sh: Likewise.
26973         * stdio-common/tst-printf.sh: Likewise.
26974         * stdio-common/tst-unbputc.sh: Likewise.
26975         * stdlib/tst-fmtmsg.sh: Likewise.
26976         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
26977         * catgets/Makefile: Do not specify -e option when running
26978         testsuite shell scripts.
26979         * elf/Makefile: Likewise.
26980         * grp/Makefile: Likewise.
26981         * iconvdata/Makefile: Likewise.
26982         * intl/Makefile: Likewise.
26983         * io/Makefile: Likewise.
26984         * libio/Makefile: Likewise.
26985         * malloc/Makefile: Likewise.
26986         * posix/Makefile: Likewise.
26987         * stdio-common/Makefile: Likewise.
26988         * stdlib/Makefile: Likewise.
26989         * sysdeps/x86_64/Makefile: Likewise.
26990
26991         * io/ftwtest-sh: Add copyright header.
26992         * posix/globtest.sh: Likewise.
26993         * posix/tst-getconf.sh: Likewise.
26994         * posix/wordexp-tst.sh: Likewise.
26995         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
26996
26997 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
26998
26999         [BZ #13679]
27000         * Makeconfig (+link): Defined as $(+link-static) if
27001         $(build-shared) isn't yes.
27002         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27003         isn't yes.
27004         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27005
27006         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27007
27008         [BZ #14562]
27009         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27010         new chunk size with MALLOC_ALIGN_MASK.
27011
27012 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27013
27014         [BZ #5044]
27015         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27016         <rounding-mode.h>.
27017         (__printf_fphex): Determine rounding using get_rounding_mode and
27018         round_away.
27019         * stdio-common/tst-printf-round.c (struct hex_test): New
27020         structure.
27021         (hex_tests): New variable.
27022         (test_hex_in_one_mode): New function.
27023         (do_test): Also run tests for hex float output.
27024
27025 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27026
27027         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27028         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27029         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27030         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27031         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27032         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27033         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27034         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27035
27036 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27037
27038         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27039         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27040         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27041         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27042
27043 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27044
27045         [BZ #14579]
27046         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27047         mode only.
27048         * elf/tst-rtld-load-self.sh: New test.
27049         * elf/Makefile: Run it.
27050
27051 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27052
27053         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27054         (tst-writev-ENV): Remove.
27055         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27056
27057 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27058
27059         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27060
27061 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27062
27063         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27064         unconditional.
27065         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27066         Likewise.
27067         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27068         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27069         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27070         Likewise.
27071
27072 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27073
27074         [BZ #14587]
27075         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27076         * config.make.in (have-cpp-asm-debuginfo): Removed.
27077         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27078         * configure: Regenerated.
27079
27080 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27081
27082         [BZ #5044]
27083         * stdio-common/printf_fp.c: Include <stdbool.h> and
27084         <rounding-mode.h>.
27085         (___printf_fp): Determine rounding using get_rounding_mode and
27086         round_away.
27087         * stdio-common/tst-printf-round.c: New file.
27088         * stdio-common/Makefile (tests): Add tst-printf-round.
27089         (link-libm): New variable.
27090         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27091
27092 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27093
27094         [BZ #14576]
27095         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27096         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27097         Likewise.
27098         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27099         Likewise.
27100
27101 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27102
27103         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27104         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27105         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27106         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27107
27108 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27109
27110         [BZ #14518]
27111         * include/rounding-mode.h: New file.
27112         * sysdeps/generic/get-rounding-mode.h: Likewise.
27113         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27114         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27115         (MAX_VALUE): New macro.
27116         (MIN_VALUE): Likewise.
27117         (overflow_value): New function.
27118         (underflow_value): Likewise.
27119         (round_and_return): Use overflow_value and underflow_value to
27120         determine return values in overflow and underflow cases.  Use
27121         round_away to determine rounding depending on rounding mode.
27122         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27123         determine return values in overflow and underflow cases.
27124         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27125         (struct test_results): New structure.
27126         (struct test): Use struct test_results to store expected results
27127         for all rounding modes.
27128         (TEST): Include expected results for all rounding modes.
27129         (test_in_one_mode): New function.
27130         (do_test): Use test_in_one_mode to compute and check results.
27131         Check results for all rounding modes.
27132         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27133         $(link-libm).
27134
27135 2012-12-09  Allan McRae  <allan@archlinux.org>
27136
27137         * sysdeps/i386/fpu/libm-test-ulps: Update
27138
27139 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27140
27141         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27142         (_G_int32_t): Likewise.
27143         (_G_uint16_t): Likewise.
27144         (_G_uint32_t): Likewise.
27145         (_G_HAVE_BOOL): Likewise.
27146         (_G_HAVE_ATEXIT): Likewise.
27147         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27148         (_G_HAVE_IO_FILE_OPEN): Likewise.
27149         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27150         (_G_int32_t): Likewise.
27151         (_G_uint16_t): Likewise.
27152         (_G_uint32_t): Likewise.
27153         (_G_HAVE_BOOL): Likewise.
27154         (_G_HAVE_ATEXIT): Likewise.
27155         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27156         (_G_HAVE_IO_FILE_OPEN): Likewise.
27157         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27158         (_G_int32_t): Likewise.
27159         (_G_uint16_t): Likewise.
27160         (_G_uint32_t): Likewise.
27161         (_G_HAVE_BOOL): Likewise.
27162         (_G_HAVE_ATEXIT): Likewise.
27163         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27164         (_G_HAVE_IO_FILE_OPEN): Likewise.
27165
27166 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27167
27168         * csu/libc-tls.c: Update copyright years.
27169
27170 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27171
27172         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27173         [!_G_USING_THUNKS]: Remove conditional code.
27174         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27175         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27176
27177         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27178         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27179         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27180         (_G_VTABLE_LABEL_PREFIX): Likewise.
27181         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27182         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27183         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27184         (_G_VTABLE_LABEL_PREFIX): Likewise.
27185         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27186         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27187         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27188         (_G_VTABLE_LABEL_PREFIX): Likewise.
27189         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27190
27191 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27192
27193         * libio/Makefile: Include ../Makeconfig before tests.
27194         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27195         only if $(build-shared) is yes.
27196
27197         * iconv/gconv_db.c: Update copyright years.
27198
27199 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27200
27201         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27202         unwind info if defined PIC. Fix special cases description.
27203         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27204
27205         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27206         DP_HI_MASK entry.
27207         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27208
27209 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27210
27211         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27212
27213         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27214         is NULL.
27215
27216         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27217         (LDLIBS-tst-chk4): This.
27218         (LDFLAGS-tst-chk5): Renamed to ...
27219         (LDLIBS-tst-chk5): This.
27220         (LDFLAGS-tst-chk6): Renamed to ...
27221         (LDLIBS-tst-chk6): This.
27222         (LDFLAGS-tst-lfschk4): Renamed to ...
27223         (LDLIBS-tst-lfschk4): This.
27224         (LDFLAGS-tst-lfschk5): Renamed to ...
27225         (LDLIBS-tst-lfschk5): This.
27226         (LDFLAGS-tst-lfschk6): Renamed to ...
27227         (LDLIBS-tst-lfschk6): This.
27228
27229         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
27230         on $(common-objpfx)soversions.mk.
27231
27232 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
27233
27234         [BZ #10014]
27235         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
27236         example host name.
27237
27238 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
27239
27240         * malloc/arena.c (arena_get_retry): New function that gets
27241         another arena for the caller to try its request on.
27242         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
27243         current arena cannot fulfill the request.
27244         (__libc_memalign): Likewise.
27245         (__libc_memalign): Likewise.
27246         (__libc_pvalloc): Likewise.
27247         (__libc_calloc): Likewise.
27248
27249 2012-09-05  John Tobey  <john.tobey@gmail.com>
27250
27251         [BZ #13542]
27252         * manual/arith.texi (Operations on Complex): Fix description
27253         of carg branch cut.
27254
27255 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27256
27257         [BZ #10014]
27258         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
27259         host name.
27260
27261         [BZ #10038]
27262         * manual/memory.texi (Memory): Make order of menu items match
27263         order of sections.
27264
27265 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27266
27267         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
27268         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
27269         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
27270
27271 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27272
27273         * csu/libc-tls.c (static_dtv): Renamed to ...
27274         (_dl_static_dtv): This.  Make it global.
27275         (_dl_initial_dtv): Removed.
27276         (__libc_setup_tls): Updated.
27277         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
27278         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
27279         DL_INITIAL_DTV.
27280
27281 2012-09-06  Petr Machata  <pmachata@redhat.com>
27282
27283         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
27284         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
27285         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
27286         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
27287
27288 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27289
27290         [BZ #14545]
27291         * csu/libc-tls.c (_dl_initial_dtv): New variable.
27292         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
27293         freeing dtv[-1].
27294
27295 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27296
27297         [BZ #14544]
27298         * Makeconfig (link-static-before-libc): Replace $(+prector)
27299         with $(+prectorT).
27300         (link-static-after-libc): Replace $(+postctor) with
27301         $(+postctorT).
27302         (link-bounded): Replace $(+prector)/$(+postctor) with
27303         $(+prectorT)/$(+postctorT).
27304         (+prectorT): New macro.
27305         (+postctorT): Likewise.
27306
27307 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27308
27309         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
27310         (round_str): Handle values above the maximum for IBM long double
27311         as inexact.
27312         * stdlib/tst-strtod-round.c (tests): Regenerated.
27313
27314 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27315
27316         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
27317         assembler flag.
27318         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
27319         zarch_nohighgprs around the zarch optimized routines.
27320         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27321         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27322         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
27323         for zarch.
27324
27325 2012-09-05  David S. Miller  <davem@davemloft.net>
27326
27327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27328
27329         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
27330         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
27331         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
27332         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
27333         entries.
27334
27335 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27336
27337         * malloc/arena.c: Fold copyright years.
27338         * malloc/mcheck.c, malloc/memusage.c: Likewise.
27339
27340 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27341
27342         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
27343
27344 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27345
27346         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
27347
27348 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27349
27350         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
27351         change internal state upon failure.
27352
27353 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27354
27355         * malloc/mcheck.c (mcheck_check_all): Fix typo.
27356         * malloc/memusage.c (mmap): Likewise.
27357         (mmap64, mremap): Likewise.  Adjust name in comment.
27358
27359 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27360
27361         * libio/fileops.c: Fix typos in comments.
27362         * libio/oldfileops.c: Likewise.
27363         * libio/wfileops.c: Likewise.
27364
27365 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27366
27367         [BZ #1349]
27368         * malloc/Makefile (tests): Add tst-malloc-usable test case.
27369         (tst-malloc-usable-ENV): Set environment for test case.
27370         * malloc/hooks.c (malloc_check_get_size): New function to get
27371         requested size.
27372         * malloc/malloc.c (musable): Use malloc_check_get_size.
27373         * malloc/tst-malloc-usable.c: New test case.
27374
27375 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27376
27377         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
27378
27379 2012-09-05  Allan McRae  <allan@archlinux.org>
27380
27381         [BZ #13966]
27382         * configure.in (CXX_SYSINCLUDES): Use compiler output to
27383         determine header location.
27384         * configure: Regenerated.
27385
27386 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27387
27388         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
27389         float format.
27390         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
27391         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
27392         format.
27393         (test): Regenerate.
27394
27395 2012-09-04  David S. Miller  <davem@davemloft.net>
27396
27397         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
27398         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
27399         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
27400
27401 2012-09-04  Florian Weimer  <fweimer@redhat.com>
27402
27403         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
27404         failures.
27405
27406         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
27407
27408 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
27409
27410         [BZ #9914]
27411         * libio/iogetdelim.c: Include <limits.h>.
27412         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
27413         + len + 1 would overflow.
27414
27415 2012-09-03  Andreas Jaeger  <aj@suse.de>
27416
27417         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27418         * sysdeps/i386/fpu/libm-test-ulps: Update.
27419
27420 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27421
27422         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27423         Add s_sinf-sse2, s_conf-sse2.
27424
27425         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
27426         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
27427         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
27428         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
27429
27430         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
27431         for using routine as __sinf_ia32.
27432         Use macro for function declaration and weak_alias.
27433         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
27434         for using routine as __cosf_ia32.
27435         Use macro for function declaration and weak_alias.
27436
27437         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
27438         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
27439
27440         * sysdeps/x86_64/fpu/s_sinf.S: New file.
27441         * sysdeps/x86_64/fpu/s_cosf.S: New file.
27442         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27443
27444         * math/libm-test.inc (cos_test): Add more test cases.
27445         (sin_test): Likewise.
27446         (sincos_test): Likewise.
27447
27448 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27449
27450         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27451         (IFUNC_RESOLVE): Make pointers to the specialized implementations
27452         hidden.
27453         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27454
27455 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
27456
27457         [BZ #14538]
27458         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
27459         first element of the GOT.
27460         (elf_machine_load_address): Return the difference between
27461         the runtime address of _DYNAMIC and elf_machine_dynamic ().
27462
27463 2012-09-01  Allan McRae  <allan@archlinux.org>
27464
27465         [BZ #13412]
27466         * configure.in (AWK): Require gawk version 3.0 or later.
27467         * configure: Regenerated.
27468
27469 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
27470
27471         * sysdeps/unix/sysv/linux/kernel-features.h
27472         (__ASSUME_POSIX_CPU_TIMERS): Remove.
27473         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27474         [__NR_clock_getres]: Make code unconditional.
27475         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
27476         (clock_getcpuclockid): Remove code left unreachable by removal of
27477         conditionals.
27478         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
27479         code unconditional.
27480         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27481         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27482         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
27483         Make code unconditional.
27484         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27485         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27486         * sysdeps/unix/sysv/linux/clock_settime.c
27487         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
27488         conditional code.
27489         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
27490         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27491
27492 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
27493
27494         [BZ #14476]
27495         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
27496         scripts/test-installation.pl.
27497
27498         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
27499         and $ld_so_version if it is set.
27500
27501 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
27502
27503         [BZ #14516]
27504         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
27505         failure if reading from procfs failed.
27506         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
27507
27508 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27509
27510         * sysdeps/unix/sysv/linux/kernel-features.h
27511         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
27512         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27513         Remove conditional code.
27514         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27515         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
27516         Remove conditional code.
27517         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27518         * sysdeps/unix/sysv/linux/i386/fxstat.c
27519         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27520         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27521         * sysdeps/unix/sysv/linux/i386/fxstatat.c
27522         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27523         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27524         * sysdeps/unix/sysv/linux/i386/lxstat.c
27525         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27526         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27527         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
27528         Remove conditional code.
27529         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27530         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27531         Remove conditional code.
27532         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27533         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
27534         <kernel-features.h>.
27535         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
27536         Remove.
27537         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
27538         Remove conditional code.
27539         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27540         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
27541         Remove conditional.
27542
27543 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
27544
27545         [BZ #5400]
27546         * NEWS: Add fixed bug number.
27547
27548 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27549
27550         [BZ #14519]
27551         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
27552         underflowing exponent in case of negative sign.
27553         * stdlib/tst-strtod-round-data: Add more tests.
27554         * stdlib/tst-strtod-round.c (tests): Regenerated.
27555
27556         [BZ #3479]
27557         * stdlib/strtod_l.c (NDIG): Remove.
27558         (HEXNDIG): Likewise.
27559         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
27560         smallest representable value.
27561         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
27562         lie within an exact representation of 1/2 ulp of the result.
27563         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
27564         unconditionally.
27565         (TENS_P9_IDX): Define unconditionally.
27566         (TENS_P9_SIZE): Likewise.
27567         (TENS_P10_IDX): Likewise.
27568         (TENS_P10_SIZE): Likewise.
27569         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
27570         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
27571         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
27572         entries for 10^2^13 and 10^2^14.
27573         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
27574         (TENS_P13_IDX): Define.
27575         (TENS_P13_SIZE): Likewise.
27576         (TENS_P14_IDX): Likewise.
27577         (TENS_P14_SIZE): Likewise.
27578         (_fpioconst_pow10): Change array size to
27579         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
27580         unconditional.
27581         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
27582         1024]: Add entries for 10^2^13 and 10^2^14.
27583         [LAST_POW10 > _LAST_POW10]: Remove #error.
27584         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
27585         (_fpioconst_pow10): Change array size to
27586         FPIOCONST_POW10_ARRAY_SIZE.
27587         * stdlib/gen-fpioconst.c: New file.
27588         * stdlib/gen-tst-strtod-round.c: Likewise.
27589         * stdlib/tst-strtod-round-data: Likewise.
27590         * stdlib/tst-strtod-round.c: Likewise.
27591         * stdlib/Makefile (tests): Add tst-strtod-round.
27592
27593         [BZ #14459]
27594         * stdlib/strtod_l.c: Include <stdint.h>.
27595         (NDEBUG): Do not define.
27596         (round_and_return): Change EXPONENT parameter to type intmax_t.
27597         Rearrange calculations to avoid internal overflow possibilities.
27598         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
27599         Rearrange calculations to avoid internal overflow possibilities.
27600         Assert that number fits inside MPNSIZE limbs.
27601         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
27602         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
27603         calculations and add assertions to avoid internal overflow
27604         possibilities.  Add casts to avoid signed/unsigned operations.
27605         * stdlib/tst-strtod-overflow.c: New file.
27606         * stdlib/Makefile (tests): Add tst-strtod-overflow.
27607
27608 2012-08-25  Marek Polacek  <polacek@redhat.com>
27609
27610         * time/time.h: Fix some typos in comments.
27611
27612 2012-08-23  Roland McGrath  <roland@hack.frob.com>
27613
27614         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
27615         * posix/tst-rfc3484-2.c: Likewise.
27616         * posix/tst-rfc3484-3.c: Likewise.
27617
27618 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
27619
27620         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
27621         (EF_ARM_ABI_FLOAT_HARD): Likewise.
27622
27623 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
27624
27625         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
27626         #include of fxstatat64.c.
27627
27628 2012-08-22  Roland McGrath  <roland@hack.frob.com>
27629
27630         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
27631         * shadow/getspent_r.c: Likewise.
27632         * shadow/getspnam.c: Likewise.
27633         * shadow/getspnam_r.c: Likewise.
27634         * gshadow/getsgent.c: Likewise.
27635         * gshadow/getsgent_r.c: Likewise.
27636         * gshadow/getsgnam.c: Likewise.
27637         * gshadow/getsgnam_r.c: Likewise.
27638         * inet/getnetbyad.c: Likewise.
27639         * inet/getnetbyad_r.c: Likewise.
27640         * inet/getnetbynm.c: Likewise.
27641         * inet/getnetbynm_r.c: Likewise.
27642         * inet/getnetent.c: Likewise.
27643         * inet/getnetent_r.c: Likewise.
27644         * inet/getproto.c: Likewise.
27645         * inet/getproto_r.c: Likewise.
27646         * inet/getprtent.c: Likewise.
27647         * inet/getprtent_r.c: Likewise.
27648         * inet/getprtname.c: Likewise.
27649         * inet/getprtname_r.c: Likewise.
27650         * inet/getrpcbyname.c: Likewise.
27651         * inet/getrpcbyname_r.c: Likewise.
27652         * inet/getrpcbynumber.c: Likewise.
27653         * inet/getrpcbynumber_r.c: Likewise.
27654         * inet/getrpcent.c: Likewise.
27655         * inet/getrpcent_r.c: Likewise.
27656         * inet/getaliasent.c: Likewise.
27657         * inet/getaliasent_r.c: Likewise.
27658         * inet/getaliasname.c: Likewise.
27659         * inet/getaliasname_r.c: Likewise.
27660         * nscd/getgrgid_r.c: Likewise.
27661         * nscd/getgrnam_r.c: Likewise.
27662         * nscd/gethstbyad_r.c: Likewise.
27663         * nscd/gethstbynm3_r.c: Likewise.
27664         * nscd/getpwnam_r.c: Likewise.
27665         * nscd/getpwuid_r.c: Likewise.
27666         * nscd/getsrvbynm_r.c: Likewise.
27667         * nscd/getsrvbypt_r.c: Likewise.
27668         * nscd/gai.c: Likewise.
27669
27670         * configure.in (build_nscd): New substituted variable, set
27671         by --disable-build-nscd and defaults to $use_nscd.
27672         * configure: Regenerated.
27673         * config.make.in (build-nscd): New substituted variable.
27674         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
27675         Change conditional to require [$(build-nscd) = yes] as well.
27676         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
27677
27678         [BZ# 13696]
27679         * configure.in (use_nscd): New substituted variable, set by
27680         --disable-nscd.  If enabled, define USE_NSCD.
27681         * configure: Regenerated.
27682         * config.h.in: Add USE_NSCD.
27683         * config.make.in (use-nscd): New substituted variable.
27684         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
27685         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
27686         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
27687         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
27688         (CFLAGS-getgrnam_r.c): Likewise.
27689         (CFLAGS-initgroups.c): Likewise.
27690         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
27691         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
27692         Variables removed.
27693         * inet/getnetgrent_r.c
27694         (nscd_setnetgrent): New function, broken out of ...
27695         (setnetgrent): ... here.  Call it.
27696         (innetgr): Conditionalize nscd bits on [USE_NSCD].
27697         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
27698         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
27699         * nscd/Makefile (routines, aux): Move definitions after include of
27700         Makeconfig.  Conditionalize on [$(use-nscd) != no].
27701         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
27702         Conditionalize on [USE_NSCD].
27703         (is_nscd, nscd_init_cb): Likewise.
27704         (nss_load_library): Conditionalize init callback on [USE_NSCD].
27705         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
27706         * nss/nss_db/db-init.c: Likewise.
27707         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
27708         [USE_NSCD].
27709         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
27710         (make_request): Use it.
27711         (cache_valid_p): New function.
27712         (__check_pf): Use it.
27713         * NEWS: Add item for --disable-nscd.
27714
27715 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
27716
27717         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
27718         to support sed >= 4.2.1-20-ga9bf076.
27719         * configure: Regenerated.
27720
27721 2012-08-22  Roland McGrath  <roland@hack.frob.com>
27722
27723         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
27724         Conditionalize whole body on [IREL].
27725
27726 2012-08-22  Jeff Law <law@redhat.com>
27727
27728         [BZ #14505]
27729         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
27730         if the family is PF_UNSPEC.
27731
27732 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
27733
27734         * Makerules (lib-version): Rename from V.
27735         (install-lib-nosubdir): Change V to lib-version.
27736
27737 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
27738
27739         [BZ #14252]
27740         * powerpc32/power6/wcschr.c: New file.
27741         * powerpc32/power6/wcscpy.c: New file.
27742         * powerpc32/power6/wcsrchr.c: New file.
27743         * powerpc64/power6/wcschr.c: New file.
27744         * powerpc64/power6/wcscpy.c: New file.
27745         * powerpc64/power6/wcsrchr.c: New file.
27746
27747 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
27748
27749         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
27750         (two_way_short_needle): Use it.
27751         * string/strstr.c (AVAILABLE1_USES_J): Define.
27752         * string/strcasestr.c: Likewise.
27753
27754         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
27755         array references.
27756         * string/strcasestr.c (TOLOWER): Make side-effect safe.
27757
27758         [BZ #11607]
27759         * NEWS: Add an entry.
27760         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
27761         define their defaults.
27762         (two_way_short_needle): Detect end-of-string on-the-fly.
27763         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
27764         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
27765         * string/bug-strcasestr1.c: New test.
27766         * string/Makefile: Run it.
27767
27768 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
27769
27770         [BZ #11607]
27771         * string/str-two-way.h (two_way_short_needle): Optimize matching of
27772         the first character.
27773
27774 2012-08-21  Roland McGrath  <roland@hack.frob.com>
27775
27776         * csu/elf-init.c (__libc_csu_irel): Function removed.
27777         * csu/libc-start.c (apply_irel): New function.
27778         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
27779
27780 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
27781
27782         * sysdeps/unix/sysv/linux/kernel-features.h
27783         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
27784         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
27785         <kernel-features.h>.
27786         [__NR_fadvise64_64]: Make code unconditional.
27787         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
27788         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
27789         !__NR_fadvise64_64)]: Likewise.
27790         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
27791         !__NR_fadvise64_64))]: Likewise.
27792         [__NR_fadvise64]: Make code unconditional.
27793         [!__NR_fadvise64]: Remove conditional code.
27794         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
27795         <kernel-features.h>.
27796         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27797         unconditional.
27798         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27799         conditional code.
27800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
27801         not include <kernel-features.h>.
27802         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27803         unconditional.
27804         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27805         conditional code.
27806         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
27807         include <kernel-features.h>.
27808         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27809         unconditional.
27810         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27811         conditional code.
27812
27813 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27814
27815         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
27816         slight instruction rearrangements per scrollpipe analysis.
27817         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
27818
27819 2012-08-20  Roland McGrath  <roland@hack.frob.com>
27820
27821         * manual/syslog.texi (syslog; vsyslog, closelog):
27822         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
27823         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
27824
27825         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
27826         DSOCAPS to match condition on defining it.
27827
27828 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
27829
27830         * sysdeps/unix/sysv/linux/kernel-features.h
27831         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
27832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
27833         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27834         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
27836         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27837         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
27839         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27840         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27841
27842         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
27843         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
27844
27845         * sysdeps/unix/sysv/linux/kernel-features.h
27846         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
27847         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
27848         unconditional.
27849         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27850         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
27851         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
27852         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27853         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
27854         Make code unconditional.
27855         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27856         (__mmap64) [!__NR_mmap2]: Likewise.
27857         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
27858         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
27859         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27860         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
27861         [__NR_mmap2]: Make code unconditional.
27862         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27863         (__mmap64) [!__NR_mmap2]: Likewise.
27864
27865 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27866
27867         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
27868
27869 2012-08-18  Andreas Jaeger  <aj@suse.de>
27870
27871         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
27872
27873 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
27874
27875         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
27876         * include/unistd.h (__have_sock_cloexec): Likewise.
27877         (__have_pipe2): Likewise.
27878         (__have_dup3): Likewise.
27879
27880 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
27881
27882         [BZ #9685]
27883         * include/unistd.h (__have_pipe2): Change define into an extern int.
27884         (__have_dup3): Likewise.
27885         * socket/have_sock_cloexec.c: Include fcntl.h.
27886         (__have_pipe2): New variable.
27887         (__have_dup3): Likewise.
27888
27889 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
27890
27891         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
27892
27893 2012-08-17  Marek Polacek  <polacek@redhat.com>
27894
27895         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
27896         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
27897
27898 2012-08-17  Roland McGrath  <roland@hack.frob.com>
27899
27900         * configure.in: Add AC_SUBST for sysheaders.
27901         * configure: Regenerated.
27902         * config.make.in (sysheaders): New substituted variable.
27903
27904         * sysdeps/unix/mkfifo.c: Moved ...
27905         * sysdeps/posix/mkfifo.c: ... here.
27906         * sysdeps/unix/mkfifoat.c: Moved ...
27907         * sysdeps/posix/mkfifoat.c: ... here.
27908
27909         * sysdeps/unix/utime.c: Moved ...
27910         * sysdeps/posix/utime.c: ... here.
27911
27912         * sysdeps/unix/time.c: Moved ...
27913         * sysdeps/posix/time.c: ... here.
27914         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
27915         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
27916
27917         * sysdeps/unix/nice.c: Moved ...
27918         * sysdeps/posix/nice.c: ... here.
27919
27920         * sysdeps/unix/alarm.c: Moved ...
27921         * sysdeps/posix/alarm.c: ... here.
27922
27923         * intl/Makefile ($(codeset_mo)): Depend on the input file.
27924
27925 2012-08-17  Jeff Law <law@redhat.com>
27926
27927         * intl/Makefile (codeset_mo): New variable.
27928         ($(codeset_mo)): New target.
27929         (tst-codeset.out): Depend on that.  Remove explicit rule.
27930         (tst-gettext3.out, tst-gettext5.out): Likewise.
27931         (LOCPATH-ENV, tst-codeset-ENV): New variables.
27932         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
27933         * intl/tst-codeset.sh: Remove.
27934         * intl/tst-gettext3.sh: Likewise.
27935         * intl/tst-gettext5.sh: Likewise.
27936
27937 2012-08-17  Roland McGrath  <roland@hack.frob.com>
27938
27939         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
27940         * sysdeps/unix/syscalls.list: ... here.
27941
27942         * sysdeps/posix/getaddrinfo.c
27943         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
27944         (gaiconf_init, gaiconf_reload): Use them.
27945         [!_STATBUF_ST_NSEC]
27946         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
27947         Define using time_t rather than struct timespec.
27948
27949         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
27950         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
27951         Macros removed.
27952         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
27953         [!NO_THREADS].
27954         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
27955         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
27956         Likewise.
27957
27958         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
27959         __libc_cleanup_push argument.
27960
27961         * bits/param.h: New file.
27962         * misc/sys/param.h: New file.
27963         * include/sys/param.h: New file.
27964         * misc/Makefile (headers): Add bits/param.h.
27965         * sysdeps/generic/sys/param.h: File removed.
27966         * sysdeps/unix/sysv/linux/bits/param.h: New file.
27967         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
27968         * sysdeps/mach/hurd/bits/param.h: New file.
27969         * sysdeps/mach/hurd/sys/param.h: File removed.
27970
27971         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
27972         last change.
27973
27974         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
27975         [_IO_MTSAFE_IO].
27976         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
27977         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
27978         New macros.
27979
27980         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
27981         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
27982         rather than -D_IO_MTSAFE_IO conditionally.
27983         * stdio-common/Makefile (CPPFLAGS): Likewise.
27984         * wcsmbs/Makefile (CPPFLAGS): Likewise.
27985         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
27986         Use $(libio-mtsafe).
27987         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
27988         of -D_IO_MTSAFE_IO.
27989         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
27990         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
27991         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
27992         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
27993         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
27994         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
27995         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
27996         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
27997         (CFLAGS-fread_u_chk.c): Likewise.
27998         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
27999         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28000         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28001         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28002         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28003         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28004         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28005         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28006         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28007
28008         * libio/Makefile: Test [$(libc-reentrant) = yes]
28009         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28010
28011         * Makeconfig
28012         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28013         * sysdeps/pthread/configure: File removed.
28014         * sysdeps/pthread/Makeconfig: New file.
28015         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28016         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28017
28018 2012-08-16  Gary Benson  <gbenson@redhat.com>
28019
28020         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28021         unmapping the first object in a namespace.
28022
28023 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28024
28025         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28026         (__internal_setnetgrent): ... this.  Add internal_function to
28027         definition.  Add libc_hidden_def.
28028         (setnetgrent): Update caller.
28029         (internal_endnetgrent): Renamed to ...
28030         (__internal_endnetgrent): ... this.  Add internal_function to
28031         definition.  Add libc_hidden_def.
28032         (endnetgrent): Update caller.
28033         (internal_getnetgrent_r): Renamed to ...
28034         (__internal_getnetgrent_r): ... this.  Add internal_function to
28035         definition.  Add libc_hidden_def.
28036         (__getnetgrent_r): Update caller.
28037         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28038
28039 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28040
28041         * stdlib/longlong.h: Update from GCC.
28042
28043 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28044
28045         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28046         on _QL, which is set by umul_ppmm but never used.
28047         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28048         variables, which are set by GMP macros but never used.
28049         * stdio-common/_itowa.c (_itowa): Likewise.
28050         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28051         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28052
28053 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28054
28055         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28056         struct La_sh_regs is not constant.
28057         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28058         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28059         and struct La_sparc64_regs are not constant.
28060
28061 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28062
28063         * sysdeps/unix/sysv/linux/kernel-features.h
28064         (__ASSUME_POSIX_TIMERS): Remove.
28065         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28066         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28067         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28068         Make code unconditional.
28069         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28070         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28071         Make code unconditional.
28072         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28073         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28074         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28075         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28076         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28077         Make code unconditional.
28078         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28079         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28080         (__libc_missing_posix_timers): Remove.
28081
28082 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28083
28084         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28085         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28086
28087         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28088
28089         * elf/dl-sym.c: Include <stdlib.h>.
28090
28091         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28092         constants, which avoids warnings in 32-bit builds.
28093
28094         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28095         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28096
28097         * misc/lseek.c: File moved to ...
28098         * io/lseek.c: ... here.
28099
28100         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28101
28102         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28103         shifting LEN more than 31 bits at once.
28104
28105 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28106
28107         [BZ #14195]
28108         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28109         segmentation fault for a case of two empty input strings.
28110         * string/test-strncasecmp.c (check1): Renamed to...
28111         (bz12205): ...this.
28112         (bz14195): Add new testcase for two empty input strings and N > 0.
28113         (test_main): Call new testcase, adapt for renamed function.
28114
28115 2012-08-15  Andreas Jaeger  <aj@suse.de>
28116
28117         [BZ #14090]
28118         * crypt/md5test2.c: New test, based on test supplied by Serge
28119         Belyshev <belyshev@depni.sinp.msu.ru>.
28120         * crypt/Makefile (xtests): Add md5test-giant..
28121         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28122
28123 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28124
28125         [BZ #14090]
28126         * crypt/md5.c (md5_process_block): Don't assume the buffer
28127         length is less than 2**32.
28128         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28129         length is less than 2**64.
28130
28131 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28132
28133         * string/str-two-way.h: Include <sys/param.h>.
28134         (MAX): Macro removed.
28135
28136         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28137         Move #define and #undef of memmove to just before and after
28138         including <string.h>.
28139
28140         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28141         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28142         and after including <string.h>.  Move declarations of
28143         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28144         to before #include "string/memmove.c".
28145
28146         * include/dirent.h: Declare __getdirentries.
28147
28148         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28149         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28150
28151 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28152
28153         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28154         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28155         * sysdeps/i386/configure: Regenerated.
28156         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28157         STABS_CURRENT_FILE, and STABS_FUN.
28158         (END): Remove call to STABS_FUN_END.
28159         (STABS_CURRENT_FILE1): Delete.
28160         (STABS_CURRENT_FILE): Likewise.
28161         (STABS_FUN): Likewise.
28162         (STABS_FUN_END): Likewise.
28163         (STABS_FUN2): Likewise.
28164         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28165         * sysdeps/x86_64/configure: Regenerated.
28166
28167 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28168
28169         * elf/dl-open.c: Include <atomic.h>.
28170         * elf/dl-lookup.c: Likewise.
28171
28172 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28173
28174         * sysdeps/unix/sysv/linux/kernel-features.h
28175         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28176         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28177         unconditionally.
28178         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28179         unconditionally.
28180         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28181         condition on __ASSUME_CLONE_THREAD_FLAGS.
28182
28183 2012-08-14  Andreas Jaeger  <aj@suse.de>
28184
28185         * sysdeps/i386/fpu/libm-test-ulps: Update.
28186
28187 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28188
28189         * include/atomic.h (atomic_exchange_and_add): Split into ...
28190         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28191         New atomic macros.
28192
28193 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28194
28195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28196
28197 2012-08-13  Jeff Law <law@redhat.com>
28198
28199         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28200         null byte in the output string.
28201
28202 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28203
28204         * sysdeps/unix/sysv/linux/kernel-features.h
28205         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28206         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28207         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28208         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28209         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28210         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28211         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28212
28213 2012-08-09  Jeff Law <law@redhat.com>
28214
28215         [BZ #13939]
28216         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28217         When avoid_arena is set, don't retry in the that arena.  Pick the
28218         next one, whatever it might be.
28219         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28220         (arena_lock): Pass in new parameter to arena_get2.
28221         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28222         arena_get2.
28223         (__libc_malloc): Unify retrying after main arena failure with
28224         __libc_memalign version.
28225         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
28226
28227 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28228
28229         [BZ #14166]
28230         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
28231         to __redirect_strstr.
28232         (__strstr_sse42): Use typeof __redirect_strstr.
28233         (__strstr_ia32): Likewise.
28234         (__libc_strstr): New prototype.
28235         (strstr): Renamed to ...
28236         (__libc_strstr): This.
28237         (strstr): New strong alias of __libc_strstr.
28238         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
28239         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
28240         __redirect_time.
28241         Include <time.h>.
28242         (__libc_time): New prototype.
28243         (time_ifunc): Replace time with __libc_time.
28244         (time): New strong alias and hidden definition of __libc_time.
28245         (__GI_time): Remove strong alias.
28246         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
28247         Include <stddef.h>.
28248         (memmove): Redefined to __redirect_memmove.
28249         (__memmove_sse2): Use typeof __redirect_memmove.
28250         (__memmove_ssse3): Likewise.
28251         (__memmove_ssse3_back): Likewise.
28252         (__libc_memmove): New prototype.
28253         (memmove): Renamed to ...
28254         (__libc_memmove): This.
28255         (memmove): New strong alias of __libc_memmove.
28256
28257 2012-08-08  Mark Salter  <msalter@redhat.com>
28258
28259         * elf/elf.h
28260         (R_MN10300_TLS_GD): Define.
28261         (R_MN10300_TLS_LD): Likewise.
28262         (R_MN10300_TLS_LDO): Likewise.
28263         (R_MN10300_TLS_GOTIE): Likewise.
28264         (R_MN10300_TLS_IE): Likewise.
28265         (R_MN10300_TLS_LE): Likewise.
28266         (R_MN10300_TLS_DTPMOD): Likewise.
28267         (R_MN10300_TLS_DTPOFF): Likewise.
28268         (R_MN10300_TLS_TPOFF): Likewise.
28269         (R_MN10300_SYM_DIFF): Likewise.
28270         (R_MN10300_ALIGN): Likewise.
28271         (R_MN10300_NUM): Update.
28272
28273 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
28274
28275         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
28276         Remove.
28277
28278 2012-08-08  Roland McGrath  <roland@hack.frob.com>
28279
28280         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
28281
28282         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
28283         sysdeps/unix -> sysdeps/posix move.
28284         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28285
28286 2012-08-07      Allan McRae     <allan@archlinux.org>
28287
28288         [BZ #14303]
28289         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
28290         (SUNOS_CPP): Likewise.
28291         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
28292         not found.
28293         (open_input): Call CPP using execvp.
28294
28295 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28296
28297         * sysdeps/unix/sysv/linux/kernel-features.h
28298         (__ASSUME_PROT_GROWSUPDOWN): Remove.
28299         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28300         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28301         (__ASSUME_WAITID_SYSCALL): Likewise.
28302         * sysdeps/unix/sysv/linux/dl-execstack.c
28303         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
28304         code unconditional.
28305         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
28306         conditional code.
28307         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
28308         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
28309         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
28310         code.
28311         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
28312         unconditional.
28313         [__ASSUME_WAITID_SYSCALL]: Likewise.
28314         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
28315
28316 2012-08-07  Roland McGrath  <roland@hack.frob.com>
28317
28318         * sysdeps/unix/closedir.c: Renamed to ...
28319         * sysdeps/posix/closedir.c: ... here.
28320         * sysdeps/unix/dirfd.c: Renamed to ...
28321         * sysdeps/posix/dirfd.c: ... here.
28322         * sysdeps/unix/dirstream.h: Renamed to ...
28323         * sysdeps/posix/dirstream.h: ... here.
28324         * sysdeps/unix/fdopendir.c: Renamed to ...
28325         * sysdeps/posix/fdopendir.c: ... here.
28326         * sysdeps/unix/opendir.c: Renamed to ...
28327         * sysdeps/posix/opendir.c: ... here.
28328         * sysdeps/unix/readdir.c: Renamed to ...
28329         * sysdeps/posix/readdir.c: ... here.
28330         * sysdeps/unix/readdir_r.c: Renamed to ...
28331         * sysdeps/posix/readdir_r.c: ... here.
28332         * sysdeps/unix/rewinddir.c: Renamed to ...
28333         * sysdeps/posix/rewinddir.c: ... here.
28334         * sysdeps/unix/seekdir.c: Renamed to ...
28335         * sysdeps/posix/seekdir.c: ... here.
28336         * sysdeps/unix/telldir.c: Renamed to ...
28337         * sysdeps/posix/telldir.c: ... here.
28338         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
28339         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
28340         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28341         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
28342
28343         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
28344         * bits/fcntl.h: ... here.
28345
28346         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
28347         not 0.
28348         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
28349         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
28350         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
28351         (struct flock): Move l_start, l_len to the beginning.
28352         Use __pid_t for l_pid.
28353         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
28354         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
28355         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
28356         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
28357         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
28358         [__USE_LARGEFILE64] (struct flock64): New type.
28359         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
28360
28361         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
28362         * bits/dirent.h: ... here.
28363
28364         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
28365         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
28366
28367 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28368
28369         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28370         Change from 2.6.0 to 2.6.16.
28371         * sysdeps/unix/sysv/linux/configure: Regenerated.
28372         * sysdeps/unix/sysv/linux/kernel-features.h
28373         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
28374         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
28375         version.
28376         (__ASSUME_UTIMES): Likewise.
28377         (__ASSUME_CLONE_STOPPED): Remove.
28378         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
28379         architectures, not kernel version.
28380         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
28381         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28382         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28383         (__ASSUME_WAITID_SYSCALL): Likewise.
28384         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
28385         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
28386         * README: State 2.6.16 as minimum Linux kernel version.  Do not
28387         refer to older versions.
28388
28389 2012-08-06  Roland McGrath  <roland@hack.frob.com>
28390
28391         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
28392         Define alphasort64 as an alias.
28393         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
28394         Define versionsort64 as an alias.
28395         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
28396         Define scandir64 as an alias.
28397         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
28398         Define scandirat64 as an alias.
28399         * dirent/alphasort64.c (alphasort64):
28400         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
28401         * dirent/versionsort64.c: Likewise.
28402         * dirent/scandir64.c: Likewise.
28403         * dirent/scandirat64.c: Likewise.
28404         * sysdeps/wordsize-64/alphasort.c: File removed.
28405         * sysdeps/wordsize-64/alphasort64.c: File removed.
28406         * sysdeps/wordsize-64/scandir.c: File removed.
28407         * sysdeps/wordsize-64/scandir64.c: File removed.
28408         * sysdeps/wordsize-64/scandirat.c: File removed.
28409         * sysdeps/wordsize-64/scandirat64.c: File removed.
28410         * sysdeps/wordsize-64/versionsort.c: File removed.
28411         * sysdeps/wordsize-64/versionsort64.c: File removed.
28412         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
28413         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
28414         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
28415         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
28416         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
28417         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
28418         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
28419         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
28420
28421         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
28422         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28423         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
28424         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28425         [defined __arch64__ || defined __sparcv9]
28426         (__INO_T_MATCHES_INO64_T): New macro.
28427         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28428         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
28429         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
28430         * sysdeps/unix/sysv/linux/bits/dirent.h
28431         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
28432         (_DIRENT_MATCHES_DIRENT64): New macro.
28433
28434         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
28435         Define lockf64 as an alias.
28436         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
28437         Define fseeko64 as an alias.
28438         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
28439         Define ftello64 as an alias.
28440         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
28441         Define _IO_fgetpos64 and fgetpos64 as aliases.
28442         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
28443         Define _IO_fsetpos64 and fsetpos64 as aliases.
28444         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
28445         Conditionalize body on this.
28446         * libio/fseeko64.c: Likewise.
28447         * libio/ftello64.c: Likewise.
28448         * libio/iofgetpos64.c: Likewise.
28449         * libio/iofsetpos64.c: Likewise.
28450         * sysdeps/wordsize-64/lockf.c: File removed.
28451         * sysdeps/wordsize-64/lockf64.c: File removed.
28452         * sysdeps/wordsize-64/fseeko.c: File removed.
28453         * sysdeps/wordsize-64/fseeko64.c: File removed.
28454         * sysdeps/wordsize-64/ftello.c: File removed.
28455         * sysdeps/wordsize-64/ftello64.c: File removed.
28456         * sysdeps/wordsize-64/iofgetpos.c: File removed.
28457         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
28458         * sysdeps/wordsize-64/iofsetpos.c: File removed.
28459         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
28460         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
28461         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
28462         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
28463         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
28464         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
28465         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
28466         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
28467         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
28468         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
28469         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
28470
28471         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28472         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28473         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
28474         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28475         [defined __arch64__ || defined __sparcv9]
28476         (__OFF_T_MATCHES_OFF64_T): New macro.
28477         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28478         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28479         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28480         (__OFF_T_MATCHES_OFF64_T): New macro.
28481
28482 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28483
28484         * stdlib/secure-getenv.c (__secure_getenv): Replace
28485         GLIBC_2_16 with GLIBC_2_17.
28486
28487 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28488
28489         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
28490         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
28491
28492 2012-08-03  David S. Miller  <davem@davemloft.net>
28493
28494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28495
28496 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28497
28498         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
28499         Remove.
28500         (__ASSUME_CORRECT_SI_PID): Likewise.
28501         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
28502         (__ASSUME_TMPFS_NAME): Likewise.
28503         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
28504         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
28505         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
28506         (HAVE_AUX_SECURE): Make definition unconditional.
28507         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
28508         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
28509
28510 2012-08-03  Roland McGrath  <roland@hack.frob.com>
28511
28512         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
28513         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
28514         * sysdeps/mach/hurd/eloop-threshold.h: New file.
28515         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
28516         __eloop_threshold instead of SYMLOOP_MAX.
28517
28518         * sysdeps/generic/eloop-threshold.h: New file.
28519         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
28520         of MAXSYMLINKS.
28521         * elf/chroot_canon.c (chroot_canon): Likewise.
28522
28523 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28524
28525         [BZ #13717]
28526         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28527         Change to 2.6.0 everywhere.
28528         * sysdeps/unix/sysv/linux/configure: Regenerated.
28529         * sysdeps/unix/sysv/linux/kernel-features.h
28530         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
28531         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
28532         kernel versions.
28533         (__ASSUME_POSIX_TIMERS): Define unconditionally.
28534         (__ASSUME_FUTEX_REQUEUE): Remove.
28535         (__ASSUME_STATFS64): Define unconditionally.
28536         (__ASSUME_AT_SECURE): Likewise.
28537         (__ASSUME_CORRECT_SI_PID): Likewise.
28538         (__ASSUME_TGKILL): Define without depending on kernel version for
28539         i386.
28540         (__ASSUME_UTIMES): Likewise.
28541         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
28542         kernel version.
28543         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
28544         (__ASSUME_TMPFS_NAME): Likewise.
28545         * README: Update reference to Linux kernel versions.
28546
28547 2012-08-02  Marek Polacek  <polacek@redhat.com>
28548
28549         [BZ# 14150]
28550         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
28551         libc_cv_asm_type_prefix with %.
28552         * configure: Regenerated.
28553         * include/libc-symbols.h: Remove comment about
28554         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28555         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
28556         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
28557         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
28558         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
28559         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28560         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
28561         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
28562         * elf/tst-unique2mod1.c: Likewise.
28563         * elf/tst-unique1mod2.c: Likewise.
28564         * elf/tst-unique1mod1.c: Likewise.
28565         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
28566         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
28567         Replace ASM_TYPE_DIRECTIVE with .type.
28568         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28569         * sysdeps/i386/sysdep.h: Likewise.
28570         * sysdeps/x86_64/sysdep.h: Likewise.
28571         * sysdeps/sh/sysdep.h: Likewise.
28572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28573         Do not define ASM_TYPE_DIRECTIVE.
28574         * sysdeps/powerpc/sysdep.h: Likewise.
28575         * sysdeps/powerpc/powerpc32/sysdep.h:
28576         Replace ASM_TYPE_DIRECTIVE with .type.
28577         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
28578         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
28579         * sysdeps/i386/fpu/e_powf.S: Likewise.
28580         * sysdeps/i386/fpu/e_expl.S: Likewise.
28581         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28582         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28583         * sysdeps/i386/fpu/e_pow.S: Likewise.
28584         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
28585         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28586         * sysdeps/i386/fpu/s_expm1.S: Likewise.
28587         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
28588         * sysdeps/i386/fpu/e_log2.S: Likewise.
28589         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28590         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28591         * sysdeps/i386/fpu/e_powl.S: Likewise.
28592         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28593         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
28594         * sysdeps/i386/fpu/e_logl.S: Likewise.
28595         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
28596         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
28597         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
28598         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28599         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
28600         * sysdeps/i386/fpu/e_log.S: Likewise.
28601         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28602         * sysdeps/i386/fpu/e_logf.S: Likewise.
28603         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28604         * sysdeps/i386/fpu/e_atanh.S: Likewise.
28605         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
28606         * sysdeps/i386/fpu/e_log10.S: Likewise.
28607         * sysdeps/i386/fpu/s_frexp.S: Likewise.
28608         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
28609         * sysdeps/i386/fpu/s_asinh.S: Likewise.
28610         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
28611         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28612         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
28613         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
28614         * sysdeps/i386/i686/strtok.S: Likewise.
28615         * sysdeps/i386/i386-mcount.S: Likewise.
28616         * sysdeps/i386/strtok.S: Likewise.
28617         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
28618         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
28619         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
28620         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
28621         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28622         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
28623         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
28624         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
28625         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
28626         * sysdeps/x86_64/_mcount.S: Likewise.
28627         * sysdeps/x86_64/strtok.S: Likewise.
28628         * sysdeps/sh/_mcount.S: Likewise.
28629
28630 2012-08-01  Roland McGrath  <roland@hack.frob.com>
28631
28632         * libio/iofopen.c: Include <fcntl.h>.
28633         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
28634         (_IO_fopen64, fopen64): Define as aliases.
28635         * libio/iofopen64.c: Include <fcntl.h>.
28636         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
28637         Conditionalize body on this.
28638         * sysdeps/wordsize-64/iofopen.c: File removed.
28639         * sysdeps/wordsize-64/iofopen64.c: File removed.
28640
28641 2012-08-01  Marek Polacek  <polacek@redhat.com>
28642
28643         * libc/Makeconfig: Use elf in place of binfmt-subdir.
28644         Use dlfcn directly instead of a variable.
28645         (binfmt-subdir): Do not define.
28646         (dlfcn): Likewise.
28647
28648 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
28649
28650         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
28651         Remove all definitions.
28652         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
28653         <kernel-features.h>.
28654         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
28655         (miss_F_GETOWN_EX): Remove all definitions.
28656         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
28657         macro definition.
28658         [!__ASSUME_FCNTL64]: Remove conditional code.
28659         [__ASSUME_FCNTL64]: Make code unconditional.
28660         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
28661         <kernel-features.h>.
28662         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
28663         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
28664         (lockf64) [__NR_fcntl64]: Make code unconditional.
28665         (lockf64) [__ASSUME_FCNTL64]: Likewise.
28666
28667         * sysdeps/unix/sysv/linux/kernel-features.h
28668         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
28669         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
28670         Make code unconditional.
28671         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28672         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
28674         [__NR_vfork]: Make code unconditional.
28675         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28676         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
28678         [__NR_vfork]: Make code unconditional.
28679         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28680         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28681
28682 2012-08-01  Roland McGrath  <roland@hack.frob.com>
28683
28684         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
28685         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
28686
28687         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28688         Define mkstemp64 as an alias.
28689         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28690         Define mkstemps64 as an alias.
28691         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28692         Define mkostemp64 as an alias.
28693         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28694         Define mkostemps64 as an alias.
28695         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
28696         Conditionalize body on this.
28697         * misc/mkostemp64.c: Likewise.
28698         * misc/mkostemps64.c: Likewise.
28699         * misc/mkstemps64.c: Likewise.
28700         * sysdeps/wordsize-64/mkstemp64.c: File removed.
28701         * sysdeps/wordsize-64/mkostemp64.c: File removed.
28702         * sysdeps/wordsize-64/mkostemp.c: File removed.
28703         * sysdeps/wordsize-64/mkstemp.c: File removed.
28704         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
28705         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
28706         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
28707         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
28708
28709         [BZ #14138]
28710         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
28711         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
28712         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
28713         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
28714
28715         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
28716         compat_symbol macros from <shlib-compat.h> rather than the underlying
28717         default_symbol_version and symbol_version macros, so that DEFAULT
28718         lines in shlib-versions are respected.
28719         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
28720
28721 2012-08-01  Florian Weimer  <fweimer@redhat.com>
28722
28723         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
28724         Declare with warn_unused_result.
28725         (setgid, setregid, setegid, setresgid): Likewise.
28726         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
28727         Likewise.
28728         * WUR-REPORT: Remove set*id functions.
28729
28730 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
28731
28732         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
28733
28734 2012-07-31  Roland McGrath  <roland@hack.frob.com>
28735
28736         [BZ #10191]
28737         * include/sys/socket.h (__libc_accept, __libc_accept4):
28738         Add attribute_hidden.
28739         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
28740
28741         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
28742         use of PTR_MANGLE.
28743         * inet/getnetgrent_r.c (setup): Likewise.
28744
28745         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
28746
28747 2012-07-31  David S. Miller  <davem@davemloft.net>
28748
28749         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28750
28751 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
28752
28753         [BZ #13629]
28754         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
28755         value between 1.0 and 2.0 and smaller part has absolute value less
28756         than 1.0.
28757         * math/s_clog10.c (__clog10): Likewise.
28758         * math/s_clog10f.c (__clog10f): Likewise.
28759         * math/s_clog10l.c (__clog10l): Likewise.
28760         * math/s_clogf.c (__clogf): Likewise.
28761         * math/s_clogl.c (__clogl): Likewise.
28762         * math/libm-test.inc (clog_test): Add more tests.
28763         (clog10_test): Likewise.
28764         * sysdeps/i386/fpu/libm-test-ulps: Update.
28765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28766
28767 2012-07-31  Florian Weimer  <fweimer@redhat.com>
28768
28769         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
28770         Exit with zero in case no suitable GID is found, and write a
28771         message to standard error.
28772
28773 2012-07-30  Roland McGrath  <roland@hack.frob.com>
28774
28775         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
28776         rather than to 1.
28777         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
28778         (MAXPATHLEN): Removed.
28779         (NOGROUP, NODEV): New macros.
28780         (setbit, clrbit, isset, isclr): New macros.
28781         (howmany, roundup, powerof2): New macros.
28782         (DEV_BSIZE): New macro.
28783
28784         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
28785         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
28786
28787         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
28788         definition on [!__NO_LONG_DOUBLE_MATH].
28789
28790         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
28791         PTR_MANGLE and PTR_DEMANGLE.
28792
28793         * socket/accept4.c (accept4): Rename to __libc_accept4.
28794         Define accept4 as a weak alias.
28795
28796         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
28797         on [_DIRENT_HAVE_D_TYPE].
28798         * io/ftw.c (ftw_dir): Likewise.
28799
28800         * io/xmknod.c (__xmknod): Don't check PATH for being null.
28801
28802         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
28803
28804         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
28805         Use the BSD numbers rather than the arbitrary ones we had.
28806         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
28807         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
28808         (SIGXCPU, SIGXFSZ): New macros.
28809         (_NSIG): Now 32.
28810
28811         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
28812         initializer on [_LIBC_REENTRANT].
28813
28814         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
28815         definitions inside [_POSIX_MAPPED_FILES].
28816
28817         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
28818
28819         * dirent/opendir.c: Include <fcntl.h>.
28820
28821         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
28822         (__libc_getspecific): Likewise.
28823         (__libc_key_create): Likewise.
28824
28825         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
28826         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
28827         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
28828         (tmpfile64): Define as alias.
28829         * sysdeps/wordsize-64/tmpfile.c: File removed.
28830         * sysdeps/wordsize-64/tmpfile64.c: File removed.
28831         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
28832         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
28833
28834         * stdio-common/vfscanf.c: Include <stdbool.h>.
28835         * nss/makedb.c: Likewise.
28836         * stdio-common/_i18n_number.h: Likewise.
28837         * argp/argp-help.c: Likewise.
28838         * posix/wordexp.c: Likewise.
28839         * sysdeps/posix/spawni.c: Likewise.
28840         * nss/nss_files/files-initgroups.c: Likewise.
28841         * stdio-common/reg-modifier.c: Include <stdlib.h>.
28842         * nss/nss_files/files-initgroups.c: Likewise.
28843         * nss/nss_db/db-netgrp.c: Likewise.
28844         * nss/nss_db/db-initgroups.c: Likewise.
28845         * io/fchmodat.c: Include <sys/stat.h>.
28846
28847         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
28848         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
28849
28850         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
28851         [HAVE_MMAP].
28852
28853         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
28854         Add multiple inclusion protection.
28855
28856 2012-07-27  David S. Miller  <davem@davemloft.net>
28857
28858         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28859
28860 2012-07-27  Gary Benson  <gbenson@redhat.com>
28861
28862         [BZ #14298]
28863         * elf/rtld.c: Include <stap-probe.h>.
28864         (dl_main): Added static probes "init_start" and "init_complete".
28865         * elf/dl-load.c: Include <stap-probe.h>.
28866         (lose): Take new parameter "nsid".
28867         Added static probe "map_failed".
28868         (_dl_map_object_from_fd): Pass namespace id to lose.
28869         Added static probe "map_start".
28870         (open_verify): Pass namespace id to lose.
28871         * elf/dl-open.c: Include <stap-probe.h>.
28872         (dl_open_worker) Added static probes "map_complete", "reloc_start"
28873         and "reloc_complete".
28874         * elf/dl-close.c: Include <stap-probe.h>.
28875         (_dl_close_worker): Added static probes "unmap_start" and
28876         "unmap_complete".
28877         * elf/rtld-debugger-interface.txt: New file documenting the above.
28878
28879 2012-07-26  Roland McGrath  <roland@hack.frob.com>
28880
28881         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
28882         rather than a string variable.
28883         * sunrpc/rpc_main.c (h_output): Likewise.
28884         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
28885
28886 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
28887
28888         * inet/check_native.c: New file.
28889
28890 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
28891
28892         [BZ #13629]
28893         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
28894         if larger part has absolute value 1.0.
28895         * math/s_clog10.c (__clog10): Likewise.
28896         * math/s_clog10f.c (__clog10f): Likewise.
28897         * math/s_clog10l.c (__clog10l): Likewise.
28898         * math/s_clogf.c (__clogf): Likewise.
28899         * math/s_clogl.c (__clogl): Likewise.
28900         * math/libm-test.inc (clog_test): Add more tests.
28901         (clog10_test): Likewise.
28902         * sysdeps/i386/fpu/libm-test-ulps: Update.
28903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28904
28905         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
28906         (pltexit): Likewise.
28907         (La_regs): Likewise.
28908         (La_retval): Likewise.
28909         (int_retval): Likewise.
28910         Update #error for removed macros to refer only to definitions in
28911         tst-audit.h.
28912         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
28913         macro.
28914         (pltexit): Likewise.
28915         (La_regs): Likewise.
28916         (La_retval): Likewise.
28917         (int_retval): Likewise.
28918         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
28919         macro.
28920         (pltexit): Likewise.
28921         (La_regs): Likewise.
28922         (La_retval): Likewise.
28923         (int_retval): Likewise.
28924         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
28925         macro.
28926         (pltexit): Likewise.
28927         (La_regs): Likewise.
28928         (La_retval): Likewise.
28929         (int_retval): Likewise.
28930         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
28931         macro.
28932         (pltexit): Likewise.
28933         (La_regs): Likewise.
28934         (La_retval): Likewise.
28935         (int_retval): Likewise.
28936         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
28937         macro.
28938         (pltexit): Likewise.
28939         (La_regs): Likewise.
28940         (La_retval): Likewise.
28941         (int_retval): Likewise.
28942         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
28943         macro.
28944         (pltexit): Likewise.
28945         (La_regs): Likewise.
28946         (La_retval): Likewise.
28947         (int_retval): Likewise.
28948         * sysdeps/generic/tst-audit.h: Update comment to refer only to
28949         macro definitions in tst-audit.h.
28950         * sysdeps/i386/tst-audit.h: New file.
28951         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
28952         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
28953         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
28954         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
28955         * sysdeps/sh/tst-audit.h: Likewise.
28956         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
28957         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
28958         * sysdeps/x86_64/tst-audit.h: Likewise.
28959
28960 2012-07-26  Andreas Jaeger  <aj@suse.de>
28961
28962         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
28963         ptrace.
28964
28965         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
28966         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
28967         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
28968         PTRACE_O_MASK.
28969         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
28970         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
28971         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
28972
28973         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
28974         value.
28975
28976         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
28977         _sigsys.
28978         (si_call_addr, si_syscall, si_arch): Define new macro.
28979         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
28980         _sigsys.
28981         (si_call_addr, si_syscall, si_arch): Define new marcro.
28982         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
28983         _sigsys.
28984         (si_call_addr, si_syscall, si_arch): Define new macro.
28985         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
28986         _sigsys.
28987         (si_call_addr, si_syscall, si_arch): Define new macro.
28988
28989 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
28990
28991         [BZ #13717]
28992         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28993         Change to 2.4.21 where previously 2.4.1.
28994         * sysdeps/unix/sysv/linux/configure: Regenerated.
28995         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
28996         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
28997         Linux kernel version.
28998         (__ASSUME_STD_AUXV): Remove.
28999         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29000         kernel version.
29001         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29002         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29003         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29004         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29005         (__ASSUME_NETLINK_SUPPORT): Likewise.
29006         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29007         (__no_netlink_support): Remove conditional definition.
29008         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29009         Remove.
29010         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29011         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29012         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29013         (if_nameindex_ioctl): Remove.
29014         (if_nameindex_netlink): Do not handle __no_netlink_support.
29015         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29016         code.
29017         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29018         Remove conditional code.
29019         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29020         code.
29021         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29022         unconditional.
29023         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29024         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29025         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29026         Remove.
29027         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29028         [!__ASSUME_STD_AUXV]: Remove conditional code.
29029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29030         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29031         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29033         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29034         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29035         code.
29036         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29038         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29039         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29040         conditional code.
29041         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29043         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29044         code.
29045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29046         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29047         conditional code.
29048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29049         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29050         code unconditional.
29051         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29052         conditional code.
29053         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29054         unconditional.
29055         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29056         conditional code.
29057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29058         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29059         unconditional.
29060         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29061         conditional code.
29062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29063         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29064         code unconditional.
29065         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29066         conditional code.
29067         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29068         unconditional.
29069         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29070         conditional code.
29071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29072         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29073         code unconditional.
29074         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29075         conditional code.
29076         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29077         unconditional.
29078         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29079         conditional code.
29080
29081 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29082
29083         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29084         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29085         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29086         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29087         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29088         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29089         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29090         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29091         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29092         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29093         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29094         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29095         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29096         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29097         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29098         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29099         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29100         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29101         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29102         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29103         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29104         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29105         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29106
29107 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29108
29109         * Versions.def: Add GLIBC_2.17.
29110         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29111         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29112         Introduce __libc_secure_getenv.
29113         * stdlib/Versions (2.17): Add secure_getenv
29114         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29115         * stdlib/secure-getenv.c: Rename __secure_getenv to
29116         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29117         symbol __secure_getenv for GLIBC_2.0.
29118         * stdlib/tst-secure-getenv.c: New.
29119         * stdlib/Makefile (tests): Add testcase.
29120         * manual/startup.texi (Environment Access): Document
29121         secure_getenv.
29122         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29123         __libc_secure_getenv.
29124         * inet/ruserpass.c (ruserpass): Likewise.
29125         * malloc/mtrace.c (mtrace): Likewise.
29126         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29127         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29128         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29129         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29130         HAVE_SECURE_GETENV.
29131         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29132         __secure_getenv to __libc_secure_getenv.
29133         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29135         Likewise.
29136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29137         Likewise.
29138         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29139         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29140         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29141         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29142         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29143         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29145
29146 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29147
29148         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29149         (struct La_i86_retval): Likewise.
29150         (struct La_x86_64_regs): Likewise.
29151         (struct La_x86_64_retval): Likewise.
29152         (struct La_x32_regs): Likewise.
29153         (struct La_x32_retval): Likewise.
29154         (struct La_ppc32_regs): Likewise.
29155         (struct La_ppc32_retval): Likewise.
29156         (struct La_ppc64_regs): Likewise.
29157         (struct La_ppc64_retval): Likewise.
29158         (struct La_sh_regs): Likewise.
29159         (struct La_sh_retval): Likewise.
29160         (struct La_s390_32_regs): Likewise.
29161         (struct La_s390_32_retval): Likewise.
29162         (struct La_s390_64_regs): Likewise.
29163         (struct La_s390_64_retval): Likewise.
29164         (struct La_sparc32_regs): Likewise.
29165         (struct La_sparc32_retval): Likewise.
29166         (struct La_sparc64_regs): Likewise.
29167         (struct La_sparc64_retval): Likewise.
29168         (struct audit_ifaces): Remove architecture-specific pltenter and
29169         pltexit members.
29170         * sysdeps/i386/ldsodefs.h: New file.
29171         * sysdeps/powerpc/ldsodefs.h: Likewise.
29172         * sysdeps/s390/ldsodefs.h: Likewise.
29173         * sysdeps/sh/ldsodefs.h: Likewise.
29174         * sysdeps/sparc/ldsodefs.h: Likewise.
29175         * sysdeps/x86_64/ldsodefs.h: Likewise.
29176
29177 2012-07-25  Marek Polacek  <polacek@redhat.com>
29178
29179         [BZ #6808]
29180         * math/libm-test.inc (yn_test): Add another test.
29181         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29182         to ERANGE when the result is +-Inf.
29183         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29184         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29185         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29186         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29187
29188 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29189
29190         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29191         equal to 0.
29192         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29193         clock_t.
29194         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29195
29196 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29197
29198         * configure.in <sysdeps resolving>: Correct printing
29199         Implies_before.
29200         * configure: Regenerate.
29201
29202 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29203
29204         * math/w_ilogb.c: Include <limits.h>.
29205         * math/w_ilogbl.c: Likewise.
29206
29207 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29208
29209         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29210         va_copy.  Document allowing for unavailable va_copy only as
29211         pre-C99 compatibility.
29212         * manual/string.texi (Copying and Concatenation): Use va_copy
29213         instead of __va_copy in concat example.
29214
29215 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29216
29217         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29218         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29219         it if not null.
29220
29221         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29222         with O_NOLINK passed to __file_name_lookup.
29223
29224         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29225         with O_NOLINK passed to __file_name_lookup.
29226
29227         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
29228         negative N or less than NGIDS.
29229
29230         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
29231         type to string_t.  Set ERANGE as errno and return it if NAME is not big
29232         enough.  Use memcpy instead of strncpy.
29233
29234 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29235
29236         * elf/Makefile (check-data): Remove.
29237         (localplt.data): New vpath directive.
29238         ($(objpfx)check-localplt.out): Use localplt.data from vpath
29239         instead of $(check-data).
29240         * scripts/data/localplt-generic.data: Move to ...
29241         * sysdeps/generic/localplt.data: ... here.
29242         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
29243         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
29244         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
29245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29246         ... here.
29247         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
29248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29249         ... here.
29250         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
29251         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
29252         ... here.
29253         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
29254         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29255         ... here.
29256         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
29257         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
29258         ... here.
29259         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
29260         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
29261         ... here.
29262
29263 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29264
29265         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
29266         PPC32 and PPC64 files.
29267         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
29268         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
29269
29270 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29271
29272         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
29273         __makecontext_ret to ...
29274         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29275         ... here and call exit if uc_link is NULL.  New file.
29276         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
29277         __makecontext_ret.S.
29278         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
29279         __makecontext_ret to ...
29280         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29281         ... here and call exit if uc_link is NULL.  New file.
29282         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
29283         __makecontext_ret.S.
29284
29285 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29286
29287         * elf/elf.h (R_390_IRELATIVE): New definition.
29288         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
29289         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
29290         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
29291         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
29292         (elf_machine_lazy_rel): Likewise.
29293         * sysdeps/s390/dl-irel.h: New file.
29294         * sysdeps/s390/s390-64/memcpy.S: New asm code.
29295         * sysdeps/s390/s390-64/memset.S: New asm code.
29296         * sysdeps/s390/s390-64/memcmp.S: New asm code.
29297         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
29298         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
29299         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
29300         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
29301         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
29302         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
29303         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
29304         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
29305         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
29306         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
29307         * sysdeps/s390/s390-32/memcpy.S: New asm code.
29308         * sysdeps/s390/s390-32/memset.S: New asm code.
29309         * sysdeps/s390/s390-32/memcmp.S: New asm code.
29310
29311 2012-07-17  Marek Polacek  <polacek@redhat.com>
29312
29313         [BZ #14349]
29314         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
29315         * sysdeps/s390/s390-64/configure.in: Likewise.
29316         * sysdeps/sparc/configure.in: Likewise.
29317         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
29318         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
29319         * sysdeps/i386/configure.in: Likewise.
29320         * sysdeps/x86_64/configure.in: Likewise.
29321         * sysdeps/sh/configure.in: Likewise.
29322         * sysdeps/s390/s390-32/configure: Regenerated.
29323         * sysdeps/s390/s390-64/configure: Likewise.
29324         * sysdeps/x86_64/configure: Likewise.
29325         * sysdeps/sh/configure: Likewise.
29326         * sysdeps/powerpc/powerpc64/configure: Likewise.
29327         * sysdeps/powerpc/powerpc32/configure: Likewise.
29328         * sysdeps/sparc/configure: Likwise.
29329         * sysdeps/i386/configure: Likewise.
29330
29331         * elf/dl-open.c: Comment fixes.
29332
29333 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
29334
29335         * Makefile [CXX] (check-data): Remove.
29336         [CXX] (c++-types.data): New vpath directive.
29337         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
29338         vpath.  Do not allow for C++ type data being missing.
29339         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
29340         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
29341         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
29342         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
29343         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
29344         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
29345         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
29346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29347         ... here.
29348         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
29349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29350         ... here.
29351         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
29352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
29353         ... here.
29354         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
29355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
29356         ... here.
29357         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
29358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
29359         ... here.
29360         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
29361         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
29362         ... here.
29363         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
29364         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
29365         ... here.
29366         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
29367         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
29368
29369         * elf/tls-macros.h (TLS_LE): Move architecture-specific
29370         definitions to architecture-specific files.
29371         (TLS_IE): Likewise.
29372         (TLS_LD): Likewise.
29373         (TLS_GD): Likewise.
29374         * sysdeps/i386/tls-macros.h: New file.
29375         * sysdeps/powerpc/tls-macros.h: Likewise.
29376         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
29377         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
29378         * sysdeps/sh/tls-macros.h: Likewise.
29379         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
29380         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
29381         * sysdeps/x86_64/tls-macros.h: Likewise.
29382
29383 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29384
29385         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
29386         zero value for regular exit case.
29387
29388         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
29389         (__start_context): Preserve zero value for regular exit case.
29390
29391 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29392             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29393
29394         * manual/setjmp.texi (setcontext): Clarify normal process
29395         termination when uc_link is the null pointer.
29396         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
29397         exit call.
29398
29399 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
29400
29401         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
29402         preprocessor.  Test for each exception mask separately.
29403
29404 2012-07-16  Andreas Jaeger  <aj@suse.de>
29405
29406         * po/ru.po: Update from translation team.
29407
29408 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
29409
29410         * conform/data/string.h-data (NULL): Use macro-constant.  Require
29411         equal to 0.
29412         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29413         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29414         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
29415         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
29416         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29417
29418 2012-07-13  Andreas Jaeger  <aj@suse.de>
29419
29420         * po/fr.po: Update from translation team.
29421
29422 2012-07-12  Marek Polacek  <polacek@redhat.com>
29423
29424         [BZ #14173]
29425         * math/libm-test.inc (yn_test): Add test for BZ #14173.
29426         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
29427         loop condition.
29428
29429 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
29430
29431         [BZ #13717]
29432         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29433         Change to 2.4.1 where previously 2.4.0.
29434         * sysdeps/unix/sysv/linux/configure: Regenerated.
29435         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
29436         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
29437         version.
29438         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
29439         (__ASSUME_AT_CLKTCK): Remove.
29440         (__ASSUME_AT_PAGESIZE): Likewise.
29441         (__ASSUME_AT_XID): Likewise.
29442         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
29443         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
29444         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
29445         unconditionally.
29446         (HAVE_AUX_PAGESIZE): Likewise.
29447         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
29448         [__ASSUME_AT_CLKTCK]: Make code unconditional.
29449         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
29450
29451 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
29452
29453         [BZ #14307]
29454         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
29455         the temporary buffer used to invoke __gethostbyname2_r,
29456         __gethostbyaddr_r and gethostbyname4_r to make room for struct
29457         host_data / struct gaih_addrtuple.
29458         * resolv/nss_dns/dns-host.c (global scope): Move definition of
29459         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
29460         header file nss/nsswitch.h.
29461         * nss/nsswitch.h (global scope): Add definition of implementation
29462         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
29463         resolv/nss_dns/dns-host.c).
29464
29465 2012-07-11  Andreas Jaeger  <aj@suse.de>
29466
29467         * po/fr.po: Update from translation team.
29468
29469         * po/sv.po: Update from translation team
29470         * po/fr.po: Another update from translation team.
29471
29472 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29473
29474         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
29475         for subnormals or multiply small sinh result by itself.
29476         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29478
29479 2012-07-11  David S. Miller  <davem@davemloft.net>
29480
29481         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29482
29483 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
29484
29485         [BZ #14347]
29486         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
29487         (INTERNAL_MARK): Shift it here.
29488
29489 2012-07-10  Marek Polacek  <polacek@redhat.com>
29490
29491         [BZ #14151]
29492         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
29493         libc_cv_asm_global_directive with .globl.
29494         * configure: Regenerated.
29495         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
29496         with .globl.
29497         * sysdeps/i386/configure: Regenerated.
29498         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
29499         with .globl.
29500         * sysdeps/x86_64/configure: Regenerated.
29501         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
29502         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
29503         * elf/tst-unique2mod2.c: Likewise.
29504         * elf/tst-unique2mod1.c: Likewise.
29505         * elf/tst-unique1mod2.c: Likewise.
29506         * elf/tst-unique1mod1.c: Likewise.
29507         * sysdeps/s390/s390-32/sysdep.h: Likewise.
29508         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29509         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29510         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29511         * sysdeps/mach/sysdep.h: Likewise.
29512         * sysdeps/i386/sysdep.h: Likewise.
29513         * sysdeps/i386/i386-mcount.S: Likewise.
29514         * sysdeps/x86_64/_mcount.S: Likewise.
29515         * sysdeps/x86_64/sysdep.h: Likewise.
29516         * sysdeps/sh/_mcount.S: Likewise.
29517         * sysdeps/sh/sysdep.h: Likewise.
29518         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
29519         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
29520         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
29521         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29522         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
29523         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
29524         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
29525         * locale/localeinfo.h: Likewise.
29526         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
29527         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
29528
29529 2012-07-09  Roland McGrath  <roland@hack.frob.com>
29530
29531         [BZ #14336]
29532         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
29533         system".
29534         * manual/message.texi (The Uniforum approach): Likewise.
29535         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
29536         (glibc iconv Implementation): Likewise.
29537
29538 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
29539
29540         [BZ #14337]
29541         * math/s_clog.c (__clog): Avoid scaling a value down where that
29542         could result in underflow.
29543         * math/s_clog10.c (__clog10): Likewise.
29544         * math/s_clog10f.c (__clog10f): Likewise.
29545         * math/s_clog10l.c (__clog10l): Likewise.
29546         * math/s_clogf.c (__clogf): Likewise.
29547         * math/s_clogl.c (__clogl): Likewise.
29548         * math/libm-test.inc (clog_test): Add more tests.
29549         (clog10_test): Likewise.
29550         * sysdeps/i386/fpu/libm-test-ulps: Update.
29551         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29552
29553 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
29554
29555         [BZ #14283]
29556         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
29557         by 7 not 8 to examine high bit of fractional part.
29558
29559         [BZ #14042]
29560         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
29561         for call to __mcount_internal.
29562         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
29563         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
29564         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
29565
29566 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
29567
29568         [BZ #14154]
29569         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
29570         approximation for values within 0x1p-13f of an odd multiple of
29571         pi/4.
29572         * math/libm-test.inc (tan_test): Do not allow spurious underflow
29573         exception.  Add more tests.
29574         * sysdeps/i386/fpu/libm-test-ulps: Update.
29575
29576         [BZ #6778]
29577         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
29578         inputs and return -1 for them.  Do not check for +Inf in case not
29579         reachable for +Inf.
29580         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
29581         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
29582         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29583         and return -1 for them.  Do not check for +Inf in case not
29584         reachable for +Inf.
29585         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
29586         define.
29587         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29588         and return -1 for them.  Do not check for +Inf in case not
29589         reachable for +Inf.
29590         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
29591         spurious underflow.
29592         * sysdeps/i386/fpu/libm-test-ulps: Update.
29593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29594
29595 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
29596
29597         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
29598
29599 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
29600
29601         [BZ #14157]
29602         [BZ #14331]
29603         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
29604         could result in spurious underflow.  Scale down values above
29605         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
29606         * math/s_csqrtf.c (__csqrtf): Likewise.
29607         * math/s_csqrtl.c (__csqrtl): Likewise.
29608         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
29609         spurious underflow.
29610         * sysdeps/i386/fpu/libm-test-ulps: Update.
29611         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29612
29613 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
29614
29615         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
29616         xopen-msg.sed.
29617         * catgets/xopen-msg.awk: New file.
29618         * catgets/xopen-msg.sed: Removed.
29619
29620         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
29621         po2text.sed.
29622         * intl/po2test.awk: New file.
29623         * intl/po2test.sed: Removed.
29624
29625 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
29626
29627         [BZ #14328]
29628         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
29629         or multiply small sinh result by itself.
29630         * math/s_ctanf.c (__ctanf): Likewise.
29631         * math/s_ctanh.c (__ctanh): Likewise.
29632         * math/s_ctanhf.c (__ctanhf): Likewise.
29633         * math/s_ctanhl.c (__ctanhl): Likewise.
29634         * math/s_ctanl.c (__ctanl): Likewise.
29635         * math/libm-test.inc (ctan_test_tonearest): New function.
29636         (ctan_test_towardzero): Likewise.
29637         (ctan_test_downward): Likewise.
29638         (ctan_test_upward): Likewise.
29639         (ctanh_test_tonearest): Likewise.
29640         (ctanh_test_towardzero): Likewise.
29641         (ctanh_test_downward): Likewise.
29642         (ctanh_test_upward): Likewise.
29643         (main): Call these new functions.
29644         * sysdeps/i386/fpu/libm-test-ulps: Update.
29645         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29646
29647 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
29648
29649         * .gitignore: Delete /ports entry.
29650
29651 2012-07-03  Andreas Jaeger  <aj@suse.de>
29652
29653         * po/bg.po: Update from translation team.
29654         * po/cs.po: Likewise.
29655         * po/de.po: Likewise.
29656         * po/hr.po: Likewise.
29657         * po/nl.pl: Likewise.
29658         * po/pl.po: Likewise.
29659         * po/vi.po: Likewise.
29660
29661 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
29662
29663         * Makeconfig [!+link] (+link-before-libc): New variable.
29664         [!+link] (+link-after-libc): Likewise.
29665         [!+link] (+link-tests): Likewise.
29666         [!+link] (+link): Define in terms of $(+link-before-libc) and
29667         $(+link-after-libc).
29668         [!+link-static] (+link-static-before-libc): New variable.
29669         [!+link-static] (+link-static-after-libc): Likewise.
29670         [!+link-static] (+link-static-tests): Likewise.
29671         [!+link-static] (+link-static): Define in terms of
29672         $(+link-static-before-libc) and $(+link-static-after-libc).
29673         [build-shared] (link-libc-before-gnulib): New variable.
29674         [build-shared] (link-libc-tests): Likewise.
29675         [build-shared] (link-libc): Define in terms of
29676         $(link-libc-before-gnulib).
29677         [!build-shared] (link-libc-tests): New variable.
29678         (link-libc-static-tests): New variable.
29679         [!gnulib] (gnulib-arch): New variable.
29680         [!gnulib] (gnulib-tests): Likewise.
29681         [!gnulib] (static-gnulib-arch): Likewise.
29682         [!gnulib] (static-gnulib-tests): Likewise.
29683         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
29684         Define with "=" instead of ":=".
29685         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
29686         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
29687         * Rules (binaries-all-notests): New variable.
29688         (binaries-all-tests): Likewise.
29689         (binaries-static-notests): Likewise.
29690         (binaries-static-tests): Likewise.
29691         (binaries-all): Define using $(binaries-all-notests) and
29692         $(binaries-all-tests).
29693         (binaries-static): Define using $(binaries-static-notests) and
29694         $(binaries-static-tests).
29695         (binaries-shared-tests): New variable.
29696         (binaries-shared-notests): Likewise.
29697         (binaries-shared): Remove variable.
29698         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
29699         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
29700         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
29701         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
29702         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
29703         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
29704         * elf/Makefile (sln-modules): New variable.
29705         (extra-objs): Add $(sln-modules:=.o).
29706         (ldconfig-modules): Add static-stubs.
29707         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
29708         * elf/static-stubs.c: New file.
29709
29710         [BZ #14283]
29711         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
29712         by 7 not 8 to examine high bit of fractional part.  Use volatile
29713         variables when splitting into final array of floats if
29714         __FLT_EVAL_METHOD__ != 0.
29715         * math/libm-test.inc (cos_test): Add another test.
29716         (sin_test): Likewise.
29717         * sysdeps/i386/fpu/libm-test-ulps: Update.
29718
29719         [BZ #14273]
29720         * math/libm-test.inc (cosh_test): Add more tests.
29721
29722         * version.h (RELEASE): Set to "development".
29723         (VERSION): Set to "2.16.90".
29724
29725 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
29726
29727         * NEWS: Update copyright. Remove last-updated date.
29728         Mention math library bug fixes and timezone data changes.
29729         * README: Mention GNU/Hurd, x32, and HPPA support status.
29730
29731 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
29732
29733         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
29734
29735 2012-06-27  Andreas Jaeger  <aj@suse.de>
29736
29737         * manual/contrib.texi (Contributors): Add Samuel Thibault.
29738
29739 2012-06-25  Andreas Jaeger  <aj@suse.de>
29740
29741         * sysdeps/s390/fpu/libm-test-ulps: Update.
29742
29743 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
29744             Thomas Schwinge  <thomas@codesourcery.com>
29745
29746         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
29747         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
29748         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
29749         fanotify_mark.
29750
29751 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
29752
29753         * sysdeps/mach/start.c: Remove file.
29754         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
29755         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
29756         * sysdeps/sh/init-first.c: Likewise.
29757
29758         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
29759         registers for frame unwinding purposes, add CFI directives.
29760         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
29761         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
29762         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
29763         Likewise.
29764
29765         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
29766         __fortify_fail returning.
29767         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
29768
29769         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
29770         sysdeps/sh/____longjmp_chk.S.
29771         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
29772         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
29773         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
29774         (gen-as-const-headers): Append sigaltstack-offsets.sym.
29775
29776         * sysdeps/sh/abort-instr.h: New file.
29777         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
29778         process in case exit returns.
29779
29780         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
29781         initialize the GOT register before use.
29782
29783         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
29784         calculation of ARGC > 4.
29785
29786         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
29787         meaningful names to some local labels.
29788
29789 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
29790             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29791
29792         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
29793         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
29794         (__arch_compare_and_exchange_val_16_acq): Likewise.
29795         (__arch_compare_and_exchange_val_32_acq): Likewise.
29796         (atomic_exchange_and_add): Fix gUSA sequence.
29797         (atomic_add): Likewise.
29798         (atomic_add_negative): Likewise.
29799         (atomic_add_zero): Likewise.
29800         (atomic_bit_test_set): Likewise.
29801
29802 2012-06-22  Andreas Schwab  <schwab@redhat.com>
29803
29804         [BZ #13579]
29805         * include/link.h (struct link_map): Add l_free_initfini.
29806         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
29807         l_initfini.
29808         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
29809         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
29810         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
29811         set.
29812
29813 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
29814
29815         * configure.in: Use AC_LANG_SOURCE.
29816         * configure: Regenerate.
29817
29818 2012-06-22  Roland McGrath  <roland@hack.frob.com>
29819
29820         * configure.in (libc_cv_localstatedir): New substituted variable.
29821         * configure: Regenerated.
29822         * config.make.in (localstatedir): New variable, substituted from
29823         libc_cv_localstatedir.
29824         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
29825         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
29826         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
29827         * sysdeps/gnu/configure: Regenerated.
29828
29829 2012-06-21  Jeff Law  <law@redhat.com>
29830
29831         [BZ #14277]
29832         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
29833         free.  Simplify list management for _LIBC case.
29834
29835 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
29836
29837         [BZ #14273]
29838         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29839         Clear sign bit of 64-bit integer value before comparing against
29840         overflow value.
29841
29842         * sysdeps/mach/configure: Regenerated.
29843
29844 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
29845
29846         [BZ #14278]
29847         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
29848
29849 2012-06-21  Jeff Law  <law@redhat.com>
29850
29851         [BZ #13882]
29852         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
29853         uint16_t for elements in the "seen" array to avoid char overflows.
29854         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29855         * elf/dl-open.c (dl_open_worker): Likewise.
29856
29857 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
29858
29859         * scripts/list-sources.sh: Scan PORTS for translations.
29860         * po/libc.pot: Regenerated.
29861
29862 2012-06-21  Andreas Jaeger  <aj@suse.de>
29863
29864         [BZ #12194]
29865         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
29866         warning.
29867         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
29868         * bits/byteswap-16.h (__bswap_16): Likewise.
29869         * bits/byteswap.h (__bswap_constant_16): Likewise.
29870
29871 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
29872
29873         [BZ #14117]
29874         * sysdeps/i386/fpu_control.h: Removed.
29875         * sysdeps/x86_64/fpu_control.h: Moved to ...
29876         * sysdeps/x86/fpu_control.h: Here.
29877
29878         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
29879         (_FPU_SETCW): Likewise.
29880
29881 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
29882
29883         [BZ #14117]
29884         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
29885         * sysdeps/x86/fpu/bits/mathinline.h: This.
29886         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
29887
29888         [BZ #14050]
29889         [BZ #14117]
29890         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
29891         functions if __x86_64__ is defined.
29892
29893 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
29894
29895         * string/endian.h: Add !__ASSEMBLER__ condition for including
29896         conversion interfaces.
29897
29898 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
29899
29900         [BZ #14241]
29901         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
29902         of ABS(x) in calculating zero to negative powers other than odd
29903         integers.
29904         * math/libm-test.inc (pow_test): Add more tests.
29905
29906 2012-06-15  Andreas Jaeger  <aj@suse.de>
29907
29908         * manual/contrib.texi (Contributors): Update entry of Liubov
29909         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
29910         Machado Filho.
29911
29912 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
29913
29914         * string/string.h: Add __wur to GNU version of strerror_r.
29915
29916 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
29917
29918         [BZ #14229]
29919         * string/Makefile (tests): Add tst-strtok_r.
29920         * string/tst-strtok_r.c: New file.
29921         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
29922         RAX_LP/RDX_LP on SAVE_PTR.
29923
29924 2012-06-14  Roland McGrath  <roland@hack.frob.com>
29925
29926         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
29927
29928 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
29929
29930         * libm_test.inc (csqrt_test): Allow more spurious underflow
29931         exceptions.
29932         (j0_test): Likewise.
29933         (j1_test): Likewise.
29934         (y0_test): Likewise.
29935         (y1_test): Likewise.
29936
29937 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
29938
29939         * po/Makefile (libc.pot): Use UTF-8 charset.
29940
29941 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
29942
29943         [BZ #14210]
29944         Suppress sign-conversion warning from FD_SET.
29945         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
29946         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
29947         not unsigned long int.
29948         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
29949
29950 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
29951
29952         [BZ #14050]
29953         [BZ #14117]
29954         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
29955         __extern_always_inline instead of __extern_inline.
29956         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
29957         (__signbit): Likewise.
29958         (__signbitl): Support C++ namespace.
29959         (lrintf): New inline function.
29960         (lrint): Likewise.
29961         (llrintf): Likewise.
29962         (llrint): Likewise.
29963         (fmaxf): Likewise.
29964         (fmax): Likewise.
29965         (fminf): Likewise.
29966         (fmin): Likewise.
29967         (rint): Likewise.
29968         (rintf): Likewise.
29969         (ceil): Likewise.
29970         (ceilf): Likewise.
29971         (floor): Likewise.
29972         (floorf): Likewise.
29973         (nearbyint): Likewise.
29974         (nearbyintf): Likewise.
29975
29976 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
29977
29978         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
29979         non-default versions.
29980
29981 2012-06-11  Roland McGrath  <roland@hack.frob.com>
29982
29983         [BZ #14218]
29984         * manual/argp.texi (Argp): Reword argp_parse description slightly.
29985
29986 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
29987
29988         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
29989         (FE_UPWARD, FE_DOWNWARD): Don't define.
29990         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
29991         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
29992
29993         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
29994         reading it.
29995         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
29996         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
29997
29998 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29999
30000         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30001         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30002         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30003         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30004
30005 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30006
30007         [BZ #14117]
30008         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30009         * sysdeps/i386/fpu/Implies: New file.
30010         * sysdeps/x86_64/fpu/Implies: Likewise.
30011         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30012         * sysdeps/x86/fpu/bits/fenv.h: This.
30013
30014         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30015         __SSE_MATH__.
30016
30017 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30018
30019         [BZ #14134]
30020         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30021         character 0xffff that matches the last element of the
30022         conversion table.
30023
30024 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30025
30026         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30027         fmodl commit.
30028
30029 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30030
30031         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30032         values higher than 25.6283.
30033
30034 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30035
30036         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30037         subnormal exponent extraction and add some __builtin_expect.
30038         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30039         Fix for subnormal mantissa calculation.
30040
30041 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30042
30043         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30044         cpu2 is -1 and errno is not ENOSYS.
30045
30046 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30047
30048         [BZ #14117]
30049         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30050         * sysdeps/x86/bits/string.h: This.
30051         * sysdeps/x86_64/bits/string.h: Removed.
30052
30053         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30054         if not compiling for x86-64, but compiling for >= i486.
30055
30056         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30057         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30058
30059         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30060         New macro from Linux kernel 3.4.0.
30061         (FP_XSTATE_MAGIC2): Likewise.
30062         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30063         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30064         (struct _fpx_sw_bytes): New struct.
30065         (struct _xsave_hdr): Likewise.
30066         (struct _ymmh_state): Likewise.
30067         (struct _xstate): Likewise.
30068
30069         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30070         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30071         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30072         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30073         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30074         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30075
30076         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30077         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30078         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30079         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30080         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30081         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30082
30083 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30084
30085         [BZ #13743]
30086         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30087         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30088         (sysdep_headers): Include sys/platform/ppc.h.
30089         * sysdeps/powerpc/test-gettimebase.c: Test for
30090         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30091         * manual/Makefile (appendices): Include platform.texi.
30092         * manual/contrib.texi (Contributors): Update @node pointers.
30093         * manual/maint.texi (Maintenance): Likewise.
30094         (Platform): New node.
30095         * manual/platform.texi: New file.  Document the new features.
30096
30097 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30098             Jakub Jelinek  <jakub@redhat.com>
30099
30100         [BZ #14188]
30101         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30102         where __builtin_expect is unavailable.
30103
30104 2012-06-03  David S. Miller  <davem@davemloft.net>
30105
30106         * stdlib/longlong.h: Updated from GCC.
30107
30108 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30109
30110         [BZ #14042]
30111         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30112         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30113         __mcount_internal.
30114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30115         (GLIBC_2.16): Likewise.
30116
30117 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30118
30119         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30120
30121 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30122
30123         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30124         (default-abi): New variable.
30125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30126         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30127         variable.
30128         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30129         Likewise.
30130         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30131         Likewise.
30132         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30133         Likewise.
30134
30135         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30136         definition.  Document in comment.
30137
30138 2012-06-01  David S. Miller  <davem@davemloft.net>
30139
30140         * stdlib/longlong.h: Updated from GCC.
30141
30142 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30143
30144         [BZ #14117]
30145         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30146         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30147         sys/debugreg.h sys/io.h here.
30148         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30149         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30150         sys/io.h.
30151         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30152         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30153         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30154         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30155         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30156         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30157
30158         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30159         Define only if __x86_64__ is defined.
30160
30161 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30162
30163         [BZ #14048]
30164         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30165         Use int64_t for variable i.
30166         * math/libm-test.inc (fmod_test): Add more tests.
30167
30168         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30169         z computation is not scheduled after fetestexcept.
30170         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30171         Use math_force_eval instead of asm to ensure calculation scheduled
30172         before exception test.
30173         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30174         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30175
30176 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30177
30178         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30179         computation is not scheduled after fetestexcept.
30180
30181 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30182
30183         [BZ #14117]
30184         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30185         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30186
30187 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30188
30189         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30190         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30191
30192 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30193
30194         [BZ #14117]
30195         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30196         <bits/wordsize.h>.
30197         (__WCHAR_MIN): Support __WORDSIZE == 64.
30198         (__WCHAR_MAX): Likewise.
30199
30200         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30201         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30202
30203         [BZ #14183]
30204         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30205         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30206
30207         [BZ #14117]
30208         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30209         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30210
30211         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30212         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30213
30214         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30215         Defined to 1 if __x86_64__ isn't defined.
30216         (_STAT_VER_LINUX_OLD): New.
30217         (st_atime): Remove duplicate.
30218         (st_mtime): Likewise.
30219         (st_ctime): Likewise.
30220
30221 2012-05-31  David S. Miller  <davem@davemloft.net>
30222
30223         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30224         entries.
30225
30226 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
30227
30228         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
30229         gen-libm-test.pl.
30230
30231         [BZ #14132]
30232         * elf/dl-reloc.c: Include <_itoa.h>.
30233         (_dl_reloc_bad_type): Remove use of INTUSE.
30234         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
30235         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
30236         * stdio-common/psiginfo.c (psiginfo): Likewise.
30237         * stdio-common/psignal.c (psignal): Likewise.
30238         * string/strsignal.c (strsignal): Likewise.
30239         * include/signal.h (_sys_siglist): Declare hidden proto.
30240         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
30241         INTVARDEF with libc_hidden_data_def.
30242         * stdio-common/itoa-udigits.c: Likewise.
30243         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
30244         (_itoa_lower_digits_internal): Remove declaration.
30245         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
30246         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
30247         (_sys_sigabbrev_internal): Remove aliases.
30248         (_sys_siglist): Define hidden alias.
30249
30250 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
30251
30252         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30253         bits/sysctl.h.
30254
30255 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30256
30257         [BZ #14117]
30258         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
30259         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
30260
30261         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
30262         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
30263         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
30264         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
30265         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
30266         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
30267
30268         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
30269         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
30270         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
30271
30272         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
30273         with __addr.
30274         (insw): Likewise.
30275         (insl): Likewise.
30276         (outsb): Likewise.
30277         (outsw): Likewise.
30278         (outsl): Likewise.
30279
30280         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
30281         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
30282         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
30283
30284         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
30285         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
30286         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
30287         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
30288         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
30289         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
30290
30291         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
30292         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
30293
30294         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
30295         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
30296
30297         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
30298         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
30299         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
30300
30301         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
30302         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
30303         to ...
30304         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
30305
30306         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
30307         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
30308         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
30309
30310         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
30311         for x86-64.
30312         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
30313
30314 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
30315
30316         * math/math.h (M_El): Use two more decimal places.
30317         (M_LOG2El): Likewise.
30318         (M_LOG10El): Likewise.
30319         (M_LN2l): Likewise.
30320         (M_LN10l): Likewise.
30321         (M_PIl): Likewise.
30322         (M_PI_2l): Likewise.
30323         (M_PI_4l): Likewise.
30324         (M_1_PIl): Likewise.
30325         (M_2_PIl): Likewise.
30326         (M_2_SQRTPIl): Likewise.
30327         (M_SQRT2l): Likewise.
30328         (M_SQRT1_2l): Likewise.
30329
30330 2012-05-31  David S. Miller  <davem@davemloft.net>
30331
30332         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
30333         values between float registers.
30334         * sysdeps/sparc/sparc64/memset.S: Likewise.
30335         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30336
30337 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
30338
30339         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
30340         -D_FORTIFY_SOURCE=1.
30341         (CPPFLAGS-tst-longjmp_chk.c): Define.
30342         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
30343         (CPPFLAGS-tst-longjmp_chk2.c): Define.
30344         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
30345         CFLAGS-tst-wchar-h.c.
30346
30347 2012-05-31  Marek Polacek  <polacek@redhat.com>
30348
30349         [BZ #14132]
30350         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
30351         __endmntent_internal): Remove declaration.
30352         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
30353         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
30354         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
30355
30356 2012-05-30  David S. Miller  <davem@davemloft.net>
30357
30358         * sysdeps/sparc/sparc32/soft-fp/q_util.c
30359         (___Q_simulate_exceptions): Use real FP ops rather than writing
30360         into the %fsr.
30361         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
30362         Likewise.
30363
30364 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30365
30366         [BZ #14117]
30367         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
30368         * sysdeps/x86/bits/xtitypes.h: This.
30369
30370         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
30371         * sysdeps/x86/bits/wordsize.h: This.
30372
30373         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
30374         * sysdeps/x86/bits/huge_vall.h: This.
30375
30376         * sysdeps/i386/bits/select.h: Removed.
30377         * sysdeps/x86_64/bits/select.h: Renamed to ...
30378         * sysdeps/x86/bits/select.h: This.
30379
30380         * sysdeps/i386/bits/setjmp.h: Removed.
30381         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
30382         * sysdeps/x86/bits/setjmp.h: This.
30383
30384         * sysdeps/i386/bits/mathdef.h: Removed.
30385         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
30386         * sysdeps/x86/bits/mathdef.h: This.
30387
30388 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
30389
30390         [BZ #14132]
30391         * include/sys/socket.h (__connect_internal)
30392         (__libc_sa_len_internal): Remove declaration.
30393         (__connect, __libc_sa_len): Declare hidden_proto.
30394         (SA_LEN): Remove use of INTUSE.
30395         * socket/connect.c: Add libc_hidden_def.
30396         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
30397         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
30398         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
30399         alias.
30400         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
30401         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
30402         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
30403         of adding _internal alias.
30404
30405 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30406
30407         [BZ #14117]
30408         * sysdeps/i386/bits/link.h: Removed.
30409         * sysdeps/i386/bits/linkmap.h: Likewise.
30410         * sysdeps/x86_64/bits/link.h: Renamed to ...
30411         * sysdeps/x86/bits/link.h: This.
30412         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
30413         * sysdeps/x86/bits/linkmap.h: This.
30414
30415         * sysdeps/i386/bits/endian.h: Removed.
30416         * sysdeps/x86_64/bits/endian.h: Renamed to ...
30417         * sysdeps/x86/bits/endian.h: This.
30418
30419         * sysdeps/i386/bits/byteswap.h: Removed.
30420         * sysdeps/i386/bits/byteswap-16.h: Likewise.
30421         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
30422         * sysdeps/x86/bits/byteswap.h: This.
30423         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
30424         * sysdeps/x86/bits/byteswap-16.h: This.
30425         * sysdeps/i386/Implies: Add x86.
30426         * sysdeps/x86_64/Implies: Likewise.
30427
30428 2012-05-30  David S. Miller  <davem@davemloft.net>
30429
30430         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
30431         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
30432         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
30433         (FP_TRAPPING_EXCEPTIONS): Define.
30434         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
30435         (FP_TRAPPING_EXCEPTIONS): Define.
30436         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
30437         subnormals only when inexact has been signalled or underflow
30438         exceptions are enabled.
30439         (_FP_PACK_CANONICAL): Likewise.
30440
30441 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30442
30443         [BZ #14183]
30444         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
30445         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
30446
30447 2012-05-30  Richard Henderson  <rth@twiddle.net>
30448
30449         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
30450         with #ifndef NOT_IN_libc.
30451
30452         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
30453         marked to avoid plt entry.
30454
30455 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30456
30457         [BZ #14112]
30458         * Makeconfig (default-abi): New macro.
30459         (abi-includes): Likewise.
30460         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
30461         $(abi-$(default-abi)-lib-soname) for soname if defined.
30462         ($(common-objpfx)gnu/lib-names.stmp): Generate from
30463         abi-variants.
30464         * Makefile (installed-stubs): Likewise.
30465         * include/stubs-biarch.h: Removed.
30466         * scripts/lib-names.awk: Only handle one library at a time.
30467         * scripts/soversions.awk: Remove WORDSIZE support.
30468         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
30469         entries.
30470         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
30471         Removed.
30472         (syscall-list-default-condition): Likewise.
30473         (syscall-list-default-condition): Likewise.
30474         (syscall-list-includes): Likewise.
30475         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
30476         syscall-list-* with abi-*.  Handle undefined abi-variants.
30477         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
30478         * sysdeps/unix/sysv/linux/i386/Implies: New file.
30479         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
30480         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
30481         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
30482         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
30483         Removed.
30484         (syscall-list-32-options): Likewise.
30485         (syscall-list-32-condition): Likewise.
30486         (syscall-list-64-options): Likewise.
30487         (syscall-list-64-condition): Likewise.
30488         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
30489         macro.
30490         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
30491         Renamed to ...
30492         (abi-*): This.
30493         (abi-64-ld-soname): New macro.
30494         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
30495         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
30496         Renamed to ...
30497         (abi-*): This.
30498         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
30499         * sysdeps/x86_64/x32/shlib-versions: Likewise.
30500
30501 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
30502
30503         * sysdeps/unix/sysv/linux/kernel-features.h
30504         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
30505         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
30506         include <kernel-features.h>.
30507         [!__NR_ftruncate64]: Remove conditional code.
30508         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30509         [__NR_ftruncate64]: Make code unconditional.
30510         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30511         * sysdeps/unix/sysv/linux/truncate64.c: Do not
30512         include <kernel-features.h>.
30513         [!__NR_ftruncate64]: Remove conditional code.
30514         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30515         [__NR_ftruncate64]: Make code unconditional.
30516         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30517         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
30518         include <kernel-features.h>.
30519         [!__NR_ftruncate64]: Remove conditional code.
30520         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30521         [__NR_ftruncate64]: Make code unconditional.
30522         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
30524         include <kernel-features.h>.
30525         [!__NR_ftruncate64]: Remove conditional code.
30526         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30527         [__NR_ftruncate64]: Make code unconditional.
30528         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30529
30530         * configure.in (libc_cv_fpie): Weaken to a compile test using
30531         LIBC_TRY_CC_OPTION.
30532         * configure: Regenerated.
30533
30534 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30535
30536         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
30537         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
30538         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
30539         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
30540         Refreshed.
30541         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
30542         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
30543         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
30544         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
30545         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
30546         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
30547         Refreshed.
30548
30549 2012-05-27  David S. Miller  <davem@davemloft.net>
30550
30551         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
30552         (___Q_zero): New.
30553         (__Q_simulate_exceptions): Return void.  Change to simulate
30554         exceptions by writing into the %fsr.
30555         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
30556         (__Qp_handle_exceptions): Likewise.
30557         (numbers): Delete.
30558         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
30559         __Qp_handle_exceptions.
30560         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
30561         __Qp_handle_exceptions.
30562         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30563         as unused and give dummy FP_RND_NEAREST initializer.
30564         (FP_INHIBIT_RESULTS): Define.
30565         (___Q_simulate_exceptions): Update declaration.
30566         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
30567         formatting.
30568         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30569         as unused and give dummy FP_RND_NEAREST initializer.
30570         (__Qp_handle_exceptions): Update declaration.
30571         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
30572         formatting.
30573
30574 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
30575
30576         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
30577         the temporary FPU control word.
30578         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
30579         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
30580         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
30581         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30582         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
30583         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
30584         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
30585         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30586         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
30587         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
30588         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30589
30590 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30591
30592         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
30593         fields.
30594
30595 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
30596
30597         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
30598         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
30599         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
30600         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
30601         Likewise.
30602         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
30603         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
30604         Likewise.
30605
30606 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
30607
30608         * po/h.po: Update from translation team.
30609
30610 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
30611
30612         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
30613
30614         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
30615         handling of denormals.
30616         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
30617         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
30618         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
30619         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
30620         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
30621         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
30622         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
30623         Likewise.
30624
30625 2012-05-26  Marek Polacek  <polacek@redhat.com>
30626
30627         [BZ #14152]
30628         * math/libm-test.inc (fma_test): Don't always expect underflow
30629         exception.
30630
30631 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
30632
30633         [BZ #12416]
30634         * elf/tst-execstack.c: Include stackinfo.h.
30635         (do_test): Adjust test case to ensure that pthread_getattr_np
30636         behaviour remains the same after marking stack executable.
30637
30638 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
30639
30640         * sysdeps/unix/sysv/linux/kernel-features.h
30641         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
30642         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
30643         kernel-features.h.
30644         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
30645         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
30646         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
30647         kernel-features.h.
30648         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
30649         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
30650
30651 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
30652
30653         * configure.in: Define the default includes to being none.
30654         * configure: Regenerated.
30655
30656 2012-05-25  Roland McGrath  <roland@hack.frob.com>
30657
30658         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
30659         * sysdeps/x86_64/setjmp.S: Likewise.
30660         * sysdeps/i386/bsd-setjmp.S: Likewise.
30661         * sysdeps/i386/bsd-_setjmp.S: Likewise.
30662         * sysdeps/i386/setjmp.S: Likewise.
30663         * sysdeps/i386/__longjmp.S: Likewise.
30664         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
30665         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
30666
30667         * include/stap-probe.h: New file.
30668         * configure.in: Handle --enable-systemtap.
30669         * configure: Regenerated.
30670         * config.h.in (USE_STAP_PROBE): New #undef.
30671         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
30672         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
30673         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30674
30675 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
30676
30677         [BZ #13717]
30678         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
30679         to 2.4.0 where earlier.
30680         * sysdeps/unix/sysv/linux/configure: Regenerated.
30681         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
30682         <kernel-features.h>.
30683         [__ASSUME_32BITUIDS]: Make code unconditional.
30684         [!__ASSUME_32BITUIDS]: Remove conditional code.
30685         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
30686         <kernel-features.h>.
30687         [__ASSUME_32BITUIDS]: Make code unconditional.
30688         [!__ASSUME_32BITUIDS]: Remove conditional code.
30689         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
30690         [__ASSUME_32BITUIDS]: Make code unconditional.
30691         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
30692         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
30693         <kernel-features.h>.
30694         [__ASSUME_32BITUIDS]: Make code unconditional.
30695         [!__ASSUME_32BITUIDS]: Remove conditional code.
30696         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
30697         <kernel-features.h>.
30698         [__ASSUME_32BITUIDS]: Make code unconditional.
30699         [!__ASSUME_32BITUIDS]: Remove conditional code.
30700         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
30701         <kernel-features.h>.
30702         [__ASSUME_32BITUIDS]: Make code unconditional.
30703         [!__ASSUME_32BITUIDS]: Remove conditional code.
30704         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
30705         <kernel-features.h>.
30706         [__ASSUME_32BITUIDS]: Make code unconditional.
30707         [!__ASSUME_32BITUIDS]: Remove conditional code.
30708         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
30709         <kernel-features.h>.
30710         [__ASSUME_32BITUIDS]: Make code unconditional.
30711         [!__ASSUME_32BITUIDS]: Remove conditional code.
30712         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
30713         <kernel-features.h>.
30714         [__ASSUME_32BITUIDS]: Make code unconditional.
30715         [!__ASSUME_32BITUIDS]: Remove conditional code.
30716         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
30717         <kernel-features.h>.
30718         [__ASSUME_32BITUIDS]: Make code unconditional.
30719         [!__ASSUME_32BITUIDS]: Remove conditional code.
30720         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
30721         <kernel-features.h>.
30722         [__ASSUME_32BITUIDS]: Make code unconditional.
30723         [!__ASSUME_32BITUIDS]: Remove conditional code.
30724         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
30725         <kernel-features.h>.
30726         [__ASSUME_32BITUIDS]: Make code unconditional.
30727         [!__ASSUME_32BITUIDS]: Remove conditional code.
30728         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
30729         <kernel-features.h>.
30730         [__ASSUME_32BITUIDS]: Make code unconditional.
30731         [!__ASSUME_32BITUIDS]: Remove conditional code.
30732         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
30733         <kernel-features.h>.
30734         [__NR_setresgid] (__setresgid): Do not declare.
30735         [__ASSUME_32BITUIDS]: Make code unconditional.
30736         [!__ASSUME_32BITUIDS]: Remove conditional code.
30737         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
30738         <kernel-features.h>.
30739         [__NR_setresuid] (__setresuid): Do not declare.
30740         [__ASSUME_32BITUIDS]: Make code unconditional.
30741         [!__ASSUME_32BITUIDS]: Remove conditional code.
30742         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
30743         <kernel-features.h>.
30744         [__ASSUME_32BITUIDS]: Make code unconditional.
30745         [!__ASSUME_32BITUIDS]: Remove conditional code.
30746         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
30747         <kernel-features.h>.
30748         [__ASSUME_32BITUIDS]: Make code unconditional.
30749         [!__ASSUME_32BITUIDS]: Remove conditional code.
30750         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
30751         <kernel-features.h>.
30752         [__ASSUME_32BITUIDS]: Make code unconditional.
30753         [!__ASSUME_32BITUIDS]: Remove conditional code.
30754         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
30755         <kernel-features.h>.
30756         [__ASSUME_32BITUIDS]: Make code unconditional.
30757         [!__ASSUME_32BITUIDS]: Remove conditional code.
30758         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
30759         <kernel-features.h>.
30760         [__ASSUME_32BITUIDS]: Make code unconditional.
30761         [!__ASSUME_32BITUIDS]: Remove conditional code.
30762         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
30763         <kernel-features.h>.
30764         [__ASSUME_32BITUIDS]: Make code unconditional.
30765         [!__ASSUME_32BITUIDS]: Remove conditional code.
30766         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
30767         <kernel-features.h>.
30768         [__ASSUME_32BITUIDS]: Make code unconditional.
30769         [!__ASSUME_32BITUIDS]: Remove conditional code.
30770         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
30771         <kernel-features.h>.
30772         [__ASSUME_32BITUIDS]: Make code unconditional.
30773         [!__ASSUME_32BITUIDS]: Remove conditional code.
30774         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
30775         <kernel-features.h>.
30776         [__ASSUME_32BITUIDS]: Make code unconditional.
30777         [!__ASSUME_32BITUIDS]: Remove conditional code.
30778         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
30779         <kernel-features.h>.
30780         [__ASSUME_32BITUIDS]: Make code unconditional.
30781         [!__ASSUME_32BITUIDS]: Remove conditional code.
30782         * sysdeps/unix/sysv/linux/kernel-features.h
30783         (__ASSUME_SETRESUID_SYSCALL): Remove.
30784         (__ASSUME_SETRESGID_SYSCALL): Likewise.
30785         (__ASSUME_32BITUIDS): Likewise.
30786         (__ASSUME_LDT_WORKS): Likewise.
30787         (__ASSUME_O_DIRECTORY): Likewise.
30788         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
30789         architecture but not kernel version.
30790         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
30791         (__ASSUME_MMAP2_SYSCALL): Likewise.
30792         (__ASSUME_STAT64_SYSCALL): Likewise.
30793         (__ASSUME_IPC64): Likewise.
30794         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
30795         <kernel-features.h>.
30796         [__ASSUME_32BITUIDS]: Make code unconditional.
30797         [!__ASSUME_32BITUIDS]: Remove conditional code.
30798         * sysdeps/unix/sysv/linux/opendir.c: Do not include
30799         <kernel-features.h>.
30800         [__ASSUME_O_DIRECTORY]: Make code unconditional.
30801         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
30802         132096]: Remove conditional code.
30803         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
30804         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
30805         <kernel-features.h>.
30806         [__ASSUME_32BITUIDS]: Make code unconditional.
30807         [!__ASSUME_32BITUIDS]: Remove conditional code.
30808         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
30809         <kernel-features.h>.
30810         [__ASSUME_32BITUIDS]: Make code unconditional.
30811         [!__ASSUME_32BITUIDS]: Remove conditional code.
30812         * sysdeps/unix/sysv/linux/setegid.c: Do not include
30813         <kernel-features.h>.
30814         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
30815         unconditional.
30816         (__setresgid): Do not declare.
30817         [__ASSUME_32BITUIDS]: Make code unconditional.
30818         [!__ASSUME_32BITUIDS]: Remove conditional code.
30819         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
30820         <kernel-features.h>.
30821         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
30822         unconditional.
30823         (__setresuid): Do not declare.
30824         [__ASSUME_32BITUIDS]: Make code unconditional.
30825         [!__ASSUME_32BITUIDS]: Remove conditional code.
30826         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
30827         <kernel-features.h>.
30828         [__ASSUME_32BITUIDS]: Make code unconditional.
30829         [!__ASSUME_32BITUIDS]: Remove conditional code.
30830         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
30831         <kernel-features.h>.
30832         [__ASSUME_32BITUIDS]: Make code unconditional.
30833         [!__ASSUME_32BITUIDS]: Remove conditional code.
30834
30835 2012-05-25  Richard Henderson  <rth@twiddle.net>
30836
30837         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
30838         dl_hwcap to ifunc resolver.
30839         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
30840         elf_ifunc_invoke.
30841         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
30842         dl_hwcap to ifunc resolver.
30843         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
30844
30845 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30846
30847         [BZ #14153]
30848         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
30849         for |x| <= 2**-26, not 2**-57.
30850         * math/libm-test.inc (acos_test): Do not allow spurious underflow
30851         exception.
30852
30853 2012-05-24  Jeff Law  <law@redhat.com>
30854
30855         * stdio-common/Makefile (tests): Add bug25.
30856         * stdio-common/bug25.c: New test.
30857
30858 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
30859
30860         [BZ #13576]
30861         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
30862         multiple of MALLOC_ALIGNMENT in size.
30863         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
30864
30865 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30866
30867         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
30868         Require >= 256.
30869         (FILENAME_MAX): Use macro-int-constant.
30870         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
30871         (_IOFBF): Use macro-int-constant.
30872         (_IOLBF): Likewise.
30873         (_IONBF): Likewise.
30874         (SEEK_CUR): Likewise.
30875         (SEEK_END): Likewise.
30876         (SEEK_SET): Likewise.
30877         (TMP_MAX): Likewise.
30878         (EOF): Use macro-int-constant.  Require < 0.
30879         (NULL): Use macro-constant.  Require == 0.
30880         (stdin): Require type to be FILE *.
30881         (stdout): Likewise.
30882         (stderr): Likewise.
30883         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
30884         macro-int-constant.
30885         (EXIT_SUCCESS): Likewise.
30886         (NULL): Use macro-constant.  Require == 0.
30887         (RAND_MAX): Use macro-int-constant.
30888         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
30889         [C99-based standards] (strtof): Require function.
30890         [C99-based standards] (strtold): Likewise.
30891         [C99-based standards] (strtoll): Likewise.
30892         [C99-based standards] (strtoull): Likewise.
30893         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
30894         [ISO || ISO99 || ISO11] (limits.h): Likewise.
30895         [ISO || ISO99 || ISO11] (math.h): Likewise.
30896         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
30897         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
30898         [ISO || ISO99 || ISO11] (*_t): Do not allow.
30899
30900 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
30901
30902         [BZ #14132]
30903         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
30904         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
30905         * intl/dgettext.c (DCGETTEXT): Likewise.
30906         * intl/gettext.c (DCGETTEXT): Likewise.
30907         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
30908         * posix/regex_internal.h (gettext): Likewise.
30909         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
30910         Remove declaration.
30911         * include/argz.h (__argz_count_internal)
30912         (__argz_stringify_internal): Remove declaration.
30913         (__argz_count, __argz_stringify): Declare hidden proto.
30914         * intl/dcgettext.c: Remove use of INTDEF.
30915         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
30916         * string/argz-stringify.c: Likewise.
30917         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
30918         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
30919         Declare hidden proto.
30920         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
30921         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
30922         Declare hidden proto.
30923         * include/stdio.h (__asprintf_internal): Don't declare.
30924         (__asprintf): Don't define as macro.  Declare hidden proto.
30925         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
30926         (__fsetlocking): Declare hidden proto.
30927         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
30928         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
30929         hidden proto.
30930         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
30931         (_IO_setlinebuf): Remove use of INTUSE.
30932         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
30933         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
30934         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
30935         Remove declaration.
30936         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
30937         (_IO_do_flush): Remove use of INTUSE.
30938         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
30939         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
30940         (_IO_adjust_column, _IO_least_wmarker)
30941         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
30942         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
30943         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
30944         (_IO_default_doallocate, _IO_wdefault_doallocate)
30945         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
30946         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
30947         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
30948         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
30949         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
30950         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
30951         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
30952         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
30953         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
30954         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
30955         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
30956         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
30957         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
30958         proto.
30959         (_IO_flush_all_internal, _IO_adjust_column_internal)
30960         (_IO_default_uflow_internal, _IO_default_finish_internal)
30961         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
30962         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
30963         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
30964         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
30965         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
30966         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
30967         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
30968         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
30969         (_IO_file_close_internal, _IO_file_close_it_internal)
30970         (_IO_file_underflow_internal, _IO_file_overflow_internal)
30971         (_IO_file_init_internal, _IO_file_attach_internal)
30972         (_IO_file_fopen_internal, _IO_file_read_internal)
30973         (_IO_file_sync_internal, _IO_file_seek_internal)
30974         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
30975         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
30976         (_IO_str_underflow_internal, _IO_str_overflow_internal)
30977         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
30978         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
30979         (_IO_list_all_internal, _IO_link_in_internal)
30980         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
30981         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
30982         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
30983         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
30984         (_IO_do_write_internal, _IO_padn_internal)
30985         (_IO_getline_info_internal, _IO_getline_internal)
30986         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
30987         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
30988         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
30989         (_IO_vfscanf_internal, _IO_vfprintf_internal)
30990         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
30991         (_IO_init_internal, _IO_un_link_internal): Don't declare.
30992         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
30993         with libc_hidden_ver, remove use of INTUSE.
30994         * libio/genops.c: Likewise.
30995         * libio/freopen.c: Likewise.
30996         * libio/freopen64.c: Likewise.
30997         * libio/iofclose.c: Likewise.
30998         * libio/iofdopen.c: Likewise.
30999         * libio/iofflush.c: Likewise.
31000         * libio/iofflush_u.c: Likewise.
31001         * libio/iofgets.c: Likewise.
31002         * libio/iofgets_u.c: Likewise.
31003         * libio/iofopen.c: Likewise.
31004         * libio/iofopncook.c: Likewise.
31005         * libio/iofread.c: Likewise.
31006         * libio/iofread_u.c: Likewise.
31007         * libio/ioftell.c: Likewise.
31008         * libio/iofwrite.c: Likewise.
31009         * libio/iogetline.c: Likewise.
31010         * libio/iogets.c: Likewise.
31011         * libio/iogetwline.c: Likewise.
31012         * libio/iopadn.c: Likewise.
31013         * libio/iopopen.c: Likewise.
31014         * libio/ioseekoff.c: Likewise.
31015         * libio/ioseekpos.c: Likewise.
31016         * libio/iosetbuffer.c: Likewise.
31017         * libio/iosetvbuf.c: Likewise.
31018         * libio/ioungetc.c: Likewise.
31019         * libio/ioungetwc.c: Likewise.
31020         * libio/iovdprintf.c: Likewise.
31021         * libio/iovsprintf.c: Likewise.
31022         * libio/iovsscanf.c: Likewise.
31023         * libio/memstream.c: Likewise.
31024         * libio/obprintf.c: Likewise.
31025         * libio/oldfileops.c: Likewise.
31026         * libio/oldiofclose.c: Likewise.
31027         * libio/oldiofdopen.c: Likewise.
31028         * libio/oldiofopen.c: Likewise.
31029         * libio/oldiopopen.c: Likewise.
31030         * libio/oldstdfiles.c: Likewise.
31031         * libio/putc.c: Likewise.
31032         * libio/setbuf.c: Likewise.
31033         * libio/setlinebuf.c: Likewise.
31034         * libio/stdfiles.c: Likewise.
31035         * libio/strops.c: Likewise.
31036         * libio/vasprintf.c: Likewise.
31037         * libio/vscanf.c: Likewise.
31038         * libio/vsnprintf.c: Likewise.
31039         * libio/vswprintf.c: Likewise.
31040         * libio/wfiledoalloc.c: Likewise.
31041         * libio/wfileops.c: Likewise.
31042         * libio/wgenops.c: Likewise.
31043         * libio/wmemstream.c: Likewise.
31044         * libio/wstrops.c: Likewise.
31045         * libio/__fpurge.c: Likewise.
31046         * libio/__fsetlocking.c: Likewise.
31047         * assert/assert.c: Likewise.
31048         * debug/fgets_chk.c: Likewise.
31049         * debug/fgets_u_chk.c: Likewise.
31050         * debug/fread_chk.c: Likewise.
31051         * debug/fread_u_chk.c: Likewise.
31052         * debug/gets_chk.c: Likewise.
31053         * debug/obprintf_chk.c: Likewise.
31054         * debug/vasprintf_chk.c: Likewise.
31055         * debug/vdprintf_chk.c: Likewise.
31056         * debug/vsnprintf_chk.c: Likewise.
31057         * debug/vsprintf_chk.c: Likewise.
31058         * malloc/mtrace.c: Likewise.
31059         * misc/error.c: Likewise.
31060         * misc/syslog.c: Likewise.
31061         * stdio-common/asprintf.c: Likewise.
31062         * stdio-common/fxprintf.c: Likewise.
31063         * stdio-common/getw.c: Likewise.
31064         * stdio-common/isoc99_fscanf.c: Likewise.
31065         * stdio-common/isoc99_scanf.c: Likewise.
31066         * stdio-common/isoc99_vfscanf.c: Likewise.
31067         * stdio-common/isoc99_vscanf.c: Likewise.
31068         * stdio-common/isoc99_vsscanf.c: Likewise.
31069         * stdio-common/printf-prs.c: Likewise.
31070         * stdio-common/printf_fp.c: Likewise.
31071         * stdio-common/printf_fphex.c: Likewise.
31072         * stdio-common/printf_size.c: Likewise.
31073         * stdio-common/putw.c: Likewise.
31074         * stdio-common/scanf.c: Likewise.
31075         * stdio-common/sprintf.c: Likewise.
31076         * stdio-common/tmpfile.c: Likewise.
31077         * stdio-common/vfprintf.c: Likewise.
31078         * stdio-common/vfscanf.c: Likewise.
31079         * stdlib/strfmon_l.c: Likewise.
31080         * sunrpc/openchild.c: Likewise.
31081         * sunrpc/xdr_stdio.c: Likewise.
31082         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31083         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31084
31085 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31086
31087         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31088
31089         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31090         in the third column, to generate for the shared library an IFUNC
31091         that uses _dl_vdso_vsym.
31092         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31093         * Makeconfig (object-suffixes-noshared): New variable.
31094
31095         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31096         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31097         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31098         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31099
31100         [BZ #14132]
31101         * include/sys/time.h (__gettimeofday): Remove macro.
31102         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31103         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31104         Remove INTDEF.
31105         (__gettimeofday): Add libc_hidden_def.
31106         (gettimeofday): Add libc_hidden_weak.
31107         * sysdeps/mach/gettimeofday.c: Likewise.
31108         * sysdeps/posix/gettimeofday.c: Likewise.
31109         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31110         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31111         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31112         (__gettimeofday_internal): Remove strong_alias.
31113         (__gettimeofday): Add libc_hidden_def.
31114         (gettimeofday): Add libc_hidden_weak.
31115         * sysdeps/unix/syscalls.list (gettimeofday):
31116         Remove __gettimeofday_internal alias.
31117
31118 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31119             H.J. Lu  <hongjiu.lu@intel.com>
31120
31121         [BZ #12495]
31122         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31123         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31124         (largebin_index_32_big): New.
31125         (largebin_index): Use it for 16-byte alignment.
31126         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31127         correction with front_misalign.
31128
31129 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31130
31131         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31132         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31133         Likewise.
31134         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31135         Likewise.
31136         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31137         Likewise.
31138         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31139         Likewise.
31140         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31141         Likewise.
31142         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31143         Likewise.
31144         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31145         Likewise.
31146         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31147         Likewise.
31148         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31149         Likewise.
31150         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31151         Likewise.
31152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31153         Likewise.
31154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31155         Likewise.
31156
31157         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31158         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31159
31160 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31161
31162         [BZ #10846]
31163         [BZ #14036]
31164         * math/libm-test.inc (exp_test): Add test from bug 14036.
31165         (pow_test): Add test from bug 10846.
31166
31167         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31168         and other flags.
31169         (special_function): Do not include flags in test name.
31170         (parse_args): Likewise.
31171         * sysdeps/i386/fpu/libm-test-ulps: Update.
31172         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31173         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31174         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31176
31177         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31178         exceptions.
31179         * math/libm-test.inc ("Philosophy"): Update comment about
31180         exception testing.
31181         (UNDERFLOW_EXCEPTION): New macro.
31182         (UNDERFLOW_EXCEPTION_OK): Likewise.
31183         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31184         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31185         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31186         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31187         (INVALID_EXCEPTION_OK): Update value.
31188         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31189         (OVERFLOW_EXCEPTION_OK): Likewise.
31190         (IGNORE_ZERO_INF_SIGN): Likewise.
31191         (test_exceptions): Handle underflow exceptions.
31192         (acos_test): Update for underflow exception expectations.
31193         (cexp_test): Likewise.
31194         (clog_test): Likewise.
31195         (clog10_test): Likewise.
31196         (csqrt_test): Likewise.
31197         (ctan_test): Likewise.
31198         (ctanh_test): Likewise.
31199         (exp_test): Likewise.
31200         (exp10_test): Likewise.
31201         (exp2_test): Likewise.
31202         (expm1_test): Likewise.
31203         (fma_test): Likewise.
31204         (j0_test): Likewise.
31205         (jn_test): Likewise.
31206         (nexttoward_test): Likewise.
31207         (pow_test): Likewise.
31208         (scalbn_test): Likewise.
31209         (scalbln_test): Likewise.
31210         (tan_test): Likewise.
31211         (y1_test): Likewise.
31212         * sysdeps/i386/fpu/libm-test-ulps: Update.
31213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31214
31215 2012-05-23  David S. Miller  <davem@davemloft.net>
31216
31217         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31218         (__libc_sigaction): Remove unused local variables.
31219
31220 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31221
31222         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31223
31224 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31225
31226         mktime: avoid signed integer overflow
31227         * time/mktime.c (__mktime_internal): Do not mishandle the case
31228         where diff == INT_MIN.
31229
31230         mktime: simplify computation of average
31231         * time/mktime.c (ranged_convert): Use new time_t_avg function
31232         instead of rolling our own (probably-slower) code.
31233
31234         mktime: do not assume signed right shift propagates sign bit
31235         * time/mktime.c (isdst_differ): New static function.
31236         (__mktime_internal): No need to normalize tm_isdst now.
31237         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
31238         tm_isdst values.
31239
31240         mktime: merge another wrapv change from gnulib
31241         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
31242         from some compilers.
31243
31244         mktime: remove incorrect attempt at unusual arithmetics
31245         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
31246         The code didn't really work on such machines anyway.
31247         (TYPE_MINIMUM): Assume two's complement.
31248         (twos_complement_arithmetic): Verify that long_int and time_t
31249         are two's complement (or unsigned, in the latter case).
31250
31251         mktime: check signed shifts on long_int and time_t, too
31252         * time/mktime.c (SHR): Check that shifts work as desired
31253         on the types long_int and time_t too, as SHR is used on
31254         such types.
31255
31256         mktime: do not assume 'long' is wide enough
31257         * time/mktime.c (verify): Move decl up.
31258         (long_int): New type.
31259         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
31260         to remove assumption in the code that 'long' is wide enough to
31261         store year values.  This assumption is not true on x32 and on
31262         some non-glibc platforms.
31263
31264         mktime: merge wrapv change from gnulib
31265         * time/mktime.c (WRAPV): New macro.
31266         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
31267         (guess_time_tm, __mktime_internal): Do not assume that signed
31268         integer overflow wraps around; modern compilers generate code
31269         where this assumption is no longer valid.
31270
31271 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31272
31273         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31274         Replace "jmp L(pseudo_end)" with "ret".
31275         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
31276         Likewise.
31277
31278 2012-05-23  Andreas Jaeger  <aj@suse.de>
31279
31280         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
31281         * sysdeps/unix/sysv/linux/poll.c: Remove file.
31282
31283 2012-05-23  Andreas Jaeger  <aj@suse.de>
31284             Maximilian Attems  <max@stro.at>
31285
31286         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
31287         New macros.
31288
31289 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31290
31291         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
31292         code so that pseudo_end is just ret and the stack pointer is
31293         correct also for static library in error case.
31294
31295 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
31296
31297         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
31298         move to syscalls.list.
31299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
31300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31303
31304         * manual/install.texi (Running make install): Do not mention Linux
31305         kernel version for which pt_chown is not needed.
31306         (Linux): Do not mention problems with nscd with 2.0 kernels.
31307         * INSTALL: Regenerated.
31308
31309 2012-05-23  Andreas Jaeger  <aj@suse.de>
31310
31311         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
31312         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
31313         macro.
31314         * sysdeps/unix/sysv/linux/s390/bits/mman.h
31315         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31316         * sysdeps/unix/sysv/linux/sh/bits/mman.h
31317         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31318         * sysdeps/unix/sysv/linux/i386/bits/mman.h
31319         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31320         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
31321         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31322         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
31323         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31324         * sysdeps/unix/sysv/linux/bits/in.h
31325         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
31326
31327 2012-05-22  Roland McGrath  <roland@hack.frob.com>
31328
31329         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
31330         (PREPARE_VERSION): Just use assert instead, it will be elided
31331         under [NDEBUG] anyway.
31332
31333 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31334
31335         * sysdeps/unix/sysv/linux/Makefile: Include
31336         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
31337         (sysdep_routines): Remove sysctl.
31338         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
31339         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
31340         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
31341         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
31342         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
31343
31344 2012-05-22  Andreas Jaeger  <aj@suse.de>
31345
31346         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
31347         that pseudo_end is just ret and the stack pointer is correct also
31348         for static library in error case.
31349
31350 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
31351
31352         [BZ #14122]
31353         * nss/nsswitch.c (defconfig_entries): New variable.
31354         (__nss_database_lookup): Don't leak defconfig entries.
31355         (nss_parse_service_list): Don't leak on error paths.
31356         (free_database_entries): New function.
31357         (free_defconfig): New function.
31358         (free_mem): Move common code to free_database_entries.
31359
31360 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31361
31362         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
31363         Add arch_prctl.
31364         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
31365
31366         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
31367         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
31368         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
31369         New macro.
31370         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
31371         (INTERNAL_SYSCALL_TYPES): Likewise.
31372         (LOAD_ARGS_TYPES_[1-6]): Likewise.
31373         (LOAD_REGS_TYPES_[1-6]): Likewise.
31374         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
31375         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
31376
31377 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31378
31379         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
31380         copysignl for GLIBC_2_0.
31381         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
31382         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
31383         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
31384         logbl for GLIBC_2_0.
31385         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31386         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
31387
31388 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31389
31390         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
31391         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31392
31393         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31394         Use "neg %eax".
31395
31396         * time/mktime.c: Update copyright years.
31397
31398 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31399
31400         mktime: merge comment-quoting-style change from gnulib
31401         * time/mktime.c: Quote 'like this' in comments.
31402         The GNU coding standards suggest that we no longer quote `like this',
31403         as "`" and "'" are typically rendered asymmetrically nowadays.
31404         The typical gnulib style is to quote 'like this' when quoting
31405         code, and "like this" when quoting English.
31406
31407         * time/mktime.c (compile-command): Add "-I.".
31408
31409         mktime: merge mktime-internal.h change from gnulib
31410         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
31411
31412         mktime: merge time_r change from gnulib
31413         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
31414
31415         mktime: merge DEBUG change from gnulib
31416         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
31417         case system <time.h> has a #define.
31418
31419         mktime: merge <sys/types.h> change from gnulib
31420         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
31421         since <time.t> is now guaranteed to define time_t.
31422
31423         mktime: merge HAVE_CONFIG_H change from gnulib
31424         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
31425
31426 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31427
31428         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31429         Use "neg %eax".
31430
31431         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
31432         __rlim_t cast.
31433         (struct rusage): Use anonymous union to pad each field to
31434         __syscall_slong_t.
31435
31436 2012-05-21  David S. Miller  <davem@davemloft.net>
31437
31438         * Makefules (o-iterator): Remove .s cases.
31439         (compile-command.s): Delete.
31440         (COMPILE.s): Delete.
31441         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
31442
31443 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
31444
31445         * configure.in (libc_cv_predef_stack_protector): Only consider
31446         "foobar" and "__stack_chk_fail" lines in libc_undefs.
31447         * configure: Regenerated.
31448
31449 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31450
31451         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31452         New macro.  Use R*LP on int and pointer.
31453         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
31454         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
31455         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
31456         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
31457
31458         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
31459         [__WORDSIZE_TIME64_COMPAT32] instead of
31460         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
31461         (struct utmp): Likewise.
31462         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
31463         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
31464         Renamed to ...
31465         (__WORDSIZE_TIME64_COMPAT32): This.
31466         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
31467         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
31468         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
31469         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
31470         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
31471         (__WORDSIZE_TIME64_COMPAT32): New macro.
31472
31473 2012-05-21  Andreas Jaeger  <aj@suse.de>
31474
31475         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
31476         only if [SHARED]. Add prototype for __wcschr_ia32.
31477
31478 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31479
31480         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
31481         of %rbp unmolested in the jmp_buf while mangling the low bits.
31482         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
31483         unmolested high bits of %rbp while demangling the low bits.
31484         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31485
31486 2012-05-21  Andreas Jaeger  <aj@suse.de>
31487
31488         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
31489         * sunrpc/svc_simple.c: Use it for registerrpc.
31490         * sunrpc/xcrypt.c: Use it for passwd2des.
31491
31492         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
31493
31494 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31495
31496         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
31497         Don't define if [__SYSCALL_WORDSIZE != 32].
31498         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
31499         New macro.
31500
31501 2012-05-21  Bruno Haible  <bruno@clisp.org>
31502             Andreas Jaeger  <aj@suse.de>
31503
31504         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
31505         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
31506         inptr and inend for must_buffer_ch.
31507         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
31508         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
31509         * stdio-common/Makefile (tests): Remove bug15.
31510         (bug15-ENV): Remove macro.
31511         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
31512         anymore.
31513
31514 2012-05-19  Andreas Jaeger  <aj@suse.de>
31515             Roland McGrath  <roland@hack.frob.com>
31516
31517         * manual/contrib.texi: Completely rewritten. It contains now an
31518         alphabetical list of contributors and their contributions.
31519
31520 2012-05-21  Richard Henderson  <rth@twiddle.net>
31521
31522         * misc/getauxval.c (__getauxval): Use unsigned long int.
31523         * misc/sys/auxv.h: Include <sys/cdefs.h>.
31524         (getauxval): Use unsigned long int.
31525
31526 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31527
31528         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31529
31530 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31531
31532         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
31533         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
31534         __alignof__ (long double).
31535
31536 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31537
31538         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31539
31540 2012-05-20  Richard Henderson  <rth@twiddle.net>
31541
31542         * misc/getauxval.c: New file.
31543         * misc/sys/auxv.h: New file.
31544         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
31545         (routines): Add getauxval.
31546         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
31547         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
31548         * elf/dl-sysdep.c (_dl_auxv): Remove.
31549         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
31550         * elf/dl-support.c (_dl_auxv): New variable.
31551         (_dl_aux_init): Initialize it.
31552         * manual/startup.texi (Auxiliary Vector): New node.
31553         * sysdeps/generic/bits/hwcap.h: New file.
31554         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
31555         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
31556         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
31557         * sysdeps/sparc/sysdep.h: ... here.  Include it.
31558         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
31559         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
31560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
31561         Update.
31562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
31563         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
31564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
31565         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
31566         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31567         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31568         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
31569         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
31570
31571 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31572
31573         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31574
31575 2012-05-19  David S. Miller  <davem@davemloft.net>
31576
31577         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31578
31579 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31580
31581         [BZ #14123]
31582         * math/s_ccosh.c: Include <float.h>
31583         (__ccosh): Avoid internal overflow calculating sinh and cosh
31584         values before multiplying by sin and cos values.
31585         * math/s_ccoshf.c: Likewise.
31586         * math/s_ccoshl.c: Likewise.
31587         * math/s_csin.c: Likewise.
31588         * math/s_csinf.c: Likewise.
31589         * math/s_csinl.c: Likewise.
31590         * math/s_csinh.c: Likewise.
31591         * math/s_csinhf.c: Likewise.
31592         * math/s_csinhl.c: Likewise.
31593         * math/libm-test.inc (ccos_test): Add more tests.
31594         (ccosh_test): Likewise.
31595         (csin_test): Likewise.
31596         (csinh_test): Likewise.
31597         * sysdeps/i386/fpu/libm-test-ulps: Update.
31598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31599
31600 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
31601
31602         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
31603         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
31604
31605         * sysdeps/x86_64/x32/_itoa.h: Add comment.
31606
31607 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31608
31609         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
31610         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
31611         * sysdeps/powerpc/soft-fp/Versions: Likewise.
31612         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
31613         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
31614         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
31615         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
31616         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
31617         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
31618         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
31619         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
31620         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
31621         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
31622         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
31623         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
31624         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
31625         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
31626         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
31627         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
31628         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
31629         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
31630         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
31631         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
31632         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
31633         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
31634         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
31635         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
31636         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
31637         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
31638         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
31639         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
31640
31641 2012-05-18  Andreas Jaeger  <aj@suse.de>
31642
31643         * csu/.gitignore: Delete.
31644
31645 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31646
31647         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
31648         (timex): Use __syscall_slong_t.
31649
31650 2012-05-18  Andreas Jaeger  <aj@suse.de>
31651             Carlos O'Donell  <carlos_odonell@mentor.com>
31652
31653         * manual/install.texi (Configuring and compiling): Update
31654         description about files modified in the source directory.
31655         * INSTALL: Regenerated.
31656
31657 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31658
31659         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
31660         value.  Use "or" to set return value to -1.
31661         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
31662         negate return value.
31663
31664 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31665
31666         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
31667         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
31668         failure if the compiler has Graphite support disabled.
31669         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
31670         Likewise.
31671         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
31672         (CFLAGS-memmove.c): Likewise.
31673         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
31674         Likewise.
31675
31676 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31677
31678         * sysdeps/x86_64/x32/_itoa.h: New file.
31679
31680         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
31681         getdents system call only if kernel and user dirents have the
31682         same d_ino and d_off.
31683
31684         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
31685         LLONG_MAX != LONG_MAX.
31686         (_itoa_word): Use _ITOA_WORD_TYPE on value.
31687         (_fitoa_word): Likewise.
31688
31689         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
31690         years.
31691         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
31692         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
31693         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
31694
31695         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
31696         include <bits/wordsize.h>.  Check __x86_64__ instead of
31697         __WORDSIZE.
31698         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
31699         if __x86_64__ is defined.  Use anonymous union on fpstate.
31700
31701         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
31702         anonymous union.
31703
31704 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
31705
31706         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31707         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
31708         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
31709         Refer to _rtld_local_ro instead of _rtld_global_ro.
31710         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
31711         Likewise.
31712         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
31713         Likewise.
31714         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
31715         Likewise.
31716         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
31717         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
31718         of _rtld_global, and rtld_progname instead of _dl_argv[0].
31719
31720         * sysdeps/powerpc/powerpc32/dl-machine.c
31721         (__elf_machine_runtime_setup) [PROF]: Don't reference
31722         _dl_prof_resolve.
31723
31724 2012-05-18  Andreas Jaeger  <aj@suse.de>
31725
31726         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
31727         function only available for GCCs before 3.4 since GCC 3.4
31728         introduced a builtin.
31729         (lrint): Likewise.
31730         (llrintf): Likewise.
31731         (llrint): Likewise.
31732         (fmaxf): Likewise.
31733         (fmax): Likewise.
31734         (fminf): Likewise.
31735         (fmin): Likewise.
31736         (rint): Likewise.
31737         (rintf): Likewise.
31738         (nearbyint): Likewise.
31739         (nearbyintf): Likewise.
31740         (ceil): Likewise.
31741         (ceilf): Likewise.
31742         (floor): Likewise.
31743         (floorf): Likewise.
31744
31745 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31746
31747         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
31748         on both fields and cast pointer to __syscall_ulong_t.
31749
31750         * bits/types.h (__fsword_t): New type.
31751         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
31752         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
31753         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
31754         (__FSWORD_T_TYPE): Likewise.
31755         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
31756         (__FSWORD_T_TYPE): Likewise.
31757         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
31758         (__FSWORD_T_TYPE): Likewise.
31759         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
31760         (__FSWORD_T_TYPE): Likewise.
31761         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
31762         __SWORD_TYPE with __fsword_t.
31763         (statfs64): Likewise.
31764
31765 2012-05-17  David S. Miller  <davem@davemloft.net>
31766
31767         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
31768
31769 2012-05-17  Andreas Jaeger  <aj@suse.de>
31770
31771         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
31772         warning.
31773
31774 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31775
31776         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
31777
31778 2012-05-17  Andreas Jaeger  <aj@suse.de>
31779
31780         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
31781         when it is used.
31782
31783 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
31784
31785         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
31786
31787 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31788
31789         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
31790         * sysdeps/x86_64/tst-mallocalign1.c: New file.
31791
31792 2012-05-17  Andreas Jaeger  <aj@suse.de>
31793             Carlos O'Donell  <carlos_odonell@mentor.com>
31794
31795         [BZ #14059]
31796         * sysdeps/x86_64/multiarch/init-arch.h
31797         (bit_YMM_Usable): Rename to...
31798         (bit_AVX_Usable): ... this.
31799         (bit_FMA4_Usable): New macro.
31800         (bit_XMM_state): New macro.
31801         (bit_YMM_state): New macro.
31802         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
31803         [__ASSEMBLER__] (index_AVX_Usable): ... this.
31804         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
31805         (CPUID_OSXSAVE): New macro.
31806         (CPUID_AVX): New macro.
31807         (CPUID_FMA4): New macro.
31808         (index_YMM_Usable): Rename to...
31809         (index_AVX_Usable): ... this.
31810         (HAS_AVX): Use HAS_ARCH_FEATURE.
31811         (HAS_FMA4): Likewise.
31812         (HAS_YMM_USABLE): Remove.
31813         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31814         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
31815         are present.
31816         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
31817         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
31818         * sysdeps/x86_64/multiarch/Makefile: Likewise.
31819         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
31820         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
31821
31822 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
31823
31824         * math/libm-test.c: Support platforms without multiple rounding modes.
31825         * math/bug-nextafter.c: Support platforms without FP exceptions.
31826         * math/bug-nexttoward.c: Likewise.
31827         * math/test-fenv.c: Likewise.
31828         * math/test-misc.c: Likewise.
31829         * stdlib/bug-getcontext.c: Likewise.
31830
31831 2012-05-17  Andreas Jaeger  <aj@suse.de>
31832
31833         * manual/examples/search.c (critter_cmp): Change signature to
31834         avoid warnings.
31835         * manual/string.texi (Collation Functions): Likewise.
31836
31837 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31838
31839         * bits/types.h: Fold copyright years.
31840         * bits/typesizes.h: Likewise.
31841         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
31842         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
31843         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
31844         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
31845         * time/time.h: Likewise.
31846
31847 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
31848
31849         [BZ #208]
31850         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
31851         in instead of returning them.  Return void.
31852         (__libc_mallinfo): Accumulate over all arenas.
31853         (__malloc_stats): Adjust for change in int_mallinfo interface.
31854
31855 2012-05-16  Roland McGrath  <roland@hack.frob.com>
31856
31857         [BZ #10375]
31858         * configure.in (NM): Add AC_CHECK_TOOL for it.
31859         (libc_extra_cflags): New substituted variable.
31860         Check for -fstack-protector being used implicitly.
31861         * configure: Regenerated.
31862         * config.make.in (config-extra-cflags): New variable,
31863         gets @libc_extra_cflags@.
31864         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
31865
31866         [BZ #10375]
31867         * configure.in: Check for _FORTIFY_SOURCE being predefined.
31868         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
31869         * configure: Regenerated.
31870         * config.make.in (CPPUNDEFS): New substituted variable.
31871         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
31872         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
31873         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
31874
31875 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31876
31877         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
31878         (mq_attr): Use __syscall_slong_t.
31879
31880 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31881
31882         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
31883         Check __x86_64__ instead of __WORDSIZE.
31884         (_STAT_VER_LINUX): Likewise.
31885         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
31886         __syscall_ulong_t and __syscall_slong_t.
31887         (stat64): Likewise.
31888
31889 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31890
31891         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
31892
31893 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31894
31895         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
31896
31897 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31898
31899         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
31900         __syscall_ulong_t.
31901
31902         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
31903         include <bits/wordsize.h>.  Check __x86_64__ instead of
31904         __WORDSIZE.
31905         (greg_t): Use "__extension__ long long int" if __x86_64__ is
31906         defined.
31907         (mcontext_t): Replace "unsigned long" with "unsigned long long".
31908
31909         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
31910         include <bits/wordsize.h>.  Check __x86_64__ instead of
31911         __WORDSIZE.
31912         (user_regs_struct): Use "__extension__ unsigned long long"
31913         instead of "unsigned long" if __x86_64__ is defined.
31914         (user): Likewise.  Pad after pointer field if __ILP32__ is
31915         defined.
31916
31917 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
31918
31919         * configure.in (makeinfo): Require version 4.5 or later.  Allow
31920         versions 5 to 9.
31921         * configure: Regenerated.
31922         * manual/install.texi (texinfo): Increase version requirement to
31923         4.5 or later.
31924         * INSTALL: Regenerated.
31925
31926         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
31927
31928 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31929
31930         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
31931
31932         * sysdeps/x86_64/x32/ffs.c: New file.
31933
31934         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
31935         __syscall_ulong_t.
31936         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
31937         defined.  Use __syscall_ulong_t.
31938         (shminfo): Use __syscall_ulong_t.
31939         (shm_info): Likewise.
31940
31941         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
31942         __syscall_ulong_t.
31943
31944         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
31945         <bits/wordsize.h>.
31946         (msgqnum_t): Use __syscall_ulong_t.
31947         (msglen_t): Likewise.
31948         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
31949         __syscall_ulong_t.
31950
31951         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
31952         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31953
31954         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
31955
31956         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
31957         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
31958
31959         * sysvipc/sys/msg.h (msgbuf): Replace long int with
31960         __syscall_slong_t.
31961
31962         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
31963         include <bits/wordsize.h>.  Check __x86_64__ instead of
31964         __WORDSIZE.
31965
31966         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
31967         "unsigned long long int" if __x86_64__ is defined.
31968         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
31969
31970         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
31971         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31972         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
31973
31974         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
31975         <stdint.h>.
31976         (GET_PC): Cast to uintptr_t first.
31977         (GET_FRAME): Likewise.
31978         (GET_STACK): Likewise.
31979
31980         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
31981         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
31982         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
31983         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
31984         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
31985         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
31986         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
31987         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
31988         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31989         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
31990         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
31991         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
31992         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
31993         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
31994         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
31995         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
31996         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
31997         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
31998         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
31999         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32000         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32001         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32002         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32003         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32004         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32005         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32006         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32007         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32008         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32009
32010 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32011
32012         * Makerules (+depfiles): Also collect depfiles from .oS in
32013         $(extra-objs).
32014         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32015         .oS, $(libnldbl-routines)).
32016
32017         * Makerules (native-compile-mkdep-flags): Define.
32018         * sunrpc/Makefile (extra-objs): Add $(addprefix
32019         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32020         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32021         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32022         calling $(make-target-directory).
32023
32024 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32025
32026         * bits/types.h (__snseconds_t): Removed.
32027         * time/time.h (struct timespec): Replace __snseconds_t with
32028         __syscall_slong_t.
32029         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32030         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32031         Likewise.
32032         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32033         (__SNSECONDS_T_TYPE): Likewise.
32034         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32035         (__SNSECONDS_T_TYPE): Likewise.
32036         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32037         (__SNSECONDS_T_TYPE): Likewise.
32038
32039 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32040
32041         * sysdeps/mach/hurd/bits/typesizes.h
32042         (__SYSCALL_SLONG_TYPE): New macro.
32043         (__SYSCALL_ULONG_TYPE): Likewise.
32044
32045 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32046
32047         * bits/types.h (__syscall_slong_t): New type.
32048         (__syscall_ulong_t): Likewise.
32049
32050         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32051         (__SYSCALL_ULONG_TYPE): Likewise.
32052         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32053         (__SYSCALL_SLONG_TYPE): Likewise.
32054         (__SYSCALL_ULONG_TYPE): Likewise.
32055         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32056         (__SYSCALL_SLONG_TYPE): Likewise.
32057         (__SYSCALL_ULONG_TYPE): Likewise.
32058         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32059         (__SYSCALL_SLONG_TYPE): Likewise.
32060         (__SYSCALL_ULONG_TYPE): Likewise.
32061
32062 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32063
32064         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32065         Add sigaltstack-offsets.sym.
32066         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32067         <sigaltstack-offsets.h>.
32068         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32069         longjmp_msg pointer.
32070         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32071         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32072         signal stack.
32073         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32074
32075 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32076
32077         * elf/stackguard-macros.h: Remove file.
32078         * sysdeps/generic/stackguard-macros.h: New file.
32079         * sysdeps/i386/stackguard-macros.h: Likewise.
32080         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32081         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32082         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32083         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32084         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32085         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32086         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32087         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32088         <elf/stackguard-macros.h>.
32089
32090         [BZ #14109]
32091         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32092         __aligned__ in attribute.
32093         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32094         (gregset_t): Likewise.
32095
32096 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32097
32098         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32099         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32100         * sysdeps/x86_64/x32/Implies-after: New file.
32101
32102 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32103
32104         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32105         and access return value for _dl_profile_fixup.  Use R10_LP to
32106         load frame size.
32107
32108 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32109
32110         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32111
32112 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32113
32114         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32115         * sysdeps/x86_64/x32/sysdep.h: New file.
32116
32117 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32118
32119         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32120         * sysdeps/x86_64/setjmp.S: Likewise.
32121
32122 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32123
32124         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32125         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32126         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32127         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32128         remove unused global constant.
32129
32130 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32131
32132         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32133         include of <not-cancel.h>.
32134
32135 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32136
32137         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32138
32139 2012-05-15  Jeff Law  <law@redhat.com>
32140             Andreas Jaeger  <aj@suse.de>
32141
32142         [BZ #13594]
32143         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32144         out from...
32145         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32146         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32147         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32148         code changing __hst_map_handle.map.
32149
32150 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32151
32152         * configure.in (sysnames): Look for Implies-before and Implies-after
32153         files.
32154         * configure: Regenerated.
32155
32156 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32157
32158         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32159         8-byte data alignment with LP_SIZE alignment.
32160
32161 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32162
32163         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32164         into R10_LP.
32165
32166 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32167
32168         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32169
32170 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32171
32172         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32173         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32174         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32175         Likewise.
32176         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32177
32178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32179
32180         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32181         (stackinfo_sub_sp): Likewise.
32182
32183 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32184
32185         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32186         RAX_LP.
32187
32188 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32189
32190         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32191         into R*_LP.
32192
32193 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32194
32195         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32196         sizes into R*_LP.
32197
32198 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32199
32200         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32201
32202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32203
32204         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32205         into R11_LP and load __x86_64_shared_cache_size_half into
32206         R8_LP.
32207
32208 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32209
32210         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32211         R8_LP.
32212
32213 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32214
32215         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32216         logb for POWER7.
32217         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32218         logbf for POWER7.
32219         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32220         logbl for POWER7.
32221         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32222         powerpc32/power7/fpu/s_logb.c via #include.
32223         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32224         powerpc32/power7/fpu/s_logbf.c via #include.
32225         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
32226         powerpc32/power7/fpu/s_logbl.c via #include.
32227
32228 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32229
32230         * README.libm: Remove file.
32231
32232 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32233
32234         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
32235         count for x32.  Use R*_LP and omit operand-size suffix.
32236
32237 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32238
32239         * shlib-versions: Move x86_64-.*-linux.* entries to ...
32240         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
32241         * sysdeps/x86_64/x32/shlib-versions: New file.
32242
32243 2012-05-14  Roland McGrath  <roland@hack.frob.com>
32244
32245         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
32246         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
32247         Use _dl_fatal_printf instead.
32248
32249 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32250
32251         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
32252         set if not set by the user.  Do not allow for being unset.
32253         * sysdeps/unix/sysv/linux/configure: Regenerated.
32254
32255 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32256
32257         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
32258         the `q' suffix from lea and replace .quad with ASM_ADDR.
32259
32260 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32261
32262         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
32263         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
32264         instead of $17.
32265         (PTR_DEMANGLE): Likewise.
32266
32267 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32268
32269         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
32270         (LP_OP): Likewise.
32271         (ASM_ADDR): Likewise.
32272         (RAX_LP): Likewise.
32273         (RBP_LP): Likewise.
32274         (RBX_LP): Likewise.
32275         (RCX_LP): Likewise.
32276         (RDI_LP): Likewise.
32277         (RSI_LP): Likewise.
32278         (RSP_LP): Likewise.
32279         (R8_LP): Likewise.
32280         (R9_LP): Likewise.
32281         (R10_LP): Likewise.
32282         (R10_LP): Likewise.
32283         (R11_LP): Likewise.
32284         (R12_LP): Likewise.
32285         (R13_LP): Likewise.
32286         (R14_LP): Likewise.
32287         (R15_LP): Likewise.
32288
32289 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32290
32291         * sysdeps/x86_64/x32/dl-machine.h: New file.
32292
32293 2012-05-14  Andreas Jaeger  <aj@suse.de>
32294
32295         * manual/Makefile (subdir): Remove export of subdir.
32296         (all): Remove target.
32297         (.PHONY): Remove all from list.
32298         (mkinstalldirs): Remove.
32299         (.PHONY): Remove installdirs from list.
32300         ($(inst_infodir)/libc.info): Use make-target-directory.
32301         (installdirs): Remove.
32302         (subdir_%): Remove.
32303         (glibc-targets): Remove.
32304         (lib): Remove.
32305         (stubs): Remove.
32306         ($(objpfx)stubs ../po/manual.pot): Remove.
32307         ($(objpfx)stamp%): Remove.
32308         (make-target-directory): Remove.
32309         (subdir_install): Remove.
32310         (routines): Remove.
32311         (aux): Remove.
32312         (sources): Remove.
32313         (objects): Remove.
32314         (headers): Remove.
32315
32316         [BZ #13750]
32317         * manual/.gitignore: Remove, it's not needed anymore.
32318         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
32319         all files in it.
32320         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
32321         directory.
32322         (texis): Renamed to $(objpfx)texis.
32323         (texis-path): New, contains path to generated files.
32324         (chapters.%): Use texis-path for complete path, add extra argument
32325         libc-texinfo.sh.
32326         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
32327         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
32328         (summary,texi, stamp-summary): Use complete path of
32329         files. Generate files in build dir.
32330         (dir-add.texi): Build in build dir.
32331         (libm-err.texi,stamp-libm-err): Likewise.
32332         (version.texi, stamp-version): Likewise.
32333         (.%c.texi): Likewise.
32334         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
32335         (mostlyclean): Remove target.
32336         (realclean): Remove target.
32337         (generated): Add new variable with contents from mostlyclean and
32338         realclean, remove entries duplicated in common-mostlyclean, add
32339         stamp-libm-err and stamp-version.
32340         (generated-dirs): Add libc directory.
32341         ($(inst_infodir)/libc.info): Install files from build dir.
32342
32343         * manual/install.texi (Configuring and compiling): Adjust since
32344         the info files are not part of the tar ball anymore.
32345
32346 2012-05-14  Andreas Jaeger  <aj@suse.de>
32347
32348         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
32349         variable.
32350
32351 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32352
32353         [BZ #13717]
32354         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32355         to 2.2.0 where earlier.
32356         * sysdeps/unix/sysv/linux/configure: Regenerated.
32357         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
32358         Remove conditional code.
32359         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
32360         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
32361         Remove conditional code.
32362         [!__NR_lchown]: Likewise.
32363         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32364         [__NR_lchown]: Likewise.
32365         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
32366         comment referencing __ASSUME_LCHOWN_SYSCALL.
32367         * sysdeps/unix/sysv/linux/i386/sigaction.c
32368         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32369         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32370         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
32371         Remove conditional code.
32372         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
32373         (__protocol_available): Remove #if 0 code.
32374         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
32375         conditional code.
32376         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
32377         * sysdeps/unix/sysv/linux/kernel-features.h
32378         (__ASSUME_GETCWD_SYSCALL): Don't define.
32379         (__ASSUME_REALTIME_SIGNALS): Likewise.
32380         (__ASSUME_PREAD_SYSCALL): Likewise.
32381         (__ASSUME_PWRITE_SYSCALL): Likewise.
32382         (__ASSUME_POLL_SYSCALL): Likewise.
32383         (__ASSUME_LCHOWN_SYSCALL): Likewise.
32384         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
32385         non-SPARC.
32386         (__ASSUME_SIOCGIFNAME): Don't define.
32387         (__ASSUME_MSG_NOSIGNAL): Likewise.
32388         (__ASSUME_SENDFILE): Define unconditionally.
32389         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
32390         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
32391         conditional code.
32392         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
32393         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
32394         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32395         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32396         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
32397         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32398         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
32400         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32401         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
32403         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32404         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32405         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
32406         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32407         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
32409         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32410         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
32412         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32413         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
32415         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32416         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
32418         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32419         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
32421         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32422         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32423         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
32424         Remove conditional code.
32425         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32426         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32427         Remove conditional code.
32428         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32429         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
32430         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
32431         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32432         Remove conditional code.
32433         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32434         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
32435         Remove conditional code.
32436         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32437         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
32438         Remove conditional code.
32439         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32440         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32441         Remove conditional code.
32442         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32443         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32444         Remove conditional code.
32445         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32446         * sysdeps/unix/sysv/linux/sh/pwrite64.c
32447         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32448         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32449         * sysdeps/unix/sysv/linux/sigaction.c
32450         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32451         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32452         * sysdeps/unix/sysv/linux/sigpending.c
32453         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32454         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32455         * sysdeps/unix/sysv/linux/sigprocmask.c
32456         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32457         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32458         * sysdeps/unix/sysv/linux/sigsuspend.c
32459         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32460         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32461         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32462         (__libc_missing_rt_sigs): Remove.
32463         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
32464         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
32465         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
32466         Remove conditional code.
32467         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
32468         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
32469         return 1.
32470         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
32471         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
32472         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
32473         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
32474
32475 2012-05-14  Andreas Jaeger  <aj@suse.de>
32476
32477         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
32478         it's not used in glibc.
32479         (__coshm1): Likewise.
32480         (__acosh1p): Likewise.
32481         (__sgn): Likewise.
32482
32483         * manual/string.texi (Copying and Concatenation): Add missing
32484         variable in concat example.
32485         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
32486
32487 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32488
32489         [BZ #14103]
32490         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
32491         __builtin_clzl with __builtin_clzll.
32492
32493 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32494
32495         [BZ #14104]
32496         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
32497         libc_freeres_ptr.
32498
32499 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32500
32501         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
32502         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
32503         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
32504         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
32505
32506 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
32507
32508         * NEWS: Update ia64 info.
32509
32510 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
32511
32512         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
32513         used as bcopy.
32514
32515 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
32516
32517         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
32518         * sysdeps/unix/syscalls.list (dup3): Likewise.
32519         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
32520         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
32521
32522 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32523
32524         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
32525         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
32526
32527 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32528
32529         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
32530         thread pointer.
32531         (TLS_IE): Use mov/add instead of movq/addq to load thread
32532         pointer.
32533         (TLS_GD_PREFIX): New.
32534         (TLS_GD): Use it.
32535
32536 2012-05-11  David S. Miller  <davem@davemloft.net>
32537
32538         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
32539         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
32540         (_FPU_SETCW): Likewise.
32541
32542 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32543
32544         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
32545         is 32-byte aligned.
32546
32547 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
32548
32549         [BZ #11837]
32550         * iconvdata/gb18030.c: Update tables.
32551         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
32552         characters specially.
32553         (BODY for TO_LOOP): Add encoding of missing ranges.
32554
32555 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
32556
32557         [BZ #13673]
32558         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
32559         * sysdeps/mach/hurd/dup3.c: Likewise.
32560         * sysdeps/mach/hurd/readlinkat.c: Likewise.
32561         * sysdeps/powerpc/memmove.c:: Likewise.
32562
32563 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32564
32565         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
32566         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
32567
32568 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32569
32570         * elf/elf.h (R_X86_64_RELATIVE64): New.
32571         (R_X86_64_NUM): Updated.
32572         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
32573         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
32574         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
32575         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
32576         tst-quad1pie tst-quad2pie
32577         (modules-names): Add tst-quadmod1 tst-quadmod2.
32578         ($(objpfx)tst-quad1): New dependency.
32579         ($(objpfx)tst-quad2): Likewise.
32580         ($(objpfx)tst-quad1pie): Likewise.
32581         ($(objpfx)tst-quad2pie): Likewise.
32582         * sysdeps/x86_64/tst-quad1.c: New file.
32583         * sysdeps/x86_64/tst-quad1pie.c: New file.
32584         * sysdeps/x86_64/tst-quad2.c: Likewise.
32585         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
32586         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
32587         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
32588         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
32589         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
32590
32591 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32592
32593         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
32594         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
32595         * streams/stropts.h (t_scalar_t): Define type.
32596
32597         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
32598         (_PATH_PRESERVE): Set to "/var/lib".
32599         (_PATH_RWHODIR): Set to "/var/spool/rwho".
32600
32601         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
32602         instead of int.
32603
32604         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
32605         if __dir_mkfile succeeded.
32606
32607         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
32608         checking for _hurd_dtablesize.  Unlock it right after having
32609         finished _hurd_dtable allocation.
32610
32611 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32612
32613         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
32614         * sysdeps/mach/hurd/configure: Regenerated.
32615         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
32616         special-casing to...
32617         * sysdeps/gnu/configure.in: ... this new file.
32618         * sysdeps/unix/sysv/linux/configure: Regenerated.
32619         * sysdeps/gnu/configure: New generated file.
32620
32621         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
32622         for Linux: use nsec instead of usec, as well as:
32623         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
32624         members of type struct timespec.
32625         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
32626         New macros.
32627         (struct stat64): Likewise.
32628         (_STATBUF_ST_NSEC): New macro.
32629         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
32630
32631         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
32632         __strtoul_internal rather than strtoul.
32633
32634 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32635
32636         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
32637         and reject them.
32638
32639 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32640
32641         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
32642         which preserves existing values.
32643         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
32644
32645 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32646
32647         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
32648         TIMEOUT values.  Return EINVAL for NFDS values either negative or
32649         greater than FD_SETSIZE.
32650
32651 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32652
32653         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
32654         allocated, call __vm_protect to finish enabling the existing space, and
32655         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
32656         allocate the remainder.
32657
32658 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32659
32660         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
32661         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
32662
32663 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32664
32665         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
32666         sysdeps/mach/hurd/readlink.c.
32667
32668         * posix/tst-sysconf.c (posix_options): Only use
32669         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
32670         _POSIX_SYNCHRONIZED_IO when they are defined
32671         * sysdeps/mach/hurd/bits/posix_opt.h:
32672         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
32673         (_XOPEN_REALTIME): Undefine macro.
32674         (_XOPEN_REALTIME_THREADS): Undefine macro.
32675         (_XOPEN_SHM): Undefine macro.
32676         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
32677         macro to -1.
32678         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
32679         macro to -1.
32680         (_POSIX_ASYNC_IO): Undefine macro.
32681         (_POSIX_PRIORITIZED_IO): Undefine macro.
32682         (_POSIX_SPIN_LOCKS): Define macro to -1.
32683
32684         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
32685         SA_NODEFER, SA_RESETHAND.
32686         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
32687         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
32688         F_DUPFD_CLOEXEC.
32689
32690 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32691
32692         * elf/Makefile (pldd-modules): Define unconditionally.
32693
32694 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32695
32696         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
32697
32698 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32699
32700         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
32701         Return ENOENT when name is empty.
32702         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
32703
32704 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32705
32706         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
32707
32708         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
32709
32710 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32711
32712         Fix mlock in all cases except non-readable pages.
32713         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
32714         instead of VM_PROT_ALL as parameter to __vm_wire function.
32715
32716         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
32717         (__mkdir): When path is `/', just fail with EEXIST.
32718         * sysdeps/mach/hurd/mkdirat.c: Likewise.
32719
32720 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32721
32722         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
32723         <sys/uio.h> (for writev).
32724         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
32725         and <sys/param.h> (for MIN).
32726
32727 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32728
32729         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
32730         REQUESTED_TIME.  Properly set the remaining time and return EINTR
32731         if interrupted.
32732
32733 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32734
32735         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
32736         Depend on against $(link-rpcuserlibs).
32737
32738 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32739
32740         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
32741         (__libc_stack_end): Do not use attribute_relro.
32742         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
32743         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
32744         to libthread-provided value.
32745         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
32746         attribute_relro.
32747
32748 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32749
32750         [BZ #3748]
32751         * bits/libc-lock.h (__libc_once_get): New macro.
32752         * sysdeps/mach/bits/libc-lock.h: Likewise.
32753         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
32754         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
32755         instead of using implementation details.
32756
32757         * libio/fileops.c: Unconditionally include <kernel-features.h>.
32758         * libio/freopen.c: Likewise.
32759         * libio/freopen64.c: Likewise.
32760         * misc/syslog.c: Likewise.
32761         * nscd/connections.c: Likewise.
32762         * nscd/netgroupcache.c: Likewise.
32763         * sysdeps/posix/getcwd.c: Likewise.
32764
32765 2012-05-10  Roland McGrath  <roland@hack.frob.com>
32766
32767         * math/w_ilogbf.c: Add #include <limits.h>.
32768
32769 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32770
32771         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
32772         path instead of returning without unlocking.
32773
32774         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
32775         immediate-write ioctls.
32776         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
32777
32778 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32779
32780         * sysdeps/mach/hurd/i386/init-first.c (init): Use
32781         __builtin_frame_address instead of making assumptions about the
32782         location of the return address relative to DATA.  Force early load of
32783         the return address.
32784         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
32785         __builtin_frame_address.
32786
32787         dup3 for GNU Hurd.
32788         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
32789         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
32790         implement dup3 and do some further code clean-ups.
32791         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
32792         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
32793
32794 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32795
32796         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
32797
32798         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
32799         HURD_CRITICAL_END around holding _hurd_dtable_lock.
32800         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
32801         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
32802         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
32803         d->port.lock.
32804
32805         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
32806         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
32807         when handler == SIG_ERR, not when handler != SIG_ERR.
32808
32809 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32810
32811         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
32812         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
32813         definitions.
32814
32815         accept4 for GNU Hurd.
32816         * include/sys/socket.h (__libc_accept4): New prototype.
32817         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
32818         to implement __libc_accept4.
32819         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
32820         __libc_accept4.
32821         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
32822
32823         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
32824         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
32825         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
32826         signal-defines.sym.
32827
32828 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32829
32830         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
32831
32832 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32833
32834         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
32835         assertion on O_CLOEXEC flag.
32836         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
32837         * hurd/intern-fd.c: Likewise.
32838         * hurd/port2fd.c: Likewise.
32839
32840 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32841
32842         [BZ #3906]
32843         * bits/in.h (IPV6_PKTINFO): Define new macro.
32844         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
32845
32846 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32847
32848         [BZ #13954]
32849         [BZ #13955]
32850         [BZ #13956]
32851         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
32852         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
32853         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
32854         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
32855         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
32856         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
32857         * math/libm-test.inc (logb_test) : Additional logb tests.
32858
32859 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
32860             Andreas Jaeger  <aj@suse.de>
32861
32862         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
32863         * configure: Regenerated.
32864         * config.h.in (LINK_OBSOLETE_RPC): New macro.
32865         * config.make.in (link-obsolete-rpc): New substituted variable.
32866         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
32867         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
32868         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
32869         (shared-only-routines): Don't set it under [link-obsolete-rpc],
32870         so that libc.a contains the symbols.
32871         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
32872         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
32873         * sunrpc/auth_none.c: Likewise.
32874         * sunrpc/auth_unix.c: Likewise.
32875         * sunrpc/authdes_prot.c: Likewise.
32876         * sunrpc/authuxprot.c: Likewise.
32877         * sunrpc/clnt_gen.c: Likewise.
32878         * sunrpc/clnt_perr.c: Likewise.
32879         * sunrpc/clnt_raw.c: Likewise.
32880         * sunrpc/clnt_simp.c: Likewise.
32881         * sunrpc/clnt_tcp.c: Likewise.
32882         * sunrpc/clnt_udp.c: Likewise.
32883         * sunrpc/clnt_unix.c: Likewise.
32884         * sunrpc/des_crypt.c: Likewise.
32885         * sunrpc/des_soft.c: Likewise.
32886         * sunrpc/get_myaddr.c: Likewise.
32887         * sunrpc/key_call.c: Likewise.
32888         * sunrpc/key_prot.c: Likewise.
32889         * sunrpc/netname.c: Likewise.
32890         * sunrpc/pm_getmaps.c: Likewise.
32891         * sunrpc/pm_getport.c: Likewise.
32892         * sunrpc/pmap_clnt.c: Likewise.
32893         * sunrpc/pmap_prot.c: Likewise.
32894         * sunrpc/pmap_prot2.c: Likewise.
32895         * sunrpc/pmap_rmt.c: Likewise.
32896         * sunrpc/publickey.c: Likewise.
32897         * sunrpc/rpc_cmsg.c: Likewise.
32898         * sunrpc/rpc_common.c: Likewise.
32899         * sunrpc/rpc_dtable.c: Likewise.
32900         * sunrpc/rpc_prot.c: Likewise.
32901         * sunrpc/rpc_thread.c: Likewise.
32902         * sunrpc/rtime.c: Likewise.
32903         * sunrpc/svc.c: Likewise.
32904         * sunrpc/svc_auth.c: Likewise.
32905         * sunrpc/svc_raw.c: Likewise.
32906         * sunrpc/svc_run.c: Likewise.
32907         * sunrpc/svc_tcp.c: Likewise.
32908         * sunrpc/svc_udp.c: Likewise.
32909         * sunrpc/svc_unix.c: Likewise.
32910         * sunrpc/svcauth_des.c: Likewise.
32911         * sunrpc/xcrypt.c: Likewise.
32912         * sunrpc/xdr.c: Likewise.
32913         * sunrpc/xdr_array.c: Likewise.
32914         * sunrpc/xdr_float.c: Likewise.
32915         * sunrpc/xdr_intXX_t.c: Likewise.
32916         * sunrpc/xdr_mem.c: Likewise.
32917         * sunrpc/xdr_rec.c: Likewise.
32918         * sunrpc/xdr_ref.c: Likewise.
32919         * sunrpc/xdr_sizeof.c: Likewise.
32920         * sunrpc/xdr_stdio.c: Likewise.
32921
32922 2012-05-10  Roland McGrath  <roland@hack.frob.com>
32923
32924         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
32925         change.  Update copyright years.
32926
32927 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
32928
32929         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
32930
32931 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
32932             Joseph Myers  <joseph@codesourcery.com>
32933             Paul Pluzhnikov  <ppluzhnikov@google.com>
32934
32935         [BZ #14012]
32936         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
32937         requiring rpcgen.
32938         [cross-compiling] (extra-libs): Likewise.
32939         [cross-compiling] (extra-libs-others): Likewise.
32940         [cross-compiling] (librpcsvc-routines): Likewise.
32941         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
32942         [cross-compiling] (omit-deps): Likewise.
32943         (sunrpc-CPPFLAGS): New variable.
32944         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
32945         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
32946         (cross-rpcgen-objs): New variable.
32947         (extra-objs): Append $(cross-rpcgen-objs).
32948         ($(cross-rpcgen-objs)): New rule.
32949         ($(objpfx)cross-rpcgen): Likewise.
32950         (rpcgen-cmd): Define to use $(built-program-file).  Expand
32951         comment.
32952         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
32953         ($(objpfx)x%.stmp): Likewise.
32954         * sunrpc/proto.h [IS_IN_build] (_): Define.
32955         [IS_IN_build] (_libc_intl_domainname): Likewise.
32956
32957 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32958
32959         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
32960         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
32961         and R_X86_64_TPOFF64.
32962
32963 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
32964
32965         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
32966         sysdeps/unix/sysv/syscalls.list.
32967         (stime): Likewise.
32968         (utime): Likewise.
32969         * sysdeps/unix/sysv/syscalls.list: Remove file.
32970
32971 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
32972
32973         [BZ #3440]
32974         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
32975         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
32976         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
32977         (__LC_IDENTIFICATION): Make these macros useful in #if
32978         expressions, as required by C99.
32979
32980 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
32981
32982         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
32983         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
32984         after this.
32985
32986 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
32987
32988         * stdlib/longlong.h: Updated from GCC.
32989
32990 2012-05-09  Andreas Jaeger  <aj@suse.de>
32991
32992         * nscd/nscd.c (run_modes): Make named enum, reorder so that
32993         default is first entry.
32994         (run_mode): Set type.
32995         (main): Remove informal message about syslog.
32996         (options): Fix typo.
32997
32998         [BZ #14053]
32999         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33000         to asm.
33001         (lrint): Likewise.
33002         (llrintf): Likewise.
33003         (llrint): Likewise.
33004         (rint): Likewise.
33005         (rintf): Likewise.
33006         (nearbyint): Likewise.
33007         (nearbyintf): Likewise.
33008
33009 2012-05-09  Andreas Jaeger  <aj@suse.de>
33010             Pedro Alves  <palves@redhat.com>
33011
33012         * nscd/nscd.c (run_mode): Use enum.
33013         (main): Cleanup coding style issue.
33014
33015 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33016             Andreas Jaeger  <aj@suse.de>
33017
33018         * nscd/nscd.c (go_background): Replaced with...
33019         (run_mode): ... this.
33020         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33021         (options): Add -F --foreground.
33022         (main): Implement it.
33023         (parse_opt): Parse it.
33024
33025 2012-05-09  Andreas Jaeger  <aj@suse.de>
33026
33027         [BZ #14083]
33028         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33029         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33030         -Wconversion warning.
33031         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33032         Likewise.
33033
33034 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33035
33036         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33037         == 0.
33038         (LC_ALL): Use macro-int-constant.
33039         (LC_COLLATE): Likewise.
33040         (LC_CTYPE): Likewise.
33041         (LC_MESSAGES): Likewise.
33042         (LC_MONETARY): Likewise.
33043         (LC_NUMERIC): Likewise.
33044         (LC_TIME): Likewise.
33045         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33046         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33047         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33048         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33049         Specify type.
33050         [C99-based standards] (float_t): Expect type.
33051         [C99-based standards] (double_t): Expect type.
33052         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33053         type.
33054         [C99-based standards] (HUGE_VALL): Likewise.
33055         [C99-based standards] (INFINITY): Likewise.
33056         [C99-based standards] (NAN): Likewise.
33057         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33058         [C99-based standards] (FP_NAN): Likewise.
33059         [C99-based standards] (FP_NORMAL): Likewise.
33060         [C99-based standards] (FP_SUBNORMAL): Likewise.
33061         [C99-based standards] (FP_ZERO): Likewise.
33062         [C99-based standards] (FP_FAST_FMA): Use
33063         optional-macro-int-constant.  Specify type.  Require == 1.
33064         [C99-based standards] (FP_FAST_FMAF): Likewise.
33065         [C99-based standards] (FP_FAST_FMAL): Likewise.
33066         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33067         [C99-based standards] (FP_ILOGBNAN): Likewise.
33068         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33069         Specify type.
33070         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33071         [C99-based standards] (math_errhandling): Specify type.
33072         [ISO99 || ISO11] (signgam): Do not allow.
33073         [non-C99-based standards] (copysignf): Do not allow.
33074         [non-C99-based standards] (exp2f): Likewise.
33075         [non-C99-based standards] (log2f): Likewise.
33076         [non-C99-based standards] (modff): Allow.
33077         [non-C99-based standards] (erff): Do not allow.
33078         [non-C99-based standards] (erfcf): Likewise.
33079         [non-C99-based standards] (gammaf): Likewise.
33080         [non-C99-based standards] (hypotf): Likewise.
33081         [non-C99-based standards] (j0f): Likewise.
33082         [non-C99-based standards] (j1f): Likewise.
33083         [non-C99-based standards] (jnf): Likewise.
33084         [non-C99-based standards] (lgammaf): Likewise.
33085         [non-C99-based standards] (tgammaf): Likewise.
33086         [non-C99-based standards] (y0f): Likewise.
33087         [non-C99-based standards] (y1f): Likewise.
33088         [non-C99-based standards] (ynf): Likewise.
33089         [non-C99-based standards] (isnanf): Likewise.
33090         [non-C99-based standards] (acoshf): Likewise.
33091         [non-C99-based standards] (asinhf): Likewise.
33092         [non-C99-based standards] (atanhf): Likewise.
33093         [non-C99-based standards] (cbrtf): Likewise.
33094         [non-C99-based standards] (expm1f): Likewise.
33095         [non-C99-based standards] (ilogbf): Likewise.
33096         [non-C99-based standards] (log1pf): Likewise.
33097         [non-C99-based standards] (logbf): Likewise.
33098         [non-C99-based standards] (nextafterf): Likewise.
33099         [non-C99-based standards] (remainderf): Likewise.
33100         [non-C99-based standards] (rintf): Likewise.
33101         [non-C99-based standards] (scalbf): Likewise.
33102         [non-C99-based standards] (copysignl): Likewise.
33103         [non-C99-based standards] (exp2l): Likewise.
33104         [non-C99-based standards] (log2l): Likewise.
33105         [non-C99-based standards] (modfl): Allow.
33106         [non-C99-based standards] (erfl): Do not allow.
33107         [non-C99-based standards] (erfcl): Likewise.
33108         [non-C99-based standards] (gammal): Likewise.
33109         [non-C99-based standards] (hypotl): Likewise.
33110         [non-C99-based standards] (j0l): Likewise.
33111         [non-C99-based standards] (j1l): Likewise.
33112         [non-C99-based standards] (jnl): Likewise.
33113         [non-C99-based standards] (lgammal): Likewise.
33114         [non-C99-based standards] (tgammal): Likewise.
33115         [non-C99-based standards] (y0l): Likewise.
33116         [non-C99-based standards] (y1l): Likewise.
33117         [non-C99-based standards] (ynl): Likewise.
33118         [non-C99-based standards] (isnanl): Likewise.
33119         [non-C99-based standards] (acoshl): Likewise.
33120         [non-C99-based standards] (asinhl): Likewise.
33121         [non-C99-based standards] (atanhl): Likewise.
33122         [non-C99-based standards] (cbrtl): Likewise.
33123         [non-C99-based standards] (expm1l): Likewise.
33124         [non-C99-based standards] (ilogbl): Likewise.
33125         [non-C99-based standards] (log1pl): Likewise.
33126         [non-C99-based standards] (logbl): Likewise.
33127         [non-C99-based standards] (nextafterl): Likewise.
33128         [non-C99-based standards] (remainderl): Likewise.
33129         [non-C99-based standards] (rintl): Likewise.
33130         [non-C99-based standards] (scalbl): Likewise.
33131         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33132         [non-C99-based standards] (FP_*): Do not allow.
33133         [C99-based standards] (FP_*): Change to
33134         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33135         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33136         allow.
33137         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33138         (SIG_ERR): Likewise.
33139         [X/Open-based standards] (SIG_HOLD): Likewise.
33140         (SIG_IGN): Likewise.
33141         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33142         positive value.
33143         (SIGFPE): Likewise.
33144         (SIGILL): Likewise.
33145         (SIGINT): Likewise.
33146         (SIGSEGV): Likewise.
33147         (SIGTER): Likewise.
33148         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33149         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33150         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33151         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33152         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33153         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33154         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33155         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33156         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33157         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33158         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33159         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33160         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33161         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33162         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33163         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33164         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33165         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33166         [X/Open-based standards] (SIGTRAP): Likewise.
33167         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33168         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33169         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33170         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33171         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33172         allow.
33173
33174 2012-05-08  Ian Wienand  <ianw@vmware.com>
33175
33176         [BZ #14080]
33177         * time/tzset.c (__tzset_parse_tz): Update default rules for
33178         daylight time changes in the Energy Policy Act of 2005.
33179
33180 2012-05-09  Andreas Jaeger  <aj@suse.de>
33181
33182         [BZ #13983]
33183         * elf/ldconfig.c (parse_conf): Change string to make clear that
33184         ldconfig only issued a warning if ld.so.conf does not exist.
33185
33186 2012-05-08  David S. Miller  <davem@davemloft.net>
33187
33188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33189         movxtod instead of popping the value on the stack.
33190
33191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33192
33193 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33194
33195         * config.h.in: Add HAVE_ARM_PCS_VFP.
33196
33197 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33198
33199         [BZ #13979]
33200         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33201         checking but the checks are disabled for any reason.
33202
33203 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33204
33205         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33206         and ELF64_R_TYPE with ELFW(R_TYPE).
33207
33208 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33209
33210         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33211         (ulimit): Likewise.
33212
33213         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33214         (settimeofday): Likewise.
33215
33216 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33217
33218         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33219         a struct th_u2 inside the union, and move tu_block/tu_code into
33220         a new th_u3 union of tu_block/tu_code inside of that.  Move
33221         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33222         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33223         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33224         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33225         (th_stuff): Change to th_u1.tu_stuff.
33226         (th_data): Define.
33227         (th_msg): Change to th_u1.th_u2.tu_data.
33228
33229 2012-05-07  David S. Miller  <davem@davemloft.net>
33230
33231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33232
33233         [BZ #14074]
33234         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
33235         (SETUP_PIC_REG): Use it.
33236         (SETUP_PIC_REG_LEAF): Use it.
33237
33238 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
33239
33240         [BZ #13885]
33241         [BZ #13923]
33242         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33243         USE_AS_EXPM1L.
33244         (EXPL_FINITE): Likewise.
33245         (FLDLOG): Likewise.
33246         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33247         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33248         e_expl.S.
33249         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33250         USE_AS_EXPM1L.
33251         (EXPL_FINITE): Likewise.
33252         (FLDLOG): Likewise.
33253         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33254         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33255         e_expl.S.
33256         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
33257         test of -max_value argument for long double.
33258         * sysdeps/i386/fpu/libm-test-ulps: Update.
33259         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33260
33261 2012-05-06  David S. Miller  <davem@davemloft.net>
33262
33263         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
33264         quad soft-float symbols whose references which are compiler
33265         generated.
33266         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33267
33268 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
33269
33270         [BZ #13884]
33271         [BZ #13914]
33272         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33273         USE_AS_EXP10L.
33274         (EXPL_FINITE): Likewise.
33275         (FLDLOG): Likewise.
33276         (c0): Likewise.
33277         (c1): Likewise.
33278         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33279         Adjust comments for base varying.
33280         (__expl_finite): Change alias to EXPL_FINITE.
33281         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
33282         e_expl.S.
33283         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
33284         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
33285         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
33286         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
33287         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33288         USE_AS_EXP10L.
33289         (EXPL_FINITE): Likewise.
33290         (FLDLOG): Likewise.
33291         (c0): Likewise.
33292         (c1): Likewise.
33293         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33294         Adjust comments for base varying.
33295         (__expl_finite): Change alias to EXPL_FINITE.
33296         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
33297         tests for bugs.
33298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33299
33300         [BZ #14064]
33301         * math/libm-test.inc (check_float_internal): Correct ulp
33302         calculation for subnormal expected results.
33303
33304 2012-05-06  Andreas Jaeger  <aj@suse.de>
33305
33306         * Makeconfig (+math-flags): New, set to -frounding-math.
33307         (+cflags): Add +math-flags so that all of glibc gets compiled with
33308         it.
33309
33310         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
33311
33312 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
33313
33314         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
33315         Disable one test.
33316
33317         [BZ #13787]
33318         [BZ #13922]
33319         [BZ #14036]
33320         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
33321         (__ieee754_expl): Allow for and saturate large arguments.
33322         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
33323         (u_threshold): Likewise.
33324         (__exp): Call __ieee754_exp before checking for overflow and
33325         underflow.
33326         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
33327         (u_threshold): Likewise.
33328         (__expf): Call __ieee754_expf before checking for overflow and
33329         underflow.
33330         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
33331         (u_threshold): Likewise.
33332         (__expl): Call __ieee754_expl before checking for overflow and
33333         underflow.
33334         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
33335         (__ieee754_expl): Allow for and saturate large arguments.
33336         * math/libm-test.inc (exp_test): Add another test.  Do not allow
33337         missing overflow exception on overflow.
33338         (expm1_test): Do not allow missing overflow exception on overflow.
33339
33340         * sysdeps/i386/fpu/e_expl.c: Move to ...
33341         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
33342         rather than using inline asm.
33343         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
33344         * sysdeps/x86_64/fpu/e_expl.S: Copy from
33345         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
33346
33347         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
33348         (nice): Likewise.
33349         (poll): Likewise.
33350         (signal): Likewise.
33351         (time): Likewise.
33352         (times): Likewise.
33353
33354 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33355
33356         * sysdeps/unix/syscalls.list (adjtime): Add entry from
33357         sysdeps/unix/common/syscalls.list.
33358         (fchmod): Likewise.
33359         (fchown): Likewise.
33360         (ftruncate): Likewise.
33361         (getrusage): Likewise.
33362         (gettimeofday): Likewise.
33363         (setpgid): Likewise.
33364         (setregid): Likewise.
33365         (setreuid): Likewise.
33366         (sigaction): Likewise.
33367         (truncate): Likewise.
33368         (vhangup): Likewise.
33369         * sysdeps/unix/common/syscalls.list: Remove file.
33370         * sysdeps/unix/bsd/Implies: Don't include unix/common.
33371         * sysdeps/unix/sysv/linux/Implies: Likewise.
33372
33373 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
33374
33375         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
33376         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
33377         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
33378         Moved to ...
33379         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33380         Here.
33381         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
33382         to ...
33383         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
33384         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
33385         to ...
33386         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
33387         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
33388         to ...
33389         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
33390         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
33391         to ...
33392         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
33393         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
33394         to ...
33395         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
33396         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
33397         to ...
33398         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
33399         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
33400         to ...
33401         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
33402         Here.
33403         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
33404         to ...
33405         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
33406         Here.
33407         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
33408         to ...
33409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
33410         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
33411         Moved to ...
33412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
33413         Here.
33414         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
33415         to ...
33416         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
33417
33418 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33419
33420         * sysdeps/unix/common/bits/dirent.h: Remove file.
33421         * sysdeps/unix/common/bits/fcntl.h: Likewise.
33422
33423         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
33424         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
33425         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
33426         * sysdeps/unix/bsd/isatty.c: Likewise.
33427         * sysdeps/unix/bsd/tcdrain.c: Likewise.
33428         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
33429         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
33430
33431 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33432
33433         [BZ #13563]
33434         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
33435         long double comparison inaccuracies.
33436         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
33437         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33438
33439 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
33440
33441         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
33442         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
33443
33444 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33445
33446         [BZ #14049]
33447         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
33448         nonzero digits before rounding a hex value.
33449         * stdlib/tst-strtod.c (tests): Add another test.
33450
33451 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33452
33453         * sysdeps/s390/fpu/libm-test-ulps: Update.
33454
33455 2012-05-03  Andreas Jaeger  <aj@suse.de>
33456
33457         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
33458         does not get optimized out.
33459         (malloc_opt_barrier): New.
33460
33461 2012-05-03  Andreas Jaeger  <aj@suse.de>
33462             Roland McGrath  <roland@hack.frob.com>
33463
33464         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
33465         intermediate file deletion.
33466         (generated): Add .symlist files.
33467
33468 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
33469
33470         [BZ #13775]
33471         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
33472         Redirect under this condition.
33473         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33474         [__USE_GNU] (__dprintf_chk): Not under this condition.
33475         [__USE_GNU] (__vdprintf_chk): Likewise.
33476         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
33477         under this condition.
33478         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33479         [__USE_XOPEN2K8] (dprintf): Define under this condition.
33480         [__USE_XOPEN2K8] (vdprintf): Likewise.
33481         [__USE_GNU] (__dprintf_chk): Not under this condition.
33482         [__USE_GNU] (__vdprintf_chk): Likewise.
33483         [__USE_GNU] (dprintf): Likewise.
33484         [__USE_GNU] (vdprintf): Likewise.
33485
33486 2012-05-03  Roland McGrath  <roland@hack.frob.com>
33487
33488         * elf/Makefile (common-generated): Set this instead of generated for
33489         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
33490         $(all-built-dso)-derived lists.
33491
33492 2012-05-03  Andreas Jaeger  <aj@suse.de>
33493
33494         * sysdeps/i386/fpu/libm-test-ulps: Update.
33495
33496         * FAQ: Removed.
33497         * FAQ.in: Likewise.
33498         * scripts/gen-FAQ.pl: Likewise.
33499         * manual/install.texi (Installation): Point to online location of
33500         FAQ.
33501         * Makefile (files-for-dist): Remove FAQ.
33502         (FAQ): Remove.
33503
33504 2012-05-02  Allan McRae  <allan@archlinux.org>
33505
33506         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
33507         (LDFLAGS-reldepmod5.so): Likewise.
33508         (LDFLAGS-reldep6mod1.so): Likewise.
33509         (LDFLAGS-reldep6mod4.so): Likewise.
33510         (LDFLAGS-reldep8mod3.so): Likewise.
33511         (LDFLAGS-unload4mod1.so): Likewise.
33512         (LDFLAGS-unload4mod2.so): Likewise.
33513         (LDFLAGS-tst-initorder): Likewise.
33514         (LDFLAGS-tst-initordera2.so): Likewise.
33515         (LDFLAGS-tst-initordera3.so): Likewise.
33516         (LDFLAGS-tst-initordera4.so): Likewise.
33517         (LDFLAGS-tst-initorderb2.so): Likewise.
33518         (LDFLAGS-noload): Likewise.
33519         (LDFLAGS-next): Likewise.
33520         (LDFLAGS-order2mod1.so): Likewise.
33521         (LDFLAGS-order2mod2.so): Likewise.
33522         (LDFLAGS-tst-initorder2): Likewise.
33523         (LDFLAGS-tst-initorder2a.so): Likewise.
33524         (LDFLAGS-tst-initorder2b.so): Likewise.
33525         (LDFLAGS-tst-initorder2c.so): Likewise.
33526         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
33527
33528 2012-05-02  David S. Miller  <davem@davemloft.net>
33529
33530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33531
33532 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33533
33534         [BZ #14055]
33535         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
33536
33537 2012-05-02  Andreas Jaeger  <aj@suse.de>
33538
33539         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
33540         since we manipulate rounding mode.
33541         (CPPFLAGS-test-idouble.c): Likewise.
33542         (CPPFLAGS-test-ifloat.c): Likewise.
33543         (CFLAGS-test-ldouble.c): Likewise.
33544         (CFLAGS-test-double.c): Likewise.
33545         (CFLAGS-test-float.c): Likewise.
33546         (CFLAGS-test-misc.c): Likewise.
33547         (CFLAGS-test-test-fenv.c): Likewise.
33548
33549 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33550
33551         [BZ #2550]
33552         [BZ #2570]
33553         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
33554         comparisons to determine direction to adjust input.
33555
33556 2012-05-01  Roland McGrath  <roland@hack.frob.com>
33557
33558         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
33559         output to the target.
33560
33561         * scripts/localplt.awk: New file.
33562         * elf/Makefile ($(objpfx)check-localplt): Target removed.
33563         (check-localplt-CFLAGS): Variable removed.
33564         ($(all-built-dso:=.jmprel)): New static pattern rule.
33565         (generated): Add those targets.
33566         (localplt-built-dso): New variable.
33567         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
33568
33569         * elf/check-localplt.c: File removed.
33570
33571         * scripts/check-execstack.awk: New file.
33572         * elf/Makefile ($(objpfx)check-execstack): Target removed.
33573         (check-execstack-CFLAGS): Variable removed.
33574         ($(objpfx)check-execstack.h): Target removed.
33575         ($(objpfx)execstack-default): New target.
33576         (generated): Add that instead of check-execstack.h.
33577         ($(all-built-dso:=.phdr)): New static pattern rule.
33578         (generated): Add those targets.
33579         * elf/check-execstack.c: File removed.
33580
33581         * scripts/check-textrel.awk: New file.
33582         * elf/Makefile ($(objpfx)check-textrel): Target removed.
33583         (check-textrel-CFLAGS): Variable removed.
33584         (all-built-dso): Use := to define.o
33585         ($(all-built-dso:=.dyn)): New static pattern rule.
33586         (generated): Add those targets.
33587         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
33588         * config.make.in (READELF): New substituted variable.
33589         * elf/check-textrel.c: File removed.
33590
33591 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
33592
33593         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33594         allow.
33595         * conform/data/ctype.h-data [C99-based standards] (isblank):
33596         Expect function.
33597         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
33598         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
33599         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33600         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
33601         Specify type.  Require positive value.
33602         (EILSEQ): Likewise.
33603         (ERANGE): Likewise.
33604         [ISO || POSIX] (EILSEQ): Do not expect.
33605         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
33606         Specify type.  Require positive value.
33607         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
33608         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
33609         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
33610         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
33611         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
33612         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
33613         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
33614         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
33615         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
33616         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
33617         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
33618         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
33619         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
33620         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
33621         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
33622         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
33623         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
33624         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
33625         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
33626         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
33627         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
33628         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
33629         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
33630         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
33631         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
33632         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
33633         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
33634         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
33635         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
33636         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
33637         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
33638         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
33639         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
33640         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
33641         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
33642         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
33643         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
33644         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
33645         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
33646         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
33647         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
33648         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
33649         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
33650         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
33651         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
33652         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
33653         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
33654         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
33655         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
33656         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
33657         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
33658         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
33659         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
33660         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
33661         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
33662         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
33663         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
33664         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
33665         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
33666         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
33667         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
33668         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
33669         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
33670         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
33671         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
33672         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
33673         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
33674         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
33675         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
33676         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
33677         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
33678         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
33679         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
33680         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
33681         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
33682         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
33683         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
33684         Require >= 2.
33685         (FLT_ROUNDS): Expect as macro, not constant.
33686         (FLT_MANT_DIG): Use macro-int-constant.
33687         (DBL_MANT_DIG): Likewise.
33688         (LDBL_MANT_DIG): Likewise.
33689         (FLT_DIG): Likewise.
33690         (DBL_DIG): Likewise.
33691         (LDBL_DIG): Likewise.
33692         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
33693         (DBL_MIN_EXP): Likewise.
33694         (LDBL_MIN_EXP): Likewise.
33695         (FLT_MAX_EXP): Use macro-int-constant.
33696         (DBL_MAX_EXP): Likewise.
33697         (LDBL_MAX_EXP): Likewise.
33698         (FLT_MAX_10_EXP): Likewise.
33699         (DBL_MAX_10_EXP): Likewise.
33700         (LDBL_MAX_10_EXP): Likewise.
33701         (FLT_MAX): Use macro-constant.
33702         (DBL_MAX): Likewise.
33703         (LDBL_MAX): Likewise.
33704         (FLT_EPSILON): Use macro-constant.  Give upper bound.
33705         (DBL_EPSILON): Likewise.
33706         (LDBL_EPSILON): Likewise.
33707         (FLT_MIN): Likewise.
33708         (DBL_MIN): Likewise.
33709         (LDBL_MIN): Likewise.
33710         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
33711         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
33712         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
33713         [ISO11] (FLT_HAS_SUBNORM): Likewise.
33714         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
33715         [ISO11] (DBL_DECIMAL_DIG): Likewise.
33716         [ISO11] (FLT_DECIMAL_DIG): Likewise.
33717         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
33718         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
33719         [ISO11] (FLT_TRUE_MIN): Likewise.
33720         [ISO11] (LDBL_TRUE_MIN): Likewise.
33721         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33722         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
33723         (SCHAR_MIN): Use macro-int-constant.  Specify type.
33724         (SCHAR_MAX): Likewise.
33725         (UCHAR_MAX): Likewise.
33726         (CHAR_MIN): Likewise.
33727         (CHAR_MAX): Likewise.
33728         (MB_LEN_MAX): Use macro-int-constant.
33729         (SHRT_MIN): Use macro-int-constant.  Specify type.
33730         (SHRT_MAX): Likewise.
33731         (USHRT_MAX): Likewise.
33732         (INT_MAX): Likewise.
33733         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
33734         bound negative.
33735         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33736         bound with "U".
33737         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33738         bound with "L".
33739         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
33740         bound negative.  Suffix upper bound with "L".
33741         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33742         bound with "UL".
33743         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
33744         Specify type.
33745         [C99-based standards] (LLONG_MAX): Likewise.
33746         [C99-based standards] (ULLONG_MAX): Likewise.
33747         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
33748         == 0.
33749         [ISO11] (max_align_t): Require type.
33750         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33751
33752         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
33753         from $CFLAGS, without defining away __attribute__ calls.
33754         (checknamespace): Use $CFLAGS_namespace.
33755
33756         * conform/conformtest.pl (@keywords): Only include C99 keywords
33757         for standards based on C99 or C11.
33758
33759         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
33760         Disable tests.
33761         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
33762         UNIX98]: Likewise.
33763
33764         * conform/conformtest.pl: Handle "macro-int-constant" and test for
33765         usability of symbols in #if.
33766
33767         * conform/conformtest.pl: If macro or constant types start
33768         "promoted:", expect the symbol to be of the following type
33769         promoted by the integer promotions.
33770
33771         * conform/conformtest.pl: Parse all "constant" and "macro" lines
33772         in one place.  Also handle "macro-constant".
33773
33774         * conform/conformtest.pl: Only accept expected macro values with
33775         "==".  Parse all "macro" lines in one place.
33776         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
33777
33778         * conform/conformtest.pl: Handle braced types on "constant" lines
33779         instead of handling "typed-constant".
33780         * conform/data/signal.h-data: Use "constant" instead of
33781         "typed-constant".
33782
33783         * conform/conformtest.pl: Handle "optional-" at start of lines in
33784         one place rather than duplicating several cases.  Handle each
33785         format of "macro" line with initial "optional-".
33786
33787         * conform/conformtest.pl: Only accept expected constant or
33788         optional-constant values with "==".  Parse all "constant" lines in
33789         one place.  Parse all "optional-constant" lines in one place.
33790         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
33791         * conform/data/fmtmsg.h-data: Likewise.
33792         * conform/data/netinet/in.h-data: Likewise.
33793         * conform/data/tar.h-data: Likewise.
33794         * conform/data/limits.h-data: Use "==" form on "constant" and
33795         "optional-constant" lines.
33796
33797         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
33798         Use -std=c99 for XOPEN2K.
33799         (@knownproblems): Remove.
33800         (newtoken): Don't check %isknown.
33801
33802         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
33803         Do not expect macro.
33804         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
33805         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
33806         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
33807         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
33808         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
33809         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
33810         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
33811         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
33812         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
33813         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
33814         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
33815         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
33816         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
33817         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
33818         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
33819         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
33820         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
33821         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
33822         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
33823         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
33824         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
33825         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
33826         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
33827         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
33828         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
33829         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
33830         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
33831         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
33832         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
33833         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
33834         [XPG3] (acosh): Likewise.
33835         [XPG3] (asinh): Likewise.
33836         [XPG3] (atanh): Likewise.
33837         [XPG3] (cbrt): Likewise.
33838         [XPG3] (expm1): Likewise.
33839         [XPG3] (ilogb): Likewise.
33840         [XPG3] (log1p): Likewise.
33841         [XPG3] (logb): Likewise.
33842         [XPG3] (nextafter): Likewise.
33843         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
33844         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
33845         [XPG3] (remainder): Likewise.
33846         [XPG3] (rint): Likewise.
33847         [XPG3 || XPG4 || UNIX98] (round): Likewise.
33848         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
33849         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
33850         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
33851         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
33852         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
33853         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
33854         [UNIX98 || XOPEN2K] (scalb): Expect.
33855         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
33856         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
33857         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
33858         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
33859         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
33860         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
33861         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
33862         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
33863         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
33864         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
33865         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
33866         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
33867         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
33868         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
33869         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
33870         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
33871         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
33872         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
33873         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
33874         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
33875         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
33876         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
33877         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
33878         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
33879         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
33880         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
33881         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
33882         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
33883         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
33884         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
33885         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
33886         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
33887         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
33888         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
33889         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
33890         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
33891         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
33892         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
33893         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
33894         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
33895         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
33896         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
33897         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
33898         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
33899         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
33900         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
33901         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
33902         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
33903         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
33904         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
33905         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
33906         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
33907         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
33908         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
33909         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
33910         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
33911         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
33912         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
33913         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
33914         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
33915         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
33916         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
33917         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
33918         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
33919         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
33920         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
33921         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
33922         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
33923         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
33924         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
33925         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
33926         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
33927         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
33928         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
33929         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
33930         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
33931         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
33932         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
33933         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
33934         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
33935         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
33936         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
33937         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
33938         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
33939         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
33940         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
33941         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
33942         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
33943         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
33944         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
33945         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
33946         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
33947         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
33948         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
33949         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
33950         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
33951         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
33952         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
33953         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
33954         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
33955         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
33956         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
33957         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
33958         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
33959         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
33960         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
33961         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
33962         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
33963         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
33964         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
33965         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
33966         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
33967         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
33968         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
33969         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
33970         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
33971         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
33972         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
33973         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
33974         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
33975         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
33976         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
33977         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
33978         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
33979         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
33980         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
33981         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
33982         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
33983         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
33984         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
33985         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
33986         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
33987         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
33988         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
33989         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
33990         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
33991         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
33992
33993         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
33994         _XOPEN_SOURCE_EXTENDED for XPG4.
33995
33996         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
33997
33998         * Makeconfig (localtime): Remove variable.
33999         (inst_localtime-file): Likewise.
34000
34001 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34002
34003         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34004         Update.
34005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34006         Update.
34007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34008         Update.
34009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34010         Update.
34011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34012         Update.
34013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34014         Update.
34015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34016         Update.
34017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34018         Update.
34019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34020         Update.
34021
34022 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34023
34024         [BZ #2550]
34025         [BZ #2570]
34026         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34027         comparisons to determine direction to adjust input.
34028         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34029         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34030         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34031         Likewise.
34032         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34033         Likewise.
34034         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34035         Likewise.
34036         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34037         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34038         Likewise.
34039         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34040         Likewise.
34041         * math/libm-test.inc (nexttoward_test): Add more tests.
34042
34043 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34044
34045         [BZ #14040]
34046         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34047         in version GLIBC_2.1, not GLIBC_2.0.
34048         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34049         Likewise.
34050
34051 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34052
34053         [BZ #13942]
34054         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34055         (1 - x) * (1 + x).
34056         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34057         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34058         * math/libm-test.inc (acos_test): Add more tests.
34059         (asin_test): Likewise.
34060         * sysdeps/i386/fpu/libm-test-ulps: Update.
34061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34062
34063         [BZ #14034]
34064         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34065         of square root.
34066         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34067         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34068         * math/libm-test.inc (acos_test_tonearest): New function.
34069         (acos_test_towardzero): Likewise.
34070         (acos_test_downward): Likewise.
34071         (acos_test_upward): Likewise.
34072         (asin_test_tonearest): Likewise.
34073         (asin_test_towardzero): Likewise.
34074         (asin_test_downward): Likewise.
34075         (asin_test_upward): Likewise.
34076         (main): Call the new functions.
34077         * sysdeps/i386/fpu/libm-test-ulps: Update.
34078         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34079
34080         [BZ #13884]
34081         [BZ #13924]
34082         * math/e_exp10.c: Include <float.h>.
34083         (__ieee754_exp10): Handle underflow here rather than multiplying
34084         large negative argument by M_LN10.
34085         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34086         of __ieee754_expf.
34087         * math/e_exp10l.c: Include <float.h>.
34088         (__ieee754_exp10l): Handle underflow here rather than multiplying
34089         large negative argument by M_LN10l.
34090         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34091         spurious overflow exception on underflow.
34092
34093 2012-04-29  Marek Polacek  <polacek@redhat.com>
34094
34095         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34096         (__fortify_function): New macro.
34097         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34098         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34099         __extern_always_inline.
34100         * libio/bits/stdio2.h: Likewise.
34101         * libio/bits/stdio.h: Likewise.
34102         * string/string.h: Likewise.
34103         * string/bits/string3.h: Likewise.
34104         * include/stdio.h: Likewise.
34105         * stdlib/bits/stdlib.h: Likewise.
34106         * stdlib/stdlib.h: Likewise.
34107         * rt/bits/mqueue2.h: Likewise.
34108         * rt/mqueue.h: Likewise.
34109         * posix/bits/unistd.h: Likewise.
34110         * posix/unistd.h: Likewise.
34111         * io/bits/poll2.h: Likewise.
34112         * io/bits/fcntl2.h: Likewise.
34113         * io/fcntl.h: Likewise.
34114         * io/sys/poll.h: Likewise.
34115         * misc/bits/syslog.h: Likewise.
34116         * misc/bits/syslog-ldbl.h: Likewise.
34117         * misc/sys/syslog.h: Likewise.
34118         * socket/bits/socket2.h: Likewise.
34119         * socket/sys/socket.h: Likewise.
34120         * debug/tst-chk1.c: Likewise.
34121         * wcsmbs/bits/wchar2.h: Likewise.
34122         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34123         * wcsmbs/wchar.h: Likewise.
34124
34125 2012-04-29  Andreas Jaeger  <aj@suse.de>
34126
34127         * Makerules (tests): Remove enable-check-abi protection.
34128         (check-abi-warn): Remove.
34129         (check-abi-%): Remove check-abi-warn usage.
34130
34131         * configure.in: Remove check-abi configure option.
34132         * configure: Regenerated.
34133         * config.make.in (enable-check-abi): Remove.
34134
34135 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34136
34137         [BZ #14033]
34138         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34139         double functions to double *_finite functions.
34140
34141         [BZ #13941]
34142         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34143         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34144         LDBL_MIN_EXP.
34145         * stdio-common/Makefile (tests): Add tst-sprintf3.
34146         * stdio-common/tst-sprintf3.c: New file.
34147
34148         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34149         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34150
34151 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34152
34153         * conform/conformtest.pl: Remove duplicate typed-constant
34154         handling.
34155
34156 2012-04-28  David S. Miller  <davem@davemloft.net>
34157
34158         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34159         (check-abi-%): Remove AWK script prerequisite and explicit
34160         abilist directory.
34161         (check-abi): Rewrite to just diff the symlist with the abilist.
34162         (config-tls, config-abi-config): Delete, no longer used.
34163         (update-abi-%): Remove AWK script and explicit abilist directory.
34164         (update-abi): Rewrite to simply compare and conditionally copy the
34165         symlist and the sysdep abilist file.  Remove update-abi-config
34166         checks.
34167         * abilist/ld.abilist: Remove.
34168         * abilist/libBrokenLocale.abilist: Remove.
34169         * abilist/libanl.abilist: Remove.
34170         * abilist/libcrypt.abilist: Remove.
34171         * abilist/libdl.abilist: Remove.
34172         * abilist/librt.abilist: Remove.
34173         * abilist/libthread_db.abilist: Remove.
34174         * abilist/libutil.abilist: Remove.
34175         * scripts/extract-abilist.awk: Remove.
34176         * scripts/merge-abilist.awk: Remove.
34177         * sysdeps/generic/libcidn.abilist: New file.
34178         * sysdeps/generic/libnss_compat.abilist: New file.
34179         * sysdeps/generic/libnss_db.abilist: New file.
34180         * sysdeps/generic/libnss_dns.abilist: New file.
34181         * sysdeps/generic/libnss_files.abilist: New file.
34182         * sysdeps/generic/libnss_hesiod.abilist: New file.
34183         * sysdeps/generic/libnss_nis.abilist: New file.
34184         * sysdeps/generic/libnss_nisplus.abilist: New file.
34185         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34186         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34187         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34188         file.
34189         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34190         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34191         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34192         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34193         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34194         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34195         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34196         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34197         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34198         file.
34199         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34200         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34201         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34202         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34203         file.
34204         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34205         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34206         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34207         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34208         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34209         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34210         file.
34211         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34212         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34213         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34214         file.
34215         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34216         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34217         New file.
34218         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34219         New file.
34220         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34221         New file.
34222         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34223         New file.
34224         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34225         New file.
34226         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
34227         New file.
34228         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
34229         New file.
34230         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
34231         New file.
34232         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
34233         New file.
34234         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
34235         New file.
34236         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
34237         New file.
34238         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
34239         New file.
34240         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
34241         New file.
34242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
34243         file.
34244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
34245         New file.
34246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
34247         New file.
34248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
34249         file.
34250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
34251         New file.
34252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
34253         New file.
34254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
34255         file.
34256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
34257         New file.
34258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34259         New file.
34260         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
34261         New file.
34262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
34263         New file.
34264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
34265         New file.
34266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
34267         New file.
34268         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
34269         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
34270         file.
34271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
34272         New file.
34273         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
34274         file.
34275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
34276         file.
34277         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
34278         file.
34279         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
34280         file.
34281         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
34282         file.
34283         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
34284         New file.
34285         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
34286         file.
34287         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
34288         file.
34289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
34290         New file.
34291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
34292         file.
34293         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
34294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
34295         file.
34296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
34297         New file.
34298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
34299         file.
34300         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
34301         file.
34302         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
34303         file.
34304         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
34305         file.
34306         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
34307         file.
34308         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
34309         New file.
34310         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
34311         file.
34312         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
34313         file.
34314         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
34315         New file.
34316         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
34317         file.
34318         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
34319         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
34320         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
34321         file.
34322         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
34323         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
34324         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
34325         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
34326         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
34327         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
34328         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
34329         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
34330         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
34331         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
34332         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
34333         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
34334         file.
34335         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
34336         New file.
34337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
34338         file.
34339         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
34340         file.
34341         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
34342         file.
34343         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
34344         file.
34345         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
34346         file.
34347         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
34348         New file.
34349         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
34350         New file.
34351         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
34352         file.
34353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
34354         New file.
34355         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
34356         file.
34357         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
34358         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
34359         file.
34360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
34361         New file.
34362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
34363         file.
34364         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
34365         file.
34366         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
34367         file.
34368         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
34369         file.
34370         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
34371         file.
34372         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
34373         New file.
34374         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
34375         New file.
34376         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
34377         file.
34378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
34379         New file.
34380         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
34381         file.
34382
34383 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34384
34385         * conform/conformtest.pl: Fix typo in handling typed-constant from
34386         allow-header.
34387
34388 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34389
34390         * README: Cut down references to pre-2.6 Linux kernels and
34391         Linuxthreads.  Update lists of configurations in libc and ports
34392         and sort alphabetically.  Say "or newer" with Linux kernel version
34393         requirements.
34394
34395         * config.h.in [IS_IN_build]: Allow compiling without optimization.
34396
34397 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
34398
34399         [BZ #887]
34400         * math/libm-test.inc (logb_test_downward): New test to expose
34401         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
34402         rounding mode.
34403
34404 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34405
34406         [BZ #14027]
34407         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
34408         to be done.
34409         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
34410         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
34411
34412 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
34413
34414         * sysdeps/unix/i386/brk.S: Remove file.
34415         * sysdeps/unix/i386/dl-brk.S: Likewise.
34416         * sysdeps/unix/i386/pipe.S: Likewise.
34417         * sysdeps/unix/i386/sigreturn.S: Likewise.
34418         * sysdeps/unix/i386/syscall.S: Likewise.
34419         * sysdeps/unix/i386/vfork.S: Likewise.
34420         * sysdeps/unix/i386/wait.S: Likewise.
34421
34422         * sysdeps/unix/common/tcsendbrk.c: Move to ...
34423         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
34424
34425         * configure.in (arm*-none*): Do not allow without
34426         --enable-hacker-mode.
34427         (netbsd*): Remove case setting base_os.
34428         (386bsd*): Likewise.
34429         (freebsd*): Likewise.
34430         (bsdi*): Likewise.
34431         (osf*): Likewise.
34432         (sunos*): Likewise.
34433         (ultrix*): Likewise.
34434         (newsos*): Likewise.
34435         (dynix*): Likewise.
34436         (*bsd*): Likewise.
34437         (sysv*): Likewise.
34438         (isc*): Likewise.
34439         (esix*): Likewise.
34440         (sco*): Likewise.
34441         (minix*): Likewise.
34442         (irix4*): Likewise.
34443         (irix6*): Likewise.
34444         (solaris[2-9]*): Likewise.
34445         (none): Likewise.
34446         * configure: Regenerated.
34447
34448 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34449
34450         [BZ #11521]
34451         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
34452         overflow or cancellation in calculating denominator.
34453         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
34454         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
34455         down expression to avoid unexpected rounding in newer GCCs.
34456         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
34457
34458 2012-04-26  David S. Miller  <davem@davemloft.net>
34459
34460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
34461         long-double compat symbols.
34462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
34466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34467         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
34468         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
34469         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
34470         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
34471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
34472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
34473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
34474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
34475
34476 2012-04-25  David S. Miller  <davem@davemloft.net>
34477
34478         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
34479         HWCAP_* values only after the memory barriers have been defined.
34480         (atomic_full_barrier): Define.
34481         (atomic_read_barrier): Define.
34482         (atomic_write_barrier): Define.
34483
34484 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34485
34486         * shlib-versions: Add libgcc_s version information.
34487         * sysdeps/generic/libgcc_s.h: Remove.
34488         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
34489         libgcc_s.h.
34490         * sysdeps/gnu/unwind-resume.c: Likewise.
34491         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
34492
34493 2012-04-25  David S. Miller  <davem@davemloft.net>
34494
34495         * sysdeps/unix/sparc/brk.S: Delete.
34496         * sysdeps/unix/sparc/dl-brk.S: Delete.
34497         * sysdeps/unix/sparc/pipe.S: Delete.
34498         * sysdeps/unix/sparc/sysdep.S: Delete.
34499         * sysdeps/unix/sparc/sysdep.h: Delete.
34500         * sysdeps/unix/sparc/vfork.S: Delete.
34501         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
34502         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
34503         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
34504         (ret_ERRVAL, r0, r1, MOVE): Define.
34505         (JUMPTARGET): Remove.
34506         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
34507         sysdeps/unix/sparc/sysdep.h
34508         (ENTRY, END): Remove.
34509         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34510
34511 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
34512
34513         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
34514         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
34515         -DIS_IN_build.
34516
34517         * timezone/README: Update upstream location and email address for
34518         tzcode and tzdata.
34519         * timezone/zdump.c: Update from tzcode 2012b.
34520         * timezone/zic.c: Likewise.
34521
34522         * configure.in (libc_cv_as_needed): Remove test.
34523         * configure: Regenerated.
34524         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
34525         conditional definition.
34526         [$(have-as-needed) != yes] (no-as-needed): Likewise.
34527         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
34528         * config.make.in (have-as-needed): Remove variable.
34529
34530 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
34531             Paul Pluzhnikov  <ppluzhnikov@google.com>
34532
34533         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
34534         strings correctly.
34535
34536 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
34537
34538         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
34539         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
34540         * sysdeps/sh/strlen.S: Likewise.
34541
34542 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34543
34544         * sysdeps/unix/fork.S: Remove file.
34545         * sysdeps/unix/i386/fork.S: Likewise.
34546         * sysdeps/unix/sparc/fork.S: Likewise.
34547
34548         * sysdeps/unix/system.c: Remove file.
34549         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
34550
34551         * sysdeps/unix/getegid.S: Remove file.
34552         * sysdeps/unix/geteuid.S: Likewise.
34553
34554 2012-04-24  Roland McGrath  <roland@hack.frob.com>
34555
34556         * scripts/check-localplt.awk: New file.
34557         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
34558         of diff.
34559         * scripts/data/localplt-generic.data: Add a comment.
34560
34561         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
34562         NODE when __dir_mkfile failed.
34563         * sysdeps/mach/hurd/symlinkat.c: Likewise.
34564         Reported by Ludovic Courtès <ludo@gnu.org>.
34565
34566 2012-04-24  Andreas Jaeger  <aj@suse.de>
34567
34568         * Makerules (common-clean): Also remove gen-as-const-headers
34569         files.
34570
34571 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34572
34573         * Makerules (native-compile): Do not change working directory for
34574         build.  Use $(OUTPUT_OPTION) in command.
34575         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
34576
34577 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34578
34579         [BZ #13886]
34580         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
34581         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
34582         * math/libm-test.inc (floor_test): Add more tests.
34583         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
34584
34585 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34586
34587         * sysdeps/unix/getdents.c: Remove file.
34588         * sysdeps/unix/sysv/getdents.c: Likewise.
34589         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
34590
34591         * sysdeps/unix/syscalls.list (madvise): Add syscall from
34592         sysdeps/unix/mman/syscalls.list.
34593         (mmap): Likewise.
34594         (mprotect): Likewise.
34595         (msync): Likewise.
34596         (munmap): Likewise.
34597         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
34598         * sysdeps/unix/mman/syscalls.list: Remove.
34599         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
34600
34601         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
34602         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
34603         * configure: Regenerated.
34604         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
34605         $(libgcc_s_suffix).
34606         * config.make.in (libgcc_s_suffix): Remove variable.
34607
34608 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
34609
34610         * sysdeps/unix/sysv/gethostname.c: Move to ...
34611         * sysdeps/posix/gethostname.c: ... here.
34612
34613         * sysdeps/unix/execve.S: Remove file.
34614
34615         * sysdeps/unix/_exit.S: Remove file.
34616
34617 2012-04-23  Andreas Jaeger  <aj@suse.de>
34618
34619         [BZ #13739]
34620         * manual/Makefile: Remove make dist support, there's no
34621         need for a stand-alone documentation tar ball.
34622         (TEXI2DVI): Define always, it's not in Makeconfig.
34623         (dist): Removed.
34624         (tar-it): Removed.
34625         (edition): Removed.
34626         (glibc-doc-$(edition).tar): Removed
34627         (%.Z): Removed.
34628         (%.gz): Removed.
34629         (%.uu): Removed.
34630         (ETAGS): Remove, it's in Makeconfig.
34631         (move-if-change): Remove, it's in Makeconfig.
34632
34633 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
34634
34635         [BZ #13970]
34636         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
34637         (strtod, strtof, strtold, strtol, strtoul, strtoq)
34638         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
34639         (strtod_l, strtof_l, strtold_l): Remove __wur.
34640         It is not necessarily an error to ignore strtol's return value.
34641         One can reliably look at the stored endptr to decide whether
34642         the number had valid syntax.
34643
34644 2012-04-21  Andreas Jaeger  <aj@suse.de>
34645
34646         [BZ #13739]
34647         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
34648
34649 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
34650
34651         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
34652         * sysdeps/unix/sysv/Versions: Remove file.
34653
34654 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
34655
34656         [BZ #13927]
34657         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34658
34659 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
34660
34661         [BZ #7064]
34662         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
34663         version from __vm86.
34664
34665 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
34666
34667         * sysdeps/unix/common/lxstat.c: Remove file.
34668         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
34669
34670         * sysdeps/unix/sysv/Makefile: Remove file.
34671
34672         * sysdeps/unix/sysv/direct.h: Remove file.
34673
34674         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
34675         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
34676         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
34677         * sysdeps/unix/sysv/bits/signum.h: Likewise.
34678         * sysdeps/unix/sysv/bits/stat.h: Likewise.
34679         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
34680         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
34681
34682         * sysdeps/unix/sysv/setrlimit.c: Remove file.
34683
34684         * sysdeps/unix/xmknod.c: Remove file.
34685         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
34686
34687         * sysdeps/unix/sysv/settimeofday.c: Remove file.
34688
34689         * sysdeps/unix/sysv/i386/time.S: Remove file.
34690
34691         * sysdeps/unix/fxstat.c: Remove file.
34692         * sysdeps/unix/xstat.c: Likewise.
34693         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
34694
34695         * sysdeps/unix/sysv/sigaction.c: Remove file.
34696
34697         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
34698         (sysdep_headers): Remove variable.
34699         [termio.h not in sysdep_headers] (generated): Likewise.
34700         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
34701         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
34702         * sysdeps/unix/sysv/tcdrain.c: Likewise.
34703         * sysdeps/unix/sysv/tcflow.c: Likewise.
34704         * sysdeps/unix/sysv/tcflush.c: Likewise.
34705         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
34706         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
34707         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
34708         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
34709         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
34710
34711         * sysdeps/unix/siglist.c: Remove file.
34712
34713         * sysdeps/unix/getppid.S: Remove file.
34714
34715         * sysdeps/unix/mkdir.c: Remove file.
34716         * sysdeps/unix/rmdir.c: Likewise.
34717
34718 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
34719
34720         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
34721         ERR_MAX value.
34722         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
34723         errlist-compat value.
34724
34725 2012-04-18  David S. Miller  <davem@davemloft.net>
34726
34727         * sysdeps/generic/memcopy.h (reg_char): Delete.
34728         * debug/strcat_chk.c: Use char, not reg_char.
34729         * debug/strcpy_chk.c: Likewise.
34730         * debug/strncat_chk.c: Likewise.
34731         * debug/strncpy_chk.c: Likewise.
34732         * string/memchr.c: Likewise.
34733         * string/memrchr.c: Likewise.
34734         * string/rawmemchr.c: Likewise.
34735         * string/strcat.c: Likewise.
34736         * string/strchr.c: Likewise.
34737         * string/strchrnul.c: Likewise.
34738         * string/strcmp.c: Likewise.
34739         * string/strcpy.c: Likewise.
34740         * string/strncat.c: Likewise.
34741         * string/strncmp.c: Likewise.
34742         * string/strncpy.c: Likewise.
34743
34744 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34745
34746         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
34747         __builtin_memcopy is called when src and dest ranges are known to not
34748         overlap.
34749
34750 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34751
34752         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
34753         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
34754         fwd_align_merge macro call.
34755         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
34756         bwd_align_merge macro call.
34757         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
34758
34759 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34760
34761         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
34762         bwd_align_merge macros.
34763         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
34764         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
34765         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
34766
34767 2012-04-18  David S. Miller  <davem@davemloft.net>
34768
34769         * sysdeps/sparc/sparc64/memcopy.h: Delete.
34770
34771 2012-04-18  Andreas Jaeger  <aj@suse.de>
34772
34773         [BZ# 6794]
34774         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
34775         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
34776         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34777
34778         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
34779         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
34780         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34781
34782         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
34783         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
34784         Adjust for changed ldbl-128 files.
34785
34786         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
34787         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
34788         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34789
34790 2012-04-17  David S. Miller  <davem@davemloft.net>
34791
34792         * sysdeps/sparc/sparc32/memcopy.h: Delete.
34793
34794 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
34795
34796         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
34797         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
34798         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
34799         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
34800         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
34801         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
34802
34803 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34804
34805         [BZ #6794]
34806         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
34807         * math/libm-test.inc: Add ilogb errno and exception tests.
34808         * math/w_ilogb.c: New file: ilogb wrapper.
34809         * math/w_ilogbf.c: New file: ilogbf wrapper.
34810         * math/w_ilogbl.c: New file: ilogbl wrapper.
34811         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
34812         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
34813         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
34814         exception being thrown with 0.0 as argument.
34815         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
34816         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
34817         exception being thrown with 0.0 as argument.
34818         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
34819         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
34820         exception being thrown with 0.0 as argument.
34821         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
34822         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
34823         exception being thrown with 0.0 as argument.
34824         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
34825         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
34826         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
34827         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
34828         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
34829         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
34830         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
34831         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
34832         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
34833
34834 2012-04-17  Petr Baudis  <pasky@ucw.cz>
34835
34836         * include/sys/uio.h: Change __vector to __iovec to avoid clash
34837         with altivec.
34838
34839 2012-04-16  Marek Polacek  <polacek@redhat.com>
34840
34841         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
34842
34843 2012-04-16  Marek Polacek  <polacek@redhat.com>
34844
34845         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
34846         operands of fdivp instruction.
34847
34848 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
34849
34850         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
34851         * elf/tst-auditmod3b.c: Likewise.
34852         * elf/tst-auditmod4b.c: Likewise.
34853         * elf/tst-auditmod5b.c: Likewise.
34854         * elf/tst-auditmod6b.c: Likewise.
34855         * elf/tst-auditmod6c.c: Likewise.
34856         * elf/tst-auditmod7b.c: Likewise.
34857         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
34858         * sysdeps/x86_64/preconfigure.in: Likewise.
34859         * sysdeps/x86_64/preconfigure: Regenerated.
34860
34861 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
34862
34863         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
34864         __ILP32__.
34865
34866 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
34867
34868         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
34869         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
34870
34871 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
34872
34873         [BZ #13973]
34874         * locale/iso-639.def: Fix gl language name. Spotted by
34875         Yaron Shahrabani.
34876
34877 2012-04-12  Roland McGrath  <roland@hack.frob.com>
34878
34879         [BZ #2074]
34880         * libio/libio.h (__io_write_fn): Update comment.
34881
34882 2012-04-12  Petr Baudis  <pasky@ucw.cz>
34883
34884         [BZ #2074]
34885         * stdio.texi (Hook Functions): The user provided writer function
34886         is not allowed to return -1.
34887
34888 2012-04-11  David S. Miller  <davem@davemloft.net>
34889
34890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34891
34892 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
34893
34894         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
34895         Add a leading slash to rtkaio.
34896
34897 2012-04-11  Jim Meyering  <meyering@redhat.com>
34898
34899         [BZ #11959]
34900         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
34901         It is not necessarily an error to ignore fwrite's return
34902         value.  One can reliably use ferror to test for errors after
34903         the fact.
34904
34905 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
34906
34907         * bits/types.h (__snseconds_t): New type.
34908         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
34909
34910         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
34911         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
34912         (__SNSECONDS_T_TYPE): Likewise.
34913         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
34914         (__SNSECONDS_T_TYPE): Likewise.
34915         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
34916         (__SNSECONDS_T_TYPE): Likewise.
34917
34918 2012-04-10  Andreas Jaeger  <aj@suse.de>
34919
34920         [BZ #2636]
34921         * manual/time.texi (Processor Time): Return type of times is
34922         elapsed real time since an arbitrary point in the past.
34923         (CPU Time): Move CLK_TCK from here...
34924         (Processor Time): ...to here.  Correct description.
34925         * manual/conf.texi (Constants for Sysconf): Correct description of
34926         _SC_CLK_TCK.
34927
34928 2012-04-10  David S. Miller  <davem@davemloft.net>
34929
34930         [BZ #13967]
34931         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
34932         where the is a gap between DT_REL(A) and DT_JMPREL.
34933
34934 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
34935
34936         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
34937         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
34938         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
34939
34940 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
34941
34942         * elf/dl-support.c (_dl_inhibit_cache): New variable.
34943         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
34944         (dl_main): Handle --inhibit-cache.
34945         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
34946         _dl_inhibit_cache.
34947         * elf/dl-load.c (_dl_map_object): Use it.
34948         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
34949
34950 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
34951
34952         [BZ #13872]
34953         * sysdeps/i386/fpu/e_powl.S (p78): New object.
34954         (__ieee754_powl): Saturate large exponents rather than testing for
34955         overflow of y*log2(x).
34956         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
34957         * math/libm-test.inc (pow_test): Do not permit spurious overflow
34958         exceptions.
34959
34960         [BZ #11521]
34961         * math/s_ctan.c: Include <float.h>.
34962         (__ctan): Avoid internal overflow or cancellation in calculating
34963         denominator.
34964         * math/s_ctanf.c: Likewise.
34965         * math/s_ctanl.c: Likewise.
34966         * math/s_ctanh.c: Likewise.
34967         * math/s_ctanhf.c: Likewise.
34968         * math/s_ctanhl.c: Likewise.
34969         * math/libm-test.inc (ctan_test): Add more tests.
34970         (ctanh_test): Likewise.
34971         * sysdeps/i386/fpu/libm-test-ulps: Update.
34972         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34973
34974 2012-04-09  Andreas Jaeger  <aj@suse.de>
34975
34976         [BZ #6894]
34977         * manual/filesys.texi (Directory Entries): Mention that d_namlen
34978         is an optional BSD extension.
34979
34980         [BZ #10254]
34981         * manual/stdio.texi (Opening Streams): Document additional fopen
34982         parameters.
34983
34984 2012-04-09  Roland McGrath  <roland@hack.frob.com>
34985
34986         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
34987         %eax without telling the compiler.
34988
34989 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
34990
34991         [BZ # 13963]
34992         * manual/install.texi: Use sourceware.org.
34993
34994 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
34995
34996         [BZ #13873]
34997         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
34998         (__ieee754_pow): Generate overflow and underflow using huge*huge
34999         and tiny*tiny rather than just returning constant infinity or zero
35000         for large exponents.
35001         * math/libm-test.inc (pow_test): Require overflow exceptions for
35002         applicable cases of large exponents.
35003
35004         [BZ #706]
35005         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35006         (__ieee754_pow): Use iterative multiplication algorithm only for
35007         integer exponents with absolute value below 1024.  Check for odd
35008         integer exponents when using algorithm for real exponents.
35009         * math/libm-test.inc (pow_test): Add more tests.
35010         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35011
35012 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35013
35014         [BZ #13705]
35015         * math/libm-test.inc (exp_test): Do not allow overflow exception
35016         on underflow test.
35017
35018 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35019
35020         [BZ #13705]
35021         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35022         instead of __kernel_standard_f.
35023
35024 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35025
35026         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35027         * sysdeps/x86_64/memset_chk.S: Likewise.
35028
35029 2012-04-08  Andreas Jaeger  <aj@suse.de>
35030
35031         [BZ #10153]
35032         * manual/startup.texi (Environment Access): Describe return value
35033         for putenv and setenv.
35034
35035         [BZ #6895]
35036         * manual/filesys.texi (Directory Entries): Add description for
35037         DT_LNK.
35038
35039         [BZ #6890]
35040         * manual/filesys.texi (Directory Entries): Clarify that it's file
35041         system not operating system in the description of DT_UNKNOWN.
35042
35043         [BZ #6578]
35044         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35045
35046 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35047
35048         [BZ #6649]
35049         * manual/llio.texi (Opening and Closing Files): Add cross
35050         reference to explain mode argument.
35051
35052 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35053
35054         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35055         * sysdeps/x86_64/memset_chk.S: Likewise.
35056
35057 2012-04-07  David S. Miller  <davem@davemloft.net>
35058
35059         * elf/elf.h (R_SPARC_WDISP10): Define.
35060         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35061         R_SPARC_SIZE32.
35062         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35063         R_SPARC_SIZE64 and R_SPARC_H34.
35064
35065 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35066
35067         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35068         conditions and remove no longer applicable assertion.
35069
35070 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35071
35072         * bits/byteswap.h: Include <features.h>.
35073         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35074         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35075
35076 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35077
35078         * bits/byteswap.h (__bswap_16): Removed.
35079         Include <bits/byteswap-16.h> to get __bswap_16.
35080         * sysdeps/i386/bits/byteswap.h: Likewise.
35081         * sysdeps/s390/bits/byteswap.h: Likewise.
35082         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35083         * bits/byteswap-16.h: New file.
35084         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35085         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35086         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35087         * string/Makefile (headers): Add bits/byteswap-16.h.
35088
35089 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35090
35091         [BZ #13895]
35092         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35093         extra indirection.
35094         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35095         * nss/tst-nss-static.c: New.
35096
35097 2012-04-06  Robert Millan  <rmh@gnu.org>
35098
35099         [BZ #6486]
35100         * manual/llio.texi (File Position Primitive): lseek
35101         refers to WHENCE when it really means OFFSET.
35102
35103 2012-04-06  Andreas Jaeger  <aj@suse.de>
35104
35105         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35106         strncmp declarations.
35107
35108         * abilist/libc.abilist: Add __poll and __ppoll.
35109
35110 2012-04-05  David S. Miller  <davem@davemloft.net>
35111
35112         * scripts/check-local-headers.sh: Accept a host triplet in the
35113         path matched by the exclude regexp.
35114
35115         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35116         definition.
35117         * sysdeps/powerpc/powerpc32/dl-machine.h
35118         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35119         * sysdeps/s390/s390-32/dl-machine.h
35120         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35121         * sysdeps/sparc/sparc32/dl-machine.h
35122         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35123         * sysdeps/sparc/sparc64/dl-machine.h
35124         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35125
35126         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35127         lazy binding.
35128         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35129         undefined symbol errors.
35130
35131         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35132         DT_NEEDED entries.
35133
35134 2012-04-05  Michael Matz  <matz@suse.de>
35135
35136         [BZ #13592]
35137         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35138
35139 2012-04-05  Andreas Jaeger  <aj@suse.de>
35140
35141         [BZ #13908]
35142         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35143         comment.
35144
35145 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35146
35147         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35148         which ROUND is no valid rounding mode.
35149
35150 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35151
35152         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35153         read again.
35154         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35155
35156 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35157
35158         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35159         an exception using FPU order intentionally.
35160
35161 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35162
35163         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35164         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35165         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35166         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35167
35168 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35169
35170         [BZ #12340]
35171         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35172         EINVAL when BUFLEN is too smal.
35173
35174 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35175
35176         [BZ #13553]
35177         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35178         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35179
35180 2012-04-03  Andreas Jaeger  <aj@suse.de>
35181
35182         [BZ #13938]
35183         * manual/setjmp.texi (System V contexts): Fix sentence.
35184
35185         [BZ #13926]
35186         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35187         New macro for this case.
35188         [!__GNUC__] (__bswap_64): New inline function for this case.
35189         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35190         * bits/byteswap.h: Likewise.
35191         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35192         ull, guard with __GLIBC_HAVE_LONG_LONG.
35193
35194         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35195         __GLIBC_HAVE_LONG_LONG.
35196
35197         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35198         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35199
35200 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35201
35202         [BZ #13691]
35203         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35204         inptr and inend, rather than using last_ch.
35205
35206 2012-04-02  David S. Miller  <davem@davemloft.net>
35207
35208         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35209         * stdio-common/printf-parse.h (read_int): Change return type to
35210         'int', return -1 on INT_MAX overflow.
35211         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35212         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35213         overflows INT_MAX.  Check for overflow of in-format-string precision
35214         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35215         SIZE_MAX not INT_MAX for integer overflow test.
35216         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35217         skip the construct in the format string but do not record anything.
35218         * stdio-common/bug22.c: Adjust to test both width/prevision
35219         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35220         explicitly for proper errno values.
35221
35222 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35223
35224         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35225         CHAR_MAX.
35226         * string/test-strcmp.c [! WIDE]: Likewise.
35227         * time/tst-mktime2.c: Likewise for INT_MAX.
35228         * string/test-string.h: #include <sys/param.h> for MIN.
35229
35230         * csu/init-first.c (__libc_init_first): Call __ctype_init.
35231         * sysdeps/i386/init-first.c (init): Likewise.
35232         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
35233         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
35234         * sysdeps/sh/init-first.c (init): Likewise.
35235
35236 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
35237
35238         * po/ru.po: Update from translation team.
35239         * po/vi.po: Likewise.
35240
35241 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35242
35243         * resolv/nss_dns/dns-host.c: Merge copyright years.
35244
35245 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35246
35247         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
35248         Optimize memcpy with prefetch if
35249         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
35250         src, dst pointers have unequal 16 byte alignments.
35251
35252 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35253
35254         [BZ #13928]
35255         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
35256         from a CNAME entry and return the minimum ttl for the query.
35257         (gaih_getanswer_slice): Likewise.
35258
35259 2012-03-30  Jeff Law  <law@redhat.com>
35260
35261         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
35262         due to long keys.
35263         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
35264         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
35265
35266         * resolv/nss_dns/dns-host.c: Update copyright year.
35267
35268 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
35269
35270         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
35271         requests to save a system call.  Fix check that all bytes are sent.
35272
35273         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
35274         comments for sendmmsg.
35275
35276 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
35277
35278         [BZ #13691]
35279         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
35280         with only 1 character between 0x0041 and 0x01b0.
35281         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
35282         * wcsmbs/tst-mbsnrtowcs.c: New file.
35283
35284 2012-03-29  David S. Miller  <davem@davemloft.net>
35285
35286         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
35287         small copies by hand.
35288
35289 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35290
35291         [BZ #13761]
35292         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
35293         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
35294         group memberships.
35295
35296 2012-03-28  David S. Miller  <davem@davemloft.net>
35297
35298         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
35299         that branches into memcpy.
35300         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
35301         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
35302         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
35303         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
35304         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
35305         bits.
35306         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
35307         implementation too.
35308         * sysdeps/sparc/mempcpy.S: New file.
35309
35310         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
35311         the IFUNC routine in the libc case.
35312         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
35313
35314         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
35315         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
35316         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
35317         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
35318         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
35319         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
35320         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
35321         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
35322
35323         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
35324         loop to 256 bytes instead of 64 bytes and fix test signedness.
35325
35326         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
35327         * sysdeps/sparc/sparc32/Makefile: rather than here...
35328         * sysdeps/sparc/sparc64/Makefile: and here.
35329
35330 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
35331
35332         * malloc/mallocbug.c: Avoid warnings about unused variables.
35333
35334 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35335
35336         [BZ #13760]
35337         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
35338         in the right place. Discard and retry query if response is
35339         larger than input buffer size.
35340
35341 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
35342
35343         [BZ #369]
35344         [BZ #2678]
35345         [BZ #3866]
35346         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
35347         x for large integer exponent.
35348         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
35349         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
35350         sign of result as needed afterwards.
35351         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
35352         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
35353         result for underflowing pow the same as for overflow.
35354         (__kernel_standard_l): Handle powl overflow and underflow here
35355         rather than calling __kernel_standard.
35356         * math/libm-test.inc (pow_test): Add more tests.
35357
35358         [BZ #3868]
35359         [BZ #13879]
35360         [BZ #13910]
35361         [BZ #13911]
35362         [BZ #13912]
35363         [BZ #13913]
35364         [BZ #13915]
35365         [BZ #13916]
35366         [BZ #13917]
35367         [BZ #13918]
35368         [BZ #13919]
35369         [BZ #13920]
35370         [BZ #13921]
35371         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
35372         * sysdeps/ieee754/k_standard.c: Include <float.h>.
35373         (__kernel_standard_l): New function.
35374         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
35375         __kernel_standard.
35376         * math/w_acosl.c (__acosl): Likewise.
35377         * math/w_asinl.c (__asinl): Likewise.
35378         * math/w_atan2l.c (__atan2l): Likewise.
35379         * math/w_atanhl.c (__atanhl): Likewise.
35380         * math/w_coshl.c (__coshl): Likewise.
35381         * math/w_exp10l.c (__exp10l): Likewise.
35382         * math/w_exp2l.c (__exp2l): Likewise.
35383         * math/w_fmodl.c (__fmodl): Likewise.
35384         * math/w_hypotl.c (__hypotl): Likewise.
35385         * math/w_j0l.c (__j0l, __y0l): Likewise.
35386         * math/w_j1l.c (__j1l, __y1l): Likewise.
35387         * math/w_jnl.c (__jnl, __ynl): Likewise.
35388         * math/w_lgammal.c (__lgammal): Likewise.
35389         * math/w_log10l.c (__log10l): Likewise.
35390         * math/w_log2l.c (__log2l): Likewise.
35391         * math/w_logl.c (__logl): Likewise.
35392         * math/w_powl.c (__powl): Likewise.
35393         * math/w_remainderl.c (__remainderl): Likewise.
35394         * math/w_scalbl.c (sysv_scalbl): Likewise.
35395         * math/w_sinhl.c (__sinhl): Likewise.
35396         * math/w_sqrtl.c (__sqrtl): Likewise.
35397         * math/w_tgammal.c (__tgammal): Likewise.
35398         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
35399         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
35400         * math/libm-test.inc (acos_test): Add more tests.
35401         (acosh_test): Likewise.
35402         (asin_test): Likewise.
35403         (atanh_test): Likewise.
35404         (exp_test): Likewise.
35405         (exp10_test): Likewise.
35406         (exp2_test): Likewise.
35407         (expm1_test): Likewise.
35408         (lgamma_test): Likewise.
35409         (log_test): Likewise.
35410         (log10_test): Likewise.
35411         (log1p_test): Likewise.
35412         (log2_test): Likewise.
35413         (pow_test): Do not allow some spurious overflow exceptions.
35414         (sqrt_test): Add more tests.
35415         (tgamma_test): Likewise.
35416         (y0_test): Likewise.
35417         (y1_test): Likewise.
35418         (yn_test): Likewise.
35419
35420 2012-03-27  Anton Blanchard  <anton@samba.org>
35421
35422         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
35423         MAP_HUGETLB.
35424         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
35425         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
35426         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
35427
35428 2012-03-27  David S. Miller  <davem@davemloft.net>
35429
35430         * conform/Makefile: Run run-conformtest.sh using $(BASH).
35431
35432         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
35433         have-as-vis3 check.
35434
35435 2012-03-27  Andreas Jaeger  <aj@suse.de>
35436
35437         * sysdeps/x86_64/elf/configure.in: Moved to ...
35438         * sysdeps/x86_64/configure.in: ... here.
35439         * sysdeps/x86_64/elf/start.S: Moved to ...
35440         * sysdeps/x86_64/start.S: ... here.
35441         * sysdeps/x86_64/elf/configure: Delete.
35442
35443         * sysdeps/x86_64/configure.in: Merge contents from
35444         sysdeps/i386/configure.in (without i686 check).
35445
35446         * sysdeps/i386/elf/Versions: Merge into ...
35447         * sysdeps/i386/Versions: ... this.
35448         * sysdeps/i386/elf/Versions: Delete file.
35449         * sysdeps/i386/elf/start.S: Moved to ...
35450         * sysdeps/i386/start.S: ...here.
35451         * sysdeps/i386/elf/configure.in: Merge into...
35452         * sysdeps/i386/configure.in: ...here.
35453         * sysdeps/i386/elf/configure.in: Delete file.
35454         * sysdeps/i386/elf/configure: Delete file.
35455
35456         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
35457         * debug/backtracesyms.c: ... here.
35458         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
35459         * debug/backtracesymsfd.c: ... here.
35460         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
35461         * sysdeps/generic/ifunc-sel.h: ... here.
35462
35463         * sysdeps/unix/i386/start.c: Delete file.
35464         * sysdeps/unix/sparc/start.c: Delete file.
35465         * sysdeps/unix/start.c: Delete file.
35466
35467         * sysdeps/sh/elf/configure.in: Moved to ...
35468         * sysdeps/sh/configure.in: ... here.
35469         * sysdeps/sh/elf/start.S: Moved to ...
35470         * sysdeps/sh/start.S: ... here.
35471         * sysdeps/sh/elf/configure: Delete file.
35472
35473         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
35474         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
35475         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
35476         * sysdeps/powerpc/powerpc64/entry.h: ... here.
35477         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
35478         * sysdeps/powerpc/powerpc64/start.S: here.
35479         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
35480         * sysdeps/powerpc/powerpc64/Makefile: ... this.
35481         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
35482         * sysdeps/powerpc/powerpc64/configure.in: ... this.
35483         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
35484
35485         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
35486         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
35487         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
35488         * sysdeps/powerpc/powerpc32/start.S: ... here.
35489         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
35490         * sysdeps/powerpc/powerpc32/configure.in: ... this.
35491         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
35492
35493         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
35494         * sysdeps/powerpc/ifunc-sel.h: ... here.
35495         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
35496         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
35497
35498         * sysdeps/sparc/elf/configure.in: Moved to ...
35499         * sysdeps/sparc/configure.in: ... here.
35500         * sysdeps/sparc/elf/configure: Delete file.
35501         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
35502         * sysdeps/sparc/sparc32/start.S: ... here.
35503         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
35504         * sysdeps/sparc/sparc64/start.S: ... here.
35505         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
35506         * sysdeps/sparc/sparc32/Makefile: ... this.
35507         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
35508         * sysdeps/sparc/sparc64/Makefile: ... this.
35509
35510         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
35511         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
35512         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
35513         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
35514         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
35515         * sysdeps/s390/s390-32/setjmp.S: ... here.
35516         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
35517         * sysdeps/s390/s390-32/configure.in: ... here.
35518         * sysdeps/s390/s390-32/elf/configure: Delete file.
35519         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
35520         * sysdeps/s390/s390-32/start.S: ... here.
35521
35522         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
35523         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
35524         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
35525         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
35526         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
35527         * sysdeps/s390/s390-64/setjmp.S: ... here.
35528         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
35529         * sysdeps/s390/s390-64/configure.in: ... here
35530         * sysdeps/s390/s390-64/elf/configure: Delete file.
35531         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
35532         * sysdeps/s390/s390-64/start.S: ... here.
35533         * sysdeps/s390/s390-64/elf/configure: Delete.
35534
35535         * configure.in: Remove support for elf directories in sysdeps.
35536
35537         * configure: Regenerated.
35538         * sysdeps/i386/configure: Regenerated.
35539         * sysdeps/powerpc/powerpc32/configure: Regenerated.
35540         * sysdeps/powerpc/powerpc64/configure: Regenerated.
35541         * sysdeps/s390/s390-32/configure: Regenerated.
35542         * sysdeps/s390/s390-64/configure: Regenerated.
35543         * sysdeps/sh/configure: Regenerated.
35544         * sysdeps/sparc/configure: Regenerated.
35545         * sysdeps/x86_64/configure: Regenerated.
35546
35547 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
35548
35549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35550
35551         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
35552         denormal result into account.
35553
35554 2012-03-25  Roland McGrath  <roland@hack.frob.com>
35555
35556         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
35557         Reported by Allan McRae <allan@archlinux.org>.
35558
35559 2012-03-23  Jeff Law  <law@redhat.com>
35560
35561         * nss/getnssent.c (__nss_getent): Fix typo.
35562
35563 2012-03-23  David S. Miller  <davem@davemloft.net>
35564
35565         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35566
35567 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
35568
35569         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
35570         to pad to uint64_t for each field.
35571         (dl_tls_index): Replace unsigned long with uint64_t.
35572
35573 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
35574         Paul Pluzhnikov  <ppluzhnikov@google.com>
35575
35576         [BZ #6528]
35577         * grp/Makefile (otherlibs): Don't set it.
35578         * inet/Makefile (otherlibs): Likewise.
35579         * login/Makefile (otherlibs): Likewise.
35580         * nscd/Makefile (otherlibs): Likewise.
35581         * posix/Makefile (otherlibs): Likewise.
35582         * pwd/Makefile (otherlibs): Likewise.
35583         * rt/Makefile (otherlibs): Likewise.
35584         * sunrpc/Makefile (otherlibs): Likewise.
35585         * nss/Makefile (otherlibs): Likewise.
35586         Add libnss_files to routines and static-only-routines.
35587         ($(objpfx)getent): Remove rule.
35588         * resolv/Makefile: Add libnss_dns and libresolv to routines and
35589         static-only-routines.
35590
35591 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35592
35593         [BZ #13892]
35594         * math/s_cexp.c: Include <float.h>.
35595         (__cexp): Handle exp result overflowing not necessarily
35596         overflowing both real and imaginary parts of result.
35597         * math/s_cexpf.c: Likewise.
35598         * math/s_cexpl.c: Likewise.
35599         * math/libm-test.inc (cexp_test): Add more tests.
35600         * sysdeps/i386/fpu/libm-test-ulps: Update.
35601         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35602
35603 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35604
35605         * include/link.h (ELFW): New macro.
35606         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
35607         Replace ELF64_R_TYPE with ELFW(R_TYPE).
35608
35609 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35610
35611         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
35612         with uint64_t.
35613
35614 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35615
35616         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
35617         declaration.
35618         (struct La_x32_retval): Likewise.
35619
35620 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35621
35622         * sysdeps/x86_64/preconfigure.in: New file.
35623         * sysdeps/x86_64/preconfigure: New generated file.
35624
35625 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35626
35627         [BZ #13824]
35628         * math/e_exp2l.c: Include <float.h>.
35629         (__ieee754_exp2l): Handle overflow and underflow cases
35630         separately.  Only pass fractional part of argument to
35631         __ieee754_expl.
35632         * math/libm-test.inc (exp2_test): Add more tests.
35633
35634         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
35635         negating x to take absolute value.
35636         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35637         Likewise.
35638         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35639         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
35640         Likewise.
35641         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
35642         computing low part if x was negated.
35643         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35644
35645 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35646
35647         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
35648         la_x32_gnu_pltexit.
35649         (pltexit): Cast int_retval to ptrdiff_t.
35650         * elf/tst-auditmod3b.c: Likewise.
35651         * elf/tst-auditmod4b.c: Likewise.
35652         * elf/tst-auditmod5b.c: Likewise.
35653         * elf/tst-auditmod6b.c: Likewise.
35654         * elf/tst-auditmod6c.c: Likewise.
35655         * elf/tst-auditmod7b.c: Likewise.
35656
35657         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
35658         and x32_gnu_pltexit.
35659
35660         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
35661         __ELF_NATIVE_CLASS.
35662         (La_x32_regs): New macro.
35663         (La_x32_retval): Likewise.
35664         (la_x32_gnu_pltenter): New function prototype.
35665         (la_x32_gnu_pltexit): Likewise.
35666
35667 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
35668
35669         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
35670         exponent.
35671
35672         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35673
35674         * configure.in (libc_cv_cc_nofma): Check for option to disable
35675         generation of FMA instructions.
35676         * configure: Regenerate.
35677         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
35678         * sysdeps/ieee754/dbl-64/Makefile: New file.
35679         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35680         Remove brandred-fma4.
35681         (CFLAGS-brandred-fma4.c): Remove.
35682         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
35683         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
35684         define.
35685         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
35686         define.
35687
35688 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35689
35690         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
35691         LLONG_MAX != LONG_MAX.
35692         (_itoa_word): Use _ITOA_WORD_TYPE on value.
35693         (_fitoa_word): Likewise.
35694         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
35695         LLONG_MAX != LONG_MAX.
35696         * stdio-common/_itowa.h: Include <_itoa.h>.
35697         (_itowa_word): Use _ITOA_WORD_TYPE on value.
35698         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
35699         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
35700         only if not defined.
35701         (_ITOA_WORD_TYPE): Likewise.
35702         (_itoa_word): Use _ITOA_WORD_TYPE on value.
35703         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
35704
35705 2012-03-21  David S. Miller  <davem@davemloft.net>
35706
35707         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35708
35709 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35710
35711         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
35712         of x86_64 when setting libc_cv_slibdir, libdir and
35713         libc_cv_localedir.
35714         * sysdeps/unix/sysv/linux/configure: Regenerated.
35715
35716 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35717
35718         * manual/lang.texi (Old Varargs): Remove section.
35719         (How Variadic): Update menu.
35720         (va_start): Do not mention varargs.h.
35721
35722 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
35723             Joseph Myers  <joseph@codesourcery.com>
35724
35725         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
35726         link test.
35727         * configure: Regenerated.
35728
35729 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
35730
35731         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
35732         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
35733         conformtest.pl
35734
35735 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35736
35737         * NOTES: Remove.
35738         * Makefile (files-for-dist): Remove NOTES.
35739         (NOTES): Remove rule.
35740         * README: Don't refer to NOTES.
35741         * manual/creature.texi: Don't include macros.texi.
35742         * manual/intro.texi (creature.texi): Remove comment referring to
35743         NOTES.
35744
35745         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
35746         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
35747         * configure: Regenerated.
35748         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
35749         LIBC_TRY_CC_OPTION.
35750         (libc_cv_as_i686): Likewise.
35751         (libc_cv_cc_avx): Likewise.
35752         (libc_cv_cc_sse2avx): Likewise.
35753         (libc_cv_cc_fma4): Likewise.
35754         (libc_cv_cc_novzeroupper): Likewise.
35755         * sysdeps/i386/configure: Regenerated.
35756
35757         [BZ #13883]
35758         * sysdeps/i386/fpu/s_cexp.S: Remove.
35759         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
35760         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
35761         * math/libm-test.inc (cexp_test): Add more tests.
35762         * sysdeps/i386/fpu/libm-test-ulps: Update.
35763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35764
35765 2012-03-21  Allan McRae  <allan@archlinux.org>
35766
35767         * timezone/Makefile: Do not install iso3166.tab and zone.tab
35768
35769 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35770
35771         [BZ #13871]
35772         * math/w_exp2.c: Do not include <float.h>.
35773         (o_threshold, u_threshold): Remove.
35774         (__exp2): Calculate result before checking finiteness and calling
35775         __kernel_standard.
35776         * math/w_exp2f.c: Likewise.
35777         * math/w_exp2l.c: Likewise.
35778         * math/libm-test.inc (exp2_test): Require overflow exception for
35779         1e6 input.
35780
35781         [BZ #3866]
35782         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
35783         range of signed 64-bit integers before using fistpll.  Remove
35784         checks for whether integers fit in mantissa bits.
35785         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
35786         the range of signed 32-bit integers before using fistpl.  Remove
35787         checks for whether integers fit in mantissa bits.
35788         * sysdeps/i386/fpu/e_powl.S (p64): New object.
35789         (__ieee754_powl): Test for y outside the range of signed 64-bit
35790         integers before using fistpll.  Reduce 64-bit values to 63-bit
35791         ones as needed.
35792         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
35793         divide-by-zero is raised for zero to large negative powers.
35794         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
35795         (__ieee754_powl): Test for y outside the range of signed 64-bit
35796         integers before using fistpll.  Reduce 64-bit values to 63-bit
35797         ones as needed.
35798         * math/libm-test.inc (pow_test): Add more tests.
35799
35800 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35801
35802         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
35803         <stdio-common/_itoa.h>.
35804         * debug/segfault.c: Likewise.
35805         * elf/dl-cache.c: Likewise.
35806         * elf/dl-minimal.c: Likewise.
35807         * elf/dl-misc.c: Likewise.
35808         * elf/dl-sysdep.c: Likewise.
35809         * elf/dl-version.c: Likewise.
35810         * elf/rtld.c: Likewise.
35811         * hurd/hurdsock.c: Likewise.
35812         * hurd/lookup-retry.c: Likewise.
35813         * malloc/malloc.c: Likewise.
35814         * malloc/mtrace.c: Likewise.
35815         * nscd/nscd_getgr_r.c: Likewise.
35816         * nscd/nscd_getpw_r.c: Likewise.
35817         * nscd/nscd_getserv_r.c: Likewise.
35818         * posix/getopt_init.c: Likewise.
35819         * posix/wordexp.c: Likewise.
35820         * stdio-common/_itoa.c: Likewise.
35821         * stdio-common/printf_fphex.c: Likewise.
35822         * stdio-common/vfprintf.c: Likewise.
35823         * string/_strerror.c: Likewise.
35824         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
35825         * sysdeps/i386/i686/hp-timing.h: Likewise.
35826         * sysdeps/mach/_strerror.c: Likewise.
35827         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
35828         * sysdeps/mach/hurd/sethostid.c: Likewise.
35829         * sysdeps/mach/hurd/xmknodat.c: Likewise.
35830         * sysdeps/mach/xpg-strerror.c: Likewise.
35831         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
35832         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
35833         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
35834         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
35835         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
35836         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
35837         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
35838         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
35839         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
35840         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
35841         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
35842         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
35843         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
35844         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
35845         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
35846         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
35847         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
35848         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
35849         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35850         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35851         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
35852
35853         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
35854
35855         * stdio-common/_itoa.h: Moved to ...
35856         * sysdeps/generic/_itoa.h: Here.
35857
35858         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
35859
35860         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
35861         instead of "_itoa.h" and "_itowa.h".
35862         * stdio-common/vfprintf.: Likewise.
35863
35864 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35865
35866         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
35867         <bits/wordsize.h>.
35868         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
35869         (__signbit): Likwise.
35870         (llrintf): Likwise.
35871         (llrint): Likwise.
35872
35873 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35874
35875         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
35876         __WORDSIZE != 64.
35877
35878 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
35879
35880         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
35881         OVERFLOW_EXCEPTION_OK.
35882         * math/libm-test.inc ("Philosophy"): Update comment about
35883         exception testing.
35884         (OVERFLOW_EXCEPTION): Define.
35885         (OVERFLOW_EXCEPTION_OK): Likewise.
35886         (INVALID_EXCEPTION_OK): Renumber.
35887         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
35888         (IGNORE_ZERO_INF_SIGN): Likewise.
35889         (test_exceptions): Handle FE_OVERFLOW.
35890         (exp10_test): Expect overflow exceptions.
35891         (exp2_test): Likewise.
35892         (expm1_test): Likewise.
35893         (nextafter_test): Likewise.
35894         (pow_test): Likewise.
35895         (scalbn_test): Likewise.
35896         (scalbln_test): Likewise.
35897
35898 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35899
35900         * sysdeps/x86_64/bits/atomic.h
35901         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
35902         64bit integer.
35903         (atomic_exchange_acq): Likewise.
35904         (__arch_exchange_and_add_body): Likewise.
35905         (__arch_add_body): Likewise.
35906         (atomic_add_negative): Likewise.
35907         (atomic_add_zero): Likewise.
35908
35909 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35910
35911         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
35912         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
35913
35914 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35915
35916         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
35917         Check __x86_64__ instead of __WORDSIZE.
35918
35919 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35920
35921         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
35922
35923 2012-03-19  David S. Miller  <davem@davemloft.net>
35924
35925         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35926
35927         * sysdeps/sparc/fpu/fenv_private.h: New file.
35928         * sysdeps/sparc/fpu/math_private.h: Use it.
35929         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
35930         Remove.
35931         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
35932         (libc_feholdexcept_setroundl): Remove.
35933         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
35934         Remove.
35935         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
35936         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
35937
35938 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35939
35940         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
35941         int64_t instead of long int.
35942         (INSERT_WORDS64): Likwise.
35943
35944 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
35945
35946         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
35947         _Unwind_GetCFA return to _Unwind_Ptr first.
35948
35949 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
35950
35951         [BZ #13629]
35952         * math/s_clog.c: Include <float.h>.
35953         (__clog): Scale large or subnormal inputs.
35954         * math/s_clogf.c: Likewise.
35955         * math/s_clogl.c: Likewise.
35956         * math/s_clog10.c: Include <float.h>.
35957         (M_LOG10_2): Define.
35958         (__clog10): Scale large or subnormal inputs.
35959         * math/s_clog10f.c: Likewise.
35960         * math/s_clog10l.c: Likewise.
35961         * math/libm-test.inc (clog_test): Add more tests.
35962         (clog10_test): Likewise.
35963         * sysdeps/i386/fpu/libm-test-ulps: Update.
35964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35965
35966         [BZ #11451]
35967         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
35968         x and y.
35969         * math/libm-test.inc (atan2_test): Add another test.
35970
35971         * Makerules (common-objdir-compile): Remove.
35972         * sysdeps/unix/Makefile (config-generated): Do not add
35973         $(unix-generated) to variable.
35974         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
35975         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
35976         Remove rule.
35977         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
35978         Likewise.
35979         [generic bits/local_lim.h] (before-compile): Do not append to
35980         variable.
35981         [generic bits/local_lim.h] (common-generated): Likewise.
35982         [generic sys/param.h] (before-compile): Do not append to variable.
35983         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
35984         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
35985         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
35986         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
35987         include.
35988         [generic sys/param.h] (sys/param.h-includes): Remove variable.
35989         [generic sys/param.h] (sys/param.h-includes): Remove rule.
35990         [generic sys/param.h] ($(addprefix
35991         $(common-objpfx),$(sys/param.h-includes))): Likewise.
35992         [generic sys/param.h] (common-generated): Do not append to
35993         variable.
35994         [generic sys/param.h] (sysdep_headers): Likewise.
35995         [generic bits/errno.h] (before-compile): Do not append to
35996         variable.
35997         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
35998         rule.
35999         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36000         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36001         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36002         [generic bits/errno.h] (common-generated): Do not append to
36003         variable.
36004         [generic bits/ioctls.h] (before-compile): Do not append to
36005         variable.
36006         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36007         rule.
36008         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36009         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36010         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36011         rule.
36012         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36013         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36014         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36015         [generic bits/ioctls.h] (common-generated): Do not append to
36016         variable.
36017         [generic sys/syscall.h] (syscall.h): Remove variable.
36018         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36019         rule.
36020         [generic sys/syscall.h] (before-compile): Do not append to
36021         variable.
36022         [generic sys/syscall.h] (common-generated): Likewise.
36023         * sysdeps/unix/errnos-tmpl.c: Remove file.
36024         * sysdeps/unix/errnos.awk: Likewise.
36025         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36026         * sysdeps/unix/ioctls.awk: Likewise.
36027         * sysdeps/unix/mk-local_lim.c: Likewise.
36028         * sysdeps/unix/snarf-ioctls: Likewise.
36029
36030 2012-03-19  Richard Henderson  <rth@twiddle.net>
36031
36032         * sysdeps/i386/fpu/fenv_private.h: New file.
36033         * sysdeps/i386/fpu/math_private.h: Use it.
36034         (math_opt_barrier, math_force_eval): Remove.
36035         (libc_feholdexcept_setround_53bit): Remove.
36036         (libc_feupdateenv_53bit): Remove.
36037         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36038         (math_opt_barrier, math_force_eval): Remove.
36039         (libc_feholdexcept): Remove.
36040         (libc_feholdexcept_setround): Remove.
36041         (libc_fetestexcept, libc_fesetenv): Remove.
36042         (libc_feupdateenv_test): Remove.
36043         (libc_feupdateenv, libc_feholdsetround): Remove.
36044         (libc_feresetround): Remove.
36045
36046         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36047         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36048
36049         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36050         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36051         (libc_feupdateenv_testl): New.
36052         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36053         (libc_feupdateenv_testf): New.
36054         (libc_feupdateenv): Use libc_feupdateenv_test.
36055         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36056         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36057
36058         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36059         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36060         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36061         (libc_feresetround_noex): New.
36062         (libc_feresetround_noexf): New.
36063         (libc_feresetround_noexl): New.
36064         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36065         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36066         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36067         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36068         SET_RESTORE_ROUND.
36069         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36070         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36071         (__cos): Likewise.
36072         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36073         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36074         SET_RESTORE_ROUND_NOEX.
36075         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36076         SET_RESTORE_ROUND_NOEXF.
36077         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36078         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36079         (libc_feholdsetroundf): New.
36080         (libc_feresetround, libc_feresetroundf): New.
36081
36082         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36083         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36084         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36085
36086         * sysdeps/generic/math_private.h: Include <fenv.h>.
36087         (default_libc_feholdexcept): New.
36088         (default_libc_feholdexcept_setround): New.
36089         (default_libc_fesetenv, default_libc_feupdateenv): New.
36090         (libc_feholdexcept): Only define if undefined.
36091         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36092         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36093         (libc_feholdexcept_setroundl): Likewise.
36094         (libc_feholdexcept_setround_53bit): Likewise.
36095         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36096         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36097         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36098         (libc_feupdateenv_53bit): Likewise.
36099         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36100         (libc_feholdexcept): Convert from macro to inline function.
36101         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36102         (libc_fesetenv, libc_feupdateenv): Likewise.
36103
36104         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36105         not previously defined.
36106         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36107         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36108         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36109         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36110         * sysdeps/ieee754/flt-32/math_private.h: New file.
36111         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36112         math_private.h below SET_FLOAT_WORD.
36113         (__isnan, __isinf_ns, __finite): Remove.
36114         (__isnanf, __isinf_nsf, __finitef): Remove.
36115
36116 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36117
36118         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36119
36120 2012-03-17  David S. Miller  <davem@davemloft.net>
36121
36122         [BZ #6471]
36123         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36124         for 2.16.
36125
36126 2012-03-16  David S. Miller  <davem@davemloft.net>
36127
36128         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36129         warnings.
36130
36131         [BZ #6471]
36132         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36133         properly.
36134         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36135         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36136         sysdep_routines when subdir is sysvipc.
36137         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36138         __getshmlba helper.
36139
36140         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36141
36142 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36143
36144         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36145         [__LP64__].
36146
36147 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36148
36149         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36150         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36151         (__lround): Renamed to ...
36152         (__llround): This.  Replace long int with long long int.
36153         Define lround functions as aliases of llround functions.
36154         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36155
36156 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36157
36158         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36159         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36160         adresses to uintptr_t.  Replace "long int" and "unsigned long
36161         int" with "greg_t" on va_arg.
36162
36163 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36164
36165         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36166         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36167
36168         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36169         Move e_machine check before EI_CLASS check.  Handle x32
36170         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36171         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36172         SKIP_EM_IA_64 and include
36173         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36174
36175         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36176         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36177         (add_system_dir): New macro.
36178
36179         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36180         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36181
36182 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36183
36184         [BZ #2551]
36185         [BZ #2552]
36186         [BZ #2553]
36187         [BZ #2554]
36188         [BZ #2562]
36189         [BZ #2563]
36190         [BZ #2565]
36191         [BZ #2566]
36192         [BZ #2576]
36193         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36194         (y0): Likewise.
36195         * math/w_j0f.c (j0f): Likewise.
36196         (y0f): Likewise.
36197         * math/w_j0l.c (__j0l): Likewise.
36198         (__y0l): Likewise.
36199         * math/w_j1.c (j1): Likewise.
36200         (y1): Likewise.
36201         * math/w_j1f.c (j1f): Likewise.
36202         (y1f): Likewise.
36203         * math/w_j1l.c (__j1l): Likewise.
36204         (__y1l): Likewise.
36205         * math/w_jn.c (jn): Likewise.
36206         (yn): Likewise.
36207         * math/w_jnf.c (jnf): Likewise.
36208         (ynf): Likewise.
36209         * math/w_jnl.c (__jnl): Likewise.
36210         (__ynl): Likewise.
36211         * math/libm-test.inc (j0_test): Add more tests.
36212         (j1_test): Likewise.
36213         (jn_test): Likewise.  Add trailing semicolon to existing test.
36214         (y0_test): Likewise.
36215         (y1_test): Likewise.
36216         * sysdeps/i386/fpu/libm-test-ulps: Update.
36217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36218
36219         [BZ #13851]
36220         [BZ #13854]
36221         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36222         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36223         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36224         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36225         (__tanl): Set errno for infinite argument.
36226         * sysdeps/i386/fpu/mptan.c: Remove.
36227         * sysdeps/i386/fpu/s_tan.S: Likewise.
36228         * sysdeps/i386/fpu/s_tanl.S: Likewise.
36229         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
36230         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
36231         * math/libm-test.inc (tan_test): Add more tests and enable more
36232         tests for double and long double.
36233         * sysdeps/i386/fpu/libm-test-ulps: Update.
36234         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36235
36236 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
36237
36238         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
36239         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
36240
36241 2012-03-16  Roland McGrath  <roland@hack.frob.com>
36242
36243         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
36244         * configure.in: Use it for both main tree and add-ons.
36245         * configure: Regenerated.
36246
36247 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36248
36249         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
36250
36251 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36252
36253         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
36254         in comment.
36255
36256         [BZ #13851]
36257         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
36258         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
36259         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
36260         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
36261         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
36262         infinite argument.
36263         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
36264         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
36265         != 0 for prec == 2.
36266         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
36267         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
36268         * sysdeps/i386/fpu/s_cosl.S: Likewise.
36269         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
36270         * sysdeps/i386/fpu/s_sinl.S: Likewise.
36271         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
36272         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
36273         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
36274         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
36275         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
36276         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
36277         * math/libm-test.inc (cos_test): Add more tests and enable more
36278         tests for long double.
36279         (sin_test): Likewise.
36280         (sincos_test): Likewise.
36281         * sysdeps/i386/fpu/libm-test-ulps: Update.
36282         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36283
36284 2012-03-16  David S. Miller  <davem@davemloft.net>
36285
36286         * sysdeps/sparc/fpu/math_private.h: New file.
36287
36288 2012-03-15  David S. Miller  <davem@davemloft.net>
36289
36290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
36291         file.
36292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
36293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
36294         file.
36295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
36296         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
36297         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
36298         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
36299         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
36300         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
36301         sysdep routines.
36302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36303
36304         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
36305         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
36306
36307         * sysdeps/sparc/sparc-ifunc.h: New file.
36308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
36309         sparc-ifunc.h
36310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
36311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
36312         Likewise.
36313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
36314         Likewise.
36315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
36316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
36317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
36318         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
36319         Likewise.
36320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
36321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
36322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
36323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
36324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
36325         Likewise.
36326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
36327         Likewise.
36328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
36329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
36330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
36331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
36332         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
36333         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
36334         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
36335         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
36336         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
36337         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
36338         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
36339         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
36340         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
36341         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
36342         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
36343         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
36344         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
36345         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
36346         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
36347         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
36348         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
36349         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
36350         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
36351         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
36352
36353 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36354
36355         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
36356         scaling.
36357         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36358
36359 2012-03-15  Andreas Jaeger  <aj@suse.de>
36360
36361         [BZ #13852]
36362         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
36363         ieee754/flt-32 implementation for sin, cos and sincos.
36364         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
36365         * sysdeps/i386/fpu/s_cosf.S: Likewise.
36366         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
36367         * sysdeps/i386/fpu/s_sinf.S: Likewise.
36368         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
36369         ieee754/flt-32 implementation for tan.
36370
36371         * math/libm-test.inc (cos_test): Enable some large input tests for
36372         float as well
36373         (sin_test): Likewise.
36374         (sincos_test): Likewise.
36375         (tan_test): Add tests for large input.
36376
36377         * sysdeps/i386/fpu/libm-test-ulps: Update.
36378
36379 2012-03-15  Andreas Jaeger  <aj@suse.de>
36380
36381         [BZ #13658]
36382         * math/libm-test.inc (cos_test): Add more test cases.
36383         (sin_test): Likewise.
36384         (sincos_test): Likewise.
36385
36386 2012-03-15  Andreas Jaeger  <aj@suse.de>
36387
36388         [BZ #13837]
36389         * math/libm-test.inc (cos_test): Add a test case for large input
36390         value.
36391         (sin_test): Likewise.
36392         (sincos_test): Likewise.
36393
36394 2012-03-15  Andreas Jaeger  <aj@suse.de>
36395             Joseph Myers  <joseph@codesourcery.com>
36396
36397         [BZ #13658]
36398         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
36399         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
36400         * sysdeps/i386/fpu/branred.c: Likewise.
36401         * sysdeps/i386/fpu/dosincos.c: Likewise.
36402         * sysdeps/i386/fpu/mpa.c: Likewise.
36403         * sysdeps/i386/fpu/s_cos.S: Likewise.
36404         * sysdeps/i386/fpu/s_sin.S: Likewise.
36405         * sysdeps/i386/fpu/s_sincos.S: Likewise.
36406         * sysdeps/i386/fpu/sincos32.c: Likewise.
36407
36408         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
36409         Define.
36410         (libc_feupdateenv_53bit): Define.
36411         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
36412         Define.
36413         (libc_feupdateenv_53bit): Define.
36414
36415         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
36416         53 bit (without extend i386 double precision).
36417
36418         * math/libm-test.inc (sincos_test): Add tests for large input.
36419         (sin): Likewise.
36420         (cos): Likewise.
36421
36422         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
36423
36424 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36425
36426         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36427
36428 2012-03-15  David S. Miller  <davem@davemloft.net>
36429
36430         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
36431         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
36432         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
36433         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
36434         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
36435         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
36436         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
36437         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
36438         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
36439         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
36440         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
36441         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
36442         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
36443         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
36444         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
36445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
36446         file.
36447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
36448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
36449         file.
36450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
36451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
36452         file.
36453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
36454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
36455         file.
36456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
36457         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
36458         fmin/fmax sysdep routines.
36459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36460
36461 2012-03-14  David S. Miller  <davem@davemloft.net>
36462
36463         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
36464         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
36465         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
36466         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
36467         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
36468         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
36469         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
36470         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
36471         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
36472         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
36473         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
36474         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
36475         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
36476         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
36477         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
36478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
36479         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
36480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
36481         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
36482         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
36483         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
36484         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
36485         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
36486         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
36487         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
36488         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
36489         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
36490         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
36491         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
36492         routines.
36493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
36494         file.
36495         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
36496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
36497         file.
36498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
36499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
36500         file.
36501         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
36502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
36503         file.
36504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
36505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
36506         file.
36507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
36508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
36509         file.
36510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
36511         file.
36512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
36513         file.
36514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
36515         file.
36516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
36517         New file.
36518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
36519         file.
36520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
36521         file.
36522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
36523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
36524         file.
36525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
36526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
36527         file.
36528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
36529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
36530         file.
36531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
36532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
36533         VIS3 routines.
36534
36535         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
36536         New file.
36537
36538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36539
36540         * sysdeps/sparc/configure.in: New file.
36541         * sysdeps/sparc/configure: Generate.
36542         * configure.in (libc_cv_sparc_as_vis3): Substitute.
36543         * configure: Regenerate.
36544         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
36545         * config.make.in (have-as-vis3): New.
36546         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
36547         available use -Av9d instead of -Av9a.
36548         * sysdeps/sparc/sparc64/Makefile: Likewise.
36549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
36550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
36551         New file.
36552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
36553         file.
36554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
36555         New file.
36556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
36557         file.
36558         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
36559         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
36560         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
36561         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
36562         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
36563
36564         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
36565         fzeros/fnegs to load 0x80000000 into a float register instead of
36566         using the stack.
36567         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
36568
36569 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36570
36571         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36572         bits/syscall.h.
36573         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
36574         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
36575         ($(inst_includedir)/bits/syscall.h): Remove rule.
36576         ($(objpfx)bits/syscall.d): Include instead of
36577         $(objpfx)syscall-list.d.
36578         (generated): Change syscall-list.h and syscall-list.d to
36579         bits/syscall.h and bits/syscall.d.
36580
36581 2012-03-14  Roland McGrath  <roland@hack.frob.com>
36582
36583         [BZ #13846]
36584         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
36585
36586 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36587
36588         [BZ #13841]
36589         * math/s_csqrt.c: Include <float.h>.
36590         (__csqrt): Scale large or subnormal inputs.
36591         * math/s_csqrtf.c: Likewise.
36592         * math/s_csqrtl.c: Likewise.
36593         * math/libm-test.inc (csqrt_test): Add more tests.
36594         * sysdeps/i386/fpu/libm-test-ulps: Update.
36595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36596
36597         [BZ #13840]
36598         * math/libm-test.inc (hypot_test): Add more tests.
36599
36600 2012-03-13  David S. Miller  <davem@davemloft.net>
36601
36602         [BZ #13840]
36603         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
36604         double-precision for the calculation instead of scaling.
36605
36606 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
36607
36608         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
36609         manipulate bits before adding and subtracting TWO52[sx].
36610         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
36611         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
36612         Likewise.
36613         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
36614
36615 2012-03-13  David S. Miller  <davem@davemloft.net>
36616
36617         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
36618         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
36619         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
36620         rtld-global-offsets.h
36621         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
36622
36623         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
36624         large parameters.
36625
36626         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
36627
36628         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
36629         'err' in the ifdef scope in which it is actually used.
36630
36631         * nss/nss_db/db-init.c: Include string.h
36632
36633 2012-03-12  David S. Miller  <davem@davemloft.net>
36634
36635         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
36636         masking out of the most significant byte of random value used.
36637         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36638         Fix coding style in previous change.
36639
36640         * sysdeps/unix/sysv/linux/kernel-features.h
36641         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
36642         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
36643         expression.
36644         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
36645         later.
36646
36647 2012-03-11  David S. Miller  <davem@davemloft.net>
36648
36649         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
36650         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
36651         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
36652         for 'resultvar' otherwise things get truncated on 64-bit.
36653
36654         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36655         Fix masking out of the most significant byte of random value used.
36656
36657         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36658
36659 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
36660
36661         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36662
36663 2012-03-09  David S. Miller  <davem@davemloft.net>
36664
36665         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
36666         variables with appropriate CPP guards.
36667         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
36668         from the frame pointer, not the stack pointer.  Correct layout
36669         comments.  Fix test on resulting framesize and the management of
36670         the outregs buffer for pltexit.  Preserve floating point return
36671         values across _dl_call_pltexit call.
36672         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
36673         framesize and the management of the outregs buffer for pltexit.
36674         Preserve floating point return values across _dl_call_pltexit
36675         call.
36676         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
36677         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
36678         (la_sparc64_gnu_pltexit): New functions.
36679         (print_exit): Fix format string for return register value.
36680
36681 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
36682
36683         * sunrpc/Makefile (others): Add rpcgen.
36684         ($(objpfx)rpcgen): Remove special build rule and dependency on
36685         libc.
36686         * sunrpc/rpcgen.c: New file.
36687
36688 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
36689
36690         [BZ #13673]
36691         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
36692         * stdio-common/bug-vfprintf-nargs.c: Likewise.
36693         * sysdeps/i386/crti.S: Likewise.
36694         * sysdeps/i386/crtn.S: Likewise.
36695         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
36696         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
36697         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
36698         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
36699         * sysdeps/sh/crti.S: Likewise.
36700         * sysdeps/sh/crtn.S: Likewise.
36701         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
36702
36703         [BZ #13673]
36704         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
36705         with URL.
36706         * locale/programs/locfile-kw.gperf: Likewise.
36707         * locale/programs/charmap-kw.h: Regenerated.
36708         * locale/programs/locfile-kw.h: Likewise.
36709
36710         [BZ #13673]
36711         * intl/plural.y: Replace FSF snail mail address with URL.
36712         * intl/plural.c: Regenerated.
36713
36714 2012-03-09  Richard Henderson  <rth@twiddle.net>
36715
36716         * include/math_private.h: Remove file.
36717         * math/math_private.h: Move file ...
36718         * sysdeps/generic/math_private.h: ... here.
36719
36720         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
36721         * sysdeps/powerpc/fpu/math_private.h: Likewise.
36722         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36723
36724         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
36725         and <math_private.h>.
36726         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
36727         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
36728         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
36729         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
36730         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
36731         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
36732         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
36733         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
36734         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
36735         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
36736         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
36737         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
36738         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
36739         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
36740         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
36741         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
36742         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
36743         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
36744         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
36745         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
36746         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
36747         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
36748         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
36749         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
36750         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
36751         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
36752         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
36753         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
36754         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
36755         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
36756         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
36757         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
36758         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
36759         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
36760         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
36761         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
36762         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
36763         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
36764         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
36765         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
36766         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
36767         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
36768         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
36769         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
36770         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
36771         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
36772         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
36773         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
36774         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
36775         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
36776         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
36777         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
36778         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
36779         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
36780         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
36781         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
36782         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
36783         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36784         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
36785         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
36786         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
36787         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
36788         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
36789         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
36790         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
36791         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
36792         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
36793         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
36794         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
36795         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
36796         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
36797         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
36798         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
36799         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
36800         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
36801         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
36802         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
36803         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
36804         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
36805         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
36806         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
36807         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
36808         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
36809         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
36810         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
36811         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36812         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
36813         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
36814         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
36815         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
36816         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
36817         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
36818         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
36819         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
36820         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
36821         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
36822         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
36823         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
36824         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
36825         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
36826         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
36827         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
36828         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
36829         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
36830         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
36831         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
36832         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
36833         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
36834         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
36835         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
36836         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
36837         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
36838         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
36839         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
36840         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
36841         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
36842         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
36843         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
36844         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
36845         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
36846         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
36847         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
36848         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
36849         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
36850         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
36851         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
36852         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
36853         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
36854         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
36855         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
36856         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
36857         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
36858         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
36859         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
36860         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
36861         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
36862         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
36863         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
36864         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
36865         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
36866         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
36867         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
36868         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
36869         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
36870         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
36871         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
36872         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
36873         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
36874         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
36875         * sysdeps/ieee754/k_standard.c: Likewise.
36876         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
36877         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
36878         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
36879         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
36880         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
36881         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
36882         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
36883         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
36884         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
36885         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
36886         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
36887         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
36888         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
36889         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
36890         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
36891         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
36892         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
36893         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
36894         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
36895         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
36896         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
36897         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
36898         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
36899         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
36900         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
36901         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
36902         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
36903         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
36904         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
36905         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
36906         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
36907         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
36908         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
36909         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
36910         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
36911         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
36912         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
36913         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
36914         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
36915         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
36916         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
36917         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
36918         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
36919         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
36920         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
36921         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
36922         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
36923         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
36924         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
36925         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
36926         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
36927         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
36928         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
36929         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
36930         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
36931         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
36932         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
36933         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
36934         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
36935         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
36936         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
36937         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
36938         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
36939         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
36940         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
36941         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
36942         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
36943         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
36944         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
36945         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
36946         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
36947         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
36948         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
36949         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
36950         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
36951         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
36952         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
36953         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
36954         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
36955         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
36956         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
36957         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
36958         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
36959         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
36960         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
36961         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
36962         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
36963         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
36964         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
36965         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
36966         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
36967         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
36968         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
36969         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
36970         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
36971         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
36972         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
36973         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
36974         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
36975         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
36976         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
36977         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
36978         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
36979         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
36980         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
36981         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
36982         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
36983         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
36984         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
36985         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
36986         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
36987         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
36988         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
36989         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
36990         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
36991         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
36992         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
36993         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
36994         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
36995         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
36996         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
36997         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
36998         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
36999         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37000         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37001         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37002         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37003         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37004         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37005         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37006         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37007         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37008         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37009         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37010         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37011         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37012         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37013         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37014         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37015         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37016         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37017         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37018         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37019         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37020         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37021         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37022         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37023         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37024         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37025         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37026         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37027         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37028         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37029         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37030         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37031         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37032         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37033         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37034         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37035         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37036         * sysdeps/ieee754/s_lib_version.c: Likewise.
37037         * sysdeps/ieee754/s_matherr.c: Likewise.
37038         * sysdeps/ieee754/s_signgam.c: Likewise.
37039         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37040         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37041         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37042         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37043         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37044         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37045         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37046         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37047         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37048         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37049         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37050         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37051         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37052         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37053         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37054         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37055         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37056         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37057         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37058         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37059         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37060
37061 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37062
37063         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37064         * sunrpc/rpc_main.c: Likewise.
37065         * sunrpc/rpc_svcout.c: Likewise.
37066
37067 2012-03-09  David S. Miller  <davem@davemloft.net>
37068
37069         * include/math_private.h: New file.
37070
37071 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37072
37073         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37074         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37075         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37076         from <bits/socket_type.h>.
37077         (enum __socket_type): Don't define here.
37078         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37079         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37080         bits/socket_type.h.
37081
37082         [BZ #13566]
37083         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37084         checking __USE_GNU.
37085
37086         * Makerules ($(inst_includedir)/%.h): New rule.
37087         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37088         (install-others): Remove variable setting.
37089         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37090
37091 2012-03-08  Richard Henderson  <rth@twiddle.net>
37092
37093         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37094         from macro to inline function; merge with the
37095         !__LIBC_INTERNAL_MATH_INLINES version.
37096         (__ieee754_sqrtf): Likewise.
37097
37098         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37099         to inline function.
37100         (__rintf, __floor, __floorf): Likewise.
37101
37102         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37103         macro to inline function.
37104         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37105
37106         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37107         not <math/math_private.h>.
37108
37109 2012-03-08  David S. Miller  <davem@davemloft.net>
37110
37111         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37112         copyright year.
37113         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37114
37115 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37116
37117         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37118         normalization.
37119         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37120         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37121
37122 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37123
37124         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37125         be defined individually, they must be defined as a block.  Define
37126         S for printing a string instead of hidint the different by using a
37127         macro for adding the 'l'.
37128         * stdio-common/tst-fphex-wide.c: Adjust.
37129
37130 2012-03-07  Marek Polacek  <polacek@redhat.com>
37131
37132         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37133
37134 2012-03-08  Marek Polacek  <polacek@redhat.com>
37135
37136         [BZ #13806]
37137         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37138         * stdio-common/tst-fphex.c: Define a few macros to make the
37139         test reusable.  Use them.
37140         * stdio-common/tst-fphex-wide.c: New file.
37141
37142 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37143
37144         [BZ #6911]
37145         * manual/macros.texi (gnusystems): New macro.
37146         (nongnusystems): Likewise.
37147         (gnulinuxhurdsystems): Likewise.
37148         (gnuhurdsystems): Likewise..
37149         (gnulinuxsystems): Likewise.
37150         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37151         variants of the GNU system, not "GNU system".
37152         * manual/conf.texi: Likewise.
37153         * manual/errno.texi: Likewise.  Update example of errno macro
37154         expansion.
37155         * manual/filesys.texi: Likewise.
37156         (getumask): Document as specific to GNU/Hurd.
37157         * manual/install.texi: Likewise.  Reword some references to
37158         GNU/Linux.
37159         * manual/intro.texi: Likewise.
37160         * manual/io.texi: Likewise.
37161         (File Name Portability): Detail which constraints are inapplicable
37162         to all GNU systems and which are only inapplicable to GNU/Hurd.
37163         * manual/job.texi: Likewise.
37164         * manual/llio.texi: Likewise.
37165         (O_NOCTTY): Document as present on GNU/Linux.
37166         * manual/maint.texi: Likewise.
37167         * manual/memory.texi: Likewise.
37168         * manual/pattern.texi: Likewise.
37169         * manual/pipe.texi: Likewise.
37170         * manual/process.texi: Likewise.
37171         * manual/resource.texi: Likewise.
37172         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37173         child on GNU/Hurd.
37174         * manual/setjmp.texi: Likewise.
37175         * manual/signal.texi: Likewise.
37176         * manual/startup.texi: Likewise.
37177         * manual/stdio.texi: Likewise.
37178         * manual/terminal.texi: Likewise.
37179         (ONLCR): Document as POSIX.
37180         (OXTABS): Document availability on GNU/Linux as XTABS.
37181         (ONOEOT): Document availability separately from other bits.
37182         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37183         * manual/time.texi: Likewise.
37184         * manual/users.texi: Likewise.
37185         * INSTALL: Regenerated.
37186         * sysdeps/gnu/errlist.c: Regenerated.
37187
37188         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37189         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37190         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37191         puts.
37192         * configure: Regenerated.
37193
37194 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37195
37196         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37197         default includes instead of AC_HEADER_CHECK.
37198         * sysdeps/i386/configure: Regenerated.
37199
37200         [BZ #10716]
37201         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37202         * math/s_cacoshf.c (__cacoshf): Likewise.
37203         * math/s_cacoshl.c (__cacoshl): Likewise.
37204         * math/s_casinh.c (__casinh): Set signs of result from argument.
37205         * math/s_casinhf.c (__casinhf): Likewise.
37206         * math/s_casinhl.c (__casinhl): Likewise.
37207         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37208         (casinh_test): Add more tests.
37209         * sysdeps/i386/fpu/libm-test-ulps: Update.
37210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37211
37212 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37213
37214         * po/zh_TW.po: Update from translation team.
37215
37216         * login/Makefile (distribute): Remove variable.
37217         * catgets/Makefile: Likewise.
37218         * mach/Makefile: Likewise.
37219         * malloc/Makefile: Likewise.
37220         * misc/Makefile: Likewise.
37221         * iconv/Makefile: Likewise.
37222         * nscd/Makefile: Likewise.
37223         * hurd/Makefile: Likewise.
37224         * manual/Makefile: Likewise.
37225         * locale/Makefile: Likewise.
37226         * intl/Makefile: Likewise.
37227         * conform/Makefile: Likewise.
37228         * nss/Makefile: Likewise.
37229         * time/Makefile: Likewise.
37230         * soft-fp/Makefile: Likewise.
37231         * dirent/Makefile: Likewise.
37232         * gmon/Makefile: Likewise.
37233         * po/Makefile: Likewise.
37234         * rt/Makefile: Likewise.
37235         * socket/Makefile: Likewise.
37236         * math/Makefile: Likewise.
37237         * signal/Makefile: Likewise.
37238         * debug/Makefile: Likewise.
37239         * elf/Makefile: Likewise.
37240         * timezone/Makefile: Likewise.
37241         * stdlib/Makefile: Likewise.
37242         * iconvdata/Makefile: Likewise.
37243         * sunrpc/Makefile: Likewise.
37244         * io/Makefile: Likewise.
37245         * argp/Makefile: Likewise.
37246         * inet/Makefile: Likewise.
37247         * hesiod/Makefile: Likewise.
37248         * grp/Makefile: Likewise.
37249         * csu/Makefile: Likewise.
37250         * wctype/Makefile: Likewise.
37251         * crypt/Makefile: Likewise.
37252         * libio/Makefile: Likewise.
37253         * string/Makefile: Likewise.
37254         * nis/Makefile: Likewise.
37255         * resolv/Makefile: Likewise.
37256         * stdio-common/Makefile: Likewise.
37257         * wcsmbs/Makefile: Likewise.
37258         * dlfcn/Makefile: Likewise.
37259         * posix/Makefile: Likewise.
37260
37261         [BZ #6959]
37262         * timezone/Makefile: Don't install timezone files, just the programs
37263         and scripts.
37264
37265 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
37266
37267         * nss/databases.def: Add missing gshadow entry.
37268
37269         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
37270
37271 2012-03-06  Marek Polacek  <polacek@redhat.com>
37272
37273         [BZ #13726]
37274         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
37275         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
37276         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
37277         * stdio-common/tst-long-dbl-fphex.c: New file.
37278
37279 2012-03-06  David S. Miller  <davem@davemloft.net>
37280
37281         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
37282         (set_obp_int): New function.
37283         (get_obp_int): New function.
37284         (__get_clockfreq_via_dev_openprom): Likewise.
37285         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
37286         Avoid unused variable warnings on 'val' and use builtin_expect.
37287         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
37288         __builtin_expect.
37289         (INLINE_CLONE_SYSCALL): Likewise.
37290
37291 2012-03-05  David S. Miller  <davem@davemloft.net>
37292
37293         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37294
37295 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
37296
37297         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37298
37299         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
37300         only for |x| >= 40.
37301         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37302
37303 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
37304
37305         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
37306         Replace gettimeofday with __vdso_gettimeofday.
37307
37308         * sysdeps/unix/sysv/linux/x86_64/init-first.c
37309         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
37310         __vdso_clock_gettime and __vdso_getcpu.
37311
37312         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
37313         time with __vdso_time.
37314
37315 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37316
37317         * manual/lang.texi (size_t): Note types to which size_t may be
37318         equivalent with the GNU C Library, but do not describe when
37319         differences between them are significant.
37320
37321 2012-03-05  Andreas Jaeger  <aj@suse.de>
37322
37323         * sysdeps/i386/fpu/libm-test-ulps: Update.
37324
37325 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37326
37327         [BZ #3976]
37328         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
37329         (__ieee754_pow): Save and restore rounding mode and use
37330         round-to-nearest for main computations.
37331         * math/libm-test.inc (pow_test_tonearest): New function.
37332         (pow_test_towardzero): Likewise.
37333         (pow_test_downward): Likewise.
37334         (pow_test_upward): Likewise.
37335         (main): Call the new functions.
37336         * sysdeps/i386/fpu/libm-test-ulps: Update.
37337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37338
37339         [BZ #3976]
37340         * math/libm-test.inc (cosh_test_tonearest): New function.
37341         (cosh_test_towardzero): Likewise.
37342         (cosh_test_downward): Likewise.
37343         (cosh_test_upward): Likewise.
37344         (sinh_test_tonearest): Likewise.
37345         (sinh_test_towardzero): Likewise.
37346         (sinh_test_downward): Likewise.
37347         (sinh_test_upward): Likewise.
37348         (main): Call the new functions.
37349         * sysdeps/i386/fpu/libm-test-ulps: Update.
37350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37351
37352 2012-03-05  Tom de Vries  <tom@codesourcery.com>
37353
37354         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
37355         default stack guard is set in last bytes.
37356         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
37357
37358 2012-03-05  Kees Cook  <keescook@chromium.org>
37359
37360         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
37361
37362         [BZ #13656]
37363         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
37364         possibly allocate from heap instead of stack.
37365         * stdio-common/bug-vfprintf-nargs.c: New file.
37366         * stdio-common/Makefile (tests): Add nargs overflow test.
37367
37368 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
37369
37370         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37371
37372 2012-03-03  Marek Polacek  <polacek@redhat.com>
37373
37374         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
37375         * math/math_private.h: Likewise.
37376         * stdlib/tst-strtod.c: Likewise.
37377         * sysdeps/i386/i486/bits/atomic.h: Likewise.
37378         * sysdeps/x86_64/bits/atomic.h: Likewise.
37379
37380 2012-03-02  David S. Miller  <davem@davemloft.net>
37381
37382         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
37383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
37384         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
37385         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
37386         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
37387         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
37388         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
37389         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
37390
37391 2012-03-02  Roland McGrath  <roland@hack.frob.com>
37392
37393         [BZ #13792]
37394         * manual/examples/README: New file, says the example source files
37395         can be used under GPL>=2.
37396         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
37397         line containing just "*/".
37398         * manual/examples/add.c: Add copyright header (GPL>=2).
37399         * manual/examples/argp-ex1.c: Likewise.
37400         * manual/examples/argp-ex2.c: Likewise.
37401         * manual/examples/argp-ex3.c: Likewise.
37402         * manual/examples/argp-ex4.c: Likewise.
37403         * manual/examples/atexit.c: Likewise.
37404         * manual/examples/db.c: Likewise.
37405         * manual/examples/dir.c: Likewise.
37406         * manual/examples/dir2.c: Likewise.
37407         * manual/examples/execinfo.c: Likewise.
37408         * manual/examples/filecli.c: Likewise.
37409         * manual/examples/filesrv.c: Likewise.
37410         * manual/examples/fmtmsgexpl.c: Likewise.
37411         * manual/examples/genpass.c: Likewise.
37412         * manual/examples/inetcli.c: Likewise.
37413         * manual/examples/inetsrv.c: Likewise.
37414         * manual/examples/isockad.c: Likewise.
37415         * manual/examples/longopt.c: Likewise.
37416         * manual/examples/memopen.c: Likewise.
37417         * manual/examples/memstrm.c: Likewise.
37418         * manual/examples/mkfsock.c: Likewise.
37419         * manual/examples/mkisock.c: Likewise.
37420         * manual/examples/mygetpass.c: Likewise.
37421         * manual/examples/pipe.c: Likewise.
37422         * manual/examples/popen.c: Likewise.
37423         * manual/examples/rprintf.c: Likewise.
37424         * manual/examples/search.c: Likewise.
37425         * manual/examples/select.c: Likewise.
37426         * manual/examples/setjmp.c: Likewise.
37427         * manual/examples/sigh1.c: Likewise.
37428         * manual/examples/sigusr.c: Likewise.
37429         * manual/examples/stpcpy.c: Likewise.
37430         * manual/examples/strdupa.c: Likewise.
37431         * manual/examples/strftim.c: Likewise.
37432         * manual/examples/strncat.c: Likewise.
37433         * manual/examples/subopt.c: Likewise.
37434         * manual/examples/swapcontext.c: Likewise.
37435         * manual/examples/termios.c: Likewise.
37436         * manual/examples/testopt.c: Likewise.
37437         * manual/examples/testpass.c: Likewise.
37438         * manual/examples/timeval_subtract.c: Likewise.
37439
37440         [BZ #13792]
37441         * manual/time.texi (Elapsed Time): Move timeval_subtract example
37442         function to ...
37443         * manual/timeval_subtract.c.texi: ... here, new file.
37444
37445 2012-03-02  David S. Miller  <davem@davemloft.net>
37446
37447         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
37448
37449 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
37450
37451         [BZ #3976]
37452         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
37453         (__sin): Save and restore rounding mode and use round-to-nearest
37454         for all computations.
37455         (__cos): Save and restore rounding mode and use round-to-nearest
37456         for all computations.
37457         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
37458         <fenv.h>.
37459         (tan): Save and restore rounding mode and use round-to-nearest for
37460         all computations.
37461         * math/libm-test.inc (cos_test_tonearest): New function.
37462         (cos_test_towardzero): Likewise.
37463         (cos_test_downward): Likewise.
37464         (cos_test_upward): Likewise.
37465         (sin_test_tonearest): Likewise.
37466         (sin_test_towardzero): Likewise.
37467         (sin_test_downward): Likewise.
37468         (sin_test_upward): Likewise.
37469         (tan_test_tonearest): Likewise.
37470         (tan_test_towardzero): Likewise.
37471         (tan_test_downward): Likewise.
37472         (tan_test_upward): Likewise.
37473         (main): Call the new functions.
37474         * sysdeps/i386/fpu/libm-test-ulps: Update.
37475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37476
37477         [BZ #10135]
37478         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
37479         small n, then large n, before computing and testing k+n.
37480         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37481         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
37482         Likewise.
37483         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
37484         Likewise.
37485         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
37486         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
37487         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
37488         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
37489         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
37490         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
37491         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
37492         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
37493         * math/libm-test.inc (scalbn_test): Add more tests.
37494         (scalbln_test): Likewise.
37495
37496         * manual/filesys.texi (mode_t): Describe constraints on size and
37497         signedness, not exact equivalence to a particular type.
37498         (ino_t): Likewise.
37499         (ino64_t): Likewise.
37500         (dev_t): Likewise.
37501         (nlink_t): Likewise.
37502         (blkcnt_t): Likewise.
37503         (blkcnt64_t): Likewise.
37504         * manual/llio.texi (off_t): Likewise.
37505
37506         [BZ #3976]
37507         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
37508         (__ieee754_exp): Save and restore rounding mode and use
37509         round-to-nearest for all computations.
37510         * math/libm-test.inc (exp_test_tonearest): New function.
37511         (exp_test_towardzero): Likewise.
37512         (exp_test_downward): Likewise.
37513         (exp_test_upward): Likewise.
37514         (main): Call the new functions.
37515         * sysdeps/i386/fpu/libm-test-ulps: Update.
37516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37517
37518 2012-03-01  Chris Demetriou  <cgd@google.com>
37519
37520         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
37521         have predictable order.
37522
37523 2012-03-01  David S. Miller  <davem@davemloft.net>
37524
37525         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
37526
37527         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
37528         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
37529         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
37530         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
37531
37532         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
37533         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
37534         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
37535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
37536         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
37537         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
37538         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
37539         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
37540         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
37541
37542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37543
37544         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
37545         * sysdeps/sparc/fpu/libm-test-ulps: to here.
37546         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
37547
37548         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
37549         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
37550         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
37551         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
37552         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
37553         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
37554         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
37555         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
37556         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
37557         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
37558         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
37559         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37560         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37561         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
37562         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37563         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37564         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
37565         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
37566         * sysdeps/sparc/elf/configure: Regenerated.
37567
37568 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
37569
37570         * configure.in (AS, LD): Require binutils 2.20 or later.
37571         * configure: Regenerated.
37572         * manual/install.texi (Tools for Compilation): Give binutils 2.20
37573         as required minimum version.
37574         * INSTALL: Regenerated.
37575
37576         [BZ #2541]
37577         [BZ #4108]
37578         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
37579         before squaring exponent.
37580         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
37581         bottom long double and 27 bits of top long double before squaring
37582         exponent.
37583         * math/libm-test.inc (erfc_test): Add more tests.
37584         * sysdeps/i386/fpu/libm-test-ulps: Update.
37585         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37587
37588 2012-03-01  Kai Tietz  <ktietz@redhat.com>
37589
37590         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
37591         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
37592         containing bit-fields.
37593         * soft-fp/extended.h (_FP_UNION_E): Likewise.
37594         * soft-fp/single.h (_FP_UNION_S): Likewise.
37595         * soft-fp/double.h (_FP_UNION_D): Likewise.
37596
37597 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37598
37599         [BZ #13786]
37600         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
37601         not include ../strcmp.S.
37602         [USE_AS_STRNCASECMP_L]: Likewise.
37603         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
37604         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
37605         * sysdeps/i386/i686/multiarch/strncase_l-c.c
37606         (__strncasecmp_l_ia32): Define as alias to
37607         __strncasecmp_l_nonascii.
37608
37609         [BZ #5794]
37610         * math/libm-test.inc (expm1_test): Add test for bug 5794.
37611         * sysdeps/i386/fpu/libm-test-ulps: Update.
37612         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37613
37614         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
37615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37616
37617 2012-02-29  Jeff Law  <law@redhat.com>
37618
37619         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
37620         out of bounds read.
37621
37622 2012-02-29  Marek Polacek  <polacek@redhat.com>
37623
37624         [BZ #13706]
37625         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
37626         * elf/Makefile: Add rules to run tst-unused-dep.out.
37627
37628 2012-02-28  David S. Miller  <davem@davemloft.net>
37629
37630         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
37631         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
37632         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
37633         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
37634         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
37635         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
37636
37637 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37638
37639         * math/libm-test.inc (llround_test): Move one test from
37640         lround_test.  Use TEST_f_L in moved test.
37641         (lround_test): Move misplaced test to llround_test.  Add testcase
37642         from bug 2561.
37643
37644 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
37645
37646         * sysdeps/x86_64/fpu/e_expf.S: New file.
37647         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
37648
37649 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
37650
37651         [BZ #13637]
37652         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
37653         of remain_len that may cause incomplete multi-byte character and
37654         false match.
37655         * posix/bug-regex33.c: New file.
37656         * posix/Makefile (tests): Add bug-regex33.
37657
37658 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
37659
37660         * manual/macros.texi: New file.
37661         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
37662         * manual/libc.texinfo: Include macros.texi.
37663         * manual/creatute.texi: Likewise.
37664         * manual/install.texi: Likewise.
37665         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
37666         @glibcadj{} in references to the GNU C Library.
37667         * manual/charset.texi: Likewise.
37668         * manual/conf.texi: Likewise.
37669         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
37670         when not using those macros.
37671         * manual/creature.texi: Likewise.
37672         * manual/crypt.texi: Likewise.
37673         * manual/errno.texi: Likewise.
37674         * manual/filesys.texi: Likewise.
37675         * manual/header.texi: Likewise.
37676         * manual/install.texi: Likewise.
37677         * manual/intro.texi: Likewise.
37678         * manual/io.texi: Likewise.
37679         * manual/job.texi: Likewise.
37680         * manual/lang.texi: Likewise.
37681         * manual/libc.texiinfo: Likewise.
37682         * manual/llio.texi: Likewise.
37683         * manual/locale.texi: Likewise.
37684         * manual/maint.texi: Likewise.
37685         * manual/math.texi: Likewise.
37686         * manual/memory.texi: Likewise.
37687         * manual/message.texi: Likewise.
37688         * manual/nss.texi: Likewise.
37689         * manual/pattern.texi: Likewise.
37690         * manual/process.texi: Likewise.
37691         * manual/resource.texi: Likewise.
37692         * manual/search.texi: Likewise.
37693         * manual/setjmp.texi: Likewise.
37694         * manual/signal.texi: Likewise.
37695         * manual/socket.texi: Likewise.
37696         * manual/startup.texi: Likewise.
37697         * manual/stdio.texi: Likewise.
37698         * manual/string.texi: Likewise.
37699         * manual/sysinfo.texi: Likewise.
37700         * manual/syslog.texi: Likewise.
37701         * manual/terminal.texi: Likewise.
37702         * manual/time.texi: Likewise.
37703         * manual/users.texi: Likewise.
37704         * INSTALL: Regenerated.
37705         * NOTES: Regenerated.
37706         * sysdeps/gnu/errlist.c: Regenerated.
37707
37708 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
37709
37710         * include/dirent.h: Include <dirstream.h> before
37711         <dirent/dirent.h>.
37712
37713 2012-02-28  David S. Miller  <davem@davemloft.net>
37714
37715         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
37716         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
37717         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
37718         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
37719
37720 2012-02-27  David S. Miller  <davem@davemloft.net>
37721
37722         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
37723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
37724         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
37725         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
37726
37727         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
37728         frame pointer instead of stack pointer relative arg slot.
37729         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
37730         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
37731         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
37732
37733 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
37734
37735         [BZ #3992]
37736         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
37737
37738 2012-02-27  David S. Miller  <davem@davemloft.net>
37739
37740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
37741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
37742         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
37743         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
37744         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
37745         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
37746         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
37747         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
37748
37749 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
37750
37751         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
37752         later.  Allow versions 5-9.
37753         * configure: Regenerated.
37754         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
37755         required minimum version and 4.6 as recommended version.  Do not
37756         mention bugs in GCC 2.7 and 2.8.
37757         * INSTALL: Regenerated.
37758
37759 2012-02-27  David S. Miller  <davem@davemloft.net>
37760
37761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
37762         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
37763         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
37764         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
37765         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
37766         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
37767         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
37768         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
37769
37770         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
37771         manipulate bits before adding and subtracting TWO112[sx].
37772         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
37773
37774 2012-02-27  Roland McGrath  <roland@hack.frob.com>
37775
37776         [BZ #13775]
37777         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
37778         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
37779         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
37780         being in POSIX, because they are in 1003.1-2008.
37781
37782         * rt/tst-aio.c: Include <fcntl.h>.
37783         * rt/tst-aio7.c: Likewise.
37784         * rt/tst-aio64.c: Likewise.
37785
37786         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
37787
37788 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
37789
37790         * manual/install.texi (--with-headers): Describe headers as
37791         interface headers, not private headers.
37792         (Specific advice for GNU/Linux systems): Describe use of headers
37793         from "make headers_install", not private headers from older
37794         kernels.
37795         * INSTALL: Regenerated.
37796         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
37797         Change to 2.6.19.
37798         * sysdeps/unix/sysv/linux/configure: Regenerated.
37799
37800         * manual/llio.texi (fclean): Remove documentation.
37801
37802         * manual/Makefile (libc-texi-generated): New variable.  Include
37803         version.texi.
37804         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
37805         $(libc-texi-generated), not duplicated list of files.
37806         (version.texi, stamp-version): New rules.
37807         (realclean): Remove $(libc-texi-generated), not individual files
37808         from that list.  Do not remove dir-add.texinfo.
37809         * manual/libc.texinfo: Comment out uses of edition numbers and
37810         references to printed manual.  Remove last-updated dates.
37811         (EDITION): Comment out.
37812         (ISBN): Likewise.
37813         (VERSION, UPDATED): Remove.
37814         (version.texi): Include.
37815
37816 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
37817
37818         * sysdeps/posix/spawni.c: Include <signal.h>.
37819         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
37820         * sysdeps/pthread/aio_fsync.c: Likewise.
37821
37822 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
37823
37824         * conform/Makefile (tests): Run only when not cross-compiling and
37825         when fast-check is not defined.
37826
37827         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
37828         * conform/data/limits.h-data: Fixes for POSIX2008.
37829         * conform/run-conformtest.sh: Run all tests.
37830         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
37831         headers.
37832         * include/bits/dlfcn.h: Likewise.
37833         * include/langinfo.h: Likewise.
37834         * include/monetary.h: Likewise.
37835         * include/sys/poll.h: Likewise.
37836
37837         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
37838         for __USE_GNU.
37839         * posix/spawn.h: Define __need_sigset_t.
37840         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
37841         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
37842         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
37843         to get sigevent_t only.
37844         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
37845         only for __USE_GNU.
37846         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37847         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
37848         process_vm_writev only for __USE_GNU.
37849         * termios/termios.h: Declare tcgetsid also for POSIX2008.
37850
37851         * conform/Makefile: For now ignore errors from run-conformtest.
37852         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
37853         POSIX to avoid namespace pollution.  Don't prepend headers.
37854         * conform/data/aio.h-data: Fixes for POSIX testing.
37855         * conform/data/fcntl.h-data: Likewise.
37856         * conform/data/glob.h-data: Likewise.
37857         * conform/data/grp.h-data: Likewise.
37858         * conform/data/pthread.h-data: Likewise.
37859         * conform/data/pwd.h-data: Likewise.
37860         * conform/data/signal.h-data: Likewise.
37861         * conform/data/spawn.h-data: Likewise.
37862         * conform/data/stdio.h-data: Likewise.
37863         * conform/data/stdlib.h-data: Likewise.
37864         * conform/data/stropts.h-data: Likewise.
37865         * conform/data/sys/mman.h-data: Likewise.
37866         * conform/data/sys/stat.h-data: Likewise.
37867         * conform/data/sys/types.h-data: Likewise.
37868         * conform/data/sys/wait.h-data: Likewise.
37869         * conform/data/time.h-data: Likewise.
37870         * conform/data/unistd.h-data: Likewise.
37871         * conform/data/utime.h-data: Likewise.
37872
37873         * io/sys/stat.h: fchmod was always in POSIX.
37874         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
37875         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
37876         * rt/aio.h: Define __need_timespec before including <time.h>.
37877         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
37878         struct.  Add forward declaration of pthread_attr_t and use it in
37879         sigevent.
37880         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
37881         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
37882         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
37883         always remove CLK_TCK definition.
37884
37885 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
37886
37887         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
37888
37889 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
37890
37891         * conform/run-conformtest.sh: New file.
37892         * conform/Makefile: Run run-conformtest for tests.
37893         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
37894         support.
37895
37896         * conform/data/uchar.h-data: New file.
37897         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
37898         * conform/data/arpa/inet.h-data: Likewise.
37899         * conform/data/assert.h-data: Likewise.
37900         * conform/data/complex.h-data: Likewise.
37901         * conform/data/cpio.h-data: Likewise.
37902         * conform/data/ctype.h-data: Likewise.
37903         * conform/data/dirent.h-data: Likewise.
37904         * conform/data/dlfcn.h-data: Likewise.
37905         * conform/data/errno.h-data: Likewise.
37906         * conform/data/fcntl.h-data: Likewise.
37907         * conform/data/float.h-data: Likewise.
37908         * conform/data/fmtmsg.h-data: Likewise.
37909         * conform/data/fnmatch.h-data: Likewise.
37910         * conform/data/ftw.h-data: Likewise.
37911         * conform/data/glob.h-data: Likewise.
37912         * conform/data/grp.h-data: Likewise.
37913         * conform/data/iconv.h-data: Likewise.
37914         * conform/data/inttypes.h-data: Likewise.
37915         * conform/data/langinfo.h-data: Likewise.
37916         * conform/data/libgen.h-data: Likewise.
37917         * conform/data/limits.h-data: Likewise.
37918         * conform/data/locale.h-data: Likewise.
37919         * conform/data/math.h-data: Likewise.
37920         * conform/data/monetary.h-data: Likewise.
37921         * conform/data/mqueue.h-data: Likewise.
37922         * conform/data/ndbm.h-data: Likewise.
37923         * conform/data/net/if.h-data: Likewise.
37924         * conform/data/netdb.h-data: Likewise.
37925         * conform/data/netinet/in.h-data: Likewise.
37926         * conform/data/nl_types.h-data: Likewise.
37927         * conform/data/poll.h-data: Likewise.
37928         * conform/data/pthread.h-data: Likewise.
37929         * conform/data/pwd.h-data: Likewise.
37930         * conform/data/regex.h-data: Likewise.
37931         * conform/data/sched.h-data: Likewise.
37932         * conform/data/search.h-data: Likewise.
37933         * conform/data/semaphore.h-data: Likewise.
37934         * conform/data/setjmp.h-data: Likewise.
37935         * conform/data/signal.h-data: Likewise.
37936         * conform/data/spawn.h-data: Likewise.
37937         * conform/data/stdarg.h-data: Likewise.
37938         * conform/data/stdio.h-data: Likewise.
37939         * conform/data/stdlib.h-data: Likewise.
37940         * conform/data/string.h-data: Likewise.
37941         * conform/data/strings.h-data: Likewise.
37942         * conform/data/stropts.h-data: Likewise.
37943         * conform/data/sys/ipc.h-data: Likewise.
37944         * conform/data/sys/mman.h-data: Likewise.
37945         * conform/data/sys/msg.h-data: Likewise.
37946         * conform/data/sys/resource.h-data: Likewise.
37947         * conform/data/sys/select.h-data: Likewise.
37948         * conform/data/sys/sem.h-data: Likewise.
37949         * conform/data/sys/shm.h-data: Likewise.
37950         * conform/data/sys/socket.h-data: Likewise.
37951         * conform/data/sys/stat.h-data: Likewise.
37952         * conform/data/sys/statvfs.h-data: Likewise.
37953         * conform/data/sys/time.h-data: Likewise.
37954         * conform/data/sys/timeb.h-data: Likewise.
37955         * conform/data/sys/times.h-data: Likewise.
37956         * conform/data/sys/types.h-data: Likewise.
37957         * conform/data/sys/uio.h-data: Likewise.
37958         * conform/data/sys/un.h-data: Likewise.
37959         * conform/data/sys/utsname.h-data: Likewise.
37960         * conform/data/sys/wait.h-data: Likewise.
37961         * conform/data/syslog.h-data: Likewise.
37962         * conform/data/tar.h-data: Likewise.
37963         * conform/data/termios.h-data: Likewise.
37964         * conform/data/utime.h-data: Likewise.
37965         * conform/data/utmpx.h-data: Likewise.
37966         * conform/data/varargs.h-data: Likewise.
37967         * conform/data/wchar.h-data: Likewise.
37968         * conform/data/wctype.h-data: Likewise.
37969         * conform/data/wordexp.h-data: Likewise.
37970
37971         * include/stropts.h: New file.
37972         * include/uchar.h: New file.
37973         * include/aio.h: Changes to allow conformtest.pl to use the headers.
37974         * include/assert.h: Likewise.
37975         * include/ctype.h: Likewise.
37976         * include/dirent.h: Likewise.
37977         * include/dlfcn.h: Likewise.
37978         * include/fcntl.h: Likewise.
37979         * include/fnmatch.h: Likewise.
37980         * include/glob.h: Likewise.
37981         * include/grp.h: Likewise.
37982         * include/libio.h: Likewise.
37983         * include/locale.h: Likewise.
37984         * include/math.h: Likewise.
37985         * include/net/if.h: Likewise.
37986         * include/netdb.h: Likewise.
37987         * include/netinet/in.h: Likewise.
37988         * include/pthread.h: Likewise.
37989         * include/pwd.h: Likewise.
37990         * include/regex.h: Likewise.
37991         * include/sched.h: Likewise.
37992         * include/search.h: Likewise.
37993         * include/setjmp.h: Likewise.
37994         * include/signal.h: Likewise.
37995         * include/stdio.h: Likewise.
37996         * include/stdlib.h: Likewise.
37997         * include/string.h: Likewise.
37998         * include/sys/cdefs.h: Likewise.
37999         * include/sys/mman.h: Likewise.
38000         * include/sys/msg.h: Likewise.
38001         * include/sys/resource.h: Likewise.
38002         * include/sys/select.h: Likewise.
38003         * include/sys/socket.h: Likewise.
38004         * include/sys/stat.h: Likewise.
38005         * include/sys/statvfs.h: Likewise.
38006         * include/sys/time.h: Likewise.
38007         * include/sys/times.h: Likewise.
38008         * include/sys/uio.h: Likewise.
38009         * include/sys/utsname.h: Likewise.
38010         * include/sys/wait.h: Likewise.
38011         * include/termios.h: Likewise.
38012         * include/time.h: Likewise.
38013         * include/ulimit.h: Likewise.
38014         * include/unistd.h: Likewise.
38015         * include/utime.h: Likewise.
38016         * include/wchar.h: Likewise.
38017         * include/wctype.h: Likewise.
38018         * include/wordexp.h: Likewise.
38019
38020         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38021
38022         * time/time.h: TIME_UTC must be a macro.
38023         Make timespec_get available for ISO C11 only as well.
38024
38025 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38026
38027         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38028         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38029
38030 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38031
38032         * configure.in: Use -o not -a in test for unsupported multi-arch.
38033
38034 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38035
38036         * manual/texinfo.tex: Update to version 2012-01-19.16.
38037
38038 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38039
38040         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38041
38042 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38043
38044         [BZ #13738]
38045         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38046         * manual/fdl-1.3.texi: New file.
38047         * manual/fdl-1.1.texi: File removed.
38048
38049         [BZ #13738]
38050         * manual/libc.texinfo (FDL_VERSION): New @set.
38051         Use it for mention of FDL in cover text.
38052         (Documentation License): Use it in @include file name.
38053
38054 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38055             Roland McGrath  <roland@hack.frob.com>
38056
38057         [BZ #5461]
38058         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38059         (not LONG_LONG_MAX and LONG_LONG_MIN.
38060         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38061         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38062         name.
38063         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38064
38065 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38066
38067         [BZ #2547]
38068         [BZ #11365]
38069         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38070         manipulate bits before adding and subtracting TWO23[sx].
38071         * math/libm-test.inc (nearbyint_test): Add more tests.
38072
38073 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38074
38075         [BZ #2548]
38076         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38077         bits before adding and subtracting TWO23[sx].
38078         * math/libm-test.inc (rint_test): Add more tests.
38079         (rint_test_tonearest): Likewise.
38080         (rint_test_towardzero): Likewise.
38081         (rint_test_downward): Likewise.
38082         (rint_test_upward: Likewise.
38083
38084 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38085
38086         [BZ #10110]
38087         * include/stdc-predef.h: New file.  Extracted from features.h.
38088         * include/features.h: Include stdc-predef.h.
38089         * Makefile (headers): Add stdc-predef.h.
38090         * CONFORMANCE (Compiler limitations): Update.
38091
38092 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38093
38094         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38095
38096 2012-02-21  David S. Miller  <davem@davemloft.net>
38097
38098         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38099         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38100
38101 2012-02-20  David S. Miller  <davem@davemloft.net>
38102
38103         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38104         using a normal save/restore sequence, rather than allocating a
38105         dummy stack frame just to store a frame pointer and restore.
38106         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38107
38108 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38109
38110         * manual/install.texi: Fix stray word in line-wrapped comment.
38111
38112 2012-02-20  David S. Miller  <davem@davemloft.net>
38113
38114         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38115         both binutils and gcc support GOTDATA.
38116
38117         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38118         "rd %pc" in the PIC register setup sequences.
38119
38120         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38121         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38122         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38123         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38124         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38125         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38126         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38127         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38128         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38129         (SYSCALL_ERROR_HANDLER): Likewise.
38130         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38131         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38132         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38133         (SYSCALL_ERROR_HANDLER): Likewise.
38134
38135         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38136         (HAVE_GCC_GOTDATA): New.
38137         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38138         relocation support in both binutils and gcc.
38139         * sysdeps/sparc/elf/configure: Regenerate.
38140
38141         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38142         * sysdeps/sparc/sparc32/elf/configure: Delete.
38143         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38144         * sysdeps/sparc/sparc64/elf/configure: Delete.
38145         * sysdeps/sparc/elf/configure.in: New file.
38146         * sysdeps/sparc/elf/configure: Generate.
38147
38148         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38149         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38150         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38151         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38152         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38153
38154 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38155
38156         * manual/install.texi: Do not mention specific glibc version
38157         numbers.
38158         * manual/libc.texinfo (VERSION, UPDATED): Update.
38159         (@copying): Use @copyright{} and range of years.
38160
38161 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38162
38163         [BZ #13695]
38164         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38165         [crti.S not in sysdirs] (generated): Do not append.
38166         [crti.S not in sysdirs] (omit-deps): Likewise.
38167         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38168         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38169         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38170         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38171         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38172         Likewise.
38173         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38174         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38175         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38176         * csu/defs.awk: Remove file.
38177         * sysdeps/generic/initfini.c: Likewise.
38178         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38179         variable.
38180         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38181         Likewise.
38182
38183 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38184
38185         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38186         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38187         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38188         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38189         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38190         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38191         <bits/epoll.h>.
38192         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38193         (__EPOLL_PACKED): Define to empty if not defined by
38194         <bits/epoll.h>.
38195         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38196         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38197         bits/epoll.h.
38198
38199 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38200
38201         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38202         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38203         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38204         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38205         <bits/timerfd.h>.
38206         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38207         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38208         bits/timerfd.h.
38209
38210 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38211
38212         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38213         in C locale.
38214         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38215         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38216         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38218
38219 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38220
38221         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38222         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38223
38224 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38225
38226         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
38227         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
38228         defined.
38229         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
38230         Likewise.
38231         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
38232         entry for 2.16.
38233
38234 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
38235
38236         * math/w_acos.c: Use non-signaling floating-point comparisons.
38237         * math/w_acosf.c: Likewise.
38238         * math/w_acosh.c: Likewise.
38239         * math/w_acoshf.c: Likewise.
38240         * math/w_acoshl.c: Likewise.
38241         * math/w_acosl.c: Likewise.
38242         * math/w_asin.c: Likewise.
38243         * math/w_asinf.c: Likewise.
38244         * math/w_asinl.c: Likewise.
38245         * math/w_atanh.c: Likewise.
38246         * math/w_atanhf.c: Likewise.
38247         * math/w_atanhl.c: Likewise.
38248         * math/w_exp2.c: Likewise.
38249         * math/w_exp2f.c: Likewise.
38250         * math/w_exp2l.c: Likewise.
38251         * math/w_j0.c: Likewise.
38252         * math/w_j0f.c: Likewise.
38253         * math/w_j0l.c: Likewise.
38254         * math/w_j1.c: Likewise.
38255         * math/w_j1f.c: Likewise.
38256         * math/w_j1l.c: Likewise.
38257         * math/w_jn.c: Likewise.
38258         * math/w_jnf.c: Likewise.
38259         * math/w_log.c: Likewise.
38260         * math/w_log10.c: Likewise.
38261         * math/w_log10f.c: Likewise.
38262         * math/w_log10l.c: Likewise.
38263         * math/w_log2.c: Likewise.
38264         * math/w_log2f.c: Likewise.
38265         * math/w_log2l.c: Likewise.
38266         * math/w_logf.c: Likewise.
38267         * math/w_logl.c: Likewise.
38268         * math/w_sqrt.c: Likewise.
38269         * math/w_sqrtf.c: Likewise.
38270         * math/w_sqrtl.c: Likewise.
38271         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38272         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
38273         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38274         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
38275         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
38276
38277 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38278
38279         [BZ #9739]
38280         * manual/string.texi (strnlen): Use correct parameter name in
38281         equivalent expression.
38282
38283 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38284
38285         [BZ #11174]
38286         * manual/users.texi (seteuid): Consistently use neweuid for
38287         argument name.
38288
38289 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38290
38291         [BZ #13704]
38292         * manual/nss.texi (Services in the NSS configuration): Correct
38293         list of services in example configuration file.
38294
38295 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
38296
38297         [BZ #11322]
38298         * manual/arith.texi: Remove statements about negative zero
38299         behaving identically to zero.
38300
38301 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38302
38303         [BZ #5993]
38304         * manual/install.texi: Do not document upgrading from libc5.
38305
38306 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38307
38308         [BZ #4596]
38309         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
38310
38311 2012-02-18  David S. Miller  <davem@davemloft.net>
38312
38313         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
38314         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
38315         %o7 across the call.
38316         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
38317         instead.
38318         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
38319         SETUP_PIC_REG_LEAF.
38320         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38321         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
38322         * sysdeps/sparc/crtn.S: Likewise.
38323
38324 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
38325
38326         * aout/Makefile: Remove.
38327
38328 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
38329
38330         [BZ #13058]
38331         * manual/examples/argp-ex1.c (main): Format definition in GNU
38332         style.
38333         * manual/examples/argp-ex2.c (main): Likewise.
38334         * manual/examples/argp-ex3.c (main): Likewise.
38335         * manual/examples/argp-ex4.c (main): Likewise.
38336         * manual/examples/longopt.c (main): Use new-style prototype
38337         definition.
38338         * manual/examples/strncat.c (main): Specify return type and use
38339         (void) for arguments.
38340         * manual/examples/subopt.c (main): Use char **argv argument.
38341
38342 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38343
38344         [BZ #5077]
38345         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
38346         rounding modes.
38347
38348 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
38349
38350         [BZ #6907]
38351         * manual/string.texi (strchr): Change when strchrnul is
38352         recommended.
38353
38354 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
38355
38356         [BZ #174]
38357         * manual/locale.texi (setlocale): Document LOCPATH.
38358
38359 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38360
38361         [BZ #10210]
38362         * manual/process.texi (execle): Move @dots{} before last argument.
38363
38364 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
38365
38366         [BZ #12047]
38367         * manual/charset.texi (Generic Charset Conversion): Fix typo
38368         (LC_TYPE -> LC_CTYPE).
38369
38370 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
38371
38372         [BZ #5805]
38373         * manual/arith.texi (scalbn): Use @var{} on parameter names.
38374         (scalbnf): Likewise.
38375         (scalbnl): Likewise.
38376         (scalbln): Likewise.
38377         (scalblnf): Likewise.
38378         (scalblnl): Likewise.
38379         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
38380         (vwarnx): Likewise.
38381         (verr): Likewise.
38382         (verrx): Likewise.
38383         * manual/filesys.texi (telldir): Use braces around return type.
38384         * manual/llio.texi (mmap): Add space after comma.
38385         (mmap64): Likewise.
38386         * manual/math.texi (jn): Use @var{} on parameter names.
38387         (jnf): Likewise.
38388         (jnl): Likewise.
38389         (yn): Likewise.
38390         (ynf): Likewise.
38391         (ynl): Likewise.
38392         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
38393         line.
38394         * manual/resource.texi (ulimit): Use @dots{} instead of literal
38395         "...".
38396         (sched_get_priority_min): Remove semicolon on @deftypefun line.
38397         (sched_get_priority_max): Likewise.
38398         * manual/signal.texi (sigvec): Add space after comma.
38399         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
38400         names.
38401         (if_indextoname): Likewise.
38402         (if_freenameindex): Likewise.
38403         (sendto): Use ',' instead of '.' in prototype.
38404         * manual/startup.texi (syscall): Use @dots{} instead of literal
38405         "...".
38406         * manual/stdio.texi (__fpending): Separate initial words of
38407         paragraph from @deftypefun line.
38408         * manual/syslog.texi (syslog): Use @dots{} instead of literal
38409         "...".
38410         (vsyslog): Use @var{} on parameter names.
38411         * manual/terminal.texi (stty): Use @var{} on parameter names.
38412         * manual/users.texi (getutmp): Use @var{} on parameter names.
38413         (getutmpx): Likewise.
38414
38415 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38416
38417         [BZ #6884]
38418         * manual/stdio.texi (fopen): Fix typos in description of
38419         ",ccs=STRING".
38420
38421 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
38422
38423         [BZ #4026]
38424         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
38425         get clock_id definition.
38426
38427 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
38428
38429         [BZ #4822]
38430         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
38431         (madvise): Cast every argument to void on its own.
38432
38433 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38434
38435         [BZ #9902]
38436         * manual/startup.texi (Exit Status): Fix typo.
38437
38438 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38439
38440         [BZ #10140]
38441         * manual/examples/argp-ex1.c: Include <stdlib.h>.
38442         * manual/examples/argp-ex2.c: Likewise.
38443         * manual/examples/argp-ex3.c: Likewise.
38444
38445 2012-02-16  Richard Henderson  <rth@redhat.com>
38446
38447         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
38448         * sysdeps/s390/s390-32/initfini.c: Remove.
38449         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
38450         * sysdeps/s390/s390-64/initfini.c: Remove.
38451
38452 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38453
38454         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
38455         compiler output for sysdeps/generic/initfini.c.
38456         * sysdeps/sh/elf/initfini.c: Remove file.
38457
38458 2012-02-16  David S. Miller  <davem@davemloft.net>
38459
38460         [BZ #11494]
38461         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
38462
38463         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
38464         * sysdeps/sparc/crti.S: New file.
38465         * sysdeps/sparc/crtn.S: New file.
38466         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
38467         * sysdeps/sparc/sparc64/Makefile: Likewise.
38468
38469 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
38470
38471         [BZ #3335]
38472         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
38473
38474 2012-02-15  Roland McGrath  <roland@hack.frob.com>
38475
38476         [BZ #4822]
38477         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
38478
38479         * mach/devstream.c (cookie_io_functions_t): Macro removed.
38480         (write, read, close): Likewise.
38481         Patch by Aurelien Jarno <aurelien@aurel32.net>.
38482
38483 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
38484
38485         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
38486         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
38487         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
38488         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
38489         <bits/signalfd.h>.
38490         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
38491         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38492         bits/signalfd.h.
38493
38494 2012-02-14  Marek Polacek  <polacek@redhat.com>
38495
38496         * sysdeps/x86_64/crti.S: New file.
38497         * sysdeps/x86_64/crtn.S: New file.
38498         * sysdeps/x86_64/elf/initfini.c: Remove file.
38499
38500 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38501
38502         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
38503         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
38504         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
38505         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
38506         <bits/inotify.h>.
38507         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
38508         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38509         bits/inotify.h.
38510
38511 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38512
38513         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
38514         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
38515         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
38516         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
38517         <bits/eventfd.h>.
38518         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
38519         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38520         bits/eventfd.h.
38521
38522 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
38523
38524         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
38525         __feraiseexcept instead of feraiseexcept.
38526
38527         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
38528         nanosleep invocations.
38529         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
38530         strings, and add error checking for a nanosleep invocations.
38531
38532 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38533
38534         Replace FSF snail mail address with URLs, as per GNU coding standards.
38535         Most of the snail mail addresses were wrong anyway, and omitting
38536         them makes the source code easier to maintain.  Almost all of the
38537         changes are to license notices and to locale LC_IDENTIFICATION
38538         addresses, except for this one:
38539         * manual/libc.texinfo: In "Published by", give the FSF's URL,
38540         not its snail mail address.
38541
38542 2012-02-09  Richard Henderson  <rth@twiddle.net>
38543
38544         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
38545         of kernel-features.h.
38546
38547         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
38548
38549 2012-02-08  Marek Polacek  <polacek@redhat.com>
38550
38551         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
38552         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
38553         * sysdeps/gnu/_G_config.h: Likewise.
38554         * sysdeps/generic/_G_config.h: Likewise.
38555
38556 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
38557
38558         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
38559         tests.
38560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38561
38562         * sysdeps/powerpc/powerpc32/crti.S: New file.
38563         * sysdeps/powerpc/powerpc32/crtn.S: New file.
38564         * sysdeps/powerpc/powerpc64/crti.S: New file.
38565         * sysdeps/powerpc/powerpc64/crtn.S: New file.
38566
38567         * Makeconfig (have-initfini): Don't set.
38568         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
38569         * configure.in (nopic_initfini): Don't substitute.
38570         * config.h.in (HAVE_INITFINI): Don't #undef.
38571         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
38572         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
38573
38574 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
38575
38576         Support crti.S and crtn.S provided directly by architectures.
38577         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
38578         [crti.S in sysdirs] (omit-deps): Likewise.
38579         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
38580         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
38581         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
38582         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
38583         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
38584         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
38585         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
38586         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
38587         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
38588         compiler output for sysdeps/generic/initfini.c.
38589         * sysdeps/i386/elf/Makefile: Remove file.
38590         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
38591
38592 2012-02-07  Marek Polacek  <polacek@redhat.com>
38593
38594         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
38595         * sysdeps/gnu/_G_config.h: Likewise.
38596         * sysdeps/mach/hurd/_G_config.h: Likewise.
38597
38598 2012-02-07  Marek Polacek  <polacek@redhat.com>
38599
38600         * math/Makefile (tests): Add tst-CMPLX2.
38601         * math/tst-CMPLX2.c: New file.
38602
38603 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
38604
38605         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38606
38607         * math/libm-test.inc (jn_test): Add missing L suffix.
38608
38609 2012-02-06  Marek Polacek  <polacek@redhat.com>
38610
38611         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
38612         * sysdeps/i386/fpu/e_powf.S: Likewise.
38613         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
38614         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
38615         * sysdeps/i386/fpu/e_acosh.S: Likewise.
38616         * sysdeps/i386/fpu/e_pow.S: Likewise.
38617         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
38618         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
38619         * sysdeps/i386/fpu/s_expm1.S: Likewise.
38620         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
38621         * sysdeps/i386/fpu/e_log2.S: Likewise.
38622         * sysdeps/i386/fpu/e_log2l.S: Likewise.
38623         * sysdeps/i386/fpu/e_scalb.S: Likewise.
38624         * sysdeps/i386/fpu/e_powl.S: Likewise.
38625         * sysdeps/i386/fpu/s_log1p.S: Likewise.
38626         * sysdeps/i386/fpu/e_log10f.S: Likewise.
38627         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
38628         * sysdeps/i386/fpu/e_logl.S: Likewise.
38629         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
38630         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
38631         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
38632         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
38633         * sysdeps/i386/fpu/e_log2f.S: Likewise.
38634         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
38635         * sysdeps/i386/fpu/e_log.S: Likewise.
38636         * sysdeps/i386/fpu/s_cexp.S: Likewise.
38637         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
38638         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
38639         * sysdeps/i386/fpu/e_logf.S: Likewise.
38640         * sysdeps/i386/fpu/e_log10l.S: Likewise.
38641         * sysdeps/i386/fpu/e_atanh.S: Likewise.
38642         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
38643         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
38644         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
38645         * sysdeps/i386/fpu/e_log10.S: Likewise.
38646         * sysdeps/i386/fpu/s_frexp.S: Likewise.
38647         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
38648         * sysdeps/i386/fpu/s_asinh.S: Likewise.
38649         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
38650         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
38651         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
38652         * sysdeps/i386/asm-syntax.h: Likewise.
38653         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
38654         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
38655         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
38656         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
38657         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
38658         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
38659         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
38660         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
38661         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
38662         * sysdeps/powerpc/sysdep.h: Likewise.
38663         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
38664         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
38665
38666 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
38667
38668         [BZ #411]
38669         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
38670
38671 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
38672
38673         * sysdeps/i386/sysdep.h: Include <features.h>.
38674         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
38675         version.
38676
38677 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
38678
38679         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
38680         Define.
38681         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
38682         LOAD_PIC_REG_STR.
38683
38684 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38685
38686         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
38687         (SETUP_PIC_REG): Use GET_PC_THUNK.
38688         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
38689         macro.
38690
38691 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38692
38693         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
38694         for non-PIC compilation.
38695         (SETUP_PIC_REG): Add .p2align directive.
38696         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
38697         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
38698         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38699         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38700         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
38701         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38702         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38703         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38704         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38705         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38706         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38707         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38708         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38709         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38710         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38711         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38712         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38713         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38714         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38715         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38716         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38717         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38718         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38719         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
38720         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
38721         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
38722         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38723         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38724         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38725         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38726         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38727         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38728         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38729         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38730         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38731         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38732         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38733         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38734         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38735         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38736         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38737
38738 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38739
38740         * math/tst-CMPLX.c: Include <stdio.h>.
38741
38742 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
38743
38744         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
38745         float.
38746         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
38747         * sysdeps/sparc/bits/mathdef.h: Likewise.
38748
38749 2012-01-31  Marek Polacek  <polacek@redhat.com>
38750
38751         * libio/libio.h: Don't define _PARAMS.
38752         * locale/programs/config.h: Don't define PARAMS.
38753         * stdlib/strtol_l.c: Likewise.
38754         (__strtol_l): Remove PARAMS from the prototype.
38755
38756 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
38757
38758         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
38759         names.  Just use the correct names.  Remove unnecessary wrapper
38760         functions.
38761         * malloc/arena.c: Likewise.
38762         * malloc/hooks.c: Likewise.
38763
38764         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
38765         ARENA_TEST says not to.  Simplify test for creation of a new arena.
38766         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
38767
38768 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
38769
38770         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
38771         into tail calls.
38772         (update_get_addr): New function.
38773         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
38774         GET_ADDR_MODULE parameter.
38775
38776 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
38777
38778         * crypt/cert.c: Remove __STDC__ conditionals.
38779         * crypt/crypt-entry.c: Likewise.
38780         * crypt/crypt_util.c: Likewise.
38781         * libio/filedoalloc.c: Likewise.
38782         * libio/fileops.c: Likewise.
38783         * libio/genops.c: Likewise.
38784         * libio/iofclose.c: Likewise.
38785         * libio/iofdopen.c: Likewise.
38786         * libio/iofopen.c: Likewise.
38787         * libio/iofopen64.c: Likewise.
38788         * libio/iogetdelim.c: Likewise.
38789         * libio/iopopen.c: Likewise.
38790         * libio/obprintf.c: Likewise.
38791         * libio/oldfileops.c: Likewise.
38792         * libio/oldiofclose.c: Likewise.
38793         * libio/oldiofdopen.c: Likewise.
38794         * libio/oldiofopen.c: Likewise.
38795         * libio/oldiopopen.c: Likewise.
38796         * libio/wfiledoalloc.c: Likewise.
38797         * libio/wgenops.c: Likewise.
38798         * locale/programs/xmalloc.c: Likewise.
38799         * misc/syslog.c: Likewise.
38800         * stdio-common/xbug.c: Likewise.
38801         * string/memchr.c: Likewise.
38802         * string/memcmp.c: Likewise.
38803         * string/memrchr.c: Likewise.
38804         * string/rawmemchr.c: Likewise.
38805         * sysdeps/posix/getcwd.c: Likewise.
38806         * time/strftime_l.c: Likewise.
38807
38808 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
38809
38810         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
38811         * config.make.in (config-cflags-sse2avx): Define.
38812         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
38813         Fix typo.
38814
38815 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
38816
38817         * scripts/config.guess: Update from upstream config git repository.
38818         * scripts/config.sub: Likewise.
38819
38820 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
38821
38822         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
38823         (EM_NUM): Update.
38824         (R_TILEPRO_*, R_TILEGX_*): New macros.
38825
38826         * scripts/firstversions.awk: Fix bug in version range handling.
38827
38828         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
38829
38830         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
38831
38832         * include/sys/epoll.h: New file.
38833         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
38834         libc_hidden_def.
38835
38836 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
38837
38838         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
38839         Avoid unnecessary __WORDSIZE == 64 test.
38840         (fmaxf): Use VEX format if possible.
38841         (fmax): Likewise.
38842         (fminf): Likewise.
38843         (fmin): Likewise.
38844
38845         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
38846         * math/math_private.h: Remove libc_fegetround* and
38847         libc_fesetround*.
38848         * sysdeps/i386/configure.in: Check for -msse2avx.
38849         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
38850         also if SSE2AVX is defined.
38851         Remove libc_fegetround* and libc_fesetround*.
38852         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
38853         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
38854         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
38855         of HAS_YMM_USABLE.
38856         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38857         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38858         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38859         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38860         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38861
38862         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
38863
38864 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38865
38866         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
38867         size is not set.
38868         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
38869
38870 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
38871
38872         [BZ #13618]
38873         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
38874         relocation.
38875         * Makeconfig (libm): Define.
38876         * elf/Makefile: Add rules to build and run tst-relsort1.
38877         * elf/tst-relsort1.c: New file.
38878         * elf/tst-relsort1mod1.c: New file.
38879         * elf/tst-relsort1mod2.c: New file.
38880
38881 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
38882
38883         * math/s_ldexp.c: Remove __STDC__ conditionals.
38884         * math/s_ldexpf.c: Likewise.
38885         * math/s_ldexpl.c: Likewise.
38886         * math/s_nextafter.c: Likewise.
38887         * math/s_nexttowardf.c: Likewise.
38888         * math/s_significand.c: Likewise.
38889         * math/s_significandf.c: Likewise.
38890         * math/s_significandl.c: Likewise.
38891         * math/w_jnl.c: Likewise.
38892         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
38893         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
38894         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
38895         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
38896         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
38897         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
38898         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
38899         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
38900         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
38901         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
38902         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
38903         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
38904         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
38905         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
38906         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
38907         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
38908         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
38909         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
38910         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
38911         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
38912         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
38913         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
38914         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
38915         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
38916         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
38917         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
38918         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
38919         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
38920         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
38921         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
38922         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
38923         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
38924         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
38925         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
38926         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
38927         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
38928         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
38929         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
38930         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
38931         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
38932         * sysdeps/ieee754/k_standard.c: Likewise.
38933         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
38934         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
38935         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
38936         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
38937         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
38938         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
38939         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
38940         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
38941         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
38942         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
38943         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
38944         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
38945         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
38946         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
38947         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
38948         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
38949         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
38950         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
38951         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
38952         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
38953         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
38954         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
38955         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
38956         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
38957         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
38958         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
38959         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
38960         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
38961         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
38962         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
38963         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
38964         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
38965         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
38966         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
38967         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
38968         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
38969         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
38970         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
38971         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
38972         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
38973         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
38974         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
38975         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
38976         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
38977         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
38978         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
38979         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
38980         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
38981         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
38982         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
38983         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
38984         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
38985         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
38986         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
38987         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
38988         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
38989         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
38990         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
38991         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
38992         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
38993         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
38994         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
38995         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
38996         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
38997         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
38998         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
38999         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39000         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39001         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39002         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39003         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39004         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39005         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39006         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39007         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39008         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39009         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39010         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39011         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39012         * sysdeps/ieee754/s_matherr.c: Likewise.
39013         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39014         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39015         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39016         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39017
39018 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39019
39020         * crypt/md5.h: Remove __STDC__ conditionals.
39021         * libio/libioP.h: Likewise.
39022         * locale/programs/config.h: Likewise.
39023         * sysdeps/generic/sysdep.h: Likewise.
39024         * sysdeps/i386/asm-syntax.h: Likewise.
39025         * sysdeps/s390/asm-syntax.h: Likewise.
39026         * sysdeps/unix/sysdep.h: Likewise.
39027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39029
39030 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39031
39032         * libio/libio.h: Remove __STDC__ conditionals.
39033         * malloc/obstack.h: Likewise.
39034         * math/complex.h: Likewise.
39035         * math/math.h: Likewise.
39036         * sysdeps/generic/_G_config.h: Likewise.
39037         * sysdeps/gnu/_G_config.h: Likewise.
39038         * sysdeps/mach/hurd/_G_config.h: Likewise.
39039         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39040         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39041         * sysdeps/sparc/bits/mathdef.h: Likewise.
39042
39043 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39044
39045         [BZ #13583]
39046         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39047         Clean up HAS_* macros.
39048         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39049         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39050         possible.
39051         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39052         HAS_AVX.
39053         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39054         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39055         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39056         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39057         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39058
39059 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39060
39061         * elf/tst-unique3.cc (gets): Remove declaration.
39062         * elf/tst-unique3lib.cc (gets): Likewise.
39063         * elf/tst-unique3lib2.cc (gets): Likewise.
39064         * elf/tst-unique4.cc (gets): Likewise.
39065
39066 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39067
39068         * include/stdio.h: Add C++ protection.  Add gets declarations and
39069         definitions.
39070         * debug/tst-chk1.c: Don't declare gets here.
39071         * stdio-common/tst-gets.c: Likewise.
39072
39073 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39074
39075         * posix/glob: Remove directory.
39076
39077 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39078
39079         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39080
39081 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39082
39083         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39084         of the non-standard EPFNOSUPPORT.
39085
39086 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39087
39088         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39089         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39090         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39091
39092 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39093
39094         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39095
39096 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39097
39098         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39099         transient errors.
39100         * nscd/grpcache.c (cache_addgr): Likewise.
39101         * nscd/hstcache.c (cache_addhst): Likewise.
39102         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39103         * nscd/pwdcache.c (cache_addpw): Likewise.
39104         * nscd/servicescache.c (cache_addserv): Likewise.
39105
39106 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39107
39108         * malloc/malloc.c: Various cleanups.
39109         * malloc/hooks.c: Likewise.
39110
39111         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39112         * stdlib/bug-fmtmsg1.c: New file.
39113
39114         * stdlib/fmtmsg.c (init): Add missing unlock.
39115         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39116
39117 2012-01-12  Marek Polacek  <polacek@redhat.com>
39118
39119         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39120         and _GNU_SOURCE.
39121
39122 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39123
39124         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39125         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39126         macro to ensure uniqueness of label name.
39127         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39128         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39129
39130 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39131
39132         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39133
39134         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39135         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39136         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39137         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39138
39139 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39140
39141         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39142
39143         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39144         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39145         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39146
39147         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39148
39149         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39150         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39151         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39152         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39153
39154         * math/bits/math-finite.h: Add ldexp support.
39155
39156 2012-01-10  Marek Polacek  <polacek@redhat.com>
39157
39158         * locale/programs/localedef.h (show_archive_content): Add noreturn
39159         attribute.
39160
39161 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39162
39163         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39164
39165 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39166
39167         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39168
39169         * io/Makefile (headers): Add bits/poll2.h.
39170
39171 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39172
39173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39174         typo #include statement.
39175
39176 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39177
39178         * include/sys/cdefs.h: Define __attribute_alloc_size.
39179         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39180         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39181         * elf/pldd.c: Likewise.
39182         * iconv/iconv_charmap.c: Likewise.
39183         * iconv/iconvconfig.c: Likewise.
39184         * iconv/strtab.c: Likewise.
39185         * locale/programs/locale.c: Likewise.
39186         * locale/programs/localedef.h: Likewise.
39187         * locale/programs/simple-hash.c: Likewise.
39188         * nscd/nscd.h: Likewise.
39189         * nss/makedb.c: Likewise.
39190         * sysdeps/generic/ldconfig.h: Likewise.
39191         * locale/programs/localedef.c: Remove xmalloc prototype.
39192         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39193
39194 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39195
39196         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39197         appropriate.
39198
39199 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39200
39201         * math/Makefile (tests): Add tst-CMPLX.
39202         * math/tst-CMPLX.c: New file.
39203
39204         * math/complex.h (CMPLXL): Fix typo.
39205
39206         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39207         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39208         GLIBC_2.16.
39209         * debug/tst-chk1.c: Add poll and ppoll tests.
39210         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39211         * include/sys/poll.h: Add hidden proto for ppoll.
39212         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39213         * sysdeps/mach/hurd/ppoll.c: Likewise.
39214         * io/ppoll.c: Likewise.
39215         * debug/poll_chk.c: New file.
39216         * debug/ppoll_chk.c: New file.
39217         * include/bits/poll2.h: New file.
39218         * io/bits/poll2.h: New file.
39219
39220         [BZ #1350]
39221         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39222
39223         * configure.in: static is always set to yes.  Remove.
39224         * config.make.in: Don't set build-static.
39225         * Makeconfig: Remove use of build-static.
39226         * dlfcn/Makefile: Likewise.
39227         * elf/Makefile: Likewise.
39228         * math/Makefile: Likewise.
39229         * misc/Makefile: Likewise.
39230         * nptl/Makefile: Likewise.
39231         * sysdeps/mach/hurd/Makefile: Likewise.
39232
39233         * configure.in: PWD_P is not used anymore.
39234         * config.make.in: Remove PWD_P entry.
39235
39236         * configure.in: Remove last remnants of RANLIB.
39237         No need to check for signed size_t anymore.
39238         Don't set libc_commonpagesize and libc_relro_required here for Alpha
39239         and IA-64.
39240         Remove __builtin_expect test because we require at least gcc 3.4.
39241         * aclocal.m4: Likewise.
39242
39243         * wcsmbs/mbrtoc16.c: Implement using towc function.
39244         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
39245         * wcsmbs/wcsmbsload.c: Likewise.
39246         * iconv/gconv_simple.c: Likewise.
39247         * iconv/gconv_int.h: Likewise.
39248         * iconv/gconv_builtin.h: Likewise.
39249         * iconv/iconv_prog.c: Remove CHAR16 handling.
39250
39251         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
39252
39253         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
39254
39255         * configure.in: Remove --with-elf and --enable-bounded options.
39256         Dont set base_machine for ia64.  More non-ELF conditions removed.
39257         Remove testing and setting of leading underscore information.
39258         * config.make.in (build-bounded): Set to no.
39259         * config.h.in: Remove NO_UNDERSCORES entry.
39260         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
39261         them.
39262         * csu/start.c: Remove !NO_UNDERSCORE code.
39263         * locale/localeinfo.h: Likewise.
39264         * sysdeps/generic/machine-gmon.h: Likewise.
39265         * sysdeps/generic/sysdep.h: Likewise.
39266         * sysdeps/i386/sysdep.h: Likewise.
39267         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39268         * sysdeps/mach/sysdep.h: Likewise.
39269         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39270         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39271         * sysdeps/sh/sysdep.h: Likewise.
39272         * sysdeps/sparc/sparc32/alloca.S: Likewise.
39273         * sysdeps/unix/i386/sysdep.S: Likewise.
39274         * sysdeps/unix/sparc/start.c: Likewise.
39275         * sysdeps/unix/sparc/sysdep.S: Likewise.
39276         * sysdeps/unix/sparc/sysdep.h: Likewise.
39277         * sysdeps/unix/start.c: Likewise.
39278         * sysdeps/unix/x86_64/sysdep.S: Likewise.
39279         * sysdeps/x86_64/sysdep.h: Likewise.
39280
39281 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
39282
39283         [BZ #13553]
39284         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
39285         for non-gcc.
39286         * argp/argp-fmtstream.h: Use const instead __const.
39287         * argp/argp.h: Likewise.
39288         * assert/assert.h: Likewise.
39289         * bits/fenv.h: Likewise.
39290         * bits/sched.h: Likewise.
39291         * bits/sigset.h: Likewise.
39292         * bits/sigthread.h: Likewise.
39293         * catgets/nl_types.h: Likewise.
39294         * conform/data/pthread.h-data: Likewise.
39295         * crypt/crypt-private.h: Likewise.
39296         * crypt/crypt.h: Likewise.
39297         * crypt/crypt_util.c: Likewise.
39298         * ctype/ctype.h: Likewise.
39299         * debug/execinfo.h: Likewise.
39300         * debug/mbsnrtowcs_chk.c: Likewise.
39301         * debug/mbsrtowcs_chk.c: Likewise.
39302         * debug/wcsnrtombs_chk.c: Likewise.
39303         * debug/wcsrtombs_chk.c: Likewise.
39304         * debug/wcstombs_chk.c: Likewise.
39305         * dirent/dirent.h: Likewise.
39306         * dlfcn/dlfcn.h: Likewise.
39307         * elf/neededtest4.c: Likewise.
39308         * grp/grp.h: Likewise.
39309         * gshadow/gshadow.h: Likewise.
39310         * iconv/gconv.h: Likewise.
39311         * iconv/gconv_int.h: Likewise.
39312         * iconv/gconv_simple.c: Likewise.
39313         * iconv/iconv.h: Likewise.
39314         * iconv/loop.c: Likewise.
39315         * iconv/skeleton.c: Likewise.
39316         * include/aio.h: Likewise.
39317         * include/aliases.h: Likewise.
39318         * include/argz.h: Likewise.
39319         * include/arpa/inet.h: Likewise.
39320         * include/assert.h: Likewise.
39321         * include/dirent.h: Likewise.
39322         * include/dlfcn.h: Likewise.
39323         * include/execinfo.h: Likewise.
39324         * include/fcntl.h: Likewise.
39325         * include/fenv.h: Likewise.
39326         * include/glob.h: Likewise.
39327         * include/grp.h: Likewise.
39328         * include/libintl.h: Likewise.
39329         * include/mntent.h: Likewise.
39330         * include/netdb.h: Likewise.
39331         * include/pwd.h: Likewise.
39332         * include/rpc/netdb.h: Likewise.
39333         * include/sched.h: Likewise.
39334         * include/search.h: Likewise.
39335         * include/shadow.h: Likewise.
39336         * include/signal.h: Likewise.
39337         * include/stdio.h: Likewise.
39338         * include/stdlib.h: Likewise.
39339         * include/string.h: Likewise.
39340         * include/sys/socket.h: Likewise.
39341         * include/sys/stat.h: Likewise.
39342         * include/sys/statfs.h: Likewise.
39343         * include/sys/statvfs.h: Likewise.
39344         * include/sys/syslog.h: Likewise.
39345         * include/sys/time.h: Likewise.
39346         * include/sys/uio.h: Likewise.
39347         * include/time.h: Likewise.
39348         * include/unistd.h: Likewise.
39349         * include/utmp.h: Likewise.
39350         * include/wchar.h: Likewise.
39351         * include/wctype.h: Likewise.
39352         * inet/aliases.h: Likewise.
39353         * inet/arpa/inet.h: Likewise.
39354         * inet/netinet/ether.h: Likewise.
39355         * inet/netinet/in.h: Likewise.
39356         * intl/libintl.h: Likewise.
39357         * io/bits/fcntl2.h: Likewise.
39358         * io/fcntl.h: Likewise.
39359         * io/ftw.h: Likewise.
39360         * io/sys/poll.h: Likewise.
39361         * io/sys/stat.h: Likewise.
39362         * io/sys/statfs.h: Likewise.
39363         * io/sys/statvfs.h: Likewise.
39364         * io/utime.h: Likewise.
39365         * libio/bits/stdio.h: Likewise.
39366         * libio/bits/stdio2.h: Likewise.
39367         * libio/libio.h: Likewise.
39368         * libio/libioP.h: Likewise.
39369         * libio/stdio.h: Likewise.
39370         * locale/lc-ctype.c: Likewise.
39371         * locale/locale.h: Likewise.
39372         * login/utmp.h: Likewise.
39373         * malloc/arena.c: Likewise.
39374         * malloc/malloc.c: Likewise.
39375         * malloc/malloc.h: Likewise.
39376         * malloc/mcheck.c: Likewise.
39377         * malloc/mtrace.c: Likewise.
39378         * math/bits/mathcalls.h: Likewise.
39379         * math/fenv.h: Likewise.
39380         * math/math_private.h: Likewise.
39381         * misc/bits/error.h: Likewise.
39382         * misc/bits/syslog.h: Likewise.
39383         * misc/err.h: Likewise.
39384         * misc/error.h: Likewise.
39385         * misc/fstab.h: Likewise.
39386         * misc/mntent.h: Likewise.
39387         * misc/regexp.h: Likewise.
39388         * misc/search.h: Likewise.
39389         * misc/sgtty.h: Likewise.
39390         * misc/sys/mman.h: Likewise.
39391         * misc/sys/syslog.h: Likewise.
39392         * misc/sys/uio.h: Likewise.
39393         * misc/sys/xattr.h: Likewise.
39394         * misc/ttyent.h: Likewise.
39395         * nis/rpcsvc/ypclnt.h: Likewise.
39396         * nss/nss.h: Likewise.
39397         * posix/bits/unistd.h: Likewise.
39398         * posix/fnmatch.h: Likewise.
39399         * posix/glob.h: Likewise.
39400         * posix/sched.h: Likewise.
39401         * posix/spawn.h: Likewise.
39402         * posix/sys/wait.h: Likewise.
39403         * posix/unistd.h: Likewise.
39404         * posix/wordexp.h: Likewise.
39405         * pwd/pwd.h: Likewise.
39406         * resolv/netdb.h: Likewise.
39407         * resource/sys/resource.h: Likewise.
39408         * rt/aio.h: Likewise.
39409         * rt/bits/mqueue2.h: Likewise.
39410         * rt/mqueue.h: Likewise.
39411         * shadow/shadow.h: Likewise.
39412         * signal/signal.h: Likewise.
39413         * socket/send.c: Likewise.
39414         * socket/sendto.c: Likewise.
39415         * socket/sys/socket.h: Likewise.
39416         * stdio-common/printf.h: Likewise.
39417         * stdlib/bits/stdlib.h: Likewise.
39418         * stdlib/fmtmsg.h: Likewise.
39419         * stdlib/monetary.h: Likewise.
39420         * stdlib/stdlib.h: Likewise.
39421         * stdlib/ucontext.h: Likewise.
39422         * streams/stropts.h: Likewise.
39423         * string/argz.h: Likewise.
39424         * string/bits/string2.h: Likewise.
39425         * string/string.h: Likewise.
39426         * string/strings.h: Likewise.
39427         * sunrpc/rpc/auth.h: Likewise.
39428         * sunrpc/rpc/auth_des.h: Likewise.
39429         * sunrpc/rpc/clnt.h: Likewise.
39430         * sunrpc/rpc/netdb.h: Likewise.
39431         * sunrpc/rpc/pmap_clnt.h: Likewise.
39432         * sunrpc/rpc/xdr.h: Likewise.
39433         * sysdeps/generic/inttypes.h: Likewise.
39434         * sysdeps/generic/net/if.h: Likewise.
39435         * sysdeps/generic/sys/swap.h: Likewise.
39436         * sysdeps/gnu/net/if.h: Likewise.
39437         * sysdeps/gnu/utmpx.h: Likewise.
39438         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
39439         * sysdeps/i386/i486/bits/string.h: Likewise.
39440         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
39441         * sysdeps/s390/bits/string.h: Likewise.
39442         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
39443         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
39444         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
39445         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
39446         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
39447         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
39448         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
39449         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
39450         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
39451         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
39452         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
39453         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
39454         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
39455         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
39456         * sysdeps/unix/sysv/linux/readv.c: Likewise.
39457         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
39458         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
39459         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39460         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
39461         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
39462         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39463         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
39464         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
39465         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
39466         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
39467         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
39468         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
39469         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39470         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
39471         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
39472         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
39473         * sysvipc/sys/ipc.h: Likewise.
39474         * sysvipc/sys/msg.h: Likewise.
39475         * sysvipc/sys/sem.h: Likewise.
39476         * sysvipc/sys/shm.h: Likewise.
39477         * termios/termios.h: Likewise.
39478         * time/sys/time.h: Likewise.
39479         * time/time.h: Likewise.
39480         * wcsmbs/bits/wchar2.h: Likewise.
39481         * wcsmbs/uchar.h: Likewise.
39482         * wcsmbs/wchar.h: Likewise.
39483         * wctype/wctype.h: Likewise.
39484
39485         [BZ #13551]
39486         * Makeconfig: Remove all but ELF support including AIX support.
39487         * Makerules: Likewise.
39488         * config.h.in: Likewise.
39489         * config.make.in: Likewise.
39490         * configure: Likewise.
39491         * configure.in: Likewise.
39492         * csu/Makefile: Likewise.
39493         * csu/version.c: Likewise.
39494         * debug/Makefile: Likewise.
39495         * dlfcn/Makefile: Likewise.
39496         * elf/Makefile: Likewise.
39497         * extra-lib.mk: Likewise.
39498         * iconv/Makefile: Likewise.
39499         * include/libc-symbols.h: Likewise.
39500         * include/shlib-compat.h: Likewise.
39501         * resolv/Makefile: Likewise.
39502         * resolv/res_libc.c: Likewise.
39503         * rt/Makefile: Likewise.
39504         * sysdeps/i386/asm-syntax.h: Likewise.
39505         * sysdeps/i386/sysdep.h: Likewise.
39506         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39507         * sysdeps/mach/sysdep.h: Likewise.
39508         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
39509         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
39510         * sysdeps/s390/asm-syntax.h: Likewise.
39511         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39512         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39513         * sysdeps/sh/sysdep.h: Likewise.
39514         * sysdeps/unix/sparc/sysdep.h: Likewise.
39515         * sysdeps/wordsize-32/divdi3.c: Likewise.
39516         * sysdeps/x86_64/sysdep.h: Likewise.
39517
39518         * argp/Versions: Remove _argp_unlock_xxx.
39519
39520         [BZ #13559]
39521         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
39522         * abilist/libBrokenLocale.abilist: Likewise.
39523         * abilist/libanl.abilist: Likewise.
39524         * abilist/libc.abilist: Likewise.
39525         * abilist/libcrypt.abilist: Likewise.
39526         * abilist/libdl.abilist: Likewise.
39527         * abilist/libm.abilist: Likewise.
39528         * abilist/libnsl.abilist: Likewise.
39529         * abilist/libpthread.abilist: Likewise.
39530         * abilist/libresolv.abilist: Likewise.
39531         * abilist/librt.abilist: Likewise.
39532         * abilist/libthread_db.abilist: Likewise.
39533         * abilist/libutil.abilist: Likewise.
39534         * abilist/libnss_db.abilist: New file.
39535
39536         * scripts/abilist.awk: Add support for indirect functions.
39537
39538         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
39539
39540         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
39541
39542         * shlib-versions: Remove entries for ports architectures.
39543
39544         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
39545         files in ports.
39546         * elf/stackguard-macros.h: Remove support for IA-64.
39547         * elf/tst-auditmod1.c: Likewise.
39548         * sysdeps/generic/ldsodefs.h: Likewise.
39549
39550         * sysdeps/unix/sysv/linux/configure.in: Ports should define
39551         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
39552         configure files.
39553
39554         [BZ #13552]
39555         * configure.in: Remove --enable-omitfp support.
39556         * FAQ.in: Adjust.
39557         * config.make.in: Likewise.
39558         * Makeconfig: Likewise.
39559         * manual/install.texi: Likewise.
39560
39561         In case anyone cares, the IA-64 architecture could move to ports.
39562         * sysdeps/ia64/*: Removed.
39563         * sysdeps/unix/sysv/linux/ia64/*: Removed.
39564         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
39565
39566         [BZ #13555]
39567         * configure.in: Remove entries for unsupported architectures.
39568
39569         [BZ #13533]
39570         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
39571         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
39572         routines.
39573         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
39574         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
39575         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
39576         fall back to using wcrtomb.
39577         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
39578         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
39579         renaming.
39580         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
39581         * wcsmbs/tst-c16c32-1.c: New file.
39582
39583         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
39584         local variable.
39585
39586         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
39587
39588         * elf/tst-unique3.cc: Add explicit declaration of gets.
39589         * elf/tst-unique3lib.cc: Likewise.
39590         * elf/tst-unique3lib2.cc: Likewise.
39591         * elf/tst-unique4.cc: Likewise.
39592
39593         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
39594
39595 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
39596
39597         [BZ #13566]
39598         * assert/assert.h (static_assert): Don't define for C++.
39599         * libio/stdio.h (gets): Do declare for C++ <= C++11.
39600         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
39601
39602 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
39603
39604         * iconv/loop.c (single loop): Fix assertion in storing of
39605         remaining bytes.
39606
39607         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
39608
39609 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
39610
39611         * posix/getconf.c: Update copyright year.
39612         * nss/getent.c: Likewise.
39613         * nss/makedb.c: Likewise.
39614         * iconv/iconvconfig.c: Likewise.
39615         * iconv/iconv_prog.c: Likewise.
39616         * elf/ldconfig.c: Likewise.
39617         * elf/pldd.c: Likewise.
39618         * elf/sotruss.ksh: Likewise.
39619         * catgets/gencat.c: Likewise.
39620         * csu/version.c: Likewise.
39621         * elf/ldd.bash.in: Likewise.
39622         * elf/sprof.c (print_version): Likewise.
39623         * locale/programs/locale.c: Likewise.
39624         * locale/programs/localedef.c: Likewise.
39625         * login/programs/pt_chown.c: Likewise.
39626         * nscd/nscd.c (print_version): Likewise.
39627         * debug/xtrace.sh: Likewise.
39628         * malloc/memusage.sh: Likewise.
39629         * malloc/mtrace.pl: Likewise.
39630         * debug/catchsegv.sh: Likewise.
39631
39632 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
39633
39634         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
39635         pure attribute.
39636
39637 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
39638
39639         [BZ #13533]
39640         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
39641         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
39642         transformations.
39643         * iconv/gconv_int.h: Likewise.
39644         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
39645         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
39646         from libc for GLIBC_2.16.
39647         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
39648         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
39649         * wcsmbs/uchar.h: Really define mbstate_t.
39650         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
39651         * wcsmbs/c16rtomb.c: New file.
39652         * wcsmbs/mbrtoc16.c: New file.
39653         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
39654         for C/POSIX locale.
39655         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
39656         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
39657
39658         * wcsmbs/wchar.h: Add missing __restrict.
39659
39660 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
39661
39662         [BZ #13532]
39663         * time/Makefile (routines): Add timespec_get.
39664         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
39665         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
39666         timespec for ISO C11.
39667         * time/timespec_get.c: New file.
39668         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
39669         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
39670
39671         [BZ #13531]
39672         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
39673         * stdlib/stdlib.h: Declare aligned_alloc.
39674         * Versions.def: Add GLIBC_2.16 for libc.
39675         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
39676
39677         [BZ 13527]
39678         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
39679         ISO C11.
39680
39681         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
39682         code.
39683
39684         [BZ #13528]
39685         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
39686
39687         [BZ #13529]
39688         * assert/assert.h (static_assert): Define.
39689
39690         * version.h: Update for 2.16 development version.
39691
39692         [BZ #13526]
39693         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
39694         _ISOC11_SOURCE.
39695
39696         * version.h (RELEASE): Bump for 2.15 release.
39697         * include/features.h (__GLIBC_MINOR__): Bump to 15.
39698
39699         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
39700         Patch by Marek Polacek <mpolacek@redhat.com>.
39701
39702         * bits/byteswap.h: Protect long long constants with __extension__.
39703         * sysdeps/i386/bits/byteswap.h: Likewise.
39704         * sysdeps/ia64/bits/byteswap.h: Likewise.
39705         * sysdeps/s390/bits/byteswap.h: Likewise.
39706         * sysdeps/x86_64/bits/byteswap.h: Likewise.
39707
39708 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39709
39710         [BZ #13540]
39711         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
39712         destination buffer.
39713         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
39714
39715 2011-12-23  Marek Polacek  <polacek@redhat.com>
39716
39717         * elf/dl-addr.c (determine_info): Add inline keyword.
39718         * elf/tst-auditmod4b.c (check_avx): Likewise.
39719         * elf/tst-auditmod6b.c (check_avx): Likewise.
39720         * elf/tst-auditmod6c.c (check_avx): Likewise.
39721         * elf/tst-auditmod7b.c (check_avx): Likewise.
39722
39723 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
39724
39725         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
39726         !__SSE_MATH__.
39727
39728 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39729
39730         [BZ #13540]
39731         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
39732         processing for last bytes.
39733
39734 2011-08-06  Bruno Haible  <bruno@clisp.org>
39735
39736         [BZ #13061]
39737         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
39738         U+0385, not to U+1FEE.
39739
39740         [BZ #13062]
39741         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
39742         entry for U+00A5 U+0301.
39743
39744 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
39745
39746         [BZ #13166]
39747         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
39748         buffer for the output is too small.
39749
39750         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
39751         optimization.
39752
39753         [BZ #13185]
39754         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
39755         SSE flags if possible.
39756
39757 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39758
39759         [BZ #13540]
39760         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
39761         processing for last bytes.
39762
39763 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
39764
39765         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
39766         (syscall-list-default-options, syscall-list-default-condition)
39767         (syscall-list-includes): Define.
39768         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
39769         list of ABIs and options and #if conditions for each ABI.  Do not
39770         handle common syscalls between ABIs specially.
39771         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
39772         Remove.
39773         (syscall-list-variants, syscall-list-32bit-options)
39774         (syscall-list-32bit-condition, syscall-list-64bit-options)
39775         (syscall-list-64bit-condition): Define.
39776         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
39777         (syscall-list-variants, syscall-list-32bit-options)
39778         (syscall-list-32bit-condition, syscall-list-64bit-options)
39779         (syscall-list-64bit-condition): Define.
39780         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
39781         Remove.
39782         (syscall-list-variants, syscall-list-32bit-options)
39783         (syscall-list-32bit-condition, syscall-list-64bit-options)
39784         (syscall-list-64bit-condition): Define.
39785         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
39786         Remove.
39787         (syscall-list-variants, syscall-list-32bit-options)
39788         (syscall-list-32bit-condition, syscall-list-64bit-options)
39789         (syscall-list-64bit-condition): Define.
39790
39791 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
39792
39793         * locale/iso-639.def: Add brx entry.
39794
39795         [BZ #13328]
39796         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
39797         Proposed by Mariusz_Cukr <marcukr@op.pl>.
39798
39799         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
39800         __feraiseexcept_renamed.
39801
39802 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
39803
39804         [BZ #13538]
39805         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
39806         EPOLLET with unsigned values.
39807         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39808         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39809
39810         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
39811         to large cancellation.
39812         * math/s_cacoshf.c: Likewise.
39813         * math/s_cacoshl.c: Likewise.
39814
39815 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
39816
39817         [BZ #13305]
39818         [BZ #12786]
39819         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
39820         * math/s_cacoshf.c: Likewise.
39821         * math/s_cacoshl.c: Likewise.
39822
39823 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
39824
39825         [BZ #13439]
39826         * iconv/gconv.h: Define __GCONV_SWAP.
39827         * iconvdata/unicode.c: The swap bit must be stored in __flags.
39828         * iconvdata/utf-16.c: Likewise.
39829         * iconvdata/utf-32.c: Likewise.
39830
39831 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
39832
39833         [BZ #13524]
39834         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
39835         numerator after shifting it by one limb.
39836
39837 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
39838
39839         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
39840         under [__USE_EXTERN_INLINES].
39841
39842 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
39843
39844         [BZ #13446]
39845         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
39846
39847 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39848
39849         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
39850         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
39851         optimized code.
39852         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
39853         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
39854         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
39855         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
39856         for strncasecmp/strncasecmp_l compilation.
39857         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
39858         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
39859
39860 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
39861
39862         [BZ #13484]
39863         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
39864         of __asm__.
39865
39866 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
39867
39868         [BZ #13506]
39869         * time/tzfile.c (__tzfile_read): Check values from file header.
39870
39871 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
39872
39873         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
39874         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
39875         * powerpc/powerpc32/dl-start.S: Likewise.
39876         * powerpc/powerpc32/elf/start.S: Likewise.
39877         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
39878         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
39879         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
39880         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
39881         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
39882         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
39883         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
39884         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
39885         * powerpc/powerpc32/fpu/s_round.S: Likewise.
39886         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
39887         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
39888         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
39889         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
39890         * powerpc/powerpc32/memset.S: Likewise.
39891         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
39892         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
39893         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
39894         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
39895         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
39896         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
39897         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
39898         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
39899         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
39900         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
39901         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
39902         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39903         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39904
39905 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39906
39907         * math/libm-test.inc: Added more nearbyint tests.
39908         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
39909         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
39910         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
39911         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
39912
39913 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
39914
39915         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
39916         FD_CLOEXEC.
39917
39918 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39919
39920         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
39921         Add wcscpy-ssse3 wcscpy-c.
39922         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
39923         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
39924         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
39925         * sysdeps/x86_64/wcschr.S: New file.
39926         * sysdeps/x86_64/wcsrchr.S: New file.
39927         * string/test-strcmp.c: Remove checking of wcscmp function for
39928         wrong alignments.
39929         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
39930         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
39931         wcsrchr-sse2 wcsrchr-c.
39932         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
39933         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
39934         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
39935         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
39936         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
39937         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
39938         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
39939         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
39940         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
39941         * wcsmbc/wcschr.c (WCSCHR): New macro.
39942
39943 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39944
39945         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
39946         * wcsmbs/test-wcsrchr.c: New file.
39947         * string/test-strrchr.c: Add wcsrchr support.
39948         (WIDE): New macro.
39949         * wcsmbs/test-wcscpy.c: New file.
39950         * string/test-strcpy.c: Add wcscpy support.
39951         (WIDE): New macro.
39952
39953 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
39954
39955         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
39956         the inner loop.
39957
39958 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
39959
39960         [BZ #13472]
39961         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
39962
39963 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
39964
39965         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
39966         Minor optimizations.
39967
39968         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
39969         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
39970         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
39971
39972 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
39973
39974         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
39975         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
39976         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
39977         for gcc to avoid warnings.
39978         * inet/Makefile (tests): Add tst-checks.
39979         * inet/tst-checks.c: New file.
39980
39981         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
39982         warning.
39983
39984         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
39985         __wmemcmp_sse2.
39986
39987         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
39988         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
39989
39990         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
39991
39992 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
39993
39994         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
39995         problem.
39996
39997         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
39998
39999 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40000
40001         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40002         conditional on GCC version.
40003         (__arch_compare_and_exchange_val_8_acq)
40004         (__arch_compare_and_exchange_val_16_acq)
40005         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40006         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40007         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40008
40009 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40010
40011         * sysdeps/sh/backtrace.c: New file.
40012
40013 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40014
40015         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40016         parenthesis.
40017
40018 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40019
40020         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40021         falling back to utime.
40022
40023 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40024
40025         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40026         expectations for float.
40027
40028 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40029
40030         * locale/weight.h (findidx): Add parameter len.
40031         * locale/weightwc.h (findidx): Likewise.
40032         * posix/fnmatch_loop.c (FCT): Adjust caller.
40033         * posix/regcomp.c (build_equiv_class): Likewise.
40034         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40035         * posix/regexec.c (check_node_accept_bytes): Likewise.
40036         * string/strcoll_l.c (STRCOLL): Likewise.
40037         * string/strxfrm_l.c (STRXFRM): Likewise.
40038
40039 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40040
40041         * Makefile.in: Remove CVSOPT handling.
40042         * configure.in: Remove use of AC_REVISION.
40043         * iconvdata/Makefile (distribute): No need to filter out CVS.
40044         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40045         handling.
40046
40047 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40048
40049         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40050         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40051         [USE_AS_STRNCASECMP_L]: Likewise.
40052         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40053         NO_TLS_DIRECT_SEG_REFS.
40054         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40055         Fix argument offsets for non-PIC.
40056         [USE_AS_STRNCASECMP_L]: Likewise.
40057         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40058         NO_TLS_DIRECT_SEG_REFS.
40059
40060 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40061
40062         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40063         O_CLOEXEC.
40064         * locale/loadlocale.c (_nl_load_locale): Likewise.
40065
40066 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40067
40068         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40069         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40070         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40071         (SYSCALL_GETTIME): Set errno on error.
40072
40073         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40074         count references to noai6ai_cached.
40075
40076 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40077
40078         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40079
40080         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40081         FD_CLOEXEC for /proc/self/maps.
40082
40083         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40084         FD_CLOEXEC for /proc/meminfo.
40085
40086         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40087         gai.conf.
40088
40089         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40090         FD_CLOEXEC for given file.
40091
40092         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40093
40094         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40095         FD_CLOEXEC for /etc/hosts.
40096         (_gethtent): Likewise.
40097
40098         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40099
40100         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40101         cancellation and set FD_CLOEXEC for /etc/netgroup.
40102
40103         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40104         reading /etc/publickey.
40105
40106         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40107         allow cancellation when reading /etc/group.
40108
40109         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40110         cancellation.
40111         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40112
40113         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40114         when using data file.
40115
40116         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40117
40118         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40119         (write_nis_obj): Use "c" and "e" in fopen.
40120
40121         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40122
40123         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40124
40125         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40126
40127         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40128
40129         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40130         locale.alias.
40131
40132         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40133
40134         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40135
40136         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40137
40138         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40139         file parsing and set FD_CLOEXEC.
40140
40141 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40142
40143         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40144
40145 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40146
40147         * malloc/arena.c (arena_get2): Don't call reused_arena when
40148         _int_new_arena failed.
40149
40150 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40151
40152         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40153         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40154         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40155         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40156         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40157         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40158         to compile strcasecmp and strncasecmp.
40159         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40160         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40161
40162         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40163
40164 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40165
40166         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40167         locale-defines.sym to gen-as-const-headers.
40168         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40169         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40170         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40171         to compile strcasecmp and strncasecmp.
40172         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40173         strcasecmp_l and strncasecmp_l.
40174         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40175         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40176         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40177         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40178         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40179         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40180         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40181         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40182         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40183         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40184         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40185
40186 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40187
40188         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40189         result of SYSDEP_GETTIME_CPU to retval.
40190         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40191         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40192
40193         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40194         variable.
40195
40196         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40197         mantissa words.
40198         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40199
40200         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40201         from unused variable.
40202
40203         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40204         DWARF definitions.
40205         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40206         for assembling.
40207
40208         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40209         over namespaces.
40210
40211         * sunrpc/rpc_prot.c (rejected): Fix case value.
40212
40213         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40214         unsigned long long int to avoid warnings in shift.
40215
40216         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40217         of use of trans.
40218         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40219         variable tmp.
40220
40221         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40222         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40223         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40224
40225         * nis/nis_table.c (nis_list): Use variable of correct type for
40226         result of __follow_path call.
40227
40228 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40229
40230         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
40231         of math functions ceil, trunc, floor, round, and sqrt, when
40232         avaliable on the platform.
40233         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
40234         name clash.
40235         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
40236         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
40237         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
40238
40239 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
40240
40241         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
40242         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
40243
40244 2011-11-11  Roland McGrath  <roland@hack.frob.com>
40245
40246         * include/unistd.h: Fix __readlink return type.
40247         Reported by Chris Metcalf <cmetcalf@tilera.com>.
40248
40249 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
40250
40251         * stdlib/ucontext.h: Undo last change for makecontext.
40252
40253 2011-11-11  Andreas Schwab  <schwab@redhat.com>
40254
40255         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
40256
40257         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
40258         * setjmp/setjmp.h: Mark functions as non-leaf.
40259         * setjmp/bits/setjmp2.h: Likewise.
40260         * stdlib/ucontext.h: Likewise.
40261
40262 2011-11-10  Andreas Schwab  <schwab@redhat.com>
40263
40264         * malloc/arena.c (_int_new_arena): Don't increment narenas.
40265         (reused_arena): Don't check arena limit.
40266         (arena_get2): Atomically check arena limit.
40267
40268 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
40269
40270         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
40271         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
40272
40273         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
40274         instructions.
40275
40276 2011-11-07  Andreas Schwab  <schwab@redhat.com>
40277
40278         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
40279         handler when locking.
40280
40281         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40282         Fix size of allocated buffer.
40283
40284 2011-11-04  Andreas Schwab  <schwab@redhat.com>
40285
40286         [BZ #10103]
40287         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
40288         declarations for long double functions.
40289         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
40290
40291         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
40292
40293 2011-11-03  Andreas Schwab  <schwab@redhat.com>
40294
40295         * nscd/nscd.c (main): Don't start AVC thread until credentials are
40296         installed.
40297
40298         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
40299         is disabled.
40300
40301 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40302
40303         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
40304
40305 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
40306
40307         * include/alloca.h (stackinfo_alloca_round): Define.
40308         (extend_alloca): Use it.
40309         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
40310         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
40311         here.
40312
40313         * scripts/check-local-headers.sh: Ignore libaudit.h.
40314
40315         * nscd/Makefile (extra-objs): Make recursively expanded.
40316
40317 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
40318
40319         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
40320         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
40321
40322         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
40323         * posix/tst-rfc3484-2.c: Likewise.
40324         * posix/tst-rfc3484-3.c: Likewise.
40325
40326         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
40327         process_vm_writev.
40328         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
40329         process_vm_writev.
40330         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
40331         process_vm_writev from libc using GLIBC_2.15 version.
40332
40333         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
40334
40335 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
40336
40337         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
40338         stack usage.
40339
40340 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
40341
40342         [BZ #13367]
40343         * nss/getent.c (initgroups_keys): Show error message in case no group
40344         names are given.
40345
40346         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
40347         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
40348         __bump_nl_timestamp.
40349         * nscd/connections (nscd_init): When host database is served open
40350         netlink socket and request notification about configuration changes.
40351         (main_loop_poll): Track netlink file descriptor and bump timestamp
40352         in case data becomes available.
40353         (main_loop_epoll): Likewise.
40354         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
40355         (database_pers_head): Add extra_data fileds.
40356         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
40357         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
40358         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
40359         Adjust caller.
40360         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
40361         in6ai data, call __free_in6ai.
40362         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
40363         Add -DHAVE_NETLINK.
40364         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
40365         interface information.  Reuse previous data if netlink timestamp
40366         is not changed.
40367         (__bump_nl_timestamp): New function.
40368         (__free_in6ai): New function.
40369
40370 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
40371
40372         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
40373         close_not_cancel_no_status here.
40374         (__check_pf): Reorganize code a bit to not call close twice if OOM.
40375
40376 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40377
40378         [BZ #13276]
40379         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
40380         return value.
40381
40382         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
40383         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
40384         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
40385
40386 2011-07-03  Andreas Jaeger  <aj@suse.de>
40387
40388         [BZ #10709]
40389         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
40390         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
40391         * math/libm-test.inc (sin_test): Add test case.
40392
40393 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40394
40395         [BZ #13337]
40396         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
40397         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40398
40399         * elf/chroot_canon.c (chroot_canon): Cleanups.
40400
40401         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
40402
40403         [BZ #13335]
40404         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
40405         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40406
40407         * string/test-strchr.c: Make usable for strchrnul testing.
40408         * string/test-strchrnul.c: New file.
40409         * string/Makefile (strop-tests): Add strchrnul.
40410
40411         * po/it.po: Update from translation team.
40412         * po/es.po: Likewise.
40413
40414 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
40415
40416         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
40417         the three constants needed as parameters.  Drop the others.
40418         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
40419         __m128i_strloadu_tolower.
40420         Create and initialize variable zero and use it in all the places
40421         where _mm_setzero_si128 was used.
40422
40423         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
40424         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
40425         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
40426         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
40427         anymore.
40428         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
40429         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
40430         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
40431         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
40432         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
40433         __mpranred, __mptan.
40434         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
40435         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
40436         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
40437         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
40438         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
40439         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
40440         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
40441         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
40442         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
40443
40444 2011-10-28  Andreas Schwab  <schwab@redhat.com>
40445
40446         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
40447         redefine if SHARED.
40448         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
40449
40450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
40451         wide char related routines to wcsmbs subdir.
40452
40453 2011-10-27  Andreas Schwab  <schwab@redhat.com>
40454
40455         [BZ #13344]
40456         * misc/sys/cdefs.h (__THROWNL): Define.
40457         * posix/unistd.h: Use __THREADNL instead of __THREAD
40458         for memory synchronization functions.
40459
40460 2011-10-26  Roland McGrath  <roland@hack.frob.com>
40461
40462         [BZ #13349]
40463         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
40464         doesn't exist.
40465         * manual/stdio.texi (Obstack Streams): Node removed.
40466
40467 2011-10-26  Andreas Schwab  <schwab@redhat.com>
40468
40469         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
40470         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40471         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40472
40473         * math/math_private.h (math_force_eval): Allow non-addressable
40474         arguments.
40475         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
40476
40477 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40478
40479         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
40480         file is not needed.
40481
40482         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
40483         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
40484         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40485         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40486         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40487         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40488         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40489         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
40490         Add AVX variants.
40491         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
40492         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
40493         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
40494         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
40495         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
40496         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
40497         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
40498         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
40499         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
40500         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
40501         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
40502         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
40503         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
40504         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
40505         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
40506         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
40507         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
40508         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
40509         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
40510
40511         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
40512         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
40513
40514         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
40515         place.  Use VEX encoding when compiling for AVX.
40516
40517 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40518
40519         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
40520         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
40521
40522         * string/test-strchr.c (do_test): Don't generate NUL bytes.
40523
40524 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40525
40526         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
40527         useless if() expression.
40528         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
40529         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
40530         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
40531         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40532         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
40533         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40534         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
40535         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
40536         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
40537         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
40538         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
40539         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
40540         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
40541         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
40542         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
40543         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40544         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
40545         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
40546         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
40547
40548         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
40549
40550 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40551
40552         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
40553         condition.
40554         * elf/dl-fini.c (_dl_sort_fini): Likewise.
40555
40556 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40557
40558         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
40559         .text section.  Avoid duplicate constants.
40560         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
40561         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40562         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
40563         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40564         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40565         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40566         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40567         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40568         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
40569         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
40570         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
40571         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
40572         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
40573         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
40574         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
40575         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
40576         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
40577         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
40578         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
40579         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40580         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
40581         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
40582         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
40583         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
40584         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
40585         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
40586         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
40587         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
40588         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
40589         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
40590         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
40591         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
40592         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
40593         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
40594         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
40595         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
40596         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
40597         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
40598         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
40599         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
40600         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
40601         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
40602         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
40603         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
40604         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
40605
40606 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
40607
40608         * sysdeps/x86_64/dla.h: Move to ...
40609         * sysdeps/x86_64/fpu/dla.h: ...here.
40610         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
40611         situations.  Use __builtin_fma only for gcc 4.6 and up.
40612
40613         * config.make.in: Add have-mfma4 entry.
40614         * configure.in: Substitute libc_cv_cc_fma4.
40615         * math/Makefile (dbl-only-routines): Add sincostab.
40616         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
40617         Use __sincostab not sincos.
40618         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
40619         name is a macro.
40620         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40621         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40622         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40623         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
40624         using __copysign.
40625         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
40626         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
40627         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
40628         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
40629         and __inv.
40630         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
40631         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
40632         __copysign.
40633         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
40634         define aliases when function name is a macro.
40635         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
40636         sysdeps/ieee754/dbl-64/sincos.tbl.
40637         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
40638         fma4-enabled routines.
40639         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
40640         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
40641         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
40642         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
40643         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
40644         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
40645         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
40646         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
40647         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
40648         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
40649         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
40650         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
40651         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
40652         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
40653         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
40654         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
40655         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
40656         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
40657         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
40658         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
40659         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
40660         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
40661         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
40662         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
40663         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
40664         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
40665         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
40666         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
40667         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
40668         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
40669
40670         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
40671         rename.
40672         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40673         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40674         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40675         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40676         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40677         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40678         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40679         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40680
40681 2011-10-24  Andreas Schwab  <schwab@redhat.com>
40682
40683         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
40684
40685 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40686
40687         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
40688
40689         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
40690         prediction.
40691         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
40692
40693         * string/strnlen.c: Don't define STRNLEN, reverse logic.
40694         Remove unused variable magic_bits.
40695         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
40696
40697         * string/strnlen.c: Define and use STRNLEN macro.
40698         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
40699         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
40700         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
40701         * wcsmbs/wcslen.c: Define and use WCSLEN.
40702         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
40703         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
40704         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
40705         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
40706         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
40707         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
40708         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
40709
40710 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40711
40712         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40713         strnlen-sse2-no-bsf.
40714         Rename strlen-no-bsf to strlen-sse2-no-bsf.
40715         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
40716         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
40717         Add strnlen support.
40718         (USE_AS_STRNLEN): New macro.
40719         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
40720         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
40721         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
40722         * sysdeps/x86_64/wcslen.S: New file.
40723
40724 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
40725
40726         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
40727         XMM-moves are used for copying on small sizes.
40728
40729 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40730
40731         * wcsmbs/Makefile (strop-tests): Add wcschr.
40732         * wcsmbs/test-wcschr.c: New file.
40733         * string/test-strchr.c: Update.
40734         Add wcschr support.
40735         (WIDE): New macro.
40736
40737 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40738
40739         * wcsmbs/Makefile (strop-tests): Add wcslen.
40740         * wcsmbs/test-wcslen.c: New file.
40741         * string/test-strlen.c: Update.
40742         Add wcslen support.
40743         (WIDE): New macro.
40744
40745 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40746
40747         * po/it.po: Update from translation team.
40748
40749 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40750
40751         * sysdeps/x86_64/wcscmp.S: Update.
40752         Fix wrong comparison semantics.
40753         wcscmp shall use signed comparison not unsigned.
40754         Don't use substraction to avoid overflow bug.
40755         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
40756         * wcsmbc/wcscmp.c: Likewise.
40757         * string/test-strcmp.c: Likewise.
40758         Add new tests to check cases with negative values.
40759
40760 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40761
40762         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
40763         * sysdeps/x86_64/dla.h: ...here.  New file.
40764         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
40765         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40766         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40767         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40768         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40769         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
40770         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40771         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40772         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40773
40774 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
40775
40776         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
40777         __ynl_finite aliases.
40778
40779 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
40780
40781         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40782
40783         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
40784         define DLA_FMA.
40785         [DLA_FMA] (EMULV): Use DLA_FMA.
40786         [DLA_FMA] (MUL12): Use EMULV.
40787         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
40788         that are not needed.
40789         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40790         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40791         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40792         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40793         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40794         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40795         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40796
40797 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
40798
40799         * math/s_nan.c: Undef __nan.
40800         * math/s_nanf.c: Undef __nanf.
40801         * math/s_nanl.c: Undef __nanl.
40802         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
40803         "math_private.h".
40804
40805 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
40806
40807         * math/s_catan.c: Add branch predictions.
40808         * math/s_catanf.c: Likewise.
40809         * math/s_catanh.c: Likewise.
40810         * math/s_catanhf.c: Likewise.
40811         * math/s_catanhl.c: Likewise.
40812         * math/s_catanl.c: Likewise.
40813         * math/s_cexp.c: Likewise.
40814         * math/s_cexpf.c: Likewise.
40815         * math/s_cexpl.c: Likewise.
40816         * math/s_clog.c: Likewise.
40817         * math/s_clog10.c: Likewise.
40818         * math/s_clog10f.c: Likewise.
40819         * math/s_clog10l.c: Likewise.
40820         * math/s_clogf.c: Likewise.
40821         * math/s_clogl.c: Likewise.
40822         * math/s_csqrt.c: Likewise.
40823         * math/s_csqrtf.c: Likewise.
40824         * math/s_csqrtl.c: Likewise.
40825         * math/s_ctanf.c: Likewise.
40826         * math/s_ctanh.c: Likewise.
40827         * math/s_ctanhf.c: Likewise.
40828         * math/s_ctanhl.c: Likewise.
40829         * math/s_ctanl.c: Likewise.
40830
40831         * math/math_private.h: Define __nan, __nanf, __nanl.
40832         * math/s_cacosh.c: Include <math_private.h>.
40833         * math/s_cacoshl.c: Likewise.
40834         * math/s_casinh.c: Likewise.
40835         * math/s_casinhf.c: Likewise.
40836         * math/s_casinhl.c: Likewise.
40837         * math/s_ccos.c: Rely entire on ccosh.
40838         * math/s_ccosf.c: Rely entire on ccoshf.
40839         * math/s_ccosl.c: Rely entirely on ccoshl.
40840         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
40841         Remove tests for FE_INVALID.
40842         * math/s_ccoshf.c: Likewise.
40843         * math/s_ccoshl.c: Likewise.
40844         * math/s_csin.c: Likewise.
40845         * math/s_csinf.c: Likewise.
40846         * math/s_csinh.c Likewise.
40847         * math/s_csinhf.c: Likewise.
40848         * math/s_csinhl.c: Likewise.
40849         * math/s_csinl.c: Likewise.
40850         * math/s_ctan.c: Likewise.
40851         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
40852         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
40853         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
40854
40855 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
40856
40857         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
40858         compilation problems.
40859
40860         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
40861         __builtin_expect.
40862
40863 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
40864
40865         * sysdeps/i386/configure.in: Test for -mfma4 option.
40866         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
40867         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
40868         COMMON_CPUID_INDEX_80000001.
40869         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
40870         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
40871         use it if FMA3 is not supported.
40872         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
40873
40874         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
40875         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
40876
40877 2011-10-20  Andreas Schwab  <schwab@redhat.com>
40878
40879         [BZ #12892]
40880         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
40881         it would create a cycle with a link time dependency.
40882
40883 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
40884
40885         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
40886         instruction.
40887         * string/Makefile (strop-tests): Add rawmemchr.
40888         * string/test-rawmemchr.c: New file.
40889
40890         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
40891         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
40892         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
40893         when compiling str{,n}casecmp and when AVX is available.  Hook up
40894         new optimized code in initializers.
40895
40896 2011-10-19  Andreas Schwab  <schwab@redhat.com>
40897
40898         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
40899         __feraiseexcept instead of feraiseexcept.
40900
40901 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
40902
40903         * math/math_private.h: Define defaults for libc_fetestexcept and
40904         libc_feupdateenv.
40905         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
40906         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
40907         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
40908         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
40909         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
40910         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
40911         libc_fetestexcept and libc_feupdateenv.
40912
40913         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
40914         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
40915         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
40916         * sysdeps/x86_64/fpu/math_private.h: Define special version of
40917         libc_feholdexcept_setround.
40918
40919         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
40920         Add s_nearbyint-c and s_nearbyintf-c.
40921         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
40922         nearbyintf inlines.
40923         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
40924         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
40925         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
40926         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
40927
40928         * math/math_private.h: Define defaults for libc_fegetround,
40929         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
40930         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
40931         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
40932         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
40933         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
40934         standard functions.
40935         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
40936         Remove comments and hacks for old compiler versions.
40937         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
40938         libc_fegetround, libc_fesetround, libc_feholdexcept, and
40939         libc_feholdexceptl.
40940
40941 2011-10-18  Andreas Schwab  <schwab@redhat.com>
40942
40943         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
40944         (__feraiseexcept_renamed): Add __NTH.
40945         (feraiseexcept): Add __NTH.  Rename local variables to fix
40946         namespace violations.
40947
40948 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
40949
40950         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
40951
40952         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
40953
40954         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
40955         recently added interfaces.
40956         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
40957
40958         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
40959         about macro parameter expansion.
40960
40961         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
40962         __NO_MATH_INLINES is defined.  Cleanups.
40963
40964         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
40965         and __floorf is target has SSE4.1.
40966         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
40967         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
40968         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
40969         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
40970
40971         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
40972         name.
40973         (floorf): Likewise.
40974
40975         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
40976
40977 2011-10-17  Andreas Schwab  <schwab@redhat.com>
40978
40979         * misc/sys/cdefs.h: Fix last change.
40980
40981         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
40982         database lookup.
40983
40984 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
40985
40986         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
40987
40988         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
40989         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40990         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
40991         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
40992         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
40993         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
40994         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
40995         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
40996         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
40997         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
40998         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
40999         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41000         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41001         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41002         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41003         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41004         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41005         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41006         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41007         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41008         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41009         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41010
41011         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41012         ceil, ceilf, floor, floorf.
41013
41014         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41015         Perform IRELATIVE relocations last.
41016
41017         * elf/do-rel.h: Add another parameter nrelative, replacing the
41018         local variable with the same name.  Change name of the function
41019         to end in Rel or Rela (uppercase).
41020         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41021         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41022         elf_dynamic_do_##reloc function.
41023
41024 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41025
41026         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41027         is sufficient, at least on modern CPUs.
41028
41029         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41030
41031         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41032         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41033
41034         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41035         __expl_finite.
41036         * math/bits/math-finite.h: Add entries for exp.
41037         * math/e_expl.c: Add __*_finite alias.
41038         * sysdeps/i386/fpu/e_exp.S: Likewise.
41039         * sysdeps/i386/fpu/e_expf.S: Likewise.
41040         * sysdeps/i386/fpu/e_expl.c: Likewise.
41041         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41042         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41043         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41044         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41045         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41046         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41047         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41048
41049         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41050         is sufficient, at least on modern CPUs.
41051
41052         * ctype/ctype-info.c (__ctype_init): Define.
41053         * include/ctype.h (__ctype_init): Declare.
41054         (__ctype_b_loc): The variable is always initialized.
41055         (__ctype_toupper_loc): Likewise.
41056         (__ctype_tolower_loc): Likewise.
41057         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41058         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41059
41060 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41061
41062         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41063
41064         * configure.in: Also look in $cxxmachine/include for C++ system
41065         headers.
41066
41067 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41068
41069         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41070         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41071         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41072         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41073         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41074         (USE_AS_WMEMCMP): New macro.
41075         Fixing indents.
41076         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41077         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41078         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41079         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41080         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41081         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41082         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41083         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41084         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41085         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41086         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41087         (USE_AS_WMEMCMP): New macro.
41088         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41089         * sysdeps/string/test-memcmp.c: Update.
41090         Fix simple_wmemcmp.
41091         Add new tests.
41092         * wcsmbs/wmemcmp.c: Update.
41093         (WMEMCMP): New macro.
41094         Fix overflow bug.
41095
41096 2011-10-12  Andreas Jaeger  <aj@suse.de>
41097
41098         [BZ #13268]
41099         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41100
41101 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41102
41103         * libio/iofwide.c (do_length): Avoid warning.
41104
41105         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41106
41107 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41108
41109         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41110
41111         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41112         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41113         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41114         * sysdeps/i386/i686/fpu/e_log.S: New file.
41115         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41116         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41117
41118         * ctype/ctype.h: Add support for inlined isXXX functions when
41119         compiling C++ code.
41120
41121 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41122
41123         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41124
41125         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41126
41127 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41128
41129         [BZ #13291]
41130         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41131
41132 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41133
41134         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41135         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41136         feraiseexcept.
41137
41138         * sysdeps/x86_64/memrchr.S: Check for zero size.
41139
41140         * string/stratcliff.c: Add memrchr tests.
41141
41142 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41143
41144         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41145         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41146         rawmemchr-sse2 rawmemchr-sse2-bsf.
41147         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41148         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41149         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41150         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41151         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41152         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41153         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41154         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41155         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41156         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41157         * string/memrchr.c (MEMRCHR): New macro.
41158
41159 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41160
41161         Add integration with gcc's -ffinite-math-only and optimize wrapper
41162         functions in libm.
41163         * Versions.def: Define GLIBC_2.15 version for libm.
41164         * math/Makefile (headers): Add bits/math-finite.h.
41165         * math/bits/math-finite.h: New file.
41166         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41167         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41168         * math/e_acoshl.c: Add __*_finite alias.
41169         * math/e_acosl.c: Likewise.
41170         * math/e_asinl.c: Likewise.
41171         * math/e_atan2l.c: Likewise.
41172         * math/e_atanhl.c: Likewise.
41173         * math/e_coshl.c: Likewise.
41174         * math/e_exp10.c: Likewise.
41175         * math/e_exp10f.c: Likewise.
41176         * math/e_exp10l.c: Likewise.
41177         * math/e_exp2l.c: Likewise.
41178         * math/e_fmodl.c: Likewise.
41179         * math/e_gammal_r.c: Likewise.
41180         * math/e_hypotl.c: Likewise.
41181         * math/e_j0l.c: Likewise.
41182         * math/e_j1l.c: Likewise.
41183         * math/e_jnl.c: Likewise.
41184         * math/e_lgammal_r.c: Likewise.
41185         * math/e_log10l.c: Likewise.
41186         * math/e_log2l.c: Likewise.
41187         * math/e_logl.c: Likewise.
41188         * math/e_powl.c: Likewise.
41189         * math/e_sinhl.c: Likewise.
41190         * math/e_sqrtl.c: Likewise.
41191         * math/e_scalb.c: Completely rewritten and optimized.
41192         * math/e_scalbf.c: Likewise.
41193         * math/e_scalbl.c: Likewise.
41194         * math/w_acos.c: Likewise.
41195         * math/w_acosf.c: Likewise.
41196         * math/w_acosl.c: Likewise.
41197         * math/w_acosh.c: Likewise.
41198         * math/w_acoshf.c: Likewise.
41199         * math/w_acoshl.c: Likewise.
41200         * math/w_asin.c: Likewise.
41201         * math/w_asinf.c: Likewise.
41202         * math/w_asinl.c: Likewise.
41203         * math/w_atan2.c: Likewise.
41204         * math/w_atan2f.c: Likewise.
41205         * math/w_atan2l.c: Likewise.
41206         * math/w_atanh.c: Likewise.
41207         * math/w_atanhf.c: Likewise.
41208         * math/w_atanhl.c: Likewise.
41209         * math/w_exp10.c: Likewise.
41210         * math/w_exp10f.c: Likewise.
41211         * math/w_exp10l.c: Likewise.
41212         * math/w_fmod.c: Likewise.
41213         * math/w_fmodf.c: Likewise.
41214         * math/w_fmodl.c: Likewise.
41215         * math/w_j0.c: Likewise.
41216         * math/w_j0f.c: Likewise.
41217         * math/w_j0l.c: Likewise.
41218         * math/w_j1.c: Likewise.
41219         * math/w_j1f.c: Likewise.
41220         * math/w_j1l.c: Likewise.
41221         * math/w_jn.c: Likewise.
41222         * math/w_jnf.c: Likewise.
41223         * math/w_log.c: Likewise.
41224         * math/w_logf.c: Likewise.
41225         * math/w_logl.c: Likewise.
41226         * math/w_log10.c: Likewise.
41227         * math/w_log10f.c: Likewise.
41228         * math/w_log10l.c: Likewise.
41229         * math/w_log2.c: Likewise.
41230         * math/w_log2f.c: Likewise.
41231         * math/w_log2l.c: Likewise.
41232         * math/w_pow.c: Likewise.
41233         * math/w_powf.c: Likewise.
41234         * math/w_powl.c: Likewise.
41235         * math/w_remainder.c: Likewise.
41236         * math/w_remainderf.c: Likewise.
41237         * math/w_remainderl.c: Likewise.
41238         * math/w_scalb.c: Likewise.
41239         * math/w_scalbf.c: Likewise.
41240         * math/w_scalbl.c: Likewise.
41241         * math/w_sqrt.c: Likewise.
41242         * math/w_sqrtf.c: Likewise.
41243         * math/w_sqrtl.c: Likewise.
41244         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
41245         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
41246         used.
41247         * math/math_private.h: Declare __kernel_standard_f.
41248         * math/w_cosh.c: Remove cruft and optimize a bit.
41249         * math/w_coshf.c: Likewise.
41250         * math/w_coshl.c: Likewise.
41251         * math/w_exp2.c: Likewise.
41252         * math/w_exp2f.c: Likewise.
41253         * math/w_exp2l.c: Likewise.
41254         * math/w_hypot.c: Likewise.
41255         * math/w_hypotf.c: Likewise.
41256         * math/w_hypotl.c: Likewise.
41257         * math/w_lgamma.c: Likewise.
41258         * math/w_lgamma_r.c: Likewise.
41259         * math/w_lgammaf.c: Likewise.
41260         * math/w_lgammaf_r.c: Likewise.
41261         * math/w_lgammal.c: Likewise.
41262         * math/w_lgammal_r.c: Likewise.
41263         * math/w_sinh.c: Likewise.
41264         * math/w_sinhf.c: Likewise.
41265         * math/w_sinhl.c: Likewise.
41266         * math/w_tgamma.c: Likewise.
41267         * math/w_tgammaf.c: Likewise.
41268         * math/w_tgammal.c: Likewise.
41269         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
41270         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41271         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
41272         Minor optimizations.  Pretty printing.  Remove cruft.
41273         * sysdeps/i386/fpu/e_acosf.S: Likewise.
41274         * sysdeps/i386/fpu/e_acosh.S: Likewise.
41275         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
41276         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
41277         * sysdeps/i386/fpu/e_acosl.c: Likewise.
41278         * sysdeps/i386/fpu/e_asin.S: Likewise.
41279         * sysdeps/i386/fpu/e_asinf.S: Likewise.
41280         * sysdeps/i386/fpu/e_atan2.S: Likewise.
41281         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
41282         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
41283         * sysdeps/i386/fpu/e_atanh.S: Likewise.
41284         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
41285         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
41286         * sysdeps/i386/fpu/e_exp10.S: Likewise.
41287         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
41288         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
41289         * sysdeps/i386/fpu/e_exp2.S: Likewise.
41290         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
41291         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
41292         * sysdeps/i386/fpu/e_fmod.S: Likewise.
41293         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
41294         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
41295         * sysdeps/i386/fpu/e_hypot.S: Likewise.
41296         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
41297         * sysdeps/i386/fpu/e_log.S: Likewise.
41298         * sysdeps/i386/fpu/e_log10.S: Likewise.
41299         * sysdeps/i386/fpu/e_log10f.S: Likewise.
41300         * sysdeps/i386/fpu/e_log10l.S: Likewise.
41301         * sysdeps/i386/fpu/e_log2.S: Likewise.
41302         * sysdeps/i386/fpu/e_log2f.S: Likewise.
41303         * sysdeps/i386/fpu/e_log2l.S: Likewise.
41304         * sysdeps/i386/fpu/e_logf.S: Likewise.
41305         * sysdeps/i386/fpu/e_logl.S: Likewise.
41306         * sysdeps/i386/fpu/e_pow.S: Likewise.
41307         * sysdeps/i386/fpu/e_powf.S: Likewise.
41308         * sysdeps/i386/fpu/e_powl.S: Likewise.
41309         * sysdeps/i386/fpu/e_remainder.S: Likewise.
41310         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
41311         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
41312         * sysdeps/i386/fpu/e_scalb.S: Likewise.
41313         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
41314         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
41315         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
41316         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
41317         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
41318         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
41319         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41320         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41321         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
41322         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41323         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
41324         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
41325         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
41326         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41327         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
41328         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
41329         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
41330         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41331         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
41332         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
41333         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41334         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
41335         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
41336         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41337         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41338         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
41339         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
41340         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
41341         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
41342         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
41343         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
41344         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41345         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
41346         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
41347         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
41348         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41349         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
41350         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41351         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
41352         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
41353         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
41354         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
41355         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
41356         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
41357         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
41358         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
41359         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
41360         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
41361         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
41362         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
41363         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
41364         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
41365         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
41366         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
41367         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
41368         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
41369         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
41370         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
41371         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41372         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
41373         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
41374         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
41375         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
41376         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
41377         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
41378         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
41379         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
41380         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
41381         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
41382         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
41383         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
41384         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
41385         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
41386         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
41387         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
41388         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
41389         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
41390         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
41391         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
41392         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
41393         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
41394         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
41395         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
41396         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
41397         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
41398         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41399         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
41400         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
41401         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
41402         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41403         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
41404         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41405         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
41406         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41407         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
41408         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
41409         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
41410         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
41411         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
41412         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41413         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41414         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41415         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
41416         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
41417         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
41418         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
41419         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
41420         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
41421         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
41422         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
41423         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
41424         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
41425         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
41426         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
41427         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
41428         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
41429         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
41430         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
41431         (__isnanf): Likewise.
41432         (__isinf_ns): Likewise.
41433         (__isinf_nsf): Likewise.
41434         (__finite): Likewise.
41435         (__finitef): Likewise.
41436         (__ieee754_sqrt): Define as macro.
41437         (__ieee754_sqrtf): Define as macro.
41438         (__ieee754_sqrtl): Define as macro.
41439         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
41440         inlined copy.
41441         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
41442         __FINITE_MATH_ONLY__ consistent.
41443         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
41444
41445 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
41446
41447         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
41448         of rawmemchr.
41449
41450         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
41451
41452 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
41453
41454         * po/ja.po: Update from translation team.
41455
41456 2011-10-08  Roland McGrath  <roland@hack.frob.com>
41457
41458         * locale/programs/locarchive.c (prepare_address_space): New function.
41459         (create_archive, enlarge_archive, open_archive): Use it.
41460
41461         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
41462         inside [SHARED], where it is used.
41463
41464         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
41465
41466         * nss/getent.c (netgroup_keys): Remove unused variable.
41467         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
41468
41469 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
41470
41471         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
41472         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
41473         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
41474         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
41475         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
41476         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
41477         * math/Makefile (libm-calls): Add s_isinf_ns.
41478         * math/divtc3.c: Use __isinf_nsl instead of isinf.
41479         * math/multc3.c: Likewise.
41480         * math/s_casin.c: Likewise.
41481         * math/s_casinf.c: Likewise.
41482         * math/s_casinl.c: Likewise.
41483         * math/s_ccos.c: Likewise.
41484         * math/s_ccosf.c: Likewise.
41485         * math/s_ccosl.c: Likewise.
41486         * math/s_ctan.c: Likewise.
41487         * math/s_ctanf.c: Likewise.
41488         * math/s_ctanh.c: Likewise.
41489         * math/s_ctanhf.c: Likewise.
41490         * math/s_ctanhl.c: Likewise.
41491         * math/s_ctanl.c: Likewise.
41492         * math/w_fmod.c: Likewise.
41493         * math/w_fmodf.c: Likewise.
41494         * math/w_fmodl.c: Likewise.
41495         * math/w_remainder.c: Likewise.
41496         * math/w_remainderf.c: Likewise.
41497         * math/w_remainderl.c: Likewise.
41498         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
41499         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
41500         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
41501         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
41502         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
41503         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
41504         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
41505         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
41506
41507         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
41508         of the number.
41509         * stdio-common/printf_fphex.c: Likewise.
41510         * stdio-common/printf_size.c: Likewise.
41511
41512         * math/e_exp10.c: Include math_private.h using <...> not "...".
41513         * math/e_exp10f.c: Likewise.
41514         * math/e_exp10l.c: Likewise.
41515         * math/e_exp2l.c: Likewise.
41516         * math/e_j0l.c: Likewise.
41517         * math/e_j1l.c: Likewise.
41518         * math/e_jnl.c: Likewise.
41519         * math/e_lgammal_r.c: Likewise.
41520         * math/e_rem_pio2l.c: Likewise.
41521         * math/e_scalb.c: Likewise.
41522         * math/e_scalbf.c: Likewise.
41523         * math/e_scalbl.c: Likewise.
41524         * math/k_cosl.c: Likewise.
41525         * math/k_sinl.c: Likewise.
41526         * math/k_tanl.c: Likewise.
41527         * math/s_cacoshf.c: Likewise.
41528         * math/s_catan.c: Likewise.
41529         * math/s_catanf.c: Likewise.
41530         * math/s_catanh.c: Likewise.
41531         * math/s_catanhf.c: Likewise.
41532         * math/s_catanhl.c: Likewise.
41533         * math/s_catanl.c: Likewise.
41534         * math/s_ccosh.c: Likewise.
41535         * math/s_ccoshf.c: Likewise.
41536         * math/s_ccoshl.c: Likewise.
41537         * math/s_cexp.c: Likewise.
41538         * math/s_cexpf.c: Likewise.
41539         * math/s_cexpl.c: Likewise.
41540         * math/s_clog.c: Likewise.
41541         * math/s_clog10.c: Likewise.
41542         * math/s_clog10f.c: Likewise.
41543         * math/s_clog10l.c: Likewise.
41544         * math/s_clogf.c: Likewise.
41545         * math/s_clogl.c: Likewise.
41546         * math/s_csin.c: Likewise.
41547         * math/s_csinf.c: Likewise.
41548         * math/s_csinh.c: Likewise.
41549         * math/s_csinhf.c: Likewise.
41550         * math/s_csinhl.c: Likewise.
41551         * math/s_csinl.c: Likewise.
41552         * math/s_csqrt.c: Likewise.
41553         * math/s_csqrtf.c: Likewise.
41554         * math/s_csqrtl.c: Likewise.
41555         * math/s_ctan.c: Likewise.
41556         * math/s_ctanf.c: Likewise.
41557         * math/s_ctanh.c: Likewise.
41558         * math/s_ctanhf.c: Likewise.
41559         * math/s_ctanhl.c: Likewise.
41560         * math/s_ctanl.c: Likewise.
41561         * math/s_ldexp.c: Likewise.
41562         * math/s_ldexpf.c: Likewise.
41563         * math/s_ldexpl.c: Likewise.
41564         * math/s_significand.c: Likewise.
41565         * math/s_significandf.c: Likewise.
41566         * math/s_significandl.c: Likewise.
41567         * math/w_acos.c: Likewise.
41568         * math/w_acosf.c: Likewise.
41569         * math/w_acosh.c: Likewise.
41570         * math/w_acoshf.c: Likewise.
41571         * math/w_acoshl.c: Likewise.
41572         * math/w_acosl.c: Likewise.
41573         * math/w_asin.c: Likewise.
41574         * math/w_asinf.c: Likewise.
41575         * math/w_asinl.c: Likewise.
41576         * math/w_atan2.c: Likewise.
41577         * math/w_atan2f.c: Likewise.
41578         * math/w_atan2l.c: Likewise.
41579         * math/w_atanh.c: Likewise.
41580         * math/w_atanhf.c: Likewise.
41581         * math/w_atanhl.c: Likewise.
41582         * math/w_cosh.c: Likewise.
41583         * math/w_coshf.c: Likewise.
41584         * math/w_coshl.c: Likewise.
41585         * math/w_dremf.c: Likewise.
41586         * math/w_exp10.c: Likewise.
41587         * math/w_exp10f.c: Likewise.
41588         * math/w_exp10l.c: Likewise.
41589         * math/w_exp2.c: Likewise.
41590         * math/w_exp2f.c: Likewise.
41591         * math/w_fmod.c: Likewise.
41592         * math/w_fmodf.c: Likewise.
41593         * math/w_fmodl.c: Likewise.
41594         * math/w_hypot.c: Likewise.
41595         * math/w_hypotf.c: Likewise.
41596         * math/w_hypotl.c: Likewise.
41597         * math/w_j0.c: Likewise.
41598         * math/w_j0f.c: Likewise.
41599         * math/w_j0l.c: Likewise.
41600         * math/w_j1.c: Likewise.
41601         * math/w_j1f.c: Likewise.
41602         * math/w_j1l.c: Likewise.
41603         * math/w_jn.c: Likewise.
41604         * math/w_jnf.c: Likewise.
41605         * math/w_jnl.c: Likewise.
41606         * math/w_lgamma.c: Likewise.
41607         * math/w_lgamma_r.c: Likewise.
41608         * math/w_lgammaf.c: Likewise.
41609         * math/w_lgammaf_r.c: Likewise.
41610         * math/w_lgammal.c: Likewise.
41611         * math/w_lgammal_r.c: Likewise.
41612         * math/w_log.c: Likewise.
41613         * math/w_log10.c: Likewise.
41614         * math/w_log10f.c: Likewise.
41615         * math/w_log10l.c: Likewise.
41616         * math/w_log2.c: Likewise.
41617         * math/w_log2f.c: Likewise.
41618         * math/w_log2l.c: Likewise.
41619         * math/w_logf.c: Likewise.
41620         * math/w_logl.c: Likewise.
41621         * math/w_pow.c: Likewise.
41622         * math/w_powf.c: Likewise.
41623         * math/w_powl.c: Likewise.
41624         * math/w_remainder.c: Likewise.
41625         * math/w_remainderf.c: Likewise.
41626         * math/w_remainderl.c: Likewise.
41627         * math/w_scalb.c: Likewise.
41628         * math/w_scalbf.c: Likewise.
41629         * math/w_scalbl.c: Likewise.
41630         * math/w_sinh.c: Likewise.
41631         * math/w_sinhf.c: Likewise.
41632         * math/w_sinhl.c: Likewise.
41633         * math/w_sqrt.c: Likewise.
41634         * math/w_sqrtf.c: Likewise.
41635         * math/w_sqrtl.c: Likewise.
41636         * math/w_tgamma.c: Likewise.
41637         * math/w_tgammaf.c: Likewise.
41638         * math/w_tgammal.c: Likewise.
41639
41640         * po/ja.po: Update from translation team.
41641
41642 2011-09-29  Andreas Jaeger  <aj@suse.de>
41643
41644         [BZ #13179]
41645         * sunrpc/netname.c (netname2host): Fix logic.
41646
41647         [BZ #6779]
41648         [BZ #6783]
41649         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
41650         correctly.
41651         * math/w_remainder.c (__remainder): Likewise.
41652         * math/w_remainderf.c (__remainderf): Likewise.
41653         * math/libm-test.inc (remainder_test): Add test cases.
41654
41655 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41656
41657         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
41658         sdiv_qrnnd.
41659
41660 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
41661
41662         * string/test-memcmp.c: Avoid unncessary #defines.
41663         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41664
41665 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41666
41667         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
41668         Use new sse2 version for core i3 - i7 as it's faster
41669         than sse42 version.
41670         (bit_Prefer_PMINUB_for_stringop): New.
41671         * sysdeps/x86_64/rawmemchr.S: Update.
41672         Replace with faster SSE2 version.
41673         * sysdeps/x86_64/memrchr.S: New file.
41674         * sysdeps/x86_64/memchr.S: Update.
41675         Replace with faster SSE2 version.
41676
41677 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
41678
41679         * elf/dl-load.c (lose): Add cast to avoid warning.
41680
41681 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
41682
41683         * po/ca.po: Update from translation team.
41684
41685         * inet/getnetgrent_r.c: Hook up nscd.
41686         * nscd/Makefile (routines): Add nscd_netgroup.
41687         (nscd-modules): Add netgroupcache.
41688         (CFLAGS-netgroupcache.c): Define.
41689         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
41690         (cache_search): Add const to second parameter.
41691         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
41692         INNETGR.
41693         (dbs): Add netgrdb entry.
41694         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
41695         (verify_persistent_db): Handle netgrdb.
41696         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
41697         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
41698         GETFDNETGR.
41699         (netgroup_response_header): Define.
41700         (innetgroup_response_header): Define.
41701         (datahead): Add netgroup_response_header and innetgroup_response_header
41702         elements.
41703         * nscd/nscd.conf: Add entries for netgroup cache.
41704         * nscd/nscd.h (dbtype): Add netgrdb.
41705         (_PATH_NSCD_NETGROUP_DB): Define.
41706         (netgroup_iov_disabled): Declare.
41707         (xmalloc, xcalloc, xrealloc): Move declarations here.
41708         (cache_search): Adjust prototype.
41709         Add netgroup-related prototypes.
41710         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
41711         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
41712         (__nscd_innetgr): Declare.
41713         * nscd/selinux.c (perms): Use access_vector_t as element type and
41714         add netgroup-related initializers.
41715         * nscd/netgroupcache.c: New file.
41716         * nscd/nscd_netgroup.c: New file.
41717         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
41718         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
41719         For four parameters use innetgr.
41720         * nss/nss_files/files-init.c: Add definition and callback for netgr.
41721         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
41722         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
41723         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
41724
41725         * nscd/connections.c (register_traced_file): Don't register file
41726         for disabled databases.
41727
41728 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
41729
41730         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
41731
41732         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
41733         from tree and freeing node.
41734
41735 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
41736
41737         * nss/nsswitch.c (__nss_database_lookup): Handle
41738         nss_parse_service_list out of memory case.
41739
41740 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
41741
41742         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
41743         out of memory case.
41744
41745 2011-10-04  Andreas Schwab  <schwab@redhat.com>
41746
41747         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
41748         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
41749         pass it down.
41750         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
41751         elf_machine_rela, elf_machine_lazy_rel.
41752         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
41753         (ELF_DYNAMIC_DO_REL): Likewise.
41754         (ELF_DYNAMIC_DO_RELA): Likewise.
41755         (ELF_DYNAMIC_RELOCATE): Likewise.
41756         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
41757         to ELF_DYNAMIC_DO_REL.
41758         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
41759         (dl_main): In trace mode always set __RTLD_NOIFUNC.
41760         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
41761         elf_machine_rela.
41762         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
41763         skip_ifunc, don't call ifunc function if non-zero.
41764         (elf_machine_rela): Likewise.
41765         (elf_machine_lazy_rel): Likewise.
41766         (elf_machine_lazy_rela): Likewise.
41767         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
41768         (elf_machine_lazy_rel): Likewise.
41769         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
41770         Likewise.
41771         (elf_machine_lazy_rel): Likewise.
41772         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
41773         Likewise.
41774         (elf_machine_lazy_rel): Likewise.
41775         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
41776         (elf_machine_lazy_rel): Likewise.
41777         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
41778         (elf_machine_lazy_rel): Likewise.
41779         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
41780         (elf_machine_lazy_rel): Likewise.
41781         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
41782         (elf_machine_lazy_rel): Likewise.
41783         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
41784         (elf_machine_lazy_rel): Likewise.
41785         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
41786         (elf_machine_lazy_rel): Likewise.
41787
41788 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
41789
41790         * nss/nss_files/files-init.c (_nss_files_init): Use static
41791         initialization for all the *_traced_file variables.
41792
41793 2011-09-28  Andreas Schwab  <schwab@redhat.com>
41794
41795         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41796
41797 2011-09-27  Roland McGrath  <roland@hack.frob.com>
41798
41799         [BZ #13226]
41800         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
41801
41802 2011-09-27  Andreas Schwab  <schwab@redhat.com>
41803
41804         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41805         Reread the line before reparsing it.
41806
41807 2011-09-26  Andreas Schwab  <schwab@redhat.com>
41808
41809         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
41810
41811 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
41812             Maxim Kuvyrkov  <maxim@codesourcery.com>
41813             Joseph Myers  <joseph@codesourcery.com>
41814
41815         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
41816         if needed for __stack_chk_guard.
41817
41818 2011-09-19  Roland McGrath  <roland@hack.frob.com>
41819
41820         * sysdeps/posix/spawni.c (script_execute): Always define it.
41821         It will be optimized away if unused.
41822         (maybe_script_execute): New function.
41823         (__spawni): Call it.
41824
41825         * Makerules: Don't include tls.make.
41826         (config-tls): Always set to thread.
41827         * tls.make.c: File removed.
41828
41829 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
41830
41831         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
41832         * config.make.in (CPPFLAGS-config): New substituted variable.
41833
41834 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
41835
41836         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
41837
41838         [BZ #13192]
41839         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
41840         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
41841
41842 2011-09-15  Roland McGrath  <roland@hack.frob.com>
41843
41844         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
41845         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
41846         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
41847         (CALL_FAIL): Likewise.
41848         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
41849         (CALL_FAIL): Macro removed.
41850         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
41851
41852 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
41853
41854         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
41855         for __FINITE_MATH_ONLY__ == 1.
41856
41857 2011-09-15  Andreas Schwab  <schwab@redhat.com>
41858
41859         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
41860         __ieee754_sqrt instead of sqrt.
41861         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
41862         __ieee754_sqrtf instead of sqrtf.
41863         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
41864         __floorf instead of floorf.
41865         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
41866         __floorf, __truncf instead of floorf, truncf.
41867
41868 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
41869
41870         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
41871
41872         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
41873         __extern_always_inline.
41874         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
41875         32-bit.
41876
41877 2011-09-14  Andreas Schwab  <schwab@redhat.com>
41878
41879         * elf/rtld.c (dl_main): Also relocate in dependency order when
41880         doing symbol dependency testing.
41881
41882 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
41883
41884         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
41885         Always define `refsym'.
41886
41887 2011-09-13  Andreas Schwab  <schwab@redhat.com>
41888
41889         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
41890         (__FD_ELT): Renamed from __FDELT.
41891         * misc/bits/select2.h (__FD_ELT): Likewise.
41892         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
41893         __FD_MASK instead of __FDELT, __FDMASK.
41894         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
41895         Likewise.
41896         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
41897         Likewise.
41898
41899         * elf/Makefile (gen-ldd): Fix pattern.
41900
41901         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
41902         (init_tls): Likewise.
41903
41904 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
41905
41906         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
41907
41908 2011-09-12  Andreas Schwab  <schwab@redhat.com>
41909
41910         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
41911         `struct cmsghdr *' instead of `void *'.
41912         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
41913         Likewise.
41914
41915 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
41916
41917         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
41918         if non-absolute.
41919         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
41920         ldd_rewrite_script.
41921
41922 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
41923
41924         * configure.in: Remove --with-tls option.
41925         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
41926         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
41927         out in case it is missing.
41928         * sysdeps/ia64/elf/configure.in: Likewise.
41929         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
41930         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
41931         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
41932         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
41933         * sysdeps/sh/elf/configure.in: Likewise.
41934         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
41935         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
41936         * sysdeps/x86_64/elf/configure.in: Likewise.
41937         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
41938         * sysdeps/mach/hurd/tls.h: Likewise.
41939
41940         [BZ #13067]
41941         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
41942
41943         [BZ #13090]
41944         * configure.in: Fix use of AC_INIT.
41945
41946         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
41947
41948 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
41949
41950         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
41951         __set_errno.
41952         * malloc/hooks.c: Likewise.
41953
41954         [BZ #11929]
41955         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
41956         variables statically.
41957         (narenas): Initialize.
41958         (list_lock): Initialize.
41959         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
41960         initializtion of main_arena and list_lock.  Small cleanups.
41961         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
41962         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
41963         Add initializers to main_arena and mp_.
41964         (malloc_state): Remove pagesize member.  Change all users to use
41965         GLRO(dl_pagesize).
41966
41967         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
41968         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
41969         is always initialized.
41970
41971         * malloc/malloc.c: Removed unused configurations and dead code.
41972         * malloc/arena.c: Likewise.
41973         * malloc/hooks.c: Likewise.
41974         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
41975
41976         * include/tls.h: Removed.  USE___THREAD must always be defined.
41977         * bits/libc-tsd.h: Don't handle !USE___THREAD.
41978         * elf/dl-libc.c: Likewise.
41979         * elf/dl-tsd.c: Likewise.
41980         * include/errno.h: Likewise.
41981         * include/netdb.h: Likewise.
41982         * include/resolv.h: Likewise.
41983         * inet/herrno-loc.c: Likewise.
41984         * inet/herrno.c: Likewise.
41985         * malloc/arena.c: Likewise.
41986         * malloc/hooks.c: Likewise.
41987         * malloc/malloc.c: Likewise.
41988         * resolv/res-state.c: Likewise.
41989         * resolv/res_libc.c: Likewise.
41990         * sysdeps/i386/dl-machine.h: Likewise.
41991         * sysdeps/ia64/dl-machine.h: Likewise.
41992         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
41993         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
41994         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
41995         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
41996         * sysdeps/sh/dl-machine.h: Likewise.
41997         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
41998         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
41999         * sysdeps/unix/i386/sysdep.S: Likewise.
42000         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42001         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42002         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42003         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42004         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42005         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42006         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42007         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42008         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42009         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42010         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42011         * sysdeps/x86_64/dl-machine.h: Likewise.
42012         * tls.make.c: Likewise.
42013
42014         * configure.in: Remove --with-__thread option.  Make tests for
42015         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42016         tls_model attribute fail if no support is available.  Remove
42017         USE_IN_LIBIO.
42018         * Makeconfig: Adjust for dropped configure option.  All features are
42019         now mandatory.
42020         * Makerules: Likewise.
42021         * Versions.def: Likewise.
42022         * argp/argp-fmtstream.c: Likewise.
42023         * argp/argp-fmtstream.h: Likewise.
42024         * argp/argp-help.c: Likewise.
42025         * assert/assert.c: Likewise.
42026         * config.h.in: Likewise.
42027         * config.make.in: Likewise.
42028         * configure: Likewise.
42029         * configure.in: Likewise.
42030         * csu/Versions: Likewise.
42031         * csu/init.c: Likewise.
42032         * elf/tst-audit2.c: Likewise.
42033         * elf/tst-tls10.c: Likewise.
42034         * elf/tst-tls10.h: Likewise.
42035         * elf/tst-tls11.c: Likewise.
42036         * elf/tst-tls12.c: Likewise.
42037         * elf/tst-tls14.c: Likewise.
42038         * elf/tst-tlsmod11.c: Likewise.
42039         * elf/tst-tlsmod12.c: Likewise.
42040         * elf/tst-tlsmod13.c: Likewise.
42041         * elf/tst-tlsmod13a.c: Likewise.
42042         * elf/tst-tlsmod14a.c: Likewise.
42043         * elf/tst-tlsmod15b.c: Likewise.
42044         * elf/tst-tlsmod16a.c: Likewise.
42045         * elf/tst-tlsmod16b.c: Likewise.
42046         * elf/tst-tlsmod7.c: Likewise.
42047         * elf/tst-tlsmod8.c: Likewise.
42048         * elf/tst-tlsmod9.c: Likewise.
42049         * gmon/gmon.c: Likewise.
42050         * grp/fgetgrent_r.c: Likewise.
42051         * grp/putgrent.c: Likewise.
42052         * hurd/fopenport.c: Likewise.
42053         * include/libc-symbols.h: Likewise.
42054         * include/tls.h: Likewise.
42055         * intl/gettextP.h: Likewise.
42056         * intl/loadinfo.h: Likewise.
42057         * locale/global-locale.c: Likewise.
42058         * locale/localeinfo.h: Likewise.
42059         * mach/devstream.c: Likewise.
42060         * malloc/arena.c: Likewise.
42061         * malloc/set-freeres.c: Likewise.
42062         * misc/err.c: Likewise.
42063         * misc/getttyent.c: Likewise.
42064         * misc/mntent_r.c: Likewise.
42065         * posix/getopt.c: Likewise.
42066         * posix/wordexp.c: Likewise.
42067         * pwd/fgetpwent_r.c: Likewise.
42068         * resolv/Versions: Likewise.
42069         * resolv/res_hconf.c: Likewise.
42070         * shadow/fgetspent_r.c: Likewise.
42071         * shadow/putspent.c: Likewise.
42072         * stdio-common/printf_fphex.c: Likewise.
42073         * stdio-common/tmpfile.c: Likewise.
42074         * stdlib/abort.c: Likewise.
42075         * stdlib/fmtmsg.c: Likewise.
42076         * sunrpc/auth_unix.c: Likewise.
42077         * sunrpc/clnt_perr.c: Likewise.
42078         * sunrpc/clnt_tcp.c: Likewise.
42079         * sunrpc/clnt_udp.c: Likewise.
42080         * sunrpc/clnt_unix.c: Likewise.
42081         * sunrpc/openchild.c: Likewise.
42082         * sunrpc/svc_simple.c: Likewise.
42083         * sunrpc/svc_tcp.c: Likewise.
42084         * sunrpc/svc_udp.c: Likewise.
42085         * sunrpc/svc_unix.c: Likewise.
42086         * sunrpc/xdr.c: Likewise.
42087         * sunrpc/xdr_array.c: Likewise.
42088         * sunrpc/xdr_rec.c: Likewise.
42089         * sunrpc/xdr_ref.c: Likewise.
42090         * sunrpc/xdr_stdio.c: Likewise.
42091
42092 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42093
42094         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42095
42096 2011-07-03  Andreas Jaeger  <aj@suse.de>
42097
42098         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42099         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42100         regenerate with gen-libm-tests.pl.
42101
42102 2010-05-12  Petr Baudis  <pasky@suse.cz>
42103
42104         [BZ #11589]
42105         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42106         around j0() zero points by switching to j1().
42107         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42108         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42109         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42110         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42111
42112 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42113
42114         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42115         instead of 0.
42116         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42117         instead of 0.
42118         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42119         Patch in part by Pavel Roskin <proski@gnu.org>.
42120
42121         [BZ #13138]
42122         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42123         realloc.
42124         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42125         Free memory block if necessary.
42126
42127         [BZ #12847]
42128         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42129         be NULL.  Don't lock in this case.
42130
42131 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42132
42133         * elf/elf.h (ELFOSABI_GNU): New macro.
42134         (ELFOSABI_LINUX): Define to that.
42135
42136 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42137
42138         * string/strncat.c (strncat): Undef the symbol in case it has been
42139         defined in bits/string.h.
42140
42141 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42142
42143         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42144
42145         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42146         link map.
42147
42148 2011-08-17  Andreas Jaeger  <aj@suse.de>
42149
42150         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42151
42152 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42153             Ian Lance Taylor  <iant@google.com>
42154
42155         * math/libm-test.inc (lround_test): New testcase.
42156         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42157
42158 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42159
42160         * Makefile: Remove support for automatic cvs check-ins.
42161         * Makerules: Likewise.
42162         * config.make.in: Likewise.
42163         * configure.in: Likewise.
42164         * intl/Makefile: Likewise.
42165         * locale/Makefile: Likewise.
42166         * po/Makefile: Likewise.
42167         * posix/Makefile: Likewise.
42168         * sysdeps/gnu/Makefile: Likewise.
42169         * sysdeps/mach/hurd/Makefile: Likewise.
42170         * sysdeps/sparc/sparc32/Makefile: Likewise.
42171
42172         [BZ #13118]
42173         * posix/Makefile (bug-regex32-ENV): Define.
42174         Patch by John Stanley <jpsinthemix@verizon.net>.
42175
42176         * misc/Makefile (headers): Add bits/select2.h.
42177         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42178         * misc/bits/select2.h: New file.
42179         * include/bits/select2.h: New file.
42180         * debug/Makefile (routines): Add fdelt_chk.
42181         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42182         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42183         FD_ISSET.
42184         * debug/fdelt_chk.c: New file.
42185
42186         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42187         * wcsmbs/test-wmemcmp.c: Likewise.
42188         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42189         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42190
42191 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42192
42193         * string/Makefile (strop-tests): Add memcmp.
42194         * string/test-wmemcmp.c: New file.
42195         * string/test-memcmp.c: Add wmemcmp support.
42196
42197 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42198
42199         [BZ #13153]
42200         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42201         2011-07-19 change.
42202
42203         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42204         garbage value in a __mach_port_mod_refs call in the cases of the
42205         task-self and thread-self ports.
42206
42207 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42208
42209         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42210
42211 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42212
42213         * elf/dl-load.c (lose): Check for non-null L.
42214
42215 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42216
42217         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42218
42219         * elf/dl-libc.c (dlerror_run): Pass back error code from
42220         dl_catch_error.
42221
42222         [BZ #13123]
42223         * elf/dl-load.c (lose): Free l_origin if it is valid.
42224
42225         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
42226         names.
42227         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
42228         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42229         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42230         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42231         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
42232         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
42233
42234 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42235
42236         * sysdeps/powerpc/fpu/e_hypot.c: New file.
42237         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
42238         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
42239         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
42240         * sysdeps/powerpc/fpu/k_cosf.c: New file.
42241         * sysdeps/powerpc/fpu/k_sinf.c: New file.
42242         * sysdeps/powerpc/fpu/s_cosf.c: New file.
42243         * sysdeps/powerpc/fpu/s_sinf.c: New file.
42244         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
42245         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
42246
42247 2011-08-15  Alan Modra  <amodra@gmail.com>
42248
42249         [BZ #13092]
42250         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
42251         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
42252         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
42253         ppc_mcount to static-only-routines.
42254         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
42255         __mcount_internal.
42256         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
42257         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
42258
42259 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
42260
42261         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
42262         for finite and infinity parameters.
42263
42264 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
42265
42266         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
42267         and add nop instructions for throughput optimization.
42268         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42269
42270 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
42271
42272         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
42273         aligned copy for power7 with vector-scalar instructions.
42274         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42275
42276 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
42277
42278         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
42279         AVX check.
42280
42281 2011-09-07  Andreas Schwab  <schwab@redhat.com>
42282
42283         [BZ #13144]
42284         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
42285         last change.
42286
42287 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42288
42289         * sysdeps/unix/sysv/linux/x86_64/init-first.c
42290         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
42291         syscall wrapper around clock_gettime in __vdso_clock_gettime.
42292         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
42293         clock_gettime.
42294
42295 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42296
42297         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
42298         Forgot to demangle the pointer.
42299
42300         * sysdeps/i386/sysdep.h: Define atom_text_section.
42301         * sysdeps/x86_64/sysdep.h: Likewise.
42302         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
42303         section with atom_text_section.
42304         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42305         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42306         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
42307         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42308         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
42309
42310         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
42311         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
42312         already be defined.  Change to take two parameters and don't assign
42313         result to variable.  Adjust all users.
42314         Define INTERNAL_GETTIME if not already defined.
42315         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
42316         call.
42317         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
42318         HAVE_CLOCK_GETTIME_VSYSCALL.
42319         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
42320
42321         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
42322         gettimeofday vsyscall, just use time.
42323
42324 2011-09-06  Andreas Schwab  <schwab@redhat.com>
42325
42326         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
42327         <errno.h>.
42328
42329 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42330
42331         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
42332         syscall on x86-64.
42333         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
42334         syscall.
42335         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
42336         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
42337         syscall if possible.
42338
42339 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42340
42341         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
42342         e_ident.  Don't pass to find_mapsXX.
42343         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
42344
42345 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42346
42347         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42348         strchr-sse2-no-bsf strrchr-sse2-no-bsf
42349         * sysdeps/x86_64/multiarch/strchr.S: Update.
42350         Check bit_slow_BSF bit.
42351         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
42352         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
42353         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
42354
42355 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42356
42357         [BZ #13134]
42358         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
42359         before glibc 2.15.
42360         (tryshell): Define.
42361         (__spawni): Change last parameter to be flag.  Test
42362         SPAWN_XFLAGS_USE_PATH flag to use path or not.
42363         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
42364         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
42365         * posix/spawni.c: Likewise.
42366         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
42367         * posix/spawnp.c: Likewise.  Change normal version to use
42368         SPAWN_XFLAGS_USE_PATH.
42369         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
42370         SPAWN_XFLAGS_TRY_SHELL.
42371
42372         [BZ #13150]
42373         * posix/glob.h: Remove gcc 1.x support.
42374
42375         [BZ #13068]
42376         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
42377
42378 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42379
42380         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42381         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
42382         strrchr-sse2-bsf
42383         * sysdeps/i386/i686/multiarch/strchr.S: New file.
42384         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
42385         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
42386         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
42387         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
42388         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
42389
42390 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42391
42392         * sysdeps/x86_64/wcscmp.S: New file.
42393
42394         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
42395         wcscmp-c wcscmp-sse2
42396         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
42397         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
42398         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
42399         * wcsmbs/wcscmp.c: Allow renaming.
42400
42401 2011-09-05  David S. Miller  <davem@davemloft.net>
42402
42403         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
42404         stack slot, rather than the struct return pointer slot.
42405         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
42406         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
42407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
42408         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
42409
42410 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42411
42412         * po/ja.po: Update from translation team.
42413
42414         [BZ #13144]
42415         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
42416         kernel in 64-bit binaries.
42417
42418 2011-09-01  David S. Miller  <davem@davemloft.net>
42419
42420         * elf/elf.h (HWCAP_SPARC_*): Move to..
42421         * sysdeps/sparc/sysdep.h: this new file and add new values.
42422         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
42423         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
42424         _DL_HWCAP_COUNT to 24.
42425         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
42426         entries.
42427         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
42428         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
42429         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
42430         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
42431         instead of magic constants.
42432         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
42433
42434 2011-08-31  David S. Miller  <davem@davemloft.net>
42435
42436         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
42437         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
42438         Reimplement to do errno handling inline.
42439         (SYSCALL_ERROR_HANDLER): New macro.
42440         (__SYSCALL_STRING): Do not do errno handling in asm.
42441         (__CLONE_SYSCALL_STRING): Delete.
42442         (__INTERNAL_SYSCALL_STRING): Delete.
42443         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
42444         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
42445         (PSEUDO): Reimplement to do errno handling inline.
42446         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
42447         (SYSCALL_ERROR_HANDLER): New macro.
42448         (__SYSCALL_STRING): Do not do errno handling in asm.
42449         (__CLONE_SYSCALL_STRING): Delete.
42450         (__INTERNAL_SYSCALL_STRING): Delete.
42451         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
42452         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
42453         i386.
42454         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
42455         (inline_syscall*): Add 'err' argument.
42456         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
42457         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
42458         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
42459         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
42460
42461         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
42462         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
42463
42464 2011-08-30  Andreas Schwab  <schwab@redhat.com>
42465
42466         * elf/rtld.c (dl_main): Relocate objects in dependency order.
42467
42468 2011-08-29  Jiri Olsa <jolsa@redhat.com>
42469
42470         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
42471         directive.
42472
42473 2011-08-24  David S. Miller  <davem@davemloft.net>
42474
42475         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
42476
42477 2011-08-24  Andreas Schwab  <schwab@redhat.com>
42478
42479         * elf/Makefile: Add rules to build and run unload8 test.
42480         * elf/unload8.c: New file.
42481         * elf/unload8mod1.c: New file.
42482         * elf/unload8mod1x.c: New file.
42483         * elf/unload8mod2.c: New file.
42484         * elf/unload8mod3.c: New file.
42485
42486         * elf/dl-close.c (_dl_close_worker): Reset private search list if
42487         it wasn't used.
42488
42489 2011-08-23  David S. Miller  <davem@davemloft.net>
42490
42491         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
42492         subtract stack bias.
42493         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
42494         %sp not %fp in calculations.
42495         (_JMPBUF_UNWINDS_ADJ): Likewise.
42496
42497         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
42498         (aio_suspend): Call it to force an exception region around the
42499         AIO_MISC_WAIT() invocation.
42500
42501 2011-08-23  Andreas Schwab  <schwab@redhat.com>
42502
42503         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
42504         backslash.
42505
42506 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
42507
42508         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
42509         protection macro.
42510         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
42511         and <dl-machine.h>.
42512         (Elf64_FuncDesc): Remove.
42513
42514 2011-08-22  David S. Miller  <davem@davemloft.net>
42515
42516         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
42517         sigaltstack check, add missing cfi directives.
42518         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
42519         missing cfi directives, and sigaltstack handling.
42520
42521 2011-08-16  Andreas Schwab  <schwab@redhat.com>
42522
42523         [BZ #11724]
42524         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
42525         object is seen twice.
42526         * elf/dl-fini.c (_dl_sort_fini): Likewise.
42527
42528         * elf/Makefile (distribute): Add tst-initorder2.c.
42529         (tests): Add tst-initorder2.
42530         (modules-names): Add tst-initorder2a tst-initorder2b
42531         tst-initorder2c tst-initorder2d.  Add rules to build them.
42532         ($(objpfx)tst-initorder2.out): New rule.
42533         * elf/tst-initorder2.c: New file.
42534         * elf/tst-initorder2.exp: New file.
42535
42536 2011-08-22  Andreas Schwab  <schwab@redhat.com>
42537
42538         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
42539
42540         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
42541         dependencies back to end of function.
42542
42543         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
42544         $(elfobjdir)/ld.so.
42545
42546 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
42547
42548         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
42549         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
42550         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
42551         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
42552         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
42553         of __vdso_gettimeofday.
42554         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
42555         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
42556         attribute_hidden.
42557         (_libc_vdso_platform_setup): Remove initialization of
42558         __vdso_gettimeofday and __vdso_time.
42559
42560 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42561
42562         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
42563         and fgetc_unlocked.
42564         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
42565         getc_unlocked.
42566
42567         * elf/dl-open.c (add_to_global): Report additions to the global scope
42568         for LD_DEBUG=scopes.
42569         (dl_open_worker): Also print scope of newly loaded dependencies.
42570         (_dl_show_scope): Indicate if there is no scope.
42571
42572         [BZ #13114]
42573         * stdio-common/Makefile (tests): Add bug24.
42574         * stdio-common/bug24.c: New file.
42575
42576 2011-08-19  Andreas Jaeger  <aj@suse.de>
42577
42578         [BZ #13114]
42579         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
42580         non-existant file when using close-on-exec mode.
42581
42582 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42583
42584         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
42585         the very first instruction.
42586
42587         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
42588         the CFI state in the end.
42589         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
42590         inclusion of dl-trampoline.h.
42591         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
42592
42593 2011-08-19  Andreas Schwab  <schwab@redhat.com>
42594
42595         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
42596         expectations for long double.
42597
42598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
42599         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
42600
42601 2011-08-14  David S. Miller  <davem@davemloft.net>
42602
42603         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
42604         artificual limit depends upon the system page size.
42605
42606 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42607
42608         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
42609         * resolv/Makefile: Define CFLAGS-libresolv.
42610
42611 2011-08-17  Andreas Schwab  <schwab@redhat.com>
42612
42613         * nss/makedb.c (compute_tables): Make variables used in nested
42614         function static.
42615
42616 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42617
42618         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
42619         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
42620         if buffer was too small.
42621
42622         * elf/pldd.c (main): Attach to all threads in the process.
42623         Rewrite /proc handling to use *at functions.
42624
42625 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
42626
42627         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
42628         specifies first scope to show.
42629         (dl_open_worker): Update callers.  Move printing scope of new
42630         object to before the relocation.
42631         * elf/rtld.c (dl_main): Update _dl_show_scope call.
42632         * sysdeps/generic/ldsodefs.h: Update declaration.
42633
42634         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
42635         string for the scope number.
42636
42637 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
42638
42639         * nscd/servicescache.c (cache_addserv): Make sure written is always
42640         initialized.
42641
42642 2011-08-14  Roland McGrath  <roland@hack.frob.com>
42643
42644         * sysdeps/i386/i486/bits/atomic.h
42645         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
42646         statement expression, so as to suppress "set but not used" warning.
42647         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
42648
42649         * string/strncat.c (STRNCAT): Use prototype definition.
42650
42651         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
42652         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
42653         -Iprograms here.
42654         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
42655         (localedef-modules): Add localedef.
42656         (locale-modules): Add locale.
42657
42658         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
42659         * elf/rtld.c (dl_main): Invert order of assignment in last change,
42660         to avoid a warning.
42661
42662 2011-08-14  David S. Miller  <davem@davemloft.net>
42663
42664         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
42665         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
42666
42667 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
42668
42669         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
42670         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
42671         * elf/rtld.c (dl_main): Set l_name of vDSO.
42672         Call _dl_show_scope when DL_DEBUG_SCOPES.
42673         (process_dl_debug): Recognize scopes flag and also set it for all.
42674         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
42675         Declare _dl_show_scope.
42676
42677         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
42678         (do_dlopen): Pass caller_dlopen to dl_open.
42679         (__libc_dlopen_mode): Initialize caller_dlopen.
42680
42681         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
42682         of libc.  Make tolower call locale-independent.  Optimize a bit by
42683         using isdigit instead of isalnum.
42684         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
42685
42686 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
42687
42688         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
42689         was a dependency or dynamically loaded.
42690
42691 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
42692
42693         * intl/l10nflist.c: Allow architecture-specific pop function.
42694         * sysdeps/x86_64/l10nflist.c: New file.
42695
42696         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
42697         classification.
42698
42699 2011-08-10  Andreas Schwab  <schwab@redhat.com>
42700
42701         * include/dirent.h: Add libc_hidden_proto for scandirat and
42702         scandirat64.  Don't declare __scandirat64.
42703         * dirent/scandirat.c: Add libc_hidden_def.
42704         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
42705         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
42706
42707 2011-08-10  David S. Miller  <davem@davemloft.net>
42708
42709         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
42710         enum.
42711         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42712         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42713         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42714
42715 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
42716
42717         * Versions.def [libc]: Add GLIBC_2.15.
42718         * dirent/Makefile (routines): Add scandirat and scandirat64.
42719         * dirent/Versions [libc]: Export scandirat and scandirat64 for
42720         GLIBC_2.15.
42721         * dirent/dirent.h: Declare scandirat and scandirat64.
42722         * dirent/scandirat.c: New file.
42723         * dirent/scandirat64.c: New file.
42724         * sysdeps/wordsize-64/scandirat.c: New file.
42725         * sysdeps/wordsize-64/scandirat64.c: New file.
42726         * dirent/opendir.c: Define opendirat.
42727         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
42728         using scandirat.
42729         * dirent/scandir64.c: Adjust for scandir.c change.
42730         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
42731         __scandirat64, and __scandir_cancel_handler.
42732         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
42733         additional parameter and use openat instead of open (outside of ld.so).
42734         Add new __opendir as wrapper around __opendirat.
42735         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
42736         here without requiring old scandirat implementation.
42737
42738 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
42739
42740         * dirent/scandir.c (cancel_handler): Renamed to
42741         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
42742         defined.  Adjust users.
42743         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
42744         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
42745
42746 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
42747
42748         * string/test-string.h (IMPL): Use __STRING to expand name and then
42749         stringify it.
42750
42751         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
42752         of cleanups.
42753
42754 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42755
42756         * string/Makefile: Update.
42757         (strop-tests): Append strncat.
42758         * string/test-wcscmp.c: New file.
42759         New comprehensive test for wcscmp.
42760         * string/test-strcmp.c: Update.
42761         (WIDE): New define.
42762
42763 2011-07-22  Andreas Schwab  <schwab@redhat.com>
42764
42765         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
42766         line.
42767
42768 2011-07-26  Andreas Schwab  <schwab@redhat.com>
42769
42770         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
42771         encoding to ACE if AI_IDN.
42772
42773 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
42774
42775         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
42776         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
42777
42778 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42779
42780         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
42781         Fix overflow bug in strncat.
42782         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
42783
42784         * string/test-strncat.c: Update.
42785         Add new tests for checking overflow bugs.
42786
42787 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42788
42789         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42790         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
42791         * sysdeps/i386/i686/multiarch/strcat.S: New file.
42792         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
42793         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
42794         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
42795         * sysdeps/i386/i686/multiarch/strncat.S: New file.
42796         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
42797         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
42798
42799         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
42800         (USE_AS_STRCAT): Define.
42801         Add strcat and strncat support.
42802         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42803
42804 2011-07-25  Andreas Schwab  <schwab@redhat.com>
42805
42806         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
42807         __n bigger than INT_MAX+1.
42808         (__strncmp_g): Likewise.
42809
42810 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
42811
42812         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
42813         * libio/stido.h: Likewise.
42814
42815         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
42816         (AF_NFC): Define.
42817         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
42818         (AF_NFC): Define.
42819
42820         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
42821         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42822         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42823         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
42824         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42825
42826         [BZ #13021]
42827         * scripts/test-installation.pl: Don't expect libnss_test1 to be
42828         installed.
42829
42830         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
42831         typo.
42832         (_dl_x86_64_save_sse): Likewise.
42833
42834 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
42835
42836         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
42837         OSXSAVE.
42838         (_dl_x86_64_save_sse): Likewise.
42839
42840         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
42841
42842         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
42843
42844 2011-07-21  Andreas Schwab  <schwab@redhat.com>
42845
42846         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
42847         change.
42848         (_dl_x86_64_save_sse): Use correct AVX check.
42849
42850 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42851
42852         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
42853         bug in strncpy/strncat.
42854         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
42855
42856 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
42857
42858         * string/tester.c (test_strcat): Add tests for different alignments
42859         of source and destination.
42860         (test_strncat): Likewise.
42861
42862 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
42863
42864         [BZ #12852]
42865         * posix/glob.c (glob): Check passed in values before using them in
42866         expressions to avoid some overflows.
42867         (glob_in_dir): Likewise.
42868
42869         [BZ #13007]
42870         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
42871         check for AVX enablement so that we don't crash with old kernels and
42872         new hardware.
42873         * elf/tst-audit4.c: Add same checks here.
42874         * elf/tst-audit6.c: Likewise.
42875
42876         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
42877
42878 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
42879
42880         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
42881
42882 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
42883
42884         * po/cs.po: Update from translation team.
42885         * po/bg.po: Likewise.
42886
42887 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
42888
42889         * misc/sys/cdefs.h: Add support for const attribute.
42890         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
42891         to gnu_dev_{major,minor,makedev} functions.
42892
42893 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
42894
42895         * intl/dcigettext.c (get_output_charset): Add missing bracket.
42896
42897 2011-07-20  Andreas Schwab  <schwab@redhat.com>
42898
42899         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
42900         strlen results.
42901
42902 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
42903
42904         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
42905         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
42906         register in order to avoid conflicts with the soft frame pointer
42907         being held in r11 when necessary.
42908         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
42909         (INTERNAL_VSYSCALL_NCS): Likewise.
42910
42911 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
42912
42913         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
42914         * elf/dl-fini.c (_dl_fini): Adjust caller.
42915         * elf/dl-close.c (_dl_close_worker): Likewise.
42916         * sysdeps/generic/ldsodefs.h: Adjust declaration.
42917
42918 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
42919
42920         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
42921         "aux_cache->nlibs < 0".
42922
42923         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
42924         in the reload-count case.
42925
42926 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42927
42928         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42929         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
42930         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
42931         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
42932         * sysdeps/x86_64/multiarch/strcat.S: New file.
42933         * sysdeps/x86_64/multiarch/strncat.S: New file.
42934         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
42935         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
42936         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
42937         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
42938         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
42939         (USE_AS_STRCAT): Define.
42940         Add strcat and strncat support.
42941         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42942         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
42943         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
42944         * string/strncat.c: Update.
42945         (USE_AS_STRNCAT): Define.
42946         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
42947         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
42948         and i7.
42949         * sysdeps/x86_64/multiarch/init-arch.h
42950         (bit_Prefer_PMINUB_for_stringop): New.
42951         (index_Prefer_PMINUB_for_stringop): Likewise.
42952         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
42953         bit_Prefer_PMINUB_for_stringop.
42954
42955 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
42956
42957         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
42958         buffer64.
42959         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
42960         of casting of buffer.
42961         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
42962         buffer32 and buffer64.
42963         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
42964         writes instead of casting of buffer.
42965         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
42966         buffer32.
42967         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
42968         casting of buffer.
42969
42970 2011-07-19  Andreas Schwab  <schwab@redhat.com>
42971
42972         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
42973
42974 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
42975
42976         * nscd/nscd.c (termination_handler): Don't do anything for a database
42977         if it has not yet been initialized.
42978
42979 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
42980
42981         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
42982
42983 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
42984
42985         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
42986
42987 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
42988
42989         * po/nl.po: Update from translation team.
42990         * po/sv.po: Likewise.
42991
42992 2011-07-16  Roland McGrath  <roland@hack.frob.com>
42993
42994         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
42995         now disallowed by GCC.
42996
42997         * configure.in (use-default-link): Default to yes if a test -shared
42998         link meets our qualifications.
42999         * configure: Regenerated.
43000
43001         * config.make.in (output-format): New variable.
43002         * configure.in: Check for ld --print-output-format support.
43003         * configure: Regenerated.
43004         * Makerules ($(common-objpfx)format.lds)
43005         [$(output-format) != unknown]: Just use $(output-format),
43006         instead of the linker-script munging.
43007
43008 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43009
43010         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43011         of $(common-objpfx)shlib.lds.
43012         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43013
43014         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43015         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43016
43017         * configure.in (-z relro check): Adjust test code to add a large
43018         writable data section after it.
43019         * configure: Regenerated.
43020
43021 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43022
43023         * configure.in (-z relro check): Fix test code to make the variable
43024         truly const.
43025         * configure: Regenerated.
43026
43027 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43028
43029         * nscd/nscd.h (struct traced_file): Define.
43030         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43031         elements.  Add traced_files.
43032         (inotify_fd): Declare.
43033         (register_traced_file): Declare.
43034         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43035         (inotify_fd): Export.
43036         (resolv_conf_descr): Remove.
43037         (nscd_init): Move inotify descriptor creation to main.
43038         Don't register files for notification here.
43039         (register_traced_file): New function.
43040         (invalidate_cache): Don't use reset_res to determine whether to call
43041         res_init, go through the list of registered files.
43042         (main_loop_poll): The inotify descriptors are now stored in the
43043         structures for the traced files.
43044         (main_loop_epoll): Likewise
43045         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43046         to __nss_disable_nscd.
43047         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43048         for a database anymore.  Check the records for all the registered
43049         files instead.
43050         * nss/Makefile (libnss_files-routines): Add files-init.
43051         (libnss_db-routines): Add db-init.
43052         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43053         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43054         * nss/nss_db/db-init.c: New file.
43055         * nss/nss_files/files-init.c: New file.
43056         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43057         __nss_lookup_function.
43058         (__nss_lookup_function): Call nss_load_library.
43059         (nss_load_all_libraries): New function.
43060         (__nss_disable_nscd): Take parameter with callback function for files
43061         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43062         used for the cached services.
43063         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43064         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43065         options for features to all the files in nscd.
43066
43067         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43068
43069 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43070
43071         * csu/elf-init.c (__libc_csu_init): Comment typo.
43072
43073 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43074
43075         * po/pl.po: Update from translation team.
43076         * po/ja.po: Likewise.
43077         * po/ru.po: Likewise.
43078         * po/ko.po: Likewise.
43079         * po/fr.po: Likewise.
43080
43081 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43082
43083         * configure.in (.ctors/.dtors header and trailer check):
43084         Use an empirical test on a built program.
43085         * configure: Regenerated.
43086
43087         * configure.in (-z relro check): Use an empirical test on a built DSO.
43088         Detect, but do not require, on ia64.
43089         * configure: Regenerated.
43090
43091         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43092         Update tests that use readelf to use $READELF instead.
43093         * configure: Regenerated.
43094
43095 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43096
43097         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43098         if the result is not used.
43099
43100 2011-07-05  Andreas Jaeger  <aj@suse.de>
43101
43102         [BZ#9696]
43103         * stdlib/tst-strtod.c: Add testcase.
43104
43105 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43106
43107         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43108         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43109         The latter has a higher limit.  Take additional parameter to pass to
43110         the new function.
43111         (__pathconf): Pass file to __statfs_link_max.
43112         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43113         __statfs_link_max.
43114         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43115         __statfs_link_max.
43116
43117         [BZ #12868]
43118         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43119         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43120         Handle Lustre.
43121         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43122         (__statfs_filesize_max): Likewise.
43123         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43124
43125 2011-07-05  Andreas Jaeger  <aj@suse.de>
43126
43127         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43128
43129 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43130
43131         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43132         `status' variable.
43133         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43134         Likewise.
43135
43136 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43137
43138         * Makefile (strop-tests): Add strncat.
43139         * string/test-strncat.c: New file.
43140
43141 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43142
43143         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43144
43145 2011-06-21  Andreas Jaeger  <aj@suse.de>
43146
43147         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43148         Copy rule from iconvdata/Makefile.
43149
43150 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43151
43152         [BZ #12922]
43153         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43154         but no long options are defined, just return 'W'.
43155
43156 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43157
43158         [BZ #9696]
43159         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43160
43161 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43162
43163         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43164         netgroups to read.
43165         (innetgr): Likewise.
43166
43167 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43168
43169         * config.make.in (install_root): Default to $(DESTDIR).
43170
43171 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43172
43173         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43174
43175 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43176
43177         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43178
43179         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43180         containing directory rather than embedding absolute directory names.
43181
43182         * scripts/check-local-headers.sh: Rewritten using awk.
43183         Match by word, not by line.  Print error messages for matches.
43184         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43185
43186         * Makerules [shlib-lds-flags empty]:
43187         ($(common-objpfx)libc_pic.opts): New target.
43188         ($(common-objpfx)libc_pic.os.clean): New target.
43189         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43190
43191         * config.make.in (OBJCOPY): New variable.
43192         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43193         * configure: Regenerated.
43194
43195         * config.make.in (use-default-link): New variable.
43196         * configure.in (use_default_link): Grok --with-default-link to set it.
43197         * configure: Regenerated.
43198         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43199         (shlib-lds, shlib-lds-flags): Define to empty.
43200
43201         * Makerules (shlib-lds): New variable.
43202         (shlib-lds-flags): New variable.
43203         (build-shlib, build-moduile, build-module-asneeded): Use it.
43204         ($(common-objpfx)libc.so): Use $(shlib-lds).
43205         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43206         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43207
43208         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43209         DT_FLAGS/DT_FLAGS_1 with zero flags.
43210
43211         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43212         linker script munging.
43213
43214 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43215
43216         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43217         as 128-bit value.
43218         * crypt/sha512.c (sha512_process_block): Perform total addition using
43219         128-bit if possible.
43220         (__sha512_finish_ctx): Likewise.
43221         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43222         as 64-bit value.
43223         * crypt/sha256.c (SWAP64): Define.
43224         (sha256_process_block): Perform total addition using 64-bit if
43225         possible.
43226         (__sha256_finish_ctx): Likewise.
43227
43228 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
43229
43230         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
43231         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43232         * nscd/hstcache.c (cache_addhst): Likewise.
43233         * nscd/grpcache.c (cache_addgr): Likewise.
43234         * nscd/aicache.c (addhstaiX): Likewise
43235         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
43236
43237 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
43238
43239         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
43240         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43241         * nscd/hstcache.c (cache_addhst): Likewise.
43242         * nscd/grpcache.c (cache_addgr): Likewise.
43243         * nscd/aicache.c (addhstaiX): Likewise
43244
43245 2011-07-01  Andreas Schwab  <schwab@redhat.com>
43246
43247         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
43248         domain only when needed.
43249
43250 2011-06-30  Andreas Schwab  <schwab@redhat.com>
43251
43252         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
43253         is always restored.
43254
43255 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
43256
43257         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
43258         are re-adding the entry.
43259         * nscd/servicescache.c (cache_addserv): Likewise.
43260
43261 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
43262
43263         * sysdeps/generic/dl-irel.h: fix protection against multiple
43264         inclusions.
43265         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
43266
43267 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
43268
43269         [BZ #12935]
43270         * malloc/memusage.sh: Fix quoting in message.
43271         * debug/xtrace.sh: Likewise.
43272
43273         * configure.in: Remove support for --experimental-malloc option, make
43274         it the default.
43275         * config.make.in: Likewise.
43276         * malloc/Makefile: Likewise.
43277
43278 2011-06-27  Andreas Schwab  <schwab@redhat.com>
43279
43280         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
43281         two-byte characters.
43282
43283 2011-06-27  Roland McGrath  <roland@hack.frob.com>
43284
43285         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
43286         AC_CACHE_CHECK invocation.
43287         * configure: Regenerated.
43288
43289         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
43290
43291 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
43292
43293         [BZ #12350]
43294         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
43295         bit from old_res_options.
43296
43297         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
43298
43299         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
43300         value type for setfct.
43301
43302 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
43303
43304         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43305         __gettimeofday instead of gettimeofday.
43306
43307 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
43308
43309         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
43310
43311 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
43312
43313         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
43314
43315         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
43316         info.
43317
43318 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43319
43320         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43321         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43322         strcpy-sse2-unaligned strncpy-sse2-unaligned
43323         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
43324         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
43325         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
43326         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
43327         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
43328         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
43329         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
43330         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
43331         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
43332         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
43333         (STRCPY): Support SSE2 and SSSE3 versions.
43334
43335 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
43336
43337         [BZ #12874]
43338         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
43339         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
43340         kernels which artificially limit size of requests.
43341
43342 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43343
43344         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43345         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43346         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
43347         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
43348         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
43349         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
43350         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
43351         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
43352         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
43353         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
43354         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
43355         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
43356         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
43357         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
43358         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
43359         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43360         Enable unaligned load optimization for Intel Core i3, i5 and i7
43361         processors.
43362         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
43363         Define.
43364         (index_Fast_Unaligned_Load): Define.
43365         (HAS_FAST_UNALIGNED_LOAD): Define.
43366
43367 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
43368
43369         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
43370
43371 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43372
43373         [BZ #12907]
43374         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
43375         until it is clear that the information is realy needed.
43376         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
43377
43378 2011-06-22  Andreas Schwab  <schwab@redhat.com>
43379
43380         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
43381
43382 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43383
43384         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43385         /sys/devices/system/cpu/online if it is usable.
43386
43387         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
43388         reading the information from the /proc filesystem to once a second.
43389
43390 2011-06-21  Andreas Jaeger  <aj@suse.de>
43391
43392         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
43393         NULL after inclusion of kernel headers.
43394
43395 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
43396
43397         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
43398         calls to internal_setent.
43399
43400         [BZ #12885]
43401         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
43402         addresses using gethostbyname4_r ignore IPv4 addresses.
43403
43404         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
43405         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
43406
43407         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
43408
43409 2011-06-20  David S. Miller  <davem@davemloft.net>
43410
43411         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
43412         inclusions.
43413         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
43414
43415         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
43416         (elf_irel): Use it.
43417         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
43418         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
43419         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
43420         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
43421         * sysdeps/x86_64/dl-irel.h: Likewise.
43422
43423         * elf/dl-runtime.c: Use elf_ifunc_invoke.
43424         * elf/dl-sym.c: Likewise.
43425
43426 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43427
43428         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
43429         need to dereference resplen2.
43430
43431 2011-06-14  Andreas Schwab  <schwab@redhat.com>
43432
43433         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
43434
43435 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43436
43437         * Makeconfig: Define vardbdir and inst_vardbdir.
43438         * nss/Makefile: Add rules to install db-Makefile.
43439
43440         * nss/nss_db/db-XXX.c: Cleanup.
43441
43442         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
43443         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
43444         GLIBC_PRIVATE.
43445         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
43446         * nss/makedb.c: Implement -g option to specify that value strings
43447         are generated and should not be added to table iterated over for
43448         get*ent calls.
43449         * nss/nss_db/db-initgroups.c: New file.
43450
43451         * nss/getent.c: Add support for initgroups lookups through getgrouplist
43452         interface.
43453
43454         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
43455         (internal_getgrouplist): Adjust to name change.
43456         Update use_initgroups_entry if this is not the first call.
43457         * nss/databases.def: Add initgroups entry.
43458
43459         * nss/makedb.c (compute_tables): Check result of multiple hash table
43460         sizes to minimize maximum chain length.
43461
43462 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
43463
43464         * Versions.def: Add entry for libnss_db.
43465         * shlib-versions: Likewise.
43466         * nss/Makefile: Add rules to build libnss_db.
43467         * nss/Versions: Add libnss_db information.  Organize libnss_files
43468         entries better.
43469         * nss/db-Makefile: Add gshadow support.  Change rules for the new
43470         makedb progra.  Some minor improvements to generate smaller files.
43471         * nss/nss_db/nss_db.h: Move NSS database header data structures to
43472         here from...
43473         * nss/makedb.c: ...here.
43474         Improve database format to be smaller and require less memory at
43475         runtime.
43476         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
43477         db anymore.
43478         * nss/nss_db/db-netgrp.c: Likewise.
43479         * nss/nss_db/db-open.c: Likewise.
43480         * nss/nss_files/flies-XXX.x: Adjust comments.
43481         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
43482         * nss/nss_files/files-grp.c: Likewise.
43483         * nss/nss_files/files-hosts.c: Likewise.
43484         * nss/nss_files/files-network.c: Likewise.
43485         * nss/nss_files/files-proto.c: Likewise.
43486         * nss/nss_files/files-pwd.c: Likewise.
43487         * nss/nss_files/files-rpc.c: Likewise.
43488         * nss/nss_files/files-service.c: Likewise.
43489         * nss/nss_files/files-sgrp.c: Likewise.
43490         * nss/nss_files/files-spwd.c: Likewise.
43491         * nss/nss_db/db-alias.c: Removed.
43492         * nss/nss_db/dummy-db.h: Removed.
43493
43494 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
43495
43496         * nss/makedb.c: Rewritten to not use database library.
43497         * nss/Makefile: Update to build new makedb program.
43498
43499 2011-06-14  Andreas Jaeger  <aj@suse.de>
43500
43501         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
43502         memset declaration.
43503
43504 2011-06-10  Andreas Schwab  <schwab@redhat.com>
43505
43506         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
43507         tmpbuf.
43508
43509 2011-06-10  Roland McGrath  <roland@hack.frob.com>
43510
43511         * Makerules (shlib.lds): Fail if the linker script comes out empty.
43512         * elf/Makefile ($(objpfx)ld.so): Likewise.
43513
43514         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
43515         Don't list ld.so twice in dependencies.
43516
43517         * posix/bug-regex31.c: Include <stdlib.h>.
43518
43519         * nscd/hstcache.c (cache_addhst): Remove unused variable.
43520
43521         * nis/nss_compat/compat-spwd.c
43522         (getspent_next_nss_netgr): Remove unused variable.
43523         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
43524
43525         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
43526         nonmembers" output to use the right array.
43527
43528         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
43529
43530         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
43531
43532         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
43533         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
43534         * catgets/gencat.c (read_input_file): Likewise.
43535         * locale/programs/locarchive.c (enlarge_archive): Likewise.
43536
43537         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
43538         variable definition inside #if's controlling its use.
43539
43540         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
43541
43542         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
43543
43544         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
43545
43546         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
43547         unreachable code.
43548
43549         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
43550
43551         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
43552         * configure: Regenerated.
43553
43554         * Makerules: Revert last change.
43555         * elf/Makefile: Likewise.
43556
43557 2011-06-09  Roland McGrath  <roland@hack.frob.com>
43558
43559         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
43560         * elf/Makefile ($(objpfx)librtld.os): Likewise.
43561         (reloc-link): Likewise.
43562
43563 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
43564
43565         * elf/Makefile: Add rules to build pldd.
43566         * elf/pldd.c: New file.
43567         * elf/pldd-xx.c: New file.
43568
43569 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
43570
43571         * version.h: Update for 2.15 development version.
43572
43573 2011-06-07  David S. Miller  <davem@davemloft.net>
43574
43575         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
43576         ifuncs.
43577         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
43578         elf_machine_lazy_rel): Likewise.
43579         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
43580         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
43581         elf_machine_lazy_rel): Likewise.
43582         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
43583         dl_hwcap via passed in argument.
43584         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
43585         Likewise.
43586
43587 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43588
43589         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
43590
43591 2011-06-06  Roland McGrath  <roland@hack.frob.com>
43592
43593         [BZ #12849]
43594         * manual/fdl-1.1.texi: New file, verbatim from:
43595         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
43596         * manual/lgpl-2.1.texi: New file, verbatim from:
43597         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
43598         * manual/Makefile (licenses): New variable, list those new file names.
43599         (texis): Use it.
43600         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
43601
43602         * manual/fdl.texi: File removed.
43603         * manual/lesser.texi: File removed.
43604         * manual/libc.texinfo (Copying, Documentation License):
43605         Use new @include file names, put @appendix directive before @include.
43606
43607 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
43608
43609         [BZ #12841]
43610         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
43611         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
43612         (mq_open): Add __NTH.
43613
43614 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
43615
43616         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43617         Assume Intel Core i3/i5/i7 processor if AVX is available.
43618
43619 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
43620
43621         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
43622         typo.
43623
43624 2011-05-31  Andreas Schwab  <schwab@redhat.com>
43625
43626         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
43627         memory.  Use alloca_account.  Fix memory leak when retrying.
43628
43629 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
43630
43631         * version.h (RELEASE): Bump for 2.14 release.
43632         * include/features.h (__GLIBC_MINOR__): Bump to 14.
43633
43634         * config.make.in (RANLIB): Remove entry.
43635
43636 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
43637
43638         * po/Makefile (po-sed-cmd): Add ksh to extensions.
43639         (libc.pot): Work around missing support for .ksh extension in xgettext.
43640
43641         [BZ #12684]
43642         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
43643         if both request failed.
43644         (send_dg): In case of server errors clear resplen or *resplen2.
43645
43646         [BZ #12454]
43647         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
43648         when there are multiple maps.
43649         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
43650         (_dl_fini): Remove test here.
43651
43652         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
43653
43654 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
43655
43656         [BZ #12350]
43657         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
43658         bit from old_res_options.
43659         (gaih_inet): Likewise.
43660
43661         [BZ #11099]
43662         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
43663         as signed.
43664
43665         * resolv/res_init.c (res_setoptions): Make the code more compact.
43666
43667         [BZ #11558]
43668         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
43669         set RES_USEVC.
43670
43671         [BZ #11634]
43672         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
43673
43674         * malloc/malloc.h: Mark malloc hook variables as deprecated.
43675
43676         [BZ #11781]
43677         * malloc/malloc.h: Declare malloc hook variables as volatile.
43678
43679         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
43680         in last patch.
43681
43682         [BZ #11799]
43683         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
43684         raise in the comment.
43685         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
43686         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
43687         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
43688
43689 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
43690
43691         [BZ #12811]
43692         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
43693         grow the buffers more if it already has to be sufficient.
43694         (build_wcs_upper_buffer): Likewise.
43695         * posix/regexec.c (check_matching): Likewise.
43696         (clean_state_log_if_needed): Likewise.
43697         (extend_buffers): Don't enlarge buffers beyond size of the input
43698         buffer.
43699         Patches mostly by Emil Wojak <emil@wojak.eu>.
43700         * posix/bug-regex32.c: New file.
43701         * posix/Makefile (tests): Add bug-regex32.
43702
43703         * locale/findlocale.c (_nl_find_locale): Return right away if
43704         _nl_explode_name failed.
43705         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
43706
43707         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
43708
43709         * debug/xtrace.sh: Unify messages.
43710         * malloc/memusage.sh: Likewise.
43711
43712         [BZ #12813]
43713         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
43714         time symbol from vDSO.  Substitute with vsyscall if not available.
43715         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
43716         __vdso_time.
43717
43718         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
43719         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
43720         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
43721         Add sendmmsg and internal_sendmmsg.
43722         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
43723         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
43724         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
43725
43726         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
43727         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
43728         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
43729
43730 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
43731
43732         [BZ #12813]
43733         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
43734         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
43735         available.
43736         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
43737         __vdso_getcpu.
43738
43739         [BZ #12814]
43740         * iconvdata/Makefile (tests): Add bug-iconv9.
43741         * iconvdata/bug-iconv9.c: New file.
43742
43743 2011-05-27  Andreas Schwab  <schwab@redhat.com>
43744
43745         [BZ #12814]
43746         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
43747
43748 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
43749
43750         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
43751         (struct user_regs_struct): Change intcs field back to cs.
43752
43753 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
43754
43755         * po/ja.po: Update from translation team.
43756
43757 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
43758
43759         [BZ #12795]
43760         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
43761         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
43762
43763 2011-05-20  Andreas Schwab  <schwab@redhat.com>
43764
43765         * stdlib/longlong.h: Update from GCC.
43766
43767 2011-05-23  Andreas Schwab  <schwab@redhat.com>
43768
43769         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
43770         parameter name.
43771         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
43772         Add parameter name.
43773         (__sysconf): Pass it down.
43774
43775 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
43776
43777         [BZ #12671]
43778         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
43779         some situations.
43780         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
43781         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
43782         add in in __libc_use_alloca calls.  Adjust callers.
43783         (glob): Use malloc in some situations.
43784
43785         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
43786         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
43787         pltexit.
43788
43789 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
43790
43791         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
43792         and CLOCK_BOOTTIME_ALARM.
43793
43794         [BZ #12782]
43795         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
43796         is returned.
43797
43798         * string/_strerror.c (__strerror_r): Print negative errors as signed
43799         numbers.
43800
43801         [BZ #12777]
43802         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
43803         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
43804         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
43805
43806         * configure.in: Fix typo in redirection and correct removal of test
43807         files in two cases.
43808
43809         [BZ #12788]
43810         * locale/setlocale.c (new_composite_name): Fix test to check for
43811         identical name of all categories.
43812
43813         [BZ #12792]
43814         * libio/filedoalloc.c (local_isatty): New function.
43815         (_IO_file_doallocate): Use local_isatty.
43816         * stdio-common/perror.c (perror): In case a new stream is used
43817         forward the stream error.
43818         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
43819         error flag.
43820
43821 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
43822
43823         [BZ #11869]
43824         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
43825         alloca.
43826         * include/alloca.h (extend_alloca_account): Define.
43827
43828         [BZ #11857]
43829         * posix/regex.h: Fix comments with documentation of user-accessible
43830         fields after compilation and describe correct free'ing of pattern
43831         after re_compile_pattern.
43832         Patch by Reuben Thomas <rrt@sc3d.org>.
43833
43834 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
43835
43836         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
43837         and -mno-altivec to prevent the compiler from using Altivec and/or
43838         VSX instructions when the corresponding registers are not available.
43839
43840 2011-05-19  Andreas Schwab  <schwab@redhat.com>
43841
43842         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
43843
43844 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
43845
43846         * libio/freopen.c (freopen): Use __dup2, not dup2.
43847         * libio/freopen64.c (freopen64): Likewise.
43848
43849 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
43850
43851         [BZ #12775]
43852         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
43853         * math/Makefile (tests): Add test-powl.
43854         (CFLAGS-test-powl.c): Define.
43855         * math/test-powl.c: New file.
43856
43857 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
43858
43859         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
43860
43861 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
43862
43863         [BZ #11837]
43864         * iconvdata/gb18030.c: Update to GB18020-2005.
43865
43866 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
43867
43868         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
43869         RE_SYNTAX_POSIX_AWK): Update to match recent development.
43870         Patch by Aharon Robbins <arnold@skeeve.com>.
43871
43872         [BZ #11892]
43873         * stdlib/putenv.c (putenv): Don't always create copy of the variable
43874         on the stack.
43875
43876         [BZ #11895]
43877         * misc/pselect.c (__pselect): Handle timeout value errors hidden
43878         through underflows.
43879
43880         [BZ #12766]
43881         * misc/error.c (error_at_line): Ensure file_name and old_file_name
43882         point to strings before performing equality test for error_one_per_line
43883         mode.
43884
43885         [BZ #11697]
43886         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
43887
43888         [BZ #11820]
43889         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
43890         (struct user_fpregs_struct): Avoid __uint*_t types.
43891
43892         [BZ #6420]
43893         * malloc/mtrace.c (tr_where): Add additional parameter to point to
43894         symbol info.  Use it instead of calling _dl_addr locally.
43895         (lock_and_info): New function.
43896         (tr_freehook): Call lock_and_info and pass symbol info as additional
43897         parameter to tr_where.
43898         (tr_mallochook): Likewise.
43899         (tr_reallochook): Likewise.
43900         (tr_memalignhook): Likewise.
43901
43902         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
43903         used and couldn't be at all thread-safe.
43904
43905 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
43906
43907         * libio/freopen.c (freopen): Don't close old file descriptor
43908         before the new one is opened.  Instead dup the new file descriptor
43909         to the old one after the new stream is created.
43910         * libio/freopen64.c (freopen64): Likewise.
43911         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
43912         * libio/fileops.c (_IO_new_file_close_it): Handle new
43913         _IO_FLAGS2_NOCLOSE flag.
43914         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
43915         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
43916         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
43917         _IO_FLAGS2_NOCLOSE flag.
43918         * include/unistd.h: Add hidden_proto for dup3.
43919         Define __have_dup3.
43920         * io/dup3.c: Define hidden symbol.
43921         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
43922
43923         [BZ #7101]
43924         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
43925         when an incomplete long option is used.
43926         * posix/tst-getopt_long1.c: New file.
43927         * posix/Makefile (tests): Add tst-getopt_long1.
43928
43929         [BZ #10138]
43930         * scripts/config.guess: Update from autoconf-2.68.
43931         * scripts/config.sub: Likewise.
43932
43933         [BZ #10157]
43934         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
43935         tests into ...
43936         (has_cpuclock): ...this.  New function.
43937         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
43938         macro here based on has_cpuclock code.
43939
43940         [BZ #10149]
43941         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
43942         First byte (not low byte) is now always NUL.
43943         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
43944
43945         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
43946         Use non-cancelable interfaces.
43947
43948         [BZ #9809]
43949         * locale/iso-639.def: Add entry for Sorani.
43950
43951         [BZ #11901]
43952         * include/stdlib.h: Move include protection to the right place.
43953         Define abort_msg_s.  Declare __abort_msg with it.
43954         * stdlib/abort.c (__abort_msg): Adjust type.
43955         * assert/assert.c (__assert_fail_base): New function.  Majority
43956         of code from __assert_fail.  Allocate memory for __abort_msg with
43957         mmap.
43958         (__assert_fail): Now call __assert_fail_base.
43959         * assert/assert-perr.c: Remove bulk of implementation.  Use
43960         __assert_fail_base.
43961         * include/assert.hL Declare __assert_fail_base.
43962         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
43963         mmap.
43964         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
43965
43966 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
43967
43968         [BZ #11952]
43969         [BZ #12453]
43970         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
43971         until all modules are registered in the DTV.
43972         * elf/Makefile: Add rules to build and run tst-tls19.
43973         * elf/tst-tls19.c: New file.
43974         * elf/tst-tls19mod1.c: New file.
43975         * elf/tst-tls19mod2.c: New file.
43976         * elf/tst-tls19mod3.c: New file.
43977         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
43978
43979         [BZ #12083]
43980         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
43981         correctly.
43982
43983         [BZ #12601]
43984         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
43985         two-byte sequence errors.
43986         * iconvdata/Makefile (tests): Add bug-iconv8.
43987         * iconvdata/bug-iconv8.c: New file.
43988
43989         [BZ #12626]
43990         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
43991         buf2 definition.
43992
43993         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
43994
43995         [BZ #12432]
43996         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
43997         (dummy_getcfa): New function.
43998         (init): Get _Unwind_GetCFA address, use dummy if not found.
43999         (backtrace_helper): In recursion check, also check whether CFA changes.
44000         (__backtrace): Completely initialize arg.
44001
44002         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44003         storing incomplete byte sequence in state object.  Avoid testing for
44004         guaranteed too small input if we know there is enough data available.
44005
44006 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44007
44008         * Makeconfig (+link-pie): Indent.
44009         * Rules (binaries-pie): Define if $(have-fpie) and
44010         $(build-shared).
44011         (binaries-shared): Also filter out $(binaries-pie).
44012         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44013         * nscd/Makefile (others-pie): Add nscd.
44014         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44015         ($(objpfx)nscd): Remove command override.
44016         * login/Makefile (others-pie): Add pt_chown.
44017         ($(objpfx)pt_chown): Remove command override.
44018         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44019         remove command overrides.
44020
44021 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44022
44023         * libio/tst_putwc.c: Fix error messages.
44024
44025         [BZ #12724]
44026         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44027         currently writing and seek to current position when not.
44028         * libio/Makefile (tests): Add bug-fclose1.
44029         * libio/bug-fclose1.c: New file.
44030
44031 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44032
44033         [BZ #12511]
44034         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44035         don't set DF_1_NODELETE here.
44036         (do_lookup_x): When entering new entry test for copy relocation
44037         and if necessary set DF_1_NODELETE flag.
44038         * elf/tst-unique4.cc: New file.
44039         * elf/tst-unique4.h: New file.
44040         * elf/tst-unique4lib.cc: New file.
44041         * elf/Makefile: Add rules to build and run tst-unique4.
44042         Patch by Piotr Bury <pbury@goahead.com>.
44043
44044 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44045
44046         [BZ #12052]
44047         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44048
44049         [BZ #12625]
44050         * misc/mntent_r.c (addmntent): Flush the stream after the output
44051
44052         [BZ #12393]
44053         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44054         (is_trusted_path_normalize): Skip initial colon.  Append slash
44055         to empty buffer.  Duplicate is_trusted_path code but allow
44056         constructed patch to be prefix.
44057         (is_dst): Allow $ORIGIN followed by /.
44058         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44059         Correct testing of result of is_trusted_path_normalize
44060         (decompose_rpath): Fix warning.
44061
44062 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44063
44064         [BZ #11257]
44065         * grp/initgroups.c (internal_getgrouplist): When we found the service
44066         list through the initgroups entry in nsswitch.conf do not always
44067         continue on a successful lookup.  Don't always use the
44068         __nss_group_database value if it is set.
44069         * nss/nsswitch.conf (initgroups): Change action for successful db
44070         lookup to continue for compatibility.
44071
44072 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44073
44074         [BZ #11532]
44075         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44076         and CP774 modules.
44077         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44078         and CP774 modules.
44079         * iconvdata/tst-tables.sh: Likewise.
44080         * iconvdata/cp770.c: New file.
44081         * iconvdata/cp771.c: New file.
44082         * iconvdata/cp772.c: New file.
44083         * iconvdata/cp773.c: New file.
44084         * iconvdata/cp774.c: New file.
44085         * iconvdata/testdata/CP770: New file.
44086         * iconvdata/testdata/CP770..UTF8: New file.
44087         * iconvdata/testdata/CP771: New file.
44088         * iconvdata/testdata/CP771..UTF8: New file.
44089         * iconvdata/testdata/CP772: New file.
44090         * iconvdata/testdata/CP772..UTF8: New file.
44091         * iconvdata/testdata/CP773: New file.
44092         * iconvdata/testdata/CP773..UTF8: New file.
44093         * iconvdata/testdata/CP774: New file.
44094         * iconvdata/testdata/CP774..UTF8: New file.
44095
44096         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44097         END CHARMAP line.
44098         * iconvdata/gen-8bit-gap.sh: Likewise.
44099         * iconvdata/gen-8bit.sh: Likewise.
44100
44101         * locale/iso-639.def: Add ary entry.
44102
44103         [BZ #11258]
44104         * locale/C-translit.h.in: Add U20A1 transliteration.
44105
44106         [BZ #12178]
44107         * locale/iso-639.def: Add wae entry.
44108         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44109
44110         [BZ #12545]
44111         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44112         for n.
44113
44114         [BZ #12711]
44115         * locale/C-translit.h.in: Add entry for U20B9.
44116         Patch by pravin.d.s@gmail.com.
44117
44118 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44119
44120         [BZ #12713]
44121         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44122         ENAMETOOLONG use generic getcwd.
44123         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44124         in rtld.  Use *stat64.
44125         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44126         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44127         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44128         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44129         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44130         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44131         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44132         __fstatat64 macros.
44133         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44134         * dirent/rewinddir.c: Add libc_hidden_def.
44135         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44136         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44137
44138         * include/dirent.h (__alloc_dir): Add flags parameter.
44139         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44140         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44141         __alloc_dir.
44142         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44143         from fdopendir if O_CLOEXEC is already set.
44144
44145 2011-03-15  Alan Modra  <amodra@gmail.com>
44146
44147         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44148         l_tls_firstbyte_offset non-zero.  Save padding offset in
44149         l_tls_firstbyte_offset for later use.
44150         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44151         freeing static tls block.
44152
44153 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44154
44155         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44156         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44157         being defined by the kernel headers.
44158
44159 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44160
44161         [BZ #12734]
44162         * resolv/resolv.h: Define RES_NOTLDQUERY.
44163         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44164         no-tld-query and set RES_NOTLDQUERY.
44165         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44166         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44167         modern BIND to search name as TLD unless forbidden.
44168
44169 2011-05-07  Petr Baudis  <pasky@suse.cz>
44170             Ulrich Drepper  <drepper@gmail.com>
44171
44172         [BZ #12393]
44173         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44174         (is_trusted_path): ...to here.
44175         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44176         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44177         using is_trusted_path_normalize() in setuid scripts.
44178
44179 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44180
44181         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44182         __BEGIN/__END_DECLS.
44183
44184 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44185
44186         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44187         NSS_STATUS_NOTFOUND if no record was found.
44188
44189 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44190
44191         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44192         (headers-not-in-tirpc): Remove rpc/netdb.h
44193         * resolv/netdb.h: Revert last change.
44194
44195 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44196
44197         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44198         circular dependency between libgcc.a and libc.a.
44199
44200 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44201
44202         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44203         * nis/Makefile: Don't install rpcsvc/*.
44204         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44205         instead of <rpc/types.h>.
44206         (MAXHOSTNAMELEN): Define.
44207
44208 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44209
44210         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44211
44212 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44213
44214         [BZ #12714]
44215         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44216         gethostbyname4_r when IPv6 results are possible.
44217
44218 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44219
44220         [BZ #12723]
44221         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44222         _PC_PIPE_BUF handling.
44223
44224 2011-04-30  Bruno Haible  <bruno@clisp.org>
44225
44226         [BZ #12717]
44227         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
44228         * resolv/netdb.h (getnameinfo): Change type of flags parameter
44229         to 'int'.
44230         * inet/getnameinfo.c (getnameinfo): Likewise.
44231
44232 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
44233
44234         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
44235         to groups setting in database lookup.
44236         * nss/nsswitch.conf: Add initgroups entry.
44237
44238 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
44239
44240         [BZ #12685]
44241         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
44242         mode string.
44243         Patch by Eric Blake <eblake@redhat.com>.
44244
44245 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
44246
44247         * sunrpc/Makefile (need-export-routines): Add svc_run.
44248         (routines): Remove svc_run.
44249         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
44250         * sunrpc/clnt_perr.c (clnt_perrno): Export.
44251         * sunrpc/svc_run.c (svc_run): Likewise.
44252         * sunrpc/svc_udp.c (svcudp_create): Likewise.
44253
44254 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
44255
44256         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
44257         problem in reallocation in last patch.
44258
44259 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
44260
44261         * sunrpc/Makefile: Move inclusion of Rules.
44262
44263 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44264
44265         * nss/nss_files/files-initgroups.c: New file.
44266         * nss/Makefile (libnss_files-routines): Add files-initgroups.
44267         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
44268         _nss_files_initgroups_dyn.
44269
44270 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
44271
44272         * elf/elf.h (R_ARM_IRELATIVE): Define.
44273
44274 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44275
44276         * po/ru.po: Update from translation team.
44277
44278 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44279
44280         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
44281         dependencies.
44282
44283 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
44284
44285         [BZ #12653]
44286         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
44287         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
44288         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
44289         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
44290         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
44291
44292 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
44293
44294         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
44295         differing bytes.
44296         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
44297         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
44298         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
44299
44300 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44301
44302         [BZ #12420]
44303         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
44304         storing it.
44305         * stdlib/bug-getcontext.c: New file.
44306         * stdlib/Makefile: Add rules to build and run bug-getcontext.
44307
44308 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44309
44310         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
44311         instructions into .machine "z9-109".
44312         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
44313         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
44314
44315 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44316
44317         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
44318         between environment variables and auxiliary vector.
44319
44320 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
44321
44322         * Makefile: Add rules to build linkobj/libc.so.
44323         * include/libc-symbols.h: Define libc_hidden_nolink.
44324         * include/rpc/auth.h: Mark functions which are to be hidden.
44325         * include/rpc/auth_des.h: Likewise.
44326         * include/rpc/auth_unix.h: Likewise.
44327         * include/rpc/clnt.h: Likewise.
44328         * include/rpc/des_crypt.h: Likewise.
44329         * include/rpc/key_prot.h: Likewise.
44330         * include/rpc/pmap_clnt.h: Likewise.
44331         * include/rpc/pmap_prot.h: Likewise.
44332         * include/rpc/pmap_rmt.h: Likewise.
44333         * include/rpc/rpc_msg.h: Likewise.
44334         * include/rpc/svc.h: Likewise.
44335         * include/rpc/svc_auth.h: Likewise.
44336         * include/rpc/xdr.h: Likewise.
44337         * nis/Makefile: Link all DSOs against linkobj/libc.so.
44338         * nss/Makefile: Likewise.
44339         * sunrpc/Makefile: Don't install headers.  Build library with normal
44340         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
44341         * sunrpc/auth_des.c: Hide exported symbols by default, export some
44342         for the compat linking library.  Remove use of INTDEF/INTUSE.
44343         * sunrpc/auth_none.c: Likewise.
44344         * sunrpc/auth_unix.c: Likewise.
44345         * sunrpc/authdes_prot.c: Likewise.
44346         * sunrpc/authuxprot.c: Likewise.
44347         * sunrpc/clnt_gen.c: Likewise.
44348         * sunrpc/clnt_perr.c: Likewise.
44349         * sunrpc/clnt_raw.c: Likewise.
44350         * sunrpc/clnt_simp.c: Likewise.
44351         * sunrpc/clnt_tcp.c: Likewise.
44352         * sunrpc/clnt_udp.c: Likewise.
44353         * sunrpc/clnt_unix.c: Likewise.
44354         * sunrpc/des_crypt.c: Likewise.
44355         * sunrpc/des_soft.c: Likewise.
44356         * sunrpc/get_myaddr.c: Likewise.
44357         * sunrpc/key_call.c: Likewise.
44358         * sunrpc/key_prot.c: Likewise.
44359         * sunrpc/netname.c: Likewise.
44360         * sunrpc/pm_getmaps.c: Likewise.
44361         * sunrpc/pm_getport.c: Likewise.
44362         * sunrpc/pmap_clnt.c: Likewise.
44363         * sunrpc/pmap_prot.c: Likewise.
44364         * sunrpc/pmap_prot2.c: Likewise.
44365         * sunrpc/pmap_rmt.c: Likewise.
44366         * sunrpc/publickey.c: Likewise.
44367         * sunrpc/rpc_cmsg.c: Likewise.
44368         * sunrpc/rpc_common.c: Likewise.
44369         * sunrpc/rpc_dtable.c: Likewise.
44370         * sunrpc/rpc_prot.c: Likewise.
44371         * sunrpc/rpc_thread.c: Likewise.
44372         * sunrpc/rtime.c: Likewise.
44373         * sunrpc/svc.c: Likewise.
44374         * sunrpc/svc_auth.c: Likewise.
44375         * sunrpc/svc_authux.c: Likewise.
44376         * sunrpc/svc_raw.c: Likewise.
44377         * sunrpc/svc_run.c: Likewise.
44378         * sunrpc/svc_simple.c: Likewise.
44379         * sunrpc/svc_tcp.c: Likewise.
44380         * sunrpc/svc_udp.c: Likewise.
44381         * sunrpc/svc_unix.c: Likewise.
44382         * sunrpc/svcauth_des.c: Likewise.
44383         * sunrpc/xcrypt.c: Likewise.
44384         * sunrpc/xdr.c: Likewise.
44385         * sunrpc/xdr_array.c: Likewise.
44386         * sunrpc/xdr_float.c: Likewise.
44387         * sunrpc/xdr_intXX_t.c: Likewise.
44388         * sunrpc/xdr_mem.c: Likewise.
44389         * sunrpc/xdr_rec.c: Likewise.
44390         * sunrpc/xdr_ref.c: Likewise.
44391         * sunrpc/xdr_sizeof.c: Likewise.
44392         * sunrpc/xdr_stdio.c: Likewise.
44393
44394 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
44395
44396         [BZ #12650]
44397         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
44398         * sysdeps/ia64/dl-tls.h: Likewise.
44399         * sysdeps/powerpc/dl-tls.h: Likewise.
44400         * sysdeps/s390/dl-tls.h: Likewise.
44401         * sysdeps/sh/dl-tls.h: Likewise.
44402         * sysdeps/sparc/dl-tls.h: Likewise.
44403         * sysdeps/x86_64/dl-tls.h: Likewise.
44404         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
44405
44406 2011-03-14  Andreas Schwab  <schwab@redhat.com>
44407
44408         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
44409         rpath element also skip the following colon.
44410         (expand_dynamic_string_token): Add is_path parameter and pass
44411         down to DL_DST_REQUIRED and _dl_dst_substitute.
44412         (decompose_rpath): Call expand_dynamic_string_token with
44413         non-zero is_path.  Ignore empty rpaths.
44414         (_dl_map_object_from_fd): Call expand_dynamic_string_token
44415         with zero is_path.
44416
44417 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
44418
44419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
44420         Make cancelable.
44421
44422 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
44423
44424         [BZ #12655]
44425         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
44426         Patch by Filipe David Manana <fdmanana@apache.org>.
44427
44428 2011-04-07  Andreas Schwab  <schwab@redhat.com>
44429
44430         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
44431         Maintain aligned stack.
44432         (CHECK_RSP): Remove unused macro.
44433
44434 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
44435
44436         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
44437         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
44438
44439 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
44440
44441         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
44442
44443         * include/features.h: Mention __USE_XOPEN2K8 in comment.
44444
44445 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
44446
44447         [BZ #12518]
44448         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
44449         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
44450         * sysdeps/x86_64/memmove.c: New file.
44451         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
44452         (memcpy): Renamed to ...
44453         (__new_memcpy): This.
44454         (memcpy): Provide GLIBC_2_14 memcpy.
44455         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
44456         (memcpy): Provide GLIBC_2_2_5 memcpy.
44457
44458 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44459
44460         [BZ #12631]
44461         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
44462
44463 2011-03-30  Andreas Schwab  <schwab@redhat.com>
44464
44465         * misc/syncfs.c: New file.
44466         * misc/Makefile (routines): Add syncfs.
44467         * posix/unistd.h: Declare syncfs.
44468         * sysdeps/unix/syscalls.list: Add syncfs.
44469
44470 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44471
44472         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
44473         open_by_handle_at.
44474         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44475         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44476         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44477         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44478         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44479         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
44480         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44481
44482 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44483
44484         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
44485         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44486         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
44487         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44488         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44489         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44490         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44491
44492         * io/Makefile: Compile fallocate.c, fallocate64.c, and
44493         sync_file_range.c with -fexceptions.
44494         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
44495         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
44496         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
44497         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
44498         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
44499         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
44500         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
44501         sync_file_range as cancellation point
44502         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
44503         now a wrapper around __call_sync_file_range with cancellation handling.
44504         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
44505         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
44506         function name to __call_sync_file_range.
44507         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
44508         Add call_sync_file_range.
44509
44510 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44511
44512         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
44513         bits/timex.h.
44514
44515 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44516
44517         * iconv/iconv.h: Fix typo in comment.
44518         * io/fcntl.h: Likewise.
44519         * libio/stdio.h: Likewise.
44520         * posix/spawn.h: Likewise.
44521         * posix/unistd.h: Likewise.
44522         * stdlib/stdlib.h: Likewise.
44523         * time/time.h: Likewise.
44524         * wcsmbs/wchar.h: Likewise.
44525
44526         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
44527         open_by_handle): Add.
44528         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
44529         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
44530         Augment a few comments.
44531         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44532         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44533         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44535         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44536         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
44537         open_by_handle.
44538
44539         * io/fcntl.h (AT_EMPTY_PATH): Define.
44540
44541 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
44542
44543         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
44544         * sysdeps/unix/sysv/linux/bits/time.h: New file.
44545         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
44546         to...
44547         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
44548         * Versions.def: Add GLIBC_2.14.
44549         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
44550         Export.
44551
44552 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
44553
44554         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
44555         round counter.
44556         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44557
44558 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
44559
44560         [BZ #12597]
44561         * string/test-strncmp.c (do_page_test): New function.
44562         (check2): Likewise.
44563         (test_main): Call check2.
44564         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
44565
44566 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
44567
44568         [BZ #12587]
44569         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
44570         Handle cache information in CPU leaf 4.
44571         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44572
44573 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
44574
44575         [BZ #12583]
44576         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
44577         character representation.
44578         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
44579
44580 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
44581
44582         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
44583         END(__isnan) to END(__isnanf) to match function entry point/label
44584         EALIGN(__isnanf,...).
44585
44586 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
44587
44588         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
44589
44590 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
44591
44592         [BZ #12510]
44593         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
44594         copy from the symbol referenced in the relocation to initialize the
44595         used variable.
44596         Patch by Piotr Bury <pbury@goahead.com>.
44597         * elf/Makefile: Add rules to build and tst-unique3.
44598         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
44599         * elf/tst-unique3.cc: New file.
44600         * elf/tst-unique3.h: New file.
44601         * elf/tst-unique3lib.cc: New file.
44602         * elf/tst-unique3lib2.cc: New file.
44603
44604         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
44605
44606 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
44607
44608         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
44609         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
44610         to _start.
44611
44612 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
44613
44614         * elf/dl-load.c (_dl_map_object): If we are looking for the first
44615         to-be-loaded object along a path to loader is ld.so.
44616
44617 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
44618             Ulrich Drepper  <drepper@gmail.com>
44619
44620         * sysdeps/x86_64/memset.S: After aligning destination, code
44621         branches to different locations depending on the value of
44622         misalignment, when multiarch is enabled. Fix this.
44623
44624 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
44625
44626         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
44627         Set _x86_64_preferred_memory_instruction for AMD processsors.
44628         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44629         Set bit_Prefer_SSE_for_memop for AMD processors.
44630
44631 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
44632
44633         * libio/fmemopen.c (fmemopen): Optimize a bit.
44634
44635 2011-03-03  Andreas Schwab  <schwab@redhat.com>
44636
44637         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
44638
44639 2011-03-03  Roland McGrath  <roland@redhat.com>
44640
44641         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
44642
44643 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
44644
44645         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
44646         __bzero_ultra1 instead of __memset_ultra1.
44647
44648 2011-02-23  Andreas Schwab  <schwab@redhat.com>
44649             Ulrich Drepper  <drepper@gmail.com>
44650
44651         [BZ #12509]
44652         * include/link.h (struct link_map): Add l_orig_initfini.
44653         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
44654         returning unsuccessfully.
44655         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
44656         close of a file loaded at startup, restore the original l_initfini
44657         list.
44658         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
44659         list, store the pointer.
44660         * elf/Makefile ($(objpfx)noload-mem): New rule.
44661         (noload-ENV): Define.
44662         (tests): Add $(objpfx)noload-mem.
44663         * elf/noload.c: Include <memcheck.h>.
44664         (main): Call mtrace.  Close all opened handles.
44665
44666 2011-02-17  Andreas Schwab  <schwab@redhat.com>
44667
44668         [BZ #12454]
44669         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
44670         dependencies are missing.
44671
44672 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44673
44674         Fix __if_freereq crash: Unlike the generic version which uses free,
44675         Hurd needs munmap.
44676         * sysdeps/mach/hurd/ifreq.h: New file.
44677
44678 2011-01-27  Petr Baudis  <pasky@suse.cz>
44679             Ulrich Drepper  <drepper@gmail.com>
44680
44681         [BZ 12445]#
44682         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
44683         to extend_alloca().
44684         * stdio-common/bug23.c: New file.
44685         * stdio-common/Makefile (tests): Add bug23.
44686
44687 2010-09-28  Andreas Schwab  <schwab@redhat.com>
44688             Ulrich Drepper  <drepper@gmail.com>
44689
44690         [BZ #12489]
44691         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
44692         before performing relro protection.  At old place add assertion
44693         to make sure nothing changed.
44694
44695 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
44696             Glauber de Oliveira Costa  <glommer@gmail.com>
44697
44698         * elf/elf.h: Add new ARM TLS relocs.
44699
44700 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
44701
44702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
44703         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
44704         cast from r3.
44705         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
44706         'tests' variable.
44707         * sysdeps/wordsize-64/tst-writev.c: New file.
44708
44709 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
44710
44711         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
44712         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
44713         insns in _dl_start to prevent a TOC reference before relocs are
44714         resolved.
44715
44716 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
44717
44718         [BZ #12469]
44719         * Makeconfig: Remove RANLIB definition.
44720         * Makerules: Don't use RANLIB.
44721         * aclocal.m4: Remove ranlib test.
44722         * configure.in: No need to check for ranlib.
44723         * elf/rtld-Rules: Don't use RANLIB.
44724
44725 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44726
44727         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
44728         protection macro.
44729         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
44730         inclusion protection macro.
44731
44732         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
44733         SIGRTMIN and SIGRTMAX and print information in that case only when
44734         SIGRTMIN is defined.
44735
44736 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
44737
44738         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
44739         arginfo fn returning -1.
44740
44741         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
44742         and thousands string is zero terminated.
44743
44744 2011-02-03  Andreas Schwab  <schwab@redhat.com>
44745
44746         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
44747         sysdeps/unix/sysv/linux/bits/socket.h.
44748
44749 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44750
44751         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
44752         (__CPU_COUNT): Remove old macros.
44753         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
44754         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
44755         (__CPU_ALLOC, __CPU_FREE): Add macros.
44756         (__sched_cpualloc, __sched_cpufree): Add declarations.
44757
44758 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
44759
44760         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
44761         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
44762         * nscd/aicache.c (addhstaiX): Return timeout of added value.
44763         (readdhstai): Return value of addhstaiX call.
44764         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
44765         (addgrbyX): Return value returned by cache_addgr.
44766         (readdgrbyname): Return value returned by addgrbyX.
44767         (readdgrbygid): Likewise.
44768         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
44769         (addpwbyX): Return value returned by cache_addpw.
44770         (readdpwbyname): Return value returned by addhstbyX.
44771         (readdpwbyuid): Likewise.
44772         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
44773         (addservbyX): Return value returned by cache_addserv.
44774         (readdservbyname): Return value returned by addservbyX:
44775         (readdservbyport): Likewise.
44776         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
44777         (addhstbyX): Return value returned by cache_addhst.
44778         (readdhstbyname): Return value returned by addhstbyX.
44779         (readdhstbyaddr): Likewise.
44780         (readdhstbynamev6): Likewise.
44781         (readdhstbyaddrv6): Likewise.
44782         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
44783         (readdinitgroups): Return value returned by addinitgroupsX.
44784         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
44785         (prune_cache): Keep track of timeout value of re-added entries.
44786         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
44787         * nscd/nscd.h: Adjust prototypes of readd* functions.
44788
44789 2011-02-04  Roland McGrath  <roland@redhat.com>
44790
44791         * nis/nis_server.c (nis_servstate): Use the right name for 0.
44792         (nis_stats): Likewise.
44793         * nis/nis_modify.c (nis_modify): Likewise.
44794         * nis/nis_remove.c (nis_remove): Likewise.
44795         * nis/nis_add.c (nis_add): Likewise.
44796
44797         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
44798
44799         * posix/fnmatch_loop.c: Add some consts.
44800
44801         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
44802
44803 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
44804
44805         [BZ #12460]
44806         * config.make.in (config-cflags-novzeroupper): Define.
44807         * configure.in: Substitute libc_cv_cc_novzeroupper.
44808         * elf/Makefile (AVX-CFLAGS): Define.
44809         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
44810         (CFLAGS-tst-auditmod4a.c): Likewise.
44811         (CFLAGS-tst-auditmod4b.c): Likewise.
44812         (CFLAGS-tst-auditmod6b.c): Likewise.
44813         (CFLAGS-tst-auditmod6c.c): Likewise.
44814         (CFLAGS-tst-auditmod7b.c): Likewise.
44815         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
44816
44817 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
44818
44819         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
44820         function to the callback.
44821         Patch partly by Jiri Olsa <jolsa@redhat.com>.
44822
44823 2011-02-02  Andreas Schwab  <schwab@redhat.com>
44824
44825         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
44826         of errno.
44827
44828 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
44829
44830         [BZ #11724]
44831         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
44832         of constructors.
44833         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
44834         of destructors.
44835         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
44836
44837         [BZ #11724]
44838         * elf/Makefile: Add rules to build and run new test.
44839         * elf/tst-initorder.c: New file.
44840         * elf/tst-initorder.exp: New file.
44841         * elf/tst-initordera1.c: New file.
44842         * elf/tst-initordera2.c: New file.
44843         * elf/tst-initordera3.c: New file.
44844         * elf/tst-initordera4.c: New file.
44845         * elf/tst-initorderb1.c: New file.
44846         * elf/tst-initorderb2.c: New file.
44847         * elf/tst-order-a1.c: New file.
44848         * elf/tst-order-a2.c: New file.
44849         * elf/tst-order-a3.c: New file.
44850         * elf/tst-order-a4.c: New file.
44851         * elf/tst-order-b1.c: New file.
44852         * elf/tst-order-b2.c: New file.
44853         * elf/tst-order-main.c: New file.
44854         New test case by George Gensure <werkt0@gmail.com>.
44855
44856 2010-10-01  Andreas Schwab  <schwab@redhat.com>
44857
44858         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
44859         decoding ACE if AI_CANONIDN.
44860
44861 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
44862
44863         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
44864
44865 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
44866
44867         * version.h (RELEASE): Bump for 2.13 release.
44868         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
44869
44870         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
44871
44872         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
44873         MADV_NOHUGEPAGE.
44874         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
44875         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
44876         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
44877         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
44878         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
44879         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
44880
44881         * posix/getconf.c: Update copyright year.
44882         * catgets/gencat.c: Likewise.
44883         * csu/version.c: Likewise.
44884         * debug/catchsegv.sh: Likewise.
44885         * debug/xtrace.sh: Likewise.
44886         * elf/ldconfig.c: Likewise.
44887         * elf/ldd.bash.in: Likewise.
44888         * elf/sprof.c (print_version): Likewise.
44889         * iconv/iconv_prog.c: Likewise.
44890         * iconv/iconvconfig.c: Likewise.
44891         * locale/programs/locale.c: Likewise.
44892         * locale/programs/localedef.c: Likewise.
44893         * malloc/memusage.sh: Likewise.
44894         * malloc/mtrace.pl: Likewise.
44895         * nscd/nscd.c (print_version): Likewise.
44896         * nss/getent.c: Likewise.
44897
44898         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
44899         PF_CAIF, and PF_ALG.
44900         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
44901
44902 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
44903
44904         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
44905         (modules-names): Use them.
44906         (ifunc-test-modules, ifunc-pie-tests): Define.
44907         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
44908         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
44909         (test-extras): Likewise.
44910         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
44911         $(compile-command.c).
44912         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
44913         (all-built-dso): Define.
44914         (check-textrel.out, check-execstack.out): Depend on it.
44915
44916         * configure.in: Don't override --enable-multi-arch.
44917
44918 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
44919
44920         [BZ #6812]
44921         * nscd/hstcache.c (tryagain): Define.
44922         (cache_addhst): Return tryagain not notfound for temporary errors.
44923         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
44924         failed.
44925
44926 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
44927
44928         [BZ #10563]
44929         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
44930         to make the syscall.
44931         * sysdeps/unix/sysv/linux/setgroups.c: New file.
44932
44933         [BZ #12378]
44934         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
44935         and fall back to matching as normal character if the string ends before
44936         the matching ']' is found.  This is what POSIX requires.
44937         * posix/testfnm.c: Adjust test result.
44938         * posix/globtest.sh: Adjust test result.  Add new test.
44939         * posix/tst-fnmatch.input: Likewise.
44940         * posix/tst-fnmatch2.c: Add new test.
44941
44942 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
44943
44944         * elf/Makefile (check-execstack): Revert last change.  Depend on
44945         check-execstack.h.
44946         (check-execstack.h): New target.
44947         (generated): Add check-execstack.h.
44948         * elf/check-execstack.c: Include "check-execstack.h".
44949         (main): Revert last change.
44950         (handle_file): Return zero if GNU_STACK is absent and
44951         DEFAULT_STACK_PERMS doesn't include PF_X.
44952
44953 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
44954
44955         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
44956         in child fails because the descriptor is already closed.
44957         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
44958         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
44959         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
44960
44961         [BZ #12397]
44962         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
44963         syscall.
44964
44965         [BZ #10484]
44966         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
44967         temporary buffer used to handle multi lookups locally.
44968         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
44969
44970 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
44971
44972         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
44973         loader is ld.so.
44974
44975 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
44976
44977         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
44978         alignment for SSE2.
44979
44980 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
44981
44982         [BZ #12394]
44983         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
44984         characters.  When rounding increased number of integer digits recompute
44985         number of groups.
44986         * stdio-common/tst-grouping.c: New file.
44987         * stdio-common/Makefile: Add rules to build and run tst-grouping.
44988
44989 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
44990
44991         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
44992         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
44993
44994         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
44995         void.
44996         * bits/select.h: Likewise.
44997
44998 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
44999
45000         * po/ja.po: Update from translation team.
45001
45002 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45003
45004         [BZ #11155]
45005         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45006         implementation just like for lxstat, fxstatat, et al.
45007
45008 2010-12-27  Jim Meyering  <meyering@redhat.com>
45009
45010         [BZ #12348]
45011         * posix/regexec.c (build_trtable): Return failure indication upon
45012         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45013
45014 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45015
45016         [BZ #12201]
45017         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45018         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45019         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45020         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45021
45022         [BZ #12207]
45023         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45024
45025         [BZ #12204]
45026         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45027         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45028
45029 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45030
45031         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45032         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45033         script has SORT_BY_INIT_PRIORITY.
45034         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45035         NO_CTORS_DTORS_SECTIONS is defined.
45036         * elf/soinit.c: Likewise.
45037         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45038         NO_CTORS_DTORS_SECTIONS is defined.
45039         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45040         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45041         * sysdeps/sh/init-first.c: Likewise.
45042         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45043
45044 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45045
45046         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45047         always use the slow path.
45048
45049 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45050
45051         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45052         similar rule which adds the sysdep directories to the header search in
45053         order to pick up the correct platform stackinfo.h.
45054         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45055         perform test if it is, otherwise return successfully without testing.
45056         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45057         DEFAULT_STACK_PERMS define in stackinfo.h.
45058         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45059         defined in stackinfo.h.
45060         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45061         DEFAULT_STACK_PERMS defined in stackinfo.h.
45062         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45063         * sysdeps/ia64/stackinfo.h: Likewise.
45064         * sysdeps/s390/stackinfo.h: Likewise.
45065         * sysdeps/sh/stackinfo.h: Likewise.
45066         * sysdeps/sparc/stackinfo.h: Likewise.
45067         * sysdeps/x86_64/stackinfo.h: Likewise.
45068         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45069         PF_X for powerpc64.  Retain PF_X for powerpc32.
45070
45071 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45072
45073         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45074         accurately.
45075         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45076         GETDENTS_64BIT_ALIGNED.
45077
45078 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45079
45080         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45081
45082 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45083
45084         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45085         _GNU_SOURCE.
45086
45087         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45088         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45089         Remove __restrict.
45090         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45091         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45092
45093 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45094
45095         [BZ #11655]
45096         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45097         are initialized.
45098
45099 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45100
45101         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45102
45103 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45104
45105         * po/it.po: Update from translation team.
45106
45107 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45108
45109         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45110         unused codes.
45111
45112 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45113
45114         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45115
45116 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45117
45118         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45119         specially.
45120         (gaih_getanswer_slice): Likewise.
45121
45122 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45123
45124         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45125
45126 2010-05-31  Petr Baudis  <pasky@suse.cz>
45127
45128         [BZ #11149]
45129         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45130         silently even in the chroot mode.
45131
45132 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45133
45134         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45135         last patch a bit.  Pretty printing
45136
45137 2010-05-31  Petr Baudis <pasky@suse.cz>
45138
45139         [BZ #10085]
45140         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45141         initialization of skip_initgroups_dyn.
45142
45143 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45144
45145         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45146         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45147
45148 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45149
45150         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45151
45152 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45153
45154         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45155         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45156         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45157         ($(objpfx)tst-fnmatch-mem): New rule.
45158         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45159         * posix/tst-fnmatch.c (main): Call mtrace.
45160
45161 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45162
45163         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45164         Support Intel processor model 6 and model 0x2c.
45165
45166 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45167
45168         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45169           signed comparison.
45170
45171 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45172
45173         [BZ #12205]
45174         * string/test-strncasecmp.c (check_result): New function.
45175         (do_one_test): Use it.
45176         (check1): New function.
45177         (test_main): Use it.
45178         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45179         Support strcasecmp and strncasecmp.
45180
45181 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45182
45183         [BZ #12194]
45184         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45185         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45186
45187 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45188
45189         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45190         IFUNC support.
45191         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45192         memset-x86-64.
45193         * sysdeps/x86_64/multiarch/bzero.S: New file.
45194         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45195         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45196         * sysdeps/x86_64/multiarch/memset.S: New file.
45197         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45198         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45199         Set bit_Prefer_SSE_for_memop for Intel processors.
45200         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45201         Define.
45202         (index_Prefer_SSE_for_memop): Define.
45203         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45204
45205 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45206
45207         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45208         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45209
45210 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45211
45212         [BZ #12191]
45213         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45214         (__x86_64_raw_data_cache_size_half): Likewise.
45215         (__x86_64_raw_shared_cache_size): Likewise.
45216         (__x86_64_raw_shared_cache_size_half): Likewise.
45217
45218         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45219         (__x86_64_raw_data_cache_size_half): Likewise.
45220         (__x86_64_raw_shared_cache_size): Likewise.
45221         (__x86_64_raw_shared_cache_size_half): Likewise.
45222         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45223         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45224         and __x86_64_raw_shared_cache_size_half.  Round
45225         __x86_64_data_cache_size_half, __x86_64_data_cache_size
45226         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
45227         to multiple of 256 bytes.
45228
45229 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45230
45231         [BZ #12167]
45232         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
45233         of inacessible symlinks.  Verify result of symlink before returning it.
45234         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
45235         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
45236
45237 2010-10-28  Erich Ritz  <erichritz@gmail.com>
45238
45239         * math/math.h (isinf): Fix typo in comment.
45240
45241 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
45242
45243         * po/da.po: Update from translation team.
45244
45245 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
45246
45247         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
45248         is added to the list.
45249
45250 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45251             Ulrich Drepper  <drepper@gmail.com>
45252
45253         * elf/dl-object.c (_dl_new_object): Don't append the new object to
45254         the global list here.  Move code to...
45255         (_dl_add_to_namespace_list): ...here.  New function.
45256         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
45257         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
45258         * elf/dl-load.c (lose): Don't remove the element from the list.
45259         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
45260         (_dl_map_object): Likewise.
45261
45262 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
45263
45264         [BZ #12159]
45265         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
45266         into all bytes of SSE register.
45267         Patch by Richard Li <richardpku@gmail.com>.
45268
45269 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
45270
45271         [BZ #12140]
45272         * malloc/malloc.c (_int_free): Fill correct number of bytes when
45273         perturbing.
45274
45275 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
45276
45277         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
45278         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
45279         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
45280         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
45281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
45282         submachine.
45283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
45284
45285 2010-10-22  Andreas Schwab  <schwab@redhat.com>
45286
45287         * include/dlfcn.h (__RTLD_SECURE): Define.
45288         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
45289         mode & __RTLD_SECURE instead.
45290         (open_path): Rename preloaded parameter to secure.
45291         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
45292         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
45293         * elf/dl-deps.c (openaux): Likewise.
45294         * elf/rtld.c (struct map_args): Remove is_preloaded.
45295         (map_doit): Don't use it.
45296         (dl_main): Likewise.
45297         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
45298         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
45299
45300 2010-09-09  Andreas Schwab  <schwab@redhat.com>
45301
45302         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
45303         (sysd-rules-targets): Remove duplicates.
45304         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
45305         rtld-%.$o dependency.
45306
45307 2010-10-18  Andreas Schwab  <schwab@redhat.com>
45308
45309         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
45310         _dl_map_object do it.
45311
45312 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
45313
45314         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
45315         fast fma builtins, define the macros in the C99 standard.
45316         (FP_FAST_FMAF): Likewise.
45317         (FP_FAST_FMAL): Likewise.
45318         * sysdeps/x86_64/bits/mathdef.h: Likewise.
45319
45320         * bits/mathdef.h: Update copyright year.
45321         * sysdeps/powerpc/bits/mathdef.h: Likewise.
45322
45323 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
45324
45325         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
45326         builtins, define the macros in the C99 standard.
45327         (FP_FAST_FMAF): Likewise.
45328         (FP_FAST_FMAL): Likewise.
45329         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
45330         multiply/add.
45331         (FP_FAST_FMAF): Likewise.
45332
45333 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
45334
45335         [BZ #3268]
45336         * math/libm-test.inc (fma_test): Some new testcases.
45337         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
45338         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
45339         y and infinite z.  Do multiplication by C already in long double.
45340         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
45341         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
45342         y and infinite z.  Do bitwise or of inexact bit into u.d.
45343         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
45344         * sysdeps/i386/fpu/s_fmaf.S: Removed.
45345         * sysdeps/i386/fpu/s_fma.S: Removed.
45346         * sysdeps/i386/fpu/s_fmal.S: Removed.
45347
45348 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
45349
45350         [BZ #3268]
45351         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
45352         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
45353         computation is not scheduled after fetestexcept.  Fix value
45354         of minimum denormal long double.
45355
45356 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
45357
45358         [BZ #3268]
45359         * math/libm-test.inc (fma_test): Add some more tests.
45360         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
45361         correctly.
45362
45363 2010-10-15  Andreas Schwab  <schwab@redhat.com>
45364
45365         * scripts/data/localplt-s390-linux-gnu.data: New file.
45366         * scripts/data/localplt-s390x-linux-gnu.data: New file.
45367
45368 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
45369
45370         [BZ #3268]
45371         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
45372         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
45373         instead of dbl-64.
45374         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
45375         inlines.
45376         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
45377         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
45378         if one of x and y is very large and the other is subnormal.
45379         * sysdeps/s390/fpu/s_fmaf.c: New file.
45380         * sysdeps/s390/fpu/s_fma.c: New file.
45381         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
45382         * sysdeps/powerpc/fpu/s_fma.S: New file.
45383         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
45384         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
45385         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
45386
45387 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
45388
45389         [BZ #3268]
45390         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
45391         fma tests.
45392         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
45393         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
45394         * sysdeps/i386/i686/multiarch/s_fma.c: Include
45395         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
45396         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
45397         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
45398         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
45399
45400 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
45401
45402         [BZ #12078]
45403         * posix/regcomp.c (parse_branch): One more memory leak plugged.
45404         * posix/bug-regex31.input: Add test case.
45405
45406 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45407
45408         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
45409         * posix/bug-regex31.input: New file.
45410
45411         [BZ #12078]
45412         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
45413         (parse_sub_exp): Fix last change, use postorder.
45414
45415         * posix/bug-regex31.c: New file.
45416         * posix/Makefile: Add rules to build and run bug-regex31.
45417
45418         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
45419
45420         [BZ #12078]
45421         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
45422
45423         [BZ #12108]
45424         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
45425         to have entries in sys_siglist.
45426
45427         [BZ #12093]
45428         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
45429         be NULL.
45430
45431 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
45432
45433         [BZ #3268]
45434         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
45435         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
45436         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
45437         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
45438         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
45439         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
45440         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
45441         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
45442         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
45443         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
45444         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
45445         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
45446         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
45447         * math/ftestexcept.c (fetestexcept): Likewise.
45448         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
45449         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
45450         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
45451         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
45452         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
45453         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
45454         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
45455
45456 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45457
45458         [BZ #12107]
45459         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
45460         newline.
45461
45462 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
45463
45464         * string/bug-strstr1.c: New file.
45465         * string/Makefile: Add rules to build and run bug-strstr1.
45466
45467 2010-10-05  Eric Blake  <eblake@redhat.com>
45468
45469         [BZ #12092]
45470         * string/str-two-way.h (two_way_long_needle): Always clear memory
45471         when skipping input due to the shift table.
45472
45473 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
45474
45475         [BZ #12005]
45476         * malloc/mcheck.c: Handle large requests.
45477
45478         [BZ #12077]
45479         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
45480         for strncmp and strncasecmp.
45481         * string/stratcliff.c: Add tests for strcmp and strncmp.
45482         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
45483
45484 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
45485
45486         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
45487         __set_fpscr.
45488
45489 2010-09-30  Andreas Jaeger  <aj@suse.de>
45490
45491         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
45492         (CGROUP_SUPER_MAGIC): Define.
45493         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45494         Handle btrfs and cgroup file systems.
45495         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
45496         Likewise.
45497
45498 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
45499
45500         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
45501         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
45502
45503 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45504
45505         [BZ #12067]
45506         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
45507         trying to locate the ELF header.
45508
45509 2010-09-27  Andreas Schwab  <schwab@redhat.com>
45510
45511         [BZ #11611]
45512         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
45513         Mask out sign-bit copies when constructing f_fsid.
45514
45515 2010-09-24  Petr Baudis <pasky@suse.cz>
45516
45517         * debug/stack_chk_fail_local.c: Add missing licence exception.
45518         * debug/warning-nop.c: Likewise.
45519
45520 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
45521
45522         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
45523         implementing getdents64 using getdents syscall, set d_type if
45524         __ASSUME_GETDENTS32_D_TYPE.
45525
45526 2010-09-16  Andreas Schwab  <schwab@redhat.com>
45527
45528         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
45529         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
45530
45531 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
45532
45533         [BZ #12037]
45534         * posix/unistd.h: Undo change of feature selection for ftruncate from
45535         2010-01-11.
45536
45537 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
45538
45539         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
45540         detection.
45541
45542 2010-09-20  Andreas Schwab  <schwab@redhat.com>
45543
45544         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
45545         fanotify_mark.
45546         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
45547
45548 2010-09-14  Andreas Schwab  <schwab@redhat.com>
45549
45550         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
45551         variables after CHECK_SP call.
45552         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
45553
45554 2010-09-13  Andreas Schwab  <schwab@redhat.com>
45555             Ulrich Drepper  <drepper@redhat.com>
45556
45557         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
45558         re-relocationg ld.so.
45559         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
45560         _dl_init_paths call.
45561         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
45562         here anymore.
45563
45564 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
45565
45566         * resolv/res_init.c (__res_vinit): Count the default server we added.
45567
45568 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
45569             Ulrich Drepper  <drepper@redhat.com>
45570
45571         [BZ #11968]
45572         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
45573         (____longjmp_chk): Use %ebx for saving value across system call.
45574         Add unwind info.
45575
45576 2010-09-06  Andreas Schwab  <schwab@redhat.com>
45577
45578         * manual/Makefile: Don't mix pattern rules with normal rules.
45579
45580 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
45581
45582         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
45583         operation.
45584         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
45585         * libio/iofopncook.c (_IO_cookie_init): Likewise.
45586         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
45587         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
45588         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
45589         Likewise.
45590
45591 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
45592
45593         [BZ #11979]
45594         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
45595         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
45596
45597 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
45598
45599         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
45600         * sysdeps/x86_64/addmul_1.S: Likewise.
45601         * sysdeps/x86_64/lshift.S: Likewise.
45602         * sysdeps/x86_64/mul_1.S: Likewise.
45603         * sysdeps/x86_64/rshift.S: Likewise.
45604         * sysdeps/x86_64/sub_n.S: Likewise.
45605         * sysdeps/x86_64/submul_1.S: Likewise.
45606
45607 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45608
45609         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
45610         Define __sched_param instead of SCHED_* and sched_param when
45611         <bits/sched.h> is included with __need_schedparam defined.
45612         * bits/sched.h [__need_schedparam]
45613         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
45614         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
45615         (__defined_schedparam): Define to 1.
45616         (__sched_param): New structure, identical to sched_param.
45617         (__need_schedparam): Undefine.
45618
45619 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
45620
45621         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
45622         (epoll_create1): Declare.
45623
45624         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
45625
45626 2010-08-31  Andreas Schwab  <schwab@redhat.com>
45627
45628         [BZ #7066]
45629         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
45630         shifting retval into place.
45631
45632 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
45633
45634         * nis/rpcsvc/nis.h: Update copyright notice.
45635         * nis/rpcsvc/nis.x: Likewise.
45636         * nis/rpcsvc/nis_callback.h: Likewise.
45637         * nis/rpcsvc/nis_callback.x: Likewise.
45638         * nis/rpcsvc/nis_object.x: Likewise.
45639         * nis/rpcsvc/nis_tags.h: Likewise.
45640         * nis/rpcsvc/yp.h: Likewise.
45641         * nis/rpcsvc/yp.x: Likewise.
45642         * nis/rpcsvc/ypupd.h: Likewise.
45643         * nis/yp_xdr.c: Likewise.
45644         * nis/ypupdate_xdr.c: Likewise.
45645
45646         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
45647         mainly the body of pmap_getport.  Add parameters to specify timeouts.
45648         (pmap_getport): Use __libc_rpc_getport.
45649         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
45650         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
45651         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
45652
45653 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
45654
45655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
45656         fanotify_mark.
45657
45658 2010-08-27  Roland McGrath  <roland@redhat.com>
45659
45660         * sysdeps/i386/i686/multiarch/Makefile
45661         (CFLAGS-varshift.c): New variable.
45662
45663 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
45664
45665         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
45666         * sysdeps/i386/i686/multiarch/varshift.c: New file.
45667
45668         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
45669
45670         * sysdeps/x86_64/strlen.S: Minimal code improvement.
45671
45672 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
45673
45674         * sysdeps/x86_64/strlen.S: Unroll the loop.
45675         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45676         strlen-sse2 strlen-sse2-bsf.
45677         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
45678         __strlen_no_bsf if bit_Slow_BSF is set.
45679         (__strlen_sse42): Removed.
45680         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
45681         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
45682
45683 2010-08-25  Roland McGrath  <roland@redhat.com>
45684
45685         * sysdeps/x86_64/multiarch/varshift.S: File removed.
45686         * sysdeps/x86_64/multiarch/varshift.c: New file.
45687         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
45688         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
45689         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
45690         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
45691
45692 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
45693
45694         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
45695         strlen-sse2 strlen-sse2-bsf.
45696         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
45697         __strlen_sse2_bsf if bit_Slow_BSF is unset.
45698         (__strlen_sse2): Removed.
45699         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
45700         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
45701         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45702         bit_Slow_BSF for Atom.
45703         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
45704         (index_Slow_BSF): Define.
45705         (HAS_SLOW_BSF): Define.
45706
45707 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
45708
45709         [BZ #10851]
45710         * resolv/res_init.c (__res_vinit): When no server address at all
45711         is given default to loopback.
45712
45713 2010-08-24  Roland McGrath  <roland@redhat.com>
45714
45715         * configure.in: Remove config-name.h generation.
45716         * configure: Regenerated.
45717         * config-name.in: File removed.
45718         * scripts/config-uname.sh: New file.
45719         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
45720         ($(objdir)config-name.h): New target.
45721
45722         * sunrpc/rpc_parse.h: Avoid nested comment.
45723
45724 2010-08-24  Richard Henderson  <rth@redhat.com>
45725             Ulrich Drepper  <drepper@redhat.com>
45726             H.J. Lu  <hongjiu.lu@intel.com>
45727
45728         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
45729         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
45730         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
45731         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
45732         _mm_alignr_epi8 with _mm_loadu_si128.
45733         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
45734         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
45735         (__m128i_shift_right): Removed.
45736         * sysdeps/i386/i686/multiarch/varshift.h: New file.
45737         * sysdeps/i386/i686/multiarch/varshift.S: New file.
45738         * sysdeps/x86_64/multiarch/varshift.h: New file.
45739         * sysdeps/x86_64/multiarch/varshift.S: New file.
45740
45741 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
45742
45743         * configure.in: Move assembler checks to before sysdep dir checking.
45744
45745 2010-08-20  Petr Baudis  <pasky@suse.cz>
45746
45747         * LICENSES: Sync the sunrpc license.
45748
45749 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
45750
45751         * sunrpc/auth_des.c: Update copyright notice once again.
45752         * sunrpc/auth_none.c: Likewise.
45753         * sunrpc/auth_unix.c: Likewise.
45754         * sunrpc/authdes_prot.c: Likewise.
45755         * sunrpc/authuxprot.c: Likewise.
45756         * sunrpc/bindrsvprt.c: Likewise.
45757         * sunrpc/clnt_gen.c: Likewise.
45758         * sunrpc/clnt_perr.c: Likewise.
45759         * sunrpc/clnt_raw.c: Likewise.
45760         * sunrpc/clnt_simp.c: Likewise.
45761         * sunrpc/clnt_tcp.c: Likewise.
45762         * sunrpc/clnt_udp.c: Likewise.
45763         * sunrpc/clnt_unix.c: Likewise.
45764         * sunrpc/des_crypt.c: Likewise.
45765         * sunrpc/des_soft.c: Likewise.
45766         * sunrpc/get_myaddr.c: Likewise.
45767         * sunrpc/getrpcport.c: Likewise.
45768         * sunrpc/key_call.c: Likewise.
45769         * sunrpc/key_prot.c: Likewise.
45770         * sunrpc/openchild.c: Likewise.
45771         * sunrpc/pm_getmaps.c: Likewise.
45772         * sunrpc/pm_getport.c: Likewise.
45773         * sunrpc/pmap_clnt.c: Likewise.
45774         * sunrpc/pmap_prot.c: Likewise.
45775         * sunrpc/pmap_prot2.c: Likewise.
45776         * sunrpc/pmap_rmt.c: Likewise.
45777         * sunrpc/rpc/auth.h: Likewise.
45778         * sunrpc/rpc/auth_unix.h: Likewise.
45779         * sunrpc/rpc/clnt.h: Likewise.
45780         * sunrpc/rpc/des_crypt.h: Likewise.
45781         * sunrpc/rpc/key_prot.h: Likewise.
45782         * sunrpc/rpc/netdb.h: Likewise.
45783         * sunrpc/rpc/pmap_clnt.h: Likewise.
45784         * sunrpc/rpc/pmap_prot.h: Likewise.
45785         * sunrpc/rpc/pmap_rmt.h: Likewise.
45786         * sunrpc/rpc/rpc.h: Likewise.
45787         * sunrpc/rpc/rpc_des.h: Likewise.
45788         * sunrpc/rpc/rpc_msg.h: Likewise.
45789         * sunrpc/rpc/svc.h: Likewise.
45790         * sunrpc/rpc/svc_auth.h: Likewise.
45791         * sunrpc/rpc/types.h: Likewise.
45792         * sunrpc/rpc/xdr.h: Likewise.
45793         * sunrpc/rpc_clntout.c: Likewise.
45794         * sunrpc/rpc_cmsg.c: Likewise.
45795         * sunrpc/rpc_common.c: Likewise.
45796         * sunrpc/rpc_cout.c: Likewise.
45797         * sunrpc/rpc_dtable.c: Likewise.
45798         * sunrpc/rpc_hout.c: Likewise.
45799         * sunrpc/rpc_main.c: Likewise.
45800         * sunrpc/rpc_parse.c: Likewise.
45801         * sunrpc/rpc_parse.h: Likewise.
45802         * sunrpc/rpc_prot.c: Likewise.
45803         * sunrpc/rpc_sample.c: Likewise.
45804         * sunrpc/rpc_scan.c: Likewise.
45805         * sunrpc/rpc_scan.h: Likewise.
45806         * sunrpc/rpc_svcout.c: Likewise.
45807         * sunrpc/rpc_tblout.c: Likewise.
45808         * sunrpc/rpc_util.c: Likewise.
45809         * sunrpc/rpc_util.h: Likewise.
45810         * sunrpc/rpcinfo.c: Likewise.
45811         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
45812         * sunrpc/rpcsvc/key_prot.x: Likewise.
45813         * sunrpc/rpcsvc/klm_prot.x: Likewise.
45814         * sunrpc/rpcsvc/mount.x: Likewise.
45815         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
45816         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
45817         * sunrpc/rpcsvc/rex.x: Likewise.
45818         * sunrpc/rpcsvc/rstat.x: Likewise.
45819         * sunrpc/rpcsvc/rusers.x: Likewise.
45820         * sunrpc/rpcsvc/sm_inter.x: Likewise.
45821         * sunrpc/rpcsvc/spray.x: Likewise.
45822         * sunrpc/rpcsvc/yppasswd.x: Likewise.
45823         * sunrpc/rtime.c: Likewise.
45824         * sunrpc/svc.c: Likewise.
45825         * sunrpc/svc_auth.c: Likewise.
45826         * sunrpc/svc_authux.c: Likewise.
45827         * sunrpc/svc_raw.c: Likewise.
45828         * sunrpc/svc_run.c: Likewise.
45829         * sunrpc/svc_simple.c: Likewise.
45830         * sunrpc/svc_tcp.c: Likewise.
45831         * sunrpc/svc_udp.c: Likewise.
45832         * sunrpc/svc_unix.c: Likewise.
45833         * sunrpc/svcauth_des.c: Likewise.
45834         * sunrpc/xcrypt.c: Likewise.
45835         * sunrpc/xdr.c: Likewise.
45836         * sunrpc/xdr_array.c: Likewise.
45837         * sunrpc/xdr_float.c: Likewise.
45838         * sunrpc/xdr_mem.c: Likewise.
45839         * sunrpc/xdr_rec.c: Likewise.
45840         * sunrpc/xdr_ref.c: Likewise.
45841         * sunrpc/xdr_sizeof.c: Likewise.
45842         * sunrpc/xdr_stdio.c: Likewise.
45843
45844         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
45845         handling.
45846
45847 2010-08-19  Andreas Schwab  <schwab@redhat.com>
45848
45849         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
45850
45851 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
45852
45853         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
45854         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
45855         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
45856         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
45857         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
45858         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
45859         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
45860         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
45861         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
45862         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
45863         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
45864         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
45865         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
45866         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
45867
45868 2010-07-26  Anton Blanchard  <anton@samba.org>
45869
45870         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
45871         * malloc/arena.c (heap_trim): Likewise.
45872
45873 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
45874
45875         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
45876         here.  Not...
45877         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
45878         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
45879
45880 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
45881
45882         * sysdeps/i386/elf/Makefile: New file.
45883
45884 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
45885
45886         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
45887         from fanotify_init.
45888         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
45889         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
45890
45891 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
45892
45893         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
45894         of strncasecmp_l.
45895         * sysdeps/multiarch/strcmp.S: Likewise.
45896
45897 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
45898
45899         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
45900         strncase_l-nonascii.
45901         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
45902         Add strncase_l-ssse3.
45903         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
45904         * sysdeps/x86_64/strcmp.S: Likewise.
45905         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
45906         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
45907         * sysdeps/x86_64/strncase.S: New file.
45908         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
45909         * sysdeps/x86_64/strncase_l.S: New file.
45910         * string/Makefile (strop-tests): Add strncasecmp.
45911         * string/test-strncasecmp.c: New file.
45912
45913         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
45914         warning.
45915
45916         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
45917         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
45918
45919 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
45920
45921         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
45922
45923 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
45924
45925         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
45926         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
45927         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
45928
45929 2010-05-01  Alan Modra  <amodra@gmail.com>
45930
45931         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
45932         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
45933         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
45934         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
45935         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
45936         tidying.  Don't tail-call __sigjmp_save for static lib.
45937         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
45938         save location.
45939         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
45940         (CALL_MCOUNT): Add eh info, and nop after bl.
45941         (TAIL_CALL_SYSCALL_ERROR): New macro.
45942         (PSEUDO_RET): Use it.
45943         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
45944         Correct save location of integer regs and cr.
45945         (_dl_profile_resolve): Correct cr save location.  Delete nops
45946         after bl when SHARED.  Reduce cfi size a little by better
45947         placement of cfi directives.
45948         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
45949         make a stack frame.  Instead use parm save area as a temp.
45950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
45951         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
45952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
45953         Don't make a stack frame for parent, use parm save area.
45954         Increase child stack frame to 112 bytes.  Don't save unused reg,
45955         and adjust reg usage.  Set up cfi on error recovery and
45956         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
45957         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
45958         (__makecontext): Add dummy nop after jump to exit.
45959         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
45960         Use correct parm save area and cr save, reduce stack frame.
45961         Correct cfi for possible PSEUDO_RET frame setup.
45962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
45963         Branch to local label emitted by PSEUDO_RET rather than
45964         __syscall_error.
45965
45966 2010-08-12  Andreas Schwab  <schwab@redhat.com>
45967
45968         [BZ #11904]
45969         * locale/programs/locale.c (print_assignment): New function.
45970         (show_locale_vars): Use it.
45971
45972 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
45973
45974         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
45975         field.
45976         (struct statfs64): Likewise.
45977         (_STATFS_F_FLAGS): Define.
45978         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
45979         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45980         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
45981         (ST_VALID): Define locally.
45982         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
45983         __statvfs_getflags, use the provided value.
45984         * sysdeps/unix/sysv/linux/kernel-features.h: Define
45985         __ASSUME_STATFS_F_FLAGS.
45986
45987         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
45988
45989         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
45990         Add sys/fanotify.h.
45991         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
45992         fanotify_mask for GLIBC_2.13.
45993         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
45994         fanotify_init and fanotify_mark.
45995         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
45996         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
45997
45998         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
45999         Add prlimit.
46000         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46001         prlimit64 for GLIBC_2.13.
46002         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46003         prlimit64.
46004         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46005         syscall.
46006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46007         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46008         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46009         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46010         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46011         add prlimit alias.
46012         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46013
46014         [BZ #11903]
46015         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46016         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46017
46018         * nss/Makefile: Add rules to build and run tst-nss-test1.
46019         * shlib-versions: Add entry for libnss_test1.
46020         * nss/nss_test1.c: New file.
46021         * nss/tst-nss-test1.c: New file.
46022
46023         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46024         (__nss_configure_lookup): Set appropriate entry in
46025         __nss_configure_lookup to true.
46026         * nss/nsswitch.h: Define enum with indeces of databases in
46027         databases and __nss_database_custom arrays.  Declare
46028         __nss_database_custom.
46029         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46030         to avoid using nscd when custom rules are installed.
46031         * nss/getXXbyYY_r.c: Likewise.
46032         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46033
46034         * nss/nss_files/files-parse.c: Whitespace fixes.
46035
46036 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46037
46038         [BZ #11883]
46039         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46040         * posix/fnmatch_loop.c: Likewise.
46041
46042 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46043
46044         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46045         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46046         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46047         * Versions.def [GLIBC_2.13]: Add.
46048
46049 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46050
46051         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46052         Also fail if tpwd after pwuid call is NULL.
46053
46054 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46055
46056         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46057         when converting to ms.
46058
46059 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46060
46061         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46062         EOPNOTSUPP errors with ENOTTY.
46063         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46064         EOPNOTSUPP errors with ENOTTY.
46065
46066 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46067
46068         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46069         Add strcasecmp_l-ssse3.
46070         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46071         strcasecmp.
46072         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46073         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46074         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46075
46076 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46077
46078         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46079
46080         * string/Makefile (strop-tests): Add strcasecmp.
46081         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46082         strcasecmp_l-nonascii.
46083         (gen-as-const-headers): Add locale-defines.sym.
46084         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46085         * sysdeps/x86_64/strcasecmp.S: New file.
46086         * sysdeps/x86_64/strcasecmp_l.S: New file.
46087         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46088         * sysdeps/x86_64/locale-defines.sym: New file.
46089         * string/test-strcasecmp.c: New file.
46090
46091         * string/test-strcasestr.c: Test both ends of the range of characters.
46092         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46093
46094 2010-07-29  Roland McGrath  <roland@redhat.com>
46095
46096         [BZ #11856]
46097         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46098
46099 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46100
46101         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46102         for ld.so.
46103
46104 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46105
46106         * manual/memory.texi (Malloc Tunable Parameters): Document
46107         M_PERTURB.
46108
46109 2010-07-26  Roland McGrath  <roland@redhat.com>
46110
46111         [BZ #11840]
46112         * configure.in (-fgnu89-inline check): Set and substitute
46113         gnu89_inline, not libc_cv_gnu89_inline.
46114         * configure: Regenerated.
46115         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46116
46117 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46118
46119         * string/test-strnlen.c: New file.
46120         * string/Makefile (strop-tests): Add strnlen.
46121         * string/tester.c (test_strnlen): Add a few more test cases.
46122         * string/tst-strlen.c: Better error reporting.
46123
46124         * sysdeps/x86_64/strnlen.S: New file.
46125
46126 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46127
46128         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46129         lower-latency instructions.
46130
46131 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46132
46133         * string/test-strcasestr.c: New file.
46134         * string/test-strstr.c: New file.
46135         * string/Makefile (strop-tests): Add strstr and strcasestr.
46136         * string/str-two-way.h: Don't undefine MAX.
46137         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46138
46139 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46140
46141         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46142         strcasestr-nonascii.
46143         (CFLAGS-strcasestr-nonascii.c): Define.
46144         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46145         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46146         Remove unused attribute.
46147
46148 2010-07-20  Roland McGrath  <roland@redhat.com>
46149
46150         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46151         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46152         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46153         like LD_HWCAP_MASK can disable hwcaps.
46154
46155 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46156
46157         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46158
46159 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46160
46161         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46162         call in strcasestr.
46163         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46164         __strcasestr_sse42_nonascii.
46165         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46166         strcasestr-nonascii.c.
46167         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46168
46169 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46170
46171         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46172         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46173         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46174         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46175
46176 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46177
46178         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46179         fcntl.
46180
46181 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46182
46183         [BZ #11577]
46184         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46185         dl_signal_cerror.
46186
46187 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46188
46189         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46190         _PC_PIPE_BUF using F_GETPIPE_SZ.
46191
46192 2010-07-05  Roland McGrath  <roland@redhat.com>
46193
46194         * manual/arith.texi (Rounding Functions): Fix rint description
46195         implicit in round description.
46196
46197 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46198
46199         * elf/Makefile: Fix linking for a few tests to make recent linker
46200         happy.
46201
46202 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46203
46204         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46205         $(common-objpfx)libc_nonshared.a.
46206
46207 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46208
46209         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46210         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46211         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46212         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46213         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46214         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46215         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46216         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46218         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46221         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
46226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
46227         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
46229         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46230         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
46231         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
46232         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
46233         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
46234         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
46235         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
46236         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
46237         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
46238         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
46239         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
46240         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
46241         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
46242         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
46243         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
46244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
46245         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
46246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
46247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
46248         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
46249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
46250         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
46251         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
46252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
46253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
46254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
46255         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
46256         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
46257
46258 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
46259
46260         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
46261         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
46262         * string/memmove.c (memmove): Renamed to ...
46263         (MEMMOVE): ...this.  Default to memmove.
46264         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
46265         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
46266         (END_CHK): Define.
46267         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46268         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
46269         mempcpy-ssse3-back memmove-ssse3-back.
46270         * sysdeps/x86_64/multiarch/bcopy.S: New file .
46271         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
46272         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
46273         * sysdeps/x86_64/multiarch/memcpy.S: New file.
46274         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
46275         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
46276         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
46277         * sysdeps/x86_64/multiarch/memmove.c: New file.
46278         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
46279         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
46280         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
46281         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
46282         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
46283         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
46284         Define.
46285         (index_Fast_Copy_Backward): Define.
46286         (HAS_ARCH_FEATURE): Define.
46287         (HAS_FAST_REP_STRING): Define.
46288         (HAS_FAST_COPY_BACKWARD): Define.
46289
46290 2010-06-21  Andreas Schwab  <schwab@redhat.com>
46291
46292         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46293         Restore proper fallback handling.
46294
46295 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
46296
46297         [BZ #11701]
46298         * posix/group_member.c (__group_member): Correct checking loop.
46299
46300         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
46301         OOM in getpwuid_r correctly.  Return error number when the caller
46302         should return, otherwise -1.
46303         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
46304         call returning > 0 value.
46305         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
46306
46307 2010-06-07  Andreas Schwab  <schwab@redhat.com>
46308
46309         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
46310         libc_nonshared.a from targets in modules-names.
46311
46312 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
46313
46314         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
46315         requires it.
46316
46317 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
46318
46319         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
46320         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
46321         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
46322         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
46323
46324 2010-06-02  Andreas Schwab  <schwab@redhat.com>
46325
46326         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
46327
46328 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
46329
46330         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
46331         and F_GETPIPE_SZ.
46332         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46333         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46334         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46335         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46336         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46337         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
46338
46339 2010-06-14  Roland McGrath  <roland@redhat.com>
46340
46341         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
46342
46343 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
46344
46345         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
46346         __REDIRECT followed by __THROW.
46347         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
46348         * posix/getopt.h (getopt): Likewise.
46349
46350 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46351
46352         * hurd/lookup-at.c (__file_name_lookup_at): Accept
46353         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
46354         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
46355         in AT_FLAGS.
46356         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
46357         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
46358
46359 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
46360
46361         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
46362
46363 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
46364
46365         [BZ #11640]
46366         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46367         Properly check family and model.
46368
46369 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
46370
46371         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
46372
46373 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
46374
46375         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
46376
46377 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
46378
46379         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
46380         symbol reference.
46381
46382 2010-05-19  Andreas Schwab  <schwab@redhat.com>
46383
46384         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
46385         symbol reference.
46386
46387 2010-05-21  Andreas Schwab  <schwab@redhat.com>
46388
46389         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
46390         and internal_recvmmsg.
46391         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
46392         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
46393         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
46394         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
46395
46396         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
46397         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
46398         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
46399
46400 2010-05-20  Andreas Schwab  <schwab@redhat.com>
46401
46402         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
46403
46404 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
46405
46406         POWER7 optimizations.
46407         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
46408         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
46409
46410 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
46411
46412         * version.h: Update for 2.13 development version.
46413
46414 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
46415
46416         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
46417         exceptions.  Return 0.
46418
46419 2010-05-07  Roland McGrath  <roland@redhat.com>
46420
46421         * elf/ldconfig.c (main): Add a const.
46422
46423 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
46424
46425         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
46426         (args_options): Add no-idn option.
46427         (ahosts_keys_int): Add idn_flags to ai_flags.
46428         (parse_option): Handle 'i' option to clear idn_flags.
46429
46430         * malloc/malloc.c (_int_free): Possible race in the most recently
46431         added check.  Only act on the data if no current modification
46432         happened.
46433
46434 See ChangeLog.17 for earlier changes.