Remove __ASSUME_ADJ_OFFSET_SS_READ.
[platform/upstream/linaro-glibc.git] / ChangeLog
1 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/linux/kernel-features.h
4         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
5         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
6         [ADJ_OFFSET_SS_READ]: Make code unconditional.
7         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
8
9 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
10
11         [BZ #17075]
12         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
13         Fix calculation of the symbol's value.
14         * sysdeps/arm/tst-armtlsdescloc.c: New file.
15         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
16         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
17         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
18         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
19         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
20         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
21         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
22         (modules-names): Add `tst-armtlsdescmod',
23         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
24         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
25         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
26         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
27         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
28         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
29         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
30         ($(objpfx)tst-armtlsdescloc): New dependency.
31         ($(objpfx)tst-armtlsdescextnow): Likewise.
32         ($(objpfx)tst-armtlsdescextlazy): Likewise.
33         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
34         TLS scheme support.
35         * sysdeps/arm/configure: Regenerate.
36
37 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
38
39         * include/fcntl.h (__atfct_seterrno): Remove prototype.
40         (__atfct_seterrno_2): Likewise.
41         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
42         <kernel-features.h>.
43         (__ASSUME_ATFCTS): Do not undefine and redefine.
44         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
45         (__have_atfcts): Remove conditional definition.
46         (__fxstatat([__NR_fstatat64]: Make code unconditional.
47         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
48         unreachable if [__ASSUME_ATFCTS].
49         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
50         not undefine and redefine.
51         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
52         <kernel-features.h>.
53         (faccessat) [__NR_faccessat]: Make code unconditional.
54         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
55         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
56         <kernel-features.h>.
57         (fchmodat) [__NR_fchmodat]: Make code unconditional.
58         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
59         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
60         <kernel-features.h>.
61         (fchownat) [__NR_fchownat]: Make code unconditional.
62         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
63         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
64         <kernel-features.h>.
65         (futimesat) [__NR_futimesat]: Make code unconditional.
66         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
67         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
68         <kernel-features.h>.
69         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
70         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
71         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
72         <kernel-features.h>.
73         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
74         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
75         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
76         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
77         <kernel-features.h>.
78         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
79         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
80         * sysdeps/unix/sysv/linux/linkat.c: Do not include
81         <kernel-features.h>.
82         (linkat) [__NR_linkat]: Make code unconditional.
83         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
84         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
85         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
86         <kernel-features.h>.
87         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
88         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
89         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
90         <kernel-features.h>.
91         (mkdirat) [__NR_mkdirat]: Make code unconditional.
92         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
93         * sysdeps/unix/sysv/linux/openat.c: Do not include
94         <kernel-features.h>.
95         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
96         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
97         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
98         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
99         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
100         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
101         <kernel-features.h>.
102         (readlinkat) [__NR_readlinkat]: Make code unconditional.
103         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
104         result of INLINE_SYSCALL directly, not via int variable.
105         * sysdeps/unix/sysv/linux/renameat.c: Do not include
106         <kernel-features.h>.
107         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
108         (renameat) [__NR_renameat]: Make code unconditional.
109         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
110         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
111         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
112         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
113         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
114         (__ASSUME_ATFCTS): Do not undefine and redefine.
115         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
116         <kernel-features.h>.
117         (symlinkat) [__NR_symlinkat]: Make code unconditional.
118         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
119         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
120         <kernel-features.h>.
121         (unlinkat) [__NR_unlinkat]: Make code unconditional.
122         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
123         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
124         (__ASSUME_ATFCTS): Do not undefine and redefine.
125         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
126         <kernel-features.h>.
127         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
128         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
129         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
130         <kernel-features.h>.
131         (__xmknodat) [__NR_mknodat]: Make code unconditional.
132         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
133
134 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
135
136         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
137
138 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
139
140         [BZ #17069]
141         * posix/regcomp.c (parse_reg_exp): Deallocate partially
142         constructed tree before returning error.
143         * posix/bug-regexp36.c: Expand test case.
144
145 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
146
147         [BZ #6803]
148         * math/libm-test.inc (scalbln_test_date):
149         Add errno expectations.
150         * math/w_scalblnf.c: New File.
151         Add wrapper which checks for setting errno to ERANGE.
152         Add weak_alias for corresponding scalbln function.
153         * math/w_scalbln.c: Likewise.
154         * math/w_scalblnl.c: Likewise.
155         * math/Makefile (libm-calls): Add w_scalbln.
156         * sysdeps/ieee754/flt-32/s_scalblnf.c:
157         Remove weak_alias for corresponding scalbln function.
158         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
159         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
160         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
161         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
162         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
163         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
164         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
165         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
166         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
167         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
168         Remove long_double_symbol for scalblnl function in libm, libc.
169         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
170         Add wrapper which checks for setting errno to ERANGE.
171         Add long_double_symbol for scalblnl function in libm, libc.
172         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
173         Remove long_double_symbol for scalblnl in libm.
174         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
175         Add wrapper which checks for setting errno to ERANGE.
176         Add long_double_symbol for scalblnl function in libm.
177         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
178         Do not use wrapper because of own implementation.
179
180 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
181
182         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
183         3 bytes for __pad1 for x32.
184         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
185
186 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
187             H.J. Lu  <hongjiu.lu@intel.com>
188
189         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
190         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
191         * sysdeps/x86_64/multiarch/memset.S: Likewise.
192         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
193         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
194
195 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
196
197         [BZ #17069]
198         * posix/regcomp.c (parse_expression): Deallocate partially
199         constructed tree before returning error.
200         * posix/Makefile.c (tests): Add bug-regex36.
201         (generated): Add bug-regex36.mtrace.
202         (tests-special): Add $(objpfx)bug-regex36-mem.out
203         (bug-regex36-ENV): New variable.
204         ($(objpfx)bug-regex36-mem.out): New rule.
205         * posix/bug-regex36.c: New file.
206
207 2014-06-19  Will Newton  <will.newton@linaro.org>
208
209         * malloc/malloc.c (systrim): If extra is zero then return
210         early.
211
212 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
213
214         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
215
216 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
217
218         * sysdeps/aarch64/strchr.S: New file.
219
220 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
221
222         [BZ #17022]
223         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
224         from arguments -2 or below.
225         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
226         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
227
228 2014-06-18  Andreas Schwab  <schwab@suse.de>
229
230         [BZ #17062]
231         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
232         of a bracket expr not to run off the end of the string.
233         * posix/Makefile (tests): Add tst-fnmatch3.
234         * posix/tst-fnmatch3.c: New file.
235
236 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
237
238         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
239         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
240         [$(cross-compiling) = no]: Likewise.
241         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
242         [$(cross-compiling) = no]: Likewise.
243
244 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
245
246         [BZ #17031]
247         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
248         double, adjusted for any remainder from the high double.
249         * math/libm-test.inc (nearbyint): Add tests.
250         (rint): Likewise.
251
252 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
253
254         * nptl/sysdeps/powerpc/Makefile: Moved ...
255         * sysdeps/powerpc/nptl/Makefile: ... here.
256         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
257         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
258         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
259         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
260         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
261         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
262         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
263         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
264         * nptl/sysdeps/powerpc/tls.h: Moved ...
265         * sysdeps/powerpc/nptl/tls.h: ... here.
266
267 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
268
269         [BZ #16681]
270         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
271         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
272         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
273         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
274         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
275         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
276         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
277         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
278         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
279
280 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
281
282         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
283
284 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
285
286         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
287         defined operator.
288
289         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
290         $TIMEOUTFACTOR.
291
292 2014-06-16  Florian Weimer  <fweimer@redhat.com>
293
294         [BZ #17058]
295         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
296         non-executed part of the test.
297
298 2014-06-16  Andreas Schwab  <schwab@suse.de>
299
300         * string/bits/string2.h (strdup, strndup): Update feature guard.
301
302 2014-06-14  David S. Miller  <davem@davemloft.net>
303
304         * sysdeps/sparc/fpu/libm-test-ulps: Update.
305
306 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
307
308         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
309         that was previously under [RESET_PID].
310         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
311
312         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
313         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
314         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
315         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
316         (__libc_vfork): New strong alias.
317         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
318
319 2014-06-14 Andi Kleen  <ak@linux.intel.com>
320
321         * sysdeps/generic/elide.h: New file.
322
323 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
324
325         * Makefile (installed-headers): Adjust path of pthread.h header.
326
327 2014-06-13  Roland McGrath  <roland@hack.frob.com>
328
329         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
330         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
331         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
332         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
333
334         * nptl/sysdeps/s390/Makefile: Moved ...
335         * sysdeps/s390/nptl/Makefile: ... here.
336         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
337         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
338         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
339         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
340         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
341         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
342         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
343         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
344         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
345         * sysdeps/s390/nptl/pthreaddef.h: ... here.
346         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
347         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
348         * nptl/sysdeps/s390/tls.h: Moved ...
349         * sysdeps/s390/nptl/tls.h: ... here.
350
351         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
352         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
353
354 2014-06-13  David S. Miller  <davem@davemloft.net>
355
356         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
357         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
358         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
359         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
360         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
361         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
362         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
363         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
364         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
365         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
366         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
367         Remove RESET_PID cpp guards.
368         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
369         Remove RESET_PID cpp guards.
370         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
371
372 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
373
374         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
375         __sp to uintptr_t.
376
377 2014-06-13  Andi Kleen  <ak@linux.intel.com>
378
379         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
380         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
381         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
382         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
383         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
384         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
385         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
386         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
387         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
388         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
389         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
390         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
391         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
392         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
393         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
394         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
395         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
396         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
397         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
398         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
399
400         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
401         (pthread_rwlock_rdlock): Add elision.
402         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
403         (pthread_rwlock_wrlock): Add elision.
404         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
405         (pthread_rwlock_trywrlock): Add elision.
406         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
407         (pthread_rwlock_tryrdlock): Add elision.
408         * nptl/pthread_rwlock_unlock.c: Include elide.h.
409         (pthread_rwlock_tryrdlock): Add elision unlock.
410         * nptl/sysdeps/pthread/pthread.h:
411         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
412         (PTHREAD_RWLOCK_INITIALIZER,
413         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
414         Handle new elision field.
415         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
416         * sysdeps/arm/nptl/bits/pthreadtypes.h
417         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
418         * sysdeps/sh/nptl/bits/pthreadtypes.h
419         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
420         * sysdeps/tile/nptl/bits/pthreadtypes.h
421         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
422         * sysdeps/a/nptl/bits/pthreadtypes.h
423         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
424         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
425         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
426         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
427         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
428         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
429         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
430         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
431         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
432         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
433         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
434         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
435         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
436         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
437         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
438         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
439         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
440         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
441         (elision_init): Set try_xbegin to zero when no RTM.
442         * sysdeps/x86/nptl/bits/pthreadtypes.h
443         (pthread_rwlock_t): Change __pad1 to __rwelision.
444         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
445
446 2014-06-13  Andi Kleen  <ak@linux.intel.com>
447
448         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
449         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
450         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
451         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
452
453 2014-06-13  Meador Inge  <meadori@codesourcery.com>
454
455         [BZ #16996]
456         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
457         that the cached result has been set before returning it.
458
459 2014-06-12  Roland McGrath  <roland@hack.frob.com>
460
461         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
462         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
463         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
464         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
465         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
466         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
467
468         * nptl/sysdeps/sparc/Makefile: Moved ...
469         * sysdeps/sparc/nptl/Makefile: ... here.
470         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
471         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
472         * nptl/sysdeps/sparc/tls.h: Moved ...
473         * sysdeps/sparc/nptl/tls.h: ... here.
474         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
475         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
476         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
477         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
478         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
479         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
480         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
481         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
482         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
483         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
484         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
485         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
486         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
487         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
488         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
489         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
490         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
491         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
492         Update #include.
493         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
494         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
495         Update #include.
496         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
497         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
498         Update #include.
499         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
500         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
501         Update #include.
502
503         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
504
505         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
506         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
507
508         * sysdeps/pthread/posix-timer.h: Include <list.h>.
509         (struct list_links): Type removed.
510         (struct thread_node, struct timer_node): Replace struct list_links
511         with struct list_head.
512         (list_unlink_ip): Likewise.
513         * sysdeps/pthread/timer_routines.c
514         (timer_free_list, thread_free_list, thread_active_list): Likewise.
515         (list_append, list_insbefore): Likewise.
516         (list_init): Function removed.
517         (thread_init, init_module): Use INIT_LIST_HEAD instead.
518         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
519         * sysdeps/pthread/Makefile: ... here, new file.
520
521         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
522         * sysdeps/nptl/Implies: ... here.
523         * sysdeps/unix/sysv/linux/Implies: Add nptl.
524         * nptl/sysdeps/pthread/list.h: Moved ...
525         * include/list.h: ... here.
526         * nptl/sysdeps/pthread/createthread.c: Moved ...
527         * nptl/createthread.c: ... here.
528         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
529         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
530         * nptl/pt-longjmp.c: ... here.
531         * nptl/sysdeps/pthread/Makefile: Moved ...
532         * sysdeps/nptl/Makefile: ... here.
533         * nptl/sysdeps/pthread/Subdirs: Moved ...
534         * sysdeps/nptl/Subdirs: ... here.
535         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
536         * sysdeps/nptl/aio_misc.h: ... here.
537         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
538         * sysdeps/nptl/bits/libc-lock.h: ... here.
539         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
540         * sysdeps/nptl/bits/libc-lockP.h: ... here.
541         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
542         * sysdeps/nptl/bits/stdio-lock.h: ... here.
543         * nptl/sysdeps/pthread/configure: Moved ...
544         * sysdeps/nptl/configure: ... here.
545         * nptl/sysdeps/pthread/configure.ac: Moved ...
546         * sysdeps/nptl/configure.ac: ... here.
547         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
548         * sysdeps/nptl/gai_misc.h: ... here.
549         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
550         * sysdeps/nptl/librt-cancellation.c: ... here.
551         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
552         * sysdeps/nptl/malloc-machine.h: ... here.
553         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
554         * sysdeps/nptl/pthread-functions.h: ... here.
555         * nptl/sysdeps/pthread/pthread.h: Moved ...
556         * sysdeps/nptl/pthread.h: ... here.
557         * nptl/sysdeps/pthread/setxid.h: Moved ...
558         * sysdeps/nptl/setxid.h: ... here.
559         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
560         * sysdeps/nptl/sigfillset.c: ... here.
561         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
562         * sysdeps/nptl/tcb-offsets.h: ... here.
563         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
564         * sysdeps/nptl/tst-mqueue8x.c: ... here.
565         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
566         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
567         * nptl/sysdeps/pthread/allocalim.h: Moved ...
568         * sysdeps/pthread/allocalim.h: ... here.
569         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
570         * sysdeps/pthread/bits/sigthread.h: ... here.
571         * nptl/sysdeps/pthread/flockfile.c: Moved ...
572         * sysdeps/pthread/flockfile.c: ... here.
573         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
574         * sysdeps/pthread/ftrylockfile.c: ... here.
575         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
576         * sysdeps/pthread/funlockfile.c: ... here.
577         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
578         * sysdeps/pthread/posix-timer.h: ... here.
579         * nptl/sysdeps/pthread/timer_create.c: Moved ...
580         * sysdeps/pthread/timer_create.c: ... here.
581         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
582         * sysdeps/pthread/timer_delete.c: ... here.
583         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
584         * sysdeps/pthread/timer_getoverr.c: ... here.
585         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
586         * sysdeps/pthread/timer_gettime.c: ... here.
587         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
588         * sysdeps/pthread/timer_routines.c: ... here.
589         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
590         * sysdeps/pthread/timer_settime.c: ... here.
591         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
592         * sysdeps/pthread/tst-timer.c: ... here.
593         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
594         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
595
596         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
597         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
598
599         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
600         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
601         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
602         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
603         Update #include target.
604         * nptl/sysdeps/i386/i686/Makefile: Moved ...
605         * sysdeps/i386/i686/nptl/Makefile: ... here.
606         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
607         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
608         Update #include target.
609         * nptl/sysdeps/i386/i686/tls.h: Moved ...
610         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
611         * nptl/sysdeps/i386/Makefile: Moved ...
612         * sysdeps/i386/nptl/Makefile: ... here.
613         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
614         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
615         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
616         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
617         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
618         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
619         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
620         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
621         * sysdeps/i386/nptl/pthreaddef.h: ... here.
622         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
623         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
624         * nptl/sysdeps/i386/tls.h: Moved ...
625         * sysdeps/i386/nptl/tls.h: ... here.
626
627         * sysdeps/sh/Makefile [$(subdir) = csu]
628         (gen-as-const-headers): Add tcb-offsets.sym.
629         * nptl/sysdeps/sh/Makefile: File removed.
630         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
631         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
632         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
633         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
634         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
635         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
636         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
637         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
638         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
639         * sysdeps/sh/nptl/pthreaddef.h: ... here.
640         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
641         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
642         * nptl/sysdeps/sh/tls.h: Moved ...
643         * sysdeps/sh/nptl/tls.h: ... here.
644         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
645         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
646         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
647         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
648         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
649         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
650         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
651         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
652         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
653         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
654         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
655         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
656         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
657         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
658         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
659         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
660         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
661         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
662         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
663         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
664         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
665         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
666         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
667         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
668         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
669         Moved ...
670         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
671         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
672         Moved ...
673         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
674         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
675         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
676         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
677         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
678         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
679         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
680         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
681         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
682         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
683         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
684         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
685         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
686         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
687         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
688         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
689         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
690         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
691         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
692
693 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
694
695         * posix/spawn_faction_addopen.c: Include string.h.
696
697 2014-06-11  Roland McGrath  <roland@hack.frob.com>
698
699         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
700         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
701         * nptl/sysdeps/x86_64/Makefile: Moved ...
702         * sysdeps/x86_64/nptl/Makefile: ... here.
703         * nptl/sysdeps/x86_64/configure: Moved ...
704         * sysdeps/x86_64/nptl/configure: ... here.
705         * nptl/sysdeps/x86_64/configure.ac: Moved ...
706         * sysdeps/x86_64/nptl/configure.ac: ... here.
707         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
708         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
709         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
710         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
711         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
712         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
713         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
714         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
715         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
716         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
717         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
718         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
719         * nptl/sysdeps/x86_64/tls.h: Moved ...
720         * sysdeps/x86_64/nptl/tls.h: ... here.
721         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
722         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
723         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
724         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
725
726         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
727
728 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
729
730         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
731
732 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
733
734         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
735         type.
736         [POSIX] (off_t): Likewise.
737         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
738         [POSIX] (S_ISBLK): Require macro.
739         [POSIX] (S_ISCHR): Likewise.
740         [POSIX] (S_ISDIR): Likewise.
741         [POSIX] (S_ISFIFO): Likewise.
742         [POSIX] (S_ISREG): Likewise.
743         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
744         optional-macro.
745         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
746         type.
747         [POSIX] (time_t): Likewise.
748         [POSIX] (timer_t): Likewise.
749
750 2014-06-11  Florian Weimer  <fweimer@redhat.com>
751
752         [BZ #17048]
753         * posix/spawn_int.h (struct __spawn_action): Make the path string
754         non-const to support deallocation.
755         * posix/spawn_faction_addopen.c
756         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
757         * posix/spawn_faction_destroy.c
758         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
759         path in all spawn_do_open actions.
760         * posix/tst-spawn.c (do_test): Exercise the copy operation in
761         posix_spawn_file_actions_addopen.
762
763 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
764
765         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
766         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
767         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
768         conditional code always true.
769         (__libc_vfork): New alias.
770
771 2014-06-11  Roland McGrath  <roland@hack.frob.com>
772
773         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
774         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
775
776         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
777
778         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
779         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
780
781         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
782         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
783
784         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
785         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
786
787 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
788
789         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
790         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
791         multiarch strcmp for PPC64.
792         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
793         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
794         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
795         multiarch optimizations.
796         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
797         (__libc_ifunc_impl_list): Likewise.
798
799 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
800
801         * benchtests/scripts/validate_benchout.py: New script.
802         * benchtests/Makefile (bench-func): Call it.
803         * benchtests/scripts/benchout.schema.json: New file.
804
805 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
806
807         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
808         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
809         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
810         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
811         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
812         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
813         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
814         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
815         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
816         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
817         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
818         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
819         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
820         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
821         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
822         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
823         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
824         Moved ...
825         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
826         ... here.
827         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
828         Moved ...
829         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
830         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
831         Moved ...
832         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
833         ... here.
834         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
835         Moved ...
836         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
837         ... here.
838         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
839         Moved ...
840         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
841         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
842         Moved ...
843         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
844         ... here.
845         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
846         Moved ...
847         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
848         ... here.
849         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
850         Moved ...
851         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
852         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
853         Moved ...
854         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
855         ... here.
856         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
857         Moved ...
858         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
859         ... here.
860         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
861         Moved ...
862         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
863         ... here.
864         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
865         Moved ...
866         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
867         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
868         Moved ...
869         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
870         ... here.
871         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
872         Moved ...
873         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
874         ... here.
875         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
876         Moved ...
877         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
878         ... here.
879         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
880         Moved ...
881         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
882         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
883         Moved ...
884         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
885         ... here.
886         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
887         Moved ...
888         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
889         ... here.
890         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
891         Moved ...
892         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
893         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
894         Moved ...
895         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
896         ... here.
897         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
898         Moved ...
899         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
900         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
901         Moved ...
902         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
903         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
904         Moved ...
905         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
906         ... here.
907         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
908         Moved ...
909         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
910         ... here.
911         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
912         Moved ...
913         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
914         ... here.
915         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
916         Moved ...
917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
918         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
919         Moved ...
920         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
921         ... here.
922         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
923         Moved ...
924         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
925         ... here.
926         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
927         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
928         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
929         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
930         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
931         Moved ...
932         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
933         ... here.
934         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
935         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
936         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
937         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
938         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
939         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
940         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
941         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
942         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
943         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
944         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
945         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
946         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
947         Moved ...
948         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
949         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
950         Moved ...
951         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
952         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
953         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
954         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
955         Moved ...
956         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
957         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
958         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
959         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
960         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
961         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
962         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
963
964 2014-06-10  Wilco  <wdijkstr@arm.com>
965
966         * math/test-fenv-return.c: New file.
967         * math/Makefile: Add new test test-fenv-return.
968
969 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
970
971         [BZ #17042]
972         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
973         when x - 1 is zero.
974         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
975         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
976         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
977         0.0L for an argument of 1.0L.
978         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
979         Likewise.
980         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
981         value when x - 1 is zero.
982         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
983         * sysdeps/i386/fpu/libm-test-ulps: Update.
984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
985
986 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
987
988         [BZ #15119]
989         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
990
991 2014-06-09  Roland McGrath  <roland@hack.frob.com>
992
993         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
994         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
995
996 2014-06-09  Roland McGrath  <roland@hack.frob.com>
997
998         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
999         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
1000
1001         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1002         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
1003
1004         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1005         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
1006
1007         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
1008         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
1009
1010         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
1011         if not already defined.
1012         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
1013         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
1014         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
1015         (TLS_INIT_TP): Use it.
1016         (TLS_DEFINE_INIT_TP): New macro.
1017         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
1018
1019 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
1020
1021         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
1022         constant.
1023         [POSIX] (IXANY): Likewise.
1024         [POSIX] (OLCUC): Likewise.
1025         [POSIX || POSIX2008] (CBAUD): Do not allow.
1026         [POSIX || POSIX2008] (DEFECHO): Likewise.
1027         [POSIX || POSIX2008] (ECHOCTL): Likewise.
1028         [POSIX || POSIX2008] (ECHOKE): Likewise.
1029         [POSIX || POSIX2008] (ECHOPRT): Likewise.
1030         [POSIX || POSIX2008] (EXTA): Likewise.
1031         [POSIX || POSIX2008] (EXTB): Likewise.
1032         [POSIX || POSIX2008] (FLUSHO): Likewise.
1033         [POSIX || POSIX2008] (LOBLK): Likewise.
1034         [POSIX || POSIX2008] (PENDIN): Likewise.
1035         [POSIX || POSIX2008] (SWTCH): Likewise.
1036         [POSIX || POSIX2008] (VDISCARD): Likewise.
1037         [POSIX || POSIX2008] (VDSUSP): Likewise.
1038         [POSIX || POSIX2008] (VLNEXT): Likewise.
1039         [POSIX || POSIX2008] (VREPRINT): Likewise.
1040         [POSIX || POSIX2008] (VSTATUS): Likewise.
1041         [POSIX || POSIX2008] (VWERASE): Likewise.
1042         (B*): Change to B[0123456789]*.
1043         * conform/data/time.h-data [POSIX || UNIX98]
1044         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
1045         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
1046         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
1047         [POSIX] (tm_*): Do not allow.
1048
1049 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
1050
1051         * Makefile (install): Don't set LANGUAGE.
1052         * Makefile.in (install): Likewise.
1053         * assert/Makefile (test-assert-ENV): Remove variable.
1054         (test-assert-perr-ENV): Likewise.
1055         * elf/Makefile (neededtest4-ENV): Likewise.
1056         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1057         [$(cross-compiling) = no]: Don't set LANGUAGE.
1058         * io/ftwtest-sh (LANG): Remove variable.
1059         * libio/Makefile (tst-widetext-ENV): Likewise.
1060         * manual/install.texi (Running make install): Don't refer to
1061         environment settings for make install.
1062         * INSTALL: Regenerated.
1063         * nptl/tst-tls6.sh: Don't set LANG.
1064         * posix/globtest.sh (LANG): Remove variable.
1065         * string/Makefile (tester-ENV): Likewise.
1066         (inl-tester-ENV): Likewise.
1067         (noinl-tester-ENV): Likewise.
1068         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1069         [$(cross-compiling) = no]: Don't set LANGUAGE.
1070         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
1071         without explicit environment settings.
1072
1073 2014-06-06  Roland McGrath  <roland@hack.frob.com>
1074
1075         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
1076         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
1077         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
1078         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
1079
1080 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
1081
1082         * crypt/crypt-private.h [DOS]: Add some includes taken from the
1083         other files in the crypt directory.
1084         * crypt/crypt.c: Remove duplicate includes.
1085         * crypt/crypt-entry.c: Likewise.
1086         * crypt/crypt_util.c: Likewise.
1087
1088 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
1089
1090         * Makeconfig (run-program-env): New variable.
1091         (run-program-prefix-before-env): Likewise.
1092         (run-program-prefix-after-env): Likewise.
1093         (run-program-prefix): Define in terms of new variables.
1094         (built-program-cmd-before-env): New variable.
1095         (built-program-cmd-after-env): Likewise.
1096         (built-program-cmd): Define in terms of new variables.
1097         (test-program-prefix-before-env): New variable.
1098         (test-program-prefix-after-env): Likewise.
1099         (test-program-prefix): Define in terms of new variables.
1100         (test-program-cmd-before-env): New variable.
1101         (test-program-cmd-after-env): Likewise.
1102         (test-program-cmd): Define in terms of new variables.
1103         * Rules (make-test-out): Use $(run-program-env).
1104         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
1105         (help): Do not mention environment variables.  Mention
1106         --timeoutfactor option.
1107         (timeoutfactor): New variable.
1108         (blacklist_exports): Remove function.
1109         (exports): Remove variable.
1110         (command): Do not include ${exports}.
1111         * manual/install.texi (Configuring and compiling): Do not mention
1112         test wrappers preserving environment variables.  Mention that last
1113         assignment to a variable must take precedence.
1114         * INSTALL: Regenerated.
1115         * benchtests/Makefile (run-bench): Use $(run-program-env).
1116         * catgets/Makefile ($(objpfx)test1.cat): Use
1117         $(built-program-cmd-before-env), $(run-program-env) and
1118         $(built-program-cmd-after-env).
1119         ($(objpfx)test2.cat): Do not specify environment variables
1120         explicitly.
1121         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
1122         $(run-program-env) and $(built-program-cmd-after-env).
1123         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
1124         $(run-program-env) and $(test-program-cmd-after-env).
1125         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
1126         explicitly.
1127         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
1128         run_program_env and test_program_cmd_after_env arguments.
1129         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
1130         * elf/tst-pathopt.sh: Use run_program_env argument.
1131         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
1132         $(test-wrapper-env) and $(run-program-env).
1133         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
1134         run_program_env arguments.
1135         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
1136         * intl/Makefile ($(objpfx)tst-gettext.out): Use
1137         $(test-program-prefix-before-env), $(run-program-env) and
1138         $(test-program-prefix-after-env).
1139         ($(objpfx)tst-gettext2.out): Likewise.
1140         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
1141         run_program_env and test_program_prefix_after_env arguments.
1142         * intl/tst-gettext2.sh: Likewise.
1143         * intl/tst-gettext4.sh: Do not set environment variables
1144         explicitly.
1145         * intl/tst-gettext6.sh: Likewise.
1146         * intl/tst-translit.sh: Likewise.
1147         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
1148         $(test-program-prefix-before-env), $(run-program-env) and
1149         $(test-program-prefix-after-env).
1150         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
1151         run_program_env and test_program_prefix_after_env arguments.
1152         * math/Makefile (run-regen-ulps): Use $(run-program-env).
1153         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
1154         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
1155         explicitly with each use of ${test_wrapper_env}.
1156         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
1157         $(test-program-prefix-before-env), $(run-program-env) and
1158         $(test-program-prefix-after-env).
1159         * posix/tst-getconf.sh: Do not set environment variables
1160         explicitly.
1161         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
1162         run_program_env and test_program_prefix_after_env arguments.
1163         * stdio-common/tst-printf.sh: Do not set environment variables
1164         explicitly.
1165         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
1166         $(test-program-prefix-before-env), $(run-program-env) and
1167         $(test-program-prefix-after-env).
1168         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
1169         run_program_env and test_program_prefix_after_env arguments.
1170         Split $test calls into $test_pre and $test.
1171         * timezone/Makefile (build-testdata): Use
1172         $(built-program-cmd-before-env), $(run-program-env) and
1173         $(built-program-cmd-after-env).
1174
1175 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1176
1177         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
1178         strlen for non SHARED builds.
1179
1180 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1181
1182         * nptl/allocatestack.c (check_list): Inlined function...
1183         (__reclaim_stacks): ... here.
1184
1185 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1186
1187         [BZ #15698]
1188         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
1189         memory overrun.
1190
1191 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
1192
1193         * Rules (make-test-out): Include
1194         LOCPATH=$(common-objpfx)localedata in default environment.
1195         * debug/Makefile (tst-chk1-ENV): Remove variable.
1196         (tst-chk2-ENV): Likewise.
1197         (tst-chk3-ENV): Likewise.
1198         (tst-chk4-ENV): Likewise.
1199         (tst-chk5-ENV): Likewise.
1200         (tst-chk6-ENV): Likewise.
1201         (tst-lfschk1-ENV): Likewise.
1202         (tst-lfschk2-ENV): Likewise.
1203         (tst-lfschk3-ENV): Likewise.
1204         (tst-lfschk4-ENV): Likewise.
1205         (tst-lfschk5-ENV): Likewise.
1206         (tst-lfschk6-ENV): Likewise.
1207         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
1208         (tst-iconv7-ENV): Likewise.
1209         * intl/Makefile (LOCPATH-ENV): Likewise.
1210         (tst-codeset-ENV): Likewise.
1211         (tst-gettext3-ENV): Likewise.
1212         (tst-gettext5-ENV): Likewise.
1213         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
1214         (tst-fopenloc-ENV): Likewise.
1215         (tst-fgetws-ENV): Remove variable.
1216         (tst-ungetwc1-ENV): Likewise.
1217         (tst-ungetwc2-ENV): Likewise.
1218         (bug-ungetwc2-ENV): Likewise.
1219         (tst-swscanf-ENV): Likewise.
1220         (bug-ftell-ENV): Likewise.
1221         (tst-fgetwc-ENV): Likewise.
1222         (tst-fseek-ENV): Likewise.
1223         (tst-ftell-partial-wide-ENV): Likewise.
1224         (tst-ftell-active-handler-ENV): Likewise.
1225         (tst-ftell-append-ENV): Likewise.
1226         * posix/Makefile (tst-fnmatch-ENV): Likewise.
1227         (tst-regexloc-ENV): Likewise.
1228         (bug-regex1-ENV): Likewise.
1229         (tst-regex-ENV): Likewise.
1230         (tst-regex2-ENV): Likewise.
1231         (bug-regex5-ENV): Likewise.
1232         (bug-regex6-ENV): Likewise.
1233         (bug-regex17-ENV): Likewise.
1234         (bug-regex18-ENV): Likewise.
1235         (bug-regex19-ENV): Likewise.
1236         (bug-regex20-ENV): Likewise.
1237         (bug-regex22-ENV): Likewise.
1238         (bug-regex23-ENV): Likewise.
1239         (bug-regex25-ENV): Likewise.
1240         (bug-regex26-ENV): Likewise.
1241         (bug-regex30-ENV): Likewise.
1242         (bug-regex32-ENV): Likewise.
1243         (bug-regex33-ENV): Likewise.
1244         (bug-regex34-ENV): Likewise.
1245         (bug-regex35-ENV): Likewise.
1246         (tst-rxspencer-ENV): Likewise.
1247         (tst-rxspencer-no-utf8-ENV): Likewise.
1248         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
1249         (tst-sscanf-ENV): Likewise.
1250         (tst-swprintf-ENV): Likewise.
1251         (tst-swscanf-ENV): Likewise.
1252         (test-vfprintf-ENV): Likewise.
1253         (scanf13-ENV): Likewise.
1254         (bug14-ENV): Likewise.
1255         (tst-grouping-ENV): Likewise.
1256         * stdlib/Makefile (tst-strtod-ENV): Likewise.
1257         (tst-strtod3-ENV): Likewise.
1258         (tst-strtod4-ENV): Likewise.
1259         (tst-strtod5-ENV): Likewise.
1260         (testmb2-ENV): Likewise./
1261         * string/Makefile (tst-strxfrm-ENV): Likewise.
1262         (tst-strxfrm2-ENV): Likewise.
1263         (bug-strcoll1-ENV): Likewise.
1264         (test-strcasecmp-ENV): Likewise.
1265         (test-strncasecmp-ENV): Likewise.
1266         * time/Makefile (tst-strptime-ENV): Likewise.
1267         (tst-ftime_l-ENV): Likewise.
1268         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
1269         (tst-mbrtowc-ENV): Likewise.
1270         (tst-wcrtomb-ENV): Likewise.
1271         (tst-mbrtowc2-ENV): Likewise.
1272         (tst-c16c32-1-ENV): Likewise.
1273         (tst-mbsnrtowcs-ENV): Likewise.
1274
1275 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
1276
1277         * manual/resource.texi (How to get information about the memory
1278         subsystem?): Fix typo.
1279         Reported by Peon de la Parra Ivan <peon@keba.com>
1280
1281 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
1282
1283         [BZ #16882]
1284         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
1285         (pthread_spin_lock): Branch out of spin loop to proper location.
1286         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
1287         (pthread_spin_lock): Likewise.
1288
1289         * nptl/tst-spin4.c: New test.
1290         * nptl/Makefile (tests): Add tst-spin4.
1291
1292 2014-06-03  Andreas Schwab  <schwab@suse.de>
1293
1294         [BZ #15946]
1295         * resolv/res_send.c (send_dg): Reload file descriptor after
1296         calling reopen.
1297
1298 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
1299
1300         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
1301
1302 2014-06-03  Richard Henderson  <rth@redhat.com>
1303
1304         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
1305         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
1306         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
1307         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
1308         in the SAVE_PID block.
1309         (__libc_vfork): New alias.
1310         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
1311
1312         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
1313         child in registers, not on the stack.  Remove RESET_PID conditionals.
1314         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
1315
1316 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1317
1318         * sysdeps/aarch64/libm-test-ulps: Regenerate.
1319
1320 2014-06-03  Wilco  <wdijkstr@arm.com>
1321
1322         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
1323         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
1324         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1325         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
1326         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
1327         Likewise.
1328
1329 2014-06-03  Wilco  <wdijkstr@arm.com>
1330
1331         * sysdeps/aarch64/fpu/math_private.h
1332         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
1333         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
1334         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
1335         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
1336         Fix declarations.
1337
1338 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1339
1340         * crypt/crypt-private.h: Include ufc-crypt.h.
1341         (__b64_from_24bit): Declare extern.
1342         * crypt/crypt_util.c(__b64_from_24bit): New function.
1343         (b64t): New static const variable.
1344         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
1345         (b64t): Remove variable.
1346         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
1347         * crypt/sha256-crypt.c: Include crypt-private.h.
1348         (b64t): Remove variable.
1349         (__sha256_crypt_r): Remove b64_from_24bit and replace
1350         with __b64_from_24bit.
1351         * crypt/sha512-crypt.c: Likewise.
1352
1353 2014-06-02  Roland McGrath  <roland@hack.frob.com>
1354
1355         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
1356         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
1357         Label the code __libc_vfork rather than __vfork.
1358         [!NOT_IN_libc] (vfork): Define as weak alias.
1359         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
1360         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
1361         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
1362
1363 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
1364
1365         * malloc/malloc.c (malloc_info): Fix format specifier for
1366         n_mmaps.
1367
1368 2014-06-02  Wilco  <wdijkstr@arm.com>
1369
1370         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
1371         FPCR write.
1372
1373 2014-06-02  Wilco  <wdijkstr@arm.com>
1374
1375         [BZ #17009]
1376         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
1377         Rewrite to reduce FPCR/FPSR accesses.
1378
1379 2014-06-01  David S. Miller  <davem@davemloft.net>
1380
1381         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1382
1383 2014-05-31  David S. Miller  <davem@davemloft.net>
1384
1385         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
1386         to occur in round to nearest mode when |x| >= 2.0
1387
1388 2014-05-30  Richard Henderson  <rth@twiddle.net>
1389
1390         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
1391         (PSEUDO_RET_NOERRNO): Remove.
1392         (ret): Don't redefine.
1393         (ret_NOERRNO): Define in terms of ret.
1394         (ret_ERRVAL): Likewise.
1395
1396         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
1397         use of PSEUDO_RET; perform the error check directly.
1398
1399 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
1400
1401         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
1402         with __int128_t.
1403
1404 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1405
1406         * malloc/malloc (malloc_info): Fix formatting.
1407
1408 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
1409             Roland McGrath  <roland@hack.frob.com>
1410
1411         * malloc/malloc (malloc_info): Also print mmapped statistics.
1412
1413 2014-05-30  Roland McGrath  <roland@hack.frob.com>
1414
1415         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
1416         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
1417
1418 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
1419
1420         * malloc/malloc.c (malloc_info): Inline mi_arena.
1421
1422 2014-05-29  Richard Henderson  <rth@twiddle.net>
1423
1424         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
1425         Remove comma before expanding ASM_ARGS_##nr.
1426         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
1427         Make _x0 a strict output; make _x8 a strict input; adjust expansion
1428         of ASM_ARGS_##nr.
1429         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
1430         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
1431         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
1432         (ASM_ARGS_1): Add leading comma.
1433
1434         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
1435         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
1436         to __errno_location.
1437         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
1438         Remove the expected plt for __errno_location.
1439
1440         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1441         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
1442         call to __read_tp.
1443
1444         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1445         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
1446         it and break it down.
1447         (DOCARGS_0, DOCARGS_1): Do nothing.
1448         (DOCARGS_2): Update to store into the new stack frame.
1449         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
1450         (UNDOCARGS_1): Update to restore from the new stack frame.
1451         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
1452         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
1453
1454         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1455         (SINGLE_THREAD_P): New parameter for result regno.
1456         (PSEUDO): Update to match; use cbz instead of beq.
1457
1458         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1459         Use ENTRY to define the _nocancel entry point.  Share the syscall
1460         and syscall error check paths with the cancel path.
1461         (PSEUDO_END): New.
1462
1463         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
1464         whitespace; tabs before and after asm mnemonics.
1465
1466 2014-05-29  Eric Wong  <normalperson@yhbt.net>
1467
1468         [BZ #15132]
1469         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
1470         Call fstat64 or stat64 internally, depending on arguments passed.
1471         Replace stat buffer argument with file descriptor argument.
1472         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
1473         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
1474         Pass fd to __internal_statvfs instead of calling fstat64.
1475         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
1476         Pass fd to __internal_statvfs64 instead of calling fstat64.
1477         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
1478         Pass -1 to __internal_statvfs instead of calling stat64.
1479         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
1480         Pass -1 to __internal_statvfs64 instead of calling stat64.
1481
1482 2014-05-28  Roland McGrath  <roland@hack.frob.com>
1483
1484         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
1485         that was previously under [RESET_PID].
1486         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
1487
1488         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
1489         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
1490
1491 2014-05-27  Roland McGrath  <roland@hack.frob.com>
1492
1493         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
1494
1495         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
1496         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
1497
1498 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
1499
1500         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
1501
1502 2014-05-27  Andreas Schwab  <schwab@suse.de>
1503
1504         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
1505         TLS_INIT_TP macro.
1506         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
1507         * elf/rtld.c (init_tls, dl_main): Likewise.
1508         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
1509         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
1510         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
1511         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
1512         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
1513         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
1514         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
1515         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
1516         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
1517         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
1518         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
1519         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
1520         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
1521         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
1522         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
1523         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
1524         * sysdeps/generic/tls.h: Update description.
1525
1526 2014-05-27  Will Newton  <will.newton@linaro.org>
1527
1528         [BZ #16990]
1529         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
1530         and restore r2 rather than just restoring.
1531
1532 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
1533
1534         [BZ #16724]
1535         * libio/tst-ftell-append.c: New test case.
1536         * libio/Makefile (tests): Add test case.
1537         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
1538         append mode.
1539         * libio/wfileops.c (do_ftell_wide): Likewise.
1540
1541 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1542
1543         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1544
1545         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
1546         ...
1547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
1548         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
1549         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
1550         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
1551         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
1552         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
1553         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
1554         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
1555         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
1556         Moved ...
1557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
1558         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
1559         Moved ...
1560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
1561         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
1562         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
1563         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
1564         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
1565         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
1566         ...
1567         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
1568         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
1569         Moved ...
1570         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
1571         here.
1572         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
1573         ...
1574         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
1575         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
1576         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
1577
1578         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
1579         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
1580         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
1581         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
1582
1583         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
1584         merge into ...
1585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
1586         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
1587         ...
1588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
1589         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
1590         ...
1591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
1592         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
1593         Moved ...
1594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
1595         here.
1596         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
1597         Moved ...
1598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
1599         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
1600         Moved ...
1601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
1602
1603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
1604         conditional [RESET_PID].
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
1606         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
1607         removed.
1608         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
1609         removed.
1610
1611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
1612         <tcb-offsets.h>.
1613         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
1614         (__libc_vfork): New strong alias.
1615         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
1616         removed.
1617         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
1618         Removed.
1619
1620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
1621         <tcb-offsets.h>.
1622         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
1623         (__libc_vfork): New strong alias.
1624         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
1625         removed.
1626         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
1627         removed.
1628
1629 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
1630
1631         * malloc/malloc.c (mi_arena): New function.
1632         (malloc_info): Remove nested function mi_arena. Call non-nosted
1633         function mi_arena.
1634
1635 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1636
1637         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
1638         by insrwi.
1639         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
1640         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
1641         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
1642         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
1643         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
1644         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
1645         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
1646
1647 2014-05-26  Andreas Schwab  <schwab@suse.de>
1648
1649         [BZ #16984]
1650         * locale/programs/repertoire.c (repertoire_read): Add slash
1651         between I18NPATH element and file name.
1652         * locale/programs/locfile.c (locfile_read): Likewise.
1653
1654 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1655
1656         * nptl/pthread_mutexattr_settype.c
1657         (__pthread_mutexattr_settype):
1658         Disable lock elision for PTHREAD_MUTEX_NORMAL.
1659
1660 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
1661
1662         * nptl/tst-mutex5 (do_test):
1663         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
1664
1665 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1666
1667         * benchtests/README: Document 'init' directive.
1668         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
1669         BENCH_INIT.
1670         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
1671         (parse_file): Recognize 'init' directive.
1672
1673 2014-05-26  Kyle McMartin  <kyle@redhat.com>
1674
1675         [BZ #16796]
1676         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
1677         alignment of struct pthread.
1678
1679 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1680
1681         [BZ #16878]
1682         * nscd/netgroupcache.c (addgetnetgrentX): Look for
1683         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1684         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
1685         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
1686
1687 2014-05-25  Richard Henderson  <rth@twiddle.net>
1688
1689         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1690         (SINGLE_THREAD_P_PIC): Remove.
1691         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
1692         (SINGLE_THREAD_P_PIC): Remove.
1693
1694         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
1695         branch to syscall error ...
1696         (PSEUDO): ... here.
1697         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
1698         from __local_syscall_error to .Lsyscall_error.
1699         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
1700         (SYSCALL_ERROR): Update label name.
1701
1702         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1703         Do not use DOARGS/UNDOARGS.
1704         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
1705         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
1706         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
1707         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
1708         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
1709
1710         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
1711         block comment.
1712
1713         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
1714         define if !NOT_IN_libc.
1715         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
1716         define with non-default symbol versions.
1717
1718 2014-05-23  Richard Henderson  <rth@twiddle.net>
1719
1720         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
1721         (vfork, __vfork): Define via compat_symbol.
1722
1723         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
1724         [!HAVE_IFUNC] (vfork_compat): Remove.
1725         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
1726
1727 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1728
1729         [BZ #16978]
1730         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
1731         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
1732         variable.
1733
1734 2014-05-23  Richard Henderson  <rth@twiddle.net>
1735
1736         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
1737         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
1738         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
1739         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
1740
1741         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
1742         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
1743         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
1744         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
1745         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
1746         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
1747         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
1748         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
1749         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
1750         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
1751         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
1752         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
1753         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
1754         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
1755         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
1756         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
1757         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
1758         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
1759         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
1760         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
1761         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
1762         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
1763         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
1764         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
1765         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
1766         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
1767         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
1768         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
1769         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
1770         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
1771         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
1772         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
1773         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
1774         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
1775         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
1776         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
1777         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
1778         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
1779         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
1780         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
1781         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
1782         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
1783         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
1784         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
1785         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
1786         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
1787         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
1788         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
1789         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
1790         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
1791         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
1792         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
1793         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
1794         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
1795         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
1796         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
1797
1798         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
1799         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
1800         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
1801         before exiting on error.
1802         (__libc_vfork): New strong alias.
1803         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
1804         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
1805
1806         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
1807         that was previously under [RESET_PID].
1808         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
1809
1810         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
1811
1812 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
1813
1814         [BZ #16977]
1815         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
1816         value when x - 1 is zero.
1817         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
1818         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
1819         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
1820         0.0L for an argument of 1.0L.
1821         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
1822         Likewise.
1823         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
1824         value when x - 1 is zero.
1825         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
1826         * sysdeps/i386/fpu/libm-test-ulps: Update.
1827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1828
1829 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
1830
1831         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
1832         alphasort and versionsort.
1833
1834 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1835
1836         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
1837         macro.
1838         [copysignf]: Likewise.
1839
1840 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
1841
1842         * crypt/md5-crypt.c: Fix formatting.
1843
1844 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
1845
1846         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
1847         (b64_from_24bit): New function.
1848
1849 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1850
1851         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
1852         libc_hidden_builtin_def to ifunc.
1853         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
1854         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
1855
1856 2014-05-21  Roland McGrath  <roland@hack.frob.com>
1857
1858         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
1859         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
1860
1861 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
1862
1863         * nscd/Depend (linuxthreads): Remove.
1864         (nptl): Add.
1865         * resolv/Depend (linuxthreads): Remove.
1866         * rt/Depend (linuxthreads): Remove.
1867
1868         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
1869         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
1870         $(common-objpfx)elf/.
1871         (link-libc-before-gnulib): Likewise.
1872         (elfobjdir): Remove variable.
1873         * Makefile (install): Use $(elf-objpfx) instead of
1874         $(common-objpfx)elf/.
1875         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
1876         $(elfobjdir)/.
1877         (link-libc-deps): Likewise.
1878         ($(common-objpfx)libc.so): Likewise.
1879         ($(common-objpfx)linkobj/libc.so): Likewise.
1880         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
1881         instead of $(common-objpfx)elf/.
1882         (symbolic-link-list): Likewise.
1883         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
1884         [$(cross-compiling) = no]: Likewise.
1885         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
1886         $(elfobjdir)/.
1887         (static-gnulib-arch): Likewise.
1888         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
1889         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
1890         $(common-objpfx)elf/.
1891
1892 2014-05-21  Richard Henderson  <rth@redhat.com>
1893
1894         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
1895         (SINGLE_THREAD_P): Use the correct width load.  Fold
1896         into the ldr offset.
1897
1898         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
1899         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
1900
1901 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
1902
1903         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
1904         (libgcc_s_resume): Use __attribute_used__.
1905         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
1906         Likewise.
1907
1908 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1909
1910         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
1911         optimization when used with float constants.
1912
1913         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1914
1915 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
1916
1917         [BZ #16915]
1918         * locale/nl_langinfo_l.c: Make direct reference to every
1919         _nl_current_CATEGORY symbol.
1920         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
1921         (tests-static): Add tst-langinfo-static.
1922         (tests-special): Add tst-langinfo-static.out.
1923         ($(objpfx)tst-langinfo.out): Redirect output.
1924         ($(objpfx)tst-langinfo-static.out): New.
1925         * localedata/tst-langinfo.sh: Send output to stdout.
1926         * localedata/tst-langinfo-static.c: New file.
1927
1928         [BZ #16965]
1929         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
1930         when the shift amount is modulo the limb size.
1931
1932 2014-05-20  Richard Henderson  <rth@redhat.com>
1933
1934         [BZ #16967]
1935         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
1936         Change type of sa_flags from unsigned int to int.
1937
1938         [BZ #16966]
1939         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
1940
1941         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
1942
1943 2014-05-20  Will Newton  <will.newton@linaro.org>
1944
1945         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
1946         Test the return value of the system call in the nocancel case.
1947
1948 2014-05-20  Will Newton  <will.newton@linaro.org>
1949             Yvan Roux  <yvan.roux@linaro.org>
1950
1951         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
1952         #include of asm/ptrace.h.
1953         (PTRACE_GET_THREAD_AREA): Remove #undef.
1954         (PTRACE_GETHBPREGS): Likewise.
1955         (PTRACE_SETHBPREGS): Likewise.
1956         (struct user_regs_struct): New structure.
1957         (struct user_fpsimd_struct): New structure.
1958         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
1959         #include of asm/ptrace.h and second #include of sys/user.h.
1960         (PTRACE_GET_THREAD_AREA): Remove #undef.
1961         (PTRACE_GETHBPREGS): Likewise.
1962         (PTRACE_SETHBPREGS): Likewise.
1963         (ELF_NGREG): Use new struct user_regs_struct.
1964         (elf_fpregset_t): Use new struct user_fpsimd_struct.
1965
1966 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1967
1968         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
1969         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
1970
1971 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
1972
1973         [BZ #16958]
1974         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
1975         membar to avoid block loads/stores to overlap previous stores.
1976
1977 2014-05-17  Richard Henderson  <rth@redhat.com>
1978
1979         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
1980         Create the __##syscall_name##_nocancel entry point.
1981         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
1982         Remove; let the sysdep-cancel.h code create it.
1983
1984 2014-05-17  David S. Miller  <davem@davemloft.net>
1985
1986         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
1987         Protect with __USE_GNU.
1988         (TIOCSET_TEMPT): Likewise.
1989         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
1990         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
1991         these are already provided in bits/ioctl-types.h
1992
1993 2014-05-16  Roland McGrath  <roland@hack.frob.com>
1994
1995         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
1996         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
1997
1998         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
1999         Use wait4 regardless of [__NR_waitpid].
2000
2001 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2002
2003         PR libgcc/60166
2004         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
2005         (_FP_NANSIGN_Q): Set the quiet bit.
2006
2007 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * benchtests/Makefile
2010         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
2011         not $(common-objpfx)math/libm.so.
2012         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
2013         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
2014         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
2015         $(common-objpfx)dlfcn/libdl.so.
2016         ($(objpfx)tst-audit8): Depend on $(libm), not
2017         $(common-objpfx)math/libm.so.
2018         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
2019         not $(common-objpfx)dlfcn/libdl.so.
2020         * math/Makefile
2021         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2022         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
2023         [$(build-shared) = yes].
2024         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
2025         $(common-objpfx)nptl/libpthread.so.
2026         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
2027         $(common-objpfx)math/libm.so$(libm.so-version) or
2028         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
2029         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
2030         $(common-objpfx)dlfcn/libdl.so.
2031         * setjmp/Makefile (link-libm): Remove variable.
2032         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
2033         * stdio-common/Makefile (link-libm): Remove variable.
2034         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
2035         * stdlib/Makefile (link-libm): Remove variable.
2036         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
2037         ($(objpfx)tst-strtod-round): Likewise.
2038         ($(objpfx)tst-tininess): Likewise.
2039         ($(objpfx)tst-strtod-underflow): Likewise.
2040         ($(objpfx)tst-strtod6): Likewise.
2041         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
2042         $(libdl), not $(common-objpfx)nptl/libpthread.so and
2043         $(common-objpfx)dlfcn/libdl.so.
2044
2045 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2046
2047         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
2048         BSD terminal modes definitions.
2049
2050 2014-05-16  Roland McGrath  <roland@hack.frob.com>
2051
2052         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
2053         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
2054
2055         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
2056         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
2057         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
2058         Don't do #include_next.
2059         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
2060         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
2061         Don't do #include_next.
2062         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
2063         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
2064         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
2065         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
2066
2067 2014-05-16  Allan McRae  <allan@archlinux.org>
2068
2069         * po/sv.po: Update Swedish translation from translation project.
2070
2071         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
2072         in sed expression.
2073
2074 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
2075
2076         [BZ #16917]
2077         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
2078         errno if the TIOCGPTN ioctl fails with an error different than
2079         EINVAL.
2080         * login/tst-ptsname.c: New file.
2081         * login/Makefile (tests): Add tst-ptsname.
2082
2083         [BZ #16943]
2084         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
2085         and prlimit64.
2086
2087 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
2088
2089         [BZ #16849]
2090         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
2091         herrno to return EAI_AGAIN.
2092
2093 2014-05-14  Roland McGrath  <roland@hack.frob.com>
2094
2095         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
2096         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
2097         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
2098         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
2099         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
2100         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
2101         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
2102         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
2103         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
2104         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
2105         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
2106         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
2107         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
2108         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
2109         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
2110         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
2111         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
2112         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
2113         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
2114         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
2115         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
2116         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
2117         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
2118         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
2119         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
2120         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
2121         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
2122         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
2123         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
2124         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
2125         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
2126         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
2127         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
2128         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
2129         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2130         Moved ...
2131         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
2132         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
2133         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
2134         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
2135         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
2136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
2137         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
2138         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
2139         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
2140         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
2141         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
2142         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
2143         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
2144         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
2145         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
2146         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
2147         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
2148         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
2149         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
2150         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
2151         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
2152         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
2153         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
2154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
2155         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
2156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
2157         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
2158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
2159         Moved ...
2160         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
2161         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
2162         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
2163         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
2164         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
2165         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
2166         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
2167         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
2168         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
2169         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
2170         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
2171         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
2172         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
2173         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
2174         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
2175         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
2176         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
2177         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
2178         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
2179         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
2180         Moved ...
2181         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
2182         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
2183         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
2184
2185         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
2186         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
2187         (libpthread-sysdep_routines): Add elision-related stuff here instead.
2188         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
2189         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
2190         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
2191         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
2192         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
2193         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
2194         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
2195         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
2196         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
2197         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
2198         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
2199         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
2200         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
2201         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
2202         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
2203         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
2204         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
2205         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
2206         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
2207         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
2208         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
2209         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
2210         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
2211         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
2212         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
2213         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
2214         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
2215         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
2216
2217         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
2218         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
2219
2220         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
2221         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
2222         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
2223         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
2224         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
2225         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
2226         Moved ...
2227         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
2228         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
2229         Moved ...
2230         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
2231         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
2232         Moved ...
2233         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
2234         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
2235         Moved ...
2236         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
2237         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
2238         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
2239         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
2240         Moved ...
2241         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
2242         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
2243         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
2244         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
2245         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
2246         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
2247         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
2248         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
2249         Moved ...
2250         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
2251         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2252         Moved ...
2253         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
2254         ... here.
2255         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
2256         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
2257         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
2258         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
2259         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2260         Moved ...
2261         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
2262         ... here.
2263         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
2264         Moved ...
2265         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
2266         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
2267         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
2268         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
2269         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
2270         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
2271         Moved ...
2272         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
2273         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
2274         Moved ...
2275         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
2276         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
2277         Moved ...
2278         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
2279         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
2280         Moved ...
2281         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
2282         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
2283         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
2284         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
2285         Moved ...
2286         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
2287         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
2288         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
2289         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
2290         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
2291         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
2292         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
2293         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
2294         Moved ...
2295         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
2296         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2297         Moved ...
2298         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
2299         ... here.
2300         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
2301         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
2302         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
2303         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
2304         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2305         Moved ...
2306         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
2307         ... here.
2308         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
2309         Moved ...
2310         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
2311         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
2312         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
2313         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
2314         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
2315         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
2316         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
2317         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
2318         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
2319         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
2320         Moved ...
2321         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
2322         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
2323         Moved ...
2324         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
2325         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
2326         Moved ...
2327         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
2328         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
2329         Moved ...
2330         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
2331         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
2332         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
2333         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
2334         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
2335         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
2336         Moved ...
2337         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
2338         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
2339         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
2340         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
2341         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
2342         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
2343         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
2344         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
2345         Moved ...
2346         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
2347         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2348         Moved ...
2349         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
2350         ... here.
2351         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
2352         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
2353         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
2354         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
2355         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2356         Moved ...
2357         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
2358         ... here.
2359         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
2360         Moved ...
2361         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
2362         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
2363         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
2364         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
2365         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
2366         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
2367         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
2368         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
2369         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
2370         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
2371         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
2372
2373         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
2374         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
2375
2376         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
2377         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
2378
2379         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
2380         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
2381         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
2382         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
2383         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
2384         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
2385         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
2386         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
2387         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
2388         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
2389         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
2390         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
2391         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
2392         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
2393         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
2394         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
2395         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
2396         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
2397         Moved ...
2398         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
2399         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
2400         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
2401         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
2402         Moved ...
2403         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
2404         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
2405         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
2406         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
2407         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
2408         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
2409         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
2410         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
2411         Moved ...
2412         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
2413         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
2414         Moved ...
2415         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
2416         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
2417         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
2418         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
2419         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
2420         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
2421         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
2422         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
2423         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
2424         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
2425         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
2426         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
2427         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
2428         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
2429         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
2430         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
2431         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
2432
2433         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
2434         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
2435         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
2436         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
2437         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
2438
2439         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
2440         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
2441         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
2442         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
2443         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
2444         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
2445         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
2446         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
2447         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
2448         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
2449
2450         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
2451         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
2452
2453         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
2454         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
2455         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
2456         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
2457         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
2458         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
2459         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
2460         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
2461         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
2462         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
2463         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
2464         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
2465         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
2466         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
2467         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
2468         Update #include.
2469         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
2470         Likewise.
2471         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
2472         Likewise.
2473         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
2474         Likewise.
2475         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
2476         Likewise.
2477         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
2478         Likewise.
2479         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
2480         Likewise.
2481         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
2482         Likewise.
2483         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
2484         Likewise.
2485         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
2486         Likewise.
2487         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
2488         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
2489         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
2490         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
2491         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
2492         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
2493         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
2494         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
2495         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
2496         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
2497         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
2498         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
2499         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
2500         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
2501         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
2502
2503         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
2504         that was previously under [RESET_PID].
2505         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
2506         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
2507         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
2508
2509         * sysdeps/i386/nptl/Implies: New file.
2510         * sysdeps/x86_64/nptl/Implies: New file.
2511         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
2512         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
2513         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
2514         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
2515
2516         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
2517         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2518         (__libc_vfork): New strong alias.
2519         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
2520         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
2521
2522         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
2523         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2524         (__libc_vfork): New strong alias.
2525         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
2526         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
2527
2528         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
2529         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2530         (__libc_vfork): New strong alias.
2531         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
2532         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
2533         * nptl/pt-vfork.c: New file.
2534         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
2535         (libpthread: GLIBC_2.20): New version set (empty).
2536
2537 2014-05-14  Will Newton  <will.newton@linaro.org>
2538
2539         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
2540         rather than #if.
2541
2542 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2543
2544         [BZ #16564]
2545         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
2546         arguments with exponent 65 or above.
2547         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
2548         arguments 0x1p113L or above.
2549         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
2550         to arguments 0x1p107L or above.
2551         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
2552         positive arguments with exponent 65 or above.
2553         * math/auto-libm-test-in: Add more tests of log1p.
2554         * math/auto-libm-test-out: Regenerated.
2555
2556         [BZ #16928]
2557         * math/s_cacos.c (__cacos): Ensure zero real part of result from
2558         non-finite arguments is +0.
2559         * math/s_cacosf.c (__cacosf): Likewise.
2560         * math/s_cacosl.c (__cacosl): Likewise.
2561         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
2562         * sysdeps/i386/fpu/libm-test-ulps: Update.
2563         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2564
2565         [BZ #16927]
2566         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
2567         value.
2568         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
2569         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
2570         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
2571         for explicit high bit of mantissa when testing for argument equal
2572         to 1.
2573         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
2574         * sysdeps/i386/fpu/libm-test-ulps: Update.
2575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2576
2577         [BZ #16516]
2578         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
2579         (__erf): Scale by 16 instead of 8 in potentially underflowing
2580         case.  Ensure exception if result actually underflows.
2581         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
2582         (__erff): Scale by 16 instead of 8 in potentially underflowing
2583         case.  Ensure exception if result actually underflows.
2584         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
2585         (efx8): Remove variable.
2586         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2587         case.  Ensure exception if result actually underflows.
2588         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
2589         (efx8): Remove variable.
2590         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2591         case.  Ensure exception if result actually underflows.
2592         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
2593         (efx8): Remove variable.
2594         (__erfl): Scale by 16 instead of 8 in potentially underflowing
2595         case.  Ensure exception if result actually underflows.
2596         * math/auto-libm-test-in: Add more tests of erf.
2597         * math/auto-libm-test-out: Regenerated.
2598
2599 2014-05-14  Andreas Schwab  <schwab@suse.de>
2600
2601         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
2602         Remove code conditionalized on USE___THREAD.
2603
2604         * config.h.in (HAVE_PT_CHOWN): Define as 0.
2605         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
2606         not definedness.
2607
2608 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
2609
2610         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
2611         Define unconditionally.
2612         (__ASSUME_O_CLOEXEC): Likewise.
2613         (__ASSUME_SOCK_CLOEXEC): Likewise.
2614         (__ASSUME_IN_NONBLOCK): Likewise.
2615         (__ASSUME_PIPE2): Likewise.
2616         (__ASSUME_EVENTFD2): Likewise.
2617         (__ASSUME_SIGNALFD4): Likewise.
2618         (__ASSUME_DUP3): Likewise.
2619         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
2620         (__ASSUME_DUP3): Do not define.
2621         (__ASSUME_EVENTFD2): Likewise.
2622         (__ASSUME_IN_NONBLOCK): Likewise.
2623         (__ASSUME_O_CLOEXEC): Likewise.
2624         (__ASSUME_PIPE2): Likewise.
2625         (__ASSUME_SIGNALFD4): Likewise.
2626         (__ASSUME_SOCK_CLOEXEC): Likewise.
2627         (__ASSUME_UTIMES): Undefine.
2628         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2629         (__ASSUME_UTIMES): Do not define.
2630         (__ASSUME_O_CLOEXEC): Likewise.
2631         (__ASSUME_SOCK_CLOEXEC): Likewise.
2632         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
2633         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
2634         0x020621].
2635         (__ASSUME_PIPE2): Likewise.
2636         (__ASSUME_EVENTFD2): Likewise.
2637         (__ASSUME_SIGNALFD4): Likewise.
2638         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
2639         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
2640         Do not define.
2641         (__ASSUME_EVENTFD2): Likewise.
2642         (__ASSUME_SIGNALFD4): Likewise.
2643         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2644         (__ASSUME_32BITUIDS): Likewise.
2645         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
2646         (__ASSUME_IPC64): Likewise.
2647         (__ASSUME_ST_INO_64_BIT): Likewise.
2648         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
2649         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
2650         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2651         (__ASSUME_UTIMES): Do not define.
2652         (__ASSUME_PSELECT): Likewise.
2653         (__ASSUME_PPOLL): Likewise.
2654         (__ASSUME_O_CLOEXEC): Likewise.
2655         (__ASSUME_SOCK_CLOEXEC): Likewise.
2656         (__ASSUME_IN_NONBLOCK): Likewise.
2657         (__ASSUME_PIPE2): Likewise.
2658         (__ASSUME_EVENTFD2): Likewise.
2659         (__ASSUME_SIGNALFD4): Likewise.
2660         (__ASSUME_DUP3): Likewise.
2661         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2662         (__ASSUME_UTIMES): Likewise.
2663         (__ASSUME_O_CLOEXEC): Likewise.
2664         (__ASSUME_SOCK_CLOEXEC): Likewise.
2665         (__ASSUME_IN_NONBLOCK): Likewise.
2666         (__ASSUME_PIPE2): Likewise.
2667         (__ASSUME_EVENTFD2): Likewise.
2668         (__ASSUME_SIGNALFD4): Likewise.
2669         (__ASSUME_DUP3): Likewise.
2670         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2671         (__ASSUME_UTIMES): Likewise.
2672         (__ASSUME_O_CLOEXEC): Likewise.
2673         (__ASSUME_SOCK_CLOEXEC): Likewise.
2674         (__ASSUME_IN_NONBLOCK): Likewise.
2675         (__ASSUME_PIPE2): Likewise.
2676         (__ASSUME_EVENTFD2): Likewise.
2677         (__ASSUME_SIGNALFD4): Likewise.
2678         (__ASSUME_DUP3): Likewise.
2679         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
2680         Likewise.
2681         (__ASSUME_UTIMES): Likewise.
2682         (__ASSUME_EVENTFD2): Likewise.
2683         (__ASSUME_SIGNALFD4): Likewise.
2684         * sysdeps/unix/sysv/linux/tile/kernel-features.h
2685         (__ASSUME_O_CLOEXEC): Likewise.
2686         (__ASSUME_SOCK_CLOEXEC): Likewise.
2687         (__ASSUME_IN_NONBLOCK): Likewise.
2688         (__ASSUME_PIPE2): Likewise.
2689         (__ASSUME_EVENTFD2): Likewise.
2690         (__ASSUME_SIGNALFD4): Likewise.
2691         (__ASSUME_DUP3): Likewise.
2692         (__ASSUME_UTIMES): Undefine.
2693
2694         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
2695         feclearexcept.  Remove symbol versioning code.
2696         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
2697         symbol versioning code.
2698         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
2699         symbol versioning code.
2700         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
2701         feupdateenv.  Remove symbol versioning code.
2702         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
2703         fegetexceptflag.  Remove symbol versioning code.
2704         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
2705         fesetexceptflag.  Remove symbol versioning code.
2706         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
2707         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
2708         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
2709         (__posix_fadvise64_l32): Remove prototype.
2710         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
2711         code.
2712
2713 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2714
2715         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
2716         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
2717         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
2718         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
2719
2720 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
2721
2722         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
2723         current working directory
2724
2725 2014-05-13  Roland McGrath  <roland@hack.frob.com>
2726
2727         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
2728         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
2729         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
2730         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
2731         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
2732         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
2733         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
2734         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
2735         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
2736         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
2737         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
2738         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
2739         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
2740         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
2741         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
2742         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
2743         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
2744         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
2745         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
2746         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
2747         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
2748         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
2749         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
2750         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
2751         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
2752         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
2753         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
2754         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
2755         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
2756         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
2757         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
2758         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
2759         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
2760         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
2761         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
2762         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
2763         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
2764         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
2765         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
2766         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
2767         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
2768         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
2769
2770         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
2771         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
2772
2773         * sysdeps/unix/sysv/linux/arm/Makefile
2774         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
2775         Add rt-aeabi_unwind_cpp_pr1.
2776         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
2777         Add nptl-aeabi_unwind_cpp_pr1.
2778         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
2779         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
2780         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
2781         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
2782         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
2783         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
2784
2785         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
2786         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
2787         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
2788         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
2789
2790         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
2791         Deconditionalize the code that was previously under [RESET_PID].
2792         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
2793
2794         * sysdeps/generic/exit-thread.h: New file.
2795         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
2796         * include/unistd.h (__exit_thread): Remove declaration.
2797         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
2798         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
2799         * csu/libc-start.c: Include <exit-thread.h>.
2800         (LIBC_START_MAIN): Pass no argument to __exit_thread.
2801         * nptl/pthread_create.c: Include <exit-thread.h>.
2802         (start_thread): Call __exit_thread in place of __exit_thread_inline.
2803         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
2804         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
2805         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
2806         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
2807         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
2808         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
2809         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
2810         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
2811         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
2812         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
2813         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
2814         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
2815         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
2816         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
2817         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
2818         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
2819
2820 2014-05-13  Andreas Schwab  <schwab@suse.de>
2821
2822         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
2823
2824 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
2825
2826         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
2827         (__ASSUME_UTIMES): Do not condition on kernel version.
2828         (__ASSUME_PSELECT): Define unconditionally.
2829         (__ASSUME_PPOLL): Likewise.
2830         (__ASSUME_ATFCTS): Likewise.
2831         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
2832         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
2833         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
2834         (__ASSUME_UTIMENSAT): Define unconditionally.
2835         (__ASSUME_PRIVATE_FUTEX): Likewise.
2836         (__ASSUME_FALLOCATE): Likewise.
2837         (__ASSUME_O_CLOEXEC): Likewise.
2838         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
2839         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
2840         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
2841         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
2842         (__ASSUME_IN_NONBLOCK): Likewise.
2843         (__ASSUME_PIPE2): Likewise.
2844         (__ASSUME_EVENTFD2): Likewise.
2845         (__ASSUME_SIGNALFD4): Likewise.
2846         (__ASSUME_DUP3): Likewise.
2847         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
2848         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
2849         (__ASSUME_AT_RANDOM): Likewise.
2850         (__ASSUME_PREADV): Likewise.
2851         (__ASSUME_PWRITEV): Likewise.
2852         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
2853         (__ASSUME_F_GETOWN_EX): Define unconditionally.
2854         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
2855         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2856         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
2857         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2858         (__ASSUME_O_CLOEXEC): Define unconditionally.
2859         (__ASSUME_PSELECT): Do not undefine conditionally.
2860         (__ASSUME_PPOLL): Likewise.
2861         (__ASSUME_ATFCTS): Likewise.
2862         (__ASSUME_SET_ROBUST_LIST): Likewise.
2863         (__ASSUME_UTIMENSAT): Likewise.
2864         (__ASSUME_FDATASYNC): Define unconditionally.
2865         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2866         (__ASSUME_SIGFRAME_V2): Likewise.
2867         )__ASSUME_EVENTFD2): Likewise.
2868         (__ASSUME_SIGNALFD4): Likewise.
2869         (__ASSUME_PSELECT): Do not undefine conditionally.
2870         (__ASSUME_PPOLL): Likewise.
2871         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
2872         (__ASSUME_PSELECT): Define unconditionally.
2873         (__ASSUME_PPOLL): Likewise.
2874         (__ASSUME_O_CLOEXEC): Likewise.
2875         (__ASSUME_SOCK_CLOEXEC): Likewise.
2876         (__ASSUME_IN_NONBLOCK): Likewise.
2877         (__ASSUME_PIPE2): Likewise.
2878         (__ASSUME_EVENTFD2): Likewise.
2879         (__ASSUME_SIGNALFD4): Likewise.
2880         (__ASSUME_DUP3): Likewise.
2881         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2882         (__ASSUME_O_CLOEXEC): Likewise.
2883         (__ASSUME_SOCK_CLOEXEC): Likewise.
2884         (__ASSUME_IN_NONBLOCK): Likewise.
2885         (__ASSUME_PIPE2): Likewise.
2886         (__ASSUME_EVENTFD2): Likewise.
2887         (__ASSUME_SIGNALFD4): Likewise.
2888         (__ASSUME_DUP3): Likewise.
2889         * sysdeps/unix/sysv/linux/mips/kernel-features.h
2890         (__ASSUME_EVENTFD2): Likewise.
2891         (__ASSUME_SIGNALFD4): Likewise.
2892         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
2893
2894 2014-05-12  Andreas Schwab  <schwab@suse.de>
2895
2896         [BZ #16932]
2897         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
2898         (_nss_nis_gethostbyname4_r): Return error if item length is larger
2899         than maximum RPC packet size.
2900         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
2901         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
2902         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
2903         (_nss_nis_getservbyport_r): Likewise.
2904
2905 2014-05-12  Will Newton  <will.newton@linaro.org>
2906
2907         * malloc/Makefile (tests): Add tst-mallopt.
2908         * malloc/tst-mallopt.c: New file.
2909
2910 2014-05-09  Roland McGrath  <roland@hack.frob.com>
2911
2912         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
2913         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
2914
2915 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2916
2917         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
2918         (tst-tlsmod6.so): Likewise.
2919
2920 2014-05-09  Roland McGrath  <roland@hack.frob.com>
2921
2922         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
2923
2924 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
2925
2926         [BZ #16064]
2927         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
2928         and <dl-procinfo.h>.
2929         (__fegetenv): Save SSE state in envp->__eip if supported.
2930         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
2931         envp->__eip if supported.
2932         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
2933         and <dl-procinfo.h>.
2934         (__fesetenv): Always set __eip, __cs_selector, __opcode,
2935         __data_offset and __data_selector in environment to 0.  Set SSE
2936         state if supported.
2937         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
2938         test-fenv-sse.
2939         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
2940         -mfpmath=sse.
2941         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
2942
2943 2014-05-09  Will Newton  <will.newton@linaro.org>
2944
2945         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
2946         and libc_relro_required for ARM.
2947         * sysdeps/arm/preconfigure: Regenerate.
2948
2949 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2950             Stefan Liebler  <stli@linux.vnet.ibm.com>
2951
2952         * config.make.in (enable-lock-elision): New Makefile variable.
2953         * configure.ac: Likewise.
2954         * configure: Regenerate.
2955         * sysdeps/s390/configure.ac:
2956         Add check for gcc transactions support.
2957         * sysdeps/s390/configure: Regenerate.
2958         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
2959         Build elision files if enabled.
2960         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
2961         Add lock elision support for s390.
2962         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
2963         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
2964         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2965         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
2966         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
2967         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
2968         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
2969         Likewise.
2970         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
2971         Likewise.
2972         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
2973         Likewise.
2974         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
2975         Likewise.
2976         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
2977         (__lll_timedlock_elision, __lll_lock_elision)
2978         (__lll_unlock_elision, __lll_trylock_elision)
2979         (lll_timedlock_elision, lll_lock_elision)
2980         (lll_unlock_elision, lll_trylock_elision): Add.
2981         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
2982         (pthread_mutex_t): Add lock elision support for s390.
2983
2984 2014-05-14  Wilco  <wdijkstr@arm.com>
2985
2986         * sysdeps/arm/fclrexcpt.c: Cleanup.
2987         * sysdeps/arm/fedisblxcpt.c: Cleanup.
2988         * sysdeps/arm/feenablxcpt.c: Cleanup.
2989         * sysdeps/arm/fegetenv.c: Cleanup.
2990         * sysdeps/arm/fegetexcept.c: Cleanup.
2991         * sysdeps/arm/fegetround.c: Cleanup.
2992         * sysdeps/arm/feholdexcpt.c: Cleanup.
2993         * sysdeps/arm/fesetenv.c: Cleanup.
2994         * sysdeps/arm/fesetround.c: Cleanup.
2995         * sysdeps/arm/feupdateenv.c: Cleanup.
2996         * sysdeps/arm/fgetexcptflg.c: Cleanup.
2997         * sysdeps/arm/fraiseexcpt.c: Cleanup.
2998         * sysdeps/arm/fsetexcptflg.c: Cleanup.
2999         * sysdeps/arm/ftestexcept.c: Cleanup.
3000         * sysdeps/arm/get-rounding-mode.h: Cleanup.
3001         * sysdeps/arm/setfpucw.c: Cleanup.
3002
3003 2014-05-09  Will Newton  <will.newton@linaro.org>
3004
3005         * sysdeps/arm/armv7/strcmp.S: New file.
3006         * NEWS: Mention addition of ARMv7 optimized strcmp.
3007
3008 2014-05-08  Roland McGrath  <roland@hack.frob.com>
3009
3010         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
3011         look for %.ac rather than %.in.
3012
3013         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
3014         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
3015         * sysdeps/mach/hurd/configure: Regenerated.
3016         * sysdeps/unix/sysv/linux/configure: Regenerated.
3017
3018         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
3019
3020 2014-05-07  Steve Ellcey  <sellcey@mips.com>
3021
3022         [BZ# 16922]
3023         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
3024         (LONG_SUB): Ditto.
3025         (PTR_SUB): Ditto.
3026
3027 2014-05-07  Andreas Schwab  <schwab@suse.de>
3028
3029         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
3030         when skipping over non-matching result from nscd.
3031
3032 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
3033
3034         [BZ #16876]
3035         * nptl/sockperf.c (client): Check socket return value.
3036
3037         [BZ #16877]
3038         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
3039         nscd security class.
3040
3041 2014-05-06  Roland McGrath  <roland@hack.frob.com>
3042
3043         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
3044         * sysdeps/arm/unwind.h: ... here.
3045
3046 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
3047
3048         [BZ# 16916]
3049         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
3050         Define.
3051
3052 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
3053
3054         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
3055         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
3056         multiarch strncpy for PPC64.
3057         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
3058         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
3059         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
3060         multiarch optimizations.
3061         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
3062         (__libc_ifunc_impl_list): Likewise.
3063         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
3064         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
3065         multiarch stpncpy for PPC64.
3066         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
3067         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
3068
3069 2014-05-06  Andreas Schwab  <schwab@suse.de>
3070
3071         [BZ #16912]
3072         * gmon/mcount.c (_MCOUNT_DECL): Use
3073         atomic_compare_and_exchange_bool_acq instead of
3074         catomic_compare_and_exchange_bool_acq.
3075
3076 2014-05-05  Roland McGrath  <roland@hack.frob.com>
3077
3078         * elf/Makefile (others, install-bin): Remove pldd.
3079         (pldd-modules): Variable removed.
3080         ($(objpfx)pldd): Target removed.
3081         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
3082         (others, install-bin): Append pldd here.
3083         ($(objpfx)pldd): New target.
3084
3085         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
3086         to 0, so the first #if test emitted later doesn't see it undefined.
3087         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
3088         * sysdeps/gnu/errlist.c: Regenerated.
3089
3090 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3091
3092         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3093         [libc_hidden_builtin_def]: Define to empty value.
3094         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
3095         [libc_hidden_builtin_def]: Likewise.
3096         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
3097         [libc_hidden_builtin_def]: Likewise.
3098         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
3099         [libc_hidden_builtin_def]: Likewise.
3100         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
3101         __redirect_memcpy and define ifunc as default hidden symbol.
3102         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
3103         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
3104
3105 2014-05-04  Adam Conrad  <adconrad@0c3.net>
3106
3107         * locale/iso-4217.def: Reintroduce XDR currency.
3108
3109 2014-05-04  Allan McRae  <allan@archlinux.org>
3110
3111         * po/eo.po: Update Esperanto translation from translation project.
3112
3113 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
3114
3115         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
3116         and FEATURE_INDEX_MAX to 1.
3117         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
3118
3119 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3120
3121         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
3122         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
3123         * iconvdata/big5.c (ONE_DIRECTION): Define.
3124         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
3125         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
3126         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
3127         * iconvdata/cp932.c (ONE_DIRECTION): Define.
3128         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
3129         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
3130         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
3131         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
3132         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
3133         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
3134         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
3135         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
3136         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
3137         * iconvdata/gbk.c (ONE_DIRECTION): Define.
3138         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
3139         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
3140         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
3141         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
3142         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
3143         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
3144         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
3145         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
3146         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
3147         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
3148         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
3149         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
3150         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
3151         * iconvdata/iso646.c (ONE_DIRECTION): Define.
3152         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
3153         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
3154         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
3155         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
3156         * iconvdata/johab.c (ONE_DIRECTION): Define.
3157         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
3158         * iconvdata/sjis.c (ONE_DIRECTION): Define.
3159         * iconvdata/t.61.c (ONE_DIRECTION): Define.
3160         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
3161         * iconvdata/tscii.c (ONE_DIRECTION): Define.
3162         * iconvdata/uhc.c (ONE_DIRECTION): Define.
3163         * iconvdata/unicode.c (ONE_DIRECTION): Define.
3164         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
3165         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
3166         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
3167
3168 2014-05-01  Roland McGrath  <roland@hack.frob.com>
3169
3170         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
3171         (_IO_JUMPS_OFFSET): Define to 0.
3172
3173         * nptl/sysdeps/pthread/bits/libc-lock.h
3174         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3175         (__libc_lock_define_initialized_recursive): Always define using
3176         initializer.  Modern compilers treat uninitialized (implicit zero) and
3177         explicit zero initializers the same (i.e. put the datum in bss).
3178
3179 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3180
3181         * nscd/nscd-client.h: Include <string.h>.
3182
3183 2014-05-01  David S. Miller  <davem@davemloft.net>
3184
3185         [BZ #16885]
3186         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
3187         multiple zero bytes exist at the end of a string.
3188         Reported by Aurelien Jarno <aurelien@aurel32.net>
3189
3190         * string/test-strcmp.c (check): Add explicit test for situations where
3191         there are multiple zero bytes after the first.
3192
3193 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3194
3195         [BZ #16890]
3196         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
3197         when compiling wprintf.
3198         * stdio-common/tstdiomisc.c (t3): New function.
3199         (main): Call it.
3200
3201 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3202
3203         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
3204         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
3205         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
3206         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
3207
3208 2014-05-01  Steve Ellcey  <sellcey@mips.com>
3209
3210         * stdlib/longlong.h: Updated from GCC.
3211
3212 2014-05-01  Will Newton  <will.newton@linaro.org>
3213             Bernard Ogden  <bernie.ogden@linaro.org>
3214
3215         * NEWS: Update fixed bug list.
3216
3217         [BZ #15119]
3218         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
3219
3220 2014-04-30  David S. Miller  <davem@davemloft.net>
3221
3222         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
3223         (libc_feholdexcept_setround_sparc_ctx): New function.
3224         (libc_fesetenv_sparc_ctx): Likewise.
3225         (libc_feupdateenv_sparc_ctx): Likewise.
3226         (libc_feholdsetround_sparc_ctx): Likewise.
3227         (libc_feholdexcept_setround_ctx): Define.
3228         (libc_feholdexcept_setroundf_ctx): Likewise.
3229         (libc_feholdexcept_setroundl_ctx): Likewise.
3230         (libc_fesetenv_ctx): Likewise.
3231         (libc_fesetenvf_ctx): Likewise.
3232         (libc_fesetenvl_ctx): Likewise.
3233         (libc_feupdateenv_ctx): Likewise.
3234         (libc_feupdateenvf_ctx): Likewise.
3235         (libc_feupdateenvl_ctx): Likewise.
3236         (libc_feresetround_ctx): Likewise.
3237         (libc_feresetroundf_ctx): Likewise.
3238         (libc_feresetroundl_ctx): Likewise.
3239         (libc_feholdsetround_ctx): Likewise.
3240         (libc_feholdsetroundf_ctx): Likewise.
3241         (libc_feholdsetroundl_ctx): Likewise.
3242
3243         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3244         with __USE_GNU instead of XOPEN cpp guards.
3245
3246         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
3247         0.
3248
3249         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
3250         with XOPEN cpp guards.
3251
3252 2014-04-30  Julian Brown  <julian@codesourcery.com>
3253
3254         [BZ #16888]
3255         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
3256         handling.
3257
3258 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
3259
3260         [BZ #9894]
3261         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
3262         Change to 2.6.32.
3263         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
3264         * sysdeps/unix/sysv/linux/configure: Regenerated.
3265         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
3266         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
3267         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
3268         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
3269         * README: Update reference to required Linux kernel version.
3270         * manual/install.texi (Linux): Update reference to required Linux
3271         kernel headers version.
3272         * INSTALL: Regenerated.
3273
3274         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
3275         header inclusion.
3276         [POSIX] (limits.h): Likewise.
3277         [POSIX] (math.h): Likewise.
3278         [POSIX] (sys/wait.h): Likewise.
3279         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
3280         function.
3281         [POSIX] (stddef.h): Do not allow header inclusion.
3282
3283 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3284
3285         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
3286
3287 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
3288
3289         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
3290         Return immediately after lll_futex_wake.
3291
3292 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3293
3294         [BZ #16791]
3295         * nscd/nscd-client.h (datahead_init_common): Initialize entire
3296         structure.
3297         (datahead_init_pos): Call datahead_init_common early.
3298         (datahead_init_neg): Likewise.
3299
3300         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
3301         datahead_init_neg): New functions.
3302         * nscd/aicache.c (addhstaiX): Use them.
3303         * nscd/grpcache.c (cache_addgr): Likewise.
3304         * nscd/hstcache.c (cache_addhst): Likewise.
3305         * nscd/initgrcache.c (addinitgroupsX): Likewise.
3306         * nscd/netgroupcache.c (do_notfound): Likewise.
3307         (addgetnetgrentX): Likewise.
3308         (addinnetgrX): Likewise.
3309         * nscd/pwdcache.c (cache_addpw): Likewise.
3310         * nscd/servicescache.c (cache_addserv): Likewise.
3311
3312 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3313             Atsushi Onoe  <atsushi@onoe.org>
3314
3315         [BZ #14308]
3316         [BZ #12994]
3317         [BZ #13651]
3318         * resolv/res_query.c (__libc_res_nsearch): Return if at least
3319         one response is valid.
3320         * resolv/res_send.c (send_dg): Check for validity of other
3321         response if the current response is a referral.
3322
3323 2014-04-29  Steve Ellcey  <sellcey@mips.com>
3324
3325         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
3326
3327 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
3328
3329         [BZ #16823]
3330         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
3331         Always divide by positive zero when computing -Inf result.
3332         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
3333         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
3334
3335 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3336
3337         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
3338         FPSCR if value do not change.
3339         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3340         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
3341         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
3342         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
3343         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
3344         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
3345         function.
3346
3347 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
3348
3349         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
3350         * sysdeps/unix/sysv/linux/hppa: Move directory from
3351         ports/systeps/unix/sysv/linux/hppa.
3352         * README: Update listing for hppa-*-linux-gnu.
3353
3354 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
3355
3356         [BZ #16754]
3357         * manual/stdio.texi (Hook functions): Fix types of stream hook
3358         functions.
3359         [BZ #16854]
3360         * socket/sys/socket.h: Fix typo in comment.
3361
3362 2014-04-28  Wilco  <wdijkstr@arm.com>
3363
3364         * sysdeps/arm/fenv_private.h: New file.
3365         * sysdeps/arm/math_private.h: New file.
3366         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
3367
3368 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3369
3370         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
3371         with __int128_t.
3372         (La_x86_64_retval): Likewise.
3373
3374 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
3375
3376         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
3377         fpsr if value didn't change.
3378         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
3379         to fpcr if value didn't change.
3380         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
3381         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
3382         fpsr or fpcr if value didn't change.
3383         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
3384         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
3385         fpcr if value didn't change.
3386         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
3387         to fpsr if value didn't change.
3388
3389 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
3390
3391         * nptl/tst-sem3.c: Use test-skeleton.c
3392         (main): Rename to do_test.  Use return instead of
3393         exit.
3394         * nptl/tst-sem4.c: Use test-skeleton.c
3395         (main): Rename to do_test.
3396
3397 2014-04-22  David S. Miller  <davem@davemloft.net>
3398
3399         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
3400         (struct sigaction): New struct member __glibc_reserved0, change
3401         type of sa_flags to int.
3402
3403 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
3404
3405         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
3406         (COUNT_LEADING_ZEROS_0): Define for AArch64.
3407
3408 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3409
3410         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
3411         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
3412
3413 2014-04-22  Will Newton  <will.newton@linaro.org>
3414             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
3415
3416         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
3417         (__longjmp): Add longjmp and longjmp_target SystemTap
3418         probes.
3419         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
3420         (__sigsetjmp): Add setjmp SystemTap probe.
3421
3422 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
3423
3424         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
3425         match manual order.
3426
3427 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3428
3429         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
3430
3431         * sysdeps/powerpc/fpu/fenv_private.h
3432         (libc_feholdexcept_setroundl_ctx): Define to
3433         libc_feholdexcept_setround_ppc_ctx.
3434         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
3435         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
3436         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
3437         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
3438
3439 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3440
3441         * sysdeps/aarch64/math-tests.h: New file.
3442
3443 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
3444
3445         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
3446         New.
3447         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3448         Check and set bit_AVX2_Usable.
3449         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
3450         macro.
3451         (bit_AVX2): Likewise.
3452         (index_AVX2_Usable): Likewise.
3453         (CPUID_AVX2): Likewise.
3454         (HAS_AVX2): Likewise.
3455
3456 2014-04-17  Will Newton  <will.newton@linaro.org>
3457
3458         * manual/setjmp.texi (System V contexts): Add note that
3459         calling setcontext on a context created by a call to a
3460         signal handler is undefined.  Update text to note that
3461         setcontext from a signal handler is possible but not
3462         recommended.
3463
3464         [BZ #16629]
3465         * stdlib/tst-setcontext.c: Include signal.h.
3466         (main): Check that the signal stack before and
3467         after swapcontext is the same.
3468
3469         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
3470         Re-implement to restore registers in user code and avoid
3471         rt_sigreturn system call.
3472
3473 2014-04-17  Wilco  <wdijkstr@arm.com>
3474
3475         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
3476         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
3477         * math/test-fenv.c: Skip exception trap tests on targets which only
3478         support non-stop mode.
3479
3480 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
3481             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3482
3483         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
3484         (libc_feholdsetround_aarch64_ctx)
3485         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
3486         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
3487         (libc_feresetround_ctx, libc_feresetroundf_ctx)
3488         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
3489         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
3490         (libc_feresetround_noexl_ctx): Define.
3491
3492 2014-04-16  Richard Henderson  <rth@redhat.com>
3493
3494         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
3495
3496         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
3497         unwind tables.
3498
3499         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
3500         const from the non-libc, non-ldso copy.
3501
3502         * sysdeps/alpha/libm-test-ulps: Regenerate.
3503
3504 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
3505             Wilco Dijkstra  <wilco.dijkstra@arm.com>
3506
3507         * sysdeps/aarch64/fpu/math_private.h: New file.
3508
3509 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3510
3511         * sysdeps/aarch64/libm-test-ulps: Regenerate.
3512
3513 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
3514
3515         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
3516         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
3517         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
3518         Intel MPX bound registers before _dl_profile_fixup.
3519         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
3520         registers after _dl_profile_fixup.  Save and restore bound
3521         registers bnd0/bnd1 when calling _dl_call_pltexit.
3522         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
3523         (LR_BND_OFFSET): Likewise.
3524         (LRV_BND0_OFFSET): Likewise.
3525         (LRV_BND1_OFFSET): Likewise.
3526
3527 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3528
3529         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
3530         to...
3531         * sysdeps/mach/hurd/i386/tls.h: ... here.
3532         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
3533         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
3534         fields.
3535
3536 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3537
3538         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
3539
3540 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3541
3542         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3543
3544 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
3545
3546         [BZ #14770]
3547         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
3548         * sysdeps/s390/configure: Regenerate.
3549
3550         [BZ #16824]
3551         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
3552         Set round-to-nearest internally to reduce error accumulation.
3553
3554 2014-04-16  Alan Modra  <amodra@gmail.com>
3555
3556         [BZ #16740]
3557         [BZ #16619]
3558         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
3559         * math/libm-test.inc (frexp_test_data): Add tests.
3560         * NEWS: Update fixed bug list.
3561
3562 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3563
3564         * benchtests/Makefile: Depend on libraries in build directory.
3565         (bench-math): Separate out math tests.
3566         (bench-pthread): Separate out pthread tests.
3567         (bench): Include math and pthread tests.
3568
3569 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
3570
3571         [BZ #16831]
3572         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
3573         _dl_debug_initialize.
3574
3575         * configure.ac: Remove SELinux header check.
3576         * configure: Regenerate.
3577         * nscd/selinux.c (perms): Array of const char* to permission names.
3578         (nscd_request_avc_has_perm): Call security_deny_unknown to find
3579         default policy. Call string_to_security_class and string_to_av_perm to
3580         translate strings. Enforce default policy and call avs_has_perm with
3581         results of translated strings.
3582
3583 2014-04-13  David S. Miller  <davem@davemloft.net>
3584
3585         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3586
3587 2014-04-12  Allan McRae  <allan@archlinux.org>
3588
3589         [BZ #16838]
3590         * manual/string.texi (Collation Functions): Fix qsort argument
3591         order in example.
3592         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
3593
3594 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
3595
3596         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
3597         Make the test a no-op if there are no exceptions defined.
3598
3599 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
3600
3601         * elf/Makefile (tests): make tst-dlopen-aout conditional on
3602         enable-hardcoded-path-in-tests
3603
3604 2014-04-11  Will Newton  <will.newton@linaro.org>
3605
3606         * benchtests/Makefile (extra-objs): Add json-lib.o.
3607         (bench-func): Tidy up JSON output.
3608         * benchtests/bench-skeleton.c: Include json-lib.h.
3609         (main): Use JSON library functions to do output of
3610         benchmark results.
3611         * benchtests/bench-timing-type.c (main): Output the
3612         timing type simply, leaving formatting to the user.
3613         * benchtests/json-lib.c: New file.
3614         * benchtests/json-lib.h: Likewise.
3615
3616 2014-04-11  Torvald Riegel  <triegel@redhat.com>
3617
3618         [BZ #15215]
3619         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
3620         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
3621         memory barriers.  Add comments.
3622         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
3623         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
3624         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
3625         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
3626         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
3627         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
3628
3629 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
3630
3631         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
3632         * sysdeps/s390/s390-64/configure.ac: ... this ...
3633         * sysdeps/s390/configure.ac: ... to here.
3634         * sysdeps/s390/s390-32/configure: Delete file.
3635         * sysdeps/s390/s390-64/configure: Delete file.
3636         * sysdeps/s390/configure: Regenerate.
3637
3638 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
3639
3640         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
3641
3642 2014-04-11  Will Newton  <will.newton@linaro.org>
3643
3644         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
3645         to zero if it is not defined elsewhere.  (mtrim): Test
3646         the value of MALLOC_DEBUG with #if rather than #ifdef.
3647
3648 2014-04-10 Torvald Riegel  <triegel@redhat.com>
3649
3650         * benchtests/pthread_once-inputs: New file.
3651         * benchtests/pthread_once-source.c: New file.
3652         * benchtests/README: Update documentation.
3653
3654 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
3655             H.J. Lu  <hongjiu.lu@intel.com>
3656
3657         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
3658         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
3659         * sysdeps/x86_64/configure: Regenerated.
3660         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
3661         macro.
3662         (REGISTER_SAVE_RAX): Likewise.
3663         (REGISTER_SAVE_RCX): Likewise.
3664         (REGISTER_SAVE_RDX): Likewise.
3665         (REGISTER_SAVE_RSI): Likewise.
3666         (REGISTER_SAVE_RDI): Likewise.
3667         (REGISTER_SAVE_R8): Likewise.
3668         (REGISTER_SAVE_R9): Likewise.
3669         (REGISTER_SAVE_BND0): Likewise.
3670         (REGISTER_SAVE_BND1): Likewise.
3671         (REGISTER_SAVE_BND2): Likewise.
3672         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
3673         bound registers when calling _dl_fixup.
3674
3675 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3676
3677         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
3678         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
3679         of its definition.
3680         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
3681         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
3682         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
3683         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
3684         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
3685         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
3686         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
3687
3688 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
3689
3690         [BZ #15514]
3691         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
3692         pathconf(_PC_NAME_MAX).
3693
3694 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3695
3696         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
3697         Remove macro usage.
3698         (__PTHREAD_SPINS): Move definition to ...
3699         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
3700         (__PTHREAD_SPINS): ... here.
3701         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
3702         (__PTHREAD_SPIN): Likewise.
3703         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
3704         (__PTHREAD_SPIN): Likewise.
3705         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
3706         (__PTHREAD_SPIN): Likewise.
3707         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
3708         (__PTHREAD_SPIN): Likewise.
3709         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
3710         (__PTHREAD_SPIN): Likewise.
3711         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
3712         (__PTHREAD_SPIN): Likewise.
3713         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
3714         (__PTHREAD_SPIN): Likewise.
3715         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
3716         (__PTHREAD_SPIN): Likewise.
3717         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
3718         (__PTHREAD_SPIN): Likewise.
3719         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
3720         (__PTHREAD_SPIN): Likewise.
3721         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
3722         (__PTHREAD_SPIN): Likewise.
3723         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
3724         (__PTHREAD_SPIN): Likewise.
3725
3726         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
3727         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
3728         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
3729         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
3730         imply folder.
3731         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
3732         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
3733         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
3734         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
3735         correct imply path.
3736         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
3737         strlen symbol for non multi-arch builds.
3738         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
3739         missing hidden_def and weak_alias.
3740
3741 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
3742
3743         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
3744
3745 2014-04-07  Will Newton  <will.newton@linaro.org>
3746
3747         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
3748         and contents.  [!_LIBC] Remove #ifndef and contents.
3749         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
3750         * string/memccpy.c (__memccpy): Use ANSI prototype.
3751         * string/memfrob.c (memfrob): Likewise.
3752         * string/strcoll.c (STRCOLL): Likewise.
3753         * string/strlen.c (strlen): Likewise.
3754         * string/strtok.c (STRTOK): Likewise.
3755         * string/strcat.c: Remove unused #include of memcopy.h.
3756         (strcat): Use ANSI prototype.
3757         * string/strchr.c: Remove unused #include of memcopy.h.
3758         (strchr): Use ANSI prototype.
3759         * string/strcmp.c: Remove unused #include of memcopy.h.
3760         (strcmp): Use ANSI prototype.
3761         * string/strcpy.c: Remove unused #include of memcopy.h.
3762         (strcpy): Use ANSI prototype.
3763
3764 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3765
3766         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
3767         * config.make.in (config-extra-cppflags): Set it from
3768         libc_extra_cppflags.
3769         * configure.ac (libc_extra_cflags): Make it accumulate over
3770         configure fragments.
3771         (libc_extra_cppflags): New flag.
3772         * configure. Regenerate.
3773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3774         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
3775         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
3776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
3777
3778         [BZ #16815]
3779         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
3780         result for FE_DOWNWARD rounding mode.
3781         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
3782         Likewise.
3783         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3784
3785 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
3786
3787         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
3788         in function argument name.
3789
3790 2014-04-03  David Svoboda  <svoboda@cert.org>
3791
3792         [BZ #5666]
3793         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
3794         explicitly.
3795
3796 2014-04-03  Roland McGrath  <roland@hack.frob.com>
3797
3798         * elf/dl-unmap-segments.h: New file.
3799         * sysdeps/generic/ldsodefs.h
3800         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
3801         * elf/dl-close.c: Include <dl-unmap-segments.h>.
3802         * elf/dl-fptr.c: Likewise.
3803         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
3804         * sysdeps/aarch64/tlsdesc.c: Likewise.
3805         * sysdeps/arm/tlsdesc.c: Likewise.
3806         * sysdeps/i386/tlsdesc.c: Likewise.
3807         * sysdeps/tile/dl-runtime.c: Likewise.
3808         * sysdeps/x86_64/tlsdesc.c: Likewise.
3809         * elf/dl-load.h: New file.
3810         * elf/dl-load.c: Include it.
3811         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
3812         Macros moved to dl-load.h.
3813         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
3814         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
3815         Use _dl_unmap_segments in place of __munmap.
3816         Break out segment-mapping loop into ...
3817         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
3818
3819 2014-04-03  Will Newton  <will.newton@linaro.org>
3820
3821         * elf/dl-lookup.c (do_lookup_x): Remove comment
3822         referring to nested function and move variable
3823         declarations down to before first use.
3824
3825 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
3826
3827         [BZ #16799]
3828         [BZ #16800]
3829         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
3830         with 0 numerator.
3831         * math/s_catanf.c (__catanf): Likewise.
3832         * math/s_catanh.c (__catanh): Likewise.
3833         * math/s_catanhf.c (__catanhf): Likewise.
3834         * math/s_catanhl.c (__catanhl): Likewise.
3835         * math/s_catanl.c (__catanl): Likewise.
3836         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
3837         by positive zero when computing -Inf result.
3838         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
3839         (catanh_test): Likewise.
3840         * sysdeps/i386/fpu/libm-test-ulps: Update.
3841         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3842
3843         [BZ #16789]
3844         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
3845         instead of using underflowing value in computing result.
3846         * math/s_clog10.c (__clog10): Likewise.
3847         * math/s_clog10f.c (__clog10f): Likewise.
3848         * math/s_clog10l.c (__clog10l): Likewise.
3849         * math/s_clogf.c (__clogf): Likewise.
3850         * math/s_clogl.c (__clogl): Likewise.
3851         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
3852         (clog10_test): Likewise.
3853         * sysdeps/i386/fpu/libm-test-ulps: Update.
3854         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3855
3856 2014-04-02  Alan Modra  <amodra@gmail.com>
3857
3858         [BZ #16739]
3859         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
3860         output when value is near a power of two.  Use int64_t for lx and
3861         remove casts.  Use decimal rather than hex exponent constants.
3862         Don't use long double multiplication when double will suffice.
3863         * math/libm-test.inc (nextafter_test_data): Add tests.
3864         * NEWS: Add 16739 and 16786 to bug list.
3865
3866         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
3867
3868         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
3869
3870 2014-04-01  Will Newton  <will.newton@linaro.org>
3871
3872         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
3873         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
3874
3875 2014-04-01  Florian Weimer  <fweimer@redhat.com>
3876
3877         [BZ #13347]
3878         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
3879         * nptl/tst-setuid2.c: New file.
3880         * nptl/Makefile (xtests): Add tst-setuid2.
3881
3882 2014-04-01  Alan Modra  <amodra@gmail.com>
3883
3884         [BZ #16786]
3885         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
3886
3887 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
3888
3889         [BZ #6803]
3890         [BZ #6804]
3891         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
3892         set errno as appropriate.
3893         * math/w_scalbf.c (__scalbf): Likewise.
3894         * math/w_scalbl.c (__scalbl): Likewise.
3895         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
3896         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
3897         * math/libm-test.inc (scalb_test_data): Add errno expectations.
3898         Add more NaN tests.
3899
3900         [BZ #16349]
3901         * math/w_atan2.c: Include <errno.h>.
3902         (__atan2): Set errno for result underflowing to zero.
3903         * math/w_atan2f.c: Include <errno.h>.
3904         (__atan2f): Set errno for result underflowing to zero.
3905         * math/w_atan2l.c: Include <errno.h>.
3906         (__atan2l): Set errno for result underflowing to zero.
3907         * math/auto-libm-test-in: Don't allow missing errno for some atan2
3908         tests.
3909         * math/auto-libm-test-out: Regenerated.
3910
3911 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3912
3913         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
3914         Encode instruction correctly in little endian.
3915         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
3916         Likewise.
3917         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
3918         Likewise.
3919         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
3920         Likewise.
3921         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
3922         Likewise.
3923
3924 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
3925
3926         [BZ #9894]
3927         * sysdeps/unix/sysv/linux/kernel-features.h
3928         [__sparc__ && !__arch64__ && !__sparc_v9__]
3929         (__ASSUME_SET_ROBUST_LIST): Do not define.
3930         [__sparc__ && !__arch64__ && !__sparc_v9__]
3931         (__ASSUME_FUTEX_LOCK_PI): Likewise.
3932         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
3933         Likewise.
3934         * sysdeps/unix/sysv/linux/arm/kernel-features.h
3935         (__ASSUME_FUTEX_LOCK_PI): Undefine.
3936         (__ASSUME_REQUEUE_PI): Likewise.
3937         (__ASSUME_SET_ROBUST_LIST): Likewise.
3938         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
3939         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
3940         Undefine.
3941         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3942         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
3943         Likewise.
3944         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
3945         Likewise.
3946         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
3947         Likewise.
3948         * sysdeps/unix/sysv/linux/mips/kernel-features.h
3949         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
3950         Undefine.
3951         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
3952         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
3953         Likewise.
3954
3955         [BZ #16648]
3956         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3957         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
3958         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
3959
3960 2014-03-31  Will Newton  <will.newton@linaro.org>
3961
3962         * benchtests/Makefile (bench): Add ffs and ffsll to list
3963         of tests.
3964         * benchtests/ffs-inputs: New file.
3965         * benchtests/ffsll-inputs: Likewise.
3966
3967 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
3968
3969         [BZ #16770]
3970         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
3971         too large before casting to int.
3972         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
3973         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
3974         * math/libm-test.inc (scalb_test_data): Add more tests.
3975
3976 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3977
3978         * benchtests/Makefile (DETAILED_OPT): New make option.
3979         (bench-func): Run benchmark program with -d if DETAILED_OPT is
3980         set.
3981         * benchtests/bench-skeleton.c: Include stdbool.h.
3982         (main): Store and print timings per input.
3983         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
3984         member to each argument value.
3985         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
3986         (_print_arg_data): Initialize per-input timing to 0.
3987
3988         * benchtests/Makefile (timing-type): New binary.
3989         (bench-clean): Also remove bench-timing-type.
3990         (bench): New target for timing-type.
3991         (bench-func): Print output in JSON format.
3992         * benchtests/bench-skeleton.c (main): Print output in JSON
3993         format.
3994         * benchtests/bench-timing-type.c: New file.
3995         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
3996         (TIMING_PRINT_STATS): Remove.
3997         * benchtests/scripts/bench.py (_print_arg_data): Store variant
3998         name separately.
3999
4000         * benchtests/bench-modf.c: Remove.
4001         * benchtests/modf-inputs: New inputs file.
4002
4003 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
4004
4005         [BZ #16362]
4006         * math/s_clog10.c (M_PI_LOG10E): New macro.
4007         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
4008         imaginary parts are 0.
4009         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
4010         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
4011         imaginary parts are 0.
4012         * math/s_clog10l.c (M_PI_LOG10El): New macro.
4013         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
4014         imaginary parts are 0.
4015         * math/libm-test.inc (clog10_test_data): Update expected results
4016         for when real and imaginary parts are 0.
4017
4018 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
4019
4020         * elf/dl-load.c: Finish conversion of __builtin_expect into
4021         __glibc_{un}likely.
4022
4023 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
4024
4025         [BZ #16348]
4026         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
4027         1+x for argument with exponent below -67.
4028         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
4029         Likewise.
4030         * math/auto-libm-test-in: Add more tests of exp.
4031         * math/auto-libm-test-out: Regenerated.
4032
4033 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4034
4035         [BZ #16759]
4036         * inet/getnetgrent_r.c (get_nonempty_val): New function.
4037         (nscd_getnetgrent): Use it.
4038
4039         [BZ #16760]
4040         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
4041         of stpcpy.
4042
4043 2014-03-27  Andi Kleen  <ak@linux.intel.com>
4044
4045         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
4046         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4047         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4048         (lll_robust_unlock): Remove out of line section. Use cfi
4049         intrinsics.
4050         (LLL_STUB_UNWIND_INFO*): Remove.
4051         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
4052         (lll_robust_lock, lll_cond_lock, lll_timedlock)
4053         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
4054         (lll_robust_unlock): Remove out of line section. Use cfi
4055         intrinsics.
4056         (LLL_STUB_UNWIND_INFO*): Remove.
4057
4058 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
4059
4060         [BZ #16758]
4061         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
4062         blank values.
4063
4064 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
4065
4066         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
4067
4068 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
4069
4070         [BZ #16198]
4071         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
4072         fnstenv.
4073         * math/test-fenv-preserve.c: New file.
4074         * math/Makefile (tests): Add test-fenv-preserve.
4075
4076 2014-03-26  Will Newton <will.newton@linaro.org>
4077
4078         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
4079
4080 2014-03-25  Roland McGrath  <roland@hack.frob.com>
4081
4082         * scripts/versionlist.awk: Partition the version sets and emit all
4083         GLIBC_* (sorted) before all others (sorted).
4084
4085 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4086
4087         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
4088         GLIBC_2.2.5 version.
4089
4090 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4091
4092         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
4093         calls.
4094
4095         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
4096         previous change.
4097
4098         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4099
4100 2014-03-25  Andreas Schwab  <schwab@suse.de>
4101
4102         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
4103         label to be used after in6ailist is initialized.
4104
4105 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4106
4107         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
4108         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4109
4110 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
4111
4112         [BZ #16357]
4113         [BZ #16599]
4114         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
4115         min_plus_half.
4116         (fp_formats): Update initializers.
4117         (init_fp_formats): Initialize new field.
4118         (output_for_one_input_case): Allow underflow for results up to
4119         min_plus_half.
4120         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
4121         * math/auto-libm-test-in: Don't mark some underflows from asin and
4122         atanh as spurious.
4123         * math/auto-libm-test-out: Regenerated.
4124         * sysdeps/i386/fpu/libm-test-ulps: Update.
4125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4126
4127 2014-03-25  Andreas Schwab  <schwab@suse.de>
4128
4129         * libio/Makefile (tst-ftell-partial-wide-ENV)
4130         (tst-ftell-active-handler-ENV): Define.
4131
4132 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
4133
4134         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
4135
4136 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4137
4138         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
4139
4140 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4141
4142         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
4143         * sysdeps/x86_64/fpu/multiarch/e_exp.c
4144         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
4145
4146 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
4147
4148         [BZ #16634]
4149         * elf/dl-load.c (open_verify): Add mode parameter.
4150         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
4151         (open_path): Change from boolean 'secure' to complete flag 'mode'
4152         (_dl_map_object): Adjust.
4153         * elf/Makefile (tests): Add tst-dlopen-aout.
4154         * elf/tst-dlopen-aout.c: New test.
4155
4156 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
4157
4158         [BZ #16714]
4159         * sysdeps/unix/sysv/linux/s390/bits/stat.h
4160         (struct stat): Rename member pad0 to __glibc_reserved0.
4161
4162         [BZ #16712]
4163         * sysdeps/s390/s390-32/bits/wordsize.h
4164         (__WORDSIZE32_SIZE_ULONG): New define.
4165         * sysdeps/s390/s390-64/bits/wordsize.h
4166         (__WORDSIZE32_SIZE_ULONG): Likewise.
4167         * sysdeps/generic/stdint.h (SIZE_MAX):
4168         Define as UL if __WORDSIZE32_SIZE_ULONG.
4169
4170         [BZ #16713]
4171         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
4172         (__glibc_reserved0): New variable.
4173         (sa_flags): Change type to int.
4174
4175         * posix/Makefile (before-compile): Use += before-compile instead
4176         of a :=.
4177
4178         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
4179         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
4180
4181 2014-03-20  Andreas Schwab  <schwab@suse.de>
4182
4183         [BZ #16743]
4184         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
4185         non-matching result from nscd.
4186
4187 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4188
4189         * scripts/bench.py: Moved to ...
4190         * benchtests/scripts/bench.py: ... here.
4191         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
4192
4193 2014-03-24  Andreas Schwab  <schwab@suse.de>
4194
4195         [BZ #16002]
4196         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
4197         alloca_account and account alloca use for struct in6ailist.
4198
4199 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
4200
4201         [BZ #16284]
4202         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
4203         rounding mode to recompute results that overflow to infinity or
4204         underflow to zero.
4205         * math/auto-libm-test-in: Don't mark tests as expected to fail for
4206         bug 16284.
4207         * math/auto-libm-test-out: Regenerated.
4208         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
4209         (ccosh_test): Likewise.
4210         (csin_test_data): Use plus_oflow.
4211         (csin_test): Use ALL_RM_TEST.
4212         (csinh_test_data): Use plus_oflow.
4213         (csinh_test): Use ALL_RM_TEST.
4214         * sysdeps/i386/fpu/libm-test-ulps: Update.
4215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4216
4217 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
4218
4219         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
4220         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
4221         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
4222
4223         [BZ #16731]
4224         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
4225         when x - 1 is zero.
4226         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
4227         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
4228         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
4229         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
4230         argument is 1.
4231         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
4232         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
4233         zero.
4234         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
4235         * sysdeps/i386/fpu/libm-test-ulps: Update.
4236         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4237
4238 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4239
4240         * scripts/bench.pl: Remove file.
4241         * scripts/bench.py: New benchmark script.
4242         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
4243         * benchtests/README: Mention python dependency.
4244         * scripts/pylintrc: New file.
4245         * scripts/pylint: New file.
4246
4247         * bits/mathdef.h: Use #ifdef instead of #if.
4248         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
4249         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4250         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
4251         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4252         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
4253         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
4254
4255 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4256             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4257
4258         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
4259         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
4260         and strpbrk-ppc64 objects.
4261         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4262         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
4263         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
4264         multiarch strpbrk for POWER7.
4265         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
4266         multiarch strpbrk for PPC64.
4267         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
4268         ifunc selector.
4269         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
4270         strpbrk for POWER7.
4271
4272 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4273
4274         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
4275         (atan_test): Likewise.
4276         (atanh_test_data): Use NO_TEST_INLINE for two tests.
4277         (atanh_test): Use ALL_RM_TEST.
4278         (atan2_test_data): Likewise.
4279         (cabs_test): Likewise.
4280         (cacosh_test): Likewise.
4281         (carg_test): Likewise.
4282         (casin_test): Likewise.
4283         (casinh_test): Likewise.
4284         (cbrt_test): Likewise.
4285         (csqrt_test): Likewise.
4286         (erf_test): Likewise.
4287         (erfc_test): Likewise.
4288         (pow10_test): Likewise.
4289         (exp2_test): Likewise.
4290         (hypot_test): Likewise.
4291         (j0_test): Likewise.
4292         (j1_test): Likewise.
4293         (lgamma_test): Likewise.
4294         (gamma_test): Likewise.
4295         (sincos_test): Likewise.
4296         (tanh_test): Likewise.
4297         (y0_test): Likewise.
4298         (y1_test): Likewise.
4299         * sysdeps/i386/fpu/libm-test-ulps: Update.
4300         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4301
4302 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4303
4304         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
4305         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
4306         and strcspn-ppc64 objects.
4307         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4308         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
4309         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
4310         multiarch strcspn for POWER7.
4311         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
4312         multiarch strcspn for PPC64.
4313         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
4314         ifunc selector.
4315         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
4316         strcspn for POWER7.
4317
4318 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
4319
4320         * math/gen-libm-test.pl (generate_testfile): Expect only function
4321         name as argument to AUTO_TESTS_* and pass results for all rounding
4322         modes to parse_args.
4323         (parse_auto_input): Separate inputs of automatic tests from
4324         outputs before storing in %auto_tests.
4325         * math/libm-test.inc (acos_test_data): Update call to
4326         AUTO_TESTS_f_f.
4327         (acos_test): Use ALL_RM_TEST.
4328         (acos_tonearest_test_data): Remove.
4329         (acos_test_tonearest): Likewise.
4330         (acos_towardzero_test_data): Likewise.
4331         (acos_test_towardzero): Likewise.
4332         (acos_downward_test_data): Likewise.
4333         (acos_test_downward): Likewise.
4334         (acos_upward_test_data): Likewise.
4335         (acos_test_upward): Likewise.
4336         (acosh_test_data): Update call to AUTO_TESTS_f_f.
4337         (asin_test_data): Likewise.
4338         (asin_test): Use ALL_RM_TEST.
4339         (asin_tonearest_test_data): Remove.
4340         (asin_test_tonearest): Likewise.
4341         (asin_towardzero_test_data): Likewise.
4342         (asin_test_towardzero): Likewise.
4343         (asin_downward_test_data): Likewise.
4344         (asin_test_downward): Likewise.
4345         (asin_upward_test_data): Likewise.
4346         (asin_test_upward): Likewise.
4347         (asinh_test_data): Update call to AUTO_TESTS_f_f.
4348         (atan_test_data): Likewise.
4349         (atanh_test_data): Likewise.
4350         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
4351         (cabs_test_data): Update call to AUTO_TESTS_c_f.
4352         (carg_test_data): Likewise.
4353         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
4354         (ccos_test_data): Update call to AUTO_TESTS_c_c.
4355         (ccosh_test_data): Likewise.
4356         (cexp_test_data): Likewise.
4357         (clog_test_data): Likewise.
4358         (clog10_test_data): Likewise.
4359         (cos_test_data): Update call to AUTO_TESTS_f_f.
4360         (cos_test): Use ALL_RM_TEST.
4361         (cos_tonearest_test_data): Remove.
4362         (cos_test_tonearest): Likewise.
4363         (cos_towardzero_test_data): Likewise.
4364         (cos_test_towardzero): Likewise.
4365         (cos_downward_test_data): Likewise.
4366         (cos_test_downward): Likewise.
4367         (cos_upward_test_data): Likewise.
4368         (cos_test_upward): Likewise.
4369         (cosh_test_data): Update call to AUTO_TESTS_f_f.
4370         (cosh_test): Use ALL_RM_TEST.
4371         (cosh_tonearest_test_data): Remove.
4372         (cosh_test_tonearest): Likewise.
4373         (cosh_towardzero_test_data): Likewise.
4374         (cosh_test_towardzero): Likewise.
4375         (cosh_downward_test_data): Likewise.
4376         (cosh_test_downward): Likewise.
4377         (cosh_upward_test_data): Likewise.
4378         (cosh_test_upward): Likewise.
4379         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
4380         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
4381         (ctan_test_data): Likewise.
4382         (ctan_test): Use ALL_RM_TEST.
4383         (ctan_tonearest_test_data): Remove.
4384         (ctan_test_tonearest): Likewise.
4385         (ctan_towardzero_test_data): Likewise.
4386         (ctan_test_towardzero): Likewise.
4387         (ctan_downward_test_data): Likewise.
4388         (ctan_test_downward): Likewise.
4389         (ctan_upward_test_data): Likewise.
4390         (ctan_test_upward): Likewise.
4391         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
4392         (ctanh_test): Use ALL_RM_TEST.
4393         (ctanh_tonearest_test_data): Remove.
4394         (ctanh_test_tonearest): Likewise.
4395         (ctanh_towardzero_test_data): Likewise.
4396         (ctanh_test_towardzero): Likewise.
4397         (ctanh_downward_test_data): Likewise.
4398         (ctanh_test_downward): Likewise.
4399         (ctanh_upward_test_data): Likewise.
4400         (ctanh_test_upward): Likewise.
4401         (erf_test_data): Update call to AUTO_TESTS_f_f.
4402         (erfc_test_data): Likewise.
4403         (exp_test_data): Likewise.
4404         (exp_test): Use ALL_RM_TEST.
4405         (exp_tonearest_test_data): Remove.
4406         (exp_test_tonearest): Likewise.
4407         (exp_towardzero_test_data): Likewise.
4408         (exp_test_towardzero): Likewise.
4409         (exp_downward_test_data): Likewise.
4410         (exp_test_downward): Likewise.
4411         (exp_upward_test_data): Likewise.
4412         (exp_test_upward): Likewise.
4413         (exp10_test_data): Update call to AUTO_TESTS_f_f.
4414         (exp10_test): Use ALL_RM_TEST.
4415         (exp10_tonearest_test_data): Remove.
4416         (exp10_test_tonearest): Likewise.
4417         (exp10_towardzero_test_data): Likewise.
4418         (exp10_test_towardzero): Likewise.
4419         (exp10_downward_test_data): Likewise.
4420         (exp10_test_downward): Likewise.
4421         (exp10_upward_test_data): Likewise.
4422         (exp10_test_upward): Likewise.
4423         (exp2_test_data): Update call to AUTO_TESTS_f_f.
4424         (expm1_test_data): Likewise.
4425         (expm1_test): Use ALL_RM_TEST.
4426         (expm1_tonearest_test_data): Remove.
4427         (expm1_test_tonearest): Likewise.
4428         (expm1_towardzero_test_data): Likewise.
4429         (expm1_test_towardzero): Likewise.
4430         (expm1_downward_test_data): Likewise.
4431         (expm1_test_downward): Likewise.
4432         (expm1_upward_test_data): Likewise.
4433         (expm1_test_upward): Likewise.
4434         (fma_test_data): Update call to AUTO_TESTS_fff_f.
4435         (fma_test): Use ALL_RM_TEST.
4436         (fma_towardzero_test_data): Remove.
4437         (fma_test_towardzero): Likewise.
4438         (fma_downward_test_data): Likewise.
4439         (fma_test_downward): Likewise.
4440         (fma_upward_test_data): Likewise.
4441         (fma_test_upward): Likewise.
4442         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
4443         (j0_test_data): Update call to AUTO_TESTS_f_f.
4444         (j1_test_data): Likewise.
4445         (jn_test_data): Update call to AUTO_TESTS_if_f.
4446         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
4447         (log_test_data): Update call to AUTO_TESTS_f_f.
4448         (log10_test_data): Likewise.
4449         (log1p_test_data): Likewise.
4450         (log2_test_data): Likewise.
4451         (pow_test_data): Update call to AUTO_TESTS_ff_f.
4452         (pow_tonearest_test_data): Likewise.
4453         (sin_test_data): Update call to AUTO_TESTS_f_f.
4454         (sin_test): Use ALL_RM_TEST.
4455         (sin_tonearest_test_data): Remove.
4456         (sin_test_tonearest): Likewise.
4457         (sin_towardzero_test_data): Likewise.
4458         (sin_test_towardzero): Likewise.
4459         (sin_downward_test_data): Likewise.
4460         (sin_test_downward): Likewise.
4461         (sin_upward_test_data): Likewise.
4462         (sin_test_upward): Likewise.
4463         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
4464         (sinh_test_data): Update call to AUTO_TESTS_f_f.
4465         (sinh_test): Use ALL_RM_TEST.
4466         (sinh_tonearest_test_data): Remove.
4467         (sinh_test_tonearest): Likewise.
4468         (sinh_towardzero_test_data): Likewise.
4469         (sinh_test_towardzero): Likewise.
4470         (sinh_downward_test_data): Likewise.
4471         (sinh_test_downward): Likewise.
4472         (sinh_upward_test_data): Likewise.
4473         (sinh_test_upward): Likewise.
4474         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
4475         (sqrt_test): Use ALL_RM_TEST.
4476         (sqrt_tonearest_test_data): Remove.
4477         (sqrt_test_tonearest): Likewise.
4478         (sqrt_towardzero_test_data): Likewise.
4479         (sqrt_test_towardzero): Likewise.
4480         (sqrt_downward_test_data): Likewise.
4481         (sqrt_test_downward): Likewise.
4482         (sqrt_upward_test_data): Likewise.
4483         (sqrt_test_upward): Likewise.
4484         (tan_test_data): Update call to AUTO_TESTS_f_f.
4485         (tan_test): Use ALL_RM_TEST.
4486         (tan_tonearest_test_data): Remove.
4487         (tan_test_tonearest): Likewise.
4488         (tan_towardzero_test_data): Likewise.
4489         (tan_test_towardzero): Likewise.
4490         (tan_downward_test_data): Likewise.
4491         (tan_test_downward): Likewise.
4492         (tan_upward_test_data): Likewise.
4493         (tan_test_upward): Likewise.
4494         (tanh_test_data): Update call to AUTO_TESTS_f_f.
4495         (tgamma_test_data): Likewise.
4496         (y0_test_data): Likewise.
4497         (y1_test_data): Likewise.
4498         (yn_test_data): Update call to AUTO_TESTS_if_f.
4499         (main): Do not call removed functions.
4500
4501 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4502
4503         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
4504         (ldexp_test_data): Remove.
4505         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
4506         scalbn_test_data.
4507         (scalb_test): Use ALL_RM_TEST.
4508
4509 2014-03-19  Andreas Schwab  <schwab@suse.de>
4510
4511         * nscd/nscd.service: Also invalidate netgroup cache on reload.
4512
4513 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
4514
4515         [BZ #16649]
4516         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4517         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
4518         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
4519         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4520         (__ASSUME_PREADV): Undefine.
4521         (__ASSUME_PWRITEV): Likewise.
4522
4523 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4524
4525         * bits/mman-linux.h: Add comment about non-Linux use.
4526         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
4527         bits/mman-linux.h resting place.
4528
4529         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
4530         * bits/mman-linux.h: ... here.
4531
4532 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4533
4534         * conform/conformtest.pl: Add standard definition when calling C
4535         preprocessor on data files.
4536         (checknamespace): Remove unused variable.
4537
4538 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4539
4540         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
4541         minus_oflow, plus_uflow and minus_uflow in expected results.
4542         * math/libm-test.inc (scalbn_test_data): Add more tests of
4543         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
4544         minus_uflow.
4545         (scalbn_test): Use ALL_RM_TEST.
4546         (scalbln_test_data): Add more tests of negative arguments.  Use
4547         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
4548         (scalbln_test): Use ALL_RM_TEST.
4549
4550 2014-03-18  Roland McGrath  <roland@hack.frob.com>
4551
4552         * scripts/abilist.awk: Ignore symbols marked with .hidden.
4553
4554 2014-03-18  Will Newton  <will.newton@linaro.org>
4555
4556         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
4557         inaccurate comment.
4558
4559 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
4560
4561         * Makerules [!subdir] (check-abi): Exit with error status if a
4562         test failed.
4563
4564 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4565
4566         * math/libm-test.inc (nearbyint_test_data): Include all tests used
4567         for rint.  Include results for all rounding modes.
4568         (nearbyint_test): Use ALL_RM_TEST.
4569         (rint_test_data): Include all tests used for nearbyint.
4570
4571 2014-03-17  Will Newton  <will.newton@linaro.org>
4572
4573         * nptl/sysdeps/pthread/pthread.h: Revert previous
4574         change.
4575
4576         * sysdeps/generic/ldsodefs.h: Revert previous
4577         change.
4578
4579         * libio/genops.c: Revert previous change.
4580         * libio/libioP.h: Likewise.
4581         * stdio-common/vfprintf.c: Likewise.
4582
4583         * sysdeps/generic/math_private.h: Revert previous
4584         change.
4585
4586         * sysdeps/generic/math_private.h: Check whether
4587         HAVE_RM_CTX is defined with #ifdef rather
4588         than #if.
4589
4590         * argp/argp-fmtstream.h: Check whether
4591         __STRICT_ANSI__ is defined with #ifdef rather
4592         than #if.
4593         * argp/argp.h: Likewise.
4594
4595         * libio/genops.c: Check whether
4596         _IO_JUMPS_OFFSET is defined with #ifdef rather
4597         than #if.
4598         * libio/libioP.h: Likewise.
4599         * stdio-common/vfprintf.c: Likewise.
4600
4601         * sysdeps/generic/ldsodefs.h: Check whether
4602         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
4603         than #if.
4604
4605         * nptl/sysdeps/pthread/pthread.h: Check
4606         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
4607         its value.
4608
4609 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4610
4611         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
4612         setting O_APPEND.
4613         * libio/tst-ftell-active-handler.c (do_append_test): Add a
4614         test case.
4615
4616         [BZ #16680]
4617         * libio/fileops.c (_IO_file_open): Seek to end of file but
4618         don't cache the offset.
4619         (get_file_offset): Remove function.
4620         (do_ftell): Use cached offset when available.
4621         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
4622         don't cache the offset.
4623         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
4624         case.
4625         (do_one_test): Call it.
4626         (do_ftell_test): Fix up expected old offset for a+ mode.
4627         * libio/wfileops.c (do_ftell_wide): Used cached offset when
4628         available.
4629
4630         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
4631         up test status with function return status.
4632         (do_write_test): Likewise.
4633         (do_append_test): Likewise.
4634
4635         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
4636         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
4637         Remove.
4638
4639 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
4640
4641         * math/gen-libm-test.pl (parse_args): Handle results specified for
4642         each rounding mode separately.
4643         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
4644         tests and results from lrint_tonearest_test_data,
4645         lrint_towardzero_test_data, lrint_downward_test_data and
4646         lrint_upward_test_data.
4647         (lrint_test): Use ALL_RM_TEST.
4648         (lrint_tonearest_test_data): Remove.
4649         (lrint_test_tonearest): Likewise.
4650         (lrint_towardzero_test_data): Likewise.
4651         (lrint_test_towardzero): Likewise.
4652         (lrint_downward_test_data): Likewise.
4653         (lrint_test_downward): Likewise.
4654         (lrint_upward_test_data): Likewise.
4655         (lrint_test_upward): Likewise.
4656         (llrint_test_data): Merge in per-rounding-mode tests and results
4657         from llrint_tonearest_test_data, llrint_towardzero_test_data,
4658         llrint_downward_test_data and llrint_upward_test_data.
4659         (llrint_test): Use ALL_RM_TEST.
4660         (llrint_tonearest_test_data): Remove.
4661         (llrint_test_tonearest): Likewise.
4662         (llrint_towardzero_test_data): Likewise.
4663         (llrint_test_towardzero): Likewise.
4664         (llrint_downward_test_data): Likewise.
4665         (llrint_test_downward): Likewise.
4666         (llrint_upward_test_data): Likewise.
4667         (llrint_test_upward): Likewise.
4668         (rint_test_data): Merge in per-rounding-mode tests and results
4669         from rint_tonearest_test_data, rint_towardzero_test_data,
4670         rint_downward_test_data and rint_upward_test_data.  Add
4671         per-rounding-mode results for tests not in those arrays.
4672         (rint_test): Use ALL_RM_TEST.
4673         (rint_tonearest_test_data): Remove.
4674         (rint_test_tonearest): Likewise.
4675         (rint_towardzero_test_data): Likewise.
4676         (rint_test_towardzero): Likewise.
4677         (rint_downward_test_data): Likewise.
4678         (rint_test_downward): Likewise.
4679         (rint_upward_test_data): Likewise.
4680         (rint_test_upward): Likewise.
4681         (main): Don't call removed functions.
4682
4683 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4684
4685         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
4686         "Compiled on ..." crapola.  It is anti-useful.
4687
4688 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
4689
4690         * scripts/evaluate-test.sh: Handle fourth argument to determine
4691         whether test run should stop on failure.
4692         * Makeconfig (stop-on-test-failure): New variable.
4693         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
4694         $(stop-on-test-failure).
4695         * Makefile (tests): Give a summary of results from testing and
4696         exit with failure status if they include an ERROR or FAIL.
4697         (xtests): Likewise.
4698         * manual/install.texi (Configuring and compiling): Mention
4699         stop-on-test-failure=y.
4700         * INSTALL: Regenerated.
4701
4702 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4703
4704         * scripts/versionlist.awk: New file.
4705         * Makerules [$(build-shared) = yes]
4706         (postclean-generated): Add Versions.def, not Versions.def.v and
4707         Versions.def.v.i.
4708         ($(common-objpfx)Versions.def.v.i): Target removed.
4709         ($(common-objpfx)Versions.def): New target.
4710         ($(common-objpfx)Versions.all): Depend on that rather that
4711         $(common-objpfx)Versions.def.v.
4712         * Versions.def: File removed.
4713
4714         * Makeconfig (+gccwarn): Add -Wundef.
4715         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
4716         a dl-sysdep.h breaking its contract.
4717         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
4718         * include/stackinfo.h: New file.
4719         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
4720         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
4721         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
4722         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
4723         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
4724         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
4725         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4726         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4727         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4728         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4729         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4730         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
4731         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4732         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4733         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
4734
4735 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4736
4737         [BZ #16707]
4738         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
4739         implementation.
4740         * math/libm-test.inc (round_test_data): Add more tests.
4741
4742         [BZ #16706]
4743         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
4744         implementation.
4745         * math/libm-test.inc (nearbyint_test_data): Add more tests.
4746
4747         [BZ #16701]
4748         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
4749         implementation.
4750         * math/libm-test.inc (ceil_test_data): Add more tests.
4751
4752         * math/libm-test.inc (trunc_test_data): Add more tests related to
4753         BZ#16414.
4754
4755 2014-03-14  Roland McGrath  <roland@hack.frob.com>
4756
4757         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
4758         with #if rather than #ifdef.
4759         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
4760
4761 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
4762
4763         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
4764         first.  Disable AVX-512 GCC support if assembler doesn't support
4765         it.
4766         * sysdeps/x86_64/configure: Regenerated.
4767
4768 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
4769
4770         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
4771         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
4772         (__old_pthread_attr_setstack): Likewise.
4773         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
4774         [!_STACK_GROWS_DOWN]: Likewise.
4775
4776 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
4777
4778         * config.make.in (have-bash2): Delete.
4779         * configure.ac (libc_cv_have_bash2): Delete.
4780         * configure: Regenerate.
4781         * elf/Makefile (common-ldd-rewrite): Rename to ...
4782         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
4783         (sh-ldd-rewrite): Delete.
4784         (bash-ldd-rewrite): Delete.
4785         (have-bash2): Delete checks.
4786         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
4787         ldd-rewrite.
4788
4789         * config.make.in (have-ksh): Delete.
4790         (KSH): Delete.
4791         * configure.ac (libc_cv_have_ksh): Delete.
4792         * configure: Regenerate.
4793
4794         * elf/Makefile: Delete $(have-ksh) check.
4795         ($(objpfx)sotruss): Change KSH to BASH.
4796         * elf/sotruss.ksh: Rename to ...
4797         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
4798         function style to match POSIX.  Drop ksh vim mode setting.
4799
4800         * manual/time.texi (Specifying the Time Zone with TZ): Change
4801         Tuesday to Thursday.
4802
4803         * debug/tst-longjmp_chk2.c: Update header comment.
4804         (stackoverflow_handler): Add comment.  Call assert on pass value.
4805
4806 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
4807
4808         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
4809         (HAVE_AVX512_ASM_SUPPORT): Likewise.
4810         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
4811         (La_x86_64_vector): Add zmm.
4812         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
4813         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
4814         ($(objpfx)tst-audit10): New target.
4815         ($(objpfx)tst-audit10.out): Likewise.
4816         (tst-audit10-ENV): New.
4817         (AVX512-CFLAGS): Likewise.
4818         (CFLAGS-tst-audit10.c): Likewise.
4819         (CFLAGS-tst-auditmod10a.c): Likewise.
4820         (CFLAGS-tst-auditmod10b.c): Likewise.
4821         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
4822         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
4823         * sysdeps/x86_64/configure: Regenerated.
4824         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
4825         AVX-512 zmm register support.
4826         (_dl_x86_64_save_sse): Likewise.
4827         (_dl_x86_64_restore_sse): Likewise.
4828         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
4829         size vector registers.
4830         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
4831         (ZMM_SIZE): Likewise.
4832         * sysdeps/x86_64/tst-audit10.c: New file.
4833         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
4834         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
4835
4836 2014-03-13  Roland McGrath  <roland@hack.frob.com>
4837
4838         * configure.ac (HAVE_EHDR_START): New check.
4839         * configure: Regenerated.
4840         * config.h.in (HAVE_EHDR_START): New #undef.
4841         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
4842         assuming the lowest-addressed segment maps the start of the file.
4843
4844 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
4845
4846         * INSTALL: Regenerated.
4847
4848 2014-03-13  Will Newton  <will.newton@linaro.org>
4849
4850         * manual/setjmp.texi (System V contexts): Improve
4851         clarity and grammar of documentation.
4852
4853 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
4854
4855         [BZ #16381]
4856         * elf/Makefile (tests): Add tst-pie2.
4857         (tests-pie): Add tst-pie2.
4858         * elf/tst-pie2.c: New file.
4859         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
4860         for ET_EXEC.
4861         * elf/rtld.c (map_doit): Load executable as lt_executable.
4862         (dl_main): Likewise.
4863
4864 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
4865
4866         [BZ #16642]
4867         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4868         (__ASSUME_PSELECT): Undefine.
4869
4870 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4871
4872         [BZ #16689]
4873         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
4874         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
4875         static build.
4876         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
4877         selector for static builds.
4878
4879 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
4880
4881         [BZ #16695]
4882         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
4883         key in the buffer.
4884
4885 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4886
4887         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
4888         IFUNC selector for static builds.
4889
4890 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
4891
4892         * sysdeps/mips/math_private.h [__mips_hard_float]
4893         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
4894         libc_feresetround_mips_ctx.
4895         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
4896         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
4897         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
4898
4899         [BZ #16677]
4900         * math/s_nextafter.c (__nextafter): Do not return value from
4901         overflowing computation.
4902         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
4903         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
4904         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
4905         Likewise.
4906         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
4907         Likewise.
4908         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
4909         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
4910
4911 2014-03-11  Roland McGrath  <roland@hack.frob.com>
4912
4913         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
4914         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
4915         Move sfi_sp use from the load-multiple (that no longer sets sp) to
4916         the new mov targetting sp.
4917
4918 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4919
4920         [BZ #16683]
4921         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
4922         Define it for static builds as well.
4923         (NO_BZERO_IMPL): Likewise.
4924
4925 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4926
4927         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
4928         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
4929         multiarch strspn for PPC64.
4930         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
4931         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
4932         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4933         (__libc_ifunc_impl_list): Likewise.
4934         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
4935         multiarch optimizations
4936         * string/strspn.c (strspn): Using macro to redefine symbol name.
4937
4938 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
4939             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4940
4941         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
4942         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
4943         multiarch strncat for PPC64.
4944         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
4945         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
4946         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
4947         (__libc_ifunc_impl_list): Likewise.
4948         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
4949         multiarch optimizations
4950
4951 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4952
4953         [BZ #16639]
4954         * nscd/nscd.service: Make service type forking.
4955
4956 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4957
4958         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
4959         sign in non default rounding modes.
4960         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
4961
4962 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
4963
4964         * math/libm-test.inc (ALL_RM_TEST): New macro.
4965         (ceil_test): Use ALL_RM_TEST.
4966         (cimag_test): Likewise.
4967         (conj_test): Likewise.
4968         (copysign_test): Likewise.
4969         (cproj_test): Likewise.
4970         (creal_test): Likewise.
4971         (fabs_test): Likewise.
4972         (floor_test): Likewise.
4973         (fmax_test): Likewise.
4974         (fmin_test): Likewise.
4975         (fmod_test): Likewise.
4976         (fpclassify_test): Likewise.
4977         (frexp_test): Likewise.
4978         (ilogb_test): Likewise.
4979         (isfinite_test): Likewise.
4980         (finite_test): Likewise.
4981         (isgreater_test): Likewise.
4982         (isgreaterequal_test): Likewise.
4983         (isinf_test): Likewise.
4984         (isless_test): Likewise.
4985         (islessequal_test): Likewise.
4986         (islessgreater_test): Likewise.
4987         (isnan_test): Likewise.
4988         (isnormal_test): Likewise.
4989         (issignaling_test): Likewise.
4990         (isunordered_test): Likewise.
4991         (logb_test): Likewise.
4992         (logb_downward_test_data): Remove.
4993         (logb_test_downward): Likewise.
4994         (lround_test): Use ALL_RM_TEST.
4995         (llround_test): Likewise.
4996         (modf_test): Likewise.
4997         (nexttoward_test): Likewise.
4998         (remainder_test): Likewise.
4999         (drem_test): Likewise.
5000         (remainder_tonearest_test_data): Likewise.
5001         (remainder_test_tonearest): Likewise.
5002         (drem_test_tonearest): Likewise.
5003         (remainder_towardzero_test_data): Likewise.
5004         (remainder_test_towardzero): Likewise.
5005         (drem_test_towardzero): Likewise.
5006         (remainder_downward_test_data): Likewise.
5007         (remainder_test_downward): Likewise.
5008         (drem_test_downward): Likewise.
5009         (remainder_upward_test_data): Likewise.
5010         (remainder_test_upward): Likewise.
5011         (drem_test_upward): Likewise.
5012         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
5013         (round_test): Use ALL_RM_TEST.
5014         (signbit_test): Likewise.
5015         (trunc_test): Likewise.
5016         (significand_test): Likewise.
5017         (main): Don't call removed functions.
5018
5019 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5020
5021         [BZ #16674]
5022         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
5023         || __USE_XOPEN2K8].
5024         (ILL_ILLOPN): Likewise.
5025         (ILL_ILLADR): Likewise.
5026         (ILL_ILLTRP): Likewise.
5027         (ILL_PRVOPC): Likewise.
5028         (ILL_PRVREG): Likewise.
5029         (ILL_COPROC): Likewise.
5030         (ILL_BADSTK): Likewise.
5031         (FPE_INTDIV): Likewise.
5032         (FPE_INTOVF): Likewise.
5033         (FPE_FLTDIV): Likewise.
5034         (FPE_FLTOVF): Likewise.
5035         (FPE_FLTUND): Likewise.
5036         (FPE_FLTRES): Likewise.
5037         (FPE_FLTINV): Likewise.
5038         (FPE_FLTSUB): Likewise.
5039         (SEGV_MAPERR): Likewise.
5040         (SEGV_ACCERR): Likewise.
5041         (BUS_ADRALN): Likewise.
5042         (BUS_ADRERR): Likewise.
5043         (BUS_OBJERR): Likewise.
5044         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5045         (TRAP_TRACE): Likewise.
5046         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5047         __USE_XOPEN2K8].
5048         (CLD_KILLED): Likewise.
5049         (CLD_DUMPED): Likewise.
5050         (CLD_TRAPPED): Likewise.
5051         (CLD_STOPPED): Likewise.
5052         (CLD_CONTINUED): Likewise.
5053         (POLL_IN): Likewise.
5054         (POLL_OUT): Likewise.
5055         (POLL_MSG): Likewise.
5056         (POLL_ERR): Likewise.
5057         (POLL_PRI): Likewise.
5058         (POLL_HUP): Likewise.
5059         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
5060         Likewise.
5061         (ILL_ILLOPN): Likewise.
5062         (ILL_ILLADR): Likewise.
5063         (ILL_ILLTRP): Likewise.
5064         (ILL_PRVOPC): Likewise.
5065         (ILL_PRVREG): Likewise.
5066         (ILL_COPROC): Likewise.
5067         (ILL_BADSTK): Likewise.
5068         (FPE_INTDIV): Likewise.
5069         (FPE_INTOVF): Likewise.
5070         (FPE_FLTDIV): Likewise.
5071         (FPE_FLTOVF): Likewise.
5072         (FPE_FLTUND): Likewise.
5073         (FPE_FLTRES): Likewise.
5074         (FPE_FLTINV): Likewise.
5075         (FPE_FLTSUB): Likewise.
5076         (SEGV_MAPERR): Likewise.
5077         (SEGV_ACCERR): Likewise.
5078         (BUS_ADRALN): Likewise.
5079         (BUS_ADRERR): Likewise.
5080         (BUS_OBJERR): Likewise.
5081         (BUS_MCEERR_AR): Likewise.
5082         (BUS_MCEERR_AO): Likewise.
5083         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5084         (TRAP_TRACE): Likewise.
5085         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5086         __USE_XOPEN2K8].
5087         (CLD_KILLED): Likewise.
5088         (CLD_DUMPED): Likewise.
5089         (CLD_TRAPPED): Likewise.
5090         (CLD_STOPPED): Likewise.
5091         (CLD_CONTINUED): Likewise.
5092         (POLL_IN): Likewise.
5093         (POLL_OUT): Likewise.
5094         (POLL_MSG): Likewise.
5095         (POLL_ERR): Likewise.
5096         (POLL_PRI): Likewise.
5097         (POLL_HUP): Likewise.
5098         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
5099         (ILL_ILLOPN): Likewise.
5100         (ILL_ILLADR): Likewise.
5101         (ILL_ILLTRP): Likewise.
5102         (ILL_PRVOPC): Likewise.
5103         (ILL_PRVREG): Likewise.
5104         (ILL_COPROC): Likewise.
5105         (ILL_BADSTK): Likewise.
5106         (FPE_INTDIV): Likewise.
5107         (FPE_INTOVF): Likewise.
5108         (FPE_FLTDIV): Likewise.
5109         (FPE_FLTOVF): Likewise.
5110         (FPE_FLTUND): Likewise.
5111         (FPE_FLTRES): Likewise.
5112         (FPE_FLTINV): Likewise.
5113         (FPE_FLTSUB): Likewise.
5114         (SEGV_MAPERR): Likewise.
5115         (SEGV_ACCERR): Likewise.
5116         (BUS_ADRALN): Likewise.
5117         (BUS_ADRERR): Likewise.
5118         (BUS_OBJERR): Likewise.
5119         (BUS_MCEERR_AR): Likewise.
5120         (BUS_MCEERR_AO): Likewise.
5121         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5122         (TRAP_TRACE): Likewise.
5123         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5124         __USE_XOPEN2K8].
5125         (CLD_KILLED): Likewise.
5126         (CLD_DUMPED): Likewise.
5127         (CLD_TRAPPED): Likewise.
5128         (CLD_STOPPED): Likewise.
5129         (CLD_CONTINUED): Likewise.
5130         (POLL_IN): Likewise.
5131         (POLL_OUT): Likewise.
5132         (POLL_MSG): Likewise.
5133         (POLL_ERR): Likewise.
5134         (POLL_PRI): Likewise.
5135         (POLL_HUP): Likewise.
5136         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
5137         Likewise.
5138         (ILL_ILLOPN): Likewise.
5139         (ILL_ILLADR): Likewise.
5140         (ILL_ILLTRP): Likewise.
5141         (ILL_PRVOPC): Likewise.
5142         (ILL_PRVREG): Likewise.
5143         (ILL_COPROC): Likewise.
5144         (ILL_BADSTK): Likewise.
5145         (ILL_BADIADDR): Likewise.
5146         (ILL_BREAK): Likewise.
5147         (FPE_INTDIV): Likewise.
5148         (FPE_INTOVF): Likewise.
5149         (FPE_FLTDIV): Likewise.
5150         (FPE_FLTOVF): Likewise.
5151         (FPE_FLTUND): Likewise.
5152         (FPE_FLTRES): Likewise.
5153         (FPE_FLTINV): Likewise.
5154         (FPE_FLTSUB): Likewise.
5155         (FPE_DECOVF): Likewise.
5156         (FPE_DECDIV): Likewise.
5157         (FPE_DECERR): Likewise.
5158         (FPE_INVASC): Likewise.
5159         (FPE_INVDEC): Likewise.
5160         (SEGV_MAPERR): Likewise.
5161         (SEGV_ACCERR): Likewise.
5162         (SEGV_PSTKOVF): Likewise.
5163         (BUS_ADRALN): Likewise.
5164         (BUS_ADRERR): Likewise.
5165         (BUS_OBJERR): Likewise.
5166         (BUS_MCEERR_AR): Likewise.
5167         (BUS_MCEERR_AO): Likewise.
5168         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5169         (TRAP_TRACE): Likewise.
5170         (TRAP_BRANCH): Likewise.
5171         (TRAP_HWBKPT): Likewise.
5172         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5173         __USE_XOPEN2K8].
5174         (CLD_KILLED): Likewise.
5175         (CLD_DUMPED): Likewise.
5176         (CLD_TRAPPED): Likewise.
5177         (CLD_STOPPED): Likewise.
5178         (CLD_CONTINUED): Likewise.
5179         (POLL_IN): Likewise.
5180         (POLL_OUT): Likewise.
5181         (POLL_MSG): Likewise.
5182         (POLL_ERR): Likewise.
5183         (POLL_PRI): Likewise.
5184         (POLL_HUP): Likewise.
5185         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
5186         (ILL_ILLOPN): Likewise.
5187         (ILL_ILLADR): Likewise.
5188         (ILL_ILLTRP): Likewise.
5189         (ILL_PRVOPC): Likewise.
5190         (ILL_PRVREG): Likewise.
5191         (ILL_COPROC): Likewise.
5192         (ILL_BADSTK): Likewise.
5193         (FPE_INTDIV): Likewise.
5194         (FPE_INTOVF): Likewise.
5195         (FPE_FLTDIV): Likewise.
5196         (FPE_FLTOVF): Likewise.
5197         (FPE_FLTUND): Likewise.
5198         (FPE_FLTRES): Likewise.
5199         (FPE_FLTINV): Likewise.
5200         (FPE_FLTSUB): Likewise.
5201         (SEGV_MAPERR): Likewise.
5202         (SEGV_ACCERR): Likewise.
5203         (BUS_ADRALN): Likewise.
5204         (BUS_ADRERR): Likewise.
5205         (BUS_OBJERR): Likewise.
5206         (BUS_MCEERR_AR): Likewise.
5207         (BUS_MCEERR_AO): Likewise.
5208         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5209         (TRAP_TRACE): Likewise.
5210         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5211         __USE_XOPEN2K8].
5212         (CLD_KILLED): Likewise.
5213         (CLD_DUMPED): Likewise.
5214         (CLD_TRAPPED): Likewise.
5215         (CLD_STOPPED): Likewise.
5216         (CLD_CONTINUED): Likewise.
5217         (POLL_IN): Likewise.
5218         (POLL_OUT): Likewise.
5219         (POLL_MSG): Likewise.
5220         (POLL_ERR): Likewise.
5221         (POLL_PRI): Likewise.
5222         (POLL_HUP): Likewise.
5223         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
5224         (ILL_ILLOPN): Likewise.
5225         (ILL_ILLADR): Likewise.
5226         (ILL_ILLTRP): Likewise.
5227         (ILL_PRVOPC): Likewise.
5228         (ILL_PRVREG): Likewise.
5229         (ILL_COPROC): Likewise.
5230         (ILL_BADSTK): Likewise.
5231         (FPE_INTDIV): Likewise.
5232         (FPE_INTOVF): Likewise.
5233         (FPE_FLTDIV): Likewise.
5234         (FPE_FLTOVF): Likewise.
5235         (FPE_FLTUND): Likewise.
5236         (FPE_FLTRES): Likewise.
5237         (FPE_FLTINV): Likewise.
5238         (FPE_FLTSUB): Likewise.
5239         (SEGV_MAPERR): Likewise.
5240         (SEGV_ACCERR): Likewise.
5241         (BUS_ADRALN): Likewise.
5242         (BUS_ADRERR): Likewise.
5243         (BUS_OBJERR): Likewise.
5244         (BUS_MCEERR_AR): Likewise.
5245         (BUS_MCEERR_AO): Likewise.
5246         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5247         (TRAP_TRACE): Likewise.
5248         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5249         __USE_XOPEN2K8].
5250         (CLD_KILLED): Likewise.
5251         (CLD_DUMPED): Likewise.
5252         (CLD_TRAPPED): Likewise.
5253         (CLD_STOPPED): Likewise.
5254         (CLD_CONTINUED): Likewise.
5255         (POLL_IN): Likewise.
5256         (POLL_OUT): Likewise.
5257         (POLL_MSG): Likewise.
5258         (POLL_ERR): Likewise.
5259         (POLL_PRI): Likewise.
5260         (POLL_HUP): Likewise.
5261         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
5262         (ILL_ILLOPN): Likewise.
5263         (ILL_ILLADR): Likewise.
5264         (ILL_ILLTRP): Likewise.
5265         (ILL_PRVOPC): Likewise.
5266         (ILL_PRVREG): Likewise.
5267         (ILL_COPROC): Likewise.
5268         (ILL_BADSTK): Likewise.
5269         (FPE_INTDIV): Likewise.
5270         (FPE_INTOVF): Likewise.
5271         (FPE_FLTDIV): Likewise.
5272         (FPE_FLTOVF): Likewise.
5273         (FPE_FLTUND): Likewise.
5274         (FPE_FLTRES): Likewise.
5275         (FPE_FLTINV): Likewise.
5276         (FPE_FLTSUB): Likewise.
5277         (SEGV_MAPERR): Likewise.
5278         (SEGV_ACCERR): Likewise.
5279         (BUS_ADRALN): Likewise.
5280         (BUS_ADRERR): Likewise.
5281         (BUS_OBJERR): Likewise.
5282         (BUS_MCEERR_AR): Likewise.
5283         (BUS_MCEERR_AO): Likewise.
5284         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5285         (TRAP_TRACE): Likewise.
5286         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5287         __USE_XOPEN2K8].
5288         (CLD_KILLED): Likewise.
5289         (CLD_DUMPED): Likewise.
5290         (CLD_TRAPPED): Likewise.
5291         (CLD_STOPPED): Likewise.
5292         (CLD_CONTINUED): Likewise.
5293         (POLL_IN): Likewise.
5294         (POLL_OUT): Likewise.
5295         (POLL_MSG): Likewise.
5296         (POLL_ERR): Likewise.
5297         (POLL_PRI): Likewise.
5298         (POLL_HUP): Likewise.
5299         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
5300         (ILL_ILLOPN): Likewise.
5301         (ILL_ILLADR): Likewise.
5302         (ILL_ILLTRP): Likewise.
5303         (ILL_PRVOPC): Likewise.
5304         (ILL_PRVREG): Likewise.
5305         (ILL_COPROC): Likewise.
5306         (ILL_BADSTK): Likewise.
5307         (ILL_DBLFLT): Likewise.
5308         (ILL_HARDWALL): Likewise.
5309         (FPE_INTDIV): Likewise.
5310         (FPE_INTOVF): Likewise.
5311         (FPE_FLTDIV): Likewise.
5312         (FPE_FLTOVF): Likewise.
5313         (FPE_FLTUND): Likewise.
5314         (FPE_FLTRES): Likewise.
5315         (FPE_FLTINV): Likewise.
5316         (FPE_FLTSUB): Likewise.
5317         (SEGV_MAPERR): Likewise.
5318         (SEGV_ACCERR): Likewise.
5319         (BUS_ADRALN): Likewise.
5320         (BUS_ADRERR): Likewise.
5321         (BUS_OBJERR): Likewise.
5322         (BUS_MCEERR_AR): Likewise.
5323         (BUS_MCEERR_AO): Likewise.
5324         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5325         (TRAP_TRACE): Likewise.
5326         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5327         __USE_XOPEN2K8].
5328         (CLD_KILLED): Likewise.
5329         (CLD_DUMPED): Likewise.
5330         (CLD_TRAPPED): Likewise.
5331         (CLD_STOPPED): Likewise.
5332         (CLD_CONTINUED): Likewise.
5333         (POLL_IN): Likewise.
5334         (POLL_OUT): Likewise.
5335         (POLL_MSG): Likewise.
5336         (POLL_ERR): Likewise.
5337         (POLL_PRI): Likewise.
5338         (POLL_HUP): Likewise.
5339         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
5340         (ILL_ILLOPN): Likewise.
5341         (ILL_ILLADR): Likewise.
5342         (ILL_ILLTRP): Likewise.
5343         (ILL_PRVOPC): Likewise.
5344         (ILL_PRVREG): Likewise.
5345         (ILL_COPROC): Likewise.
5346         (ILL_BADSTK): Likewise.
5347         (FPE_INTDIV): Likewise.
5348         (FPE_INTOVF): Likewise.
5349         (FPE_FLTDIV): Likewise.
5350         (FPE_FLTOVF): Likewise.
5351         (FPE_FLTUND): Likewise.
5352         (FPE_FLTRES): Likewise.
5353         (FPE_FLTINV): Likewise.
5354         (FPE_FLTSUB): Likewise.
5355         (SEGV_MAPERR): Likewise.
5356         (SEGV_ACCERR): Likewise.
5357         (BUS_ADRALN): Likewise.
5358         (BUS_ADRERR): Likewise.
5359         (BUS_OBJERR): Likewise.
5360         (BUS_MCEERR_AR): Likewise.
5361         (BUS_MCEERR_AO): Likewise.
5362         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
5363         (TRAP_TRACE): Likewise.
5364         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
5365         __USE_XOPEN2K8].
5366         (CLD_KILLED): Likewise.
5367         (CLD_DUMPED): Likewise.
5368         (CLD_TRAPPED): Likewise.
5369         (CLD_STOPPED): Likewise.
5370         (CLD_CONTINUED): Likewise.
5371         (POLL_IN): Likewise.
5372         (POLL_OUT): Likewise.
5373         (POLL_MSG): Likewise.
5374         (POLL_ERR): Likewise.
5375         (POLL_PRI): Likewise.
5376         (POLL_HUP): Likewise.
5377         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
5378         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5379
5380         [BZ #16670]
5381         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
5382         before #include of <time.h>.
5383         [!__USE_XOPEN2K] (__need_timespec): Likewise.
5384         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
5385         (test-xfail-UNIX98/sched.h/conform): Likewise.
5386
5387 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5388
5389         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
5390         error absence of trapping exception support.
5391         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
5392
5393 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
5394
5395         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
5396         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
5397         * timezone/Makefile (testdata): Move definition above include of
5398         Rules.
5399         (test-zones): New variable.
5400         (tests-special): Add zone files.
5401         (build-testdata): Use $(evaluate-test).
5402
5403         * elf/Makefile (tests-special): Rename tests to end with .out.
5404         ($(objpfx)noload-mem): Likewise.
5405         ($(objpfx)tst-leaks1-mem): Likewise.
5406         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
5407         * iconv/Makefile (xtests-special): Change test-iconvconfig to
5408         $(objpfx)test-iconvconfig.out.
5409         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
5410         set -e inside subshell and redirect output to file.
5411         * iconvdata/Makefile (generated): Rename tests to end with .out.
5412         Correct type.
5413         (tests-special): Rename tests to end with .out.
5414         ($(objpfx)mtrace-tst-loading): Likewise.
5415         * intl/Makefile (generated): Likewise.
5416         (tests-special): Likewise.
5417         ($(objpfx)mtrace-tst-gettext): Likewise.
5418         * misc/Makefile (generated): Likewise.
5419         (tests-special): Likewise.
5420         ($(objpfx)tst-error1-mem): Likewise.
5421         * nptl/Makefile (tests-special): Likewise.
5422         ($(objpfx)tst-stack3-mem): Likewise.
5423         (generated): Likewise.
5424         * posix/Makefile (generated): Likewise.
5425         (tests-special): Likewise.
5426         (xtests-special): Likewise.
5427         ($(objpfx)tst-fnmatch-mem): Likewise.
5428         ($(objpfx)bug-regex2-mem): Likewise.
5429         ($(objpfx)bug-regex14-mem): Likewise.
5430         ($(objpfx)bug-regex21-mem): Likewise.
5431         ($(objpfx)bug-regex31-mem): Likewise.
5432         ($(objpfx)tst-vfork3-mem): Likewise.
5433         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
5434         ($(objpfx)tst-pcre-mem): Likewise.
5435         ($(objpfx)tst-boost-mem): Likewise.
5436         ($(objpfx)bug-ga2-mem): Likewise.
5437         ($(objpfx)bug-glob2-mem): Likewise.
5438         * resolv/Makefile (generate): Likewise.
5439         (tests-special): Likewise.
5440         (xtests-special): Likewise.
5441         (generated): Likewise.
5442         ($(objpfx)mtrace-tst-leaks): Likewise.
5443         ($(objpfx)mtrace-tst-leaks2): Likewise.
5444
5445         * scripts/merge-test-results.sh: New file.
5446         * Makefile (tests-special-notdir): New variable.
5447         (tests): Run merge-test-results.sh.
5448         (xtests): Likewise.
5449         * Rules (tests-special-notdir): New variable.
5450         (xtests-special-notdir): Likewise.
5451         (tests): Run merge-test-results.sh
5452         (xtests): Likewise.
5453
5454         * Makeconfig (test-xfail-name): New variable.
5455         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
5456         compute variable name for expected failures.
5457         * conform/Makefile (conformtest-headers-data): New variable.
5458         (conformtest-standards): Likewise.
5459         (conformtest-headers-ISO): Likewise.
5460         (conformtest-headers-ISO99): Likewise.
5461         (conformtest-headers-ISO11): Likewise.
5462         (conformtest-headers-POSIX): Likewise.
5463         (conformtest-headers-XPG3): Likewise.
5464         (conformtest-headers-XPG4): Likewise.
5465         (conformtest-headers-UNIX98): Likewise.
5466         (conformtest-headers-XOPEN2K): Likewise.
5467         (conformtest-headers-POSIX2008): Likewise.
5468         (conformtest-headers-XOPEN2K8): Likewise.
5469         (conformtest-header-list-base): Likewise.
5470         (conformtest-header-list-tests): Likewise.
5471         (conformtest-header-base): Likewise.
5472         (conformtest-header-tests): Likewise.
5473         (tests-special): Add $(conformtest-header-list-tests).  If
5474         [$(fast-check) && !$(cross-compiling)], add
5475         $(conformtest-header-tests) instead of
5476         $(objpfx)run-conformtest.out.
5477         (generated): Add $(conformtest-header-list-base).  If
5478         [$(fast-check) && !$(cross-compiling)], add
5479         $(conformtest-header-base).  Remove previous setting.
5480         ($(conformtest-header-list-tests)): New target.
5481         (test-xfail-run-conformtest): Remove variable.
5482         ($(objpfx)run-conformtest.out): Remove target.
5483         (test-xfail-ISO11/complex.h/conform): New variable.
5484         (test-xfail-ISO11/stdalign.h/conform): Likewise.
5485         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
5486         (test-xfail-XPG3/varargs.h/conform): Likewise.
5487         (test-xfail-XPG4/varargs.h/conform): Likewise.
5488         (test-xfail-UNIX98/varargs.h/conform): Likewise.
5489         (test-xfail-XPG4/ndbm.h/conform): Likewise.
5490         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
5491         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
5492         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
5493         (test-xfail-XPG3/fcntl.h/conform): Likewise.
5494         (test-xfail-XPG3/ftw.h/conform): Likewise.
5495         (test-xfail-XPG3/grp.h/conform): Likewise.
5496         (test-xfail-XPG3/langinfo.h/conform): Likewise.
5497         (test-xfail-XPG3/limits.h/conform): Likewise.
5498         (test-xfail-XPG3/pwd.h/conform): Likewise.
5499         (test-xfail-XPG3/search.h/conform): Likewise.
5500         (test-xfail-XPG3/signal.h/conform): Likewise.
5501         (test-xfail-XPG3/stdio.h/conform): Likewise.
5502         (test-xfail-XPG3/stdlib.h/conform): Likewise.
5503         (test-xfail-XPG3/string.h/conform): Likewise.
5504         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
5505         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
5506         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
5507         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
5508         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
5509         (test-xfail-XPG3/sys/types.h/conform): Likewise.
5510         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
5511         (test-xfail-XPG3/termios.h/conform): Likewise.
5512         (test-xfail-XPG3/time.h/conform): Likewise.
5513         (test-xfail-XPG3/unistd.h/conform): Likewise.
5514         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
5515         (test-xfail-XPG4/fcntl.h/conform): Likewise.
5516         (test-xfail-XPG4/langinfo.h/conform): Likewise.
5517         (test-xfail-XPG4/netdb.h/conform): Likewise.
5518         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
5519         (test-xfail-XPG4/signal.h/conform): Likewise.
5520         (test-xfail-XPG4/stdio.h/conform): Likewise.
5521         (test-xfail-XPG4/stdlib.h/conform): Likewise.
5522         (test-xfail-XPG4/stropts.h/conform): Likewise.
5523         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
5524         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
5525         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
5526         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
5527         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
5528         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
5529         (test-xfail-XPG4/sys/time.h/conform): Likewise.
5530         (test-xfail-XPG4/sys/types.h/conform): Likewise.
5531         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
5532         (test-xfail-XPG4/termios.h/conform): Likewise.
5533         (test-xfail-XPG4/ucontext.h/conform): Likewise.
5534         (test-xfail-XPG4/unistd.h/conform): Likewise.
5535         (test-xfail-XPG4/utmpx.h/conform): Likewise.
5536         (test-xfail-POSIX/sched.h/conform): Likewise.
5537         (test-xfail-POSIX/signal.h/conform): Likewise.
5538         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
5539         (test-xfail-POSIX/tar.h/conform): Likewise.
5540         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
5541         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
5542         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
5543         (test-xfail-UNIX98/netdb.h/conform): Likewise.
5544         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
5545         (test-xfail-UNIX98/sched.h/conform): Likewise.
5546         (test-xfail-UNIX98/signal.h/conform): Likewise.
5547         (test-xfail-UNIX98/stdio.h/conform): Likewise.
5548         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
5549         (test-xfail-UNIX98/stropts.h/conform): Likewise.
5550         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
5551         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
5552         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
5553         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
5554         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
5555         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
5556         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5557         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5558         (test-xfail-UNIX98/unistd.h/conform): Likewise.
5559         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
5560         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
5561         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
5562         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
5563         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
5564         (test-xfail-XOPEN2K/math.h/conform): Likewise.
5565         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
5566         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
5567         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
5568         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
5569         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5570         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
5571         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
5572         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
5573         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
5574         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
5575         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
5576         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
5577         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
5578         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5579         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
5580         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
5581         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5582         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
5583         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
5584         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
5585         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
5586         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
5587         (test-xfail-POSIX2008/signal.h/conform): Likewise.
5588         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
5589         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
5590         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5591         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
5592         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
5593         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
5594         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
5595         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
5596         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
5597         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5598         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
5599         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
5600         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
5601         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
5602         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
5603         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
5604         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
5605         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
5606         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
5607         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5608         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
5609         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
5610         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
5611         (conformtest-cc-flags): Likewise.
5612         ($(conformtest-header-tests): New target.
5613         * conform/check-header-lists.sh: New file.
5614         * conform/run-conformtest.sh: Remove.
5615
5616         * conform/conformtest.pl: Allow ' and \ in values given for
5617         constants.
5618         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
5619         inclusion.
5620         [POSIX] (sys/types.h): Likewise.
5621         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
5622         inclusion.
5623         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
5624         inclusion.
5625         * conform/data/signal.h-data (SIGIO): Remove expectation.
5626         [XPG3] (SIGBUS): Do not expect.
5627         [POSIX || XPG3] (SIGPOLL): Likewise.
5628         [POSIX || XPG3] (SIGPROF): Likewise.
5629         [POSIX || XPG3] (SIGSYS): Likewise.
5630         [XPG3] (SIGTRAP): Likewise.
5631         [POSIX || XPG3] (SIGURG): Likewise.
5632         [POSIX || XPG3] (SIGVTALRM): Likewise.
5633         [POSIX || XPG3] (SIGXCPU): Likewise.
5634         [POSIX || XPG3] (SIGXFSZ): Likewise.
5635         [POSIX] (SA_SIGINFO): Expect.
5636         [XPG3] (siginfo_t): Do not expect type or contents.
5637         [POSIX] (si_pid): Do not expect element.
5638         [POSIX] (si_uid): Likewise.
5639         [POSIX] (si_addr): Likewise.
5640         [POSIX] (si_status): Likewise.
5641         [POSIX] (si_band): Likewise.
5642         [XPG4] (si_value): Likewise.
5643         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
5644         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
5645         [POSIX || XPG3] (ILL_ILLADR): Likewise.
5646         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
5647         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
5648         [POSIX || XPG3] (ILL_PRVREG): Likewise.
5649         [POSIX || XPG3] (ILL_COPROC): Likewise.
5650         [POSIX || XPG3] (ILL_BADSTK): Likewise.
5651         [POSIX || XPG3] (FPE_INTDIV): Likewise.
5652         [POSIX || XPG3] (FPE_INTOVF): Likewise.
5653         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
5654         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
5655         [POSIX || XPG3] (FPE_FLTUND): Likewise.
5656         [POSIX || XPG3] (FPE_FLTRES): Likewise.
5657         [POSIX || XPG3] (FPE_FLTINV): Likewise.
5658         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
5659         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
5660         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
5661         [POSIX || XPG3] (BUS_ADRALN): Likewise.
5662         [POSIX || XPG3] (BUS_ADRERR): Likewise.
5663         [POSIX || XPG3] (BUS_OBJERR): Likewise.
5664         [POSIX || XPG3] (CLD_EXITED): Likewise.
5665         [POSIX || XPG3] (CLD_KILLED): Likewise.
5666         [POSIX || XPG3] (CLD_DUMPED): Likewise.
5667         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
5668         [POSIX || XPG3] (CLD_STOPPED): Likewise.
5669         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
5670         [POSIX || XPG3] (POLL_IN): Likewise.
5671         [POSIX || XPG3] (POLL_OUT): Likewise.
5672         [POSIX || XPG3] (POLL_MSG): Likewise.
5673         [POSIX || XPG3] (POLL_ERR): Likewise.
5674         [POSIX || XPG3] (POLL_PRI): Likewise.
5675         [POSIX || XPG3] (POLL_HUP): Likewise.
5676         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
5677         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
5678         (SIG*): Do not allow.
5679         [XPG3] (si_*): Likewise.
5680         [XPG3] (SI_*): Likewise.
5681         [XPG3 || XPG4] (sigev_*): Likewise.
5682         [XPG3 || XPG4] (SIGEV_*): Likewise.
5683         [XPG3 || XPG4] (sival_*): Likewise.
5684         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
5685         [POSIX || XPG3] (BUS_*): Likewise.
5686         [POSIX || XPG3] (CLD_*): Likewise.
5687         [POSIX || XPG3] (FPE_*): Likewise.
5688         [POSIX || XPG3] (ILL_*): Likewise.
5689         [POSIX || XPG3] (POLL_*): Likewise.
5690         [POSIX || XPG3] (SEGV_*): Likewise.
5691         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
5692         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
5693         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
5694         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
5695         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
5696         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
5697         Specify type and value.
5698         (TVERSLEN): Likewise.
5699         (REGTYPE): Likewise.
5700         (AREGTYPE): Likewise.
5701         (LNKTYPE): Likewise.
5702         (SYMTYPE): Likewise.
5703         (CHRTYPE): Likewise.
5704         (BLKTYPE): Likewise.
5705         (DIRTYPE): Likewise.
5706         (FIFOTYPE): Likewise.
5707         (CONTTYPE): Likewise.
5708         (TSUID): Likewise.
5709         (TSGID): Likewise.
5710         (TSVTX): Likewise.
5711         (TUREAD): Likewise.
5712         (TUWRITE): Likewise.
5713         (TUEXEC): Likewise.
5714         (TGREAD): Likewise.
5715         (TGWRITE): Likewise.
5716         (TGEXEC): Likewise.
5717         (TOREAD): Likewise.
5718         (TOWRITE): Likewise.
5719         (TOEXEC): Likewise.
5720         [POSIX] (TSVTX): Expect constant.
5721
5722 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
5723
5724         * Makefile (tests): Change dependencies to ....
5725         (tests-special): ... additions to this variable.
5726         (tests): Depend on $(tests-special).
5727         * Makerules (check-abi-list): New variable.
5728         (check-abi): Depend on $(check-abi-list).
5729         [$(subdir) = elf] (tests-special): Add
5730         $(objpfx)check-abi-libc.out.
5731         [$(build-shared) = yes && subdir] (tests-special): Add
5732         $(check-abi-list).
5733         [$(build-shared) = yes && subdir] (tests): Do not depend on
5734         check-abi.
5735         * Rules (tests): Depend on $(tests-special).
5736         (xtests): Depend on $(xtests-special).
5737         * catgets/Makefile (tests): Change dependencies to ....
5738         (tests-special): ... additions to this variable.
5739         * conform/Makefile (tests): Change dependencies to ....
5740         (tests-special): ... additions to this variable.
5741         * elf/Makefile (tests): Change dependencies to ....
5742         (tests-special): ... additions to this variable.
5743         * grp/Makefile (tests): Change dependencies to ....
5744         (tests-special): ... additions to this variable.
5745         * iconv/Makefile (xtests): Change dependencies to ....
5746         (xtests-special): ... additions to this variable.
5747         * iconvdata/Makefile (tests): Change dependencies to ....
5748         (tests-special): ... additions to this variable.
5749         * intl/Makefile (tests): Change dependencies to ....
5750         (tests-special): ... additions to this variable.  Also add
5751         $(objpfx)tst-gettext.out.
5752         * io/Makefile (tests): Change dependencies to ....
5753         (tests-special): ... additions to this variable.
5754         * libio/Makefile (tests): Change dependencies to ....
5755         (tests-special): ... additions to this variable.
5756         * malloc/Makefile (tests): Change dependencies to ....
5757         (tests-special): ... additions to this variable.
5758         * misc/Makefile (tests): Change dependencies to ....
5759         (tests-special): ... additions to this variable.
5760         * nptl/Makefile (tests): Change dependencies to ....
5761         (tests-special): ... additions to this variable.
5762         * nptl_db/Makefile (tests): Change dependencies to ....
5763         (tests-special): ... additions to this variable.
5764         * posix/Makefile (tests): Change dependencies to ....
5765         (tests-special): ... additions to this variable.
5766         (xtests): Change dependencies to ....
5767         (xtests-special): ... additions to this variable.
5768         * resolv/Makefile (tests): Change dependencies to ....
5769         (tests-special): ... additions to this variable.
5770         (xtests): Change dependencies to ....
5771         (xtests-special): ... additions to this variable.
5772         * stdio-common/Makefile (tests): Change dependencies to ....
5773         (tests-special): ... additions to this variable.
5774         (do-tst-unbputc): Remove target.
5775         (do-tst-printf): Likewise.
5776         * stdlib/Makefile (tests): Change dependencies to ....
5777         (tests-special): ... additions to this variable.
5778         * string/Makefile (tests): Change dependencies to ....
5779         (tests-special): ... additions to this variable.
5780         * sysdeps/x86/Makefile (tests): Change dependencies to ....
5781         (tests-special): ... additions to this variable.
5782
5783         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
5784         whole file.
5785         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
5786         whole file.
5787         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
5788         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
5789
5790         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
5791         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
5792         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
5793         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
5794         * conform/data/libgen.h-data [XPG3]: Likewise.
5795         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
5796         * conform/data/ndbm.h-data [XPG3]: Likewise.
5797         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
5798         * conform/data/netdb.h-data [XPG3]: Likewise.
5799         * conform/data/netinet/in.h-data [XPG3]: Likewise.
5800         * conform/data/poll.h-data [XPG3]: Likewise.
5801         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
5802         * conform/data/strings.h-data [XPG3]: Likewise.
5803         * conform/data/stropts.h-data [XPG3]: Likewise.
5804         * conform/data/sys/mman.h-data [XPG3]: Likewise.
5805         * conform/data/sys/resource.h-data [XPG3]: Likewise.
5806         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
5807         Likewise.
5808         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
5809         * conform/data/sys/time.h-data [XPG3]: Likewise.
5810         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
5811         * conform/data/sys/uio.h-data [XPG3]: Likewise.
5812         * conform/data/sys/un.h-data [XPG3]: Likewise.
5813         * conform/data/syslog.h-data [XPG3]: Likewise.
5814         * conform/data/ucontext.h-data [XPG3]: Likewise.
5815         * conform/data/utmpx.h-data [XPG3]: Likewise.
5816         * conform/data/varargs.h-data [UNIX98]: Enable file.
5817
5818         * manual/Makefile (INSTALL_INFO): Remove variable setting.
5819
5820         * math/libm-test.inc (struct test_f_f_data): Move expected results
5821         into structure for each rounding mode.
5822         (struct test_ff_f_data): Likewise.
5823         (struct test_ff_f_data_nexttoward): Likewise.
5824         (struct test_fi_f_data): Likewise.
5825         (struct test_fl_f_data): Likewise.
5826         (struct test_if_f_data): Likewise.
5827         (struct test_fff_f_data): Likewise.
5828         (struct test_c_f_data): Likewise.
5829         (struct test_f_f1_data): Likewise.
5830         (struct test_fF_f1_data): Likewise.
5831         (struct test_ffI_f1_data): Likewise.
5832         (struct test_c_c_data): Likewise.
5833         (struct test_cc_c_data): Likewise.
5834         (struct test_f_i_data): Likewise.
5835         (struct test_ff_i_data): Likewise.
5836         (struct test_f_l_data): Likewise.
5837         (struct test_f_L_data): Likewise.
5838         (struct test_fFF_11_data): Likewise.
5839         (RM_): New macro.
5840         (RM_FE_DOWNWARD): Likewise.
5841         (RM_FE_TONEAREST): Likewise.
5842         (RM_FE_TOWARDZERO): Likewise.
5843         (RM_FE_UPWARD): Likewise.
5844         (RUN_TEST_LOOP_f_f): Update references to expected results.
5845         (RUN_TEST_LOOP_2_f): Likewise.
5846         (RUN_TEST_LOOP_fff_f): Likewise.
5847         (RUN_TEST_LOOP_c_f): Likewise.
5848         (RUN_TEST_LOOP_f_f1): Likewise.
5849         (RUN_TEST_LOOP_fF_f1): Likewise.
5850         (RUN_TEST_LOOP_fI_f1): Likewise.
5851         (RUN_TEST_LOOP_ffI_f1): Likewise.
5852         (RUN_TEST_LOOP_c_c): Likewise.
5853         (RUN_TEST_LOOP_cc_c): Likewise.
5854         (RUN_TEST_LOOP_f_i): Likewise.
5855         (RUN_TEST_LOOP_f_i_tg): Likewise.
5856         (RUN_TEST_LOOP_ff_i_tg): Likewise.
5857         (RUN_TEST_LOOP_f_b): Likewise.
5858         (RUN_TEST_LOOP_f_b_tg): Likewise.
5859         (RUN_TEST_LOOP_f_l): Likewise.
5860         (RUN_TEST_LOOP_f_L): Likewise.
5861         (RUN_TEST_LOOP_fFF_11): Likewise.
5862         * math/gen-libm-test.pl (parse_args): Output four copies of
5863         expected results for each test.
5864
5865         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
5866         (__ASSUME_UTIMES): Remove.
5867         * sysdeps/unix/sysv/linux/tile/kernel-features.h
5868         (__ASSUME_UTIMES): Likewise.
5869
5870         * math/gen-auto-libm-tests.c: Update comment on output format.
5871         (output_for_one_input_case): Generate before-rounding and
5872         after-rounding information as conditions on output flags not
5873         floating-point format.
5874         * math/auto-libm-test-out: Regenerated.
5875         * math/gen-libm-test.pl (cond_value): New function.
5876         (or_cond_value): Use cond_value.
5877         (generate_testfile): Handle conditional exceptions.
5878
5879 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
5880
5881         * math/libm-test.inc (max_valid_error): New variable.
5882         (init_max_error): Take new argument specifying whether function
5883         results are exactly determined.  Set max_valid_error and bound
5884         other variables for errors based on this argument.
5885         (set_max_error): Do not record results above max_valid_error.
5886         (check_float_internal): Only accept errors of up to 0.5ulps if
5887         also at most max_valid_error.
5888         (START): Take new argument EXACT and pass it to init_max_error.
5889         (acos_test): Update call to START.
5890         (acos_test_tonearest): Likewise.
5891         (acos_test_towardzero): Likewise.
5892         (acos_test_downward): Likewise.
5893         (acos_test_upward): Likewise.
5894         (acosh_test): Likewise.
5895         (asin_test): Likewise.
5896         (asin_test_tonearest): Likewise.
5897         (asin_test_towardzero): Likewise.
5898         (asin_test_downward): Likewise.
5899         (asin_test_upward): Likewise.
5900         (asinh_test): Likewise.
5901         (atan_test): Likewise.
5902         (atanh_test): Likewise.
5903         (atan2_test): Likewise.
5904         (cabs_test): Likewise.
5905         (cacos_test): Likewise.
5906         (cacosh_test): Likewise.
5907         (carg_test): Likewise.
5908         (casin_test): Likewise.
5909         (casinh_test): Likewise.
5910         (catan_test): Likewise.
5911         (catanh_test): Likewise.
5912         (cbrt_test): Likewise.
5913         (ccos_test): Likewise.
5914         (ccosh_test): Likewise.
5915         (ceil_test): Likewise.
5916         (cexp_test): Likewise.
5917         (cimag_test): Likewise.
5918         (clog_test): Likewise.
5919         (clog10_test): Likewise.
5920         (conj_test): Likewise.
5921         (copysign_test): Likewise.
5922         (cos_test): Likewise.
5923         (cos_test_tonearest): Likewise.
5924         (cos_test_towardzero): Likewise.
5925         (cos_test_downward): Likewise.
5926         (cos_test_upward): Likewise.
5927         (cosh_test): Likewise.
5928         (cosh_test_tonearest): Likewise.
5929         (cosh_test_towardzero): Likewise.
5930         (cosh_test_downward): Likewise.
5931         (cosh_test_upward): Likewise.
5932         (cpow_test): Likewise.
5933         (cproj_test): Likewise.
5934         (creal_test): Likewise.
5935         (csin_test): Likewise.
5936         (csinh_test): Likewise.
5937         (csqrt_test): Likewise.
5938         (ctan_test): Likewise.
5939         (ctan_test_tonearest): Likewise.
5940         (ctan_test_towardzero): Likewise.
5941         (ctan_test_downward): Likewise.
5942         (ctan_test_upward): Likewise.
5943         (ctanh_test): Likewise.
5944         (ctanh_test_tonearest): Likewise.
5945         (ctanh_test_towardzero): Likewise.
5946         (ctanh_test_downward): Likewise.
5947         (ctanh_test_upward): Likewise.
5948         (erf_test): Likewise.
5949         (erfc_test): Likewise.
5950         (exp_test): Likewise.
5951         (exp_test_tonearest): Likewise.
5952         (exp_test_towardzero): Likewise.
5953         (exp_test_downward): Likewise.
5954         (exp_test_upward): Likewise.
5955         (exp10_test): Likewise.
5956         (exp10_test_tonearest): Likewise.
5957         (exp10_test_towardzero): Likewise.
5958         (exp10_test_downward): Likewise.
5959         (exp10_test_upward): Likewise.
5960         (pow10_test): Likewise.
5961         (exp2_test): Likewise.
5962         (expm1_test): Likewise.
5963         (expm1_test_tonearest): Likewise.
5964         (expm1_test_towardzero): Likewise.
5965         (expm1_test_downward): Likewise.
5966         (expm1_test_upward): Likewise.
5967         (fabs_test): Likewise.
5968         (fdim_test): Likewise.
5969         (floor_test): Likewise.
5970         (fma_test): Likewise.
5971         (fma_test_towardzero): Likewise.
5972         (fma_test_downward): Likewise.
5973         (fma_test_upward): Likewise.
5974         (fmax_test): Likewise.
5975         (fmin_test): Likewise.
5976         (fmod_test): Likewise.
5977         (fpclassify_test): Likewise.
5978         (frexp_test): Likewise.
5979         (hypot_test): Likewise.
5980         (ilogb_test): Likewise.
5981         (isfinite_test): Likewise.
5982         (finite_test): Likewise.
5983         (isgreater_test): Likewise.
5984         (isgreaterequal_test): Likewise.
5985         (isinf_test): Likewise.
5986         (isless_test): Likewise.
5987         (islessequal_test): Likewise.
5988         (islessgreater_test): Likewise.
5989         (isnan_test): Likewise.
5990         (isnormal_test): Likewise.
5991         (issignaling_test): Likewise.
5992         (isunordered_test): Likewise.
5993         (j0_test): Likewise.
5994         (j1_test): Likewise.
5995         (jn_test): Likewise.
5996         (ldexp_test): Likewise.
5997         (lgamma_test): Likewise.
5998         (gamma_test): Likewise.
5999         (lrint_test): Likewise.
6000         (lrint_test_tonearest): Likewise.
6001         (lrint_test_towardzero): Likewise.
6002         (lrint_test_downward): Likewise.
6003         (lrint_test_upward): Likewise.
6004         (llrint_test): Likewise.
6005         (llrint_test_tonearest): Likewise.
6006         (llrint_test_towardzero): Likewise.
6007         (llrint_test_downward): Likewise.
6008         (llrint_test_upward): Likewise.
6009         (log_test): Likewise.
6010         (log10_test): Likewise.
6011         (log1p_test): Likewise.
6012         (log2_test): Likewise.
6013         (logb_test): Likewise.
6014         (logb_test_downward): Likewise.
6015         (lround_test): Likewise.
6016         (llround_test): Likewise.
6017         (modf_test): Likewise.
6018         (nearbyint_test): Likewise.
6019         (nextafter_test): Likewise.
6020         (nexttoward_test): Likewise.
6021         (pow_test): Likewise.
6022         (pow_test_tonearest): Likewise.
6023         (pow_test_towardzero): Likewise.
6024         (pow_test_downward): Likewise.
6025         (pow_test_upward): Likewise.
6026         (remainder_test): Likewise.
6027         (drem_test): Likewise.
6028         (remainder_test_tonearest): Likewise.
6029         (drem_test_tonearest): Likewise.
6030         (remainder_test_towardzero): Likewise.
6031         (drem_test_towardzero): Likewise.
6032         (remainder_test_downward): Likewise.
6033         (drem_test_downward): Likewise.
6034         (remainder_test_upward): Likewise.
6035         (drem_test_upward): Likewise.
6036         (remquo_test): Likewise.
6037         (rint_test): Likewise.
6038         (rint_test_tonearest): Likewise.
6039         (rint_test_towardzero): Likewise.
6040         (rint_test_downward): Likewise.
6041         (rint_test_upward): Likewise.
6042         (round_test): Likewise.
6043         (scalb_test): Likewise.
6044         (scalbn_test): Likewise.
6045         (scalbln_test): Likewise.
6046         (signbit_test): Likewise.
6047         (sin_test): Likewise.
6048         (sin_test_tonearest): Likewise.
6049         (sin_test_towardzero): Likewise.
6050         (sin_test_downward): Likewise.
6051         (sin_test_upward): Likewise.
6052         (sincos_test): Likewise.
6053         (sinh_test): Likewise.
6054         (sinh_test_tonearest): Likewise.
6055         (sinh_test_towardzero): Likewise.
6056         (sinh_test_downward): Likewise.
6057         (sinh_test_upward): Likewise.
6058         (sqrt_test): Likewise.
6059         (sqrt_test_tonearest): Likewise.
6060         (sqrt_test_towardzero): Likewise.
6061         (sqrt_test_downward): Likewise.
6062         (sqrt_test_upward): Likewise.
6063         (tan_test): Likewise.
6064         (tan_test_tonearest): Likewise.
6065         (tan_test_towardzero): Likewise.
6066         (tan_test_downward): Likewise.
6067         (tan_test_upward): Likewise.
6068         (tanh_test): Likewise.
6069         (tgamma_test): Likewise.
6070         (trunc_test): Likewise.
6071         (y0_test): Likewise.
6072         (y1_test): Likewise.
6073         (yn_test): Likewise.
6074         (significand_test): Likewise.
6075
6076         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
6077         individual tests in comment.
6078         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
6079         (prev_max_error): New variable.
6080         (prev_real_max_error): Likewise.
6081         (prev_imag_max_error): Likewise.
6082         (compare_ulp_data): Don't refer to test names in comment.
6083         (find_test_ulps): Remove function.
6084         (find_function_ulps): Likewise.
6085         (find_complex_function_ulps): Likewise.
6086         (init_max_error): Take function name as argument.  Look up ulps
6087         for that function.
6088         (print_ulps): Remove function.
6089         (print_max_error): Use prev_max_error instead of calling
6090         find_function_ulps.
6091         (print_complex_max_error): Use prev_real_max_error and
6092         prev_imag_max_error instead of calling find_complex_function_ulps.
6093         (check_float_internal): Take max_ulp parameter instead of calling
6094         find_test_ulps.  Don't call print_ulps.
6095         (check_float): Update call to check_float_internal.
6096         (check_complex): Update calls to check_float_internal.
6097         (START): Pass argument to init_max_error.
6098         * math/gen-libm-test.pl (%results): Don't include "kind"
6099         information.
6100         (parse_ulps): Don't handle ulps of individual tests.
6101         (print_ulps_file): Likewise.
6102         (output_ulps): Likewise.
6103         * math/README.libm-test: Update.
6104         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
6105         individual tests.
6106         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
6107         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
6108         * sysdeps/arm/libm-test-ulps: Likewise.
6109         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
6110         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
6111         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
6112         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
6113         * sysdeps/microblaze/libm-test-ulps: Likewise.
6114         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
6115         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
6116         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6117         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
6118         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
6119         * sysdeps/sh/libm-test-ulps: Likewise.
6120         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
6121         * sysdeps/tile/libm-test-ulps: Likewise.
6122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6123
6124 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
6125
6126         * math/libm-test.inc (print_complex_max_error): Check separately
6127         whether real and imaginary errors are within allowed range and
6128         pass 0 to print_complex_function_ulps instead of value within
6129         allowed range.
6130
6131 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6132
6133         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
6134         formatting.
6135         (get_handles_fopen): Likewise.
6136         (do_write_test): Likewise.
6137
6138         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
6139
6140         * libio/fileops.c (do_ftell): Use cached offset when
6141         available.
6142         * libio/iofwide.c (do_ftell_wide): Likewise.
6143         * libio/iofdopen.c (_IO_new_fdopen): Don't use
6144         _IO_file_attach.
6145         * libio/wfileops.c (_IO_fwide): Don't cache offset.
6146
6147         [BZ #16532]
6148         * libio/libioP.h (get_file_offset): New function.
6149         * libio/fileops.c (get_file_offset): Likewise.
6150         (do_ftell): Likewise.
6151         (_IO_new_file_seekoff): Split out ftell logic.
6152         * libio/wfileops.c (do_ftell_wide): Likewise.
6153         (_IO_wfile_seekoff): Split out ftell logic.
6154         * libio/tst-ftell-active-handler.c: New test case.
6155         * libio/Makefile (tests): Add it.
6156
6157 2014-03-03  Roland McGrath  <roland@hack.frob.com>
6158
6159         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
6160         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
6161
6162 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
6163
6164         [BZ #16639]
6165         * nscd/connections.c (nscd_init): Call do_exit.
6166         (start_threads): Call do_exit and notify_parent.
6167         (begin_drop_privileges): Call do_exit.
6168         (finish_drop_privileges): Likewise.
6169         * nscd/selinux.c (preserve_capabilities): Likewise.
6170         (install_real_capabilities): Likewise.
6171         (nscd_selinux_enabled): Likewise.
6172         (avc_create_thread): Likewise.
6173         (avc_alloc_lock): Likewise.
6174         (nscd_avc_init): Likewise.
6175         * nscd/nscd.c (parent_fd): New static variable.
6176         (main): Create a pipe between parent and child processes.
6177         Skip closing parent_fd.
6178         (monitor_child): New function.
6179         (do_exit): Likewise.
6180         (notify_parent): Likewise.
6181         * nscd/nscd.h (notify_parent): Likewise.
6182         (do_exit): Likewise.
6183
6184 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
6185
6186         * malloc/malloc.c (__libc_calloc): Revert last change.
6187
6188 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6189
6190         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6191
6192 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6193
6194         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
6195         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
6196         implementation.
6197         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
6198         (__libc_ifunc_impl_list): Likewise.
6199         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
6200         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
6201         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
6202         * string/strrchr.c: Define STRRCHR.
6203
6204 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
6205
6206         * benchtest/bench-strtok.c (simple_strtok): Delete.
6207         (strtok_string): Use as benchmark.
6208         * string/strtok (STRTOK): New macro.
6209
6210 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
6211
6212         * manual/threads.texi: Add header and standard comments to all
6213         functions.
6214
6215         * elf/dl-lookup.c (check_match): New function.
6216         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
6217         (do_lookup_x): Remove nested function check_match. Use non-nested
6218         function check_match.
6219
6220 2014-02-28  Roland McGrath  <roland@hack.frob.com>
6221
6222         * csu/Makefile (generated, before-compile): Use += rather than =.
6223         * catgets/Makefile (generated, generated-dirs): Likewise.
6224         * debug/Makefile (generated): Likewise.
6225         * dlfcn/Makefile (generated): Likewise.
6226         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
6227         * iconvdata/Makefile (before-compile, generated): Likewise.
6228         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
6229         * libio/Makefile (generated): Likewise.
6230         * malloc/Makefile (generated): Likewise.
6231         * manual/Makefile (generated, generated-dirs): Likewise.
6232         * misc/Makefile (generated): Likewise.
6233         * posix/Makefile (generated): Likewise.
6234         * resolv/Makefile (generated): Likewise.
6235         * sunrpc/Makefile (generated, generated-dirs): Likewise.
6236         * timezone/Makefile (generated, generated-dirs): Likewise.
6237
6238         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
6239
6240 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6241
6242         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
6243         power8 implementation.
6244         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
6245         file: POWER8 llround ifunc implementation.
6246         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
6247         (__lllround): Add POWER8 implementation.
6248         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
6249         POWER8 llround implementation.
6250
6251         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
6252         power8 implementation.
6253         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
6254         file: POWER8 llrint ifunc implementation.
6255         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
6256         Add POWER8 implementation.
6257         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
6258         POWER8 llrint implementation.
6259
6260         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
6261         power8 implementation.
6262         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
6263         file: POWER8 finite ifunc implementation.
6264         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
6265         Add POWER8 implementation.
6266         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
6267         Likewise.
6268         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
6269         POWER8 finite implementation.
6270         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
6271
6272         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
6273         power8 implementation.
6274         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
6275         file: POWER8 isinf ifunc implementation.
6276         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
6277         POWER8 implementation.
6278         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
6279         Likewise.
6280         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
6281         isinf implementation.
6282         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
6283
6284         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
6285         (INIT_ARCH): Add hwcap2 initialization.
6286         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
6287         power8 implementation.
6288         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
6289         file: POWER8 isnan ifunc implementation.
6290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
6291         POWER8 implementation.
6292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
6293         Likewise.
6294         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
6295         isnan implementation.
6296         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
6297
6298 2014-02-27  Joey Ye  <joey.ye@arm.com>
6299
6300         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
6301         (_FP_NANFRAC_Q): Set to zero.
6302
6303 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6304
6305         [BZ #16623]
6306         * math/auto-libm-test-in: New test inputs.
6307         * math/auto-libm-test-out: Regenerate.
6308         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
6309         and DA.
6310         (__cos): Likewise.
6311         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6312
6313 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
6314
6315         * scripts/evaluate-test.sh: Take new argument indicating whether
6316         failure is expected.
6317         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
6318         indicating whether failure is expected.
6319         * conform/Makefile (test-xfail-run-conformtest): New variable.
6320         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
6321         level.
6322         * posix/Makefile (test-xfail-annexc): New variable.
6323         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
6324
6325 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
6326
6327         * argp/Makefile: Include Makeconfig immediately after defining
6328         subdir.
6329         * assert/Makefile: Likewise.
6330         * benchtests/Makefile: Likewise.
6331         * catgets/Makefile: Likewise.
6332         * conform/Makefile: Likewise.
6333         * crypt/Makefile: Likewise.
6334         * csu/Makefile: Likewise.
6335         (all): Remove target.
6336         * ctype/Makefile: Include Makeconfig immediately after defining
6337         subdir.
6338         * debug/Makefile: Likewise.
6339         * dirent/Makefile: Likewise.
6340         * dlfcn/Makefile: Likewise.
6341         * gmon/Makefile: Likewise.
6342         * gnulib/Makefile: Likewise.
6343         * grp/Makefile: Likewise.
6344         * gshadow/Makefile: Likewise.
6345         * hesiod/Makefile: Likewise.
6346         * hurd/Makefile: Likewise.
6347         (all): Remove target.
6348         * iconvdata/Makefile: Include Makeconfig immediately after
6349         defining subdir.
6350         * inet/Makefile: Likewise.
6351         * intl/Makefile: Likewise.
6352         * io/Makefile: Likewise.
6353         * libio/Makefile: Likewise.
6354         (all): Remove target.
6355         * locale/Makefile: Include Makeconfig immediately after defining
6356         subdir.
6357         * login/Makefile: Likewise.
6358         * mach/Makefile: Likewise.
6359         (all): Remove target.
6360         * malloc/Makefile: Include Makeconfig immediately after defining
6361         subdir.
6362         (all): Remove target.
6363         * manual/Makefile: Include Makeconfig immediately after defining
6364         subdir.
6365         * math/Makefile: Likewise.
6366         * misc/Makefile: Likewise.
6367         * nis/Makefile: Likewise.
6368         * nss/Makefile: Likewise.
6369         * po/Makefile: Likewise.
6370         (all): Remove target.
6371         * posix/Makefile: Include Makeconfig immediately after defining
6372         subdir.
6373         * pwd/Makefile: Likewise.
6374         * resolv/Makefile: Likewise.
6375         * resource/Makefile: Likewise.
6376         * rt/Makefile: Likewise.
6377         * setjmp/Makefile: Likewise.
6378         * shadow/Makefile: Likewise.
6379         * signal/Makefile: Likewise.
6380         * socket/Makefile: Likewise.
6381         * soft-fp/Makefile: Likewise.
6382         * stdio-common/Makefile: Likewise.
6383         * stdlib/Makefile: Likewise.
6384         * streams/Makefile: Likewise.
6385         * string/Makefile: Likewise.
6386         * sunrpc/Makefile: Likewise.
6387         (all): Remove target.
6388         * sysvipc/Makefile: Include Makeconfig immediately after defining
6389         subdir.
6390         * termios/Makefile: Likewise.
6391         * time/Makefile: Likewise.
6392         * timezone/Makefile: Likewise.
6393         (all): Remove target.
6394         * wcsmbs/Makefile: Include Makeconfig immediately after defining
6395         subdir.
6396         * wctype/Makefile: Likewise.
6397
6398 2014-02-26  Steve Ellcey  <sellcey@mips.com>
6399
6400         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
6401         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
6402         (libc_feholdexcept_setround_mips): Ditto.
6403         (libc_feholdsetround): New.
6404         (libc_feholdsetroundf): New.
6405         (libc_feholdsetroundl): New.
6406         (libc_feupdateenv_test_mips): New.
6407         (libc_feupdateenv_test): New.
6408         (libc_feupdateenv_testf): New.
6409         (libc_feupdateenv_testl): New.
6410         (libc_feresetround): New.
6411         (libc_feresetroundf): New.
6412         (libc_feresetroundl): New.
6413         (libc_fetestexcept_mips): New.
6414         (libc_fetestexcept): New.
6415         (libc_fetestexceptf): New.
6416         (libc_fetestexceptl): New.
6417         (HAVE_RM_CTX): New.
6418         (libc_feholdexcept_setround_mips_ctx): New.
6419         (libc_feholdexcept_setround_ctx): New.
6420         (libc_feholdexcept_setroundf_ctx): New.
6421         (libc_feholdexcept_setroundl_ctx): New.
6422         (libc_fesetenv_mips_ctx): New.
6423         (libc_fesetenv_ctx): New.
6424         (libc_fesetenv_ctxf): New.
6425         (libc_fesetenv_ctxl): New.
6426         (libc_feupdateenv_mips_ctx): New.
6427         (libc_feupdateenv_ctx): New.
6428         (libc_feupdateenvf_ctx): New.
6429         (libc_feupdateenvl_ctx): New.
6430         (libc_feholdsetround_mips_ctx): New.
6431         (libc_feholdsetround_ctx): New.
6432         (libc_feholdsetroundf_ctx): New.
6433         (libc_feholdsetroundl_ctx): New.
6434         (libc_feresetround_mips_ctx): New.
6435         (libc_feresetround_ctx): New.
6436         (libc_feresetroundf_ctx): New.
6437         (libc_feresetroundl_ctx): New.
6438
6439 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
6440
6441         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
6442
6443         * manual/ipc.texi: New file.
6444         * manual/Makefile (chapters): Add ipc.
6445         * manual/job.texi: Add "Inter-Process Communication" to next.
6446         * manual/process.texi: Add "Inter-Process Communication" to prev.
6447
6448 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6449
6450         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6451
6452 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
6453
6454         * malloc/malloc.c (__libc_calloc): Simplify implementation.
6455
6456         * manual/arith.texi: Fix spaces after sentences.
6457         * manual/charset.texi: Likewise.
6458         * manual/errno.texi: Likewise.
6459         * manual/install.texi: Likewise.
6460         * manual/llio.texi: Likewise.
6461         * manual/locale.texi: Likewise.
6462         * manual/maint.texi: Likewise.
6463         * manual/math.texi: Likewise.
6464         * manual/memory.texi: Likewise.
6465         * manual/message.texi: Likewise.
6466         * manual/probes.texi: Likewise.
6467         * manual/resource.texi: Likewise.
6468         * manual/signal.texi: Likewise.
6469         * manual/socket.texi: Likewise.
6470         * manual/stdio.texi: Likewise.
6471         * manual/string.texi: Likewise.
6472         * manual/time.texi: Likewise.
6473         * manual/users.texi: Likewise.
6474
6475 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
6476
6477         [BZ #16632]
6478         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
6479         _DEFAULT_SOURCE is defined.
6480
6481 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
6482             Carlos O'Donell  <carlos@redhat.com>
6483
6484         [BZ #16613]
6485         * elf/dl-tls.c (_dl_count_modids): New function.
6486         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
6487         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
6488         audit library and increment generation counter.
6489         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
6490         * elf/tst-audit9.c: New file.
6491         * elf/tst-auditmod9a.c: New file.
6492         * elf/tst-auditmod9b.c: New file.
6493         * elf/Makefile: Add rules to build and run tst-audit9.
6494
6495 2014-02-25  Florian Weimer  <fweimer@redhat.com>
6496
6497         [BZ #15347]
6498         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
6499
6500 2014-02-25  Will Newton  <will.newton@linaro.org>
6501
6502         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
6503         (__longjmp): Restore sp and lr before restoring callee
6504         saved registers.  Add longjmp and longjmp_target
6505         SystemTap probe point.
6506         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
6507         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
6508         Define to zero to match jmpbuf layout.
6509         * sysdeps/arm/setjmp.S: Include stap-probe.h.
6510         (__sigsetjmp): Save sp and lr before saving callee
6511         saved registers.  Add setjmp SystemTap probe point.
6512
6513 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
6514
6515         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
6516
6517 2014-02-24  Andreas Schwab  <schwab@suse.de>
6518
6519         [BZ #15804]
6520         * elf/pldd.c (wait_for_ptrace_stop): New function.
6521         (main): Call it after attaching.
6522
6523 2014-02-22  Roland McGrath  <roland@hack.frob.com>
6524
6525         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
6526         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
6527         Versions files is now verboten.
6528         * hurd/Versions (libc: GLIBC_2.0):
6529         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
6530         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
6531         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
6532         * mach/Versions: Likewise.
6533
6534         * csu/Versions: Remove unused %include.
6535         * resolv/Versions: Likewise.
6536
6537 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
6538
6539         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
6540         ($(objpfx)check-local-headers.out): Likewise.
6541         ($(objpfx)begin-end-check.out): Likewise.
6542         * Makerules (check-abi-%.out): Likewise.
6543         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
6544         ($(objpfx)test2.cat): Likewise.
6545         ($(objpfx)de/libc.cat): Likewise.
6546         ($(objpfx)test-gencat.out): Likewise.
6547         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
6548         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
6549         ($(objpfx)noload-mem): Likewise.
6550         ($(objpfx)tst-pathopt.out): Likewise.
6551         ($(objpfx)tst-rtld-load-self.out): Likewise.
6552         ($(objpfx)tst-array1-cmp.out): Likewise.
6553         ($(objpfx)tst-array1-static-cmp.out): Likewise.
6554         ($(objpfx)tst-array2-cmp.out): Likewise.
6555         ($(objpfx)tst-array3-cmp.out): Likewise.
6556         ($(objpfx)tst-array4-cmp.out): Likewise.
6557         ($(objpfx)tst-array5-cmp.out): Likewise.
6558         ($(objpfx)tst-array5-static-cmp.out): Likewise.
6559         ($(objpfx)check-textrel.out): Likewise.
6560         ($(objpfx)check-execstack.out): Likewise.
6561         ($(objpfx)check-localplt.out): Likewise.
6562         ($(objpfx)order2-cmp.out): Likewise.
6563         ($(objpfx)tst-leaks1-mem): Likewise.
6564         ($(objpfx)tst-leaks1-static-mem): Likewise.
6565         ($(objpfx)tst-initorder-cmp.out): Likewise.
6566         ($(objpfx)tst-initorder2-cmp.out): Likewise.
6567         ($(objpfx)tst-unused-dep.out): Likewise.
6568         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
6569         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
6570         * iconv/Makefile (test-iconvconfig): Likewise.
6571         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
6572         ($(objpfx)iconv-test.out): Likewise.
6573         ($(objpfx)tst-tables.out): Likewise.
6574         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
6575         ($(objpfx)tst-gettext.out): Likewise.
6576         ($(objpfx)tst-translit.out): Likewise.
6577         ($(objpfx)tst-gettext2.out): Likewise.
6578         ($(objpfx)tst-gettext4.out): Likewise.
6579         ($(objpfx)tst-gettext6.out): Likewise.
6580         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
6581         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
6582         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
6583         ($(objpfx)tst-fopenloc-mem.out): Likewise.
6584         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
6585         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
6586         * posix/Makefile ($(objpfx)globtest.out): Likewise.
6587         ($(objpfx)wordexp-tst.out): Likewise.
6588         ($(objpfx)annexc.out): Likewise.
6589         ($(objpfx)tst-fnmatch-mem): Likewise.
6590         ($(objpfx)bug-regex2-mem): Likewise.
6591         ($(objpfx)bug-regex14-mem): Likewise.
6592         ($(objpfx)bug-regex21-mem): Likewise.
6593         ($(objpfx)bug-regex31-mem): Likewise.
6594         ($(objpfx)tst-vfork3-mem): Likewise.
6595         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
6596         ($(objpfx)tst-pcre-mem): Likewise.
6597         ($(objpfx)tst-boost-mem): Likewise.
6598         ($(objpfx)tst-getconf.out): Likewise.
6599         ($(objpfx)bug-ga2-mem): Likewise.
6600         ($(objpfx)bug-glob2-mem): Likewise.
6601         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
6602         ($(objpfx)mtrace-tst-leaks2): Likewise.
6603         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
6604         ($(objpfx)tst-printf.out): Likewise.
6605         ($(objpfx)tst-setvbuf1.out): Likewise.
6606         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
6607         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
6608         ($(objpfx)tst-fmtmsg.out): Likewise.
6609         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
6610         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
6611
6612         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
6613         * bits/sigaction.h [__USE_MISC]: Likewise.
6614         * bits/waitstatus.h: Update #endif comments.
6615         * ctype/ctype.h: Likewise.
6616         * dirent/dirent.h: Likewise.
6617         [__USE_MISC]: Remove redundant conditionals.
6618         * grp/grp.h: Update #endif comments.
6619         [__USE_GNU]: Remove redundant conditionals.
6620         [__USE_MISC]: Likewise.
6621         * inet/netinet/in.h [__USE_GNU]: Likewise.
6622         * io/sys/stat.h [__USE_MISC]: Likewise.
6623         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
6624         * libio/bits/stdio.h: Update #endif comments.
6625         [__USE_MISC]: Remove redundant conditionals.
6626         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
6627         * libio/stdio.h: Update #endif comments.
6628         [__USE_MISC]: Remove redundant conditionals.
6629         * math/bits/math-finite.h [__USE_MISC]: Likewise.
6630         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
6631         * math/math.h: Update #else and #endif comments.
6632         [__USE_MISC]: Remove redundant conditionals.
6633         * misc/sys/uio.h: Update #endif comments.
6634         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
6635         * posix/glob.h [__USE_MISC]: Likewise.
6636         * posix/sys/types.h: Update #endif comments.
6637         [__USE_MISC]: Remove redundant conditionals.
6638         * posix/sys/wait.h: Update #endif comments.
6639         [__USE_MISC]: Remove redundant conditionals.
6640         * posix/unistd.h: Update #endif comments.
6641         [__USE_MISC]: Remove redundant conditionals.
6642         * pwd/pwd.h [__USE_GNU]: Likewise.
6643         [__USE_MISC]: Likewise.
6644         * resolv/netdb.h [__USE_GNU]: Likewise.
6645         * signal/signal.h: Update #endif comments.
6646         [__USE_MISC]: Remove redundant conditionals.
6647         * stdlib/stdlib.h: Update #else and #endif comments.
6648         [__USE_MISC]: Remove redundant conditionals.
6649         [__USE_GNU]: Likewise.
6650         * string/bits/string2.h [__USE_MISC]: Likewise.
6651         * string/string.h: Update #endif comments.
6652         [__USE_MISC]: Remove redundant conditionals.
6653         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
6654         Likewise.
6655         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
6656         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
6657         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
6658         Likewise.
6659         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
6660         Likewise.
6661         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
6662         comments.
6663         [__USE_MISC]: Remove redundant conditionals.
6664         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
6665         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
6666         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
6667         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
6668         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
6669         Likewise.
6670         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
6671         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
6672         Likewise.
6673         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
6674         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
6675         Likewise.
6676         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
6677         Likewise.
6678         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
6679         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
6680         Likewise.
6681         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
6682         Likewise.
6683         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
6684         * sysdeps/x86/bits/string.h: Update #endif comments.
6685         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
6686         conditionals.
6687         * time/sys/time.h: Update #endif comments.
6688         * time/time.h: Likewise.
6689         [__USE_MISC]: Remove redundant conditionals.
6690
6691 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
6692
6693         [BZ #16600]
6694         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
6695
6696 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
6697
6698         * Versions.def (librt): Add GLIBC_2.17.
6699
6700 2014-02-21  Adam Conrad  <adconrad@0c3.net>
6701
6702         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
6703         synonym for _SYS_AUXV_H to allow direct inclusion.
6704         * sysdeps/sparc/bits/hwcap.h: Likewise.
6705         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
6706         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
6707         * sysdeps/sparc/sysdep.h: Likewise.
6708
6709 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6710
6711         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
6712
6713 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
6714
6715         * benchtests/bench-strrchr.c: Print length instead of position.
6716
6717 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
6718
6719         [BZ #16611]
6720         * sysdeps/unix/sysv/linux/kernel-features.h
6721         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
6722         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
6723         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
6724         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
6725         Likewise.
6726         [__i386__ || __powerpc__ || __sh__ || __sparc__]
6727         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6728         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
6729         (__ASSUME_SENDMMSG): Define instead of using previous
6730         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
6731         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6732         (__ASSUME_SENDMMSG_SYSCALL): Define.
6733         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6734         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
6735         Likewise.
6736         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6737         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6738         Likewise.
6739         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6740         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6741         Likewise.
6742         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
6743         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6744         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6745         [__ASSUME_SENDMMSG]: Change conditionals to
6746         [__ASSUME_SENDMMSG_SOCKETCALL].
6747         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6748         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
6749         Define.
6750         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6751         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
6752         Likewise.
6753         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
6754         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
6755         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
6756         [!__ASSUME_SENDMMSG]: Change conditional to
6757         [!__ASSUME_SENDMMSG_SOCKETCALL].
6758         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6759         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
6760         Define.
6761
6762         [BZ #16610]
6763         * sysdeps/unix/sysv/linux/kernel-features.h
6764         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
6765         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
6766         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
6767         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
6768         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
6769         [__i386__ || __sparc__]
6770         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6771         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
6772         (__ASSUME_RECVMMSG): Define instead of using previous
6773         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
6774         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6775         (__ASSUME_RECVMMSG_SYSCALL): Define.
6776         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6777         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6778         Likewise.
6779         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6780         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6781         Likewise.
6782         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6783         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6784         Likewise.
6785         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
6786         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
6787         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
6788         [__ASSUME_RECVMMSG]: Change condition to
6789         [__ASSUME_RECVMMSG_SOCKETCALL].
6790         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6791         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6792         Define.
6793         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
6794         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6795         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
6796         Likewise.
6797         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
6798         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
6799         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
6800         [!__ASSUME_RECVMMSG]: Change condition to
6801         [!__ASSUME_RECVMMSG_SOCKETCALL].
6802         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6803         (__ASSUME_RECVMMSG_SYSCALL): Define.
6804
6805         [BZ #16609]
6806         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
6807         __powerpc__ || __s390__ || __sh__ || __sparc__]
6808         (__ASSUME_SOCKETCALL): Define.
6809         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
6810         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
6811         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
6812         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
6813         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
6814         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
6815         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
6816         (__ASSUME_ACCEPT4): Define instead of using previous
6817         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
6818         __powerpc__ || __sparc__ || __s390__)] condition.
6819         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
6820         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
6821         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
6822         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
6823         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
6824         [!__ASSUME_ACCEPT4]: Change condition to
6825         [!__ASSUME_ACCEPT4_SOCKETCALL].
6826         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6827         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
6828         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
6829         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6830         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
6831         __ASSUME_ACCEPT4_SYSCALL.
6832         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
6833         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
6834         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
6835         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
6836         __ASSUME_ACCEPT4_SYSCALL.
6837         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
6838         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
6839         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
6840         [__ASSUME_ACCEPT4]: Change condition to
6841         [__ASSUME_ACCEPT4_SOCKETCALL].
6842         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6843         (__ASSUME_SOCKETCALL): Define.
6844         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
6845         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6846         (__ASSUME_SOCKETCALL): Define.
6847         (__ASSUME_ACCEPT4): Remove.
6848         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
6849         Define.
6850         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6851         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
6852         Likewise.
6853         * sysdeps/unix/sysv/linux/tile/kernel-features.h
6854         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
6855
6856         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
6857         macro.
6858         (HWCAP_ARM_LPAE): Likewise.
6859         (HWCAP_ARM_EVTSTRM): Likewise.
6860         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
6861         Add vpfd32, lpae and evtstrm.
6862         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
6863         Increase to 22.
6864
6865 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
6866
6867         * math/auto-libm-test-in: Add tests of clog10.
6868         * math/auto-libm-test-out: Regenerated.
6869         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
6870         * sysdeps/i386/fpu/libm-test-ulps: Update.
6871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6872
6873 2014-02-18  Andreas Schwab  <schwab@suse.de>
6874
6875         [BZ #16574]
6876         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
6877         Store non-zero if the second buffer was newly allocated.
6878         (send_dg): Likewise.
6879         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
6880         to send_vc and send_dg.
6881         (res_nsend): Pass NULL for ansp2_malloced.
6882         * resolv/res_query.c (__libc_res_nquery): Add parameter
6883         answerp2_malloced and pass it down to __libc_res_nsend.
6884         (res_nquery): Pass additional NULL to __libc_res_nquery.
6885         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
6886         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
6887         second answer buffer if answerp2_malloced was set.
6888         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
6889         (__libc_res_nquerydomain): Add parameter
6890         answerp2_malloced and pass it down to __libc_res_nquery.
6891         (res_nquerydomain): Pass additional NULL to
6892         __libc_res_nquerydomain.
6893         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
6894         additional NULL to __libc_res_nsend and __libc_res_nquery.
6895         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
6896         additional NULL to __libc_res_nsearch.
6897         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
6898         parameter of __libc_res_nsearch to check for separately allocated
6899         second buffer.
6900         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
6901         __libc_res_nquery.
6902         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
6903         additional NULL to __libc_res_nquery.
6904         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
6905         __libc_res_nsearch.
6906         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
6907         * include/resolv.h: Update prototypes of __libc_res_nquery,
6908         __libc_res_nsearch, __libc_res_nsend.
6909
6910 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
6911
6912         * math/auto-libm-test-in: Add tests of fma.
6913         * math/auto-libm-test-out: Regenerated.
6914         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
6915         (fma_towardzero_test_data): Likewise.
6916         (fma_downward_test_data): Likewise.
6917         (fma_upward_test_data): Likewise.
6918         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
6919         mpc_mode.
6920         (rounding_modes): Add values for new field.
6921         (func_calc_method): Add value mpfr_fff_f.
6922         (func_calc_desc): Add mpfr_fff_f union field.
6923         (test_function): Add field exact_args.
6924         (FUNC): Add macro argument EXACT_ARGS.
6925         (FUNC_mpfr_f_f): Update call to FUNC.
6926         (FUNC_mpfr_f_f): Likewise.
6927         (FUNC_mpfr_ff_f): Likewise.
6928         (FUNC_mpfr_if_f): Likewise.
6929         (FUNC_mpc_c_f): Likewise.
6930         (FUNC_mpc_c_c): Likewise.
6931         (test_functions): Add fma.  Update calls to FUNC.
6932         (handle_input_arg): Add argument exact_args.
6933         (add_test): Update call to handle_input_arg.
6934         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
6935         (output_for_one_input_case): Update call to calc_generic_results.
6936         Recalculate exact zero results in each rounding mode.
6937
6938         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
6939         non-negative before setting low bit.
6940         * math/auto-libm-test-in: Mark one asin test possibly having
6941         spurious underflow.
6942         * math/auto-libm-test-out: Regenerated.
6943         * sysdeps/i386/fpu/libm-test-ulps: Update.
6944         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6945
6946 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
6947
6948         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
6949         * sysdeps/unix/sysv/linux/microblaze: Move directory from
6950         ports/sysdeps/unix/sysv/linux/microblaze.
6951         * README: Add missing listing for microblaze*-*-linux-gnu.
6952
6953 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
6954
6955         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
6956         * sysdeps/unix/sysv/linux/ia64: Move directory from
6957         ports/sysdeps/unix/sysv/linux/ia64.
6958         * README: Update listing for ia64-*-linux-gnu.
6959
6960 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
6961             Joseph Myers  <joseph@codesourcery.com>
6962
6963         * Makeconfig (test-name): New variable.
6964         (evaluate-test): Likewise.
6965         * Makerules (do-test-clean): Remove .test-result files.
6966         (common-mostlyclean): Likewise.
6967         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
6968         * scripts/evaluate-test.sh: New file.
6969
6970 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
6971
6972         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
6973         separate $(objpfx)tst-fopenloc-cmp.out and
6974         $(objpfx)tst-fopenloc-mem.out targets.
6975         (tests): Update dependencies.
6976         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
6977         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
6978         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
6979         (tst-rxspencer-no-utf8-ARGS): New variable.
6980         (tst-rxspencer-no-utf8-ENV): Likewise.
6981         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
6982         instead of $(objpfx)tst-rxspencer-mem.
6983         ($(objpfx)tst-rxspencer-mem): Change target to
6984         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
6985         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
6986         * posix/tst-rxspencer-no-utf8.c: New file.
6987
6988         * elf/Makefile ($(objpfx)order.out): Remove rule.
6989         [$(run-built-tests) = yes] (tests): Depend on
6990         $(objpfx)order-cmp.out.
6991         ($(objpfx)order-cmp.out): New rule.
6992         [$(run-built-tests) = yes] (tests): Depend on
6993         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
6994         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
6995         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
6996         $(objpfx)tst-array5-static-cmp.out.
6997         ($(objpfx)tst-array1.out): Remove rule.
6998         ($(objpfx)tst-array1-cmp.out): New rule.
6999         ($(objpfx)tst-array1-static.out): Remove rule.
7000         ($(objpfx)tst-array1-static-cmp.out): New rule.
7001         ($(objpfx)tst-array2.out): Remove rule.
7002         ($(objpfx)tst-array2-cmp.out): New rule.
7003         ($(objpfx)tst-array3.out): Remove rule.
7004         ($(objpfx)tst-array3-cmp.out): New rule.
7005         ($(objpfx)tst-array4.out): Remove rule.
7006         ($(objpfx)tst-array4-cmp.out): New rule.
7007         ($(objpfx)tst-array5.out): Remove rule.
7008         ($(objpfx)tst-array5-cmp.out): New rule.
7009         ($(objpfx)tst-array5-static.out): Remove rule.
7010         ($(objpfx)tst-array5-static-cmp.out): New rule.
7011         [$(run-built-tests) = yes] (tests): Depend on
7012         $(objpfx)order2-cmp.out.
7013         ($(objpfx)order2.out): Remove rule.
7014         ($(objpfx)order2-cmp.out): New rule.
7015         ($(objpfx)tst-initorder.out): Remove rule.
7016         [$(run-built-tests) = yes] (tests): Depend on
7017         $(objpfx)tst-initorder-cmp.out.
7018         ($(objpfx)tst-initorder-cmp.out): New rule.
7019         ($(objpfx)tst-initorder2.out): Remove rule.
7020         [$(run-built-tests) = yes] (tests): Depend on
7021         $(objpfx)tst-initorder2-cmp.out.
7022         ($(objpfx)tst-initorder2-cmp.out): New rule.
7023         [$(run-built-tests) = yes] (tests): Depend on
7024         $(objpfx)tst-unused-dep-cmp.out.
7025         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
7026         ($(objpfx)tst-unused-dep-cmp.out): New rule.
7027         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
7028         on $(objpfx)tst-setvbuf1-cmp.out.
7029         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
7030         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
7031         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
7032         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
7033         ($(objpfx)tst-svc.out): Remove rule.
7034         ($(objpfx)tst-svc-cmp.out): New rule.
7035
7036 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
7037
7038         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
7039         * ctype/ctype.h [__USE_MISC]: Likewise.
7040         * dirent/dirent.h [__USE_MISC]: Likewise.
7041         * grp/grp.h [__USE_MISC]: Likewise.
7042         * io/fcntl.h [__USE_MISC]: Likewise.
7043         * io/sys/stat.h [__USE_MISC]: Likewise.
7044         * libio/stdio.h [__USE_MISC]: Likewise.
7045         * posix/unistd.h [__USE_MISC]: Likewise.
7046         * pwd/pwd.h [__USE_MISC]: Likewise.
7047         * stdlib.h [__USE_MISC]: Likewise.
7048         * string/bits/string2.h [__USE_MISC]: Likewise.
7049         * string/string.h [__USE_MISC]: Likewise.
7050         * time/time.h [__USE_MISC]: Likewise.
7051
7052 2014-02-13  Andreas Schwab  <schwab@suse.de>
7053
7054         [BZ #16574]
7055         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
7056         second answer buffer if it was separately allocated.
7057
7058 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
7059
7060         * sysdeps/mips/math-tests.h: Include <features.h>.
7061         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7062         (ROUNDING_TESTS_long_double): Do not define.
7063         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
7064         (EXCEPTION_TESTS_long_double): Likewise.
7065         * sysdeps/mips/mips64/libm-test-ulps: Update.
7066
7067         * include/features.h (__USE_BSD): Remove macro definitions.
7068         (__USE_SVID): Likewise.
7069         (_BSD_SOURCE): Likewise.
7070         (_SVID_SOURCE): Likewise.
7071         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
7072         from definition of _DEFAULT_SOURCE.
7073         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
7074         [_DEFAULT_SOURCE].
7075         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
7076         * bits/mman.h [__USE_BSD]: Likewise.
7077         * bits/termios.h [__USE_BSD]: Likewise.
7078         * bits/waitstatus.h [__USE_BSD]: Likewise.
7079         * ctype/ctype.h [__USE_SVID]: Likewise.
7080         * dirent/dirent.h [__USE_BSD]: Likewise.
7081         * grp/grp.h [__USE_SVID]: Likewise.
7082         [__USE_BSD]: Likewise.
7083         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
7084         * io/fcntl.h [__USE_BSD]: Likewise.
7085         * io/ftw.h [__USE_BSD]: Likewise.
7086         * io/sys/stat.h [__USE_BSD]: Likewise.
7087         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
7088         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
7089         * libio/stdio.h [__USE_SVID]: Likewise.
7090         [__USE_BSD]: Likewise.
7091         * math/math.h [__USE_SVID]: Likewise.
7092         [__USE_BSD]: Likewise.
7093         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
7094         * misc/bits/syslog.h [__USE_BSD]: Likewise.
7095         * misc/search.h [__USE_SVID]: Likewise.
7096         * misc/sys/mman.h [__USE_BSD]: Likewise.
7097         * misc/sys/syslog.h [__USE_BSD]: Likewise.
7098         * misc/sys/uio.h [__USE_BSD]: Likewise.
7099         * posix/bits/unistd.h [__USE_BSD]: Likewise.
7100         * posix/glob.h [__USE_BSD]: Likewise.
7101         * posix/regex.h [__USE_BSD]: Likewise.
7102         * posix/sys/types.h [__USE_BSD]: Likewise.
7103         [__USE_SVID]: Likewise.
7104         * posix/sys/utsname.h [__USE_SVID]: Likewise.
7105         * posix/sys/wait.h [__USE_BSD]: Likewise.
7106         [__USE_SVID]: Likewise.
7107         * posix/unistd.h [__USE_BSD]: Likewise.
7108         [__USE_SVID]: Likewise.
7109         * pwd/pwd.h [__USE_SVID]: Likewise.
7110         * resolv/netdb.h [__USE_BSD]: Likewise.
7111         * setjmp/setjmp.h [__USE_BSD]: Likewise.
7112         * signal/signal.h [__USE_BSD]: Likewise.
7113         [__USE_SVID]: Likewise.
7114         * socket/sys/socket.h [__USE_BSD]: Likewise.
7115         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
7116         * stdlib/stdlib.h [__USE_BSD]: Likewise.
7117         [__USE_SVID]: Likewise.
7118         * string/bits/string2.h [__USE_BSD]: Likewise.
7119         [__USE_SVID]: Likewise.
7120         * string/bits/string3.h [__USE_BSD]: Likewise.
7121         * string/endian.h [__USE_BSD]: Likewise.
7122         * string/string.h [__USE_SVID]: Likewise.
7123         [__USE_BSD]: Likewise.
7124         * string/strings.h [__USE_BSD]: Likewise.
7125         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
7126         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
7127         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
7128         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
7129         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
7130         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
7131         Likewise.
7132         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
7133         Likewise.
7134         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
7135         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
7136         Likewise.
7137         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
7138         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
7139         Likewise.
7140         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
7141         Likewise.
7142         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
7143         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
7144         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
7145         Likewise.
7146         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
7147         Likewise.
7148         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
7149         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
7150         * termios/termios.h [__USE_BSD]: Likewise.
7151         * time/sys/time.h [__USE_BSD]: Likewise.
7152         * time/time.h [__USE_BSD]: Likewise.
7153         [__USE_SVID]: Likewise.
7154
7155         * Makefile (subdir_targets): Remove subdir_lint.out.
7156
7157         * stdio-common/Makefile (do-tst-unbputc): Remove target.
7158         (do-tst-printf): Likewise.
7159         (tests): Depend directly on $(objpfx)tst-unbputc.out and
7160         $(objpfx)tst-printf.out.
7161
7162         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
7163
7164         * Makerules (check-abi-%): Change target to
7165         $(objpfx)check-abi-%.out.
7166         (check-abi target): Update dependencies.
7167         (check-abi-pattern variable): Redirect output of diff to $@.
7168         (check-abi variable): Likewise.
7169         * elf/Makefile (check-abi): Update dependencies.
7170
7171         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
7172         unused.
7173         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
7174         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
7175         subnormal range.
7176         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
7177         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
7178         value has largest subnormal exponent.
7179         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
7180         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
7181         * sysdeps/aarch64/soft-fp/sfp-machine.h
7182         (_FP_TININESS_AFTER_ROUNDING): New macro.
7183         * sysdeps/alpha/soft-fp/sfp-machine.h
7184         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7185         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7186         Likewise.
7187         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
7188         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7189         * sysdeps/mips/soft-fp/sfp-machine.h
7190         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7191         * sysdeps/powerpc/soft-fp/sfp-machine.h
7192         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7193         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7194         Likewise.
7195         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
7196         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7197         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
7198         (_FP_TININESS_AFTER_ROUNDING): Likewise.
7199         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
7200         Likewise.
7201
7202 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
7203
7204         [BZ #16545]
7205         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
7206         model 1.
7207
7208 2014-02-12  Richard Henderson  <rth@redhat.com>
7209
7210         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
7211         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
7212         * sysdeps/unix/sysv/linux/alpha: Move directory from
7213         ports/sysdeps/unix/sysv/linux/alpha.
7214         * README: Update listing for alpha-*-linux-gnu.
7215
7216 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
7217
7218         * include/features.h: Update comment documenting feature test
7219         macros.
7220         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
7221         _DEFAULT_SOURCE.
7222         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
7223         (_SVID_SOURCE): Likewise.
7224         (_DEFAULT_SOURCE): Update description of default features.
7225         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
7226         with _GNU_SOURCE.
7227         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
7228         (S_ISVTX): Likewise.
7229         * manual/math.texi (Mathematical Constants): Likewise.
7230         * manual/signal.texi (Interrupted Primitives): Likewise.
7231         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
7232         * math/test-matherr.c (_SVID_SOURCE): Do not define.
7233         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
7234         Don't refer to _SVID_SOURCE in warning text.
7235
7236         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7237
7238         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
7239         already defined.
7240         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
7241         * sysdeps/mips/dl-lookup.c: Remove.
7242         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
7243
7244 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
7245
7246         [BZ #16447]
7247         * math/auto-libm-test-in: Add testcase for expl.
7248         * math/auto-libm-test-out: Regenerate.
7249         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
7250         calculation of unsafe.
7251         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
7252
7253 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7254
7255         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
7256         * sysdeps/unix/sysv/linux/aarch64: Move directory from
7257         ports/sysdeps/unix/sysv/linux/aarch64.
7258         * README: Update listing for aarch64*-*-linux-gnu.
7259
7260 2014-02-11  Will Newton  <will.newton@linaro.org>
7261
7262         * manual/probes.texi (Mathematical Function Probes): Use
7263         "triggered" instead of "hit".
7264
7265         * manual/probes.texi (Internal Probes): Add documentation
7266         of setjmp, longjmp and longjmp_target probes.
7267
7268         * include/stap-probe.h: Add comment about probe argument
7269         format.
7270
7271         * malloc/mtrace.c (attribute_hidden): Remove unused macro
7272         definition.  (tr_where, tr_freehook, tr_mallochook,
7273         tr_reallochook, tr_memalignhook): Use ANSI protoype.
7274
7275 2014-02-11  David S. Miller  <davem@davemloft.net>
7276
7277         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
7278         processing int_tests.
7279
7280 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
7281
7282         * sysdeps/mips: Move directory from ports/sysdeps/mips.
7283         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
7284         * sysdeps/unix/sysv/linux/mips: Move directory from
7285         ports/sysdeps/unix/sysv/linux/mips.
7286         * README: Update listing for mips-*-linux-gnu and
7287         mips64-*-linux-gnu.
7288
7289 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
7290
7291         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
7292         * sysdeps/unix/sysv/linux/m68k: Move directory from
7293         ports/sysdeps/unix/sysv/linux/m68k.
7294         * README: Update listing for m68k-*-linux-gnu.
7295
7296 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
7297
7298         * sysdeps/tile: Move directory from ports/sysdeps/tile.
7299         * sysdeps/unix/sysv/linux/generic: Move directory from
7300         ports/sysdeps/unix/sysv/linux/generic.
7301         * sysdeps/unix/sysv/linux/tile: Move directory from
7302         ports/sysdeps/unix/sysv/linux/tile.
7303         * README: Update listing for tile*-*-linux-gnu.
7304
7305 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
7306
7307         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
7308         __builtin_expect.
7309         * benchtests/bench-memmem.c (simple_memmem): Likewise.
7310         * catgets/open_catalog.c (__open_catalog): Likewise.
7311         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
7312         * debug/confstr_chk.c: Likewise.
7313         * debug/fread_chk.c (__fread_chk): Likewise.
7314         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
7315         * debug/getgroups_chk.c: Likewise.
7316         * debug/mbsnrtowcs_chk.c: Likewise.
7317         * debug/mbsrtowcs_chk.c: Likewise.
7318         * debug/mbstowcs_chk.c: Likewise.
7319         * debug/memcpy_chk.c: Likewise.
7320         * debug/memmove_chk.c: Likewise.
7321         * debug/mempcpy_chk.c: Likewise.
7322         * debug/memset_chk.c: Likewise.
7323         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
7324         * debug/strcat_chk.c (__strcat_chk): Likewise.
7325         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
7326         * debug/strncat_chk.c (__strncat_chk): Likewise.
7327         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
7328         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
7329         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
7330         * debug/wcpncpy_chk.c: Likewise.
7331         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
7332         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
7333         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
7334         * debug/wcsncpy_chk.c: Likewise.
7335         * debug/wcsnrtombs_chk.c: Likewise.
7336         * debug/wcsrtombs_chk.c: Likewise.
7337         * debug/wcstombs_chk.c: Likewise.
7338         * debug/wmemcpy_chk.c: Likewise.
7339         * debug/wmemmove_chk.c: Likewise.
7340         * debug/wmempcpy_chk.c: Likewise.
7341         * debug/wmemset_chk.c: Likewise.
7342         * dirent/scandirat.c (SCANDIRAT): Likewise.
7343         * dlfcn/dladdr1.c (dladdr1): Likewise.
7344         * dlfcn/dladdr.c (dladdr): Likewise.
7345         * dlfcn/dlclose.c (dlclose_doit): Likewise.
7346         * dlfcn/dlerror.c (__dlerror): Likewise.
7347         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
7348         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
7349         * dlfcn/dlopen.c (dlopen_doit): Likewise.
7350         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
7351         * dlfcn/dlsym.c (dlsym_doit): Likewise.
7352         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
7353         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
7354         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
7355         Likewise.
7356         * elf/dl-conflict.c: Likewise.
7357         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
7358         * elf/dl-dst.h: Likewise.
7359         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
7360         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
7361         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
7362         * elf/dl-init.c (call_init, _dl_init): Likewise.
7363         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
7364         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
7365         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
7366         Likewise.
7367         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
7368         Likewise.
7369         * elf/dl-minimal.c (__libc_memalign): Likewise.
7370         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
7371         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
7372         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
7373         * elf/dl-sym.c (do_sym): Likewise.
7374         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
7375         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
7376         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
7377         * elf/dl-writev.h (_dl_writev): Likewise.
7378         * elf/ldconfig.c (search_dir): Likewise.
7379         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
7380         (dl_main): Likewise.
7381         * elf/setup-vdso.h (setup_vdso): Likewise.
7382         * grp/compat-initgroups.c (compat_call): Likewise.
7383         * grp/fgetgrent.c (fgetgrent): Likewise.
7384         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
7385         * grp/putgrent.c (putgrent): Likewise.
7386         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7387         Likewise.
7388         * hurd/hurdinit.c: Likewise.
7389         * iconvdata/8bit-gap.c (struct): Likewise.
7390         * iconvdata/ansi_x3.110.c : Likewise.
7391         * iconvdata/big5.c : Likewise.
7392         * iconvdata/big5hkscs.c : Likewise.
7393         * iconvdata/cp1255.c: Likewise.
7394         * iconvdata/cp1258.c : Likewise.
7395         * iconvdata/cp932.c : Likewise.
7396         * iconvdata/euc-cn.c: Likewise.
7397         * iconvdata/euc-jisx0213.c : Likewise.
7398         * iconvdata/euc-jp.c: Likewise.
7399         * iconvdata/euc-jp-ms.c : Likewise.
7400         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
7401         * iconvdata/gb18030.c : Likewise.
7402         * iconvdata/gbbig5.c (const): Likewise.
7403         * iconvdata/gbgbk.c: Likewise.
7404         * iconvdata/gbk.c : Likewise.
7405         * iconvdata/ibm1364.c : Likewise.
7406         * iconvdata/ibm930.c : Likewise.
7407         * iconvdata/ibm932.c: Likewise.
7408         * iconvdata/ibm933.c : Likewise.
7409         * iconvdata/ibm935.c : Likewise.
7410         * iconvdata/ibm937.c : Likewise.
7411         * iconvdata/ibm939.c : Likewise.
7412         * iconvdata/ibm943.c: Likewise.
7413         * iconvdata/iso_11548-1.c: Likewise.
7414         * iconvdata/iso-2022-cn.c : Likewise.
7415         * iconvdata/iso-2022-cn-ext.c : Likewise.
7416         * iconvdata/iso-2022-jp-3.c: Likewise.
7417         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
7418         * iconvdata/iso-2022-kr.c : Likewise.
7419         * iconvdata/iso646.c (gconv_end): Likewise.
7420         * iconvdata/iso_6937-2.c : Likewise.
7421         * iconvdata/iso_6937.c : Likewise.
7422         * iconvdata/iso8859-1.c: Likewise.
7423         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
7424         * iconvdata/shift_jisx0213.c : Likewise.
7425         * iconvdata/sjis.c : Likewise.
7426         * iconvdata/t.61.c : Likewise.
7427         * iconvdata/tcvn5712-1.c : Likewise.
7428         * iconvdata/tscii.c: Likewise.
7429         * iconvdata/uhc.c : Likewise.
7430         * iconvdata/unicode.c (gconv_end): Likewise.
7431         * iconvdata/utf-16.c (gconv_end): Likewise.
7432         * iconvdata/utf-32.c (gconv_end): Likewise.
7433         * iconvdata/utf-7.c (base64): Likewise.
7434         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7435         * iconv/gconv_close.c (__gconv_close): Likewise.
7436         * iconv/gconv_open.c (__gconv_open): Likewise.
7437         * iconv/gconv_simple.c (internal_ucs4_loop_single)
7438         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
7439         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
7440         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
7441         (ucs4le_internal_loop_single): Likewise.
7442         * iconv/iconv.c (iconv): Likewise.
7443         * iconv/iconv_close.c: Likewise.
7444         * iconv/loop.c (SINGLE): Likewise.
7445         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
7446         * include/atomic.h: Likewise.
7447         * inet/inet6_option.c (option_alloc): Likewise.
7448         * intl/bindtextdom.c (set_binding_values): Likewise.
7449         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
7450         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
7451         * intl/localealias.c (read_alias_file): Likewise.
7452         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
7453         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
7454         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
7455         * libio/fmemopen.c (fmemopen): Likewise.
7456         * libio/iofgets.c (_IO_fgets): Likewise.
7457         * libio/iofgets_u.c (fgets_unlocked): Likewise.
7458         * libio/iofgetws.c (fgetws): Likewise.
7459         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
7460         * libio/iogetdelim.c (_IO_getdelim): Likewise.
7461         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
7462         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
7463         * locale/findlocale.c (_nl_find_locale): Likewise.
7464         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7465         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
7466         Likewise.
7467         * locale/setlocale.c (setlocale): Likewise.
7468         * login/programs/pt_chown.c (main): Likewise.
7469         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
7470         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
7471         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
7472         (mmap, mmap64, mremap, munmap): Likewise.
7473         * math/e_exp2l.c: Likewise.
7474         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
7475         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
7476         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
7477         * math/s_catan.c (__catan): Likewise.
7478         * math/s_catanf.c (__catanf): Likewise.
7479         * math/s_catanh.c (__catanh): Likewise.
7480         * math/s_catanhf.c (__catanhf): Likewise.
7481         * math/s_catanhl.c (__catanhl): Likewise.
7482         * math/s_catanl.c (__catanl): Likewise.
7483         * math/s_ccosh.c (__ccosh): Likewise.
7484         * math/s_ccoshf.c (__ccoshf): Likewise.
7485         * math/s_ccoshl.c (__ccoshl): Likewise.
7486         * math/s_cexp.c (__cexp): Likewise.
7487         * math/s_cexpf.c (__cexpf): Likewise.
7488         * math/s_cexpl.c (__cexpl): Likewise.
7489         * math/s_clog10.c (__clog10): Likewise.
7490         * math/s_clog10f.c (__clog10f): Likewise.
7491         * math/s_clog10l.c (__clog10l): Likewise.
7492         * math/s_clog.c (__clog): Likewise.
7493         * math/s_clogf.c (__clogf): Likewise.
7494         * math/s_clogl.c (__clogl): Likewise.
7495         * math/s_csin.c (__csin): Likewise.
7496         * math/s_csinf.c (__csinf): Likewise.
7497         * math/s_csinh.c (__csinh): Likewise.
7498         * math/s_csinhf.c (__csinhf): Likewise.
7499         * math/s_csinhl.c (__csinhl): Likewise.
7500         * math/s_csinl.c (__csinl): Likewise.
7501         * math/s_csqrt.c (__csqrt): Likewise.
7502         * math/s_csqrtf.c (__csqrtf): Likewise.
7503         * math/s_csqrtl.c (__csqrtl): Likewise.
7504         * math/s_ctan.c (__ctan): Likewise.
7505         * math/s_ctanf.c (__ctanf): Likewise.
7506         * math/s_ctanh.c (__ctanh): Likewise.
7507         * math/s_ctanhf.c (__ctanhf): Likewise.
7508         * math/s_ctanhl.c (__ctanhl): Likewise.
7509         * math/s_ctanl.c (__ctanl): Likewise.
7510         * math/w_pow.c: Likewise.
7511         * math/w_powf.c: Likewise.
7512         * math/w_powl.c: Likewise.
7513         * math/w_scalb.c (sysv_scalb): Likewise.
7514         * math/w_scalbf.c (sysv_scalbf): Likewise.
7515         * math/w_scalbl.c (sysv_scalbl): Likewise.
7516         * misc/error.c (error_tail): Likewise.
7517         * misc/pselect.c (__pselect): Likewise.
7518         * nis/nis_callback.c (__nis_create_callback): Likewise.
7519         * nis/nis_call.c (__nisfind_server): Likewise.
7520         * nis/nis_creategroup.c (nis_creategroup): Likewise.
7521         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
7522         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
7523         * nis/nis_getservlist.c (nis_getservlist): Likewise.
7524         * nis/nis_lookup.c (nis_lookup): Likewise.
7525         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
7526         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
7527         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
7528         * nis/nis_xdr.c (xdr_endpoint): Likewise.
7529         * nis/nss_compat/compat-grp.c (getgrent_next_file)
7530         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
7531         * nis/nss_compat/compat-initgroups.c (add_group)
7532         (internal_getgrent_r): Likewise.
7533         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
7534         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
7535         * nis/nss_compat/compat-spwd.c (getspent_next_file)
7536         (internal_getspnam_r): Likewise.
7537         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
7538         (_nss_nis_getaliasbyname_r): Likewise.
7539         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
7540         (_nss_nis_getntohost_r): Likewise.
7541         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
7542         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
7543         (_nss_nis_getgrgid_r): Likewise.
7544         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
7545         (internal_nis_gethostent_r, internal_gethostbyname2_r)
7546         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
7547         (_nss_nis_gethostbyname4_r): Likewise.
7548         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
7549         (initgroups_netid): Likewise.
7550         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
7551         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
7552         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
7553         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
7554         (_nss_nis_getprotobynumber_r): Likewise.
7555         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
7556         (_nss_nis_getsecretkey): Likewise.
7557         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
7558         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
7559         (_nss_nis_getpwuid_r): Likewise.
7560         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
7561         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
7562         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
7563         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
7564         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
7565         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
7566         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
7567         Likewise.
7568         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
7569         (_nss_nisplus_getntohost_r): Likewise.
7570         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
7571         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
7572         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
7573         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
7574         Likewise.
7575         * nis/nss_nisplus/nisplus-initgroups.c
7576         (_nss_nisplus_initgroups_dyn): Likewise.
7577         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
7578         (_nss_nisplus_getnetbyaddr_r): Likewise.
7579         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
7580         (_nss_nisplus_getprotobynumber_r): Likewise.
7581         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
7582         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
7583         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
7584         Likewise.
7585         * nis/nss_nisplus/nisplus-service.c
7586         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
7587         (_nss_nisplus_getservbyport_r): Likewise.
7588         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
7589         (_nss_nisplus_getspnam_r): Likewise.
7590         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
7591         Likewise.
7592         * nscd/aicache.c (addhstaiX): Likewise.
7593         * nscd/cache.c (cache_search, prune_cache): Likewise.
7594         * nscd/connections.c (register_traced_file, send_ro_fd)
7595         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
7596         (main_loop_epoll): Likewise.
7597         * nscd/grpcache.c (addgrbyX): Likewise.
7598         * nscd/hstcache.c (addhstbyX): Likewise.
7599         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7600         * nscd/mem.c (gc, mempool_alloc): Likewise.
7601         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
7602         (addinnetgrX): Likewise.
7603         * nscd/nscd-client.h (__nscd_acquire_maplock)
7604         (__nscd_drop_map_ref): Likewise.
7605         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7606         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7607         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
7608         Likewise.
7609         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7610         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7611         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
7612         (__nscd_get_map_ref): Likewise.
7613         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7614         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
7615         Likewise.
7616         * nscd/pwdcache.c (addpwbyX): Likewise.
7617         * nscd/selinux.c (preserve_capabilities): Likewise.
7618         * nscd/servicescache.c (addservbyX): Likewise.
7619         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
7620         * posix/fnmatch.c (fnmatch): Likewise.
7621         * posix/getopt.c (_getopt_internal_r): Likewise.
7622         * posix/glob.c (glob, glob_in_dir): Likewise.
7623         * posix/wordexp.c (exec_comm_child): Likewise.
7624         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
7625         (getanswer_r, gaih_getanswer_slice): Likewise.
7626         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
7627         * resolv/res_init.c: Likewise.
7628         * resolv/res_mkquery.c (res_nmkquery): Likewise.
7629         * resolv/res_query.c (__libc_res_nquery): Likewise.
7630         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
7631         Likewise.
7632         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
7633         * stdio-common/perror.c (perror): Likewise.
7634         * stdio-common/printf_fp.c (___printf_fp): Likewise.
7635         * stdio-common/tmpnam.c (tmpnam): Likewise.
7636         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
7637         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
7638         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
7639         Likewise.
7640         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
7641         * stdlib/putenv.c (putenv): Likewise.
7642         * stdlib/setenv.c (__add_to_environ): Likewise.
7643         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
7644         * stdlib/strtol_l.c (INTERNAL): Likewise.
7645         * string/memmem.c (memmem): Likewise.
7646         * string/strerror.c (strerror): Likewise.
7647         * string/strnlen.c (__strnlen): Likewise.
7648         * string/test-memmem.c (simple_memmem): Likewise.
7649         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
7650         * sunrpc/pm_getport.c (__get_socket): Likewise.
7651         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
7652         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7653         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
7654         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
7655         Likewise.
7656         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
7657         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
7658         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
7659         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
7660         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7661         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
7662         Likewise.
7663         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
7664         Likewise.
7665         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7666         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7667         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7668         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
7669         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
7670         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
7671         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
7672         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
7673         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
7674         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
7675         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7676         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
7677         Likewise.
7678         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
7679         Likewise.
7680         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
7681         Likewise.
7682         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
7683         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7684         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
7685         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
7686         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
7687         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
7688         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
7689         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
7690         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
7691         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
7692         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
7693         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7694         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
7695         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
7696         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7697         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7698         Likewise.
7699         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
7700         Likewise.
7701         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
7702         Likewise.
7703         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
7704         Likewise.
7705         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7706         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7707         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
7708         Likewise.
7709         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
7710         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
7711         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7712         * sysdeps/posix/sleep.c: Likewise.
7713         * sysdeps/posix/tempname.c: Likewise.
7714         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
7715         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
7716         Likewise.
7717         * sysdeps/powerpc/powerpc32/dl-machine.h
7718         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
7719         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
7720         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
7721         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
7722         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
7723         Likewise.
7724         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
7725         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
7726         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7727         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
7728         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
7729         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
7730         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
7731         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
7732         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7733         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
7734         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
7735         (elf_machine_lazy_rel): Likewise.
7736         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
7737         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
7738         (elf_machine_lazy_rel): Likewise.
7739         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
7740         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
7741         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
7742         * sysdeps/unix/grantpt.c (grantpt): Likewise.
7743         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
7744         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
7745         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7746         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
7747         Likewise.
7748         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
7749         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
7750         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
7751         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
7752         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
7753         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
7754         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
7755         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
7756         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
7757         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7758         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
7759         Likewise.
7760         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
7761         (__posix_fallocate64_l64): Likewise.
7762         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
7763         (posix_fallocate): Likewise.
7764         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
7765         Likewise.
7766         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7767         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
7768         (getifaddrs_internal): Likewise.
7769         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
7770         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
7771         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
7772         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
7773         * sysdeps/unix/sysv/linux/posix_fallocate64.c
7774         (__posix_fallocate64_l64): Likewise.
7775         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
7776         Likewise.
7777         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
7778         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
7779         (__get_clockfreq): Likewise.
7780         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
7781         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
7782         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
7783         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7784         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7785         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
7786         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
7787         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
7788         Likewise.
7789         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
7790         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
7791         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
7792         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
7793         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
7794         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
7795         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
7796         Likewise.
7797         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7798         (posix_fallocate): Likewise.
7799         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7800         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
7801         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
7802         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
7803         (elf_machine_rela, elf_machine_rela_relative)
7804         (elf_machine_lazy_rel): Likewise.
7805         * time/asctime.c (asctime_internal): Likewise.
7806         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
7807         * time/tzset.c (__tzset_parse_tz): Likewise.
7808         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
7809         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
7810         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
7811         * wcsmbs/wcsmbsload.h: Likewise.
7812
7813         [BZ #15894]
7814         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
7815
7816         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
7817         (arena_get2): Remove THREAD_STATS conditionals.
7818         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
7819         (__malloc_stats, int): Likewise.
7820
7821 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
7822
7823         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
7824         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
7825
7826         * manual/setjmp.texi: Fix typos/grammar errors.
7827
7828         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
7829         Only return early when n is <= 0.  Delete unused return statement.
7830
7831         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
7832         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
7833         * debug/tst-longjmp_chk3.c: New file.
7834
7835         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
7836         (test_main): Replace code with set_fortify_handler call.
7837         * debug/test-strcpy_chk.c: Likewise.
7838         * debug/tst-chk1.c: Likewise.
7839         * debug/tst-longjmp_chk.c: Likewise.
7840         * test-skeleton.c: Include fcntl.h & paths.h
7841         (set_fortify_handler): Define.
7842
7843         * debug/tst-longjmp_chk.c: Add header comment and include
7844         ../test-skeleton.c.
7845         (do_test): Mark static.
7846         (TEST_FUNCTION): Define.
7847
7848         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
7849         (IP_PMTUDISC_INTERFACE): Likewise.
7850         (IP_MULTICAST_IF): Likewise.
7851         (IP_MULTICAST_TTL): Likewise.
7852         (IP_MULTICAST_LOOP): Likewise.
7853         (IP_ADD_MEMBERSHIP): Likewise.
7854         (IP_DROP_MEMBERSHIP): Likewise.
7855         (IP_UNBLOCK_SOURCE): Likewise.
7856         (IP_BLOCK_SOURCE): Likewise.
7857         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
7858         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
7859         (IP_MSFILTER): Likewise.
7860         (MCAST_JOIN_GROUP): Likewise.
7861         (MCAST_BLOCK_SOURCE): Likewise.
7862         (MCAST_UNBLOCK_SOURCE): Likewise.
7863         (MCAST_LEAVE_GROUP): Likewise.
7864         (MCAST_JOIN_SOURCE_GROUP): Likewise.
7865         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
7866         (MCAST_MSFILTER): Likewise.
7867         (IP_MULTICAST_ALL): Likewise.
7868         (IP_UNICAST_IF): Likewise.
7869
7870         * timezone/Makefile: Delete $(have-ksh) check.
7871         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
7872         * timezone/tzselect.ksh: Add +x mode bits.
7873
7874         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
7875         (ANON_INODE_FS_MAGIC): Likewise.
7876         (BDEVFS_MAGIC): Likewise.
7877         (BINFMTFS_MAGIC): Likewise.
7878         (BTRFS_TEST_MAGIC): Likewise.
7879         (CRAMFS_MAGIC_WEND): Likewise.
7880         (DEBUGFS_MAGIC): Likewise.
7881         (ECRYPTFS_SUPER_MAGIC): Likewise.
7882         (EXT3_SUPER_MAGIC): Likewise.
7883         (EXT4_SUPER_MAGIC): Likewise.
7884         (FUTEXFS_SUPER_MAGIC): Likewise.
7885         (HOSTFS_SUPER_MAGIC): Likewise.
7886         (HUGETLBFS_MAGIC): Likewise.
7887         (MINIX3_SUPER_MAGIC): Likewise.
7888         (MTD_INODE_FS_MAGIC): Likewise.
7889         (NILFS_SUPER_MAGIC): Likewise.
7890         (OPENPROM_SUPER_MAGIC): Likewise.
7891         (PIPEFS_MAGIC): Likewise.
7892         (PSTOREFS_MAGIC): Likewise.
7893         (QNX6_SUPER_MAGIC): Likewise.
7894         (RAMFS_MAGIC): Likewise.
7895         (REISERFS_SUPER_MAGIC_STRING): Likewise.
7896         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
7897         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
7898         (SECURITYFS_MAGIC): Likewise.
7899         (SELINUX_MAGIC): Likewise.
7900         (SMACK_MAGIC): Likewise.
7901         (SOCKFS_MAGIC): Likewise.
7902         (SQUASHFS_MAGIC): Likewise.
7903         (STACK_END_MAGIC): Likewise.
7904         (TMPFS_MAGIC): Likewise.
7905         (USBDEVICE_SUPER_MAGIC): Likewise.
7906         (V9FS_MAGIC): Likewise.
7907         (XENFS_SUPER_MAGIC): Likewise.
7908         (CRAMFS_MAGIC): Fix typo in comment.
7909         (EXT2_SUPER_MAGIC): Update comment.
7910         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
7911
7912 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
7913
7914         * sysdeps/arm: Move directory from ports/sysdeps/arm.
7915         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
7916         * sysdeps/unix/sysv/linux/arm: Move directory from
7917         ports/sysdeps/unix/sysv/linux/arm.
7918         * README: Update listing for arm-*-linux-gnueabi.
7919
7920         * README: Remove mention of am33.
7921
7922 2014-02-07  Roland McGrath  <roland@hack.frob.com>
7923
7924         * bits/sigset.h (__sigemptyset): Use a statement expression rather
7925         than the comma operator, to avoid "rhs of comma has no effect"
7926         compiler warnings.
7927         (__sigfillset, __sigandset, __sigorset): Likewise.
7928         * include/signal.h (__sigemptyset): Likewise.
7929         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
7930
7931 2014-02-07  Allan McRae  <allan@archlinux.org>
7932
7933         * version.h (RELEASE): Set to "development".
7934         (VERSION): Set to "2.19.90"
7935         * NEWS: Add 2.20 section.
7936
7937 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
7938
7939         [BZ #16529]
7940         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
7941
7942 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
7943
7944         * manual/contrib.texi: Update entry for Carlos O'Donell,
7945         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
7946
7947 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
7948
7949         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
7950
7951         * sysdeps/unix/sysv/linux/kernel-features.h
7952         [__LINUX_KERNEL_VERSION >= 0x020621]
7953         (__ASSUME_PROC_PID_TASK_COMM): Define.
7954
7955 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7956
7957         [BZ #16398]
7958         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
7959         conversion when destination buffer does not have enough space.
7960         * libio/tst-ftell-partial-wide.c: New test case.
7961         * libio/Makefile (tests): Add tst-ftell-partial-wide.
7962
7963         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
7964         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
7965         Leonard and Allan McRae.
7966
7967 2014-02-04  David S. Miller  <davem@davemloft.net>
7968
7969         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
7970         32-bit.
7971
7972 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7973
7974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
7975         New file
7976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
7977         New file
7978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
7979         New file.
7980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
7981         New file.
7982         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
7983         New file.
7984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
7985         New file.
7986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
7987         New file.
7988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
7989         New file.
7990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
7991         New file.
7992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
7993         New file.
7994         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
7995         New file.
7996         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
7997         New file.
7998         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
7999         New file.
8000
8001 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8002
8003         * nptl/shlib-versions: Change powerpc*le start to 2.17.
8004         * shlib-versions: Likewise.
8005
8006 2014-02-04  Roland McGrath  <roland@hack.frob.com>
8007             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8008
8009         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
8010         (abilist-pattern): New variable, set to %-le.abilist.
8011
8012         * Makerules (abilist-pattern): New variable.
8013         (vpath): Use $(abilist-pattern) in place of %.abilist.
8014         (check-abi-% pattern rule): Likewise.
8015         (check-abi, update-abi): Likewise.
8016
8017 2014-02-04  Eric Wong  <normalperson@yhbt.net>
8018
8019         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8020
8021 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
8022
8023         * manual/startup.texi: Add next, previous, and top entries for
8024         the `Program Arguments' and `Environment Variables' nodes.
8025
8026 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
8027
8028         * manual/macros.texi: Add comments before MTASC-safety macros.
8029
8030         * manual/users.texi: Document MTASC-safety properties.
8031
8032         * manual/threads.texi (pthread_key_create, pthread_key_delete)
8033         (pthread_getspecific, pthread_setspecific): Format with
8034         @deftypefun, and add @safety note.
8035         * manual/signal.texi: Move comments that analyze the above
8036         functions to their home place.
8037
8038 2014-02-03  Allan McRae  <allan@archlinux.org>
8039
8040         * po/sl.po: Update Slovenian translation from translation project.
8041
8042 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
8043
8044         * manual/time.texi (timegm): Add missing blank after @c.
8045         Reported by Joseph Myers <joseph@codesourcery.com>.
8046
8047 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
8048
8049         * manual/check-safety.sh: New.
8050         * manual/Makefile ($(objpfx)stamp-summary): Run it.
8051
8052         * manual/terminal.texi: Document MTASC-safety properties.
8053
8054         * manual/filesys.texi: Document MTASC-safety properties.
8055
8056         * manual/errno.texi: Document MTASC-safety properties.
8057
8058         * manual/intro.texi: Document safety identifiers and
8059         conditionals.
8060
8061         * manual/string.texi (wcstok): Fix prototype.
8062         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
8063
8064         * manual/time.texi: Document MTASC-safety properties.
8065
8066         * manual/string.texi: Document MTASC-safety properties.
8067
8068         * manual/threads.texi: Document MTASC-safety properties.
8069
8070         * manual/stdio.texi: Document MTASC-safety properties.
8071
8072         * manual/syslog.texi: Document MTASC-safety properties.
8073
8074         * manual/sysinfo.texi: Document MTASC-safety properties.
8075
8076         * manual/startup.texi: Document MTASC-safety properties.
8077
8078         * manual/socket.texi: Document MTASC-safety properties.
8079
8080         * manual/signal.texi: Document MTASC-safety properties.
8081
8082 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
8083
8084         * manual/setjmp.texi: Document MTASC-safety properties.
8085
8086         * manual/search.texi: Document MTASC-safety properties.
8087
8088         * manual/resource.texi: Document MTASC-safety properties.
8089
8090         * manual/process.texi: Document MTASC-safety properties.
8091
8092         * manual/platform.texi: Document MTASC-safety properties.
8093
8094         * manual/pipe.texi: Document MTASC-safety properties.
8095
8096         * manual/pattern.texi: Document MTASC-safety properties.
8097
8098         * manual/message.texi: Document MTASC-safety properties.
8099
8100         [BZ #12751]
8101         * manual/memory.texi: Document MTASC-safety properties.
8102
8103         * manual/math.texi: Document MTASC-safety properties.
8104
8105         * manual/locale.texi: Document MTASC-safety properties.
8106
8107         * manual/llio.texi: Document MTASC-safety properties.
8108
8109         * manual/libdl.texi: New.
8110
8111         * manual/lang.texi: Document MTASC-safety properties.
8112
8113         * manual/job.texi: Document MTASC-safety properties.
8114
8115         * manual/getopt.texi: Document MTASC-safety properties.
8116
8117         * manual/ctype.texi: Document MTASC-safety properties.
8118
8119 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
8120
8121         [BZ #16046]
8122         * csu/libc-tls.c (static_map): Remove variable.
8123         (__libc_setup_tls): Use main executable's link map for TLS data.
8124         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
8125         casing for LM_ID_BASE and GL(dl_nns).
8126         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
8127         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
8128         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
8129         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
8130         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
8131         member.
8132         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
8133         l_phnum members.
8134
8135 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
8136
8137         * manual/debug.texi: Document MTASC-safety properties.
8138
8139 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
8140
8141         [BZ #16510]
8142         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
8143         of __x86_64__ when disabling x87 inline functions.
8144
8145 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
8146
8147         * manual/charset.texi: Document MTASC-safety properties.
8148
8149         * manual/crypt.texi: Document MTASC-safety properties.
8150
8151         * manual/conf.texi: Document MTASC-safety properties.
8152
8153         * manual/arith.texi: Document MTASC-safety properties.
8154
8155         * manual/argp.texi: Document MTASC-safety properties.
8156
8157         * manual/macros.texi: Introduce macros to document multi
8158         thread, asynchronous signal and asynchronous cancellation
8159         safety properties.
8160         * manual/intro.texi: Introduce the properties themselves.
8161
8162 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8163
8164         * sysdeps/sh/sh4/Makefile: New file.
8165
8166 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
8167
8168         * math/gen-libm-test.pl ($srcdir): New variable.
8169         ($auto_input): Use it.
8170
8171 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8172
8173         [BZ #16506]
8174         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
8175         access beyond array bounds when parsing netgroups file.
8176
8177         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
8178         the old buffer before realloc.
8179
8180 2014-01-27  Allan McRae  <allan@archlinux.org>
8181
8182         * po/fr.po: Update French translation from translation project.
8183
8184 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8185
8186         * sysdeps/sh/libm-test-ulps: Regenerate.
8187
8188 2014-01-24  David S. Miller  <davem@davemloft.net>
8189
8190         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
8191
8192 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8193
8194         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
8195         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
8196
8197 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
8198
8199         [BZ #16474]
8200         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
8201         string pointers after reallocation.
8202
8203 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8204
8205         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
8206         __SH4A__ instead of __SH_FPU_ANY__.
8207
8208 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8209
8210         * sysdeps/sh/fpu_control.h: New file.
8211         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
8212         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
8213         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
8214         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
8215         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
8216         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
8217         * sysdeps/sh/sys/ucontext.h: Remove.
8218         * sysdeps/sh/sys: Remove directory.
8219
8220 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8221
8222         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
8223         s390/sys/ucontext.h.
8224         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
8225         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
8226
8227 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
8228
8229         [BZ #15605]
8230         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
8231
8232 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8233
8234         [BZ#16431]
8235         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8236         Adjust the vDSO correctly for internal calls.
8237         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
8238
8239 2014-01-20  Allan McRae  <allan@archlinux.org>
8240
8241         * po/ca.po: Update Catalan translation from translation project.
8242
8243 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
8244
8245         * sysdeps/s390/sotruss-lib.c: New file.
8246
8247 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8248
8249         [BZ#16430]
8250         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
8251         (__GI___gettimeofday): Alias for a different internal symbol to avoid
8252         local calls issues by not having a PLT stub required for IFUNC calls.
8253         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
8254
8255 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
8256
8257         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
8258         * math/test-fpucw-static.c: Likewise.
8259
8260 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8261
8262         [BZ #16453]
8263         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
8264
8265 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8266
8267         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
8268         implementation for powerpc.
8269
8270 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
8271
8272         [BZ #14782]
8273         * sysdeps/posix/system.c (__libc_system): Do not enable
8274         asynchronous cancellation.
8275
8276 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8277
8278         [BZ #16427]
8279         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
8280         handling only for numbers special also in the IEEE case.
8281
8282 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8283
8284         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8285
8286 2014-01-11  Allan McRae  <allan@archlinux.org>
8287
8288         * po/bg.po: Update Bulgarian translation from translation project.
8289
8290         * po/de.po: Update German translation from translation project.
8291
8292 2014-01-10  Roland McGrath  <roland@hack.frob.com>
8293
8294         * sysdeps/generic/gcc-compat.h: New file.
8295
8296 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8297
8298         * benchtests/asin-inputs: Correct slow inputs.
8299         * benchtests/acos-inputs: Likewise.
8300
8301 2014-01-10  Allan McRae  <allan@archlinux.org>
8302
8303         * po:sv.po: Update Swedish translation from translation project.
8304
8305         * po/vi.po: Update Vietnamese translation from translation project.
8306
8307         * po/eo.po: Update Esperanto translation from translation project.
8308
8309         * po/cs.po: Update Czech translation from translation project.
8310
8311         * po/nl.po: Update Dutch translation from translation project.
8312
8313         * po/pl.po: Update Polish translation from translation project.
8314
8315         * po/ru.po: Update Russian translation from translation project.
8316
8317         * po/uk.po: Update Ukrainian translation from translation project.
8318
8319 2014-01-08  Brooks Moses  <bmoses@google.com>
8320
8321         * elf/dl-load.c: Fix comment typo.
8322
8323 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
8324
8325         * po/header.pot: Rename to...
8326         * po/pot.header: ... this.
8327         * po/Makefile: Use pot.header.
8328
8329 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
8330             Maxim Kuvyrkov  <maxim@kugelworks.com>
8331
8332         [BZ #16394]
8333         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
8334         SRC and DEST against LEN.
8335
8336 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8337
8338         [BZ #16414]
8339         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
8340         implementation.
8341         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
8342
8343 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8344
8345         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8346
8347 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
8348
8349         [BZ #16408]
8350         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
8351         for large positive arguments.
8352
8353 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
8354
8355         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8356
8357         * math/auto-libm-test-in: Mark various tests with
8358         xfail-rounding:ldbl-128ibm.
8359         * math/auto-libm-test-out: Regenerated.
8360
8361         [BZ #16407]
8362         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
8363         Increase overflow threshold.
8364
8365 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
8366
8367         [BZ #14286]
8368         * stdio-common/vfprintf.c: Check for integer overflow.
8369
8370 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8371
8372         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
8373         the first argument and return value of __tls_get_addr_internal.
8374
8375 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8376
8377         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
8378         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
8379
8380 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8381
8382         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
8383         * sysdeps/s390/rtld-global-offsets.sym: New file.
8384         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
8385         GLIBC_2.19 symbol.
8386         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
8387         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
8388         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
8389         ... this.
8390         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
8391         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
8392         ... this.
8393         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8394         Regenerate.
8395         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8396         Regenerate.
8397         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
8398         halfs of GPRs for high_gprs contexts.
8399         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
8400         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
8401         field.
8402         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
8403         uc_flags field.
8404         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
8405         64 bit versions:
8406         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
8407         for high GPRs (uc_high_gprs) and for future extensions
8408         (__reserved).
8409         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
8410         for future extensions (__reserved).
8411         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
8412         64 bit versions:
8413         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
8414         SC_HIGHGPRS offset definition.
8415         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
8416         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
8417
8418         * Versions.def: Add GLIBC_2.19 for libpthread.
8419         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
8420         siglongjmp for libpthread with GLIBC_2.19 symver.
8421         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
8422         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
8423         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
8424         * sysdeps/s390/__longjmp.c: New file.
8425         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
8426         * sysdeps/s390/longjmp.c: New file.
8427         * sysdeps/s390/setjmp.S: New file.
8428         * sysdeps/s390/sigjmp.S: New file.
8429         * sysdeps/s390/v1-longjmp.c: New file.
8430         * sysdeps/s390/v1-setjmp.h: New file.
8431         * sysdeps/s390/v1-sigjmp.c: New file.
8432         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
8433         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
8434         GLIBC_2.19 version.
8435         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
8436         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
8437         versioned symbols for ____longjmp_chk.
8438         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
8439         Likewise.
8440         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
8441         Regenerate.
8442         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8443         Regenerate.
8444         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
8445         Regenerate.
8446         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8447         Regenerate.
8448         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
8449         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
8450         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
8451         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
8452         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
8453         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
8454         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
8455         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
8456         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
8457         * sysdeps/s390/rtld-__longjmp.c: New file.
8458         * sysdeps/s390/rtld-setjmp.S: New file.
8459
8460 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
8461
8462         [BZ #16400]
8463         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8464         Return -__logl (x) for small positive arguments without evaluating
8465         a polynomial.
8466
8467 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
8468
8469         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
8470         Rename to ...
8471         (__ptrace_peeksiginfo_args): ... this.
8472         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8473         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8474         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8475
8476 2014-01-06  Allan McRae  <allan@archlinux.org>
8477
8478         * inet/netinet/in.h: Fix typo in comment.
8479
8480 2014-01-05  Andreas Jaeger  <aj@suse.de>
8481
8482         * sysdeps/i386/fpu/libm-test-ulps: Update.
8483
8484 2014-01-05  Allan McRae  <allan@archlinux.org>
8485
8486         * po/libc.pot: Regenerated.
8487
8488         * malloc/memusagestat.c: Fix gettext call formatting.
8489
8490 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
8491
8492         * nscd/nscd.c: Improve usage() output.
8493
8494 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
8495
8496         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
8497         * sysdeps/unix/sysv/linux/configure: Regenerated.
8498         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
8499         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
8500
8501 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8502
8503         [BZ #16390]
8504         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
8505         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
8506
8507 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8508
8509         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
8510         extra tokens at end of #undef directive.
8511         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
8512         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
8513         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
8514
8515 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
8516
8517         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
8518
8519         * math/auto-libm-test-in: Mark various tests with
8520         xfail-rounding:ldbl-128ibm.
8521         * math/auto-libm-test-out: Regenerated.
8522
8523 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
8524
8525         [BZ #16386]
8526         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
8527         numbers with subnormal high part when calculating exponent.
8528
8529         [BZ #16385]
8530         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
8531         fabs.
8532
8533         [BZ #16384]
8534         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
8535         M_LN2l.
8536         (__ieee754_acoshl): Use __log1pl not __log1p.
8537
8538 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
8539
8540         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
8541         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
8542         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
8543         (grow_heap, heap_trim, _int_new_arena, get_free_list)
8544         (reused_arena, arena_get2): Convert to GNU style.
8545         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
8546         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
8547         (memalign_check, __malloc_set_state): Likewise.
8548         * malloc/mallocbug.c (main): Likewise.
8549         * malloc/malloc.c (__malloc_assert, malloc_init_state)
8550         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
8551         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
8552         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
8553         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
8554         (__posix_memalign, malloc_info): Likewise.
8555         * malloc/malloc.h: Likewise.
8556         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
8557         (mallochook, memalignhook, reallochook, mabort): Likewise.
8558         * malloc/mcheck.h: Likewise.
8559         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
8560         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
8561         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
8562         * malloc/morecore.c (__default_morecore): Likewise.
8563         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
8564         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
8565         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
8566         (print_and_abort): Likewise.
8567         * malloc/obstack.h: Likewise.
8568         * malloc/set-freeres.c (__libc_freeres): Likewise.
8569         * malloc/tst-mallocstate.c (main): Likewise.
8570         * malloc/tst-mtrace.c (main): Likewise.
8571         * malloc/tst-realloc.c (do_test): Likewise.
8572
8573 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8574
8575         [BZ #16366]
8576         * nscd/netgroupcache.c (do_notfound): New function.
8577         (addgetnetgrentX): Use it.
8578
8579         [BZ # 16365]
8580         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
8581         NSS_STATUS_NOTFOUND.
8582
8583 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
8584
8585         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
8586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8587
8588 2014-01-01  Allan McRae  <allan@archlinux.org>
8589
8590         * scripts/update-copyrights: Update configure input file suffix.
8591
8592         * NEWS: Update copyright year.
8593         * catgets/gencat.c: Likewise.
8594         * csu/version.c: Likewise.
8595         * debug/catchsegv.sh: Likewise.
8596         * debug/pcprofiledump.c: Likewise.
8597         * debug/xtrace.sh: Likewise.
8598         * elf/ldconfig.c: Likewise.
8599         * elf/ldd.bash.in: Likewise.
8600         * elf/pldd.c: Likewise.
8601         * elf/sotruss.ksh: Likewise.
8602         * elf/sprof.c: Likewise.
8603         * iconv/iconv_prog.c: Likewise.
8604         * iconv/iconvconfig.c: Likewise.
8605         * locale/programs/locale.c: Likewise.
8606         * locale/programs/localedef.c: Likewise.
8607         * login/programs/pt_chown.c: Likewise.
8608         * malloc/memusage.sh: Likewise.
8609         * malloc/memusagestat.c: Likewise.
8610         * malloc/mtrace.pl: Likewise.
8611         * manual/libc.texinfo: Likewise.
8612         * nscd/nscd.c: Likewise.
8613         * nss/getent.c: Likewise.
8614         * nss/makedb.c: Likewise.
8615         * posix/getconf.c: Likewise.
8616         * scripts/test-installation.pl: Likewise.
8617
8618         * All files with FSF copyright notices: Update copyright dates
8619         using scripts/update-copyrights.
8620         * intl/plural.c: Regenerated.
8621         * locale/programs/charmap-kw.h: Likewise.
8622         * locale/programs/locfile-kw.h: Likewise.
8623
8624 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
8625
8626         * sysdeps/unix/sysv/linux/configure: Regenerated.
8627         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
8628         the linux/fanotify.h header.
8629         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
8630         HAVE_LINUX_FANOTIFY_H is defined.
8631
8632 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8633
8634         * benchtests/cos-inputs: New inputs.
8635         * benchtests/sin-inputs: Likewise.
8636
8637         * benchtests/atan-inputs: New inputs. Fix name of multiple
8638         precision fallback inputs.
8639
8640         * benchtests/atanh-inputs: New inputs.
8641         * benchtests/tanh-inputs: Likewise.
8642
8643         * benchtests/acosh-inputs: New inputs.
8644         * benchtests/asinh-inputs: Likewise.
8645
8646         * benchtests/cosh-inputs: New inputs.
8647         * benchtests/sinh-inputs: Likewise.
8648
8649         * benchtests/acos-inputs: Add more inputs.
8650         * benchtests/asin-inputs: Likewise.
8651
8652 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
8653
8654         [BZ #16375]
8655         * manual/arith.texi: Fix spelling.
8656         * manual/charset.texi: Likewise.
8657         * manual/errno.texi: Likewise.
8658         * manual/filesys.texi: Likewise.
8659         * manual/lang.texi: Likewise.
8660         * manual/llio.texi: Likewise.
8661         * manual/locale.texi: Likewise.
8662         * manual/message.texi: Likewise.
8663         * manual/resource.texi: Likewise.
8664         * manual/search.texi: Likewise.
8665         * manual/setjmp.texi: Likewise.
8666         * manual/stdio.texi: Likewise.
8667         * manual/string.texi: Likewise.
8668         * manual/sysinfo.texi: Likewise.
8669         * manual/time.texi: Likewise.
8670
8671 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
8672
8673         * po/sl.po: New file.
8674
8675 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
8676
8677         * .gitignore: Add core/.gdbinit/.gdb_history.
8678
8679 2013-12-27  Allan McRae  <allan@archlinux.org>
8680
8681         [BZ #16369]
8682         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
8683         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
8684
8685 2013-12-24  Brooks Moses  <bmoses@google.com>
8686
8687         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
8688         all compilers that claim C++98 compliance, not just GCC.
8689         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
8690         Likewise.
8691
8692 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8693
8694         * NEWS: Restore accidentally deleted bug-fix entries.
8695
8696 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
8697             Ondřej Bílka  <neleai@seznam.cz>
8698
8699         [BZ #15073]
8700         * malloc/malloc.c (_int_free): Perform sanity check only if we
8701         have_lock.
8702
8703 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
8704
8705         [BZ #12986]
8706         * manual/stdio.texi (String Input Conversions): Clarify that character
8707         classes are not supported.
8708
8709 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8710
8711         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8712
8713 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
8714
8715         [BZ #16337]
8716         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
8717         Calculate results for small negative arguments directly rather
8718         than using reflection formula with special underflow handling.
8719
8720         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
8721         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
8722         sysdeps/unix/bsd/bsd4.4/syscalls.list.
8723         (fchflags): Likewise.
8724         (revoke): Likewise.
8725         (setlogin): Likewise.
8726         (sigaltstack): Likewise.
8727         (wait4): Likewise.
8728         (sigblock): Remove.
8729         (sigsetmask): Likewise.
8730         (wait3): Likewise.
8731         (waitpid): Likewise.
8732         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
8733         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
8734         file.
8735         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
8736         * sysdeps/unix/bsd/Makefile: ... here.
8737         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
8738         * sysdeps/unix/bsd/Versions: ... here.
8739         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
8740         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
8741         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
8742         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
8743         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
8744         * sysdeps/unix/bsd/sigblock.c: ... here.
8745         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
8746         * sysdeps/unix/bsd/sigsetmask.c: ... here.
8747         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
8748         * sysdeps/unix/bsd/sigvec.c: ... here.
8749         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
8750         * sysdeps/unix/bsd/tcdrain.c: ... here.
8751         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
8752         * sysdeps/unix/bsd/tcgetattr.c: ... here.
8753         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
8754         * sysdeps/unix/bsd/tcsetattr.c: ... here.
8755         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
8756         * sysdeps/unix/bsd/wait.c: ... here.
8757         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
8758         * sysdeps/unix/bsd/wait3.c: ... here.
8759         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
8760         * sysdeps/unix/bsd/waitpid.c: ... here.
8761
8762 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
8763
8764         [BZ #16356]
8765         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
8766         round-to-nearest for [!USE_AS_EXPM1L].
8767         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
8768         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
8769         more tests of exp and exp10.  Expect some exp10 tests to miss
8770         exceptions or fail in directed rounding modes.
8771         * math/auto-libm-test-out: Regenerated.
8772         * math/libm-test.inc (exp10_tonearest_test_data): New array.
8773         (exp10_test_tonearest): New function.
8774         (exp10_towardzero_test_data): New array.
8775         (exp10_test_towardzero): New function.
8776         (exp10_downward_test_data): New array.
8777         (exp10_test_downward): New function.
8778         (exp10_upward_test_data): New array.
8779         (exp10_test_upward): New function.
8780         (main): Call the new functions.
8781         * sysdeps/i386/fpu/libm-test-ulps: Update.
8782         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8783
8784 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
8785
8786         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
8787         asinh, atan, atan2, atanh, cbrt, cos and cosh.
8788         * math/auto-libm-test-out: Regenerated.
8789         * math/libm-test.inc (acosh_test_data): Add more tests.
8790         (atanh_test_data): Likewise.
8791         (ceil_test_data): Likewise.
8792         (copysign_test_data): Likewise.
8793         * sysdeps/i386/fpu/libm-test-ulps: Update.
8794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8795
8796         * timezone/checktab.awk: Update from tzcode 2013i.
8797         * timezone/private.h: Likewise.
8798         * timezone/scheck.c: Likewise.
8799         * timezone/tzfile.h: Likewise.
8800         * timezone/tzselect.ksh: Likewise.
8801         * timezone/zdump.c: Likewise.
8802         * timezone/zic.c: Likewise.
8803
8804         * math/auto-libm-test-in: Add tests of cpow.
8805         * math/auto-libm-test-out: Regenerated.
8806         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
8807         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8808         mpc_cc_c.
8809         (func_calc_desc): Add mpc_cc_c union field.
8810         (test_functions): Add cpow.
8811         (special_fill_2pi): New function.
8812         (special_real_inputs): Add 2pi.
8813         (calc_generic_results): Handle mpc_cc_c.
8814         * sysdeps/i386/fpu/libm-test-ulps: Update.
8815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8816
8817         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
8818         csqrt, ctan and ctanh.
8819         * math/auto-libm-test-out: Regenerated.
8820         * math/libm-test.inc (TEST_COND_x86_64): New macro.
8821         (TEST_COND_x86): Likewise.
8822         (ccos_test_data): Use AUTO_TESTS_c_c.
8823         (ccosh_test_data): Likewise.
8824         (cexp_test_data): Likewise.
8825         (clog_test_data): Likewise.
8826         (csqrt_test_data): Likewise.
8827         (ctan_test_data): Likewise.
8828         (ctan_tonearest_test_data): Likewise.
8829         (ctan_towardzero_test_data): Likewise.
8830         (ctan_downward_test_data): Likewise.
8831         (ctan_upward_test_data): Likewise.
8832         (ctanh_test_data): Likewise.
8833         (ctanh_tonearest_test_data): Likewise.
8834         (ctanh_towardzero_test_data): Likewise.
8835         (ctanh_downward_test_data): Likewise.
8836         (ctanh_upward_test_data): Likewise.
8837         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8838         mpc_c_c.
8839         (func_calc_desc): Add mpc_c_c union field.
8840         (FUNC_mpc_c_c): New macro.
8841         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
8842         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
8843         ctanh.
8844         (special_fill_min_subnorm_p120): New function.
8845         (special_real_inputs): Add min_subnorm_p120.
8846         (calc_generic_results): Handle mpc_c_c.
8847         * sysdeps/i386/fpu/libm-test-ulps: Update.
8848         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8849
8850 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8851
8852         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
8853         (do_sin_slow): New functions.
8854         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
8855         (cslow2, csloww1, csloww2): Use the new functions.
8856
8857         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
8858         Use M to change sign of result instead of X.  Assume X is
8859         positive.
8860         (csloww1): Likewise.
8861         (__sin): Adjust.
8862         (__cos): Adjust.
8863
8864         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
8865         arguments A and DA.
8866         (__sin): Adjust.
8867         (__cos): Likewise.
8868
8869         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
8870         (__cos): Likewise.
8871         (sloww1): Don't adjust sign of DX.
8872         (csloww1): Likewise.
8873         (sloww2): Use X directly and don't adjust sign of DX.
8874         (csloww2): Likewise.
8875
8876 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8877
8878         * math/auto-libm-test-in: Add tests of cabs and carg.
8879         * math/auto-libm-test-out: Regenerated.
8880         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
8881         (carg_test_data): Likewise.
8882         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8883         mpc_c_f.
8884         (func_calc_desc): Add mpc_c_f union field.
8885         (test_functions): Add cabs and carg.
8886         (calc_generic_results): Handle mpc_c_f.
8887
8888         * sysdeps/powerpc/powerpc32/libgcc-compat.S
8889         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
8890         as a macro and a compat symbol.
8891         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
8892         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
8893         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
8894         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
8895         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
8896         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
8897         not use .hidden.
8898         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
8899         Likewise.
8900         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
8901         Likewise.
8902         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
8903         Likewise.
8904         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
8905         Likewise.
8906         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
8907         Likewise.
8908         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
8909         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
8910         from GLIBC_2.3.2.
8911
8912 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8913
8914         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8915
8916 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8917
8918         * manual/texinfo.tex: Update to version 2013-11-26.10 with
8919         trailing whitespace removed.
8920         * scripts/config.guess: Update to version 2013-11-29.
8921         * scripts/config.sub: Update to version 2013-10-01.
8922
8923         * math/auto-libm-test-in: Add tests of sincos.
8924         * math/auto-libm-test-out: Regenerated.
8925         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
8926         * math/gen-auto-libm-tests.c (func_calc_method): Add value
8927         mpfr_f_11.
8928         (func_calc_desc): Add mpfr_f_11 union field.
8929         (test_functions): Add sincos.
8930         (calc_generic_results): Handle mpfr_f_11.
8931         * sysdeps/i386/fpu/libm-test-ulps: Update.
8932         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8933
8934 2013-12-19  Andreas Schwab  <schwab@suse.de>
8935
8936         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
8937         CALL_MCOUNT.
8938         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
8939         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
8940         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
8941
8942 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
8943
8944         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
8945         * sysdeps/i386/fpu/libm-test-ulps: Update.
8946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8947
8948         [BZ #16293]
8949         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
8950         round-to-nearest mode when using frndint.
8951         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
8952         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
8953         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
8954         Likewise.
8955         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
8956         sinh test to fail.
8957         * math/auto-libm-test-out: Regenerated.
8958         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
8959         (TEST_COND_x86): Likewise.
8960         (expm1_tonearest_test_data): New array.
8961         (expm1_test_tonearest): New function.
8962         (expm1_towardzero_test_data): New array.
8963         (expm1_test_towardzero): New function.
8964         (expm1_downward_test_data): New array.
8965         (expm1_test_downward): New function.
8966         (expm1_upward_test_data): New array.
8967         (expm1_test_upward): New function.
8968         (main): Run the new test functions.
8969         * sysdeps/i386/fpu/libm-test-ulps: Update.
8970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8971
8972         * include/features.h: Update comment documenting feature test
8973         macros.  Mention _DEFAULT_SOURCE in comment.
8974         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
8975         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
8976         _BSD_SOURCE and _SVID_SOURCE.
8977         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
8978         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
8979         !_SVID_SOURCE]: Likewise.
8980         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8981         (__USE_POSIX_IMPLICITLY): Define.
8982         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8983         (_POSIX_SOURCE): Undefine and redefine.
8984         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
8985         (_POSIX_C_SOURCE): Likewise.
8986         * manual/creature.texi (_DEFAULT_SOURCE): Document.
8987         (Feature Test Macros): Update documentation of default features.
8988
8989 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8990
8991         * benchtests/Makefile: Add bench-strtok.
8992         * benchtests/bench-strtok.c: New file: strtok benchtest.
8993
8994 2013-12-19  Allan McRae  <allan@archlinux.org>
8995
8996         * manual/install.texi: Suppress menu for plain text output.
8997         * INSTALL: Regenerated.
8998
8999 2013-12-18  Brooks Moses  <bmoses@google.com>
9000
9001         [BZ #15846]
9002         * misc/getauxval.c: Include errno.h.
9003         (__getauxval): Set errno to ENOENT if the requested type is not
9004         found.
9005         * misc/sys/auxv.h (getauxval): Document that it may set errno;
9006         don't declare with __attribute_const__.
9007         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
9008         * manual/startup.texi: Document that getauxval sets errno.
9009
9010 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9011
9012         * math/auto-libm-test-in: Add tests of jn and yn.
9013         * math/auto-libm-test-out: Regenerated.
9014         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
9015         (yn_test_data): Likewise.
9016         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9017         mpfr_if_f.
9018         (func_calc_desc): Add mpfr_if_f union field.
9019         (FUNC_mpfr_if_f): New macro.
9020         (test_functions): Add jn and yn.
9021         (calc_generic_results): Assert type of second input for
9022         mpfr_ff_f.  Handle mpfr_if_f.
9023         (output_for_one_input_case): Disable all checking for arguments
9024         fitting floating-point types in case of an integer argument.
9025         * sysdeps/i386/fpu/libm-test-ulps: Update.
9026         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9027
9028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
9029         Don't expect fegetround reference in libm.so.
9030
9031 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9032
9033         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
9034         $(config-cflags-nofma).
9035
9036 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
9039         * math/auto-libm-test-out: Regenerated.
9040
9041         [BZ #16338]
9042         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
9043         to determine exponent and adjust argument to have exponent of -1.
9044         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
9045         log2.
9046         * math/auto-libm-test-out: Regenerated.
9047         * sysdeps/i386/fpu/libm-test-ulps: Update.
9048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9049
9050 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
9051
9052         * manual/probes.texi: Remove cases when per-thread arenas are
9053         disabled.
9054
9055 2013-12-18  Andreas Schwab  <schwab@suse.de>
9056
9057         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
9058         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
9059         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
9060         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
9061         * sysdeps/i386/i686/multiarch/Makefile: Update.
9062         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
9063
9064 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9065
9066         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
9067         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
9068
9069 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9070
9071         [BZ #15968]
9072         Support TZ transition times < 00:00:00.
9073         This is needed for version-3 tz-format files; it supports time
9074         stamps past 2037 for America/Godthab (the only entry in the tz
9075         database for which this change is relevant).
9076         * manual/time.texi (TZ Variable): Document transition times
9077         from -167:59:59 through -00:00:01.
9078         * time/tzset.c (tz_rule): Time of day is now signed.
9079         (__tzset_parse_tz): Parse negative time of day.
9080
9081         Document TZ transition times >= 25:00:00.
9082         * manual/time.texi (TZ Variable): Document transition times from
9083         25:00:00 through 167:59:59.  These are already supported, and this
9084         support will help with version-3 tz-format files.
9085
9086         * manual/time.texi (TZ Variable): Modernize North America example
9087         to reflect current (i.e., 2007-and-later) daylight saving rules.
9088
9089         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
9090
9091 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9092
9093         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
9094         * sysdeps/unix/bsd/bits/stat.h: Likewise.
9095         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
9096         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
9097         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
9098         * sysdeps/unix/bsd/bsdstat.h: Likewise.
9099         * sysdeps/unix/bsd/clock.c: Likewise.
9100         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
9101         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
9102         * sysdeps/unix/bsd/init-posix.c: Likewise.
9103         * sysdeps/unix/bsd/poll.c: Likewise.
9104         * sysdeps/unix/bsd/ptsname.c: Likewise.
9105         * sysdeps/unix/bsd/seekdir.c: Likewise.
9106         * sysdeps/unix/bsd/setegid.c: Likewise.
9107         * sysdeps/unix/bsd/seteuid.c: Likewise.
9108         * sysdeps/unix/bsd/setgid.c: Likewise.
9109         * sysdeps/unix/bsd/setrgid.c: Likewise.
9110         * sysdeps/unix/bsd/setruid.c: Likewise.
9111         * sysdeps/unix/bsd/setsid.c: Likewise.
9112         * sysdeps/unix/bsd/setuid.c: Likewise.
9113         * sysdeps/unix/bsd/sigaction.c: Likewise.
9114         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
9115         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
9116         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
9117         * sysdeps/unix/bsd/telldir.c: Likewise.
9118         * sysdeps/unix/bsd/times.c: Likewise.
9119         * sysdeps/unix/bsd/usleep.c: Likewise.
9120
9121         * misc/Makefile (install-lib): Remove libbsd-compat.a.
9122         ($(objpfx)libbsd-compat.a): Remove rule.
9123
9124         * include/features.h (__FAVOR_BSD): Do not define.
9125         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
9126         features conflicting with POSIX.
9127         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
9128         (_BSD_SOURCE): Remove description of not being a subset of other
9129         feature test macros.
9130         * manual/job.texi (getpgrp): Do not document BSD version.
9131         (getpgid): Do not document by reference to BSD getpgrp.
9132         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
9133         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
9134         * signal/signal.h [__FAVOR_BSD]: Likewise.
9135         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
9136         instead of making contents conditional on [__FAVOR_BSD].
9137         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
9138
9139 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9140
9141         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9142
9143 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
9144
9145         [BZ #16314]
9146         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
9147         values below 2**-450, not 2**-500.
9148         * math/auto-libm-test-in: Don't allow spurious underflow from
9149         hypot.
9150         * math/auto-libm-test-out: Regenerated.
9151
9152         [BZ #16316]
9153         [BZ #16330]
9154         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
9155         values of ha and hb and sort them after adjusting subnormal
9156         arguments.
9157         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9158         Likewise.
9159         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
9160         values of ea and eb and sort them after adjusting subnormal
9161         arguments.
9162         * math/auto-libm-test-in: Do not expect some hypot tests of
9163         subnormals to fail.  Add more hypot tests.
9164         * math/auto-libm-test-out: Regenerated.
9165
9166 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9167
9168         [BZ #13304]
9169         * sysdeps/sh/s_fma.c: New file.
9170         * sysdeps/sh/s_fmaf.c: New file.
9171         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
9172         version.
9173         * sysdeps/sh/Implies: Add sh/soft-fp.
9174
9175 2013-12-16  Roland McGrath  <roland@hack.frob.com>
9176
9177         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
9178         level of indirection to members `objname', `errstring', `malloced'.
9179         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
9180         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
9181         it as the __longjmp argument (just pass 1 instead).
9182         (_dl_catch_error): Initialize C with argument pointers and address of
9183         volatile local ERRCODE rather than copying values out of C at return.
9184
9185 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
9186
9187         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
9188         * math/auto-libm-test-out: Regenerated.
9189         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
9190         (hypot_test_data): Likewise.
9191         (pow_test_data): Likewise.
9192         (pow_tonearest_test_data): Likewise.
9193         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9194         mpfr_ff_f.
9195         (func_calc_desc): Add mpfr_ff_f union field.
9196         (FUNC_mpfr_ff_f): New macro.
9197         (test_functions): Add atan2, hypot and pow.
9198         (special_fill_min): New function.
9199         (special_fill_minus_min): Likewise.
9200         (special_fill_min_subnorm): Likewise.
9201         (special_fill_minus_min_subnorm): Likewise.
9202         (special_real_inputs): Add min, -min, min_subnorm and
9203         -min_subnorm.
9204         (calc_generic_results): Handle mpfr_ff_f.
9205         * sysdeps/i386/fpu/libm-test-ulps: Update.
9206         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9207
9208 2013-12-16  Will Newton  <will.newton@linaro.org>
9209
9210         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
9211         (Aligned Memory Blocks): Add documentation for aligned_alloc
9212         and suggest it as an alternative to posix_memalign.
9213         (Hooks for Malloc): Document __memalign_hook is also called
9214         for aligned_alloc.  (Summary of Malloc): Add summary for
9215         aligned alloc.  Document __memalign_hook is also called
9216         for aligned_alloc.
9217
9218 2013-12-16  Will Newton  <will.newton@linaro.org>
9219
9220         * manual/memory.texi (Malloc Examples): Clarify default
9221         alignment documentation.  Suggest posix_memalign rather
9222         than memalign or valloc.
9223         (Aligned Memory Blocks): Remove suggestion to use memalign
9224         or valloc.  Remove obsolete comment about BSD.
9225         Document memalign errno values and mark the function obsolete.
9226         Document posix_memalign returned error codes.  Mark valloc
9227         as obsolete.  (Hooks for Malloc): __memalign_hook is also
9228         called for posix_memalign and valloc.
9229         (Summary of Malloc): Add posix_memalign to function summary.
9230         __memalign_hook is also called for posix_memalign and valloc.
9231
9232 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9233
9234         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
9235         TAYLOR_SIN.
9236         (__sin): Adjust.
9237         (__cos): Likewise.
9238         (sloww): Use mynumber union.  Expand ternary operator into
9239         if-else statements.
9240         (cslow): use mynumber union.
9241
9242 2013-12-16  Allan McRae  <allan@archlinux.org>
9243
9244         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
9245         * configure: Regenerated.
9246
9247         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
9248
9249         [BZ #14120]
9250         * configure.ac: Added --enable-maintainer-mode. Check for
9251         autoconf when enabled.
9252         * configure: Regenerated.
9253
9254         * nscd/nscd.service: New file.
9255         * nscd/nscd.tmpfiles: New file.
9256
9257 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
9258
9259         [BZ #12100]
9260         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
9261         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
9262         * sysdeps/x86_64/multiarch/strstr.c: ... here.
9263         (strstr): Add __strstr_sse2_unaligned ifunc.
9264         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
9265         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
9266         (strcasestr): Remove __strcasestr_sse42 ifunc.
9267         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
9268         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
9269         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
9270
9271 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9272
9273         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
9274         * sysdeps/sh/bits/fenv.h: ... here.
9275         * sysdeps/sh/sh4/fpu/bits: Remove directory.
9276
9277 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9278
9279         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
9280
9281         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
9282         hypotf multiarch implementations.
9283         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
9284         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
9285         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
9286         multiarch hypot for PPC64.
9287         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
9288         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
9289         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
9290         multiarch hypotf for PPC64.
9291
9292         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
9293         modff multiarch implementations.
9294         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
9295         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
9296         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
9297         multiarch modf for PPC64.
9298         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
9299         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
9300         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
9301         multiarch modff for PPC64.
9302
9303         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
9304         and logl multiarch implementations.
9305         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
9306         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
9307         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
9308         multiarch logb for PPC64.
9309         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
9310         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
9311         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
9312         multiarch logb for PPC64.
9313         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
9314         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
9315         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
9316         multiarch logb for PPC64.
9317
9318         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
9319         isinff multiarch implementation.
9320         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
9321         file.
9322         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
9323         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
9324         multiarch isinf for PPC64.
9325         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
9326         file.
9327         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
9328         multiarch isinff for PPC64.
9329
9330         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
9331         finitef multiarch implementation.
9332         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
9333         file.
9334         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
9335         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
9336         multiarch finite for PPC64.
9337         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
9338         file.
9339         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
9340         multiarch finitef for PPC64.
9341
9342         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
9343         lrint multiarch implementation.
9344         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
9345         file.
9346         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
9347         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
9348         multiarch llrint for PPC64.
9349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
9350         multiarch lrint for PPC64.
9351
9352         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
9353         copysignf multiarch implementation.
9354         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
9355         file.
9356         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
9357         file.
9358         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
9359         multiarch copysign for PPC64.
9360         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
9361         multiarch copysignf for PPC64.
9362
9363         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
9364         multiarch implementation.
9365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
9366         file.
9367         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
9368         file.
9369         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
9370         file.
9371         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
9372         file.
9373         multiarch llround for PPC64.
9374         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
9375         multiarch trunc for PPC64.
9376         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
9377         multiarch truncf for PPC64.
9378
9379         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
9380         multiarch implementation.
9381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
9382         file.
9383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
9384         file.
9385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
9386         file.
9387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
9388         file.
9389         multiarch llround for PPC64.
9390         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
9391         multiarch round for PPC64.
9392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
9393         multiarch roundf for PPC64.
9394
9395         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
9396         multiarch implementation.
9397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
9398         file.
9399         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
9400         file.
9401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
9402         file.
9403         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
9404         file.
9405         multiarch llround for PPC64.
9406         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
9407         multiarch floor for PPC64.
9408         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
9409         multiarch floorf for PPC64.
9410
9411         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
9412         multiarch implementation.
9413         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
9414         file.
9415         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
9416         file.
9417         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
9418         file.
9419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
9420         file.
9421         multiarch llround for PPC64.
9422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
9423         multiarch ceil for PPC64.
9424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
9425         multiarch ceilf for PPC64.
9426
9427         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
9428         multiarch implementation.
9429         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
9430         file.
9431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
9432         file.
9433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
9434         file.
9435         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
9436         multiarch llround for PPC64.
9437         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
9438         multiarch lround for PPC64.
9439
9440         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
9441         multiarch implementation.
9442         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
9443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
9444         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
9445         file.
9446         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
9447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
9448         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
9449         multiarch isnan for PPC64.
9450         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
9451         multiarch isnanf for PPC64.
9452
9453         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
9454         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
9455         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
9456         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
9457         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
9458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
9459
9460         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
9461         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9462         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9463         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9464
9465         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
9466         multiarch implementations.
9467         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9468         (__libc_ifunc_impl_list): Likewise.
9469         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
9470         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
9471         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
9472         multiarch stpcpy for PPC64.
9473
9474         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
9475         multiarch implementations.
9476         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9477         (__libc_ifunc_impl_list): Likewise.
9478         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
9479         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
9480         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
9481         multiarch strcpy for PPC64.
9482
9483         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
9484         redefine function name.
9485         (_wordcopy_fwd_dest_aligned): Likewise.
9486         (_wordcopy_bwd_aligned): Likewise.
9487         (_wordcopy_bwd_dest_aligned): Likewise.
9488         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
9489         multiarch implementations.
9490         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9491         (__libc_ifunc_impl_list): Likewise.
9492         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
9493         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
9494         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
9495         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
9496         multiarch wcscpy for PPC64.
9497
9498         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
9499         multiarch implementations.
9500         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9501         (__libc_ifunc_impl_list): Likewise.
9502         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
9503         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
9504         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
9505         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
9506         multiarch wcscpy for PPC64.
9507
9508         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
9509         multiarch implementations.
9510         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9511         (__libc_ifunc_impl_list): Likewise.
9512         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
9513         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
9514         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
9515         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
9516         multiarch wcsrchr for PPC64.
9517
9518         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
9519         multiarch implementations.
9520         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9521         (__libc_ifunc_impl_list): Likewise.
9522         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
9523         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
9524         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
9525         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
9526         multiarch wcschr for PPC64.
9527
9528         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
9529         multiarch implementations.
9530         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9531         (__libc_ifunc_impl_list): Likewise.
9532         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
9533         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
9534         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
9535         multiarch strchrnul for PPC64.
9536
9537         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
9538         implementations.
9539         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9540         (__libc_ifunc_impl_list): Likewise.
9541         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
9542         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
9543         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
9544         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
9545         strchr for PPC64.
9546
9547         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
9548         implementations.
9549         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9550         (__libc_ifunc_impl_list): Likewise.
9551         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
9552         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
9553         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
9554         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
9555         strncmp for PPC64.
9556
9557         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
9558         multiarch implementations.
9559         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9560         (__libc_ifunc_impl_list): Likewise.
9561         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
9562         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
9563         strncasecmp for PPC64.
9564         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
9565         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
9566         multiarch strncasecmp_l for PPC64.
9567
9568         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
9569         multiarch implementations.
9570         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
9571         (__libc_ifunc_impl_list): Likewise.
9572         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
9573         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
9574         multiarch strcasecmp for PPC64.
9575         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
9576         file.
9577         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
9578         multiarch strcasecmp_l for PPC64.
9579
9580         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
9581         implementations.
9582         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9583         (__libc_ifunc_impl_list): Likewise.
9584         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
9585         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
9586         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
9587         strnlen for PPC64.
9588
9589         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
9590         implementations.
9591         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9592         (__libc_ifunc_impl_list): Likewise.
9593         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
9594         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
9595         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
9596         strlen for PPC64.
9597
9598         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
9599         implementations.
9600         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9601         (__libc_ifunc_impl_list): Likewise.
9602         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
9603         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
9604         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
9605         rawmemrchr for PPC64.
9606
9607         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
9608         implementation.
9609         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9610         (__libc_ifunc_impl_list): Likewise.
9611         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
9612         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
9613         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
9614         memrchr for PPC64.
9615
9616         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
9617         implementation.
9618         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9619         (__libc_ifunc_impl_list): Likewise.
9620         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
9621         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
9622         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
9623         memchr for PPC64.
9624
9625         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
9626         implementation.
9627         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9628         (__libc_ifunc_impl_list): Likewise.
9629         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
9630         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
9631         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
9632         mempcpy for PPC64.
9633
9634         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
9635         avoid cretion of __bzero symbol.
9636         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
9637         Likewise.
9638         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
9639         Likewise.
9640         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
9641         Likewise.
9642         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
9643         multiarch implementations.
9644         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9645         (__libc_ifunc_impl_list): Likewise.
9646         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
9647         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
9648         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
9649         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
9650         bzero for PPC32.
9651         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
9652         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
9653         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
9654         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
9655         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
9656         memset for PPC64.
9657         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
9658
9659         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
9660         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
9661         implementations.
9662         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
9663         (__libc_ifunc_impl_list): Likewise.
9664         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
9665         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
9666         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
9667         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
9668         memcmp for PPC64.
9669
9670         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
9671         multiarch for POWER/PPC64.
9672         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
9673         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
9674         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
9675         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
9676         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
9677         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
9678         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
9679         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
9680         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
9681         memcpy for PPC64.
9682
9683         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
9684         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
9685         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
9686         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
9687         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
9688         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
9689         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
9690         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
9691         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
9692         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
9693         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
9694         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
9695         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
9696         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
9697         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
9698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
9699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
9700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
9701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
9702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
9703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
9704         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
9705
9706 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
9707
9708         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
9709
9710 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
9711
9712         * benchtests/Makefile (bench): Add exp2 and log2.
9713         (LDLIBS-bench-exp2): Add -lm.
9714         (LDLIBS-bench-log2): Likewise.
9715         * benchtests/exp2-inputs: New inputs file.
9716         * benchtests/log2-inputs: New inputs file.
9717         * benchtests/log-inputs: Add new inputs.
9718         * benchtests/tan-inputs: Likewise.
9719
9720 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9721
9722         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
9723         definition...
9724         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
9725         (csloww2): ... from here.
9726
9727         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
9728         instead of structures.
9729         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
9730         (POLYNOMIAL): Likewise.
9731         (TAYLOR_SLOW): Likewise.
9732         (__sin): Likewise.
9733         (__cos): Likewise.
9734         (slow1): Likewise.
9735         (slow2): Likewise.
9736         (sloww): Likewise.
9737         (sloww1); Likewise.
9738         (sloww2): Likewise.
9739         (bsloww1): Likewise.
9740         (bsloww2): Likewise.
9741         (cslow2): Likewise.
9742         (csloww): Likewise.
9743         (csloww1): Likewise.
9744         (csloww2): Likewise.
9745
9746 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
9747
9748         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
9749         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
9750         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
9751         * malloc/hooks.c (realloc_check): Likewise.
9752
9753         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
9754         * malloc/arena.c: Remove PER_THREAD conditional.
9755         [!PER_THREAD]: Remove code.
9756         (ptmalloc_unlock_all2): Likewise.
9757         (ptmalloc_init): Likewise.
9758         (_int_new_arena): Likewise.
9759         (arena_get2): Likewise.
9760         * malloc/hooks.c (__malloc_get_state): Likewise.
9761         (__malloc_set_state): Likewise.
9762         * malloc/malloc.c: Likewise.
9763         (struct malloc_state): Likewise.
9764         (struct malloc_par): Likewise.
9765         (__libc_realloc): Likewise.
9766         (__libc_mallopt): Likewise.
9767
9768 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9769
9770         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
9771
9772 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
9773
9774         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
9775         macro to a function.  Check for zero perturb_byte.
9776         (_int_malloc, _int_free): Remove zero perturb_byte checks.
9777
9778         * malloc/malloc.c: (force_reg): Remove.
9779         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
9780         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
9781         force_reg by atomic_forced_read.
9782         * malloc/arena.c (ptmalloc_init): Likewise.
9783         * malloc/hooks.c (top_check): Likewise.
9784
9785 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9786
9787         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9788
9789 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
9790
9791         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9792
9793 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
9794
9795         * math/auto-libm-test-in: Add tests of lgamma.
9796         * math/auto-libm-test-out: Regenerated.
9797         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
9798         (M_LOG_2_SQRT_PIl): Likewise.
9799         (lgamma_test_data): Use AUTO_TESTS_f_f1.
9800         * math/gen-auto-libm-tests.c (func_calc_method): Add value
9801         mpfr_f_f1.
9802         (func_calc_desc): Add mpfr_f_f1 union field.
9803         (ARGS1): New macro.
9804         (ARGS2): Likewise.
9805         (ARGS3): Likewise.
9806         (ARGS4): Likewise.
9807         (RET1): Likewise.
9808         (RET2): Likewise.
9809         (CALC): Likewise.
9810         (FUNC): Likewise.
9811         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
9812         (test_functions): Add lgamma.
9813         (calc_generic_results): Handle mpfr_f_f1.
9814         * sysdeps/i386/fpu/libm-test-ulps: Update.
9815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9816
9817 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9818
9819         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
9820         __mpn_add_n for PowerPC64/POWER7.
9821         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
9822         __mpn_sub_n for PowerPC64/POWER7.
9823
9824         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
9825         __mpn_addmul_1 for PowerPC64.
9826         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
9827         __mpn_submul_1 for PowerPC64.
9828         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
9829         for PowerPC64.
9830         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
9831         for PowerPC64.
9832
9833 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
9834
9835         [BZ #15089]
9836         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
9837
9838 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9839
9840         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
9841
9842         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
9843         add multiarch folders.
9844         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
9845         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
9846         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
9847         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
9848         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
9849         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
9850         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
9851         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
9852         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
9853         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
9854         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
9855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
9856         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
9857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
9858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
9859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
9860         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
9861
9862         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
9863         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
9864         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
9865         New file.
9866         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
9867         New file.
9868         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
9869         multiarch __ieee754_hypot for PowerPC32.
9870         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
9871         New file.
9872         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
9873         New file.
9874         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
9875         multiarch __ieee754_hypotf for PowerPC32.
9876
9877         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
9878         long_double_symbol only if __logbl is defined.
9879         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
9880         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
9881         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
9882         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
9883         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
9884         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
9885         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
9886         path for implementation.
9887         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
9888         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
9889         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
9890         logb, and logbl multiarch implementations for PowerPC32.
9891         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
9892         file.
9893         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
9894         file.
9895         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
9896         multiarch logb for PowerPC32.
9897         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
9898         file.
9899         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
9900         file.
9901         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
9902         multiarch logbf for PowerPC32.
9903         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
9904         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
9905         file.
9906         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
9907         multiarch logbl implementation for PowerPC32.
9908
9909         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
9910         and modff multiarch implementations.
9911         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
9912         New file.
9913         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
9914         New file.
9915         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
9916         multiarch modf for PowerPC32.
9917         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
9918         New file.
9919         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
9920         New file.
9921         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
9922         multiarch modff for PowerPC32.
9923
9924         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
9925         and lrintf multiarch implementations.
9926         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
9927         New file.
9928         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
9929         New file.
9930         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
9931         multiarch lrint for PowerPC32.
9932         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
9933         file: multiarch lrintf for PowerPC32.
9934
9935         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
9936         and lroundf multiarch implementations.
9937         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
9938         New file.
9939         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
9940         New file.
9941         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
9942         New file.
9943         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
9944         multiarch lround for PowerPC32.
9945         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
9946         file: multiarch lroundf for PowerPC32.
9947
9948         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
9949         copysign and copysignf multiarch implementations.
9950         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
9951         New file.
9952         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
9953         New file.
9954         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
9955         file: multiarch copysign for PowerPC32.
9956         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
9957         file: multiarch copysignf for PowerPC32.
9958
9959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
9960         and truncf multiarch implementations.
9961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
9962         New file.
9963         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
9964         file.
9965         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
9966         multiarch trunc for PowerPC32.
9967         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
9968         New file.
9969         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
9970         New file.
9971         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
9972         multiarch truncf for PowerPC32.
9973
9974         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
9975         and roundf multiarch implementations.
9976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
9977         New file.
9978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
9979         file.
9980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
9981         multiarch round for PowerPC32.
9982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
9983         New file.
9984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
9985         New file.
9986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
9987         multiarch roundf for PowerPC32.
9988
9989         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
9990         and floorf multiarch implementations.
9991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
9992         New file.
9993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
9994         file.
9995         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
9996         multiarch floor for PowerPC32.
9997         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
9998         New file.
9999         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
10000         New file.
10001         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
10002         multiarch floorf for PowerPC32.
10003
10004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
10005         and ceilf multiarch implementations.
10006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
10007         New file.
10008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
10009         file.
10010         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
10011         multiarch ceil for PowerPC32.
10012         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
10013         New file.
10014         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
10015         file.
10016         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
10017         multiarch ceilf for PowerPC32.
10018
10019         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
10020         is defined.
10021         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
10022         FINITEF is defined.
10023         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
10024         and finitef multiarch implementations.
10025         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
10026         New file.
10027         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
10028         file.
10029         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
10030         multiarch finite for PowerPC32.
10031         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
10032         New file.
10033         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
10034         file: multiarch finitef for PowerPC32.
10035
10036         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
10037         and isinff multiarch implementations.
10038         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
10039         file.
10040         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
10041         file.
10042         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
10043         multiarch isinf for PowerPC32.
10044         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
10045         New file.
10046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
10047         multiarch isinff for PowerPC32.
10048
10049         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
10050         alias when __isnan is defined.
10051         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
10052         and isnanf multiarch implementations.
10053         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
10054         file.
10055         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
10056         file.
10057         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
10058         file.
10059         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
10060         file.
10061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
10062         multiarch isnan for PowerPC32.
10063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
10064         New file.
10065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
10066         New file.
10067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
10068         multiarch isnanf for PowerPC32.
10069
10070         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
10071         and sqrtf multiarch implementations.
10072         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
10073         file.
10074         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
10075         file.
10076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
10077         multiarch sqrt for PowerPC32.
10078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
10079         file.
10080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
10081         file.
10082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
10083         multiarch sqrtf for PowerPC32.
10084
10085         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
10086         and llroundf multiarch implementations.
10087         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
10088         New file.
10089         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
10090         New file.
10091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
10092         New file.
10093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
10094         file: multiarch llround for PowerPC32.
10095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
10096         file: multiarch llroundf for PowerPC32.
10097
10098         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
10099         multiarch PowerPC32 fpu implementations.
10100         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
10101         New file.
10102         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
10103         New file.
10104         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
10105         multiarch llrint for PowerPC32.
10106         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
10107         New file.
10108         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
10109         New file.
10110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
10111         file.
10112
10113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
10114
10115         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
10116         file.
10117         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
10118         file.
10119         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
10120         file.
10121         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
10122         multiarch wordcopy for PPC32.
10123         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10124         wordcopy objects.
10125         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10126         (__libc_ifunc_impl_list): Likewise.
10127         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
10128         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
10129         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
10130         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
10131         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
10132         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
10133
10134         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
10135         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
10136         file.
10137         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
10138         file.
10139         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
10140         file.
10141         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
10142         multiarch wcscpy for PPC32.
10143         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
10144         multiarch objects.
10145         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10146         (__libc_ifunc_impl_list): Likewise.
10147         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10148         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10149         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
10150         sysdeps/powerpc/power6/wcscpy.c.
10151
10152         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
10153         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
10154         file.
10155         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
10156         file.
10157         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
10158         file.
10159         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
10160         multiarch wcsrchr for PPC32.
10161         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10162         multiarch objects.
10163         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10164         (__libc_ifunc_impl_list): Likewise.
10165         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
10166         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
10167         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
10168         sysdeps/powerpc/power6/wcsrchr.c.
10169
10170         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
10171         file.
10172         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
10173         file.
10174         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
10175         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
10176         multiarch wcschr for PPc32.
10177         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
10178         multiarch objects.
10179         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10180         (__libc_ifunc_impl_list): Likewise.
10181         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
10182         * sysdeps/powerpc/power6/wcschr.c: ... to here.
10183         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
10184         sysdeps/powerpc/power6/wcschr.c.
10185
10186         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
10187         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
10188         file.
10189         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
10190         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
10191         file: multiarch strchr for PPC32.
10192         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
10193         multiarch objects.
10194         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10195         (__libc_ifunc_impl_list): Likewise.
10196
10197         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
10198         name.
10199         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
10200         file.
10201         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
10202         file.
10203         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
10204         multiarch strchrnul for PPC32.
10205         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
10206         multiarch objects.
10207         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10208         (__libc_ifunc_impl_list): Likewise.
10209
10210         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
10211         file.
10212         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
10213         multiarch strncasecmp for PPC32.
10214         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
10215         file.
10216         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
10217         multiarch strncasecmp_l for PPC32.
10218         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
10219         strncasecmp multiarch objects.
10220         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10221         (__libc_ifunc_impl_list): Likewise.
10222
10223         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
10224         file.
10225         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
10226         multiarch strncasecmp for PPC32.
10227         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
10228         New file.
10229         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
10230         multiarch strcasecmp_l for PPC32.
10231         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
10232         multiarch objects.
10233         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10234         (__libc_ifunc_impl_list): Likewise.
10235
10236         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
10237         file.
10238         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
10239         file.
10240         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
10241         multiarch strncmp for PPC32.
10242         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
10243         multiarch objects.
10244         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10245         (__libc_ifunc_impl_list): Likewise.
10246
10247         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
10248         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
10249         file.
10250         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
10251         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
10252         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
10253         multiarch objects.
10254         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10255         (__libc_ifunc_impl_list): Likewise.
10256
10257         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
10258         file.
10259         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
10260         file.
10261         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
10262         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
10263         multiarch objects.
10264         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10265         (__libc_ifunc_impl_list): Likewise.
10266
10267         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
10268         file.
10269         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
10270         file.
10271         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
10272         multiarch rawmemchr for PPC32.
10273         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
10274         multiarch objects.
10275         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10276         (__libc_ifunc_impl_list): Likewise.
10277
10278         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
10279         file.
10280         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
10281         file.
10282         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
10283         file: memrchr multiarch for PPC32.
10284         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
10285         multiarch objects.
10286         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
10287         (__libc_ifunc_impl_list): Likewise.
10288
10289         * string/memchr.c (__memchr): Using macro to redefine symbol name.
10290         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
10291         file.
10292         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
10293         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
10294         multiarch memchr for PPC32.
10295         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
10296         multiarch objects.
10297         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10298         (__libc_ifunc_impl_list): Likewise.
10299
10300         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
10301         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
10302         file.
10303         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
10304         file.
10305         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
10306         file: multiarch mempcpy for PPC32.
10307         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
10308         multiarch objects.
10309         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10310         (__libc_ifunc_impl_list): Likewise.
10311
10312         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
10313         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
10314         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
10315         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
10316         multiarch bzero for PPC32.
10317         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
10318         file.
10319         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
10320         file.
10321         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
10322         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
10323         file: multiarch memset for PPC32.
10324         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
10325         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
10326         memset multiarch objects.
10327         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10328         (__libc_ifunc_impl_list): Likewise.
10329
10330         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
10331         file.
10332         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
10333         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
10334         memcmp for PPC32.
10335         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
10336         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
10337         multiarch objects.
10338         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10339         (__libc_ifunc_impl_list): Likewise.
10340
10341         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
10342         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
10343         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
10344         file.
10345         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
10346         file.
10347         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
10348         file.
10349         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
10350         multiarch memcpy for PPC32.
10351         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
10352         multiarch objects.
10353         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
10354         (__libc_ifunc_impl_list): Likewise.
10355
10356         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
10357         support multiarch for POWER/PPC32.
10358         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
10359         Likewise.
10360         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
10361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
10362         Implies file to make multiarch folder appers before the fpu and
10363         default folder for power4 configuration.
10364
10365 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10366
10367         * scripts/bench.pl: Append volatile keyword to type.
10368
10369 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10370
10371         * sysdeps/sh/sotruss-lib.c: New file.
10372         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
10373
10374 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10375
10376         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10377
10378 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
10379
10380         [BZ #6810]
10381         * math/w_tgamma.c: Include <errno.h>.
10382         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
10383         * math/w_tgammaf.c: Include <errno.h>.
10384         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
10385         * math/w_tgammal.c: Include <errno.h>.
10386         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
10387         * math/auto-libm-test-in: Do not allow missing errno on tgamma
10388         underflow.  Add more tgamma tests.
10389         * math/auto-libm-test-out: Regenerated.
10390         * sysdeps/i386/fpu/libm-test-ulps: Update.
10391         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10392
10393         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
10394         sin, sinh, tan, tanh, tgamma, y0 and y1.
10395         * math/auto-libm-test-out: Regenerated.
10396         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10397         (TEST_COND_x86): Likewise.
10398         (M_E2l): Remove macro.
10399         (M_E3l): Likewise.
10400         (M_2_SQRT_PIl): Likewise.
10401         (M_SQRT_PIl): Likewise.
10402         (M_1_DIV_El): Likewise.
10403         (log_test_data): Use AUTO_TESTS_f_f.
10404         (log10_test_data): Likewise.
10405         (log1p_test_data): Likewise.
10406         (log2_test_data): Likewise.
10407         (sin_test_data): Likewise.
10408         (sin_tonearest_test_data): Likewise.
10409         (sin_towardzero_test_data): Likewise.
10410         (sin_downward_test_data): Likewise.
10411         (sin_upward_test_data): Likewise.
10412         (sinh_test_data): Likewise.
10413         (sinh_tonearest_test_data): Likewise.
10414         (sinh_towardzero_test_data): Likewise.
10415         (sinh_downward_test_data): Likewise.
10416         (sinh_upward_test_data): Likewise.
10417         (tan_test_data): Likewise.
10418         (tan_tonearest_test_data): Likewise.
10419         (tan_towardzero_test_data): Likewise.
10420         (tan_downward_test_data): Likewise.
10421         (tan_upward_test_data): Likewise.
10422         (tanh_test_data): Likewise.
10423         (tgamma_test_data): Likewise.
10424         (y0_test_data): Likewise.
10425         (y1_test_data): Likewise.
10426         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
10427         (special_real_inputs): Add pi/4.
10428         * sysdeps/i386/fpu/libm-test-ulps: Update.
10429         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10430
10431 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10432
10433         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
10434         "longjmp_target" static probes.
10435         (__longjmp): Rename to __longjmp_symbol.
10436         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
10437         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
10438         on which longjmp to generate.
10439         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
10440         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
10441         probe.
10442         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10443         (__sigjmp_save): Rename to __sigjmp_save_symbol.
10444         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
10445         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
10446         and __sigjmp_save_symbol based on which sigsetjmp to generated.
10447         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
10448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
10449         __longjmp_symbol based on which __longjmp to generate.
10450         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
10451         probe.
10452         (setjmp): Rename to setjmp_symbol.
10453         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10454         (_setjmp): Rename to _setjmp_symbol.
10455         (__sigsetjmp): Rename to __sigsetjmp_symbol.
10456         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
10457         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
10458         which setjmp to generate.
10459         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
10460         "longjmp_target" static probes.
10461
10462 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10463
10464         * benchtests/README: Add note about output arguments.
10465         * benchtests/bench-sincos.c: Remove file.
10466         * benchtests/sincos-inputs: New file.
10467         * scripts/bench.pl: Identify output arguments and define
10468         static variables for them.
10469
10470         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
10471
10472         [BZ #15941]
10473         * Makefile (INSTALL): Add install-plain.texi as the primary
10474         dependency.
10475         * manual/install-plain.texi: New file.
10476         * manual/install.texi: Include node directive only for
10477         non-plaintext output.
10478
10479 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
10480
10481         * stdlib/longlong.h: Update from GCC.
10482
10483         [BZ #6807]
10484         [BZ #15901]
10485         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
10486         * math/w_j0f.c (y0f): Likewise.
10487         * math/w_j0l.c (__y0l): Likewise.
10488         * math/w_j1.c (y1): Likewise.
10489         * math/w_j1f.c (y1f): Likewise.
10490         * math/w_j1l.c (__y1l): Likewise
10491         * math/w_jn.c (yn): Likewise.
10492         * math/w_jnf.c (ynf): Likewise.
10493         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
10494         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
10495         value for Bessel function domain errors outside _SVID_ mode.
10496         Adjust sign of return value for yn (negative integer, 0).
10497         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
10498         by zero in return for negative x and set sign appropriately for
10499         negative n.
10500         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
10501         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
10502         * math/libm-test.inc (y0_test_data): Add more tests and adjust
10503         expectations in error cases.
10504         (y1_test_data): Likewise.
10505         (yn_test_data): Likewise.
10506         * sysdeps/i386/fpu/libm-test-ulps: Update.
10507         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10508
10509 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10510
10511         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
10512         "64" to "64-v1".  Add "64-v2".
10513         (abi-64-options): Rename to ...
10514         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
10515         (abi-64-condition): Rename to ...
10516         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
10517         (abi-64-ld-soname): Rename to ...
10518         (abi-64-v1-ld-soname): ... this.
10519         (abi-64-v2-options): Define.
10520         (abi-64-v2-condition): Likewise.
10521         (abi-64-v2-ld-soname): Likewise.
10522         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
10523         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
10524         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
10525         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
10526         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
10527
10528 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10529             Alan Modra  <amodra@gmail.com>
10530
10531         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
10532         New versions for use with the ELFv2 ABI.
10533         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
10534         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
10535         declaration.
10536         (struct La_ppc64v2_retval): Likewise.
10537         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
10538         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
10539         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
10540         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
10541         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
10542         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
10543         Do not save or restore CR.
10544         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
10545         (_dl_profile_resolve): Do no save or restore CR.  Support extended
10546         return values for ELFv2 ABI.  Fix location of FPR return registers.
10547         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
10548         updated values for _CALL_ELF == 2.
10549         (La_regs, La_retval, int_retval): Likewise.
10550
10551 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10552
10553         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
10554         (FRAME_MIN_SIZE_PARM): Likewise.
10555         (FRAME_BACKCHAIN): Likewise.
10556         (FRAME_CR_SAVE): Likewise.
10557         (FRAME_LR_SAVE): Likewise.
10558         (FRAME_TOC_SAVE): Likewise.
10559         (FRAME_PARM_SAVE): Likewise.
10560         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
10561         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
10562         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10563         (call_mcount_parm_offset): New macro.
10564         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
10565         (PROF): Use symbolic stack frame offsets.
10566         (TAIL_CALL_SYSCALL_ERROR): Likewise.
10567         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
10568         Redefine in terms of FRAME_MIN_SIZE.
10569         (_dl_runtime_resolve): Use symbolic stack frame offsets.
10570         (_dl_profile_resolve): Likewise.  Update comment.
10571         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
10572         symbols stack frame offsets.
10573         (__sigsetjmp): Likewise.
10574         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
10575         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
10576         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
10577         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
10578
10579         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
10580         (FRAME_BACKCHAIN): Remove.
10581         (FRAME_CR_SAVE): Likewise.
10582         (FRAME_LR_SAVE): Likewise.
10583         (FRAME_COMPILER_DW): Likewise.
10584         (FRAME_LINKER_DW): Likewise.
10585         (FRAME_TOC_SAVE): Likewise.
10586         (FRAME_PARM_SAVE): Likewise.
10587         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
10588         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
10589         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
10590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
10591         (CHECK_SP): Use symbolic stack frame offsets.
10592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
10593         zone" instead of caller's parameter save area for temp storage.
10594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
10595         Likewise.  Also, use symbolic stack frame offsets.
10596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
10597         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
10598         our own stack frame instead of the caller's.
10599         (__socket): Use symbolic stack frame offsets.
10600
10601 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10602             Alan Modra  <amodra@gmail.com>
10603
10604         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
10605         Define.
10606         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
10607         (PPC64_LOCAL_ENTRY_OFFSET): Define.
10608         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
10609         New function.
10610         (elf_machine_fixup_plt): Call it.
10611         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
10612         reloc arguments.
10613         (elf_machine_rela): Update call to elf_machine_plt_conflict.
10614         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10615         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
10616         r2 before calling target.
10617
10618 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10619             Alan Modra  <amodra@gmail.com>
10620
10621         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
10622         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
10623         versions of macros to support ELFv2 ABI.
10624         (LOCALENTRY): New macro.
10625         (ENTRY, EALIGN): Use it.
10626         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
10627         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
10628         fall through into ENTRY entry point.
10629         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
10630         Only define if _CALL_ELF != 2.
10631
10632         (elf_machine_matches_host): Verify ABI version matches.
10633         (RTLD_START): Use LOCALENTRY.
10634         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
10635         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
10636         (PLT_ENTRY_WORDS): New macro.
10637         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
10638         (elf_machine_runtime_setup): Support ELFv2 ABI.
10639         (elf_machine_fixup_plt): Likewise.
10640         (elf_machine_plt_conflict): Likewise.
10641         (resolve_ifunc): Likewise.
10642         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
10643         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
10644         Likewise.
10645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
10646         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
10647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10648         (makecontext): Support ELFv2 ABI.
10649         * elf/elf.h (EF_PPC64_ABI): Define.
10650
10651 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10652
10653         * sysdeps/powerpc/powerpc64/sysdep.h
10654         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
10655         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
10656         (ENTRY) [ASSEMBLER]: ... but instead here ...
10657         (EALIGN) [ASSEMBLER]: ... and here.
10658         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
10659         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
10660         (ENTRY_2) [!ASSEMBLER]: Use it.
10661         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
10662         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
10663         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
10664         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
10665         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
10666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
10667         Use PPC64_LOAD_FUNCPTR.
10668
10669         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
10670
10671 2013-12-04  Alan Modra  <amodra@gmail.com>
10672
10673         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
10674         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
10675         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
10676         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
10677
10678         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
10679         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
10680         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
10681         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
10682         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
10683         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
10684
10685 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10686
10687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
10688         (__makecontext): Fix incorrect CFI when backtracing out of
10689         context created via makecontext.
10690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
10691         (__setcontext): Fix incorrect CFI during switch to new context.
10692         (__novec_setcontext): Likewise.
10693
10694 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10695
10696         [BZ #4772]
10697         * time/strptime_l.c (__strptime_internal): Allow modifiers
10698         in strptime.
10699         * time/tst-strptime.c (day_tests): Add testcase.
10700
10701 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10702
10703         * scripts/bench.pl: Skip over blank lines.
10704
10705 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
10706
10707         [BZ #926]
10708         * manual/time.texi (Calendar Time): Clarify what timezone functions
10709         use.
10710
10711 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10712
10713         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10714
10715 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
10716
10717         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
10718         implementation.
10719         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
10720         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
10721         * debug/memset_chk.c (__memset_chk): Likewise.
10722         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
10723         * debug/strncpy_chk.c: Likewise.
10724
10725 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10726
10727         [BZ #15268]
10728         [BZ #15425]
10729         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
10730         (__ieee754_exp): For possibly underflowing results, check size of
10731         result and force underflow exception if required.
10732         * math/auto-libm-test-in: Add more tests of exp.
10733         * math/auto-libm-test-out: Regenerated.
10734         * sysdeps/i386/fpu/libm-test-ulps: Update.
10735         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10736
10737         [BZ #16283]
10738         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
10739         * math/w_exp2f.c (__exp2f): Likewise.
10740         * math/w_exp2l.c (__exp2l): Likewise.
10741         * math/auto-libm-test-in: Do not allow missing errno on exp2
10742         underflow.
10743         * math/auto-libm-test-out: Regenerated.
10744
10745 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
10746
10747         [BZ #16274]
10748         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
10749         handle filename validation.
10750         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
10751         (do_open): Delete.
10752
10753 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
10754
10755         [BZ #6786]
10756         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
10757         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
10758         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
10759         <float.h>.
10760         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
10761         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
10762         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10763         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
10764         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10765         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
10766         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
10767         * math/auto-libm-test-in: Don't allow missing errno from erfc.
10768         Add more erfc tests.
10769         * math/auto-libm-test-out: Regenerated.
10770         * sysdeps/i386/fpu/libm-test-ulps: Update.
10771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10772
10773         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
10774         exp2, expm1, j0 and j1.
10775         * math/auto-libm-test-out: Regenerated.
10776         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
10777         (erfc_test_data): Likewise.
10778         (exp_test_data): Likewise.
10779         (exp_tonearest_test_data): Likewise.
10780         (exp_towardzero_test_data): Likewise.
10781         (exp_downward_test_data): Likewise.
10782         (exp_upward_test_data): Likewise.
10783         (exp10_test_data): Likewise.
10784         (exp2_test_data): Likewise.
10785         (expm1_test_data): Likewise.
10786         (j0_test_data): Likewise.
10787         (j1_test_data): Likewise.
10788         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
10789         (input_flag_type): Add flag_xfail_rounding.
10790         (input_flags): Add xfail-rounding.
10791         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
10792         (output_for_one_input_case): Handle flag_xfail_rounding.
10793         * sysdeps/i386/fpu/libm-test-ulps: Update.
10794         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10795
10796 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
10797
10798         [BZ #16289]
10799         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
10800         division by 0.
10801
10802 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
10803
10804         [BZ #16195]
10805         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
10806         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
10807         (STAP_PROBE0): New macro.
10808         (STAP_PROBE1): Likewise.
10809         (STAP_PROBE2): Likewise.
10810         (STAP_PROBE3): Likewise.
10811         (STAP_PROBE4): Likewise.
10812
10813 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
10814
10815         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
10816
10817 2013-12-02  Steve Ellcey  <sellcey@mips.com>
10818
10819         * benchtests/Makefile (bench): Add sqrt.
10820         (LDLIBS-bench-sqrt): New.
10821         * benchtests/sqrt-input: New.
10822
10823 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
10824
10825         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
10826         (GAIH_EAI): Likewise.
10827         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
10828         (gaih_inet): Likewise.
10829         (getaddrinfo): Don't use GAIH_EAI.
10830
10831         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
10832         (struct gaih): Remove definition.
10833
10834 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10835
10836         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
10837         Use HERRNOP directly.
10838
10839 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10840
10841         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10842
10843 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
10844
10845         * math/gen-auto-libm-tests.c (test_functions): Add more
10846         single-argument functions.
10847         (special_fill_pi_2): New function.
10848         (special_fill_minus_pi_2): Likewise.
10849         (special_fill_pi_6): Likewise.
10850         (special_fill_minus_pi_6): Likewise.
10851         (special_fill_pi_3): Likewise.
10852         (special_fill_2pi_3): Likewise.
10853         (special_fill_e): Likewise.
10854         (special_fill_1_e): Likewise.
10855         (special_fill_e_minus_1): Likewise.
10856         (special_real_inputs): Add more special inputs.
10857         (output_for_one_input_case): Do not require ERANGE on underflow to
10858         zero if round-to-nearest result does not underflow to zero, unless
10859         exact results required.
10860         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
10861         atan, atanh, cbrt, cos and cosh.
10862         * math/auto-libm-test-out: Regenerated.
10863         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
10864         (acos_tonearest_test_data): Likewise.
10865         (acos_towardzero_test_data): Likewise.
10866         (acos_downward_test_data): Likewise.
10867         (acos_upward_test_data): Likewise.
10868         (acosh_test_data): Likewise.
10869         (asin_test_data): Likewise.
10870         (asin_tonearest_test_data): Likewise.
10871         (asin_towardzero_test_data): Likewise.
10872         (asin_upward_test_data): Likewise.
10873         (asinh_test_data): Likewise.
10874         (atan_test_data): Likewise.
10875         (atanh_test_data): Likewise.
10876         (cbrt_test_data): Likewise.
10877         (cos_test_data): Likewise.
10878         (cos_tonearest_test_data): Likewise.
10879         (cos_towardzero_test_data): Likewise.
10880         (cos_downward_test_data): Likewise.
10881         (cos_upward_test_data): Likewise.
10882         (cosh_test_data): Likewise.
10883         (cosh_tonearest_test_data): Likewise.
10884         (cosh_towardzero_test_data): Likewise.
10885         (cosh_downward_test_data): Likewise.
10886         (cosh_upward_test_data): Likewise.
10887         * sysdeps/i386/fpu/libm-test-ulps: Update.
10888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10889
10890 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
10891
10892         [BZ #6787]
10893         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
10894         * math/w_exp10f.c (__exp10f): Likewise.
10895         * math/w_exp10l.c (__exp10l): Likewise.
10896         * math/libm-test.inc (exp10_test_data): Add more tests and expect
10897         errno settings in existing tests.
10898
10899         [BZ #14032]
10900         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
10901         precision control set to double precision.
10902         * sysdeps/i386/fpu/w_sqrt.c: New file.
10903         * math/auto-libm-test-in: Add more tests.
10904         * math/auto-libm-test-out: Update.
10905
10906         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
10907         (sqrt_test_tonearest): New function.
10908         (sqrt_towardzero_test_data): New variable.
10909         (sqrt_test_towardzero): New function.
10910         (sqrt_downward_test_data): New variable.
10911         (sqrt_test_downward): New function.
10912         (sqrt_upward_test_data): New variable.
10913         (sqrt_test_upward): New function.
10914         (main): Call the new functions.
10915
10916         * math/gen-auto-libm-tests.c: New file.
10917         * math/auto-libm-test-in: Likewise.
10918         * math/auto-libm-test-out: New generated file.
10919         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
10920         variables.
10921         (%beautify): Add generated representations of zero.
10922         (top level): Set $auto_input and call parse_auto_input.
10923         (beautify): Remove trailing "f" from hex float constants.
10924         (parse_args): Handle XFAIL_TEST.
10925         (convert_condition): New function.
10926         (or_value): Likewise.
10927         (or_cond_value): Likewise.
10928         (generate_testfile): Handle AUTO_TESTS_* lines.
10929         (parse_auto_input): New function.
10930         * math/libm-test.inc (XFAIL_TEST): New macro.
10931         (ERRNO_UNCHANGED): Update value.
10932         (ERRNO_EDOM): Likewise.
10933         (ERRNO_ERANGE): Likewise.
10934         (IGNORE_RESULT): Likewise.
10935         (TEST_COND_flt_32): New macro.
10936         (TEST_COND_dbl_64): Likewise.
10937         (TEST_COND_ldbl_96_intel): Likewise.
10938         (TEST_COND_ldbl_96_m68k): Likewise.
10939         (TEST_COND_ldbl_128): Likewise.
10940         (TEST_COND_ldbl_128ibm): Likewise.
10941         (TEST_COND_long32): Likewise.
10942         (TEST_COND_long64): Likewise.
10943         (TEST_COND_before_rounding): Likewise.
10944         (TEST_COND_after_rounding): Likewise.
10945         (enable_test): Handle XFAIL_TEST flag.
10946         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
10947         with finite results.
10948         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
10949         auto-libm-test-out.
10950
10951 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
10952             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10953
10954         [BZ #16214]
10955         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
10956         __tls_get_addr_internal instead of __tls_get_offset in order to
10957         avoid GOT pointer dependency.  Make rtld export
10958         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
10959         __tls_get_addr since we are a __tls_get_offset platform.
10960         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
10961         GOT pointer being set up before.
10962         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
10963
10964 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
10965
10966         * manual/math.texi (Errors in Math Functions): Document accuracy
10967         goals.
10968
10969         [BZ #15004]
10970         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
10971         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
10972         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10973         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
10974         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
10975         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
10976         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
10977         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
10978         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
10979         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
10980         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
10981         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
10984         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
10986
10987         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
10988         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
10989         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
10990         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
10991         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
10992         Likewise.
10993         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
10994         Likewise.
10995         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
10996         Likewise.
10997         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
10998         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
10999         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
11000         atomic-feupdateenv and flt-rounds.
11001         * sysdeps/powerpc/nofpu/Versions (libc): Add
11002         __atomic_feholdexcept, __atomic_feclearexcept,
11003         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
11004         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
11005         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
11006         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
11007         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
11008         here.
11009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
11010         Update.
11011
11012         * manual/arith.texi (FP Exceptions): Document that exceptions may
11013         not be raised when matherr is used.
11014         (Math Error Reporting): Document overflow in directed rounding
11015         modes.  Document that errno may not be set when finite values are
11016         returned on overflow.  Document intent to set errno on underflow
11017         only for underflow to zero.
11018
11019         [BZ #16271]
11020         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
11021         round-to-nearest then adjust result for other rounding modes.
11022         * include/fenv.h (fegetround): Use libm_hidden_proto.
11023         * math/fegetround.c (fegetround): Use libm_hidden_def.
11024         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
11025         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
11026         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11027         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
11028         Likewise.
11029         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
11030         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11031         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
11032         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
11033
11034 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11035
11036         [BZ #16077]
11037         * nss/Versions (libnss_files): Add
11038         _nss_files_gethostbyname3_r.
11039         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
11040         New function.
11041         (HOST_DB_LOOKUP): Remove macro.
11042         (_nss_files_gethostbyname_r): Implement function without the
11043         HOST_DB_LOOKUP macro.
11044         (_nss_files_gethostbyname2_r): Likewise.
11045
11046 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
11047
11048         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
11049
11050 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
11051
11052         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
11053         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
11054         warning.
11055
11056 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11057
11058         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
11059         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
11060         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
11061         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
11062         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
11063         __fe_nomask_env_priv and attribute_hidden.
11064         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
11065         (libc_feupdateenv_test_ppc): Likewise.
11066         (libc_feresetround_ppc): Likewise.
11067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11068         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
11069         compat_symbol macro.
11070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11071         (__fe_nomask_env): Likewise.
11072         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
11073
11074 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11075
11076         * string/Makefile: Remove ifunc tests.
11077         * string/test-string.h: Define TEST_IFUNC.
11078         * string/test-bcopy-ifunc.c: Remove.
11079         * string/test-bzero-ifunc.c: Likewise.
11080         * string/test-memccpy-ifunc.c: Likewise.
11081         * string/test-memchr-ifunc.c: Likewise.
11082         * string/test-memcmp-ifunc.c: Likewise.
11083         * string/test-memcpy-ifunc.c: Likewise.
11084         * string/test-memmem-ifunc.c: Likewise.
11085         * string/test-memmove-ifunc.c: Likewise.
11086         * string/test-mempcpy-ifunc.c: Likewise.
11087         * string/test-memrchr-ifunc.c: Likewise.
11088         * string/test-memset-ifunc.c: Likewise.
11089         * string/test-rawmemchr-ifunc.c: Likewise.
11090         * string/test-stpcpy-ifunc.c: Likewise.
11091         * string/test-stpncpy-ifunc.c: Likewise.
11092         * string/test-strcasecmp-ifunc.c: Likewise.
11093         * string/test-strcasestr-ifunc.c: Likewise.
11094         * string/test-strcat-ifunc.c: Likewise.
11095         * string/test-strchr-ifunc.c: Likewise.
11096         * string/test-strchrnul-ifunc.c: Likewise.
11097         * string/test-strcmp-ifunc.c: Likewise.
11098         * string/test-strcpy-ifunc.c: Likewise.
11099         * string/test-strcspn-ifunc.c: Likewise.
11100         * string/test-strlen-ifunc.c: Likewise.
11101         * string/test-strncasecmp-ifunc.c: Likewise.
11102         * string/test-strncat-ifunc.c: Likewise.
11103         * string/test-strncmp-ifunc.c: Likewise.
11104         * string/test-strncpy-ifunc.c: Likewise.
11105         * string/test-strnlen-ifunc.c: Likewise.
11106         * string/test-strpbrk-ifunc.c: Likewise.
11107         * string/test-strrchr-ifunc.c: Likewise.
11108         * string/test-strspn-ifunc.c: Likewise.
11109         * string/test-strstr-ifunc.c: Likewise.
11110
11111 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11112
11113         * benchtests/Makefile: Remove ifunc tests.
11114         * benchtests/bench-string.h: Define TEST_IFUNC.
11115         * benchtests/bench-bcopy-ifunc.c: Remove.
11116         * benchtests/bench-bzero-ifunc.c: Likewise.
11117         * benchtests/bench-memccpy-ifunc.c: Likewise.
11118         * benchtests/bench-memchr-ifunc.c: Likewise.
11119         * benchtests/bench-memcmp-ifunc.c: Likewise.
11120         * benchtests/bench-memcpy-ifunc.c: Likewise.
11121         * benchtests/bench-memmem-ifunc.c: Likewise.
11122         * benchtests/bench-memmove-ifunc.c: Likewise.
11123         * benchtests/bench-mempcpy-ifunc.c: Likewise.
11124         * benchtests/bench-memrchr-ifunc.c: Likewise.
11125         * benchtests/bench-memset-ifunc.c: Likewise.
11126         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
11127         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
11128         * benchtests/bench-stpcpy-ifunc.c: Likewise.
11129         * benchtests/bench-stpncpy-ifunc.c: Likewise.
11130         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
11131         * benchtests/bench-strcasestr-ifunc.c: Likewise.
11132         * benchtests/bench-strcat-ifunc.c: Likewise.
11133         * benchtests/bench-strchr-ifunc.c: Likewise.
11134         * benchtests/bench-strchrnul-ifunc.c: Likewise.
11135         * benchtests/bench-strcmp-ifunc.c: Likewise.
11136         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
11137         * benchtests/bench-strcpy-ifunc.c: Likewise.
11138         * benchtests/bench-strcspn-ifunc.c: Likewise.
11139         * benchtests/bench-strlen-ifunc.c: Likewise.
11140         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
11141         * benchtests/bench-strncat-ifunc.c: Likewise.
11142         * benchtests/bench-strncmp-ifunc.c: Likewise.
11143         * benchtests/bench-strncpy-ifunc.c: Likewise.
11144         * benchtests/bench-strnlen-ifunc.c: Likewise.
11145         * benchtests/bench-strpbrk-ifunc.c: Likewise.
11146         * benchtests/bench-strrchr-ifunc.c: Likewise.
11147         * benchtests/bench-strsep-ifunc.c: Likewise.
11148         * benchtests/bench-strspn-ifunc.c: Likewise.
11149         * benchtests/bench-strstr-ifunc.c: Likewise.
11150
11151 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11152
11153         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
11154
11155 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
11156
11157         * resolv/netdb.h: Use __glibc_reserved instead __unused.
11158         * rt/aio.h: Likewise.
11159         * sysdeps/gnu/bits/utmp.h: Likewise.
11160         * sysdeps/gnu/bits/utmpx.h: Likewise.
11161         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11162         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
11163         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
11164         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
11165         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
11166         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
11167         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
11168         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
11169         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
11170         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
11171         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
11172         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11173         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
11174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
11175         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
11176         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
11177         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
11178         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
11179         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
11180         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
11181         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
11182         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
11183         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
11184         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
11185         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11186         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11187         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
11188         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
11189         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
11190         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11191         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
11192         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
11193         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
11194         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
11195         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
11196         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
11197         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
11198         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
11199         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11200         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
11201         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
11202         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
11203
11204 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
11205
11206         [BZ #16245]
11207         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
11208         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
11209
11210 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
11211
11212         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
11213         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
11214         Likewise.
11215
11216 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11217
11218         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
11219         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
11220         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
11221         (__fesetround): Remove define.
11222         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
11223         rounding and exceptions handling.
11224         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
11225         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
11226         (__fe_nomask_env): Likewise.
11227         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
11228         __fegetround instead of fegetround.
11229         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
11230         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
11231
11232 2013-11-21  Roland McGrath  <roland@hack.frob.com>
11233
11234         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
11235         it's there.
11236
11237         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
11238
11239 2013-11-21  Meador Inge  <meadori@codesourcery.com>
11240
11241         [BZ #11157]
11242         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
11243         (encrypt_r): Likewise.
11244         * malloc/obstack.h (obstack_free): Likewise.
11245         * posix/unistd.h (encrypt): Likewise.
11246
11247 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
11248
11249         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
11250         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
11251         DL_CALL_DT_FINI() that call the functions directly.
11252         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
11253         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
11254         * elf/dl-fini.c: Likewise.
11255
11256 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
11257
11258         * malloc/hooks.c (memalign_check): Add alignment rounding.
11259         * malloc/malloc.c (_mid_memalign): New function.
11260         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
11261         Implement by calling _mid_memalign.
11262         * manual/probes.texi (Memory Allocation Probes): Remove
11263         memory_valloc_retry and memory_pvalloc_retry.
11264
11265 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11266
11267         * locale/programs/locarchive.c (open_archive): Add const
11268         qualifier to ARCHIVEFNAME and copy default fname to
11269         DEFAULT_FNAME.
11270
11271         [BZ #15601]
11272         * libio/tst-widetext.input: Rename Oriya to Odia.
11273         * locale/iso-639.def: Likewise.
11274
11275         * manual/probes.texi (Mathematical Function Probes): Add
11276         documentation for sin, cos, asin and acos probes.
11277         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
11278         (__sin32): Add slowasin probe.
11279         (__cos32): Add slowacos probe.
11280         (__mpsin): Add slowsin probe.
11281         (__mpcos): Add slowcos probe.
11282
11283 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
11284
11285         [BZ #15483]
11286         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
11287         thread-local __sim_exceptions_thread and global
11288         __sim_exceptions_global.
11289         (__sim_disabled_exceptions): Change to thread-local
11290         __sim_disabled_exceptions_thread and global
11291         __sim_disabled_exceptions_global.
11292         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11293         and global __sim_round_mode_global.
11294         (__simulate_exceptions): Use thread-local floating-point state and
11295         set global state from it as needed.
11296         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
11297         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
11298         __sim_round_mode_thread.
11299         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
11300         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
11301         and global __sim_exceptions_global.
11302         (__sim_disabled_exceptions): Change to thread-local
11303         __sim_disabled_exceptions_thread and global
11304         __sim_disabled_exceptions_global.
11305         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
11306         and global __sim_round_mode_global.
11307         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
11308         (SIM_SET_GLOBAL): Likewise.
11309         * sysdeps/powerpc/soft-fp/sfp-machine.h
11310         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
11311         __sim_round_mode_thread.
11312         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
11313         __sim_disabled_exceptions_thread.
11314         (__sim_exceptions): Change to __sim_exceptions_thread.
11315         (__sim_disabled_exceptions): Change to
11316         __sim_disabled_exceptions_thread.
11317         (__sim_round_mode): Change to __sim_round_mode_thread.
11318         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
11319         thread-local floating-point state and set global state from it as
11320         needed.
11321         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
11322         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
11323         (__sim_disabled_exceptions): Remove extern declaration.
11324         (feenableexcept): Use thread-local floating-point state and set
11325         global state from it as needed.
11326         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
11327         extern declaration.
11328         (__sim_disabled_exceptions): Likewise.
11329         (__sim_round_mode): Likewise.
11330         (__fegetenv): Use thread-local floating-point state.
11331         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
11332         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
11333         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
11334         floating-point state and set global state from it as needed.
11335         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
11336         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
11337         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
11338         Likewise.
11339         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
11340         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
11341         Likewise.
11342         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
11343         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
11344         Use __sim_round_mode_thread.
11345         * math/test-fenv-tls.c: New file.
11346         * math/Makefile (tests): Add test-fenv-tls.
11347         ($(objpfx)test-fenv-tls): Depend on
11348         $(common-objpfx)nptl/libpthread.so.
11349
11350 2013-11-19  Andreas Schwab  <schwab@suse.de>
11351
11352         * locale/programs/locale.c (show_info): Decode wordarray elements.
11353         * locale/categories.def (LC_MONETARY): Add element for
11354         _NL_MONETARY_CRNCYSTR.
11355         * locale/C-monetary.c (conversion_rate): New variable.
11356         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
11357         element.
11358
11359 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
11360
11361         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
11362         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
11363
11364 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11365
11366         * elf/Makefile (tst-auxv): New test.
11367         * elf/tst-auxv.c: New
11368         * elf/rtld.c (dl_main): Adjust AT_EXECFN
11369
11370 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
11371
11372         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
11373         (hidden_proto): Caller changed.
11374         (hidden_tls_proto): New macro.
11375         (libc_hidden_tls_proto): Likewise.
11376         (rtld_hidden_tls_proto): Likewise.
11377         (libm_hidden_tls_proto): Likewise.
11378         (libresolv_hidden_tls_proto): Likewise.
11379         (librt_hidden_tls_proto): Likewise.
11380         (libdl_hidden_tls_proto): Likewise.
11381         (libnss_files_hidden_tls_proto): Likewise.
11382         (libnsl_hidden_tls_proto): Likewise.
11383         (libnss_nisplus_hidden_tls_proto): Likewise.
11384         (libutil_hidden_tls_proto): Likewise.
11385
11386 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
11387
11388         [BZ #10253]
11389         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
11390         (decompose_rpath): Defer expansion to fillin_rpath.
11391         (_dl_init_paths): Pass linkmap to fillin_rpath.
11392
11393 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11394
11395         * benchtests/Makefile: Add strsep.
11396         * benchtests/bench-strsep.c: New file: strsep benchtest.
11397         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
11398
11399 2013-11-18  Andreas Schwab  <schwab@suse.de>
11400
11401         * locale/programs/locale.c (show_info) [case byte]: Check for
11402         '\377' instead of '\177'.
11403         * locale/C-monetary.c (not_available): Always use "\377".
11404         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
11405         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
11406         detect unavailable sign_posn locale elements.
11407         * locale/localeconv.c (__localeconv): For grouping and
11408         mon_grouping handle "\177" and "\377" like no grouping.
11409         (INT_ELEM): New macro.  Use it to set all numeric members.
11410         * locale/programs/ld-monetary.c (monetary_read)
11411         <tok_mon_grouping>: Normalize single -1 to the empty string.
11412         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
11413         Likewise.
11414
11415 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11416
11417         [BZ #16055]
11418         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
11419         when we match (nil).
11420         * stdio-common/tst-sscanf.c (struct test): Add testcase.
11421
11422 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
11423
11424         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
11425         (NO_TEST_INLINE): Update value.
11426         (ERRNO_UNCHANGED): Likewise.
11427         (ERRNO_EDOM): Likewise.
11428         (ERRNO_ERANGE): Likewise.
11429         (IGNORE_RESULT): Likewise.
11430         (check_float_internal): Check signs of NaN results if
11431         TEST_NAN_SIGN used.
11432         (check_complex): Pass TEST_NAN_SIGN flag through to second
11433         check_float_internal call.
11434         (copysign_test_data): Add tests with quiet NaNs as second
11435         argument.  Use TEST_NAN_SIGN.
11436         (fabs_test_data): Add test of negative quiet NaN argument.  Use
11437         TEST_NAN_SIGN.
11438         (signbit_test_data): Add tests of quiet NaN argument.
11439         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
11440
11441         * math/gen-libm-test.pl (show_exceptions): Take extra argument
11442         $ignore_result.
11443         (parse_args): Handle function results specified as IGNORE.
11444         * math/libm-test.inc (IGNORE_RESULT): New macro.
11445         (check_float_internal): Do not check numerical result if flag
11446         IGNORE_RESULT set.
11447         (check_complex): Pass through IGNORE_RESULT to second
11448         check_float_internal call.
11449         (check_int): Do not check numerical result if flag IGNORE_RESULT
11450         set.
11451         (check_long): Likewise.
11452         (check_bool): Likewise.
11453         (check_longlong): Likewise.
11454         (lrint_test_data): Add tests of infinite and NaN arguments.
11455         (lrint_tonearest_test_data): Likewise.
11456         (lrint_towardzero_test_data): Likewise.
11457         (lrint_downward_test_data): Likewise.
11458         (lrint_upward_test_data): Likewise.
11459         (llrint_test_data): Likewise.
11460         (llrint_tonearest_test_data): Likewise.
11461         (llrint_towardzero_test_data): Likewise.
11462         (llrint_downward_test_data): Likewise.
11463         (llrint_upward_test_data): Likewise.
11464         (lround_test_data): Likewise.
11465         (llround_test_data): Likewise.
11466
11467         * math/libm-test.inc (NO_TEST_INLINE): New macro.
11468         (ERRNO_UNCHANGED): Update value.
11469         (ERRNO_EDOM): Likewise.
11470         (ERRNO_ERANGE): Likewise.
11471         (NO_TEST_INLINE_FLOAT): New macro.
11472         (NO_TEST_INLINE_DOUBLE): Likewise.
11473         (enable_test): New function.
11474         (RUN_TEST_f_f): Check enable_test before running test.
11475         (RUN_TEST_2_f): Likewise.
11476         (RUN_TEST_fff_f): Likewise.
11477         (RUN_TEST_c_f): Likewise.
11478         (RUN_TEST_f_f1): Likewise.
11479         (RUN_TEST_fF_f1): Likewise.
11480         (RUN_TEST_fI_f1): Likewise.
11481         (RUN_TEST_ffI_f1): Likewise.
11482         (RUN_TEST_c_c): Likewise.
11483         (RUN_TEST_cc_c): Likewise.
11484         (RUN_TEST_f_i): Likewise.
11485         (RUN_TEST_f_i_tg): Likewise.
11486         (RUN_TEST_ff_i_tg): Likewise.
11487         (RUN_TEST_f_b): Likewise.
11488         (RUN_TEST_f_b_tg): Likewise.
11489         (RUN_TEST_f_l): Likewise.
11490         (RUN_TEST_f_L): Likewise.
11491         (RUN_TEST_fFF_11): Likewise.
11492         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
11493         conditionals.
11494         (cosh_test_data): Likewise.
11495         (exp_test_data): Likewise.
11496         (expm1_test_data): Likewise.
11497         (hypot_test_data): Likewise.
11498         (pow_test_data): Likewise.
11499         (sinh_test_data): Likewise.
11500         (tanh_test_data): Likewise.
11501         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
11502         flags argument.
11503
11504         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
11505         tests with quiet NaN input and output.
11506         (acosh_test_data): Likewise.
11507         (asin_test_data): Likewise.
11508         (asinh_test_data): Likewise.
11509         (atan_test_data): Likewise.
11510         (atanh_test_data): Likewise.
11511         (atan2_test_data): Likewise.
11512         (cbrt_test_data): Likewise.
11513         (cos_test_data): Likewise.
11514         (cosh_test_data): Likewise.
11515         (erf_test_data): Likewise.
11516         (erfc_test_data): Likewise.
11517         (exp_test_data): Likewise.
11518         (exp10_test_data): Likewise.
11519         (exp2_test_data): Likewise.
11520         (expm1_test_data): Likewise.
11521         (hypot_test_data): Likewise.
11522         (j0_test_data): Likewise.
11523         (j1_test_data): Likewise.
11524         (jn_test_data): Likewise.
11525         (lgamma_test_data): Likewise.
11526         (log_test_data): Likewise.
11527         (log10_test_data): Likewise.
11528         (log1p_test_data): Likewise.
11529         (log2_test_data): Likewise.
11530         (pow_test_data): Likewise.
11531         (scalb_test_data): Likewise.
11532         (sin_test_data): Likewise.
11533         (sincos_test_data): Likewise.
11534         (sinh_test_data): Likewise.
11535         (tan_test_data): Likewise.
11536         (tanh_test_data): Likewise.
11537         (tgamma_test_data): Likewise.
11538         (y0_test_data): Likewise.
11539         (y1_test_data): Likewise.
11540         (yn_test_data): Likewise.
11541
11542         [BZ #16167]
11543         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
11544         argument being NaN and avoid computations with second argument in
11545         that case.
11546         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11547         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
11548         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11549
11550 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
11551
11552         * locale/iso-639.def: Add Chitwani Tharu (the).
11553
11554 2013-11-14  Andreas Schwab  <schwab@suse.de>
11555
11556         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
11557         word instead of empty string.
11558
11559 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11560
11561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11562         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
11563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11564         (__fe_nomask_env): Likewise.
11565
11566 2013-11-13  Steve Ellcey  <sellcey@mips.com>
11567
11568         * benchtests/bench-timing.h: Include time.h.
11569
11570 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
11571
11572         [BZ #15997]
11573         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
11574         to 3.4.0 for x32.
11575         * sysdeps/unix/sysv/linux/configure: Regenerated.
11576
11577 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
11578
11579         [BZ #16151]
11580         * stdlib/strtod_l.c (round_and_return): Do not consider
11581         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
11582         exponent one less than half the least subnormal exponent.
11583         * stdlib/test-strtod-round-data: Add more tests.
11584         * stdlib/tst-strtod-round.c (tests): Regenerated.
11585
11586 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11587
11588         [BZ #14143]
11589         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
11590         (__fe_mask_env): Likewise.
11591         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
11592         libm_hidden_proto and add function prototype.
11593         (__fe_mask_env): Add function prototype.
11594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
11595         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
11596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
11597         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
11598         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
11599         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
11600
11601 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11602
11603         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
11604         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
11605
11606 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11607
11608         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
11609         of htab_find_slot().
11610
11611 2013-11-11  David S. Miller  <davem@davemloft.net>
11612
11613         [BZ #16150]
11614         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
11615         symbol in the non-vis3 case in static builds.
11616         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
11617         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
11618         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
11619         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
11620
11621 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
11622
11623         [BZ #387]
11624         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
11625         it is empty.
11626
11627 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11628
11629         * benchtests/Makefile: Add bench-strtod.
11630         * benchtests/bench-strtod.c: New file: strtod benchtest
11631
11632 2013-11-11  Andreas Schwab  <schwab@suse.de>
11633
11634         [BZ #16153]
11635         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
11636         terminating NUL in key length.
11637
11638 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11639
11640         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
11641         Add artificial ODP entry for vDSO symbol for PPC64.
11642         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
11643         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
11644
11645 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
11646
11647         [BZ #15374]
11648         * nss/getent.c (services_keys): Recognize services starting with digit.
11649
11650 2013-11-06  David S. Miller  <davem@davemloft.net>
11651
11652         [BZ #15985]
11653         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
11654         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
11655
11656 2013-11-06  Will Newton  <will.newton@linaro.org>
11657
11658         * manual/memory.texi (Malloc Examples): Remove register
11659         keyword from examples.
11660
11661 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
11662
11663         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
11664
11665 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
11666
11667         [BZ #6981]
11668         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
11669         depending on [__GCC_IEC_559 > 0].
11670         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
11671         depending on [__GCC_IEC_559_COMPLEX > 0].
11672
11673 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
11674
11675         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
11676         to iso-639.def.
11677
11678 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
11679
11680         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
11681
11682 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
11683
11684         [BZ #16112]
11685         * malloc/malloc (malloc_info): Do not handle first bin as
11686         special case.
11687
11688 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
11689
11690         * locale/iso-639.def: Add Central Nahuatl (nhn).
11691
11692 2013-11-01  Bruno Haible  <bruno@clisp.org>
11693
11694         [BZ #7003]
11695         * manual/math.texi (BSD Random): Specify range upper bound as
11696         in POSIX.
11697
11698 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
11699
11700         * locale/iso-639.def: Add Meadow Mari (mhr).
11701
11702 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
11703
11704         [BZ #14752], [BZ #15763]
11705         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
11706         Validate name.
11707         * rt/tst_shm.c: Add test for escaping directory.
11708
11709 2013-10-31  Andreas Schwab  <schwab@suse.de>
11710
11711         [BZ #15917]
11712         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
11713         followed by 'x' as part of digit sequence.
11714         * stdio-common/tst-sscanf.c (double_tests2): New tests.
11715
11716 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
11717
11718         [BZ #16037]
11719         * configure.ac: allow GNU Make 4.0 and greater.
11720         * configure: Regenerated.
11721
11722 2013-10-30  Will Newton  <will.newton@linaro.org>
11723
11724         [BZ #16038]
11725         * malloc/hooks.c (memalign_check): Limit alignment to the
11726         maximum representable power of two.
11727         * malloc/malloc.c (__libc_memalign): Likewise.
11728         * malloc/tst-memalign.c (do_test): Add test for very
11729         large alignment values.
11730         * malloc/tst-posix_memalign.c (do_test): Likewise.
11731
11732 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11733
11734         [BZ #11087]
11735         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
11736         (munmap_chunk): Likewise.
11737         (mremap_chunk): Likewise.
11738
11739 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
11740
11741         [BZ #15799]
11742         * stdlib/div.c (div): Remove obsolete code.
11743         * stdlib/ldiv.c (ldiv): Likewise.
11744         * stdlib/lldiv.c (lldiv): Likewise.
11745
11746 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11747
11748         [BZ #16071]
11749         * nss/nss_files/files-XXX.c (get_contents_ret): New
11750         enumerator.
11751         (get_contents): New function.
11752         (internal_getent): Use it.  Expand size of LINEBUFLEN.
11753
11754 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
11755
11756         * configure.in: Moved to ...
11757         * configure.ac: ... here. Change reference to configure.in
11758         to configure.ac.
11759         * sysdeps/arm/preconfigure.ac: ... here.
11760         configure.in to configure.ac.
11761         * sysdeps/gnu/configure.in: Moved to ...
11762         * sysdeps/gnu/configure.ac: ... here.
11763         * sysdeps/i386/configure.in: Moved to ...
11764         * sysdeps/i386/configure.ac: ... here.
11765         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
11766         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
11767         * sysdeps/mach/configure.in: Moved to ...
11768         * sysdeps/mach/configure.ac: ... here.
11769         * sysdeps/mach/hurd/configure.in: Moved to ...
11770         * sysdeps/mach/hurd/configure.ac: ... here.
11771         * sysdeps/powerpc/configure.in: Moved to ...
11772         * sysdeps/powerpc/configure.ac: ... here.
11773         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
11774         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
11775         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
11776         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
11777         * sysdeps/s390/s390-32/configure.in: Moved to ...
11778         * sysdeps/s390/s390-32/configure.ac: ... here.
11779         * sysdeps/s390/s390-64/configure.in: Moved to ...
11780         * sysdeps/s390/s390-64/configure.ac: ... here.
11781         * sysdeps/sh/configure.in: Moved to ...
11782         * sysdeps/sh/configure.ac: ... here.
11783         * sysdeps/sparc/configure.in: Moved to ...
11784         * sysdeps/sparc/configure.ac: ... here.
11785         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
11786         * sysdeps/unix/sysv/linux/configure.ac: ... here.
11787         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
11788         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
11789         * sysdeps/x86_64/configure.in: Moved to ...
11790         * sysdeps/x86_64/configure.ac: ... here.
11791         * sysdeps/x86_64/preconfigure.in: Moved to ...
11792         * sysdeps/x86_64/preconfigure.ac: ... here.
11793         * aclocal.m4: Change reference to configure.in to configure.ac.
11794         * config.h.in: Likewise.
11795         * manual/install.texi: Likewise.
11796         * manual/maint.texi: Likewise.
11797         * Makefile: Likewise.
11798         * malloc/Makefile: Likewise.
11799         * nscd/Makefile: Likewise.
11800         * Makeconfig: Change reference to configure.in and
11801         preconfigure.in to configure.ac and preconfigure.ac
11802         respectively.
11803         * INSTALL: Regenerated.
11804         * configure: Likewise.
11805         * sysdeps/gnu/configure: Likewise.
11806         * sysdeps/i386/configure: Likewise.
11807         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
11808         * sysdeps/mach/configure: Likewise.
11809         * sysdeps/mach/hurd/configure: Likewise.
11810         * sysdeps/powerpc/configure: Likewise.
11811         * sysdeps/powerpc/powerpc32/configure: Likewise.
11812         * sysdeps/powerpc/powerpc64/configure: Likewise.
11813         * sysdeps/s390/s390-32/configure: Likewise.
11814         * sysdeps/s390/s390-64/configure: Likewise.
11815         * sysdeps/sh/configure: Likewise.
11816         * sysdeps/sparc/configure: Likewise.
11817         * sysdeps/unix/sysv/linux/configure: Likewise.
11818         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
11819         * sysdeps/x86_64/configure: Likewise.
11820         * sysdeps/x86_64/preconfigure: Likewise.
11821
11822 2013-10-29  Andreas Schwab  <schwab@suse.de>
11823
11824         * stdio-common/Makefile (tst-swscanf-ENV): Define.
11825
11826 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11827
11828         * benchtests/pow-inputs: Add new inputs.
11829
11830         * benchtests/exp-inputs: Add new inputs.
11831
11832         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
11833         conditional check for return value.
11834         (__cos32): Likewise.
11835
11836 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11837
11838         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
11839         to provide a boost for large inputs with word alignment.
11840         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
11841         implementation based on optimized PPC64 strcpy.
11842         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
11843         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
11844         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
11845         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
11846
11847 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11848
11849         [BZ #2801]
11850         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
11851
11852 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11853
11854         [BZ #14876]
11855         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
11856         * time/tst-strptime.c (day_tests): Add testcase.
11857
11858 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
11859
11860         [BZ #14029]
11861         * manual/pattern.texi: Acknowledge that fnmatch can fail.
11862
11863 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
11864
11865         [BZ #16074]
11866         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
11867         MAP_FAILED on error.
11868
11869 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
11870
11871         [BZ #16072]
11872         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
11873         heap for large requests.
11874
11875 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
11876
11877         [BZ #9954]
11878         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
11879         result if the result has no associated interface.
11880         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
11881         interface for all 127.X.Y.Z addresses.
11882
11883 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
11884
11885         * locale/iso-639.def: Add Ligurian (lij)
11886
11887 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
11888
11889         [BZ #15825]
11890         * sunrpc/rpc_main.c: Document rpcgen -5.
11891
11892 2013-10-19  Michael Stahl  <mstahl@redhat.com>
11893
11894         * elf/rtld.c (do_preload): Print the reason why preloading failed.
11895
11896 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
11897
11898         [BZ #10278]
11899         * posix/glob.c: Match only directories when trailing slash is present.
11900         * posix/tst-gnuglob.c (my_opendir): Do not open files.
11901         (main): Add testcase.
11902
11903 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
11904
11905         [BZ #15670]
11906         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
11907
11908 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
11909
11910         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
11911         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
11912         AUTH_DES and cindex for FIPS 140-2.
11913         (DES Encryption): Add cindex FIPS 46-3.
11914
11915         * locale/locarchive.h (struct locarhandle): Add fname.
11916         * locale/programs/localedef.c (main): Pass ARGV[remaining]
11917         if an optional argument was specified to --list-archive,
11918         otherwise NULL.
11919         * locale/programs/locarchive.c (show_archive_content): Take new
11920         argument fname and pass it via ah.fname to open_archive.
11921         * locale/programs/localedef.h: Update decl.
11922         (open_archive): If AH->fname is non-null, open that file
11923         rather than the default file name, and don't ignore ENOENT.
11924         (create_archive): Set AH.fname to NULL.
11925         (delete_locales_from_archive): Likewise.
11926         (add_locales_to_archive): Likewise.
11927         * locale/programs/locfile.c (write_all_categories): Likewise.
11928
11929 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
11930             Aldy Hernandez  <aldyh@redhat.com>
11931
11932         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
11933         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
11934         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
11935         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
11936         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
11937         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
11938         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
11939         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
11940         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
11941         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
11942         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
11943         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
11944         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
11945         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
11946         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
11947         Likewise.
11948         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
11949         Likewise.
11950         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
11951         Likewise.
11952         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
11953         Likewise.
11954         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
11955         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
11956         Likewise.
11957         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
11958         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
11959         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
11960         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
11961         Likewise.
11962         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
11963         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
11964         * sysdeps/powerpc/preconfigure: Likewise.
11965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11966         Likewise.
11967         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
11968         Replace contents of file by #include of <fenv_libc.h>.
11969         * sysdeps/powerpc/soft-fp/sfp-machine.h
11970         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
11971         and <sys/prctl.h>.
11972         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
11973         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
11974         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
11975         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
11976         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
11977         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
11978         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
11979         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
11980         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
11981         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
11982         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
11983         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
11984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
11985         Allow copysignl PLT reference to be missing.
11986
11987 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
11988             Joseph Myers  <joseph@codesourcery.com
11989
11990         [BZ #15948]
11991         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
11992         single character.
11993         (add_to_tablewc): Assert sequence of wide characters is nonempty.
11994
11995 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11996
11997         * elf/tst-tls-dlinfo.c: Don't include tls.h.
11998         * elf/tst-tls1.c: Likewise.
11999         * elf/tst-tls10.h: Likewise.
12000         * elf/tst-tls14.c: Likewise.
12001         * elf/tst-tls2.c: Likewise.
12002         * elf/tst-tls3.c: Likewise.
12003         * elf/tst-tls4.c: Likewise.
12004         * elf/tst-tls5.c: Likewise.
12005         * elf/tst-tls6.c: Likewise.
12006         * elf/tst-tls7.c: Likewise.
12007         * elf/tst-tls8.c: Likewise.
12008         * elf/tst-tls9.c: Likewise.
12009         * elf/tst-tlsmod1.c: Likewise.
12010         * elf/tst-tlsmod13.c: Likewise.
12011         * elf/tst-tlsmod13a.c: Likewise.
12012         * elf/tst-tlsmod14a.c: Likewise.
12013         * elf/tst-tlsmod16a.c: Likewise.
12014         * elf/tst-tlsmod16b.c: Likewise.
12015         * elf/tst-tlsmod2.c: Likewise.
12016         * elf/tst-tlsmod3.c: Likewise.
12017         * elf/tst-tlsmod4.c: Likewise.
12018         * elf/tst-tlsmod5.c: Likewise.
12019         * elf/tst-tlsmod6.c: Likewise.
12020
12021 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
12022
12023         [BZ #12486]
12024         * malloc/malloc.c: remove checks for statistics.
12025
12026 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12027
12028         [BZ #15277]
12029         * inet/inet_net.c (inet_network): Detect additional invalid strings.
12030         * inet/tst-network.c: Add testcase.
12031
12032 2013-10-17  Andreas Schwab  <schwab@suse.de>
12033
12034         [BZ #15218]
12035         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
12036         to determine canonical name.
12037
12038 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
12039
12040         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
12041         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
12042         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12048         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12049         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12050         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
12051         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12052         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12053         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12054         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12055         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12056         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12057         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12058         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12059         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12060         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12061         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12062         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12063         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
12064         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
12065         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12066         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12067         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
12068         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12069         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
12070         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12071         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12072         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12073         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12074         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12075         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12076         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12077         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12078         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12079         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12080         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12081         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12082         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12083         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12084         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12085         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12086         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12087         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12088         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12089         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12090         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12091         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12092         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12093         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12094         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12095         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12096         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12097         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12098
12099 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
12100
12101         [BZ #16041]
12102         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
12103         make result into a quiet NaN.
12104
12105 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
12106
12107         * soft-fp/adddf3.c: Fix horizontal whitespace.
12108         * soft-fp/addsf3.c: Likewise.
12109         * soft-fp/addtf3.c: Likewise.
12110         * soft-fp/divdf3.c: Likewise.
12111         * soft-fp/divsf3.c: Likewise.
12112         * soft-fp/divtf3.c: Likewise.
12113         * soft-fp/double.h: Likewise.
12114         * soft-fp/eqdf2.c: Likewise.
12115         * soft-fp/eqsf2.c: Likewise.
12116         * soft-fp/eqtf2.c: Likewise.
12117         * soft-fp/extenddftf2.c: Likewise.
12118         * soft-fp/extended.h: Likewise.
12119         * soft-fp/extendsfdf2.c: Likewise.
12120         * soft-fp/extendsftf2.c: Likewise.
12121         * soft-fp/extendxftf2.c: Likewise.
12122         * soft-fp/fixdfdi.c: Likewise.
12123         * soft-fp/fixdfsi.c: Likewise.
12124         * soft-fp/fixdfti.c: Likewise.
12125         * soft-fp/fixsfdi.c: Likewise.
12126         * soft-fp/fixsfsi.c: Likewise.
12127         * soft-fp/fixsfti.c: Likewise.
12128         * soft-fp/fixtfdi.c: Likewise.
12129         * soft-fp/fixtfsi.c: Likewise.
12130         * soft-fp/fixtfti.c: Likewise.
12131         * soft-fp/fixunsdfdi.c: Likewise.
12132         * soft-fp/fixunsdfsi.c: Likewise.
12133         * soft-fp/fixunsdfti.c: Likewise.
12134         * soft-fp/fixunssfdi.c: Likewise.
12135         * soft-fp/fixunssfsi.c: Likewise.
12136         * soft-fp/fixunssfti.c: Likewise.
12137         * soft-fp/fixunstfdi.c: Likewise.
12138         * soft-fp/fixunstfsi.c: Likewise.
12139         * soft-fp/fixunstfti.c: Likewise.
12140         * soft-fp/floatdidf.c: Likewise.
12141         * soft-fp/floatdisf.c: Likewise.
12142         * soft-fp/floatditf.c: Likewise.
12143         * soft-fp/floatsidf.c: Likewise.
12144         * soft-fp/floatsisf.c: Likewise.
12145         * soft-fp/floatsitf.c: Likewise.
12146         * soft-fp/floattidf.c: Likewise.
12147         * soft-fp/floattisf.c: Likewise.
12148         * soft-fp/floattitf.c: Likewise.
12149         * soft-fp/floatundidf.c: Likewise.
12150         * soft-fp/floatundisf.c: Likewise.
12151         * soft-fp/floatunditf.c: Likewise.
12152         * soft-fp/floatunsidf.c: Likewise.
12153         * soft-fp/floatunsisf.c: Likewise.
12154         * soft-fp/floatunsitf.c: Likewise.
12155         * soft-fp/floatuntidf.c: Likewise.
12156         * soft-fp/floatuntisf.c: Likewise.
12157         * soft-fp/floatuntitf.c: Likewise.
12158         * soft-fp/fmadf4.c: Likewise.
12159         * soft-fp/fmasf4.c: Likewise.
12160         * soft-fp/fmatf4.c: Likewise.
12161         * soft-fp/gedf2.c: Likewise.
12162         * soft-fp/gesf2.c: Likewise.
12163         * soft-fp/getf2.c: Likewise.
12164         * soft-fp/ledf2.c: Likewise.
12165         * soft-fp/lesf2.c: Likewise.
12166         * soft-fp/letf2.c: Likewise.
12167         * soft-fp/muldf3.c: Likewise.
12168         * soft-fp/mulsf3.c: Likewise.
12169         * soft-fp/multf3.c: Likewise.
12170         * soft-fp/negdf2.c: Likewise.
12171         * soft-fp/negsf2.c: Likewise.
12172         * soft-fp/negtf2.c: Likewise.
12173         * soft-fp/op-1.h: Likewise.
12174         * soft-fp/op-2.h: Likewise.
12175         * soft-fp/op-4.h: Likewise.
12176         * soft-fp/op-8.h: Likewise.
12177         * soft-fp/op-common.h: Likewise.
12178         * soft-fp/quad.h: Likewise.
12179         * soft-fp/single.h: Likewise.
12180         * soft-fp/soft-fp.h: Likewise.
12181         * soft-fp/sqrtdf2.c: Likewise.
12182         * soft-fp/sqrtsf2.c: Likewise.
12183         * soft-fp/sqrttf2.c: Likewise.
12184         * soft-fp/subdf3.c: Likewise.
12185         * soft-fp/subsf3.c: Likewise.
12186         * soft-fp/subtf3.c: Likewise.
12187         * soft-fp/truncdfsf2.c: Likewise.
12188         * soft-fp/trunctfdf2.c: Likewise.
12189         * soft-fp/trunctfsf2.c: Likewise.
12190         * soft-fp/trunctfxf2.c: Likewise.
12191         * soft-fp/unorddf2.c: Likewise.
12192         * soft-fp/unordsf2.c: Likewise.
12193         * soft-fp/unordtf2.c: Likewise.
12194
12195 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
12196
12197         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
12198         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
12199
12200 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
12201
12202         * elf/dl-libc.c: Clear initfini list after freeing.
12203
12204 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
12205
12206         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
12207         * soft-fp/addsf3.c: Likewise.
12208         * soft-fp/addtf3.c: Likewise.
12209         * soft-fp/divdf3.c: Likewise.
12210         * soft-fp/divsf3.c: Likewise.
12211         * soft-fp/divtf3.c: Likewise.
12212         * soft-fp/double.h: Likewise.
12213         * soft-fp/eqdf2.c: Likewise.
12214         * soft-fp/eqsf2.c: Likewise.
12215         * soft-fp/eqtf2.c: Likewise.
12216         * soft-fp/extenddftf2.c: Likewise.
12217         * soft-fp/extended.h: Likewise.
12218         * soft-fp/extendsfdf2.c: Likewise.
12219         * soft-fp/extendsftf2.c: Likewise.
12220         * soft-fp/extendxftf2.c: Likewise.
12221         * soft-fp/fixdfdi.c: Likewise.
12222         * soft-fp/fixdfsi.c: Likewise.
12223         * soft-fp/fixdfti.c: Likewise.
12224         * soft-fp/fixsfdi.c: Likewise.
12225         * soft-fp/fixsfsi.c: Likewise.
12226         * soft-fp/fixsfti.c: Likewise.
12227         * soft-fp/fixtfdi.c: Likewise.
12228         * soft-fp/fixtfsi.c: Likewise.
12229         * soft-fp/fixtfti.c: Likewise.
12230         * soft-fp/fixunsdfdi.c: Likewise.
12231         * soft-fp/fixunsdfsi.c: Likewise.
12232         * soft-fp/fixunsdfti.c: Likewise.
12233         * soft-fp/fixunssfdi.c: Likewise.
12234         * soft-fp/fixunssfsi.c: Likewise.
12235         * soft-fp/fixunssfti.c: Likewise.
12236         * soft-fp/fixunstfdi.c: Likewise.
12237         * soft-fp/fixunstfsi.c: Likewise.
12238         * soft-fp/fixunstfti.c: Likewise.
12239         * soft-fp/floatdidf.c: Likewise.
12240         * soft-fp/floatdisf.c: Likewise.
12241         * soft-fp/floatditf.c: Likewise.
12242         * soft-fp/floatsidf.c: Likewise.
12243         * soft-fp/floatsisf.c: Likewise.
12244         * soft-fp/floatsitf.c: Likewise.
12245         * soft-fp/floattidf.c: Likewise.
12246         * soft-fp/floattisf.c: Likewise.
12247         * soft-fp/floattitf.c: Likewise.
12248         * soft-fp/floatundidf.c: Likewise.
12249         * soft-fp/floatundisf.c: Likewise.
12250         * soft-fp/floatunsidf.c: Likewise.
12251         * soft-fp/floatunsisf.c: Likewise.
12252         * soft-fp/floatuntidf.c: Likewise.
12253         * soft-fp/floatuntisf.c: Likewise.
12254         * soft-fp/floatuntitf.c: Likewise.
12255         * soft-fp/fmadf4.c: Likewise.
12256         * soft-fp/fmasf4.c: Likewise.
12257         * soft-fp/fmatf4.c: Likewise.
12258         * soft-fp/gedf2.c: Likewise.
12259         * soft-fp/gesf2.c: Likewise.
12260         * soft-fp/getf2.c: Likewise.
12261         * soft-fp/ledf2.c: Likewise.
12262         * soft-fp/lesf2.c: Likewise.
12263         * soft-fp/letf2.c: Likewise.
12264         * soft-fp/muldf3.c: Likewise.
12265         * soft-fp/mulsf3.c: Likewise.
12266         * soft-fp/multf3.c: Likewise.
12267         * soft-fp/negdf2.c: Likewise.
12268         * soft-fp/negsf2.c: Likewise.
12269         * soft-fp/negtf2.c: Likewise.
12270         * soft-fp/op-1.h: Likewise.
12271         * soft-fp/op-2.h: Likewise.
12272         * soft-fp/op-4.h: Likewise.
12273         * soft-fp/op-8.h: Likewise.
12274         * soft-fp/op-common.h: Likewise.
12275         * soft-fp/quad.h: Likewise.
12276         * soft-fp/single.h: Likewise.
12277         * soft-fp/soft-fp.h: Likewise.
12278         * soft-fp/sqrtdf2.c: Likewise.
12279         * soft-fp/sqrtsf2.c: Likewise.
12280         * soft-fp/sqrttf2.c: Likewise.
12281         * soft-fp/subdf3.c: Likewise.
12282         * soft-fp/subsf3.c: Likewise.
12283         * soft-fp/subtf3.c: Likewise.
12284         * soft-fp/truncdfsf2.c: Likewise.
12285         * soft-fp/trunctfdf2.c: Likewise.
12286         * soft-fp/trunctfsf2.c: Likewise.
12287         * soft-fp/trunctfxf2.c: Likewise.
12288         * soft-fp/unorddf2.c: Likewise.
12289         * soft-fp/unordsf2.c: Likewise.
12290         * soft-fp/unordtf2.c: Likewise.
12291
12292 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
12293
12294         [BZ #15672]
12295         * misc/error.c (error_tail): Fix possible buffer overflow.
12296
12297 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
12298
12299         [BZ #13028]
12300         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
12301         address.
12302
12303 2013-10-14  P. J. McDermott  <pj@pehjota.net>
12304
12305         [BZ #832]
12306         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
12307         testing pipefail option.
12308
12309 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12310
12311         * soft-fp/double.h: Indent preprocessor directives inside #if.
12312         * soft-fp/extended.h: Likewise.
12313         * soft-fp/op-2.h: Likewise.
12314         * soft-fp/op-4.h: Likewise.
12315         * soft-fp/op-common.h: Likewise.
12316         * soft-fp/quad.h: Likewise.
12317         * soft-fp/single.h: Likewise.
12318         * soft-fp/soft-fp.h: Likewise.
12319
12320 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
12321
12322         * iconv/iconv_prog.c: Fix typos.
12323         * stdio-common/psiginfo-data.h: Likewise.
12324
12325 2013-10-12   Reuben Thomas <rrt@sc3d.org>
12326
12327         [BZ #15764]
12328         * locale/setlocale.c: Fix typo.
12329
12330 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
12331
12332         [BZ #16036]
12333         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
12334         signaling NaN arguments.
12335         * soft-fp/unordsf2.c (__unordsf2): Likewise.
12336         * soft-fp/unordtf2.c (__unordtf2): Likewise.
12337
12338         [BZ #14910]
12339         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
12340         unordered operands.
12341         * soft-fp/gesf2.c (__gesf2): Likewise.
12342         * soft-fp/getf2.c (__getf2): Likewise.
12343         * soft-fp/ledf2.c (__ledf2): Likewise.
12344         * soft-fp/lesf2.c (__lesf2): Likewise.
12345         * soft-fp/letf2.c (__letf2): Likewise.
12346
12347         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
12348         * soft-fp/eqsf2.c (__eqsf2): Likewise.
12349         * soft-fp/eqtf2.c (__eqtf2): Likewise.
12350         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
12351         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
12352         * soft-fp/fixdfti.c (__fixdfti): Likewise.
12353         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
12354         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
12355         * soft-fp/fixsfti.c (__fixsfti): Likewise.
12356         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
12357         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
12358         * soft-fp/fixtfti.c (__fixtfti): Likewise.
12359         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
12360         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
12361         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
12362         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
12363         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
12364         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
12365         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
12366         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
12367         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
12368         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
12369         * soft-fp/floatdisf.c (__floatdisf): Likewise.
12370         * soft-fp/floatsisf.c (__floatsisf): Likewise.
12371         * soft-fp/floattidf.c (__floattidf): Likewise.
12372         * soft-fp/floattisf.c (__floattisf): Likewise.
12373         * soft-fp/floattitf.c (__floattitf): Likewise.
12374         * soft-fp/floatundidf.c (__floatundidf): Likewise.
12375         * soft-fp/floatundisf.c (__floatundisf): Likewise.
12376         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
12377         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
12378         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
12379         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
12380         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
12381         * soft-fp/gesf2.c (__gesf2): Likewise.
12382         * soft-fp/getf2.c (__getf2): Likewise.
12383         * soft-fp/ledf2.c (__ledf2): Likewise.
12384         * soft-fp/lesf2.c (__lesf2): Likewise.
12385         * soft-fp/letf2.c (__letf2): Likewise.
12386
12387         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
12388         Undefine and redefine.
12389         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
12390         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
12391         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
12392         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
12393         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12394         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
12395         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12396         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
12397         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12398         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
12399         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12400         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
12401         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12402         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
12403         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
12404
12405         [BZ #16032]
12406         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
12407         without decrementing exponent if mantissa >= that for the
12408         denominator, not >.
12409         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
12410         denominator, not >.  Decrement exponent in < case instead of
12411         incrementing in >= case.
12412         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
12413         without decrementing exponent if mantissa >= that for the
12414         denominator, not >.
12415
12416         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
12417         computing saturated result for unsigned overflow.
12418
12419 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
12420             Jeff Law  <law@redhat.com>
12421
12422         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
12423         (atan2Mp): Add systemtap probe marker.
12424         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
12425         (__ieee754_log): Add systemtap probe marker.
12426         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
12427         (atanMp): Add systemtap probe marker.
12428         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
12429         (tanMp): Add systemtap probe marker.
12430         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
12431         (__slowexp): Add systemtap probe marker.
12432         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
12433         (__slowpow): Add systemtap probe marker.
12434         * manual/probes.texi: Document probes.
12435
12436 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
12437
12438         [BZ #15362]
12439         * libio/fileops.c (_IO_new_file_write): Return count of bytes
12440         written.
12441         (_IO_new_file_xsputn): Don't return EOF if nothing has been
12442         written.
12443         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
12444         written to buffer but not flushed.
12445         * libio/iofwrite_u.c:  Likewise.
12446         * libio/iopadn.c:  Return bytes returned even if EOF was
12447         encountered.
12448         * libio/iowpadn.c:  Likewise.
12449         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
12450         if _IO_padn does not write the whole buffer.
12451         [!COMPILE_WPRINTF] (PAD): Likewise.
12452
12453 2013-10-10  David S. Miller  <davem@davemloft.net>
12454
12455         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
12456         directory block.
12457
12458 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12459
12460         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
12461         instead of FSF address.
12462         * soft-fp/fixdfti.c: Likewise.
12463         * soft-fp/fixsfti.c: Likewise.
12464         * soft-fp/fixtfti.c: Likewise.
12465         * soft-fp/fixunsdfti.c: Likewise.
12466         * soft-fp/fixunssfti.c: Likewise.
12467         * soft-fp/fixunstfti.c: Likewise.
12468         * soft-fp/floattidf.c: Likewise.
12469         * soft-fp/floattisf.c: Likewise.
12470         * soft-fp/floattitf.c: Likewise.
12471         * soft-fp/floatuntidf.c: Likewise.
12472         * soft-fp/floatuntisf.c: Likewise.
12473         * soft-fp/floatuntitf.c: Likewise.
12474         * soft-fp/trunctfxf2.c: Likewise.
12475
12476         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
12477         * soft-fp/fixdfti.c: Likewise.
12478         * soft-fp/fixsfti.c: Likewise.
12479         * soft-fp/fixtfti.c: Likewise.
12480         * soft-fp/fixunsdfti.c: Likewise.
12481         * soft-fp/fixunssfti.c: Likewise.
12482         * soft-fp/fixunstfti.c: Likewise.
12483         * soft-fp/floattidf.c: Likewise.
12484         * soft-fp/floattisf.c: Likewise.
12485         * soft-fp/floattitf.c: Likewise.
12486         * soft-fp/floatuntidf.c: Likewise.
12487         * soft-fp/floatuntisf.c: Likewise.
12488         * soft-fp/floatuntitf.c: Likewise.
12489         * soft-fp/trunctfxf2.c: Likewise.
12490
12491 2013-10-10  David S. Miller  <davem@davemloft.net>
12492
12493         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12494
12495 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
12496
12497         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
12498         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
12499         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
12500         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
12501         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
12502         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
12503         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
12504
12505         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
12506         for NaNs before doing comparisons on argument.
12507         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
12508         Likewise.
12509
12510 2013-10-10  Will Newton  <will.newton@linaro.org>
12511
12512         * malloc/hooks.c (memalign_check): Ensure the value of bytes
12513         passed to _int_memalign does not overflow.
12514
12515 2013-10-10  Torvald Riegel  <triegel@redhat.com>
12516
12517         * scripts/bench.pl: Add include-sources directive.
12518         * benchtests/README: Update documentation.
12519
12520 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
12521
12522         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
12523         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
12524         instead of FP_INIT_ROUNDMODE.
12525         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
12526         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
12527
12528         [BZ #16034]
12529         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
12530         copy class of input value.
12531         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
12532         not handle exceptions.
12533         * soft-fp/negsf2.c (__negsf2): Likewise.
12534         * soft-fp/negtf2.c (__negtf2): Likewise.
12535         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
12536
12537 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
12538
12539         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
12540         semicolon.  From Linux kernel.
12541
12542 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
12543
12544         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
12545
12546 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
12547
12548         [BZ #156]
12549         * manual/socket.texi: Added statement about buffer
12550         for gethostbyname2_r.
12551
12552 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
12553
12554         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
12555         Use .p2align directive instead, throughout.
12556         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
12557         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
12558         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
12559         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
12560         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
12561         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
12562         * sysdeps/x86_64/strchr.S: Likewise.
12563         * sysdeps/x86_64/strrchr.S: Likewise.
12564
12565 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12566
12567         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
12568
12569         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
12570
12571         * sysdeps/generic/math_private.h (__mpsin1): Remove
12572         declaration.
12573         (__mpcos1): Likewise.
12574         (__mpsin): New argument __range_reduce.
12575         (__mpcos): Likewise.
12576         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12577         (slow): Use __mpsin and __mpcos.
12578         (slow1): Likewise.
12579         (slow2): Likewise.
12580         (sloww): Likewise.
12581         (sloww1): Likewise.
12582         (sloww2): Likewise.
12583         (bsloww): Likewise.
12584         (bsloww1): Likewise.
12585         (bsloww2): Likewise.
12586         (cslow2): Likewise.
12587         (csloww): Likewise.
12588         (csloww1): Likewise.
12589         (csloww2): Likewise.
12590         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
12591         range_reduce.  Merge in __mpsin1.
12592         (__mpcos): Likewise.
12593         (__mpsin1): Remove.
12594         (__mpcos1): Likewise.
12595
12596 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
12597
12598         * locale/loadlocale.c (_nl_intern_locale_data): Use
12599         LOCFILE_ALIGNED_P.
12600         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
12601         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
12602         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
12603         obstack data is appropriately aligned.
12604         (obstack_int32_grow_fast): Likewise.
12605         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
12606         * locale/programs/locfile.c (add_locale_uint32): Likewise.
12607         (add_locale_uint32_array): Likewise.
12608
12609 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12610
12611         * benchtests/Makefile: Remove ARGLIST and RET variables.
12612         ($(objpfx)bench-%.c): Pass only function name to the script.
12613         * benchtests/README: Update documentation.
12614         * benchtests/acos-inputs: Add new directives.
12615         * benchtests/acosh-inputs: Likewise.
12616         * benchtests/asin-inputs: Likewise.
12617         * benchtests/asinh-inputs: Likewise.
12618         * benchtests/atan-inputs: Likewise.
12619         * benchtests/atanh-inputs: Likewise.
12620         * benchtests/cos-inputs: Likewise.
12621         * benchtests/cosh-inputs: Likewise.
12622         * benchtests/exp-inputs: Likewise.
12623         * benchtests/log-inputs: Likewise.
12624         * benchtests/pow-inputs: Likewise.
12625         * benchtests/rint-inputs: Likewise.
12626         * benchtests/sin-inputs: Likewise.
12627         * benchtests/sinh-inputs: Likewise.
12628         * benchtests/tan-inputs: Likewise.
12629         * benchtests/tanh-inputs: Likewise.
12630         * scripts/bench.pl: Add support for new directives.
12631
12632 2013-10-07  Alan Modra  <amodra@gmail.com>
12633
12634         * README: Fix careless merge.
12635
12636 2013-10-05  Alan Modra  <amodra@gmail.com>
12637
12638         * NEWS: Mention powerpc64le support and bugs fixed.
12639         * README: Both big-endian and little-endian powerpc64 supported.
12640
12641 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12642
12643         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
12644         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
12645         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
12646         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
12647
12648 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
12649
12650         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
12651         match prototype.
12652
12653 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
12654
12655         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
12656         Move -mhard-float appending from
12657         ports/sysdeps/powerpc/powerpc32/Makefile.
12658         [$(with-fp) = yes] (ASFLAGS): Likewise.
12659         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
12660         * sysdeps/powerpc/nofpu: Move directory from
12661         ports/sysdeps/powerpc/nofpu.
12662         * sysdeps/powerpc/soft-fp: Move directory from
12663         ports/sysdeps/powerpc/soft-fp.
12664         * sysdeps/powerpc/powerpc32/405: Move directory from
12665         ports/sysdeps/powerpc/powerpc32/405.
12666         * sysdeps/powerpc/powerpc32/440: Move directory from
12667         ports/sysdeps/powerpc/powerpc32/440.
12668         * sysdeps/powerpc/powerpc32/464: Move directory from
12669         ports/sysdeps/powerpc/powerpc32/464.
12670         * sysdeps/powerpc/powerpc32/476: Move directory from
12671         ports/sysdeps/powerpc/powerpc32/476.
12672         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
12673         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
12674         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
12675         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
12676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
12677         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
12678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
12679         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
12680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
12681         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
12682         * README: Update for powerpc-*-linux-gnu software floating point
12683         support in libc.
12684
12685         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
12686         case to powerpc/powerpc32*.
12687         * sysdeps/unix/sysv/linux/configure: Regenerated.
12688
12689         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
12690         (_FPU_MASK_OM): Define as 0x04.
12691         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
12692         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
12693         0x00c10080.
12694         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
12695         0x0000003c.
12696         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
12697
12698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
12699         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12700         getcontext_e500.
12701         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
12702         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
12703         setcontext_e500.
12704         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
12705         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
12706         and setcontext_e500.
12707
12708 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
12709
12710         * locale/iso-3166.def: Update iso-1366.def and related occurrences
12711
12712 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12713
12714         * manual/threads.texi (Default Thread Attributes): Fix typo.
12715
12716 2013-10-04  Will Newton  <will.newton@linaro.org>
12717
12718         * malloc/Makefile: Add tst-memalign.
12719         * malloc/tst-memalign.c: New file.
12720
12721         * malloc/tst-posix_memalign.c: Add comments.
12722         (do_test): Add comments and call free on all potentially
12723         allocated pointers. Add space after cast.
12724
12725         * malloc/tst-pvalloc.c: Add comments.
12726         (do_test): Add comments and call free on all potentially
12727         allocated pointers. Remove duplicate check for NULL pointer.
12728         Add space after cast.
12729
12730         * malloc/tst-valloc.c: Add comments.
12731         (do_test): Add comments and call free on all potentially
12732         allocated pointers. Remove duplicate check for NULL pointer.
12733         Add space after cast.
12734
12735 2013-10-04  Alan Modra  <amodra@gmail.com>
12736
12737         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12738         Use stdint types in rather than __attribute__((mode())).
12739         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12740
12741 2013-10-04  Alan Modra  <amodra@gmail.com>
12742
12743         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
12744         Correct handling of unaligned relocs for little-endian.
12745         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
12746
12747 2013-10-04  Alan Modra  <amodra@gmail.com>
12748
12749         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
12750         * configure: Regenerate.
12751         * nptl/shlib-versions: Powerpc*le starts at 2.18.
12752         * shlib-versions: Likewise.
12753
12754 2013-10-04  Alan Modra  <amodra@gmail.com>
12755
12756         * string/tester.c (test_memrchr): Increment reported test cycle.
12757
12758 2013-10-04  Alan Modra  <amodra@gmail.com>
12759
12760         * string/test-memcpy.c (do_one_test): When reporting errors, print
12761         string address and don't overrun end of string.
12762
12763 2013-10-04  Alan Modra  <amodra@gmail.com>
12764
12765         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
12766         insrdi.  Make better use of reg selection to speed exit slightly.
12767         Schedule entry path a little better.  Remove useless "are we done"
12768         checks on entry to main loop.  Handle wrapping around zero address.
12769         Correct main loop count.  Handle single left-over word from main
12770         loop inline rather than by using loop_small.  Remove extra word
12771         case in loop_small caused by wrong loop count.  Add little-endian
12772         support.
12773         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
12774         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
12775         cache hint.
12776         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
12777         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
12778         support.  Avoid rlwimi.
12779         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
12780
12781 2013-10-04  Alan Modra  <amodra@gmail.com>
12782
12783         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
12784         insrdi.  Formatting.
12785         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
12786         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
12787         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
12788         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
12789         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
12790         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
12791
12792 2013-10-04  Alan Modra  <amodra@gmail.com>
12793
12794         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
12795         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
12796         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
12797         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
12798         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
12799         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
12800         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
12801         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12802         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
12803         use of regs.  Use power7 mtocrf.  Tidy function tails.
12804
12805 2013-10-04  Alan Modra  <amodra@gmail.com>
12806
12807         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
12808         Formatting.  Consistently use rXXX register defines or rN defines.
12809         Use early exit labels that avoid restoring unused non-volatile regs.
12810         Make cr field use more consistent with rWORDn compares.  Rename
12811         regs used as shift registers for unaligned loop, using rN defines
12812         for short lifetime/multiple use regs.
12813         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
12814         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
12815         addi 1,1,64 to pop stack frame.  Simplify return value code.
12816         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
12817
12818 2013-10-04  Alan Modra  <amodra@gmail.com>
12819
12820         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
12821         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
12822         rather than rlwimi.
12823         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
12824         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
12825         little-endian support.  Correct typos.
12826         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
12827         rather than rlwimi.
12828         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
12829         in loop and entry code to keep "and." results.
12830         (strchr): Add little-endian support.  Comment.  Move cntlzd
12831         earlier in tail.
12832         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
12833
12834 2013-10-04  Alan Modra  <amodra@gmail.com>
12835
12836         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
12837         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
12838         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
12839         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
12840
12841 2013-10-04  Alan Modra  <amodra@gmail.com>
12842
12843         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
12844         (rTMP): Define as r11.
12845         (strcmp): Add little-endian support.  Optimise tail.
12846         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
12847         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
12848         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
12849         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
12850         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
12851         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12852         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
12853
12854 2013-10-04  Alan Modra  <amodra@gmail.com>
12855
12856         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
12857         little-endian support.  Remove unnecessary "are we done" tests.
12858         Handle "s" wrapping around zero and extremely large "size".
12859         Correct main loop count.  Handle single left-over word from main
12860         loop inline rather than by using small_loop.  Correct comments.
12861         Delete "zero" tail, use "end_max" instead.
12862         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
12863
12864 2013-10-04  Alan Modra  <amodra@gmail.com>
12865
12866         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
12867         support.  Don't branch over align.
12868         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
12869         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
12870         support.  Rearrange tmp reg use to suit.  Comment.
12871         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
12872
12873 2013-10-04  Alan Modra  <amodra@gmail.com>
12874
12875         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
12876
12877 2013-10-04  Alan Modra  <amodra@gmail.com>
12878
12879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
12880         conditional form of branch and link when obtaining pc.
12881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
12882
12883 2013-10-04  Alan Modra  <amodra@gmail.com>
12884
12885         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
12886         HIWORD/LOWORD.
12887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
12888         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
12889
12890 2013-10-04  Alan Modra  <amodra@gmail.com>
12891
12892         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
12893         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
12894         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
12895         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
12896         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
12897         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
12898         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
12899         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
12900         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
12901         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
12902
12903 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12904             Alistair Popple <alistair@ozlabs.au.ibm.com>
12905             Alan Modra <amodra@gmail.com>
12906
12907         [BZ #15723]
12908         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
12909         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
12910         _dl_hwcap access for little-endian.
12911         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
12912         destroy vmx regs when saving unaligned.
12913         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
12914         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
12915         destroy vmx regs when saving unaligned.
12916
12917 2013-10-04  Alan Modra  <amodra@gmail.com>
12918
12919         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
12920         Don't use a union to pack hi/low value.
12921
12922 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12923
12924         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
12925         for little-endian.
12926         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
12927         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
12928         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
12929         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
12930         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
12931
12932 2013-10-04  Alan Modra  <amodra@gmail.com>
12933
12934         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
12935         constants to usual value for .cst8 section, and remove redundant
12936         high address load.
12937         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
12938         constant for 0x1p52.  Load little-endian words of double from
12939         correct stack offsets.
12940
12941 2013-10-04  Alan Modra  <amodra@gmail.com>
12942
12943         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
12944         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
12945         words of double from correct stack offsets.
12946         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
12947         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
12948         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
12949         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
12950         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
12951         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
12952         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
12953         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
12954         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
12955         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
12956         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
12957         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
12958         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12959         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12960         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12961         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
12962         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
12963
12964 2013-10-04  Alan Modra  <amodra@gmail.com>
12965
12966         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
12967         64-bit int/double union.
12968         (_FPU_SETCW): Likewise.
12969         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
12970         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
12971
12972 2013-10-04  Alan Modra  <amodra@gmail.com>
12973
12974         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
12975         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
12976
12977 2013-10-04  Alan Modra  <amodra@gmail.com>
12978
12979         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
12980         use vector int constants.
12981         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
12982
12983 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
12984
12985         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
12986         array with long long.
12987         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
12988         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
12989         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
12990         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
12991         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
12992         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
12993         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
12994         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
12995         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
12996         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
12997         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
12998         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
12999         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
13000
13001 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
13002
13003         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
13004         (__signbit): Likewise.  Correct for little-endian.
13005         (__signbitl): Call __signbit.
13006         (lrint): Correct for little-endian.
13007         (lrintf): Call lrint.
13008
13009 2013-10-04  Alan Modra  <amodra@gmail.com>
13010
13011         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
13012         union 32-bit int array member with 64-bit int array.
13013         (t515, tm256): Double rather than long double.
13014         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
13015
13016 2013-10-04  Alan Modra  <amodra@gmail.com>
13017
13018         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
13019         Delete.
13020         (IEEE854_LONG_DOUBLE_BIAS): Delete.
13021         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
13022         version of math_ldbl.h.
13023
13024 2013-10-04  Alan Modra  <amodra@gmail.com>
13025
13026         [BZ #15734], [BZ #15735]
13027         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
13028         all uses of ieee875 long double macros and unions.  Simplify test
13029         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
13030         ldbl_extract_mantissa value for ix,iy exponents.  Properly
13031         normalize after ldbl_extract_mantissa, and don't add hidden bit
13032         already handled.  Don't treat low word of ieee854 mantissa like
13033         low word of IBM long double and mask off bit when testing for
13034         zero.
13035         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
13036         all uses of ieee875 long double macros and unions.  Simplify tests
13037         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
13038         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
13039         two1022, instead use their values.  Recognise that tests for large
13040         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
13041         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
13042         Rewrite all uses of ieee875 long double macros and unions.  Simplify
13043         test for 0.0L and nan.  Correct negation.
13044         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
13045         ieee875 long double macros and unions.  Correct output for large
13046         magnitude x.  Correct absolute value calculation.
13047         (__erfcl): Likewise.
13048         * math/libm-test.inc: Add tests for errors discovered in IBM long
13049         double versions of fmodl, remainderl, erfl and erfcl.
13050
13051 2013-10-04  Alan Modra  <amodra@gmail.com>
13052
13053         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
13054         all uses of ieee854 long double macros and unions.  Simplify tests
13055         for long doubles that are fully specified by the high double.
13056         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13057         Likewise.
13058         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
13059         Remove dead code too.
13060         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
13061         (__ieee754_ynl): Likewise.
13062         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
13063         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
13064         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13065         Remove dead code too.
13066         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
13067         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13068         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
13069         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
13070         Simplify.
13071         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
13072         Simplify.
13073         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
13074         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
13075         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
13076         Comment on variable precision.
13077         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
13078         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
13079         Likewise.
13080         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
13081         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13082         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13083         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
13084         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
13085
13086 2013-10-04  Alan Modra  <amodra@gmail.com>
13087
13088         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
13089         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
13090         all uses of ieee854 long double macros and unions.
13091         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
13092         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13093         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
13094         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
13095         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
13096         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
13097         Likewise.
13098         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
13099         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
13100         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
13101         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
13102         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
13103         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
13104         Simplify sign and nan test too.
13105         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
13106         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
13107         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
13108         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
13109         Likewise.
13110         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
13111         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
13112         Likewise.
13113         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13114         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
13115         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
13116         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
13117         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
13118         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
13119
13120 2013-10-04  Alan Modra  <amodra@gmail.com>
13121
13122         * stdio-common/printf_size.c (__printf_size): Don't use
13123         union ieee854_long_double in fpnum union.
13124         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
13125         signbit macro to retrieve sign from long double.
13126         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
13127         retrieve sign from long double.
13128         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
13129         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
13130         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
13131         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13132         * math/test-misc.c (main): Don't use union ieee854_long_double.
13133
13134 2013-10-04  Alan Modra  <amodra@gmail.com>
13135
13136         [BZ #15680]
13137         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
13138         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
13139         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
13140         calculation.  Remove unnecessary test for denormal exponent.
13141         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
13142         Correct handling of denormals.  Avoid undefined shift behaviour.
13143         Correct normalisation of low mantissa when low double is denormal.
13144         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
13145         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
13146         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
13147         Correct normalisation of low mantissa.  Test for overflow of high
13148         mantissa and normalise.
13149         (ldbl_nearbyint): Use more readable constant for two52.
13150         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
13151         (__mpn_construct_long_double): Fix test for overflow of high
13152         mantissa and correct normalisation.  Avoid undefined shift.
13153
13154 2013-10-04  Alan Modra  <amodra@gmail.com>
13155
13156         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
13157         (union ibm_extended_long_double): Define as an array of ieee754_double.
13158         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
13159         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
13160         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
13161         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13162         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13163         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
13164         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
13165         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
13166         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13167         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
13168         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13169
13170 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
13171
13172         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
13173         page size instead of calling getpagesize.
13174
13175         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
13176         (LOCFILE_ALIGN_MASK): Likewise.
13177         (LOCFILE_ALIGN_UP): Likewise.
13178         (LOCFILE_ALIGNED_P): Likewise.
13179         * locale/programs/ld-collate.c (collate_output): Use the new
13180         macros instead of __alignof__ (int32_t).
13181         * locale/weight.h (findidx): Likewise.
13182
13183 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
13184
13185         [BZ #431]
13186         * manual/string.texi: Fix strncat and wcsncat.
13187
13188 2013-10-03  Brooks Moses  <bmoses@google.com>
13189
13190         [BZ #15915]
13191         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
13192         * Makerules: ...here, and adjust associated comments.
13193
13194 2013-10-02  Will Newton  <will.newton@linaro.org>
13195
13196         * malloc/Makefile: Add tst-pvalloc.
13197         * malloc/tst-pvalloc.c: New file.
13198
13199 2013-10-02  Will Newton  <will.newton@linaro.org>
13200
13201         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
13202         improve test coverage.
13203
13204 2013-10-02  Will Newton  <will.newton@linaro.org>
13205
13206         * malloc/Makefile: Add tst-posix_memalign.
13207         * malloc/tst-posix_memalign.c: New file.
13208
13209 2013-10-01  Eric Blake  <eblake@redhat.com>
13210
13211         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
13212         Use __THROWNL rather than __THROW on static functions.
13213
13214 2013-09-30  Petr Machata  <pmachata@redhat.com>
13215
13216         * elf/elf.h (R_AARCH64_ABS16): New macro.
13217         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
13218         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
13219         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
13220         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
13221         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
13222         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
13223         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
13224         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
13225         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
13226         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
13227         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
13228         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
13229         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
13230         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
13231         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
13232         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
13233         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
13234         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
13235         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
13236         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
13237         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
13238         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
13239         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
13240         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
13241         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
13242         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
13243         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
13244         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
13245         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
13246         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
13247         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
13248         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
13249         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
13250         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
13251         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
13252         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
13253         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
13254         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
13255         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
13256         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
13257         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
13258         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
13259         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
13260         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
13261         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
13262         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
13263         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
13264         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
13265         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
13266         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
13267         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
13268         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
13269         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
13270         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
13271         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
13272         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
13273         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
13274         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
13275         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
13276         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
13277         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
13278         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
13279         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
13280         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
13281         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
13282         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
13283         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
13284         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
13285         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
13286         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
13287         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
13288         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
13289         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
13290         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
13291         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
13292         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
13293         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
13294         (R_AARCH64_TLSDESC_LDR): Likewise.
13295         (R_AARCH64_TLSDESC_ADD): Likewise.
13296         (R_AARCH64_TLSDESC_CALL): Likewise.
13297
13298 2013-09-30  Andreas Schwab  <schwab@suse.de>
13299
13300         [BZ #15048]
13301         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
13302         the nss database lookup.
13303         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13304         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
13305
13306 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
13307
13308         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
13309
13310 2013-09-28  P. J. McDermott  <pj@pehjota.net>
13311
13312         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
13313         ${Bash-specific parameter/pattern/string} parameter expansion.
13314         * sysdeps/unix/make-syscalls.sh: Likewise.
13315
13316 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13317
13318         * sysdeps/sh/stackguard-macros.h: New file.
13319
13320 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
13321
13322         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
13323         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
13324         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
13325         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
13326         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
13327         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
13328
13329 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13330
13331         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
13332         Fix thread ID register.
13333
13334 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
13335
13336         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
13337         [POSIX || UNIX98]: Require rather than permitting all symbols from
13338         <time.h>.
13339         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
13340         element of struct sched_param.
13341         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
13342         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
13343         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
13344         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
13345         constant.
13346
13347 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
13348
13349         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
13350         argument calculation.
13351
13352 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13353
13354         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
13355         Expect macro.
13356         [POSIX] (pthread_attr_t): Do not require type.
13357         [POSIX] (pthread_cond_t): Likewise.
13358         [POSIX] (pthread_condattr_t): Likewise.
13359         [POSIX] (pthread_key_t): Likewise.
13360         [POSIX] (pthread_mutex_t): Likewise.
13361         [POSIX] (pthread_mutexattr_t): Likewise.
13362         [POSIX] (pthread_once_t): Likewise.
13363         [POSIX] (pthread_t): Likewise.
13364         [POSIX-based standards] (pthread_atfork): Expect function.
13365
13366 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
13367             Richard Sandiford  <richard@codesourcery.com>
13368
13369         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
13370         (swap_endianness_p): New extern variable.
13371         (set_big_endian): New inline function.
13372         (maybe_swap_uint32): Likewise.
13373         (maybe_swap_uint32_array): Likewise.
13374         (maybe_swap_uint32_obstack): Likewise.
13375         * locale/programs/locfile.c: Include <stdbool.h>.
13376         (swap_endianness_p): New variable.
13377         (add_locale_uint32): Call maybe_swap_uint32.
13378         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
13379         (write_locale_data): Call maybe_swap_uint32_array.
13380         * locale/programs/ld-collate.c (obstack_int32_grow): Call
13381         maybe_swap_uint32.
13382         (obstack_int32_grow_fast): Likewise.
13383         (output_weightwc): Call maybe_swap_uint32_obstack.
13384         (collate_output): Likewise.
13385         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
13386         (OPT_LITTLE_ENDIAN): Likewise.
13387         (options): Add --little-endian and --big-endian options.
13388         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
13389         * locale/programs/locarchive.c: Include "locfile.h".
13390         (GET): New macro.
13391         (SET): Likewise.
13392         (INC): Likewise.
13393         (create_archive): Use the new macros to access fields of
13394         structures directly mapped from or written to locale archives.
13395         (oldlocrecentcmp): Likewise.
13396         (enlarge_archive): Likewise.
13397         (insert_name): Likewise.
13398         (add_alias): Likewise.
13399         (add_locale): Likewise.
13400         (delete_locales_from_archive): Likewise.
13401         (show_archive_content): Likewise.
13402         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
13403         locale data.
13404
13405 2013-09-24  Roland McGrath  <roland@hack.frob.com>
13406
13407         * manual/freemanuals.texi: Updated from (newly) canonical copy at
13408         http://www.gnu.org/doc/freemanuals.texi.
13409         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
13410
13411 2013-09-24  Will Newton  <will.newton@linaro.org>
13412
13413         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
13414         macro.
13415
13416 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
13417
13418         * locale/hashval.h (compute_hashval): Interpret bytes of key as
13419         unsigned char.
13420
13421 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
13422
13423         * manual/threads.texi (POSIX Threads): Fix a typo.
13424
13425 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
13426
13427         [BZ #14547]
13428         * string/tst-strcoll-overflow.c: New test case.
13429         * string/Makefile (xtests): Add tst-strcoll-overflow.
13430         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
13431         cache if string sizes may cause integer overflow.
13432
13433         [BZ #14547]
13434         * string/strcoll_l.c (coll_seq): New members rule, idx,
13435         save_idx and back_us.
13436         (get_next_seq_nocache): New function.
13437         (do_compare_nocache): New function.
13438         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
13439         when malloc fails.
13440
13441 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
13442
13443         [BZ #15754]
13444         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
13445         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
13446         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
13447
13448         [BZ #15754]
13449         * elf/Makefile (tests): Add tst-ptrguard1.
13450         (tests-static): Add tst-ptrguard1-static.
13451         (tst-ptrguard1-ARGS): Define.
13452         (tst-ptrguard1-static-ARGS): Define.
13453         * elf/tst-ptrguard1.c: New file.
13454         * elf/tst-ptrguard1-static.c: New file.
13455         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
13456         * sysdeps/i386/stackguard-macros.h: Likewise.
13457         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
13458         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
13459         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
13460         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
13461         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
13462         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
13463
13464 2013-09-23  Hector Marco  <hecmargi@upv.es>
13465             Ismael Ripoll  <iripoll@disca.upv.es>
13466             Carlos O'Donell  <carlos@redhat.com>
13467
13468         [BZ #15754]
13469         * sysdeps/generic/stackguard-macros.h: Define
13470         __pointer_chk_guard_local and POINTER_CHK_GUARD.
13471         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
13472         Define __pointer_chk_guard_local.
13473         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
13474         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
13475
13476 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
13477
13478         [BZ #15859]
13479         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
13480
13481 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
13482
13483         * include/string.h (__ffs): Declare as hidden.
13484         * string/ffs.c (__ffs): Define as hidden.
13485         * sysdeps/i386/ffs.c (__ffs): Likewise.
13486         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
13487         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
13488         * sysdeps/s390/ffs.c (__ffs): Likewise.
13489         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
13490
13491 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
13492
13493         * NEWS: Mention malloc probes.
13494
13495         * malloc/arena.c (new_heap): New memory_heap_new probe.
13496         (grow_heap): New memory_heap_more probe.
13497         (shrink_heap): New memory_heap_less probe.
13498         (heap_trim): New memory_heap_free probe.
13499         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
13500         (systrim): New memory_sbrk_less probe.
13501         * manual/probes.texi: Document them.
13502
13503         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
13504         * manual/probes.texi: Document it.
13505
13506         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
13507         (__libc_realloc): Add memory_realloc_retry probe.
13508         (__libc_memalign): Add memory_memalign_retry probe.
13509         (__libc_valloc): Add memory_valloc_retry probe.
13510         (__libc_pvalloc): Add memory_pvalloc_retry probe.
13511         (__libc_calloc): Add memory_calloc_retry probe.
13512         * manual/probes.texi: Document them.
13513
13514         * malloc/arena.c (get_free_list): Add probe
13515         memory_arena_reuse_free_list.
13516         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
13517         and memory_arena_reuse.
13518         (arena_get2) [!PER_THREAD]: Likewise.
13519         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
13520         memory_arena_reuse_realloc.
13521         * manual/probes.texi: Document them.
13522
13523         * malloc/malloc.c (__libc_free): Add
13524         memory_mallopt_free_dyn_thresholds probe.
13525         (__libc_mallopt): Add multiple memory_mallopt probes.
13526         * manual/probes.texi: Document them.
13527
13528         * malloc/malloc.c: Include stap-probe.h.
13529         (__libc_mallopt): Add memory_mallopt probe.
13530         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
13531         * manual/probes.texi: New.
13532         * manual/Makefile (chapters): Add probes.
13533         * manual/threads.texi: Set next node.
13534
13535 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
13536
13537         [BZ #15963, #13985]
13538         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
13539         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
13540         Add `Chinese' to `nan' entry name.
13541
13542 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13543
13544         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
13545         (POLYNOMIAL): Likewise.
13546         (TAYLOR_SINCOS): Likewise.
13547         (TAYLOR_SLOW): Likewise.
13548         (__sin): Use TAYLOR_SINCOS.
13549         (__cos): Likewise.
13550         (slow): Use TAYLOR_SLOW.
13551         (sloww): Likewise.
13552         (bsloww): Likewise.
13553         (csloww): Likewise.
13554
13555 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
13556
13557         * stdlib/strtod_l.c: Fix buffer overrun.
13558
13559 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
13560
13561         * benchtests/Makefile (bench): Add sincos.
13562         * benchtests/bench-sincos.c: New file.
13563
13564         * math/libm-test.inc (cos_test_data): New test inputs.
13565         (sin_test_data): Likewise.
13566
13567         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
13568         macro.
13569         (__sin): Use it.
13570         (__cos): Likewise.
13571         (slow1): Likewise.
13572         (slow2): Likewise.
13573         (sloww1): Likewise.
13574         (sloww2): Likewise.
13575         (bsloww1): Likewise.
13576         (bsloww2): Likewise.
13577         (cslow2): Likewise.
13578         (csloww1): Likewise.
13579         (csloww2): Likewise.
13580
13581         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
13582         function.
13583         (__sin): Use it.
13584         (__cos): Likewise.
13585
13586         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
13587         gotos.
13588         (__cos): Likewise.
13589
13590 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
13591
13592         * config.h.in (HAVE_MIPS_NAN2008): New macro.
13593         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
13594         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
13595         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
13596         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
13597         * elf/cache.c (print_entry): Handle the new cache flags.
13598
13599 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13600             Aldy Hernandez  <aldyh@redhat.com>
13601
13602         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
13603         Change condition to [_SOFT_FLOAT].
13604         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
13605         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
13606         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
13607         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
13608         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
13609         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
13610         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
13611         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
13612         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
13613         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
13614         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
13615         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
13616         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
13617         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
13618         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
13619         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
13620         declaration.
13621
13622 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
13623
13624         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
13625         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13626         (__longjmp): Use LOAD_GP to load saved GPRs.
13627         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
13628         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
13629         (__sigsetjmp): Use SAVE_GP to save GPRs.
13630
13631         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
13632         Do not append -msoft-float.
13633         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
13634
13635 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
13636
13637         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
13638
13639 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
13640
13641         [BZ #15966]
13642         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
13643         (_FPU_GETCW): Use initial "__" on variable and field names but not
13644         on macro parameter name.
13645         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
13646         parentheses around reference to macro parameter.
13647
13648 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
13649
13650         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
13651         prototype.
13652         (ctype_startup): Use uint32_t in cast and sizeof for
13653         ctype->charnames.
13654
13655 2013-09-11  Jia Liu  <proljc@gmail.com>
13656
13657         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
13658         __daddr_t_defined.
13659         [__FreeBSD__]: Likewise.
13660
13661 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
13662
13663         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13664         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
13665         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
13666         (strchr): Remove __strchr_sse42 ifunc selection.
13667         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
13668         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
13669
13670 2013-09-11  Will Newton  <will.newton@linaro.org>
13671
13672         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
13673         parameter to RES. Remove hardcoded 1000 value.
13674         * benchtests/bench-skeleton.c (main): Pass RES parameter
13675         to TIMING_INIT and multiply result by 1000.
13676
13677 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13678
13679         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13680
13681 2013-09-11  Andreas Schwab  <schwab@suse.de>
13682
13683         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
13684         if not defined.
13685         (O_TMPFILE) [__USE_GNU]: Define.
13686         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
13687         Define.
13688
13689 2013-09-11  Will Newton  <will.newton@linaro.org>
13690
13691         [BZ #15857]
13692         * malloc/malloc.c (__libc_memalign): Check the value of bytes
13693         does not overflow.
13694
13695 2013-09-11  Will Newton  <will.newton@linaro.org>
13696
13697         [BZ #15856]
13698         * malloc/malloc.c (__libc_valloc): Check the value of bytes
13699         does not overflow.
13700
13701 2013-09-11  Will Newton  <will.newton@linaro.org>
13702
13703         [BZ #15855]
13704         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
13705         does not overflow.
13706
13707 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
13708
13709         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
13710         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
13711         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13712         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13713         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13714
13715 2013-09-10  Allan McRae  <allan@archlinux.org>
13716
13717         [BZ #15748]
13718         * manual/arith.texi (Parsing of Floats): Clarify
13719         cross-reference.
13720
13721         [BZ #15849]
13722         * manual/install.texi (Running make install): Mention
13723         --enable-pt-chown.
13724         * INSTALL: Regenerated.
13725
13726 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
13727
13728         * csu/init-first.c (_init): Remove the !SHARED condition around
13729         FPU control word initialization.
13730         * elf/dl-support.c (_dl_fpu_control): New variable.
13731         (_dl_aux_init) <AT_FPUCW>: Initialize it.
13732         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
13733         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
13734         * math/test-fpucw-static.c: New file.
13735         * math/test-fpucw-ieee.c: New file.
13736         * math/test-fpucw-ieee-static.c: New file.
13737         * math/Makefile (tests): Add `test-fpucw-ieee' and
13738         `$(tests-static)'.
13739         (tests-static): New variable.
13740         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
13741         dependency to...
13742         [($(build-shared),yes)]
13743         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
13744         ... this.
13745         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
13746         New dependency.
13747
13748 2013-09-09  Allan McRae  <allan@archlinux.org>
13749
13750         [BZ #15939]
13751         * manual/string.texi (Collation Functions): Fix typo in
13752         strcoll example.
13753         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
13754
13755         [BZ #15893]
13756         * stdlib/isomac.c (get_null_defines): Fix memory leak.
13757
13758         [BZ #15892]
13759         * libio/memstream.c (open_memstream): Fix memory leak.
13760         * libio/wmemstream.c (open_wmemstream): Likewise.
13761
13762         [BZ #15895]
13763         * nscd/netgroupcache.c: Fix nesting of ifdefs.
13764
13765 2013-09-09  Will Newton  <will.newton@linaro.org>
13766
13767         * malloc/Makefile: Add tst-realloc to tests.
13768         * malloc/tst-realloc.c: New file.
13769
13770 2013-09-09  Allan McRae  <allan@archlinux.org>
13771
13772         [BZ #15844]
13773         * COPYING: Update from GNU website to fix FSF address.
13774         * COPYING.LIB: Likewise.
13775
13776 2013-09-06  David S. Miller  <davem@davemloft.net>
13777
13778         * po/zh_TW.po: Update Chinese (traditional) translation from
13779         translation project.
13780
13781 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
13782             Joseph Myers  <joseph@codesourcery.com>
13783
13784         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
13785         "localeinfo.h".
13786         (obstack_chunk_alloc): New macro.
13787         (obstack_chunk_free): Likewise.
13788         (record_offset): New function.
13789         (init_locale_data): Likewise.
13790         (align_locale_data): Likewise.
13791         (add_locale_empty): Likewise.
13792         (add_locale_raw_data): Likewise.
13793         (add_locale_raw_obstack): Likewise.
13794         (add_locale_string): Likewise.
13795         (add_locale_wstring): Likewise.
13796         (add_locale_uint32): Likewise.
13797         (add_locale_uint32_array): Likewise.
13798         (add_locale_char): Likewise.
13799         (start_locale_structure): Likewise.
13800         (end_locale_structure): Likewise.
13801         (start_locale_prelude): Likewise.
13802         (end_locale_prelude): Likewise.
13803         (write_locale_data): Take locale_file structure rather than an
13804         iovec.
13805         * locale/programs/locfile.h: Include "obstack.h".
13806         (struct locale_file): Change to store locale file contents instead
13807         of header.
13808         (init_locale_data): New prototype.
13809         (align_locale_data): Likewise.
13810         (add_locale_empty): Likewise.
13811         (add_locale_raw_data): Likewise.
13812         (add_locale_raw_obstack): Likewise.
13813         (add_locale_string): Likewise.
13814         (add_locale_wstring): Likewise.
13815         (add_locale_uint32): Likewise.
13816         (add_locale_uint32_array): Likewise.
13817         (add_locale_char): Likewise.
13818         (start_locale_structure): Likewise.
13819         (end_locale_structure): Likewise.
13820         (start_locale_prelude): Likewise.
13821         (end_locale_prelude): Likewise.
13822         (write_locale_data): Update prototype.
13823         * locale/programs/3level.h (struct TABLE): Remove result field.
13824         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
13825         Use new locale_file interface.
13826         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
13827         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
13828         * locale/programs/ld-address.c (address_output): Use new
13829         locale_file interface.
13830         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
13831         NO_ADD_LOCALE.
13832         (collate_finish): Don't call collseq_table_finalize.
13833         (collate_output): Use new locale_file interface.
13834         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
13835         in file.
13836         (NO_FINALIZE): Change to NO_ADD_LOCALE.
13837         (TABLE): Move defines earlier in file.
13838         (ELEMENT): Likewise.
13839         (DEFAULT): Likewise.
13840         (wctrans_table_add): Move macro and inline function earlier in
13841         file.
13842         (struct wctype_table): Move type earlier in file.
13843         (add_locale_wctype_table): New static prototype.
13844         (struct locale_ctype_t): Use logical types instead of struct iovec
13845         pointers for members.
13846         (ctype_output): Use new locale_file interface.
13847         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
13848         new locale_file interface.
13849         (allocate_arrays): Update for use of new locale_file interface.
13850         * locale/programs/ld-identification.c (identification_output): Use
13851         new locale_file interface.
13852         * locale/programs/ld-measurement.c (measurement_output): Likewise.
13853         * locale/programs/ld-messages.c (messages_output): Likewise.
13854         * locale/programs/ld-monetary.c (monetary_output): Likewise.
13855         * locale/programs/ld-name.c (name_output): Likewise.
13856         * locale/programs/ld-numeric.c (numeric_output): Likewise.
13857         * locale/programs/ld-paper.c (paper_output): Likewise.
13858         * locale/programs/ld-telephone.c (telephone_output): Likewise.
13859         * locale/programs/ld-time.c (time_output): Likewise.
13860
13861 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13862
13863         * benchtests/Makefile: Add memrchr benchmark.
13864         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
13865         benchmark as memrchr.
13866         * benchtests/bench-memrchr-ifunc.c: New file.
13867         * benchtests/bench-memrchr.c: New file.
13868
13869 2013-09-06   Will Newton  <will.newton@linaro.org>
13870
13871         * benchtests/Makefile (string-bench): Add memcpy.
13872
13873 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
13874             Cong Wang  <amwang@redhat.com>
13875
13876         [BZ #15850]
13877         * sysdeps/unix/sysv/linux/bits/in.h
13878         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
13879         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
13880         before __USE_KERNEL_IPV6_DEFS uses.
13881         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
13882         IPPROTO_BEETPH.
13883         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
13884         sockaddr_in6, or ipv6_mreq.
13885
13886 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13887
13888         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
13889         memory access for final bytes in some large inputs.
13890         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
13891
13892 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13893
13894         * string/test-memrchr.c: New file.
13895         * string/test-memrchr-ifunc.c: New file.
13896         * string/Makefile: Add new memrchr testcase.
13897
13898 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
13899
13900         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
13901         fanotify_init returns EPERM.
13902
13903 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
13904
13905         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
13906         errors.
13907         (top level): Treat second token from macro or constant entries for
13908         allowed headers as allowed.
13909         * include/complex.h: Condition internal declarations on
13910         [!_ISOMAC].
13911         * include/fenv.h: Condition include of <stdbool.h> and internal
13912         declarations on [!_ISOMAC].
13913
13914 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
13915
13916         [BZ #15923]
13917         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
13918
13919 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
13920
13921         * configure.in (--enable-versioning): Remove configure option.
13922         (libc_cv_asm_symver_directive): Remove configure test.
13923         (libc_cv_ld_version_script_option): Likewise.
13924         (VERSIONING): Remove variable and AC_SUBST.
13925         (DO_VERSIONING): Remove AC_DEFINE.
13926         * configure: Regenerated.
13927         * config.h.in (DO_VERSIONING): Remove macro.
13928         * Makerules [$(versioning) = yes]: Change conditionals to
13929         [$(build-shared) = yes].
13930         * config.make.in (versioning): Remove variable.
13931         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
13932         [$(build-shared) = yes].
13933         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
13934         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
13935         * elf/Makefile [$(versioning) = yes]: Change conditionals to
13936         [$(build-shared) = yes].
13937         * extra-lib.mk [$(versioning) = yes]: Likewise.
13938         * hurd/Makefile [$(versioning) = yes]: Likewise.
13939         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
13940         [SHARED].
13941         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
13942         [SHARED].
13943         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
13944         [SHARED && !NO_HIDDEN].
13945         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
13946         [SHARED].
13947         [SHARED && DO_VERSIONING]: Likewise..
13948         * libio/Makefile [$(versioning) = yes]: Change conditionals to
13949         [$(build-shared) = yes].
13950         * manual/install.texi (--disable-versioning): Remove
13951         documentation.
13952         * INSTALL: Regenerated.
13953         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
13954         to [SHARED].
13955         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
13956         [$(build-shared) = yes].
13957         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
13958         * sysdeps/i386/i686/multiarch/strstr-c.c
13959         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
13960         [SHARED && !NO_HIDDEN].
13961         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
13962         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
13963         * sysdeps/powerpc/powerpc32/dl-machine.c
13964         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
13965         * sysdeps/powerpc/powerpc32/sysdep.h
13966         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
13967         to [SHARED && PIC && !NO_HIDDEN].
13968         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
13969         conditional to [SHARED].
13970
13971 2013-09-04   Will Newton  <will.newton@linaro.org>
13972
13973         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
13974         * benchtests/bench-string.h: Include bench-timing.h instead
13975         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
13976         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
13977         call to HP_TIMING_DIFF_INIT.
13978         * benchtests/bench-memccpy.c: Use bench-timing.h macros
13979         instead of hp-timing.h macros.
13980         * benchtests/bench-memchr.c: Likewise.
13981         * benchtests/bench-memcmp.c: Likewise.
13982         * benchtests/bench-memcpy.c: Likewise.
13983         * benchtests/bench-memmem.c: Likewise.
13984         * benchtests/bench-memmove.c: Likewise.
13985         * benchtests/bench-memset.c: Likewise.
13986         * benchtests/bench-rawmemchr.c: Likewise.
13987         * benchtests/bench-strcasecmp.c: Likewise.
13988         * benchtests/bench-strcasestr.c: Likewise.
13989         * benchtests/bench-strcat.c: Likewise.
13990         * benchtests/bench-strchr.c: Likewise.
13991         * benchtests/bench-strcmp.c: Likewise.
13992         * benchtests/bench-strcpy.c: Likewise.
13993         * benchtests/bench-strcpy_chk.c: Likewise.
13994         * benchtests/bench-strlen.c: Likewise.
13995         * benchtests/bench-strncasecmp.c: Likewise.
13996         * benchtests/bench-strncat.c: Likewise.
13997         * benchtests/bench-strncmp.c: Likewise.
13998         * benchtests/bench-strncpy.c: Likewise.
13999         * benchtests/bench-strnlen.c: Likewise.
14000         * benchtests/bench-strpbrk.c: Likewise.
14001         * benchtests/bench-strrchr.c: Likewise.
14002         * benchtests/bench-strspn.c: Likewise.
14003         * benchtests/bench-strstr.c: Likewise.
14004
14005 2013-09-04  Will Newton  <will.newton@linaro.org>
14006
14007         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
14008
14009 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
14010
14011         [BZ #15427]
14012         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
14013         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
14014         * math/libm-test.inc (lgamma_test_data): Add more tests.
14015         * sysdeps/i386/fpu/libm-test-ulps: Update.
14016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14017
14018 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
14019
14020         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
14021         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
14022         Add ifunc.
14023         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
14024         Add strcmp-sse2-unaligned
14025         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
14026
14027 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14028
14029         * Versions.def (libc): Add GLIBC_2.19.
14030
14031 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
14032
14033         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
14034         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
14035
14036 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
14037
14038         [BZ #14155]
14039         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
14040         intermediate calculations in recurrence.
14041         (__ieee754_ynf): Likewise.
14042         * math/libm-test.inc (jn_test_data): Do not allow spurious
14043         underflow exception.  Add more tests.
14044         (yn_test_data): Add more tests.
14045         * sysdeps/i386/fpu/libm-test-ulps: Update.
14046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14047
14048 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
14049
14050         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
14051
14052 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14053
14054         * csu/init-first.c: Fix then/than typos.
14055         * locale/programs/ld-collate.c: Likewise.
14056         * locale/programs/linereader.h: Likewise.
14057         * manual/charset.texi: Likewise.
14058         * manual/filesys.texi: Likewise.
14059         * manual/stdio.texi: Likewise.
14060         * manual/string.texi: Likewise.
14061         * stdlib/fmtmsg.c: Likewise.
14062         * sysdeps/i386/stpncpy.S: Likewise.
14063         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14064         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14065         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14066         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14067
14068 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
14069
14070         * elf/dl-open.c: Fix typos.
14071         * iconvdata/gbbig5.c: Likewise.
14072         * iconvdata/iso-2022-jp.c: Likewise.
14073         * iconv/gconv_int.h: Likewise.
14074         * iconv/loop.c: Likewise.
14075         * nis/rpcsvc/nis.h: Likewise.
14076         * resolv/ns_name.c: Likewise.
14077         * stdio-common/vfscanf.c: Likewise.
14078         * streams/stropts.h: Likewise.
14079         * sunrpc/rpc_thread.c: Likewise.
14080         * sysdeps/i386/strpbrk.S: Likewise.
14081         * sysdeps/ieee754/k_standard.c: Likewise.
14082         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14083         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
14084         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
14085         * sysdeps/mach/hurd/profil.c: Likewise.
14086         * sysdeps/s390/dl-procinfo.h: Likewise.
14087         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
14088         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
14089         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
14090         * sysdeps/x86_64/dl-trampoline.S: Likewise.
14091         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14092
14093 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
14094
14095         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
14096         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
14097
14098 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
14099
14100         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
14101         aix specific files.
14102         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
14103         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
14104         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
14105         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
14106         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
14107         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
14108         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
14109         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
14110
14111 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14112             Roland McGrath  <roland@hack.frob.com>
14113
14114         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
14115         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14116
14117 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14118
14119         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
14120         __executable_start symbol instead of _start.
14121
14122 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
14123
14124         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
14125         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
14126         Move macros to...
14127         * sysdeps/gnu/ldsodefs.h: ... this new file.
14128
14129         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
14130         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
14131         instead of ELFOSABI_LINUX.
14132
14133         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
14134         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
14135         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
14136         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
14137         Likewise.
14138         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
14139         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
14140         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
14141         Likewise.
14142         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
14143         (ibm_extended_long_double): Add ieee_nan member.
14144         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
14145         (do_test): New function.
14146
14147         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
14148         TEST_TRUNC.
14149         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
14150         functions, renamed from truncdfsf_test, trunctfsf_test,
14151         trunctfdf_test.
14152         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
14153         functions.
14154         (do_test): Run all these.
14155
14156 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
14157
14158         * argp/argp-help.c: Fix typos.
14159         * argp/argp-parse.c: Likewise.
14160         * debug/backtracesyms.c: Likewise.
14161         * elf/elf.h: Likewise.
14162         * malloc/malloc.c: Likewise.
14163         * nis/nis_print.c: Likewise.
14164         * resolv/res_comp.c: Likewise.
14165         * stdlib/stdlib.h: Likewise.
14166         * sunrpc/clnt_tcp.c: Likewise.
14167         * sunrpc/clnt_udp.c: Likewise.
14168         * sunrpc/clnt_unix.c: Likewise.
14169         * sysdeps/unix/bsd/ptsname.c: Likewise.
14170         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
14171         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
14172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
14173         Likewise.
14174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
14175         Likewise.
14176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
14177         Likewise.
14178         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
14179
14180 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
14181
14182         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
14183         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
14184
14185 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
14186
14187         [BZ #15897]
14188         * dlfcn/Makefile (tests): Add bug-dl-leaf.
14189         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
14190         ($(objpfx)bug-dl-leaf): New rule.
14191         ($(objpfx)bug-dl-leaf.so): Likewise.
14192         ($(objpfx)bug-dl-leaf.out): Likewise.
14193         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
14194         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
14195         * dlfcn/bug-dl-leaf.c: New test.
14196         * dlfcn/bug-dl-leaf-lib.c: Likewise.
14197         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
14198         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
14199         (dlclose): Likewise.
14200         (dlmopen): Likewise.
14201
14202 2013-08-27  Roland McGrath  <roland@hack.frob.com>
14203
14204         * include/netdb.h [!_ISOMAC]:
14205         Don't include <tls.h>.
14206         (h_errno, __libc_h_errno): Move declaration and macros out of
14207         [_LIBC_REENTRANT].
14208
14209         * include/resolv.h [_RESOLV_H_]:
14210         Don't include <tls.h>.
14211         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
14212         * resolv/res_libc.c: Don't include <tls.h>.
14213         (_res): Use __attribute__ ((nocommon)) in place of
14214         __attribute__ ((section (".bss"))).
14215
14216         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
14217         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
14218
14219         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
14220
14221         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
14222         only under [SIOCGIFCONF && SIOCGIFNETMASK].
14223
14224         * resolv/res_mkquery.c: Include <sys/time.h>.
14225
14226         * inet/ifreq.c: Moved to ...
14227         * sysdeps/unix/ifreq.c: ... here.
14228         * inet/ifreq.c: New file, true stub version.
14229
14230         * socket/sa_len.c: New file.
14231         * socket/Makefile (aux): Add it.
14232         * sysdeps/unix/sysv/linux/Makefile
14233         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
14234         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
14235         and #include <socket/sa_len.c>.
14236         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
14237         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
14238
14239         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
14240         * bits/socket.h: ... here.
14241
14242         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
14243         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
14244         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
14245
14246 2013-08-27  Andreas Schwab  <schwab@suse.de>
14247
14248         [BZ #15736]
14249         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
14250         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
14251         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
14252         * string/test-strcasecmp.c (test_main): Run tests in several
14253         locales.
14254         * string/test-strncasecmp.c (test_main): Likewise.
14255
14256         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
14257         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
14258         to __strcasecmp_nonascii and __strncasecmp_nonascii.
14259         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
14260         (__strncasecmp_ssse3) [PIC]: Likewise.
14261
14262 2013-08-26  Roland McGrath  <roland@hack.frob.com>
14263
14264         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
14265
14266         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
14267         instead of explicitly declaring xdecrypt.
14268         * nis/nss_nis/nis-publickey.c: Likewise.
14269
14270 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14271
14272         [BZ #15890]
14273         * nscd/aicache.c: Include res_hconf.h.
14274         (addhstaiX): Initialize res_hconf.
14275
14276 2013-08-26  Andreas Schwab  <schwab@suse.de>
14277
14278         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
14279         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
14280
14281 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14282
14283         * nscd/aicache.c (addhstaiX): Fix indentation.
14284
14285 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
14286
14287         * configure.ac: Quote $build_pt_chown test.
14288         * configure: Regenerated.
14289
14290 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
14291
14292         [BZ #15532]
14293         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
14294         * math/s_cexpf.c (__cexpf): Likewise.
14295         * math/s_cexpl.c (__cexpl): Likewise.
14296         * math/libm-test.inc (cexp_test_data): Correct expected return
14297         value for NaN + i0.  Add another test.
14298
14299 2013-08-22  David S. Miller  <davem@davemloft.net>
14300
14301         * po/ca.po: Update Catalan translation from translation project.
14302         * po/uk.po: Add Ukrainian translations from translation project.
14303
14304 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
14305
14306         [BZ #15797]
14307         * math/s_fdim.c (__fdim): Check for infinite arguments if result
14308         is infinite, not alongside NaN test.
14309         * math/s_fdimf.c (__fdimf): Likewise.
14310         * math/s_fdiml.c (__fdiml): Likewise.
14311         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
14312         errno is unchanged.
14313
14314 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
14315
14316         * argp/argp-help.c: Fix typos.
14317         * crypt/speeds.c: Likewise.
14318         * csu/check_fds.c: Likewise.
14319         * elf/dl-load.c: Likewise.
14320         * elf/dl-open.c: Likewise.
14321         * elf/reldep3.c: Likewise.
14322         * elf/reldep.c: Likewise.
14323         * elf/sprof.c: Likewise.
14324         * iconv/iconv_charmap.c: Likewise.
14325         * iconv/skeleton.c: Likewise.
14326         * iconv/strtab.c: Likewise.
14327         * io/lockf64.c: Likewise.
14328         * libio/libioP.h: Likewise.
14329         * resolv/gai_notify.c: Likewise.
14330         * resolv/ns_name.c: Likewise.
14331         * resolv/ns_samedomain.c: Likewise.
14332         * resolv/res_send.c: Likewise.
14333         * stdlib/random.c: Likewise.
14334         * sunrpc/rpc/xdr.h: Likewise.
14335         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
14336         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14337         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14338         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14339         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14340         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14341         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14342         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14343         * sysdeps/mach/hurd/check_fds.c: Likewise.
14344         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
14345         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14346         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14347         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
14348         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14349         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
14350         * sysdeps/pthread/aio_notify.c: Likewise.
14351         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
14352         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
14353         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
14354         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
14355         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
14356
14357 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14358
14359         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
14360         version if bit_Slow_SSE4_2 is set.
14361         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14362         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14363
14364 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14365
14366         [BZ #15867]
14367         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
14368         trampoline stack frame information.
14369         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
14370         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
14371         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
14372         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
14373         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
14374         * sysdeps/unix/sysv/linux/powerpc/init-first.c
14375         (_libc_vdso_platform_setup): Initialize the signal trampolines.
14376         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
14377         sa_flags value.
14378         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
14379         interrupting a syscall and set with option SA_SIGINFO.
14380
14381 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14382
14383         [BZ #15531]
14384         * math/s_cproj.c (__cproj): Only return an infinity if one part of
14385         argument is infinite.
14386         * math/s_cprojf.c (__cprojf): Likewise.
14387         * math/s_cprojl.c (__cprojl): Likewise.
14388         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
14389         * math/libm-test.inc (cproj_test_data): Add more tests.
14390
14391         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
14392
14393         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
14394         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
14395         size.  Use __ffs to determine corresponding shift.
14396
14397 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
14398             Roland McGrath  <roland@hack.frob.com>
14399
14400         * Makefile (INSTALL): Remove trailing blank lines from output of
14401         makeinfo.
14402
14403 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14404
14405         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
14406         Align 32 bit compat elf_greg to 8 bytes.
14407
14408 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14409
14410         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
14411
14412 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14413
14414         * string/strcoll_l.c (coll_seq): New structure.
14415         (get_next_seq_cached): New function.
14416         (get_next_seq): New function.
14417         (do_compare): New function.
14418         (STRCOLL): Use GNU style definition.  Simplify implementation
14419         by using get_next_seq, get_next_seq_cached and do_compare.
14420
14421 2013-08-16  Florian Weimer  <fweimer@redhat.com>
14422
14423         [BZ #14699]
14424         CVE-2013-4237
14425         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
14426         member.
14427         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
14428         member.
14429         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
14430         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
14431         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
14432         conditional.
14433         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
14434         GETDENTS_64BIT_ALIGNED.
14435         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14436         * manual/filesys.texi (Reading/Closing Directory): Document
14437         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
14438         strongly.
14439         * manual/conf.texi (Limits for Files): Add portability note to
14440         NAME_MAX, PATH_MAX.
14441         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
14442
14443 2013-08-13  Andreas Schwab  <schwab@suse.de>
14444
14445         [BZ #15749]
14446         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
14447         of fabs.
14448         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
14449         LDBL_MAX_EXP >= 16384]: Add tests for it.
14450
14451 2013-08-12  David S. Miller  <davem@davemloft.net>
14452
14453         * version.h (RELEASE): Set to "development".
14454         (VERSION): Set to "2.18.90".
14455         * NEWS: Add 2.19 section.
14456
14457 2013-08-03  David S. Miller  <davem@davemloft.net>
14458
14459         * po/ko.po: Update Korean translation from translation project.
14460
14461 2013-08-01  David S. Miller  <davem@davemloft.net>
14462
14463         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
14464         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
14465         Bilka.
14466
14467 2013-07-30  David S. Miller  <davem@davemloft.net>
14468
14469         * po/fr.po: Update French translation from translation project.
14470
14471 2013-07-28  David S. Miller  <davem@davemloft.net>
14472
14473         * po/cs.po: Update Czech translation from translation project.
14474
14475         * po/sv.po: Update Swedish translation from translation project.
14476
14477 2013-07-27  David S. Miller  <davem@davemloft.net>
14478
14479         * po/eo.po: Update Esperanto translation from translation project.
14480
14481         * po/vi.po: Update Vietnamese translation from translation project.
14482
14483         * po/de.po: Update German translation from translation project.
14484
14485 2013-07-26  David S. Miller  <davem@davemloft.net>
14486
14487         * po/bg.po: Update Bulgarian translation from translation project.
14488
14489         * po/nl.po: Update Dutch translation from translation project.
14490         * po/pl.po: Update Polish translation from translation project.
14491         * po/ru.po: Update Russian translation from translation project.
14492
14493 2013-07-24  David S. Miller  <davem@davemloft.net>
14494
14495         * po/libc.pot: Update.
14496
14497 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14498
14499         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
14500         variable page size.
14501         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
14502         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
14503         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
14504
14505 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14506
14507         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
14508
14509 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14510             Andreas Schwab  <schwab@suse.de>
14511             Roland McGrath  <roland@hack.frob.com>
14512             Joseph Myers  <joseph@codesourcery.com>
14513             Carlos O'Donell  <carlos@redhat.com>
14514
14515         [BZ #15755]
14516         * config.h.in: Define HAVE_PT_CHOWN.
14517         * config.make.in (build-pt-chown): New variable.
14518         * configure.in (--enable-pt_chown): New configure option.
14519         * configure: Regenerate.
14520         * login/Makefile: Include Makeconfig.  Build pt_chown only if
14521         build-pt-chown is enabled.
14522         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
14523         pt_chown to fix pty ownership.
14524         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
14525         CLOSE_ALL_FDS.
14526         * manual/install.texi (Configuring and compiling): Mention
14527         --enable-pt_chown. Add @findex for grantpt.
14528         * INSTALL: Regenerate.
14529
14530 2013-07-20  David S. Miller  <davem@davemloft.net>
14531
14532         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
14533         difference between 32-bit and 64-bit.
14534
14535 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
14536
14537         [BZ #15711]
14538         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
14539         Avoid system header dependency with -ffreestanding.
14540         ($(objpfx)bits/syscall%d): Likewise.
14541
14542 2013-07-13  David S. Miller  <davem@davemloft.net>
14543
14544         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
14545         underflows from atanl/atan2l due to bug 15319.
14546         (casinh_test_data): Likewise.
14547
14548 2013-07-07  David S. Miller  <davem@davemloft.net>
14549
14550         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
14551
14552 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
14553
14554         * sysdeps/i386/fpu/libm-test-ulps: Update.
14555         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14556
14557 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14558
14559         * configure.in (--enable-lock-elision): Fix message text.
14560         * INSTALL: Regenerate.
14561         * configure: Regenerate.
14562
14563 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14564
14565         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14566
14567 2013-07-03  Andreas Jaeger  <aj@suse.de>
14568
14569         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
14570         define.
14571         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
14572         (ptrace_peeksiginfo_args): Add.
14573         (__ptrace_peeksiginfo_flags): Add.
14574         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14575         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14576         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14577
14578 2013-07-03  Allan McRae  <allan@archlinux.org>
14579
14580         * sysdeps/i386/fpu/libm-test-ulps: Update.
14581
14582 2013-07-02  David S. Miller  <davem@davemloft.net>
14583
14584         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14585
14586 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
14587
14588         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14589
14590 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14591
14592         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
14593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14594
14595 2013-07-02  Andi Kleen <ak@linux.intel.com>
14596
14597         * config.h.in (ENABLE_LOCK_ELISION): Add.
14598         * configure.in (--enable-lock-elision): Add option.
14599         * manual/install.texi: Document --enable lock elision.
14600         * configure: Regenerate
14601         * INSTALL: Regenerate.
14602
14603 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14604
14605         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
14606         SSE4.2 strcasecmp for libc.a.
14607         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
14608
14609 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
14610
14611         [BZ #13304]
14612         * soft-fp/op-common.h (_FP_FMA): New macro.
14613         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
14614         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
14615         (_FP_MUL_MEAT_1_imm): ... here.
14616         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
14617         (_FP_MUL_MEAT_1_wide): ... here.
14618         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
14619         (_FP_MUL_MEAT_1_hard): ... here.
14620         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
14621         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
14622         (_FP_MUL_MEAT_2_wide): ... here.
14623         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
14624         (_FP_MUL_MEAT_2_wide_3mul): ... here.
14625         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
14626         (_FP_MUL_MEAT_2_gmp): ... here.
14627         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
14628         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
14629         (_FP_MUL_MEAT_4_wide): ... here.
14630         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
14631         (_FP_MUL_MEAT_4_gmp): ... here.
14632         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
14633         (_FP_WFRACBITS_DW_S): Likewise.
14634         (_FP_WFRACXBITS_DW_S): Likewise.
14635         (_FP_HIGHBIT_DW_S): Likewise.
14636         (FP_FMA_S): Likewise.
14637         (_FP_FRAC_HIGH_DW_S): Likewise.
14638         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
14639         (_FP_WFRACBITS_DW_D): Likewise.
14640         (_FP_WFRACXBITS_DW_D): Likewise.
14641         (_FP_HIGHBIT_DW_D): Likewise.
14642         (FP_FMA_D): Likewise.
14643         (_FP_FRAC_HIGH_DW_D): Likewise.
14644         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
14645         (_FP_WFRACBITS_DW_E): Likewise.
14646         (_FP_WFRACXBITS_DW_E): Likewise.
14647         (_FP_HIGHBIT_DW_E): Likewise.
14648         (FP_FMA_E): Likewise.
14649         (_FP_FRAC_HIGH_DW_E): Likewise.
14650         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
14651         (_FP_WFRACBITS_DW_Q): Likewise.
14652         (_FP_WFRACXBITS_DW_Q): Likewise.
14653         (_FP_HIGHBIT_DW_Q): Likewise.
14654         (FP_FMA_Q): Likewise.
14655         (_FP_FRAC_HIGH_DW_Q): Likewise.
14656         * soft-fp/fmasf4.c: New file.
14657         * soft-fp/fmadf4.c: Likewise.
14658         * soft-fp/fmatf4.c: Likewise.
14659
14660 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14661
14662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14663         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
14664         Silvermont.
14665         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
14666         macro.
14667         (index_Slow_SSE4_2): Likewise.
14668         (index_Prefer_PMINUB_for_stringop): Likewise.
14669         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
14670         bit_Slow_SSE4_2 is set.
14671         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14672         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14673
14674 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14675
14676         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
14677         rtld_global._dl_hwcap2.
14678         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
14679         POWER8.
14680         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
14681         POWER8 feature descriptions defined in _dl_hwcap2.
14682         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
14683         string handling for POWER8 feature bits.
14684         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
14685         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
14686         _dl_powerpc_cap_flags.
14687         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
14688         * sysdeps/powerpc/rtld-global-offsets.sym
14689         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
14690         _dl_hwcap2 in the rtld_global_ro structure.
14691
14692 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14693
14694         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
14695         hardware capabilities in support of AT_HWCAP2.
14696         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
14697         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
14698         GLRO(dl_hwcap2).
14699         (_dl_show_auxv): Add support for calling _dl_procinfo to display
14700         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
14701         explicitly the unknown a_type display mechanism is used.
14702         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
14703         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
14704         struct member.
14705         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
14706         to macro prototype for AT_HWCAP2 support.
14707         * sysdeps/i386/dl-procinfo.h: Likewise.
14708         * sysdeps/s390/dl-procinfo.h: Likewise.
14709         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
14710         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
14711         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
14712         return -1 for unknown a_type display fallback.
14713         * sysdeps/sparc/dl-procinfo.h: Likewise.
14714         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
14715         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
14716
14717 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
14718
14719         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
14720         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
14721
14722 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
14723
14724         [BZ #12492]
14725         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
14726         mprotect making __stack_prot writable.
14727
14728 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
14729             Joseph Myers  <joseph@codesourcery.com>
14730
14731         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
14732         as being properly aligned.
14733
14734 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
14735
14736         * dlfcn/modstatic5.c: New file.
14737         * dlfcn/tststatic5.c: New file.
14738         * dlfcn/Makefile (tests): Add tststatic5.
14739         (tests-static): Likewise.
14740         (modules-names): Add modstatic5.
14741         (tststatic5-ENV): New variable.
14742         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
14743
14744         [BZ #15022]
14745         * elf/dl-support.c (_dl_main_map): New variable.
14746         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
14747         (_dl_nns, _dl_load_adds): Set to 1.
14748         (_dl_initial_searchlist): Refer to _dl_main_map.
14749         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
14750         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
14751         call to _dl_get_origin.
14752         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
14753         around call_map.
14754         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
14755         * dlfcn/modstatic3.c: New file.
14756         * dlfcn/tststatic3.c: New file.
14757         * dlfcn/tststatic4.c: New file.
14758         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
14759         (tests-static): Likewise.
14760         (modules-names): Add modstatic3.
14761         (tststatic3-ENV, tststatic4-ENV): New variables.
14762         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
14763         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
14764
14765 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
14766
14767         * configure.in (CC): Require GCC version 4.4 or later.
14768         * configure: Regenerated.
14769         * manual/install.texi (Tools for Compilation): Update GCC version
14770         requirement.
14771         * INSTALL: Regenerated.
14772
14773 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14774
14775         [BZ #15674]
14776         * string/test-memcmp.c (check2): New.
14777         (main): Call check2.
14778
14779         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
14780
14781 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
14782
14783         [BZ #15022]
14784         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
14785         over to...
14786         (dl_open_worker) [!SHARED]: ... here.
14787
14788 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14789
14790         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
14791
14792 2013-06-25  Richard Henderson  <rth@redhat.com>
14793
14794         * locale/programs/locarchive.c: Include <libc-internal.h>
14795
14796 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
14797
14798         * manual/texinfo.tex: Update to version 2013-06-21.17, with
14799         trailing whitespace removed.
14800
14801 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
14802
14803         [BZ #10283]
14804         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
14805         * locale/programs/locarchive.c: Include libc-mmap.h.
14806         (prepare_address_space): Take two new outputs (the mmap base and len).
14807         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
14808         values.
14809         (create_archive): Declare new mmap base and len values for
14810         prepare_address_space, and store the result in ah.
14811         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
14812         (enlarge_archive): If ah->mmap_base is not NULL, use that and
14813         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
14814         Declare new mmap base and len values for
14815         prepare_address_space, and store the result in new_ah.
14816         (open_archive): Declare new mmap base and len values for
14817         prepare_address_space, and store the result in ah.
14818         (close_archive): If ah->mmap_base is not NULL, use that and
14819         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
14820         * sysdeps/generic/libc-mmap.h: New file.
14821
14822 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
14823
14824         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
14825         (ALIGN_UP): Likewise.
14826         (PTR_ALIGN_DOWN): Likewise.
14827         (PTR_ALIGN_UP): Likewise.
14828
14829 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14830
14831         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
14832         entry mapped to PPC_PLATFORM_POWER8.
14833         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
14834         POWER8.
14835         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
14836         (_dl_string_platform): Add case for exporting platform position for
14837         POWER8.
14838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
14839         search path to sysdeps/powerpc/powerpc32/power8 directory.
14840         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
14841         search path to sysdeps/powerpc/powerpc64/power8 directory.
14842         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
14843         power7 directories.
14844         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
14845         power7 directories.
14846
14847 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14848
14849         * INSTALL: Regenerate.
14850
14851         * nscd/connections.c (nscd_init): Fix comment.
14852
14853 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
14854
14855         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
14856
14857         [BZ #15667]
14858         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
14859         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
14860
14861 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
14862
14863         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
14864         DL_DST_REQ_STATIC.
14865         (DL_DST_REQ_STATIC): Remove macro.
14866
14867 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
14868
14869         [BZ #7006]
14870         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
14871         with a shift of 0 bits.
14872
14873 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
14874
14875         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
14876         $(tststatic-ENV).
14877
14878 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14879
14880         [BZ #15655]
14881         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
14882
14883 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14884
14885         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
14886         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
14887         accepts -fno-tree-loop-distribute-patterns.
14888         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
14889         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
14890         recursive call.
14891         * string/memset.c (memset): Likewise.
14892         * string/test-memmove.c (simple_memmove): Disable loop transformation
14893         to library calls.
14894         * string/test-memset.c (simple_memset): Likewise.
14895         * benchtests/bench-memmove.c (simple_memmove): Likewise.
14896         * benchtests/bench-memset.c (simple_memset): Likewise.
14897         * configure: Regenerated.
14898
14899 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
14900
14901         * math/test-misc.c (main): Ignore fesetround failure when failures
14902         of subsequent rounding tests would be ignored.
14903
14904         [BZ #15654]
14905         * math/fedisblxcpt.c (fedisableexcept): Return 0.
14906         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
14907         * math/fegetenv.c (__fegetenv): Return 0.
14908         * math/fegetexcept.c (fegetexcept): Return 0.
14909         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
14910         FE_TONEAREST.
14911         * math/feholdexcpt.c (feholdexcept): Return 0.
14912         * math/fesetenv.c (__fesetenv): Return 0.
14913         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
14914         argument FE_TONEAREST.
14915         * math/feupdateenv.c (__feupdateenv): Return 0.
14916         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
14917
14918 2013-06-18  Roland McGrath  <roland@hack.frob.com>
14919
14920         * elf/rtld-Rules (rtld-compile-command.S): New variable.
14921         (rtld-compile-command.s, rtld-compile-command.c): New variables.
14922         ($(objpfx)rtld-%.os rules): Use them.
14923
14924 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14925
14926         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
14927         fields.
14928
14929 2013-06-17  Roland McGrath  <roland@hack.frob.com>
14930
14931         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
14932         length of target pattern, then descending length of dependency pattern.
14933         * configure.in (AWK): Require gawk 3.1.2 or newer.
14934         * manual/install.texi (Tools for Compilation): Say that we do.
14935         * configure: Regenerated.
14936
14937         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
14938         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
14939         * scripts/sysd-rules.awk: ... this new script.
14940         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
14941         than a glob-style pattern.
14942
14943 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
14944
14945         * math/test-misc.c (main): Do not treat incorrectly rounded
14946         conversions as failure unless ROUNDING_TESTS passes.
14947
14948 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
14949
14950         [BZ #15631]
14951         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
14952         restore exception state around main square root computation, then
14953         check for inexactness explicitly.
14954
14955         * math/libm-test.inc (fma_test_data): Add another test.
14956
14957 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
14958
14959         * manual/threads.texi (Non-POSIX Extensions): New document
14960         node.  Document pthread_getattr_default_np and
14961         pthread_setattr_default_np.
14962
14963         * Versions.def (libpthread): Add GLIBC_2.18.
14964         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
14965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
14966         Likewise.
14967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14968         Likewise.
14969         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14970         Likewise.
14971         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14972         Likewise.
14973         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
14974         Likewise.
14975         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14976         Likewise.
14977         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14978         Likewise.
14979         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
14980         Likewise.
14981         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
14982         Likewise.
14983
14984 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
14985
14986         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14987         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
14988
14989 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
14990             H.J. Lu  <hjl.tools@gmail.com>
14991
14992         [BZ #15627]
14993         * sysdeps/x86_64/rtld-memset.c: Remove file.
14994         * sysdeps/x86_64/rtld-memset.S: New file.
14995
14996 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
14997
14998         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
14999         (test_in_one_mode): Take arguments for whether the rounding mode
15000         is supported for each floating-point type.
15001         (do_test): Pass new arguments to test_in_one_mode using
15002         ROUNDING_TESTS.
15003
15004 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15005
15006         * posix/tst-waitid.c (do_test): Distinguish different instances of
15007         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
15008         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
15009         before entering the kernel for waitpid.
15010
15011 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15012
15013         * NEWS: Fix note on clock function precision.  Text by Roland
15014         McGrath.
15015
15016 2013-06-13  Roland McGrath  <roland@hack.frob.com>
15017
15018         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
15019         it into place only when and if the sanity check passes.
15020
15021 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
15022
15023         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
15024         output for whether conversion result is exact.  Take argument
15025         indicating whether type is IBM long double.
15026         (round_for_all): Change need_exact field to ibm_ld.
15027         * stdlib/tst-strtod-round.c (struct exactness): New type.
15028         (struct test): Change bool ld_ok field to struct exactness exact.
15029         (TEST): Update all definitions for change to field.
15030         (tests): Regenerate array contents.
15031         (test_in_one_mode): Take pointer to new field instead of old ld_ok
15032         field value.  Check for IBM long double here.
15033         (do_test): Update calls to test_in_one_mode.
15034
15035 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
15036
15037         [BZ #12515]
15038         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
15039         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
15040
15041 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15042
15043         [BZ #15605]
15044         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
15045         generated by the compiler on loop optimizations.
15046         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
15047         general definitions.
15048
15049 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
15050
15051         * math/bug-nextafter.c: Include <math-tests.h>.
15052         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15053         the relevant type.
15054         * math/bug-nexttoward.c: Include <math-tests.h>.
15055         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15056         the relevant type.
15057         * math/test-misc.c: Include <math-tests.h>.
15058         (main): Only test for exceptions if EXCEPTION_TESTS is true for
15059         the relevant type.
15060
15061 2013-06-12  Andreas Jaeger  <aj@suse.de>
15062
15063         * po/ia.po: Update Interlingua translation from translation
15064         project.
15065
15066 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
15067
15068         * include/fenv.h: Include stdbool.h.
15069         (struct rm_ctx): New structure.
15070         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
15071         Define macro.
15072         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
15073         (SET_RESTORE_ROUNDF): Likewise.
15074         (SET_RESTORE_ROUNDL): Likewise.
15075         (SET_RESTORE_ROUND_NOEX): Likewise.
15076         (SET_RESTORE_ROUND_NOEXF): Likewise.
15077         (SET_RESTORE_ROUND_NOEXL): Likewise.
15078         (SET_RESTORE_ROUND_53BIT): Likewise.
15079         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
15080         (libc_feresetround_noexf_ctx): Likewise.
15081         (libc_feresetround_noexl_ctx): Likewise.
15082         (libc_feholdsetround_53bit_ctx): Likewise.
15083         (libc_feresetround_53bit_ctx): Likewise.
15084         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
15085         (libc_feholdexcept_setround_sse_ctx): New function.
15086         (libc_fesetenv_sse_ctx): Likewise.
15087         (libc_feupdateenv_sse_ctx): Likewise.
15088         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
15089         (libc_feholdexcept_setround_387_ctx): Likewise.
15090         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
15091         (libc_feholdsetround_387_prec_ctx): Likewise.
15092         (libc_feholdsetround_387_ctx): Likewise.
15093         (libc_feholdsetround_387_53bit_ctx): Likewise.
15094         (libc_feholdsetround_sse_ctx): Likewise.
15095         (libc_feresetround_sse_ctx): Likewise.
15096         (libc_feresetround_387_ctx): Likewise.
15097         (libc_feupdateenv_387_ctx): Likewise.
15098         (libc_feholdexcept_setroundf_ctx): Define macro.
15099         (libc_fesetenvf_ctx): Likewise.
15100         (libc_feupdateenvf_ctx): Likewise.
15101         (libc_feholdsetroundf_ctx): Likewise.
15102         (libc_feresetroundf_ctx): Likewise.
15103         (libc_feholdexcept_setround_ctx): Likewise.
15104         (libc_fesetenv_ctx): Likewise.
15105         (libc_feupdateenv_ctx): Likewise.
15106         (libc_feholdsetround_ctx): Likewise.
15107         (libc_feresetround_ctx): Likewise.
15108         (libc_feholdexcept_setroundl_ctx): Likewise.
15109         (libc_feupdateenvl_ctx): Likewise.
15110         (libc_feholdsetroundl_ctx): Likewise.
15111         (libc_feresetroundl_ctx): Likewise.
15112         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
15113         (libc_feresetround_53bit_ctx): Likewise.
15114
15115 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15116
15117         * locale/iso-639.def: Convert to UTF-8.
15118
15119 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
15120
15121         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
15122         (EXCEPTION_TESTS_double): Likewise.
15123         (EXCEPTION_TESTS_long_double): Likewise.
15124         (EXCEPTION_TESTS): Likewise.
15125         * math/libm-test.inc (test_exceptions): Only test exceptions if
15126         EXCEPTION_TESTS (FLOAT).
15127
15128 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15129
15130         * benchtests/Makefile (string-bench): Add strcpy_chk and
15131         stpcpy_chk.
15132         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
15133         * benchtests/bench-stpcpy_chk.c: New file.
15134         * benchtests/bench-strcpy_chk-ifunc.c: New file.
15135         * benchtests/bench-strcpy_chk.c: New file.
15136         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
15137         code.
15138         (do_test): Likewise.
15139
15140 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15141
15142         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
15143         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
15144         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
15145         with tabs where appropriate.
15146         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
15147         dl-procinfo.h.
15148         [PPC_PLATFORM_PPC440]: Likewise.
15149         [PPC_PLATFORM_PPC464]: Likewise.
15150         [PPC_PLATFORM_PPC476]: Likewise.
15151         (_dl_string_platform): Add support for detecting ppc405, ppc440,
15152         ppc464, and ppc476 platform strings merging from ports/
15153         dl-procinfo.h.
15154
15155 2013-06-11  Andreas Schwab  <schwab@suse.de>
15156
15157         [BZ #14991]
15158         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
15159         (from_ucs4_idx): Regenerate.
15160         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
15161         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
15162         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
15163         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
15164         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
15165         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
15166         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
15167         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
15168         from FROM_LOOP and TO_LOOP specific macros.
15169         (BODY): Handle combining characters.
15170         * iconvdata/BIG5HKSCS.irreversible: Update.
15171         * iconvdata/BIG5HKSCS.precomposed: New file.
15172         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
15173         characters.
15174         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
15175
15176 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15177
15178         * include/sys/time.h: Fix indentation and add copyright header.
15179
15180         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
15181         (do_test): Likewise.
15182         * string/test-memchr.c (do_one_test): Likewise.
15183         (do_test): Likewise.
15184         * string/test-memcmp.c (do_one_test): Likewise.
15185         (do_test): Likewise.
15186         * string/test-memcpy.c (do_one_test): Likewise.
15187         (do_test): Likewise.
15188         * string/test-memmem.c (do_one_test): Likewise.
15189         (do_test): Likewise.
15190         (do_random_tests): Likewise.
15191         * string/test-memmove.c (do_one_test): Likewise.
15192         (do_test): Likewise.
15193         * string/test-memset.c (do_one_test): Likewise.
15194         (do_test): Likewise.
15195         * string/test-rawmemchr.c (do_one_test): Likewise.
15196         (do_test): Likewise.
15197         * string/test-strcasecmp.c (do_one_test): Likewise.
15198         (do_test): Likewise.
15199         * string/test-strcasestr.c (do_one_test): Likewise.
15200         (do_test): Likewise.
15201         * string/test-strcat.c (do_one_test): Likewise.
15202         (do_test): Likewise.
15203         * string/test-strchr.c (do_one_test): Likewise.
15204         (do_test): Likewise.
15205         * string/test-strcmp.c (do_one_test): Likewise.
15206         (do_test): Likewise.
15207         * string/test-strcpy.c (do_one_test): Likewise.
15208         (do_test): Likewise.
15209         * string/test-string.h: Likewise.
15210         (test_init): Likewise.
15211         * string/test-strlen.c (do_one_test): Likewise.
15212         (do_test): Likewise.
15213         * string/test-strncasecmp.c (do_one_test): Likewise.
15214         (do_test): Likewise.
15215         * string/test-strncat.c (do_one_test): Likewise.
15216         (do_test): Likewise.
15217         * string/test-strncmp.c (do_one_test): Likewise.
15218         (do_test_limit): Likewise.
15219         (do_test): Likewise.
15220         * string/test-strncpy.c (do_one_test): Likewise.
15221         (do_test): Likewise.
15222         * string/test-strnlen.c (do_one_test): Likewise.
15223         (do_test): Likewise.
15224         * string/test-strpbrk.c (do_one_test): Likewise.
15225         (do_test): Likewise.
15226         * string/test-strrchr.c (do_one_test): Likewise.
15227         (do_test): Likewise.
15228         * string/test-strspn.c (do_one_test): Likewise.
15229         (do_test): Likewise.
15230         * string/test-strstr.c (do_one_test): Likewise.
15231         (do_test): Likewise.
15232
15233         * benchtests/Makefile (string-bench): Add string benchmarks.
15234         * benchtests/bench-bcopy-ifunc.c: New file.
15235         * benchtests/bench-bcopy.c: New file.
15236         * benchtests/bench-bzero-ifunc.c: New file.
15237         * benchtests/bench-bzero.c: New file.
15238         * benchtests/bench-memccpy-ifunc.c: New file.
15239         * benchtests/bench-memccpy.c: New file.
15240         * benchtests/bench-memchr-ifunc.c: New file.
15241         * benchtests/bench-memchr.c: New file.
15242         * benchtests/bench-memcmp-ifunc.c: New file.
15243         * benchtests/bench-memcmp.c: New file.
15244         * benchtests/bench-memmem-ifunc.c: New file.
15245         * benchtests/bench-memmem.c: New file.
15246         * benchtests/bench-memmove-ifunc.c: New file.
15247         * benchtests/bench-memmove.c: New file.
15248         * benchtests/bench-mempcpy-ifunc.c: New file.
15249         * benchtests/bench-mempcpy.c: New file.
15250         * benchtests/bench-memset-ifunc.c: New file.
15251         * benchtests/bench-memset.c: New file.
15252         * benchtests/bench-rawmemchr-ifunc.c: New file.
15253         * benchtests/bench-rawmemchr.c: New file.
15254         * benchtests/bench-stpcpy-ifunc.c: New file.
15255         * benchtests/bench-stpcpy.c: New file.
15256         * benchtests/bench-stpncpy-ifunc.c: New file.
15257         * benchtests/bench-stpncpy.c: New file.
15258         * benchtests/bench-strcasecmp-ifunc.c: New file.
15259         * benchtests/bench-strcasecmp.c: New file.
15260         * benchtests/bench-strcasestr-ifunc.c: New file.
15261         * benchtests/bench-strcasestr.c: New file.
15262         * benchtests/bench-strcat-ifunc.c: New file.
15263         * benchtests/bench-strcat.c: New file.
15264         * benchtests/bench-strchr-ifunc.c: New file.
15265         * benchtests/bench-strchr.c: New file.
15266         * benchtests/bench-strchrnul-ifunc.c: New file.
15267         * benchtests/bench-strchrnul.c: New file.
15268         * benchtests/bench-strcmp-ifunc.c: New file.
15269         * benchtests/bench-strcmp.c: New file.
15270         * benchtests/bench-strcpy-ifunc.c: New file.
15271         * benchtests/bench-strcpy.c: New file.
15272         * benchtests/bench-strcspn-ifunc.c: New file.
15273         * benchtests/bench-strcspn.c: New file.
15274         * benchtests/bench-strlen-ifunc.c: New file.
15275         * benchtests/bench-strlen.c: New file.
15276         * benchtests/bench-strncasecmp-ifunc.c: New file.
15277         * benchtests/bench-strncasecmp.c: New file.
15278         * benchtests/bench-strncat-ifunc.c: New file.
15279         * benchtests/bench-strncat.c: New file.
15280         * benchtests/bench-strncmp-ifunc.c: New file.
15281         * benchtests/bench-strncmp.c: New file.
15282         * benchtests/bench-strncpy-ifunc.c: New file.
15283         * benchtests/bench-strncpy.c: New file.
15284         * benchtests/bench-strnlen-ifunc.c: New file.
15285         * benchtests/bench-strnlen.c: New file.
15286         * benchtests/bench-strpbrk-ifunc.c: New file.
15287         * benchtests/bench-strpbrk.c: New file.
15288         * benchtests/bench-strrchr-ifunc.c: New file.
15289         * benchtests/bench-strrchr.c: New file.
15290         * benchtests/bench-strspn-ifunc.c: New file.
15291         * benchtests/bench-strspn.c: New file.
15292         * benchtests/bench-strstr-ifunc.c: New file.
15293         * benchtests/bench-strstr.c: New file.
15294
15295         * benchtests/Makefile: Disable parallel execution of targets.
15296         (string-bench): Add memcpy.
15297         (benchset): New variable to store a list of benchmark sets.
15298         (bench-func): Renamed from bench.
15299         (bench-set): New target.
15300         (bench): Depend on bench-func and bench-set.
15301         * benchtests/README: Add section on benchmark sets.
15302         * benchtests/bench-memcpy-ifunc.c: New file.
15303         * benchtests/bench-memcpy.c: New file.
15304         * benchtests/bench-string.h: New file.
15305
15306 2013-06-11  Andreas Schwab  <schwab@suse.de>
15307
15308         [BZ #15577]
15309         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
15310         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
15311         values in the triple.
15312         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
15313         terminator in the group key.
15314
15315 2013-06-11  Andreas Jaeger  <aj@suse.de>
15316
15317         * po/zh_TW.po: Update Chinese (traditional) translation from
15318         translation project.
15319
15320 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
15321
15322         * include/time.h (__clock_gettime): Add libc_hidden_proto.
15323         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
15324         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
15325         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15326         (clock_getcpuclockid): Likewise.
15327         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
15328         Add weak_alias and libc_hidden_def.
15329         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
15330         * rt/clock_gettime.c (clock_gettime): Rename to
15331         __clock_gettime.  Add weak_alias and libc_hidden_def.
15332         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
15333         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
15334         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
15335         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
15336         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
15337         Likewise.
15338         * rt/clock_settime.c (clock_settime): Rename to
15339         __clock_settime.  Add weak_alias and libc_hidden_def.
15340         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
15341
15342 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
15343
15344         * mach/err_boot.sub: Remove trailing whitespace.
15345         * mach/err_ipc.sub: Likewise.
15346         * mach/err_mach.sub: Likewise.
15347
15348         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
15349         (ROUNDING_TESTS_double): Likewise.
15350         (ROUNDING_TESTS_long_double): Likewise.
15351         (ROUNDING_TESTS): Likewise.
15352         * math/libm-test.inc: Include <math-tests.h>.
15353         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
15354         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
15355         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
15356         (IF_ROUND_INIT_FE_UPWARD): Likewise.
15357
15358 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15359
15360         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
15361         of assigning.
15362
15363 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
15364
15365         * sysdeps/gnu/errlist.awk: Do not generate space at end of
15366         otherwise empty TRANS lines.
15367         * sysdeps/gnu/errlist.c: Regenerated.
15368
15369         * catgets/gencat.c (error_print): Use (void) in function
15370         definition.
15371         * crypt/crypt_util.c (__init_des): Likewise.
15372         * crypt/speeds.c (Stop): Likewise.
15373         (main): Likewise.
15374         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
15375         * inet/ruserpass.c (token): Likewise.
15376         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
15377         * intl/localealias.c (extend_alias_table): Likewise.
15378         * intl/plural-exp.c (init_germanic_plural): Likewise.
15379         * libio/fcloseall.c (__fcloseall): Likewise.
15380         * libio/genops.c (_IO_flush_all): Likewise.
15381         (_IO_flush_all_linebuffered): Likewise.
15382         (_IO_cleanup): Likewise.
15383         (_IO_iter_begin): Likewise.
15384         (_IO_iter_end): Likewise.
15385         (_IO_list_lock): Likewise.
15386         (_IO_list_unlock): Likewise.
15387         (_IO_list_resetlock): Likewise.
15388         * libio/getchar.c (getchar): Likewise.
15389         * libio/getchar_u.c (getchar_unlocked): Likewise.
15390         * libio/getwchar.c (getwchar): Likewise.
15391         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
15392         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
15393         * login/getpt.c (__getpt): Likewise.
15394         * login/tst-utmp.c (main): Likewise.
15395         * malloc/hooks.c (__malloc_check_init): Likewise.
15396         * malloc/malloc.c (__malloc_stats): Likewise.
15397         * malloc/mtrace.c (tr_break): Likewise.
15398         (mtrace): Likewise.
15399         (muntrace): Likewise.
15400         * misc/fstab.c (endfsent): Likewise.
15401         * misc/getclktck.c (__getclktck): Likewise.
15402         * misc/getdtsz.c (__getdtablesize): Likewise.
15403         * misc/gethostid.c (gethostid): Likewise.
15404         * misc/getpagesize.c (__getpagesize): Likewise.
15405         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
15406         (__get_nprocs): Likewise.
15407         (__get_phys_pages): Likewise.
15408         (__get_avphys_pages): Likewise.
15409         * misc/getttyent.c (getttyent): Likewise.
15410         (setttyent): Likewise.
15411         (endttyent): Likewise.
15412         * misc/getusershell.c (getusershell): Likewise.
15413         (endusershell): Likewise.
15414         (setusershell): Likewise.
15415         (initshells): Likewise.
15416         * misc/hsearch.c (__hdestroy): Likewise.
15417         * misc/sync.c (sync): Likewise.
15418         * misc/syslog.c (closelog_internal): Likewise.
15419         (closelog): Likewise.
15420         * misc/ttyslot.c (ttyslot): Likewise.
15421         * misc/vhangup.c (vhangup): Likewise.
15422         * posix/fork.c (__fork): Likewise.
15423         * posix/getegid.c (__getegid): Likewise.
15424         * posix/geteuid.c (__geteuid): Likewise.
15425         * posix/getgid.c (__getgid): Likewise.
15426         * posix/getpid.c (__getpid): Likewise.
15427         * posix/getppid.c (__getppid): Likewise.
15428         * posix/getuid.c (__getuid): Likewise.
15429         * posix/pause.c (pause): Likewise.
15430         * posix/setpgrp.c (setpgrp): Likewise.
15431         * posix/setsid.c (__setsid): Likewise.
15432         * posix/test-vfork.c (noop): Likewise.
15433         * resolv/gethnamaddr.c (_endhtent): Likewise.
15434         (_gethtent): Likewise.
15435         (ht_endhostent): Likewise.
15436         (gethostent): Likewise.
15437         (dns_service): Likewise.
15438         * stdlib/drand48.c (drand48): Likewise.
15439         * stdlib/lrand48.c (lrand48): Likewise.
15440         * stdlib/mrand48.c (mrand48): Likewise.
15441         * stdlib/rand.c (rand): Likewise.
15442         * stdlib/random.c (__random): Likewise.
15443         * stdlib/setenv.c (clearenv): Likewise.
15444         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
15445         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
15446         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
15447         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
15448         (__get_nprocs): Likewise.
15449         (__get_phys_pages): Likewise.
15450         (__get_avphys_pages): Likewise.
15451         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
15452         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
15453         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
15454         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
15455         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
15456         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
15457         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
15458         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
15459         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
15460         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
15461         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
15462         * sysdeps/mach/hurd/sync.c (sync): Likewise.
15463         * sysdeps/posix/clock.c (clock): Likewise.
15464         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
15465         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
15466         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
15467         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
15468         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
15469         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
15470         (__get_nprocs_conf): Likewise.
15471         (__get_phys_pages): Likewise.
15472         (__get_avphys_pages): Likewise.
15473         * time/clock.c (clock): Likewise.
15474         * time/tzset.c (__tzname_max): Likewise.
15475
15476 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
15477
15478         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
15479         (__bswap_32): Do not use "register".
15480         * crypt/crypt.c (_ufc_doit_r): Likewise.
15481         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
15482         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
15483         * gmon/gmon.c (__monstartup): Likewise.
15484         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
15485         * hurd/hurdmalloc.c (more_memory): Likewise.
15486         (malloc): Likewise.
15487         (free): Likewise.
15488         (realloc): Likewise.
15489         (malloc_fork_prepare): Likewise.
15490         (malloc_fork_parent): Likewise.
15491         (malloc_fork_child): Likewise.
15492         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
15493         (_svcauth_des): Likewise.
15494         * inet/inet_lnaof.c (inet_lnaof): Likewise.
15495         * inet/inet_net.c (inet_network): Likewise.
15496         * inet/inet_netof.c (inet_netof): Likewise.
15497         * inet/rcmd.c (__validuser2_sa): Likewise.
15498         * io/fts.c (fts_open): Likewise.
15499         (fts_load): Likewise.
15500         (fts_close): Likewise.
15501         (fts_read): Likewise.
15502         (fts_children): Likewise.
15503         (fts_build): Likewise.
15504         (fts_stat): Likewise.
15505         (fts_sort): Likewise.
15506         (fts_alloc): Likewise.
15507         (fts_lfree): Likewise.
15508         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
15509         (_IO_file_xsgetn): Likewise.
15510         (_IO_file_xsgetn_mmap): Likewise.
15511         * libio/iofopncook.c (_IO_cookie_read): Likewise.
15512         (_IO_cookie_write): Likewise.
15513         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
15514         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
15515         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
15516         * malloc/obstack.c (_obstack_begin): Likewise.
15517         (_obstack_begin_1): Likewise.
15518         (_obstack_newchunk): Likewise.
15519         (_obstack_allocated_p): Likewise.
15520         (obstack_free): Likewise.
15521         (_obstack_memory_used): Likewise.
15522         * misc/getttyent.c (getttynam): Likewise.
15523         (getttyent): Likewise.
15524         (skip): Likewise.
15525         (value): Likewise.
15526         * misc/getusershell.c (initshells): Likewise.
15527         * misc/syslog.c (__vsyslog_chk): Likewise.
15528         * misc/ttyslot.c (ttyslot): Likewise.
15529         * nis/nis_hash.c (__nis_hash): Likewise.
15530         * posix/fnmatch_loop.c (FCT): Likewise.
15531         * posix/getconf.c (print_all): Likewise.
15532         (main): Likewise.
15533         * posix/getopt.c (exchange): Likewise.
15534         * posix/glob.c (globfree): Likewise.
15535         (prefix_array): Likewise.
15536         (__glob_pattern_type): Likewise.
15537         * resolv/arpa/nameser.h (NS_GET16): Likewise.
15538         (NS_GET32): Likewise.
15539         (NS_PUT16): Likewise.
15540         (NS_PUT32): Likewise.
15541         * resolv/gethnamaddr.c (getanswer): Likewise.
15542         (gethostbyname2): Likewise.
15543         (gethostbyaddr): Likewise.
15544         (_gethtent): Likewise.
15545         (_gethtbyname2): Likewise.
15546         (_gethtbyaddr): Likewise.
15547         * resolv/ns_print.c (dst_s_get_int16): Likewise.
15548         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
15549         * resolv/res_init.c (__res_vinit): Likewise.
15550         (net_mask): Likewise.
15551         * resolv/res_mkquery.c (outchar): Likewise.
15552         (PRINT): Likewise.
15553         * stdio-common/printf_fp.c (outchar): Likewise.
15554         (PRINT): Likewise.
15555         * stdio-common/printf_fphex.c (outchar): Likewise.
15556         (PRINT): Likewise.
15557         * stdio-common/printf_size.c (outchar): Likewise.
15558         (PRINT): Likewise.
15559         * stdio-common/test_rdwr.c (main): Likewise.
15560         * stdio-common/tfformat.c (matches): Likewise.
15561         * stdio-common/vfprintf.c (outchar): Likewise.
15562         (printf_unknown): Likewise.
15563         (buffered_vfprintf): Likewise.
15564         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
15565         * stdio-common/xbug.c (AppendToBuffer): Likewise.
15566         (ReadFile): Likewise.
15567         * stdlib/qsort.c (SWAP): Likewise.
15568         (_quicksort): Likewise.
15569         * stdlib/setenv.c (__add_to_environ): Likewise.
15570         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15571         * stdlib/strtol_l.c (__strtol_l): Likewise.
15572         * stdlib/tst-strtod.c (main): Likewise.
15573         * stdlib/tst-strtol.c (main): Likewise.
15574         * stdlib/tst-strtoll.c (main): Likewise.
15575         * string/bits/string2.h (__strcmp_cc): Likewise.
15576         (__strcmp_cg): Likewise.
15577         (__strcspn_c1): Likewise.
15578         (__strcspn_c2): Likewise.
15579         (__strcspn_c3): Likewise.
15580         (__strspn_c1): Likewise.
15581         (__strspn_c2): Likewise.
15582         (__strspn_c3): Likewise.
15583         (__strsep_1c): Likewise.
15584         (__strsep_2c): Likewise.
15585         (__strsep_3c): Likewise.
15586         * string/memccpy.c (__memccpy): Likewise.
15587         * string/stpcpy.c (__stpcpy): Likewise.
15588         * string/strcmp.c (strcmp): Likewise.
15589         * string/strrchr.c (strrchr): Likewise.
15590         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
15591         Likewise.
15592         * sysdeps/mach/hurd/getcwd.c
15593         (_hurd_canonicalize_directory_name_internal): Likewise.
15594         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
15595         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
15596         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
15597         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
15598         Likewise, in both definitions.
15599         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
15600         definitions.
15601         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
15602         64] (__bswap_64): Likewise.
15603         * time/test_time.c (main): Likewise.
15604         * time/tzfile.c (__tzfile_read): Likewise.
15605         (__tzfile_compute): Likewise.
15606         * time/tzset.c (__tzset_parse_tz): Likewise.
15607         (tzset_internal): Likewise.
15608         (compute_change): Likewise.
15609         * wcsmbs/wcscat.c (__wcscat): Likewise.
15610         * wcsmbs/wcschr.c (wcschr): Likewise.
15611         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
15612         * wcsmbs/wcscspn.c (wcscspn): Likewise.
15613         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
15614         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
15615         * wcsmbs/wcsspn.c (wcsspn): Likewise.
15616         * wcsmbs/wcsstr.c (wcsstr): Likewise.
15617         * wcsmbs/wmemchr.c (wmemchr): Likewise.
15618         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15619         * wcsmbs/wmemset.c (wmemset): Likewise.
15620
15621 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
15622
15623         * scripts/config.guess: Update to version 2013-05-16.
15624         * scripts/config.sub: Update to version 2013-04-24.
15625         * scripts/install-sh: Update to version 2011-11-20.07.
15626         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
15627         * scripts/move-if-change: Update to version 2012-01-06 07:23.
15628
15629 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
15630
15631         * debug/fgetws_u_chk.c: Fix leading whitespaces.
15632         * elf/sln.c: Likewise.
15633         * hurd/hurd/ioctl.h: Likewise.
15634         * hurd/hurdmalloc.c: Likewise.
15635         * hurd/xattr.c: Likewise.
15636         * include/shlib-compat.h: Likewise.
15637         * inet/ruserpass.c: Likewise.
15638         * libio/iofgets_u.c: Likewise.
15639         * libio/iofgetws_u.c: Likewise.
15640         * locale/programs/ld-identification.c: Likewise.
15641         * locale/programs/ld-time.c: Likewise.
15642         * mach/msg-destroy.c: Likewise.
15643         * nss/nss_files/files-netgrp.c: Likewise.
15644         * resolv/res_data.c: Likewise.
15645         * soft-fp/op-1.h: Likewise.
15646         * soft-fp/op-2.h: Likewise.
15647         * soft-fp/op-4.h: Likewise.
15648         * soft-fp/op-common.h: Likewise.
15649         * stdio-common/printf_fphex.c: Likewise.
15650         * stdlib/strtod_l.c: Likewise.
15651         * sunrpc/rpc/clnt.h: Likewise.
15652         * sysdeps/generic/framestate.c: Likewise.
15653         * sysdeps/i386/bsd-_setjmp.S: Likewise.
15654         * sysdeps/i386/bsd-setjmp.S: Likewise.
15655         * sysdeps/i386/__longjmp.S: Likewise.
15656         * sysdeps/i386/setjmp.S: Likewise.
15657         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
15658         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15659         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15660         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15661         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15662         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
15663         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15664         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15665         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15666         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
15667         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
15668         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
15669         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
15670         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
15671         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
15672         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15673         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
15674         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
15675         * sysdeps/ieee754/support.c: Likewise.
15676         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
15677         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
15678         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
15679         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
15680         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
15681         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
15682         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
15683         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
15684         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
15685         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
15686         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
15687         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
15688         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
15689         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
15690         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
15691         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
15692         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
15693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
15694
15695 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
15696
15697         * posix/transbug.c: Remove executable mode.
15698
15699 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
15700
15701         * crypt/speeds.c: Remove trailing whitespace.
15702         * dlfcn/default.c: Likewise.
15703         * elf/ifuncdep2.c: Likewise.
15704         * elf/ifuncmain1.c: Likewise.
15705         * elf/ifuncmain1vis.c: Likewise.
15706         * elf/testobj.h: Likewise.
15707         * elf/tst-stackguard1.c: Likewise.
15708         * gmon/sys/gmon.h: Likewise.
15709         * hurd/hurdmsg.c: Likewise.
15710         * hurd/new-fd.c: Likewise.
15711         * hurd/ports-get.c: Likewise.
15712         * iconvdata/ibm1008_420.c: Likewise.
15713         * inet/tst-getni1.c: Likewise.
15714         * inet/tst-getni2.c: Likewise.
15715         * libio/ioungetc.c: Likewise.
15716         * libio/wfiledoalloc.c: Likewise.
15717         * manual/libm-err-tab.pl: Likewise.
15718         * math/w_dremf.c: Likewise.
15719         * misc/ftruncate.c: Likewise.
15720         * posix/bug-glob2.c: Likewise.
15721         * posix/tst-pcre.c: Likewise.
15722         * posix/wait4.c: Likewise.
15723         * resolv/README: Likewise.
15724         * resolv/res_debug.h: Likewise.
15725         * resolv/tst-inet_ntop.c: Likewise.
15726         * setjmp/bug269-setjmp.c: Likewise.
15727         * soft-fp/extended.h: Likewise.
15728         * soft-fp/op-1.h: Likewise.
15729         * soft-fp/op-2.h: Likewise.
15730         * soft-fp/op-4.h: Likewise.
15731         * soft-fp/op-8.h: Likewise.
15732         * soft-fp/testit.c: Likewise.
15733         * stdio-common/bug16.c: Likewise.
15734         * stdlib/random.c: Likewise.
15735         * sunrpc/rpcsvc/rquota.x: Likewise.
15736         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
15737         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15738         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15739         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15740         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15741         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15742         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15743         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15744         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15745         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15746         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15747         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
15748         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15749         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
15750         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15751         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
15752         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
15753         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15754         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
15755         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15756         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15757         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15758         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
15759         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
15760         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
15761         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
15762         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
15763         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15764         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15765         * sysdeps/ieee754/s_lib_version.c: Likewise.
15766         * sysdeps/mach/hurd/check_fds.c: Likewise.
15767         * sysdeps/mach/hurd/getsockname.c: Likewise.
15768         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
15769         * sysdeps/mach/hurd/recvfrom.c: Likewise.
15770         * sysdeps/powerpc/bits/link.h: Likewise.
15771         * sysdeps/powerpc/dl-procinfo.c: Likewise.
15772         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
15773         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
15774         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
15775         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
15776         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
15777         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
15778         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
15779         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
15780         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15781         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
15782         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
15783         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
15784         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15785         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15786         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15787         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
15788         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
15789         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15790         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15791         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15792         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
15793         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
15794         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
15795         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
15796         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
15797         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
15798         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15799         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15800         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
15801         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
15802         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
15803         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
15804         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15805         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
15806         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
15807         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
15808         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
15809         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
15810         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
15811         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
15812         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
15813         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
15814         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
15815         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
15816         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
15817         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
15818         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
15819         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
15820         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
15821         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15822         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15823         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
15824         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
15825         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
15826         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
15827         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
15828         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
15829         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
15830         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
15831         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
15832         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
15833         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
15834         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
15835         * sysdeps/powerpc/sysdep.h: Likewise.
15836         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
15837         * sysdeps/s390/s390-64/sub_n.S: Likewise.
15838         * sysdeps/sh/dl-trampoline.S: Likewise.
15839         * sysdeps/sh/memset.S: Likewise.
15840         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
15841         * sysdeps/sh/strlen.S: Likewise.
15842         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
15843         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
15844         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
15845         * sysdeps/sparc/sparc32/rem.S: Likewise.
15846         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
15847         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
15848         * sysdeps/sparc/sparc32/strchr.S: Likewise.
15849         * sysdeps/sparc/sparc32/udiv.S: Likewise.
15850         * sysdeps/sparc/sparc32/urem.S: Likewise.
15851         * sysdeps/sparc/sparc64/add_n.S: Likewise.
15852         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15853         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
15854         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
15855         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
15856         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
15857         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
15858         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
15859         * sysdeps/unix/bsd/times.c: Likewise.
15860         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
15861         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
15862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
15863         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
15864         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
15865         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
15866         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
15867         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
15868         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
15869         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
15870         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
15871         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
15872         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
15873         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
15874         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
15875         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
15876         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
15877         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
15878         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
15879         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
15880         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
15881         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
15882         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
15883         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
15884         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
15885         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
15886         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
15887         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
15888         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
15889         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
15890         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
15891         * sysdeps/x86_64/strcspn.S: Likewise.
15892
15893 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
15894
15895         * locale/C-translit.h: Revert #include <stdint.h> because this is a
15896         generated file.  Regenerate properly from gen-translit.pl.
15897         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
15898         locale/C-translit.h.
15899
15900 2013-06-05  Andreas Schwab  <schwab@suse.de>
15901
15902         [BZ #15100]
15903         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
15904         week as 6 instead of -1.
15905         * time/tst-strptime.c (day_tests): Add test case.
15906
15907 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15908
15909         * sysdeps/generic/math_private.h
15910         (libc_feholdexcept_setround_53bit): Replace with
15911         libc_feholdsetround_53bit.
15912         (libc_feupdateenv_53bit): Replace with
15913         libc_feresetround_53bit.
15914         (SET_RESTORE_ROUND_53BIT): Adjust.
15915
15916 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
15917
15918         * string/test-strchrnul.c: Add copyright header.
15919
15920         * posix/tst-getaddrinfo4.c: Increase test timeout.
15921
15922 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
15923
15924         [BZ #15536]
15925         * math/libm-test.inc (MAX_EXP): Remove
15926         (MIN_EXP): Define.
15927         (ulp): Use MIN_EXP - MANT_DIG.
15928         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
15929
15930 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
15931
15932         * po/be.po: Revert last change.
15933         * po/zh_CN.po: Likewise.
15934         * po/header.pot: Likewise.
15935
15936 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
15937
15938         * Makefile ($(common-objpfx)linkobj/libc.so): Define
15939         link-libc-deps to empty as target-specific variable.
15940         * Makerules (link-libc-args): New variable.
15941         (libc-for-link): Likewise.
15942         (link-libc-deps): Likewise.
15943         (lib%.so): Depend on $(link-libc-deps).  Link with
15944         $(link-libc-args).
15945         (build-module): Link with $(link-libc-args).
15946         (build-module-asneeded): Likewise.
15947         (build-module-helper-objlist): Filter out $(link-libc-deps) from
15948         list of objects.
15949         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
15950         target-specific variable.
15951         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
15952         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
15953         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
15954         libc.
15955         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
15956         libc and ld.so.
15957         ($(objpfx)libpcprofile.so): Likewise.
15958         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
15959         libc_nonshared.a.
15960         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
15961         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
15962         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
15963         $(link-libc-deps).
15964         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
15965         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
15966         * login/Makefile ($(objpfx)libutil.so): Likewise.
15967         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
15968         * math/Makefile ($(objpfx)libm.so): Likewise.
15969         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
15970         $(objpfx)libnsl.so): Define libc-for-link as target-specific
15971         variable instead of depending directly on libc.
15972         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
15973         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
15974         $(link-libc-deps).
15975         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
15976         libc.
15977         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
15978         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
15979         ($(objpfx)libanl.so): Likewise.
15980         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
15981         ld.so.
15982         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
15983         $(link-libc-deps).
15984         * sysdeps/i386/fpu/Makefile: Remove file.
15985         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
15986         ($(objpfx)libm.so): Remove dependency on ld.so.
15987
15988 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
15989
15990         [BZ # 15553]
15991         * nis/yp_xdr.c (XDRMAXNAME): Define.
15992         (XDRMAXRECORD): Define.
15993         (xdr_domainname): Use XDRMAXNAME.
15994         (xdr_mapname): Likewise.
15995         (xdr_peername): Likewise.
15996         (xdr_keydat): Use XDRMAXRECORD.
15997         (xdr_valdat): Likewise.
15998
15999 2013-05-30  Jeff Law  <law@redhat.com>
16000
16001         [BZ #14256]
16002         * manual/errno.texi (ESTALE): Update to account for more than
16003         just NFS file systems.
16004         * sysdeps/gnu/errlist.c: Regenerated.
16005
16006 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16007
16008         [BZ #15465]
16009         * elf/Makefile (tests): Add tst-null-argv.
16010         (modules-names):  Add tst-null-argv-lib.
16011         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
16012         (tst-null-argv-ENV): Set environment for tst-null-argv.
16013         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
16014         (RTLD_PROGNAME): New macro.
16015         * elf/tst-null-argv.c: New test case.
16016         * elf/tst-null-argv-lib.c: Library for test case.
16017         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
16018         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
16019         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
16020         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
16021         * elf/dl-init.c (call_init): Likewise.
16022         (_dl_init): Likewise.
16023         * elf/dl-load.c (print_search_path): Likewise.
16024         (_dl_map_object): Likewise.
16025         * elf/dl-lookup.c (do_lookup_x): Likewise.
16026         (add_dependency): Likewise.
16027         (_dl_lookup_symbol_x): Likewise.
16028         (_dl_debug_bindings): Likewise.
16029         * elf/dl-open.c (_dl_show_scope): Likewise.
16030         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
16031         * elf/dl-version.c (match_symbol): Likewise.
16032         (_dl_check_map_versions): Likewise.
16033         * elf/rtld.c (dl_main): Likewise.
16034         (print_unresolved): Use RTLD_PROGNAME.
16035         (print_missing_version): Likewise.
16036         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
16037         (elf_machine_rela): Likewise.
16038         * sysdeps/powerpc/powerpc32/dl-machine.c
16039         (__process_machine_rela): Likewise.
16040         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16041         Likewise.
16042         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16043         Likewise.
16044         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
16045         Likewise.
16046         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16047         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
16048         Likewise.
16049         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
16050         Likewise.
16051         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16052
16053 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
16054
16055         * po/be.po: Add descriptive title.
16056         * po/zh_CN.po: Likewise.
16057         * po/header.pot: Likewise.
16058
16059 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
16060
16061         * locale/programs/locarchive.c (create_archive): Inlucde fname in
16062         error message.
16063         (enlarge_archive): Likewise.
16064
16065 2013-05-28  Ben North  <ben@redfrontdoor.org>
16066
16067         * manual/arith.texi (frexp): It is the magnitude of the return
16068         value which lies in [0.5, 1), not the return value itself.
16069
16070 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16071
16072         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16073
16074 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
16075
16076         * stdio-common/bug26.c (main): Correct fscanf template.
16077
16078         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
16079         declare _dl_skip_args.
16080
16081         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
16082         Don't declare.
16083
16084         * manual/platform.texi: Add missing @end deftypefun.
16085
16086 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16087
16088         [BZ #15529]
16089         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
16090         bit of mantissa of 2^16382.
16091         * math/libm-test.inc (hypot_test_data): Add more tests.
16092
16093         * math/libm-test.inc: Add drem and pow10 to list of tested
16094         functions.
16095         (pow10_test): New function.
16096         (drem_test): Likewise.
16097         (drem_test_tonearest): Likewise.
16098         (drem_test_towardzero): Likewise.
16099         (drem_test_downward): Likewise.
16100         (drem_test_upward): Likewise.
16101         (main): Call the new functions.
16102
16103         * math/libm-test.inc (finite_test_data): Remove.
16104         (finite_test): Run tests from isfinite_test_data.
16105         (gamma_test_data): Remove.
16106         (gamma_test): Run tests from lgamma_test_data.
16107         * sysdeps/i386/fpu/libm-test-ulps: Update.
16108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16109
16110 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16111
16112         * manual/platform.texi: Add PowerPC PPR function set documentation.
16113         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
16114         implementation.
16115
16116 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
16117
16118         * math/libm-test.inc (MAX_EXP): Define.
16119         (ULPDIFF): Define.
16120         (ulp): New function.
16121         (check_float_internal): Use ULPDIFF.
16122         (cpow_test): Disable failing test.
16123         (check_ulp): Test ulp() implemetnation.
16124         (main): Call check_ulp before starting tests.
16125
16126 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
16127
16128         * math/gen-libm-test.pl (generate_testfile): Do not handle
16129         START_DATA and END_DATA.
16130         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
16131         END_DATA.
16132         (acos_tonearest_test_data): Likewise.
16133         (acos_towardzero_test_data): Likewise.
16134         (acos_downward_test_data): Likewise.
16135         (acos_upward_test_data): Likewise.
16136         (acosh_test_data): Likewise.
16137         (asin_test_data): Likewise.
16138         (asin_tonearest_test_data): Likewise.
16139         (asin_towardzero_test_data): Likewise.
16140         (asin_downward_test_data): Likewise.
16141         (asin_upward_test_data): Likewise.
16142         (asinh_test_data): Likewise.
16143         (atan_test_data): Likewise.
16144         (atanh_test_data): Likewise.
16145         (atan2_test_data): Likewise.
16146         (cabs_test_data): Likewise.
16147         (cacos_test_data): Likewise.
16148         (cacosh_test_data): Likewise.
16149         (carg_test_data): Likewise.
16150         (casin_test_data): Likewise.
16151         (casinh_test_data): Likewise.
16152         (catan_test_data): Likewise.
16153         (catanh_test_data): Likewise.
16154         (cbrt_test_data): Likewise.
16155         (ccos_test_data): Likewise.
16156         (ccosh_test_data): Likewise.
16157         (ceil_test_data): Likewise.
16158         (cexp_test_data): Likewise.
16159         (cimag_test_data): Likewise.
16160         (clog_test_data): Likewise.
16161         (clog10_test_data): Likewise.
16162         (conj_test_data): Likewise.
16163         (copysign_test_data): Likewise.
16164         (cos_test_data): Likewise.
16165         (cos_tonearest_test_data): Likewise.
16166         (cos_towardzero_test_data): Likewise.
16167         (cos_downward_test_data): Likewise.
16168         (cos_upward_test_data): Likewise.
16169         (cosh_test_data): Likewise.
16170         (cosh_tonearest_test_data): Likewise.
16171         (cosh_towardzero_test_data): Likewise.
16172         (cosh_downward_test_data): Likewise.
16173         (cosh_upward_test_data): Likewise.
16174         (cpow_test_data): Likewise.
16175         (cproj_test_data): Likewise.
16176         (creal_test_data): Likewise.
16177         (csin_test_data): Likewise.
16178         (csinh_test_data): Likewise.
16179         (csqrt_test_data): Likewise.
16180         (ctan_test_data): Likewise.
16181         (ctan_tonearest_test_data): Likewise.
16182         (ctan_towardzero_test_data): Likewise.
16183         (ctan_downward_test_data): Likewise.
16184         (ctan_upward_test_data): Likewise.
16185         (ctanh_test_data): Likewise.
16186         (ctanh_tonearest_test_data): Likewise.
16187         (ctanh_towardzero_test_data): Likewise.
16188         (ctanh_downward_test_data): Likewise.
16189         (ctanh_upward_test_data): Likewise.
16190         (erf_test_data): Likewise.
16191         (erfc_test_data): Likewise.
16192         (exp_test_data): Likewise.
16193         (exp_tonearest_test_data): Likewise.
16194         (exp_towardzero_test_data): Likewise.
16195         (exp_downward_test_data): Likewise.
16196         (exp_upward_test_data): Likewise.
16197         (exp10_test_data): Likewise.
16198         (exp2_test_data): Likewise.
16199         (expm1_test_data): Likewise.
16200         (fabs_test_data): Likewise.
16201         (fdim_test_data): Likewise.
16202         (finite_test_data): Likewise.
16203         (floor_test_data): Likewise.
16204         (fma_test_data): Likewise.
16205         (fma_towardzero_test_data): Likewise.
16206         (fma_downward_test_data): Likewise.
16207         (fma_upward_test_data): Likewise.
16208         (fmax_test_data): Likewise.
16209         (fmin_test_data): Likewise.
16210         (fmod_test_data): Likewise.
16211         (fpclassify_test_data): Likewise.
16212         (frexp_test_data): Likewise.
16213         (gamma_test_data): Likewise.
16214         (hypot_test_data): Likewise.
16215         (ilogb_test_data): Likewise.
16216         (isfinite_test_data): Likewise.
16217         (isgreater_test_data): Likewise.
16218         (isgreaterequal_test_data): Likewise.
16219         (isinf_test_data): Likewise.
16220         (isless_test_data): Likewise.
16221         (islessequal_test_data): Likewise.
16222         (islessgreater_test_data): Likewise.
16223         (isnan_test_data): Likewise.
16224         (isnormal_test_data): Likewise.
16225         (issignaling_test_data): Likewise.
16226         (isunordered_test_data): Likewise.
16227         (j0_test_data): Likewise.
16228         (j1_test_data): Likewise.
16229         (jn_test_data): Likewise.
16230         (ldexp_test_data): Likewise.
16231         (lgamma_test_data): Likewise.
16232         (lrint_test_data): Likewise.
16233         (lrint_tonearest_test_data): Likewise.
16234         (lrint_towardzero_test_data): Likewise.
16235         (lrint_downward_test_data): Likewise.
16236         (lrint_upward_test_data): Likewise.
16237         (llrint_test_data): Likewise.
16238         (llrint_tonearest_test_data): Likewise.
16239         (llrint_towardzero_test_data): Likewise.
16240         (llrint_downward_test_data): Likewise.
16241         (llrint_upward_test_data): Likewise.
16242         (log_test_data): Likewise.
16243         (log10_test_data): Likewise.
16244         (log1p_test_data): Likewise.
16245         (log2_test_data): Likewise.
16246         (logb_test_data): Likewise.
16247         (logb_downward_test_data): Likewise.
16248         (lround_test_data): Likewise.
16249         (llround_test_data): Likewise.
16250         (modf_test_data): Likewise.
16251         (nearbyint_test_data): Likewise.
16252         (nextafter_test_data): Likewise.
16253         (nexttoward_test_data): Likewise.
16254         (pow_test_data): Likewise.
16255         (pow_tonearest_test_data): Likewise.
16256         (pow_towardzero_test_data): Likewise.
16257         (pow_downward_test_data): Likewise.
16258         (pow_upward_test_data): Likewise.
16259         (remainder_test_data): Likewise.
16260         (remainder_tonearest_test_data): Likewise.
16261         (remainder_towardzero_test_data): Likewise.
16262         (remainder_downward_test_data): Likewise.
16263         (remainder_upward_test_data): Likewise.
16264         (remquo_test_data): Likewise.
16265         (rint_test_data): Likewise.
16266         (rint_tonearest_test_data): Likewise.
16267         (rint_towardzero_test_data): Likewise.
16268         (rint_downward_test_data): Likewise.
16269         (rint_upward_test_data): Likewise.
16270         (round_test_data): Likewise.
16271         (scalb_test_data): Likewise.
16272         (scalbn_test_data): Likewise.
16273         (scalbln_test_data): Likewise.
16274         (signbit_test_data): Likewise.
16275         (sin_test_data): Likewise.
16276         (sin_tonearest_test_data): Likewise.
16277         (sin_towardzero_test_data): Likewise.
16278         (sin_downward_test_data): Likewise.
16279         (sin_upward_test_data): Likewise.
16280         (sincos_test_data): Likewise.
16281         (sinh_test_data): Likewise.
16282         (sinh_tonearest_test_data): Likewise.
16283         (sinh_towardzero_test_data): Likewise.
16284         (sinh_downward_test_data): Likewise.
16285         (sinh_upward_test_data): Likewise.
16286         (sqrt_test_data): Likewise.
16287         (tan_test_data): Likewise.
16288         (tan_tonearest_test_data): Likewise.
16289         (tan_towardzero_test_data): Likewise.
16290         (tan_downward_test_data): Likewise.
16291         (tan_upward_test_data): Likewise.
16292         (tanh_test_data): Likewise.
16293         (tgamma_test_data): Likewise.
16294         (trunc_test_data): Likewise.
16295         (y0_test_data): Likewise.
16296         (y1_test_data): Likewise.
16297         (yn_test_data): Likewise.
16298         (significand_test_data): Likewise.
16299
16300         * math/gen-libm-test.pl (@functions): Remove variable.
16301         (generate_testfile): Don't handle START and END lines.
16302         * math/libm-test.inc (START): New macro.
16303         (END): Likewise.
16304         (END_COMPLEX): Likewise.
16305         (acos_test): Use END macro without arguments.
16306         (acos_test_tonearest): Likewise.
16307         (acos_test_towardzero): Likewise.
16308         (acos_test_downward): Likewise.
16309         (acos_test_upward): Likewise.
16310         (acosh_test): Likewise.
16311         (asin_test): Likewise.
16312         (asin_test_tonearest): Likewise.
16313         (asin_test_towardzero): Likewise.
16314         (asin_test_downward): Likewise.
16315         (asin_test_upward): Likewise.
16316         (asinh_test): Likewise.
16317         (atan_test): Likewise.
16318         (atanh_test): Likewise.
16319         (atan2_test): Likewise.
16320         (cabs_test): Likewise.
16321         (cacos_test): Use END_COMPLEX macro without arguments.
16322         (cacosh_test): Likewise.
16323         (carg_test): Use END macro without arguments.
16324         (casin_test): Use END_COMPLEX macro without arguments.
16325         (casinh_test): Likewise.
16326         (catan_test): Likewise.
16327         (catanh_test): Likewise.
16328         (cbrt_test): Use END macro without arguments.
16329         (ccos_test): Use END_COMPLEX macro without arguments.
16330         (ccosh_test): Likewise.
16331         (ceil_test): Use END macro without arguments.
16332         (cexp_test): Use END_COMPLEX macro without arguments.
16333         (cimag_test): Use END macro without arguments.
16334         (clog_test): Use END_COMPLEX macro without arguments.
16335         (clog10_test): Likewise.
16336         (conj_test): Likewise.
16337         (copysign_test): Use END macro without arguments.
16338         (cos_test): Likewise.
16339         (cos_test_tonearest): Likewise.
16340         (cos_test_towardzero): Likewise.
16341         (cos_test_downward): Likewise.
16342         (cos_test_upward): Likewise.
16343         (cosh_test): Likewise.
16344         (cosh_test_tonearest): Likewise.
16345         (cosh_test_towardzero): Likewise.
16346         (cosh_test_downward): Likewise.
16347         (cosh_test_upward): Likewise.
16348         (cpow_test): Use END_COMPLEX macro without arguments.
16349         (cproj_test): Likewise.
16350         (creal_test): Use END macro without arguments.
16351         (csin_test): Use END_COMPLEX macro without arguments.
16352         (csinh_test): Likewise.
16353         (csqrt_test): Likewise.
16354         (ctan_test): Likewise.
16355         (ctan_test_tonearest): Likewise.
16356         (ctan_test_towardzero): Likewise.
16357         (ctan_test_downward): Likewise.
16358         (ctan_test_upward): Likewise.
16359         (ctanh_test): Likewise.
16360         (ctanh_test_tonearest): Likewise.
16361         (ctanh_test_towardzero): Likewise.
16362         (ctanh_test_downward): Likewise.
16363         (ctanh_test_upward): Likewise.
16364         (erf_test): Use END macro without arguments.
16365         (erfc_test): Likewise.
16366         (exp_test): Likewise.
16367         (exp_test_tonearest): Likewise.
16368         (exp_test_towardzero): Likewise.
16369         (exp_test_downward): Likewise.
16370         (exp_test_upward): Likewise.
16371         (exp10_test): Likewise.
16372         (exp2_test): Likewise.
16373         (expm1_test): Likewise.
16374         (fabs_test): Likewise.
16375         (fdim_test): Likewise.
16376         (finite_test): Likewise.
16377         (floor_test): Likewise.
16378         (fma_test): Likewise.
16379         (fma_test_towardzero): Likewise.
16380         (fma_test_downward): Likewise.
16381         (fma_test_upward): Likewise.
16382         (fmax_test): Likewise.
16383         (fmin_test): Likewise.
16384         (fmod_test): Likewise.
16385         (fpclassify_test): Likewise.
16386         (frexp_test): Likewise.
16387         (gamma_test): Likewise.
16388         (hypot_test): Likewise.
16389         (ilogb_test): Likewise.
16390         (isfinite_test): Likewise.
16391         (isgreater_test): Likewise.
16392         (isgreaterequal_test): Likewise.
16393         (isinf_test): Likewise.
16394         (isless_test): Likewise.
16395         (islessequal_test): Likewise.
16396         (islessgreater_test): Likewise.
16397         (isnan_test): Likewise.
16398         (isnormal_test): Likewise.
16399         (issignaling_test): Likewise.
16400         (isunordered_test): Likewise.
16401         (j0_test): Likewise.
16402         (j1_test): Likewise.
16403         (jn_test): Likewise.
16404         (ldexp_test): Likewise.
16405         (lgamma_test): Likewise.
16406         (lrint_test): Likewise.
16407         (lrint_test_tonearest): Likewise.
16408         (lrint_test_towardzero): Likewise.
16409         (lrint_test_downward): Likewise.
16410         (lrint_test_upward): Likewise.
16411         (llrint_test): Likewise.
16412         (llrint_test_tonearest): Likewise.
16413         (llrint_test_towardzero): Likewise.
16414         (llrint_test_downward): Likewise.
16415         (llrint_test_upward): Likewise.
16416         (log_test): Likewise.
16417         (log10_test): Likewise.
16418         (log1p_test): Likewise.
16419         (log2_test): Likewise.
16420         (logb_test): Likewise.
16421         (logb_test_downward): Likewise.
16422         (lround_test): Likewise.
16423         (llround_test): Likewise.
16424         (modf_test): Likewise.
16425         (nearbyint_test): Likewise.
16426         (nextafter_test): Likewise.
16427         (nexttoward_test): Likewise.
16428         (pow_test): Likewise.
16429         (pow_test_tonearest): Likewise.
16430         (pow_test_towardzero): Likewise.
16431         (pow_test_downward): Likewise.
16432         (pow_test_upward): Likewise.
16433         (remainder_test): Likewise.
16434         (remainder_test_tonearest): Likewise.
16435         (remainder_test_towardzero): Likewise.
16436         (remainder_test_downward): Likewise.
16437         (remainder_test_upward): Likewise.
16438         (remquo_test): Likewise.
16439         (rint_test): Likewise.
16440         (rint_test_tonearest): Likewise.
16441         (rint_test_towardzero): Likewise.
16442         (rint_test_downward): Likewise.
16443         (rint_test_upward): Likewise.
16444         (round_test): Likewise.
16445         (scalb_test): Likewise.
16446         (scalbn_test): Likewise.
16447         (scalbln_test): Likewise.
16448         (signbit_test): Likewise.
16449         (sin_test): Likewise.
16450         (sin_test_tonearest): Likewise.
16451         (sin_test_towardzero): Likewise.
16452         (sin_test_downward): Likewise.
16453         (sin_test_upward): Likewise.
16454         (sincos_test): Likewise.
16455         (sinh_test): Likewise.
16456         (sinh_test_tonearest): Likewise.
16457         (sinh_test_towardzero): Likewise.
16458         (sinh_test_downward): Likewise.
16459         (sinh_test_upward): Likewise.
16460         (sqrt_test): Likewise.
16461         (tan_test): Likewise.
16462         (tan_test_tonearest): Likewise.
16463         (tan_test_towardzero): Likewise.
16464         (tan_test_downward): Likewise.
16465         (tan_test_upward): Likewise.
16466         (tanh_test): Likewise.
16467         (tgamma_test): Likewise.
16468         (trunc_test): Likewise.
16469         (y0_test): Likewise.
16470         (y1_test): Likewise.
16471         (yn_test): Likewise.
16472         (significand_test): Likewise.
16473
16474 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
16475
16476         [BZ #15381]
16477         * libio/genops.c (_IO_no_init): Initialize wide struct info.
16478
16479 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
16480
16481         [BZ #14894]
16482         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
16483         __ppc_mdoio and __ppc_mdoom.
16484         * manual/platform.texi: Document new functions __ppc_yield,
16485         __ppc_mdoio and __ppc_mdoom.
16486
16487 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
16488
16489         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
16490         (main): Mention "tls" pseudo-hwcap is legacy.
16491         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
16492
16493 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16494
16495         * math/gen-libm-test.pl (parse_args): Output only string of
16496         arguments as text for test name, not full call or descriptions of
16497         tests for extra outputs.
16498         (generate_testfile): Do not pass function name to parse_args.
16499         Generate this_func variable from START.
16500         * math/libm-test.inc (struct test_f_f_data): Rename test_name
16501         field to arg_str.
16502         (struct test_ff_f_data): Likewise.
16503         (test_ff_f_data_nexttoward): Likewise.
16504         (struct test_fi_f_data): Likewise.
16505         (struct test_fl_f_data): Likewise.
16506         (struct test_if_f_data): Likewise.
16507         (struct test_fff_f_data): Likewise.
16508         (struct test_c_f_data): Likewise.
16509         (struct test_f_f1_data): Likewise.  Remove field extra_name.
16510         (struct test_fF_f1_data): Likewise.
16511         (struct test_ffI_f1_data): Likewise.
16512         (struct test_c_c_data): Rename test_name field to arg_str.
16513         (struct test_cc_c_data): Likewise.
16514         (struct test_f_i_data): Likewise.
16515         (struct test_ff_i_data): Likewise.
16516         (struct test_f_l_data): Likewise.
16517         (struct test_f_L_data): Likewise.
16518         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
16519         and extra2_name.
16520         (COMMON_TEST_SETUP): New macro.
16521         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
16522         (COMMON_TEST_CLEANUP): Likewise.
16523         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
16524         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
16525         macros.
16526         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
16527         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
16528         macros.
16529         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
16530         (RUN_TEST_fff_f): Take argument string.  Call new setup and
16531         cleanup macros.
16532         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
16533         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
16534         macros.
16535         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
16536         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
16537         macros.
16538         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16539         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
16540         cleanup macros.
16541         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16542         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
16543         cleanup macros.
16544         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16545         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
16546         cleanup macros.
16547         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16548         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
16549         macros.
16550         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
16551         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
16552         macros.
16553         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
16554         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
16555         macros.
16556         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
16557         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
16558         cleanup macros.
16559         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
16560         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
16561         cleanup macros.
16562         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
16563         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
16564         macros.
16565         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
16566         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
16567         cleanup macros.
16568         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
16569         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
16570         macros.
16571         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
16572         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
16573         macros.
16574         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
16575         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
16576         cleanup macros.
16577         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
16578
16579 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16580
16581         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
16582         to _sifields.sigfault.
16583         (si_addr_lsb): Define new macro.
16584         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
16585         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16586         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
16587
16588 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
16589
16590         [BZ #15441]
16591         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
16592         returns -1.
16593         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
16594         null return -1.
16595         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
16596         loading the domain.
16597
16598 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
16599
16600         * math/gen-libm-test.pl (parse_args): Do not include expected
16601         result in test name.
16602         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
16603         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16604         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16605         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16606         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16607         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16608
16609 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
16610
16611         * benchtests/Makefile: Sort function entries.
16612
16613         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
16614         tanh, asinh, acosh, atanh.
16615         * benchtests/acos-inputs: New file.
16616         * benchtests/acosh-inputs: New file.
16617         * benchtests/asin-inputs: New file.
16618         * benchtests/asinh-inputs: New file.
16619         * benchtests/atanh-inputs: New file.
16620         * benchtests/cosh-inputs: New file.
16621         * benchtests/log-inputs: New file.
16622         * benchtests/sinh-inputs: New file.
16623         * benchtests/tanh-inputs: New file.
16624
16625 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
16626
16627         [BZ #15339]
16628         * posix/tst-getaddrinfo4.c: New test.
16629         * posix/Makefile (tests): Add it.
16630
16631 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16632
16633         [BZ #15339]
16634         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
16635         when no services were used.
16636         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
16637         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
16638
16639 2013-05-21  Andreas Schwab  <schwab@suse.de>
16640
16641         [BZ #15014]
16642         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
16643         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
16644         successful.
16645         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
16646         redundant variable declarations and reallocation of buffer when
16647         parsing as IPv6 address.  Always set NSS status when called from
16648         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
16649         buffer too small.  Correct computation of needed size.
16650         * nss/Makefile (tests): Add test-digits-dots.
16651         * nss/test-digits-dots.c: New test.
16652
16653 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16654
16655         * benchtests/Makefile: Remove instructions for adding
16656         benchmark tests.
16657         * benchtests/README: New file to explain how to execute and
16658         enhance the benchmark tests.
16659
16660 2013-05-21  Andreas Schwab  <schwab@suse.de>
16661
16662         [BZ #15493]
16663         * setjmp/Makefile (tests): Add tst-sigsetjmp.
16664         * setjmp/tst-sigsetjmp.c: New test.
16665
16666 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16667
16668         * sysdeps/x86_64/memset.S (memset): New implementation.
16669         (__bzero): Likewise.
16670         (__memset_tail): New function.
16671
16672 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
16673
16674         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
16675         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
16676         __memcpy_sse2_unaligned ifunc selection.
16677         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
16678         Add memcpy-sse2-unaligned.S.
16679         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16680         Add: __memcpy_sse2_unaligned.
16681
16682 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
16683
16684         [BZ #15490]
16685         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
16686         math_force_eval before restoring floating-point envrionment.
16687         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
16688         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
16689         Likewise.
16690         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
16691         <math_private.h>.
16692         (__nearbyintl): Use math_force_eval before restoring
16693         floating-point environment.
16694         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
16695
16696         * math/gen-libm-test.pl (special_functions): Remove.
16697         (parse_args): Don't handle TEST_extra.  Handle functions with no
16698         return value.
16699         * math/libm-test.inc (struct test_sincos_data): Replace with
16700         struct test_fFF_11_data.
16701         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
16702         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
16703         (sincos_test_data): Change element type to struct
16704         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
16705         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
16706         RUN_TEST_LOOP_sincos.
16707         * math/README.libm-test: Don't mention special handling of
16708         individual functions.
16709         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
16710         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16711         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16712         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
16713         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16715
16716         * math/gen-libm-test.pl (get_variable): Remove function.
16717         (parse_args): Don't show pointer parameters to call in test
16718         names.  Use "extra output N" in test names for extra outputs
16719         rather than naming variables.
16720
16721 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
16722
16723         [BZ #15488]
16724         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
16725         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
16726         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
16727         double tests.
16728         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
16729         disable.
16730         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
16731         check_long_double.
16732
16733         * math/gen-libm-test.pl (@tests): Remove variable.
16734         ($count): Likewise.
16735         (new_test): Remove function.
16736         (show_exceptions): New function.
16737         (special_functions): Use show_exceptions instead of new_test.
16738         (parse_args): Likewise.
16739         (generate_testfile): Pass only function name in generated call to
16740         print_max_error or print_complex_max_error.
16741         (get_ulps): Do not handle complex tests specially.
16742         (output_test): Rename to ...
16743         (get_all_ulps_for_test): ... this.  Return a string rather than
16744         printing to a file.  Require ulps to be present.
16745         (output_ulps): Generate arrays rather than #defines.
16746         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
16747         (struct ulp_data): New type.
16748         (BUILD_COMPLEX_ULP): Remove macro.
16749         (compare_ulp_data): New function.
16750         (find_ulps): Likewise.
16751         (find_test_ulps): Likewise.
16752         (find_function_ulps): Likewise.
16753         (find_complex_function_ulps): Likewise.
16754         (print_max_error): Determine allowed ulps using
16755         find_function_ulps.
16756         (print_complex_max_error): Determine allowed ulps using
16757         find_complex_function_ulps.
16758         (check_float_internal): Determine max ulps using find_test_ulps.
16759         (check_float): Do not take max_ulp parameter.  Update call to
16760         check_float_internal.
16761         (check_complex): Likewise.
16762         (check_int): Do not take max_ulp parameter.
16763         (check_long): Likewise.
16764         (check_bool): Likewise.
16765         (check_longlong): Likewise.
16766         (struct test_f_f_data): Remove max_ulp field.
16767         (struct test_ff_f_data): Likewise.
16768         (struct test_ff_f_data_nexttoward): Likewise.
16769         (struct test_fi_f_data): Likewise.
16770         (struct test_fl_f_data): Likewise.
16771         (struct test_if_f_data): Likewise.
16772         (struct test_fff_f_data): Likewise.
16773         (struct test_c_f_data): Likewise.
16774         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
16775         (struct test_fF_f1_data): Likewise.
16776         (struct test_ffI_f1_data): Likewise.
16777         (struct test_c_c_data): Remove max_ulp field.
16778         (struct test_cc_c_data): Likewise.
16779         (struct test_f_i_data): Likewise.
16780         (struct test_ff_i_data): Likewise.
16781         (struct test_f_l_data): Likewise.
16782         (struct test_f_L_data): Likewise.
16783         (struct test_sincos_data): Likewise.
16784         (RUN_TEST_f_f): Do not handle ulps.
16785         (RUN_TEST_LOOP_f_f): Likewise.
16786         (RUN_TEST_2_f): Likewise.
16787         (RUN_TEST_LOOP_2_f): Likewise.
16788         (RUN_TEST_fff_f): Likewise.
16789         (RUN_TEST_LOOP_fff_f): Likewise.
16790         (RUN_TEST_c_f): Likewise.
16791         (RUN_TEST_LOOP_c_f): Likewise.
16792         (RUN_TEST_f_f1): Likewise.
16793         (RUN_TEST_LOOP_f_f1): Likewise.
16794         (RUN_TEST_fF_f1): Likewise.
16795         (RUN_TEST_LOOP_fF_f1): Likewise.
16796         (RUN_TEST_fI_f1): Likewise.
16797         (RUN_TEST_LOOP_fI_f1): Likewise.
16798         (RUN_TEST_ffI_f1): Likewise.
16799         (RUN_TEST_LOOP_ffI_f1): Likewise.
16800         (RUN_TEST_c_c): Likewise.
16801         (RUN_TEST_LOOP_c_c): Likewise.
16802         (RUN_TEST_cc_c): Likewise.
16803         (RUN_TEST_LOOP_cc_c): Likewise.
16804         (RUN_TEST_f_i): Likewise.
16805         (RUN_TEST_LOOP_f_i): Likewise.
16806         (RUN_TEST_f_i_tg): Likewise.
16807         (RUN_TEST_LOOP_f_i_tg): Likewise.
16808         (RUN_TEST_ff_i_tg): Likewise.
16809         (RUN_TEST_LOOP_ff_i_tg): Likewise.
16810         (RUN_TEST_f_b): Likewise.
16811         (RUN_TEST_LOOP_f_b): Likewise.
16812         (RUN_TEST_f_b_tg): Likewise.
16813         (RUN_TEST_LOOP_f_b_tg): Likewise.
16814         (RUN_TEST_f_l): Likewise.
16815         (RUN_TEST_LOOP_f_l): Likewise.
16816         (RUN_TEST_f_L): Likewise.
16817         (RUN_TEST_LOOP_f_L): Likewise.
16818         (RUN_TEST_sincos): Likewise.
16819         (RUN_TEST_LOOP_sincos): Likewise.
16820
16821 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
16822
16823         [BZ #15480]
16824         [BZ #15485]
16825         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
16826         main case of finite arguments, set rounding mode to FE_TONEAREST
16827         and discard exceptions.
16828         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
16829         exceptions.
16830         (remainder_tonearest_test_data): New variable.
16831         (remainder_test_tonearest): New function.
16832         (remainder_towardzero_test_data): New variable.
16833         (remainder_test_towardzero): New function.
16834         (remainder_downward_test_data): New variable.
16835         (remainder_test_downward): New function.
16836         (remainder_upward_test_data): New variable.
16837         (remainder_test_upward): New function.
16838         (main): Call the new test functions.
16839
16840         * math/libm-test.inc (struct test_f_f1_data): Remove field
16841         extra_init.
16842         (struct test_fF_f1_data): Likewise.
16843         (struct test_ffI_f1_data): Likewise.
16844         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
16845         based on value of EXTRA_EXPECTED.
16846         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
16847         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
16848         EXTRA_VAR based on value of EXTRA_EXPECTED.
16849         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
16850         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
16851         EXTRA_VAR based on value of EXTRA_EXPECTED.
16852         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
16853         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
16854         EXTRA_VAR based on value of EXTRA_EXPECTED.
16855         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
16856         * math/gen-libm-test.pl (parse_args): Don't output initializers
16857         for extra output values.
16858
16859         * math/libm-test.inc (check_int): Expect result to be exactly
16860         equal to expected value and do not handle ulps.
16861         (check_long): Likewise.
16862         (check_longlong): Likewise.
16863
16864         * math/libm-test.inc (ceil_test_data): Test for "inexact"
16865         exceptions.
16866         (cimag_test_data): Likewise.
16867         (conj_test_data): Likewise.
16868         (copysign_test_data): Likewise.
16869         (cproj_test_data): Likewise.
16870         (creal_test_data): Likewise.
16871         (fabs_test_data): Likewise.
16872         (fdim_test_data): Likewise.
16873         (finite_test_data): Likewise.
16874         (floor_test_data): Likewise.
16875         (fmax_test_data): Likewise.
16876         (fmin_test_data): Likewise.
16877         (fmod_test_data): Likewise.
16878         (fpclassify_test_data): Likewise.
16879         (frexp_test_data): Likewise.
16880         (ilogb_test_data): Likewise.
16881         (isfinite_test_data): Likewise.
16882         (isgreater_test_data): Likewise.
16883         (isgreaterequal_test_data): Likewise.
16884         (isinf_test_data): Likewise.
16885         (isless_test_data): Likewise.
16886         (islessequal_test_data): Likewise.
16887         (islessgreater_test_data): Likewise.
16888         (isnan_test_data): Likewise.
16889         (isnormal_test_data): Likewise.
16890         (issignaling_test_data): Likewise.
16891         (isunordered_test_data): Likewise.
16892         (ldexp_test_data): Likewise.
16893         (lrint_test_data): Likewise.
16894         (lrint_test_data) [TEST_FLOAT]: Disable one test.
16895         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
16896         (lrint_tonearest_test_data): Test for "inexact" exceptions.
16897         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
16898         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
16899         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
16900         test input.
16901         (lrint_towardzero_test_data): Test for "inexact" exceptions.
16902         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
16903         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
16904         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
16905         that test input.
16906         (lrint_downward_test_data): Test for "inexact" exceptions.
16907         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
16908         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
16909         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
16910         test input.
16911         (lrint_upward_test_data): Test for "inexact" exceptions.
16912         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
16913         test input.
16914         (llrint_test_data): Test for "inexact" exceptions.
16915         (llrint_test_data) [TEST_FLOAT]: Disable one test.
16916         (llrint_tonearest_test_data): Test for "inexact" exceptions.
16917         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
16918         (llrint_towardzero_test_data): Test for "inexact" exceptions.
16919         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
16920         (llrint_downward_test_data): Test for "inexact" exceptions.
16921         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
16922         (llrint_upward_test_data): Test for "inexact" exceptions.
16923         (logb_test_data): Likewise.
16924         (logb_downward_test_data): Likewise.
16925         (nextafter_test_data): Likewise.
16926         (nexttoward_test_data): Likewise.
16927         (remainder_test_data): Likewise.
16928         (remquo_test_data): Likewise.
16929         (scalbn_test_data): Likewise.
16930         (scalbln_test_data): Likewise.
16931         (signbit_test_data): Likewise.
16932         (sqrt_test_data): Likewise.
16933         (significand_test_data): Likewise.
16934
16935 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
16936
16937         [BZ #15424]
16938         * benchtests/bench-modf.c (struct args): Mark arg0 as
16939         volatile.
16940         * scripts/bench.pl: Mark members of struct args as volatile.
16941
16942 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16943
16944         [BZ # 15497]
16945         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
16946         negative infinity on POWER6 or lower.
16947         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
16948
16949 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
16950
16951         [BZ #15442]
16952         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
16953         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
16954         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
16955         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
16956         (_FP_SETQNAN): New macro.
16957         (_FP_SETQNAN_SEMIRAW): Likewise.
16958         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
16959         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
16960         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
16961         (FP_EXTEND): Use _FP_FRAC_SNANP.
16962         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
16963         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
16964         into account.
16965         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
16966         New macro.
16967         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
16968         Likewise.
16969
16970 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
16971
16972         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
16973         with DIVIDE_BY_ZERO_EXCEPTION.
16974         (gamma_test_data): Likewise.
16975         (lgamma_test_data): Likewise.
16976         (log_test_data): Likewise.
16977         (log10_test_data): Likewise.
16978         (log2_test_data): Likewise.
16979         (tgamma_test_data): Likewise.
16980
16981         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
16982         (acos_test_tonearest): Likewise.
16983         (acos_test_towardzero): Likewise.
16984         (acos_test_downward): Likewise.
16985         (acos_test_upward): Likewise.
16986         (acosh_test): Likewise.
16987         (asin_test): Likewise.
16988         (asin_test_tonearest): Likewise.
16989         (asin_test_towardzero): Likewise.
16990         (asin_test_downward): Likewise.
16991         (asin_test_upward): Likewise.
16992         (asinh_test): Likewise.
16993         (atan_test): Likewise.
16994         (atanh_test): Likewise.
16995         (atan2_test): Likewise.
16996         (cabs_test): Likewise.
16997         (cacos_test): Likewise.
16998         (cacosh_test): Likewise.
16999         (casin_test): Likewise.
17000         (casinh_test): Likewise.
17001         (catan_test): Likewise.
17002         (catanh_test): Likewise.
17003         (cbrt_test): Likewise.
17004         (ccos_test): Likewise.
17005         (ccosh_test): Likewise.
17006         (cexp_test): Likewise.
17007         (clog_test): Likewise.
17008         (clog10_test): Likewise.
17009         (cos_test): Likewise.
17010         (cos_test_tonearest): Likewise.
17011         (cos_test_towardzero): Likewise.
17012         (cos_test_downward): Likewise.
17013         (cos_test_upward): Likewise.
17014         (cosh_test): Likewise.
17015         (cosh_test_tonearest): Likewise.
17016         (cosh_test_towardzero): Likewise.
17017         (cosh_test_downward): Likewise.
17018         (cosh_test_upward): Likewise.
17019         (cpow_test): Likewise.
17020         (csin_test): Likewise.
17021         (csinh_test): Likewise.
17022         (csqrt_test): Likewise.
17023         (ctan_test): Likewise.
17024         (ctan_test_tonearest): Likewise.
17025         (ctan_test_towardzero): Likewise.
17026         (ctan_test_downward): Likewise.
17027         (ctan_test_upward): Likewise.
17028         (ctanh_test): Likewise.
17029         (ctanh_test_tonearest): Likewise.
17030         (ctanh_test_towardzero): Likewise.
17031         (ctanh_test_downward): Likewise.
17032         (ctanh_test_upward): Likewise.
17033         (erf_test): Likewise.
17034         (erfc_test): Likewise.
17035         (exp_test): Likewise.
17036         (exp_test_tonearest): Likewise.
17037         (exp_test_towardzero): Likewise.
17038         (exp_test_downward): Likewise.
17039         (exp_test_upward): Likewise.
17040         (exp10_test): Likewise.
17041         (exp2_test): Likewise.
17042         (expm1_test): Likewise.
17043         (fmod_test): Likewise.
17044         (gamma_test): Likewise.
17045         (hypot_test): Likewise.
17046         (j0_test): Likewise.
17047         (j1_test): Likewise.
17048         (jn_test): Likewise.
17049         (lgamma_test): Likewise.
17050         (log_test): Likewise.
17051         (log10_test): Likewise.
17052         (log1p_test): Likewise.
17053         (log2_test): Likewise.
17054         (logb_test_downward): Likewise.
17055         (pow_test): Likewise.
17056         (pow_test_tonearest): Likewise.
17057         (pow_test_towardzero): Likewise.
17058         (pow_test_downward): Likewise.
17059         (pow_test_upward): Likewise.
17060         (remainder_test): Likewise.
17061         (remquo_test): Likewise.
17062         (sin_test): Likewise.
17063         (sin_test_tonearest): Likewise.
17064         (sin_test_towardzero): Likewise.
17065         (sin_test_downward): Likewise.
17066         (sin_test_upward): Likewise.
17067         (sincos_test): Likewise.
17068         (sinh_test): Likewise.
17069         (sinh_test_tonearest): Likewise.
17070         (sinh_test_towardzero): Likewise.
17071         (sinh_test_downward): Likewise.
17072         (sinh_test_upward): Likewise.
17073         (sqrt_test): Likewise.
17074         (tan_test): Likewise.
17075         (tan_test_tonearest): Likewise.
17076         (tan_test_towardzero): Likewise.
17077         (tan_test_downward): Likewise.
17078         (tan_test_upward): Likewise.
17079         (tanh_test): Likewise.
17080         (tgamma_test): Likewise.
17081         (y0_test): Likewise.
17082         (y1_test): Likewise.
17083         (yn_test): Likewise.
17084
17085         * math/gen-libm-test.pl (adjust_arg): Remove function.
17086         (special_function): Remove argument $in_func.  Only handle
17087         generating output for tables of tests, not inside functions.
17088         (parse_args): Likewise.
17089         (generate_testfile): Remove variable $in_func.  Update call to
17090         parse_args.
17091         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
17092         (MINUS_ZERO_INIT): Rename macro to minus_zero.
17093         (PLUS_INFTY_INIT): Rename macro to plus_infty.
17094         (MINUS_INFTY_INIT): Rename macro to minus_infty.
17095         (QNAN_VALUE_INIT): Rename macro to qnan_value.
17096         (MAX_VALUE_INIT): Rename macro to max_value.
17097         (MIN_VALUE_INIT): Rename macro to min_value.
17098         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
17099         (plus_zero): Remove variable.
17100         (minus_zero): Likewise.
17101         (plus_infty): Likewise.
17102         (minus_infty): Likewise.
17103         (qnan_value): Likewise.
17104         (max_value): Likewise.
17105         (min_value): Likewise.
17106         (min_subnorm_value): Likewise.
17107
17108 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17109
17110         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
17111         uint64_t or uint32_t usage.
17112         * crypt/sha256-block.c: Likewise.
17113         * crypt/sha256-crypt.c: Likewise.
17114         * crypt/sha256.c: Likewise.
17115         * crypt/sha512-block.c: Likewise.
17116         * crypt/sha512-crypt.c: Likewise.
17117         * crypt/sha512.c: Likewise.
17118         * debug/backtrace-tst.c: Likewise.
17119         * debug/pcprofiledump.c: Likewise.
17120         * elf/cache.c: Likewise.
17121         * elf/dl-cache.c: Likewise.
17122         * elf/dl-misc.c: Likewise.
17123         * elf/dl-profile.c: Likewise.
17124         * elf/dl-support.c: Likewise.
17125         * elf/ldconfig.c: Likewise.
17126         * elf/sprof.c: Likewise.
17127         * iconv/dummy-repertoire.c: Likewise.
17128         * iconv/iconv_charmap.c: Likewise.
17129         * iconv/skeleton.c: Likewise.
17130         * iconvdata/8bit-generic.c: Likewise.
17131         * iconvdata/cp737.h: Likewise.
17132         * iconvdata/cp775.h: Likewise.
17133         * iconvdata/ibm1008.h: Likewise.
17134         * iconvdata/ibm1025.h: Likewise.
17135         * iconvdata/ibm1046.h: Likewise.
17136         * iconvdata/ibm1097.h: Likewise.
17137         * iconvdata/ibm1112.h: Likewise.
17138         * iconvdata/ibm1122.h: Likewise.
17139         * iconvdata/ibm1123.h: Likewise.
17140         * iconvdata/ibm1124.h: Likewise.
17141         * iconvdata/ibm1129.h: Likewise.
17142         * iconvdata/ibm1130.h: Likewise.
17143         * iconvdata/ibm1132.h: Likewise.
17144         * iconvdata/ibm1133.h: Likewise.
17145         * iconvdata/ibm1137.h: Likewise.
17146         * iconvdata/ibm1140.h: Likewise.
17147         * iconvdata/ibm1141.h: Likewise.
17148         * iconvdata/ibm1142.h: Likewise.
17149         * iconvdata/ibm1143.h: Likewise.
17150         * iconvdata/ibm1144.h: Likewise.
17151         * iconvdata/ibm1145.h: Likewise.
17152         * iconvdata/ibm1146.h: Likewise.
17153         * iconvdata/ibm1147.h: Likewise.
17154         * iconvdata/ibm1148.h: Likewise.
17155         * iconvdata/ibm1149.h: Likewise.
17156         * iconvdata/ibm1153.h: Likewise.
17157         * iconvdata/ibm1154.h: Likewise.
17158         * iconvdata/ibm1155.h: Likewise.
17159         * iconvdata/ibm1156.h: Likewise.
17160         * iconvdata/ibm1157.h: Likewise.
17161         * iconvdata/ibm1158.h: Likewise.
17162         * iconvdata/ibm1160.h: Likewise.
17163         * iconvdata/ibm1161.h: Likewise.
17164         * iconvdata/ibm1162.h: Likewise.
17165         * iconvdata/ibm1163.h: Likewise.
17166         * iconvdata/ibm1164.h: Likewise.
17167         * iconvdata/ibm1166.h: Likewise.
17168         * iconvdata/ibm1167.h: Likewise.
17169         * iconvdata/ibm12712.h: Likewise.
17170         * iconvdata/ibm1390.h: Likewise.
17171         * iconvdata/ibm1399.h: Likewise.
17172         * iconvdata/ibm16804.h: Likewise.
17173         * iconvdata/ibm4517.h: Likewise.
17174         * iconvdata/ibm4899.h: Likewise.
17175         * iconvdata/ibm4909.h: Likewise.
17176         * iconvdata/ibm4971.h: Likewise.
17177         * iconvdata/ibm5347.h: Likewise.
17178         * iconvdata/ibm803.h: Likewise.
17179         * iconvdata/ibm856.h: Likewise.
17180         * iconvdata/ibm901.h: Likewise.
17181         * iconvdata/ibm902.h: Likewise.
17182         * iconvdata/ibm9030.h: Likewise.
17183         * iconvdata/ibm9066.h: Likewise.
17184         * iconvdata/ibm921.h: Likewise.
17185         * iconvdata/ibm922.h: Likewise.
17186         * iconvdata/ibm9448.h: Likewise.
17187         * iconvdata/isiri-3342.h: Likewise.
17188         * iconvdata/jis0201.h: Likewise.
17189         * include/link.h: Likewise.
17190         * include/netdb.h: Likewise.
17191         * inet/check_native.c: Likewise.
17192         * inet/check_pf.c: Likewise.
17193         * inet/getipv4sourcefilter.c: Likewise.
17194         * inet/getnameinfo.c: Likewise.
17195         * inet/getsourcefilter.c: Likewise.
17196         * inet/htonl.c: Likewise.
17197         * inet/setipv4sourcefilter.c: Likewise.
17198         * inet/setsourcefilter.c: Likewise.
17199         * inet/test-inet6_opt.c: Likewise.
17200         * inet/tst-network.c: Likewise.
17201         * locale/C-collate.c: Likewise.
17202         * locale/C-ctype.c: Likewise.
17203         * locale/C-time.c: Likewise.
17204         * locale/C-translit.h: Likewise.
17205         * locale/loadarchive.c: Likewise.
17206         * locale/programs/3level.h: Likewise.
17207         * locale/programs/charmap.c: Likewise.
17208         * locale/programs/charmap.h: Likewise.
17209         * locale/programs/ld-address.c: Likewise.
17210         * locale/programs/ld-collate.c: Likewise.
17211         * locale/programs/ld-ctype.c: Likewise.
17212         * locale/programs/ld-identification.c: Likewise.
17213         * locale/programs/ld-measurement.c: Likewise.
17214         * locale/programs/ld-messages.c: Likewise.
17215         * locale/programs/ld-monetary.c: Likewise.
17216         * locale/programs/ld-name.c: Likewise.
17217         * locale/programs/ld-numeric.c: Likewise.
17218         * locale/programs/ld-paper.c: Likewise.
17219         * locale/programs/ld-telephone.c: Likewise.
17220         * locale/programs/ld-time.c: Likewise.
17221         * locale/programs/linereader.c: Likewise.
17222         * locale/programs/locale.c: Likewise.
17223         * locale/programs/locarchive.c: Likewise.
17224         * locale/programs/locfile.h: Likewise.
17225         * locale/programs/repertoire.c: Likewise.
17226         * locale/programs/simple-hash.c: Likewise.
17227         * locale/programs/simple-hash.h: Likewise.
17228         * malloc/memusage.c: Likewise.
17229         * malloc/memusagestat.c: Likewise.
17230         * nis/nis_defaults.c: Likewise.
17231         * nis/nis_hash.c: Likewise.
17232         * nis/nis_print.c: Likewise.
17233         * nis/nis_xdr.c: Likewise.
17234         * nscd/connections.c: Likewise.
17235         * nscd/hstcache.c: Likewise.
17236         * nscd/nscd_gethst_r.c: Likewise.
17237         * nscd/nscd_getserv_r.c: Likewise.
17238         * nscd/nscd_helper.c: Likewise.
17239         * nscd/servicescache.c: Likewise.
17240         * nss/makedb.c: Likewise.
17241         * nss/nss_db/db-XXX.c: Likewise.
17242         * nss/nss_db/db-initgroups.c: Likewise.
17243         * nss/nss_db/db-netgrp.c: Likewise.
17244         * nss/nss_files/files-network.c: Likewise.
17245         * nss/nss_files/files-parse.c: Likewise.
17246         * posix/bug-regex5.c: Likewise.
17247         * posix/fnmatch_loop.c: Likewise.
17248         * posix/regcomp.c: Likewise.
17249         * posix/regexec.c: Likewise.
17250         * posix/tst-rfc3484-2.c: Likewise.
17251         * posix/tst-rfc3484-3.c: Likewise.
17252         * posix/tst-rfc3484.c: Likewise.
17253         * resolv/nss_dns/dns-canon.c: Likewise.
17254         * resolv/nss_dns/dns-network.c: Likewise.
17255         * resolv/res_init.c: Likewise.
17256         * resolv/res_mkquery.c: Likewise.
17257         * resolv/tst-aton.c: Likewise.
17258         * stdlib/cxa_atexit.c: Likewise.
17259         * stdlib/cxa_finalize.c: Likewise.
17260         * stdlib/gen-fpioconst.c: Likewise.
17261         * stdlib/strtol_l.c: Likewise.
17262         * string/tst-endian.c: Likewise.
17263         * sunrpc/auth_des.c: Likewise.
17264         * sunrpc/clnt_udp.c: Likewise.
17265         * sunrpc/rtime.c: Likewise.
17266         * sunrpc/svcauth_des.c: Likewise.
17267         * sunrpc/xdr.c: Likewise.
17268         * sunrpc/xdr_intXX_t.c: Likewise.
17269         * sunrpc/xdr_rec.c: Likewise.
17270         * sysdeps/generic/ldconfig.h: Likewise.
17271         * sysdeps/generic/ldsodefs.h: Likewise.
17272         * sysdeps/generic/memusage.h: Likewise.
17273         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17274         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
17275         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
17276         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17277         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17278         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17279         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17280         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17281         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17282         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17283         * sysdeps/posix/getaddrinfo.c: Likewise.
17284         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17285         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17286         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17287         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17288         * sysdeps/powerpc/test-gettimebase.c: Likewise.
17289         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
17290         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
17291         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
17292         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
17293         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
17294         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
17295         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
17296         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
17297         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
17298         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
17299         * sysdeps/x86_64/dl-tls.h: Likewise.
17300         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
17301         * time/alt_digit.c: Likewise.
17302         * time/era.c: Likewise.
17303         * wcsmbs/tst-c16c32-1.c: Likewise.
17304
17305 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17306
17307         * math/libm-test.inc (struct test_sincos_data): New type.
17308         (RUN_TEST_LOOP_sincos): New macro.
17309         (sincos_test_data): New variable.
17310         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
17311
17312 2013-05-16  Richard Henderson  <rth@redhat.com>
17313
17314         * math/atest-exp2.c (LIMB64): New macro.
17315         (CONSTSZ): New macro.
17316         (mp_exp1, mp_exp_m1, mp_log2): New variables.
17317         (hexdig): Move ...
17318         (print_mpn_fp): ... to function scope.
17319         (read_mpn_hex): Remove.
17320         (get_log2): Remove.
17321         (exp2_mpn): Use mp_log2.
17322         (main): Use mp_exp1.
17323
17324 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
17325
17326         * math/libm-test.inc: Remove comment about not testing "inexact"
17327         exceptions.
17328         (INEXACT_EXCEPTION): New macro.
17329         (NO_INEXACT_EXCEPTION): Likewise.
17330         (INVALID_EXCEPTION_OK): Update value.
17331         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17332         (OVERFLOW_EXCEPTION_OK): Likewise.
17333         (UNDERFLOW_EXCEPTION_OK): Likewise.
17334         (IGNORE_ZERO_INF_SIGN): Likewise.
17335         (ERRNO_UNCHANGED): Likewise.
17336         (ERRNO_EDOM): Likewise.
17337         (ERRNO_ERANGE): Likewise.
17338         (test_exceptions): Handle testing "inexact" exceptions.
17339         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
17340         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
17341         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
17342         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
17343         INEXACT_EXCEPTION.
17344         (rint_towardzero_test_data): Likewise.
17345         (rint_downward_test_data): Likewise.
17346         (rint_upward_test_data): Likewise.
17347
17348         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
17349         with OVERFLOW_EXCEPTION.
17350         (exp10_test_data): Likewise.
17351         (exp2_test_data): Likewise.
17352         (expm1_test_data): Likewise.
17353         (lgamma_test_data): Likewise.
17354         (pow_test_data): Likewise.
17355         (tgamma_test_data): Likewise.
17356         (yn_test_data): Remove duplicate test of overflow.
17357
17358         * math/libm-test.inc (struct test_cc_c_data): New type.
17359         (RUN_TEST_LOOP_cc_c): New macro.
17360         (cpow_test_data): New variable.
17361         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
17362
17363         * math/libm-test.inc (struct test_f_L_data): New type.
17364         (RUN_TEST_LOOP_f_L): New macro.
17365         (llrint_test_data): New variable.
17366         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
17367         (llrint_tonearest_test_data): New variable.
17368         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
17369         (llrint_towardzero_test_data): New variable.
17370         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
17371         (llrint_downward_test_data): New variable.
17372         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
17373         (llrint_upward_test_data): New variable.
17374         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
17375         (llround_test_data): New variable.
17376         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
17377
17378 2013-05-13  Peter Collingbourne  <pcc@google.com>
17379
17380         * math/atest-exp2.c (get_log2): Remove const attribute.
17381
17382 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17383
17384         * math/libm-test.inc (struct test_f_l_data): New type.
17385         (RUN_TEST_LOOP_f_l): New macro.
17386         (lrint_test_data): New variable.
17387         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
17388         (lrint_tonearest_test_data): New variable.
17389         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
17390         (lrint_towardzero_test_data): New variable.
17391         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
17392         (lrint_downward_test_data): New variable.
17393         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
17394         (lrint_upward_test_data): New variable.
17395         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
17396         (lround_test_data): New variable.
17397         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
17398
17399 2013-05-15  Peter Collingbourne  <pcc@google.com>
17400
17401         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
17402         (EXTRACT_WORDS64) Use where appropriate.
17403         (INSERT_WORDS64) Likewise.
17404
17405         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
17406         constraints with x constraints.
17407         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
17408
17409         * malloc/obstack.c (_obstack_compat): Add initializer.
17410
17411 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
17412
17413         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
17414         si_trapno and add si_addr_lsb to _sifields.sigfault.
17415         (si_trapno): Remove macro.
17416         (si_addr_lsb): Define new macro.
17417         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
17418
17419 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
17420
17421         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
17422         instead of TEST_f_l.
17423         (llrint_test_tonearest): Likewise.
17424         (llrint_test_towardzero): Likewise.
17425         (llrint_test_downward): Likewise.
17426         (llrint_test_upward): Likewise.
17427         (llround_test): Likewise.
17428
17429         * math/libm-test.inc (struct test_f_i_data): Add comment.
17430         (RUN_TEST_LOOP_f_b): New macro.
17431         (RUN_TEST_LOOP_f_b_tg): Likewise.
17432         (finite_test_data): New variable.
17433         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
17434         (isfinite_test_data): New variable.
17435         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17436         (isinf_test_data): New variable.
17437         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17438         (isnan_test_data): New variable.
17439         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17440         (isnormal_test_data): New variable.
17441         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17442         (issignaling_test_data): New variable.
17443         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17444         (signbit_test_data): New variable.
17445         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
17446
17447         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
17448         with INVALID_EXCEPTION.
17449         (acosh_test_data): Likewise.
17450         (asin_test_data): Likewise.
17451         (atanh_test_data): Likewise.
17452         (fmod_test_data): Likewise.
17453         (log_test_data): Likewise.
17454         (log10_test_data): Likewise.
17455         (log2_test_data): Likewise.
17456         (pow_test_data): Likewise.
17457         (sqrt_test_data): Likewise.
17458         (y0_test_data): Likewise.
17459         (y1_test_data): Likewise.
17460         (yn_test_data): Likewise.
17461
17462         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
17463         function contents.
17464
17465         * math/libm-test.inc (struct test_ff_i_data): New type.
17466         (RUN_TEST_LOOP_ff_i_tg): New macro.
17467         (isgreater_test_data): New variable.
17468         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17469         (isgreaterequal_test_data): New variable.
17470         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17471         (isless_test_data): New variable.
17472         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17473         (islessequal_test_data): New variable.
17474         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17475         (islessgreater_test_data): New variable.
17476         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17477         (isunordered_test_data): New variable.
17478         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
17479
17480 2013-05-14  David S. Miller  <davem@davemloft.net>
17481
17482         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17483
17484 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
17485
17486         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
17487
17488         * math/libm-test.inc (struct test_fF_f1_data): Change type of
17489         extra_test to int.
17490         (struct test_f_i_data): Change type of max_ulp to int.
17491
17492         * math/libm-test.inc (test_ffI_f1_data): New type.
17493         (RUN_TEST_LOOP_ffI_f1): New macro.
17494         (remquo_test_data): New variable.
17495         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
17496
17497         * setjmp/tst-setjmp-fp.c: New file.
17498         * setjmp/Makefile (tests): Add tst-setjmp-fp.
17499         (link-libm): New variable.
17500         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
17501
17502         * math/libm-test.inc (struct test_f_i_data): New type.
17503         (RUN_TEST_LOOP_f_i): New macro.
17504         (RUN_TEST_LOOP_f_i_tg): Likewise.
17505         (fpclassify_test_data): New variable.
17506         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
17507         (ilogb_test_data): New variable.
17508         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
17509
17510         * math/libm-test.inc (scalbln_test): Correct function name in END
17511         call.
17512
17513         * math/libm-test.inc (struct test_f_f1_data): Add comment.
17514         (RUN_TEST_LOOP_fI_f1): New macro.
17515         (frexp_test_data): New variable.
17516         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
17517
17518         * math/libm-test.inc (struct test_fF_f1_data): New type.
17519         (RUN_TEST_LOOP_fF_f1): New macro.
17520         (modf_test_data): New variable.
17521         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
17522
17523         * math/libm-test.inc (struct test_f_f1_data): New type.
17524         (RUN_TEST_LOOP_f_f1): New macro.
17525         (gamma_test_data): New variable.
17526         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17527         (lgamma_test_data): New variable.
17528         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
17529
17530 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
17531
17532         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
17533         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
17534         (main): Comment "tls" pseudo-hwcap.
17535
17536 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
17537
17538         * math/libm-test.inc (struct test_fl_f_data): New type.
17539         (RUN_TEST_LOOP_fl_f): New variable.
17540         (scalbln_test_data): New variable.
17541         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
17542
17543         * math/libm-test.inc (struct test_fi_f_data): New type.
17544         (RUN_TEST_LOOP_fi_f): New macro.
17545         (ldexp_test_data): New variable.
17546         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
17547         (scalbn_test_data): New variable.
17548         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
17549
17550         * math/libm-test.inc (struct test_c_f_data): New type.
17551         (RUN_TEST_LOOP_c_f): New macro.
17552         (cabs_test_data): New variable.
17553         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
17554         (carg_test_data): New variable.
17555         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
17556         (cimag_test_data): New variable.
17557         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
17558         (creal_test_data): New variable.
17559         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
17560
17561         * math/libm-test.inc (struct test_if_f_data): New type.
17562         (RUN_TEST_LOOP_if_f): New macro.
17563         (jn_test_data): New variable.
17564         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
17565         (yn_test_data): New variable.
17566         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
17567
17568         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
17569
17570 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17571
17572         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
17573         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
17574
17575 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17576
17577         * benchtests/Makefile (CPPFLAGS-nonlib): Add
17578         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
17579         (bench-deps): Add bench-timing.h.
17580         * benchtests-bench-skeleton.c: Include bench-timing.h.
17581         (main): Use TIMING_* macros instead of clock_gettime.
17582         * benchtests/bench-timing.h: New file.
17583
17584         [BZ #14582]
17585         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
17586         Renamed from _LIB_VERSION.
17587         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
17588
17589 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
17590
17591         * math/libm-test.inc (struct test_fff_f_data): New type.
17592         (RUN_TEST_LOOP_fff_f): New macro.
17593         (fma_test_data): New variable.
17594         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
17595         (fma_towardzero_test_data): New variable.
17596         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
17597         (fma_downward_test_data): New variable.
17598         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
17599         (fma_upward_test_data): New variable.
17600         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
17601
17602         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
17603         (struct test_c_c_data): New type.
17604         (RUN_TEST_LOOP_c_c): New macro.
17605         (cacos_test_data): New variable.
17606         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
17607         (cacosh_test_data): New variable.
17608         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
17609         (casin_test_data): New variable.
17610         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
17611         (casinh_test_data): New variable.
17612         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
17613         (catan_test_data): New variable.
17614         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
17615         (catanh_test_data): New variable.
17616         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
17617         (ccos_test_data): New variable.
17618         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
17619         (ccosh_test_data): New variable.
17620         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
17621         (cexp_test_data): New variable.
17622         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
17623         (clog_test_data): New variable.
17624         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
17625         (clog10_test_data): New variable.
17626         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
17627         (conj_test_data): New variable.
17628         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
17629         (cproj_test_data): New variable.
17630         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
17631         (csin_test_data): New variable.
17632         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
17633         (csinh_test_data): New variable.
17634         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
17635         (csqrt_test_data): New variable.
17636         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
17637         (ctan_test_data): New variable.
17638         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
17639         (ctan_tonearest_test_data): New variable.
17640         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17641         (ctan_towardzero_test_data): New variable.
17642         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17643         (ctan_downward_test_data): New variable.
17644         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17645         (ctan_upward_test_data): New variable.
17646         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17647         (ctanh_test_data): New variable.
17648         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
17649         (ctanh_tonearest_test_data): New variable.
17650         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
17651         (ctanh_towardzero_test_data): New variable.
17652         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
17653         (ctanh_downward_test_data): New variable.
17654         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
17655         (ctanh_upward_test_data): New variable.
17656         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
17657         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
17658         of BUILD_COMPLEX.
17659
17660         * math/libm-test.inc (struct test_ff_f_data): New type.
17661         (struct test_ff_f_data_nexttoward): Likewise.
17662         (RUN_TEST_LOOP_2_f): New macro.
17663         (RUN_TEST_LOOP_ff_f): Likewise.
17664         (atan2_test_data): New variable.
17665         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
17666         (copysign_test_data): New variable.
17667         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
17668         (fdim_test_data): New variable.
17669         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
17670         (fmax_test_data): New variable.
17671         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
17672         (fmin_test_data): New variable.
17673         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
17674         (fmod_test_data): New variable.
17675         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
17676         (hypot_test_data): New variable.
17677         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
17678         (nextafter_test_data): New variable.
17679         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
17680         (nexttoward_test_data): New variable.
17681         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
17682         (pow_test_data): New variable.
17683         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
17684         (pow_tonearest_test_data): New variable.
17685         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
17686         (pow_towardzero_test_data): New variable.
17687         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
17688         (pow_downward_test_data): New variable.
17689         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
17690         (pow_upward_test_data): New variable.
17691         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
17692         (remainder_test_data): New variable.
17693         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
17694         (scalb_test_data): New variable.
17695         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
17696         * sysdeps/i386/fpu/libm-test-ulps: Update.
17697
17698 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
17699
17700         * math/libm-test.inc (fma_test): Use max_value instead of local
17701         variable fltmax.
17702         (nextafter_test): Likewise.
17703
17704         * math/libm-test.inc (acos_towardzero_test_data): New variable.
17705         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17706         (acos_downward_test_data): New variable.
17707         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17708         (acos_upward_test_data): New variable.
17709         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17710         (acosh_test_data): New variable.
17711         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
17712         (asin_test_data): New variable.
17713         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
17714         (asin_tonearest_test_data): New variable.
17715         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17716         (asin_towardzero_test_data): New variable.
17717         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17718         (asin_downward_test_data): New variable.
17719         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17720         (asin_upward_test_data): New variable.
17721         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17722         (asinh_test_data): New variable.
17723         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
17724         (atan_test_data): New variable.
17725         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
17726         (atanh_test_data): New variable.
17727         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
17728         (cbrt_test_data): New variable.
17729         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
17730         (ceil_test_data): New variable.
17731         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
17732         (cos_test_data): New variable.
17733         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
17734         (cos_tonearest_test_data): New variable.
17735         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17736         (cos_towardzero_test_data): New variable.
17737         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17738         (cos_downward_test_data): New variable.
17739         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17740         (cos_upward_test_data): New variable.
17741         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17742         (cosh_test_data): New variable.
17743         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
17744         (cosh_tonearest_test_data): New variable.
17745         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17746         (cosh_towardzero_test_data): New variable.
17747         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17748         (cosh_downward_test_data): New variable.
17749         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17750         (cosh_upward_test_data): New variable.
17751         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17752         (erf_test_data): New variable.
17753         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
17754         (erfc_test_data): New variable.
17755         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
17756         (exp_test_data): New variable.
17757         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
17758         (exp_tonearest_test_data): New variable.
17759         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17760         (exp_towardzero_test_data): New variable.
17761         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17762         (exp_downward_test_data): New variable.
17763         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17764         (exp_upward_test_data): New variable.
17765         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17766         (exp10_test_data): New variable.
17767         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
17768         (exp2_test_data): New variable.
17769         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
17770         (expm1_test_data): New variable.
17771         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
17772         (fabs_test_data): New variable.
17773         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
17774         (floor_test_data): New variable.
17775         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
17776         (j0_test_data): New variable.
17777         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
17778         (j1_test_data): New variable.
17779         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
17780         (log_test_data): New variable.
17781         (log_test): Run tests with RUN_TEST_LOOP_f_f.
17782         (log10_test_data): New variable.
17783         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
17784         (log1p_test_data): New variable.
17785         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
17786         (log2_test_data): New variable.
17787         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
17788         (logb_test_data): New variable.
17789         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
17790         (logb_downward_test_data): New variable.
17791         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17792         (nearbyint_test_data): New variable.
17793         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
17794         (rint_test_data): New variable.
17795         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
17796         (rint_tonearest_test_data): New variable.
17797         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17798         (rint_towardzero_test_data): New variable.
17799         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17800         (rint_downward_test_data): New variable.
17801         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17802         (rint_upward_test_data): New variable.
17803         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17804         (round_test_data): New variable.
17805         (round_test): Run tests with RUN_TEST_LOOP_f_f.
17806         (sin_test_data): New variable.
17807         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
17808         (sin_tonearest_test_data): New variable.
17809         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17810         (sin_towardzero_test_data): New variable.
17811         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17812         (sin_downward_test_data): New variable.
17813         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17814         (sin_upward_test_data): New variable.
17815         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17816         (sinh_test_data): New variable.
17817         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
17818         (sinh_tonearest_test_data): New variable.
17819         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17820         (sinh_towardzero_test_data): New variable.
17821         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17822         (sinh_downward_test_data): New variable.
17823         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17824         (sinh_upward_test_data): New variable.
17825         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17826         (sqrt_test_data): New variable.
17827         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
17828         (tan_test_data): New variable.
17829         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
17830         (tan_tonearest_test_data): New variable.
17831         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17832         (tan_towardzero_test_data): New variable.
17833         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
17834         (tan_downward_test_data): New variable.
17835         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
17836         (tan_upward_test_data): New variable.
17837         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
17838         (tanh_test_data): New variable.
17839         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
17840         (tgamma_test_data): New variable.
17841         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
17842         (trunc_test_data): New variable.
17843         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
17844         (y0_test_data): New variable.
17845         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
17846         (y1_test_data): New variable.
17847         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
17848         (significand_test_data): New variable.
17849         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
17850
17851 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
17852
17853         [BZ #12387]
17854         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
17855
17856 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
17857
17858         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
17859
17860 2013-05-10  Andreas Jaeger  <aj@suse.de>
17861
17862         [BZ #15448]
17863         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
17864         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
17865
17866 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
17867
17868         * math/gen-libm-test.pl (adjust_arg): New function.
17869         (special_functions): Handle generating output in both functions
17870         and arrays.
17871         (parse_args): Likewise.
17872         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
17873         $in_func argument to parse_args.
17874         * math/libm-test.inc (struct test_f_f_data): New type.
17875         (IF_ROUND_INIT_): New macro.
17876         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
17877         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
17878         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
17879         (IF_ROUND_INIT_FE_UPWARD): Likewise.
17880         (ROUND_RESTORE_): Likewise.
17881         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
17882         (ROUND_RESTORE_FE_TONEAREST): Likewise.
17883         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
17884         (ROUND_RESTORE_FE_UPWARD): Likewise.
17885         (RUN_TEST_LOOP_f_f): New macro.
17886         (acos_test_data): New variable.
17887         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
17888         (acos_tonearest_test_data): New variable.
17889         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
17890
17891 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17892
17893         * benchtests/bench-skeleton.c (startup): Fix coding style.
17894
17895 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
17896
17897         [BZ #6809]
17898         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
17899         negative infinity argument.
17900         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
17901         negative infinity argument.
17902         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
17903         negative infinity argument.
17904         * math/libm-test.inc (tgamma_test): Expect errno to be set for
17905         domain errors.
17906
17907 2013-05-10  Florian Weimer  <fweimer@redhat.com>
17908
17909         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
17910         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
17911         * iconv/iconv_prog.c (main): Likewise.
17912         * locale/programs/charmap-dir.c (charmap_readdir)
17913         (fopen_uncompressed): Likewise.
17914         * locale/programs/locfile.c (siblings_uncached)
17915         (write_locale_data): Use lstat64 instead of lstat.
17916         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
17917         stat.
17918
17919 2013-05-10  Andreas Jaeger  <aj@suse.de>
17920
17921         [BZ #15395]
17922         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
17923         localization.
17924         Include <locale.h>.
17925
17926 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
17927
17928         * elf/dl-close.c (_dl_close_worker): Add comments.
17929
17930 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
17931
17932         [BZ #15359]
17933         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
17934         high part of pi/2.
17935         (__ieee754_rem_pio2l): Update comments.
17936
17937         [BZ #15429]
17938         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
17939         high part of pi/2.
17940         (__ieee754_rem_pio2l): Update comments.
17941
17942         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
17943         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
17944
17945         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
17946         M_PI_4l.
17947
17948         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
17949         (M_PI_34_LOG10El): Likewise.
17950         (M_PI2_LOG10El): Likewise.
17951         (M_PI4_LOG10El): Likewise.
17952         (M_PI_LOG10El): Likewise.
17953
17954 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17955
17956         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17957
17958 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
17959
17960         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
17961         (MINUS_ZERO_INIT): Likewise.
17962         (PLUS_INFTY_INIT): Likewise.
17963         (MINUS_INFTY_INIT): Likewise.
17964         (QNAN_VALUE_INIT): Likewise.
17965         (MAX_VALUE_INIT): Likewise.
17966         (MIN_VALUE_INIT): Likewise.
17967         (MIN_SUBNORM_VALUE_INIT): Likewise.
17968         (plus_zero): Initialize with PLUS_ZERO_INIT.
17969         (minus_zero): Initialize with MINUS_ZERO_INIT.
17970         (plus_infty): Initialize with PLUS_INFTY_INIT.
17971         (minus_infty): Initialize with MINUS_INFTY_INIT.
17972         (qnan_value): Initialize with QNAN_VALUE_INIT.
17973         (max_value): Initialize with MAX_VALUE_INIT.
17974         (min_value): Initialize with MIN_VALUE_INIT.
17975         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
17976
17977         * math/libm-test.inc (RUN_TEST_if_f): New macro.
17978         (jn_test): Use TEST_if_f instead of TEST_ff_f.
17979         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
17980         (yn_test): Use TEST_if_f instead of TEST_ff_f.
17981
17982         * math/libm-test.inc (RUN_TEST_f_f): New macro.
17983         (RUN_TEST_2_f): Likewise.
17984         (RUN_TEST_ff_f): Likewise.
17985         (RUN_TEST_fi_f): Likewise.
17986         (RUN_TEST_fl_f): Likewise.
17987         (RUN_TEST_fff_f): Likewise.
17988         (RUN_TEST_c_f): Likewise.
17989         (RUN_TEST_f_f1): Likewise.
17990         (RUN_TEST_fF_f1): Likewise.
17991         (RUN_TEST_fI_f1): Likewise.
17992         (RUN_TEST_ffI_f1): Likewise.
17993         (RUN_TEST_c_c): Likewise.
17994         (RUN_TEST_cc_c): Likewise.
17995         (RUN_TEST_f_i): Likewise.
17996         (RUN_TEST_f_i_tg): Likewise.
17997         (RUN_TEST_ff_i_tg): Likewise.
17998         (RUN_TEST_f_b): Likewise.
17999         (RUN_TEST_f_b_tg): Likewise.
18000         (RUN_TEST_f_l): Likewise.
18001         (RUN_TEST_f_L): Likewise.
18002         (RUN_TEST_sincos): Likewise.
18003         * math/gen-libm-test.pl (new_test): Take new argument to indicate
18004         whether to show exceptions.  Do not include ");\n" in return
18005         value.
18006         (special_functions): Output call to RUN_TEST_sincos instead of
18007         check_float calls.  Update calls to new_test.
18008         (parse_args): Output call to single RUN_TEST_* macro instead of
18009         check_* calls and other assignments.  Update calls to new_test.
18010
18011         [BZ #2546]
18012         [BZ #2560]
18013         [BZ #5159]
18014         [BZ #15426]
18015         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
18016         input to result for tgamma overflow.
18017         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
18018         (gamma_coeff): New variable.
18019         (NCOEFF): New macro.
18020         (gamma_positive): New function.
18021         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
18022         underflow here.  Use gamma_positive instead of exp (lgamma) for
18023         other arguments.
18024         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
18025         (gamma_coeff): New variable.
18026         (NCOEFF): New macro.
18027         (gammaf_positive): New function.
18028         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
18029         underflow here.  Use gamma_positive instead of exp (lgamma) for
18030         other arguments.
18031         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
18032         (gamma_coeff): New variable.
18033         (NCOEFF): New macro.
18034         (gammal_positive): New function.
18035         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
18036         underflow here.  Use gamma_positive instead of exp (lgamma) for
18037         other arguments.
18038         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
18039         (gamma_coeff): New variable.
18040         (NCOEFF): New macro.
18041         (gammal_positive): New function.
18042         (__ieee754_gammal_r): Handle positive infinity, overflow and
18043         underflow here.  Handle NaN the same as positive infinity.  Remove
18044         check x < 0xffffffff for negative integers.  Use gamma_positive
18045         instead of exp (lgamma) for other arguments.
18046         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
18047         (gamma_coeff): New variable.
18048         (NCOEFF): New macro.
18049         (gammal_positive): New function.
18050         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
18051         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18052         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
18053         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
18054         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18055         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
18056         * sysdeps/generic/math_private.h (__gamma_productf): New
18057         prototype.
18058         (__gamma_product): Likewise.
18059         (__gamma_productl): Likewise.
18060         * math/Makefile (libm-calls): Add gamma_product.
18061         * math/libm-test.inc (tgamma_test): Add more tests.
18062         * sysdeps/i386/fpu/libm-test-ulps: Update.
18063         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18064
18065 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
18066
18067         * benchtests/bench-skeleton.c (main): Preheat CPU.
18068
18069 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
18070
18071         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
18072
18073 2013-05-07  Roland McGrath  <roland@hack.frob.com>
18074
18075         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
18076         and _dl_skip_args_internal.
18077
18078 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
18079
18080         * manual/message.texi (Message Translation): Talk about users.
18081         Message to key mapping impacts design.
18082
18083 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18084
18085         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
18086
18087         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
18088
18089         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
18090         * sysdeps/wordsize-64/glob64.c: ... here.
18091
18092         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
18093         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
18094         New macros.
18095
18096         * debug/getlogin_r_chk.c: Moved to ...
18097         * login/getlogin_r_chk.c: ... here.
18098         * debug/Makefile (routines): Move getlogin_r_chk to ...
18099         * login/Makefile (routines): ... here.
18100         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
18101         * login/Versions (libc: GLIBC_2.4): ... here.
18102
18103         * io/poll.c (__poll): Renamed from poll.
18104         Add libc_hidden_def.
18105         (poll): Define as weak alias.
18106
18107         * debug/ptsname_r_chk.c: Moved to ...
18108         * login/ptsname_r_chk.c: ... here.
18109         * debug/Makefile (routines): Move ptsname_r_chk to ...
18110         * login/Makefile (routines): ... here.
18111         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
18112         * login/Versions (libc: GLIBC_2.4): ... here.
18113
18114         * posix/getlogin.c: Moved to ...
18115         * login/getlogin.c: ... here.
18116         * posix/getlogin_r.c: Moved to ...
18117         * login/getlogin_r.c: ... here.
18118         * posix/getlogin_r.c: Moved to ...
18119         * login/getlogin_r.c: ... here.
18120         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
18121         * login/Makefile (routines): ... here.
18122         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
18123         * login/Versions (libc: GLIBC_2.0): ... here.
18124
18125         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
18126         (setrlimit): Define as weak alias.
18127
18128         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
18129         Call __ names for open, ftruncate, and close.
18130         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
18131         (truncate): Define as weak alias.
18132
18133 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
18134
18135         * math/gen-libm-test.pl (parse_args): Initialize x before each
18136         test of frexp, modf and remquo.
18137
18138         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
18139         test signgam value.
18140
18141 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18142
18143         [BZ #15418]
18144         [BZ #15419]
18145         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
18146         internal tests.
18147         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
18148
18149 2013-05-06  Roland McGrath  <roland@hack.frob.com>
18150
18151         * elf/dl-writev.h: New file.
18152         * elf/dl-misc.c: Include it.
18153         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
18154         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
18155
18156 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
18157
18158         * math/libm-test.inc (noXFails): Remove variable.
18159         (noXPasses): Likewise.
18160         (BUILD_COMPLEX_INT): Remove macro.
18161         (print_screen): Remove xfail argument.
18162         (print_screen_max_error): Likewise.
18163         (update_stats): Likewise.
18164         (print_max_error): Likewise.  Update calls to other affected
18165         functions.
18166         (print_complex_max_error): Likewise.
18167         (test_single_exception): Update calls to print_screen.
18168         (test_single_errno): Likewise.
18169         (check_float_internal): Remove xfail argument.  Update calls to
18170         other affected functions.
18171         (check_float): Likewise.
18172         (check_complex): Likewise.
18173         (check_int): Likewise.
18174         (check_long): Likewise.
18175         (check_bool): Likewise.
18176         (check_longlong): Likewise.
18177         (main): Don't print noXFails and noXPasses.
18178         * math/gen-libm-test.pl (top level): Don't mention expected
18179         failure handling in comment.
18180         (new_test): Don't handle expected failures.
18181         (parse_args): Don't mention expected failure handling in comment.
18182         (generate_testfile): Don't handle expected failures.
18183         (parse_ulps): Likewise.
18184         (print_ulps_file): Likewise.
18185         (get_failure): Remove function.
18186         (output_test): Don't handle expected failures.
18187         * make/README.libm-test: Don't mention expected failure handling.
18188
18189         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
18190         (minus_zero): Likewise.
18191         (plus_infty): Likewise.
18192         (minus_infty): Likewise.
18193         (qnan_value): Likewise.
18194         (max_value): Likewise.
18195         (min_value): Likewise.
18196         (min_subnorm_value): Likewise.
18197         (initialize): Do not initialize those variables dynamically.
18198
18199 2013-05-03  Roland McGrath  <roland@hack.frob.com>
18200
18201         * io/open.c (__open_2): Moved to ...
18202         * io/open_2.c: ... this new file.
18203         * io/open64.c (__open64_2): Moved to ...
18204         * io/open64_2.c: ... this new file.
18205         * io/openat.c (__openat_2): Moved to ...
18206         * io/openat_2.c: ... this new file.
18207         * io/openat64.c (__openat64_2): Moved to ...
18208         * io/openat64_2.c: ... this new file.
18209         * io/Makefile (routines): Add them.
18210         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
18211         * sysdeps/unix/sysv/linux/open_2.c: File removed.
18212         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
18213         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
18214         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
18215         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
18216         (__openat64): Add hidden_ver.
18217         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
18218         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
18219
18220         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
18221         Separately conditionalize setting of GLRO(dl_sysinfo) so
18222         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
18223         as well, but the actual setting is only under [NEED_DL_SYSINFO].
18224
18225 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18226
18227         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
18228         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
18229         definition.
18230         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
18231         * sysdeps/unix/sysv/linux/powerpc/init-first.c
18232         (_libc_vdso_platform_setup): Add __vdso_time initialization.
18233         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
18234         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
18235
18236 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
18237
18238         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
18239         test signgam value.
18240
18241         * math/libm-test.inc (hypot_test): Do not use
18242         IGNORE_ZERO_INF_SIGN.
18243
18244 2013-05-03  Andreas Jaeger  <aj@suse.de>
18245
18246         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
18247         Linux 3.9.
18248         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
18249         (PF_MAX): Adjust for VSOCK change.
18250
18251 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18252
18253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18254
18255 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
18256
18257         [BZ #15264]
18258         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
18259         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
18260         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
18261
18262 2013-05-02  David S. Miller  <davem@davemloft.net>
18263
18264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18265
18266 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
18267
18268         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
18269
18270 2013-05-01  Roland McGrath  <roland@hack.frob.com>
18271
18272         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
18273
18274 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
18275
18276         [BZ #14952]
18277         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
18278         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18279         Use __attribute__ ((__gnu_inline__)).
18280         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
18281         Don't use __attribute__ ((__gnu_inline__)).
18282
18283 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
18284
18285         [BZ #15423]
18286         * math/s_catan.c (__catan): Handle small real or imaginary part of
18287         input specially to avoid spurious underflow.
18288         * math/s_catanf.c (__catanf): Likewise.
18289         * math/s_catanh.c (__catanh): Likewise.
18290         * math/s_catanhf.c (__catanhf): Likewise.
18291         * math/s_catanhl.c (__catanhl): Likewise.
18292         * math/s_catanl.c (__catanl): Likewise.
18293         * math/libm-test.inc (catan_test): Add more tests.
18294         (catanh_test): Likewise.
18295         * sysdeps/i386/fpu/libm-test-ulps: Update.
18296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18297
18298 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18299
18300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18301
18302 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
18303
18304         [BZ #15416]
18305         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
18306         accurately for denominator in atan2.
18307         * math/s_catanf.c (__catanf): Likewise.
18308         * math/s_catanh.c (__catanh): Likewise.
18309         * math/s_catanhf.c (__catanhf): Likewise.
18310         * math/s_catanhl.c (__catanhl): Likewise.
18311         * math/s_catanl.c (__catanl): Likewise.
18312         * math/libm-test.inc (catan_test): Add more tests.
18313         (catanh_test): Likewise.
18314         * sysdeps/i386/fpu/libm-test-ulps: Update.
18315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18316
18317 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
18318
18319         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
18320
18321         * benchtests/Makefile (bench): Remove slow benchmarks.
18322         * benchtests/atan-inputs: Add slow benchmark inputs.
18323         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
18324         (BENCH_FUNC): Accept variant offset.
18325         (VARIANT): Define.
18326         * benchtests/bench-skeleton.c (main): Run benchmark for each
18327         variant.
18328         * benchtests/cos-inputs: Add slow benchmark inputs.
18329         * benchtests/exp-inputs: Likewise.
18330         * benchtests/pow-inputs: Likewise.
18331         * benchtests/sin-inputs: Likewise.
18332         * benchtests/slowatan-inputs: Remove.
18333         * benchtests/slowatan.c: Remove.
18334         * benchtests/slowcos-inputs: Remove.
18335         * benchtests/slowcos.c: Remove.
18336         * benchtests/slowexp-inputs: Remove.
18337         * benchtests/slowexp.c: Remove.
18338         * benchtests/slowpow-inputs: Remove.
18339         * benchtests/slowpow.c: Remove.
18340         * benchtests/slowsin-inputs: Remove.
18341         * benchtests/slowsin.c: Remove.
18342         * benchtests/slowtan-inputs: Remove.
18343         * benchtests/slowtan.c: Remove.
18344         * benchtests/tan-inputs: Add slow benchmark inputs.
18345         * scripts/bench.pl: Parse comments and directives.
18346
18347         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
18348         in CPPFLAGS.
18349         ($(objpfx)bench-%.c): Remove *-ITER.
18350         * benchtests/bench-modf.c: Remove definition of ITER.
18351         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
18352         (main): Loop for DURATION seconds instead of fixed number of
18353         iterations.
18354         * scripts/bench.pl: Don't expect iterations in parameters.
18355
18356 2013-04-29  Roland McGrath  <roland@hack.frob.com>
18357
18358         * io/fchdir.c (__fchdir): Renamed from fchdir.
18359         (fchdir): Define as weak alias.
18360
18361 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18362
18363         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
18364         (ERRNO_EDOM): Likewise.
18365         (ERRNO_ERANGE): Likewise.
18366         (noErrnoTests): New variable.
18367         (init_max_error): Set errno to 0.
18368         (test_single_errno): New function.
18369         (test_errno): Likewise.
18370         (check_float_internal): Call test_errno.  Set errno to 0.
18371         (check_complex): Refer to errno tests in comment.
18372         (check_int): Call test_errno.  Set errno to 0.
18373         (check_long): Likewise.
18374         (check_bool): Likewise.
18375         (check_longlong): Likewise.
18376         (cos_test): Use ERRNO_* flags for errno tests instead of
18377         check_int.
18378         (expm1_test): Likewise.
18379         (fmod_test): Likewise.
18380         (ilogb_test): Likewise.
18381         (lgamma_test): Likewise.
18382         (pow_test): Likewise.
18383         (remainder_test): Likewise.
18384         (sin_test): Likewise.
18385         (tan_test): Likewise.
18386         (yn_test): Likewise.
18387         (initialize): Set errno to 0.
18388         (main): Print number of errno tests.
18389         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
18390
18391 2013-04-29  Andreas Jaeger  <aj@suse.de>
18392
18393         [BZ #15084]
18394         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
18395         and RES_USEVC.
18396
18397         [BZ #15085]
18398         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
18399         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
18400         unimplemented.
18401
18402         [BZ #15380]
18403         * stdlib/random.c (__initstate): Return NULL if
18404         __initstate fails.
18405
18406         [BZ #15086]
18407         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
18408         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
18409         RES_SNGLKUPREOP.
18410
18411 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18412
18413         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18414
18415 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
18416
18417         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
18418         of individual tests.
18419         (casin_test): Likewise.
18420         (casinh_test): Likewise.
18421
18422 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
18423
18424         [BZ #15409]
18425         * math/s_catan.c (__catan): Handle arguments with large real or
18426         imaginary part separately without squaring.
18427         * math/s_catanf.c (__catanf): Likewise.
18428         * math/s_catanh.c (__catanh): Likewise.
18429         * math/s_catanhf.c (__catanhf): Likewise.
18430         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18431         and redefine.
18432         (__catanhl): Handle arguments with large real or imaginary part
18433         separately without squaring.
18434         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
18435         and redefine.
18436         (__catanl): Handle arguments with large real or imaginary part
18437         separately without squaring.
18438         * math/libm-test.inc (catan_test): Add more tests.
18439         (catanh_test): Likewise.
18440         * sysdeps/i386/fpu/libm-test-ulps: Update.
18441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18442
18443 2013-04-27  Andreas Jaeger  <aj@suse.de>
18444
18445         [BZ #15007]
18446         * stdlib/stdlib.h: Update guards for qecvt.
18447         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
18448         <stdlib.h>.
18449
18450 2013-04-27  Allan McRae  <allan@archlinux.org>
18451
18452         * sysdeps/i386/fpu/libm-test-ulps: Update.
18453
18454 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
18455
18456         [BZ #15406]
18457         * math/s_catan.c: Include <float.h>.
18458         (__catan): Ensure underflow exception occurs for underflowed
18459         result.
18460         * math/s_catanf.c: Include <float.h>.
18461         (__catanf): Ensure underflow exception occurs for underflowed
18462         result.
18463         * math/s_catanh.c: Include <float.h>.
18464         (__catanh): Ensure underflow exception occurs for underflowed
18465         result.
18466         * math/s_catanhf.c: Include <float.h>.
18467         (__catanhf): Ensure underflow exception occurs for underflowed
18468         result.
18469         * math/s_catanhl.c: Include <float.h>.
18470         (__catanhl): Ensure underflow exception occurs for underflowed
18471         result.
18472         * math/s_catanl.c: Include <float.h>.
18473         (__catanl): Ensure underflow exception occurs for underflowed
18474         result.
18475         * math/libm-test.inc (catan_test): Add more tests.
18476         (catanh_test): Likewise.
18477
18478         [BZ #15405]
18479         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
18480         underflowed result.
18481         * math/s_ccoshf.c (__ccoshf): Likewise.
18482         * math/s_ccoshl.c (__ccoshl): Likewise.
18483         * math/s_csin.c (__csin): Likewise.
18484         * math/s_csinf.c (__csinf): Likewise.
18485         * math/s_csinh.c (__csinh): Likewise.
18486         * math/s_csinhf.c (__csinhf): Likewise.
18487         * math/s_csinhl.c (__csinhl): Likewise.
18488         * math/s_csinl.c (__csinl): Likewise.
18489         * math/libm-test.inc (ccos_test): Add more tests.
18490         (ccosh_test): Likewise.
18491         (csin_test): Likewise.
18492         (csinh_test): Likewise.
18493
18494 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18495
18496         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
18497         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
18498         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
18499         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
18500         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
18501         powerpc/power5+/fpu folders.
18502         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18503
18504
18505 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
18506
18507         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18508
18509 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
18510
18511         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
18512         additions to variable.
18513         [$(config-machine) = x86_64] (modules-names): Likewise.
18514         ($(objpfx)tst-audit3): Remove dependency.
18515         ($(objpfx)tst-audit3.out): Likewise.
18516         ($(objpfx)tst-audit4): Likewise.
18517         ($(objpfx)tst-audit4.out): Likewise.
18518         ($(objpfx)tst-audit5): Likewise.
18519         ($(objpfx)tst-audit5.out): Likewise.
18520         ($(objpfx)tst-audit6): Likewise.
18521         ($(objpfx)tst-audit6.out): Likewise.
18522         ($(objpfx)tst-audit7): Likewise.
18523         ($(objpfx)tst-audit7.out): Likewise.
18524         (tst-audit3-ENV): Remove variable.
18525         (tst-audit4-ENV): Likewise.
18526         (tst-audit5-ENV): Likewise.
18527         (tst-audit6-ENV): Likewise.
18528         (tst-audit7-ENV): Likewise.
18529         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
18530         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
18531         addition to variable.
18532         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
18533         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
18534         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
18535         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
18536         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
18537         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
18538         tst-audit3, tst-audit4 and tst-audit5.
18539         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
18540         tst-audit6 and tst-audit7.
18541         [$(subdir) = elf] (modules-names): Add audit modules for those
18542         tests.
18543         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
18544         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
18545         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
18546         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
18547         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
18548         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
18549         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
18550         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
18551         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
18552         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
18553         [$(subdir) = elf] (tst-audit3-ENV): New variable.
18554         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
18555         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
18556         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
18557         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
18558         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
18559         Likewise.
18560         [$(subdir) = elf && $(config-cflags-avx) = yes]
18561         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
18562         [$(subdir) = elf && $(config-cflags-avx) = yes]
18563         (CFLAGS-tst-auditmod4a.c): Likewise.
18564         [$(subdir) = elf && $(config-cflags-avx) = yes]
18565         (CFLAGS-tst-auditmod4b.c): Likewise.
18566         [$(subdir) = elf && $(config-cflags-avx) = yes]
18567         (CFLAGS-tst-auditmod6b.c): Likewise.
18568         [$(subdir) = elf && $(config-cflags-avx) = yes]
18569         (CFLAGS-tst-auditmod6c.c): Likewise.
18570         [$(subdir) = elf && $(config-cflags-avx) = yes]
18571         (CFLAGS-tst-auditmod7b.c): Likewise.
18572         * elf/tst-audit3.c: Move to ...
18573         * sysdeps/x86_64/tst-audit3.c: ... here.
18574         * elf/tst-audit4.c: Move to ...
18575         * sysdeps/x86_64/tst-audit4.c: ... here.
18576         * elf/tst-audit5.c: Move to ...
18577         * sysdeps/x86_64/tst-audit5.c: ... here.
18578         * elf/tst-audit6.c: Move to ...
18579         * sysdeps/x86_64/tst-audit6.c: ... here.
18580         * elf/tst-audit7.c: Move to ...
18581         * sysdeps/x86_64/tst-audit7.c: ... here.
18582         * elf/tst-auditmod3a.c: Move to ...
18583         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
18584         * elf/tst-auditmod3b.c: Move to ...
18585         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
18586         * elf/tst-auditmod4a.c: Move to ...
18587         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
18588         * elf/tst-auditmod4b.c: Move to ...
18589         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
18590         * elf/tst-auditmod5a.c: Move to ...
18591         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
18592         * elf/tst-auditmod5b.c: Move to ...
18593         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
18594         * elf/tst-auditmod6a.c: Move to ...
18595         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
18596         * elf/tst-auditmod6b.c: Move to ...
18597         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
18598         * elf/tst-auditmod6c.c: Move to ...
18599         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
18600         * elf/tst-auditmod7a.c: Move to ...
18601         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
18602         * elf/tst-auditmod7b.c: Move to ...
18603         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
18604
18605 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
18606
18607         [BZ #15366]
18608         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
18609         define unconditionally.
18610         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
18611         define unconditionally.
18612         (INT8_C, INT16_C, etc.): Likewise.
18613
18614 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
18615
18616         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
18617         __ehdr_start with hidden visibility.
18618
18619         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
18620
18621 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
18622
18623         * math/libm-test.inc (cos_test): Use accurate hex constants.
18624         (sincost_test): Likewise.
18625
18626 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
18627
18628         * math/libm-test.inc (catan_test): Add more tests.
18629         (catanh_test): Likewise.
18630
18631         * math/s_catanf.c (__catanf): Use suffixed floating-point
18632         constants.
18633         * math/s_catanhf.c (__catanhf): Likewise.
18634         * math/s_catanhl.c (__catanhl): Likewise.
18635         * math/s_catanl.c (__catanl): Likewise.
18636
18637         [BZ #15394]
18638         * math/s_catan.c (__catan): Calculate imaginary part of result
18639         with log1p not log unless computing log of number close to 0.
18640         * math/s_catanf.c (__catanf): Likewise.
18641         * math/s_catanl.c (__catanl): Likewise.
18642         * math/s_catanh.c (__catanh): Calculate real part of result with
18643         log1p not log unless computing log of number close to 0.
18644         * math/s_catanhf.c (__catanhf): Likewise.
18645         * math/s_catanhl.c (__catanhl): Likewise.
18646         * math/libm-test.inc (catan_test): Add more tests.
18647         (catanh_test): Likewise.
18648         * sysdeps/i386/fpu/libm-test-ulps: Update.
18649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18650
18651 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
18652
18653         * benchtests/Makefile: Mention files in which fast and slow
18654         paths of math functions are implemented.
18655
18656 2013-04-23  Roland McGrath  <roland@hack.frob.com>
18657
18658         * sysdeps/posix/timespec_get.c: New file.
18659
18660 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18661
18662         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
18663         POWER.
18664         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
18665         for POWER.
18666         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
18667         powerpc/power5/fpu folders.
18668         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
18669         * benchtests/Makefile: Add modf testcase.
18670         * benchtests/bench-modf.c: New file: Benchmark test for mo
18671
18672 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
18673
18674         [BZ #14888]
18675         * time/Makefile (tests): Add tst-strptime-whitespace.
18676         * time/strptime_l.c (get_number): Use ISSPACE.
18677         (__strptime_internal): Likewise.
18678         * time/tst-strptime-whitespace.c: New test case.
18679
18680 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
18681
18682         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
18683         member.
18684         (_nss_files_init): Set it here.
18685
18686 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
18687
18688         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
18689         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
18690         unsigned.
18691
18692 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
18693
18694         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
18695
18696 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18697
18698         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
18699         size just once.
18700
18701 2013-04-21  David S. Miller  <davem@davemloft.net>
18702
18703         * po/ru.po: Update Russion translation from translation project.
18704
18705 2013-04-17  Adam Conrad  <adconrad@0c3.net>
18706
18707         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
18708         and setfsgid.
18709
18710 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
18711
18712         * configure.in: Remove i386 configure warning. Remove i386 case.
18713         * configure: Regenerate.
18714         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
18715         Add example to error message.
18716         * sysdeps/i386/configure: Regenerate.
18717
18718 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
18719
18720         * benchtests/Makefile (bench): Add cos, tan, slowcos and
18721         slowtan.
18722         * benchtests/cos-inputs: New file.
18723         * benchtests/slowcos-inputs: New file.
18724         * benchtests/slowcos.c: New file.
18725         * benchtests/slowtan-inputs: New file.
18726         * benchtests/slowtan.c: New file.
18727         * benchtests/tan-inputs: New file.
18728
18729 2013-04-16  Roland McGrath  <roland@hack.frob.com>
18730
18731         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
18732         considered kosher.
18733
18734 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
18735
18736         * benchtests/Makefile: Include cppflags-iterator.mk to add
18737         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
18738
18739         * Makefile.in (bench-clean): New target.
18740         * benchtests/Makefile (bench-clean): Likewise.
18741
18742 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
18743
18744         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
18745
18746 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18747
18748         * stdio-common/tstdiomisc.c: Fix coding-style violation.
18749
18750 2013-04-15  Andreas Schwab  <schwab@suse.de>
18751
18752         * nscd/grpcache.c (cache_addgr): Properly check for short write.
18753         * nscd/initgrcache.c (addinitgroupsX): Likewise.
18754         * nscd/pwdcache.c (cache_addpw): Likewise.
18755         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
18756         more than recsize.
18757
18758 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18759
18760         * benchtests/Makefile (bench): Write all output to
18761         bench-out.tmp together.
18762
18763 2013-04-15  Andreas Schwab  <schwab@suse.de>
18764
18765         * nscd/nscd.c (main): Don't fork again after closing files.
18766
18767 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
18768
18769         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
18770
18771         * benchtests/Rules (bench-deps): Collect dependencies into a
18772         single variable.  Add Makefile to dependencies.
18773         ($(objpfx)bench-%.c): Depend on bench-deps.
18774
18775 2013-04-12  Roland McGrath  <roland@hack.frob.com>
18776             Xavier Roche  <roche+kml2@exalead.com>
18777
18778         [BZ #15361]
18779         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
18780         just that it's a file descriptor.
18781         * manual/llio.texi (Synchronizing AIO Operations): Update description
18782         for EBADF error from aio_fsync.
18783
18784 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
18785
18786         * Rules (bench): Move target definition...
18787         * benchtests/Makefile: ... here.
18788
18789 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
18790
18791         * math/libm-test.inc (cos_test): Fix PI/2 test.
18792         (sincos_test): Likewise.
18793         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
18794         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
18795
18796 2013-04-11  Andreas Schwab  <schwab@suse.de>
18797
18798         [BZ #13988]
18799         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
18800         accept exponent character only when digits were seen.
18801         * stdio-common/Makefile (tests): Add bug26.
18802         * stdio-common/bug26.c: New file.
18803
18804         [BZ #14293]
18805         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
18806         non-freeable.
18807
18808 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
18809
18810         * Makeconfig (rtld-prefix): Define built linker prefix.
18811         * Rules (run-bench): Use it.
18812         * math/Makefile (run-regen-ulps): Likewise.
18813
18814         * Rules (bench): Remove eval.
18815
18816 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
18817             Roland McGrath  <roland@hack.frob.com>
18818             Ondrej Bilka  <neleai@seznam.cz>
18819
18820         [BZ #15346]
18821         * time/getdate.c: Include ctype.h and alloca.h.
18822         (__getdate_r): Trim leading and trailing spaces of input.
18823         * time/tst-getdate.c (tests): Add tests with leading and
18824         trailing spaces.
18825
18826 2013-04-08  Roland McGrath  <roland@hack.frob.com>
18827
18828         [BZ #14280]
18829         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
18830         when computing value.
18831
18832 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18833
18834         * math/README.libm-test (How can I generate "libm-test-ulps"?):
18835         Use testrun.sh to run libm tests.
18836
18837         [BZ #15309]
18838         * elf/dl-open.c (dl_open_worker): memset all of seen array.
18839
18840 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
18841
18842         [BZ #15264]
18843         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
18844
18845 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18846
18847         * Makefile.in (regen-ulps): New target.
18848         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
18849         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
18850         [ifneq (no,$(PERL)] (regen-ulps): New target.
18851         [ifeq (no,$(PERL)] (regen-ulps): New target.
18852         * math/libm-test.inc (ulps_file_name): Define.
18853         (output_dir): New variable.
18854         (options): Add "output-dir" option.
18855         (parse_opt): Handle 'o' case.
18856         (main): If output_dir is non-NULL use it as a prefix
18857         otherwise use "".
18858         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
18859
18860 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18861
18862         [BZ #10060, #10062]
18863         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
18864         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
18865         fail configure if __sync_val_compare_and_swap is not inlined.
18866         * sysdeps/i386/configure: Regenerate.
18867         * configure.in: Build for i686 when configured for i386.
18868         * configure: Regenerate.
18869         * README: Remove i386 reference.
18870
18871 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
18872
18873         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
18874         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18875
18876 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
18877
18878         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
18879         (lmsnanval): New variables.
18880         (F): Add conversion tests.
18881         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
18882         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
18883
18884         * stdio-common/tstdiomisc.c (F): Properly collect individual
18885         tests' results.
18886
18887         [BZ #14686, #15336]
18888         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
18889         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
18890         Instead, use input NaN values or generate a qNaN by arithmetic
18891         operation.  Also fix bugs to comply with the standard.
18892         * math/libm-test.inc (remainder_test): Add more tests.
18893
18894         [BZ #15335, #15342]
18895         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
18896         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
18897         input NaN values or generate a qNaN by arithmetic operation.
18898
18899         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
18900         unreachable code.
18901
18902         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
18903         definitions.
18904
18905 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
18906
18907         [BZ #14478]
18908         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
18909         underflowed result.
18910         * math/s_cexpf.c (__cexpf): Likewise.
18911         * math/s_cexpl.c (__cexpl): Likewise.
18912         * math/libm-test.inc (cexp_test): Add more tests.
18913
18914 2013-04-03  Andreas Schwab  <schwab@suse.de>
18915
18916         [BZ #15330]
18917         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
18918         order arrays from heap if bigger than alloca cutoff.
18919
18920 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
18921
18922         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
18923         (SNAN_TESTS_double): Refer to GCC PR56831.
18924         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
18925         GCC PR56828.
18926
18927 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
18928
18929         * Rules (bench): Move bench.out after the run is complete.
18930
18931         * Rules (bench): Echo currently running benchmark.
18932
18933         * benchtests/Makefile (bench): Add atan and slowatan.
18934         * benchtests/atan-inputs: New file.
18935         * benchtests/slowatan-inputs: New file.
18936         * benchtests/slowatan.c: New file.
18937
18938         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
18939         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
18940         its value.
18941
18942         [BZ #15305]
18943         * sysdeps/unix/sysv/linux/kernel-features.h
18944         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
18945         __ASSUME_XFS_RESTRICTED_CHOWN.
18946         * sysdeps/unix/sysv/linux/pathconf.c
18947         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
18948         Save and restore errno.
18949
18950 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
18951
18952         [BZ #15327]
18953         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
18954         arguments using __kernel_casinh.
18955         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
18956         arguments using __kernel_casinhf.
18957         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
18958         arguments using __kernel_casinhl.
18959         * math/libm-test.inc (cacosh_test): Add more tests.
18960         * sysdeps/i386/fpu/libm-test-ulps: Update.
18961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18962
18963 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
18964
18965         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
18966         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
18967
18968         * bench/Makefile (bench): Add sin and slowsin.
18969         * benchtests/sin-inputs: New file.
18970         * benchtests/slowsin-inputs: New file.
18971         * benchtests/slowsin.c: New file.
18972
18973         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
18974         (bench): Add slowexp and slowpow.
18975         (exp-ITER): Increase iterations.
18976         (pow-ITER): Likewise.
18977         * benchtests/exp-inputs: Change input.
18978         * benchtests/pow-inputs: Likewise.
18979         * benchtests/slowexp-inputs: New file.
18980         * benchtests/slowexp.c: New file.
18981         * benchtests/slowpow-inputs: New file.
18982         * benchtests/slowpow.c: New file.
18983
18984 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18985
18986         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
18987         instructions.
18988         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
18989         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
18990         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
18991         * benchtests/Makefile: Add rint benchtest.
18992         * benchtests/rint-inputs: Input for rint benchtest.
18993
18994 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
18995
18996         * Versions.def (libm): Add GLIBC_2.18.
18997         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
18998         hidden libm prototypes.
18999         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
19000         * math/Makefile (libm-calls): Add s_issignaling.
19001         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
19002         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
19003         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
19004         declaration.
19005         * math/math.h [__USE_GNU] (issignaling): New macro.
19006         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
19007         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
19008         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
19009         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
19010         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
19011         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
19012         * manual/arith.texi (issignaling): New section.
19013         * manual/libm-err-tab.pl (@all_functions): Update comment.
19014         * math/gen-libm-test.pl (parse_args): Apply special handling for
19015         issignaling.
19016         * math/libm-test.inc (print_float, issignaling_test): New
19017         functions.
19018         (check_float_internal): Add issignaling checks.
19019         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
19020         default definition.
19021         * sysdeps/powerpc/math-tests.h: New file.
19022         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
19023         tests.
19024         * math/test-snan.c (TEST_FUNC): Likewise.
19025
19026 2013-03-30  David S. Miller  <davem@davemloft.net>
19027
19028         * po/de.po: Update from translation team.
19029
19030 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
19031
19032         [BZ #10357]
19033         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19034         imaginary part less than 1.0 and real part less than 0.5
19035         specially.
19036         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19037         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19038         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
19039         (cacos_test): Add more tests.
19040         (casin_test): Likewise.
19041         (casinh_test): Likewise.
19042         * sysdeps/i386/fpu/libm-test-ulps: Update.
19043         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19044
19045 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
19046
19047         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
19048         ONE with its value.
19049
19050         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
19051         (__pow_mp): Replace ONE and MONE with their values.
19052         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19053         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
19054         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19055         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
19056         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19057         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19058
19059         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
19060
19061         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
19062         (__pow_mp): Replace ZERO and MZERO with their values.
19063         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19064         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19065         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
19066         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
19067         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19068         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
19069         (__sqr): Likewise.
19070
19071         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
19072
19073         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
19074
19075 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19076
19077         * include/stdlib.h [!SHARED] (__call_tls_dtors):
19078         Declare with __attribute__ ((weak)).
19079         * stdlib/exit.c (__libc_atexit) [!SHARED]:
19080         Call __call_tls_dtors only if it's not NULL.
19081
19082 2013-03-28  Roland McGrath  <roland@hack.frob.com>
19083
19084         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
19085         didn't do it already, then set _dl_phdr and _dl_phnum based on the
19086         magic __ehdr_start linker symbol if it's defined.
19087         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
19088         them up here if it was already done.
19089
19090         * elf/dl-support.c (_dl_phdr): Make pointer to const.
19091         (_dl_aux_init): Use const in cast when setting it.
19092         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
19093         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
19094         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
19095
19096         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
19097         Declare them here.
19098         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
19099         * csu/libc-tls.c: Nor here.
19100         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
19101
19102         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
19103         (__libc_message): Never call vsyslog.
19104
19105 2013-03-28  Alan Modra  <amodra@gmail.com>
19106
19107         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
19108         Define as empty.
19109         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
19110         Likewise.
19111
19112 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19113
19114         [BZ #15214]
19115         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
19116         underflow.
19117         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19118
19119 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19120
19121         [BZ #15304]
19122         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
19123         Don't add gid passed as argument.
19124
19125         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
19126
19127 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
19128
19129         [BZ #15307]
19130         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19131         imaginary part between 1.0 and 1.5 and real part less than 0.5
19132         specially.
19133         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19134         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19135         * math/libm-test.inc (cacos_test): Add more tests.
19136         (casin_test): Likewise.
19137         (casinh_test): Likewise.
19138         * sysdeps/i386/fpu/libm-test-ulps: Update.
19139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19140
19141 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19142
19143         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
19144         constants.
19145         (norm): Likewise.
19146         (denorm): Likewise.
19147         (__dbl_mp): Likewise.
19148         (add_magnitudes): Likewise.
19149         (sub_magnitudes): Likewise.
19150         (__add): Likewise.
19151         (__sub): Likewise.
19152         (__mul): Likewise.
19153         (__sqr): Likewise.
19154         (__inv): Likewise.
19155         (__dvd): Likewise.
19156
19157         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
19158         commented code.
19159         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
19160         (__dubcos): Likewise.
19161         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
19162         (__ieee754_acos): Likewise.
19163         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
19164         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
19165         (__exp1): Likewise.
19166         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
19167         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
19168         (log1): Likewise.
19169         (my_log2): Likewise.
19170         (checkint): Likewise.
19171         * sysdeps/ieee754/dbl-64/e_remainder.c
19172         (__ieee754_remainder): Likewise.
19173         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
19174         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
19175         (bsloww): Likewise.
19176         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
19177
19178         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19179         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
19180         MANTISSA_STORE_T to store computations on mantissa.  Use
19181         macros for rounding and division.
19182         (denorm): Likewise.
19183         (__dbl_mp): Likewise.
19184         (add_magnitudes): Likewise.
19185         (sub_magnitudes): Likewise.
19186         (__mul): Likewise.
19187         (__sqr): Likewise.
19188         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19189         powers of two in terms of TWOPOW macro.
19190         (mp_no): Make type of mantissa as MANTISSA_T.
19191         [!RADIXI]: Define RADIXI.
19192         [!TWO52]: Define TWO52.
19193         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19194
19195 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19196
19197         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
19198         llroundl symbol when building for PPC32.
19199
19200 2013-03-24  Mark H Weaver  <mhw@netris.org>
19201
19202         * manual/arith.texi (Normalization Functions): Fix prototypes for
19203         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
19204
19205 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19206
19207         [BZ #13889]
19208         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
19209         high value to check if expl overflow.
19210         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
19211         to check for underflow and overflow.
19212         * math/libm-test.inc: Add exp test.
19213
19214 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
19215
19216         [BZ #11120]
19217         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
19218         with NOT_IN_libc.
19219
19220 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19221
19222         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
19223         symbol.
19224
19225 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19226
19227         * math/gen-libm-test.pl (parse_args, special_functions): Properly
19228         wrap blocks consisting of several statements.
19229
19230         * sysdeps/generic/math-tests.h: New file.
19231         * sysdeps/i386/fpu/math-tests.h: Likewise.
19232         * math/test-snan.c: Include it.
19233         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
19234
19235 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19236
19237         [BZ #15285]
19238         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
19239         (__ieee754_j0l): Do not improve calculations using cos of twice
19240         input for inputs above LDBL_MAX / 2.0L.
19241         (__ieee754_y0l): Likewise.
19242         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
19243         (__ieee754_j1l): Do not improve calculations using cos of twice
19244         input for inputs above LDBL_MAX / 2.0L.
19245         (__ieee754_y1l): Likewise.
19246         * math/libm-test.inc (j0_test): Add another test.
19247         (j1_test): Likewise.
19248         (y0_test): Likewise.
19249         (y1_test): Likewise.
19250         * sysdeps/i386/fpu/libm-test-ulps: Update.
19251
19252 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19253
19254         * Rules ($(objpfx)bench-%.c): Include code from a C source
19255         file.
19256
19257 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
19258
19259         [BZ #15287]
19260         * math/k_casinh.c (__kernel_casinh): Handle arguments with
19261         imaginary part 1.0 and real part less than 0.5 specially.
19262         * math/k_casinhf.c (__kernel_casinhf): Likewise.
19263         * math/k_casinhl.c (__kernel_casinhl): Likewise.
19264         * math/libm-test.inc (cacos_test): Add more tests.
19265         (casin_test): Likewise.
19266         (casinh_test): Likewise.
19267         * sysdeps/i386/fpu/libm-test-ulps: Update.
19268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19269
19270 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
19271
19272         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
19273         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
19274
19275 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
19276
19277         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
19278         * config.make.in (config-cflags-sse4): Remove variable.
19279         (config-cflags-avx): Likewise.
19280         (config-cflags-sse2avx): Likewise.
19281         (config-cflags-novzeroupper): Likewise.
19282         (config-asflags-i686): Likewise.
19283         (have-mfma4): Likewise.
19284         (have-as-vis3): Likewise.
19285         (MIG): Likewise.
19286         * configure.in (MIG): Do not AC_SUBST.
19287         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
19288         (libc_cv_cc_sse4): Do not AC_SUBST.
19289         (libc_cv_cc_avx): Likewise.
19290         (libc_cv_cc_sse2avx): Likewise.
19291         (libc_cv_cc_novzeroupper): Likewise.
19292         (libc_cv_cc_fma4): Likewise.
19293         (libc_cv_as_i686): Likewise.
19294         (libc_cv_sparc_as_vis3): Likewise.
19295         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
19296         LIBC_CONFIG_VAR.
19297         (config-asflags-i686): Likewise.
19298         (config-cflags-avx): Likewise.
19299         (config-cflags-sse2avx): Likewise.
19300         (have-mfma4): Likewise.
19301         (config-cflags-novzeroupper): Likewise.
19302         * sysdeps/mach/configure.in (MIG): Likewise.
19303         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
19304         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
19305         LIBC_CONFIG_VAR.
19306         (config-cflags-avx): Likewise.
19307         (config-cflags-sse2avx): Likewise.
19308         (have-mfma4): Likewise.
19309         (config-cflags-novzeroupper): Likewise.
19310         * configure: Regenerated.
19311         * sysdeps/i386/configure: Likewise.
19312         * sysdeps/mach/configure: Likewise.
19313         * sysdeps/sparc/configure: Likewise.
19314         * sysdeps/x86_64/configure: Likewise.
19315
19316 2013-03-20  Roland McGrath  <roland@hack.frob.com>
19317
19318         [BZ #14812]
19319         * locale/programs/localedef.c (options): Put N_ translation marker
19320         on argument names, not just descriptions.
19321
19322 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19323
19324         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
19325
19326 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
19327
19328         [BZ #14176]
19329         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
19330
19331 2013-03-19  Roland McGrath  <roland@hack.frob.com>
19332
19333         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
19334         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
19335         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
19336         [!BEFORE_ABORT] (before_abort): New function.
19337         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
19338         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
19339         (writev_for_fatal): New function.
19340         (WRITEV_FOR_FATAL): New macro; call that.
19341         (backtrace_and_maps): New function.
19342         (BEFORE_ABORT): New macro; call that.
19343         (struct str_list): Type removed.
19344         (__libc_message, __libc_fatal): Functions removed.
19345         Include <sysdeps/posix/libc_fatal.c> instead.
19346
19347 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
19348
19349         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
19350         constants.
19351         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
19352         double constants.
19353
19354 2013-03-19  Andreas Schwab  <schwab@suse.de>
19355
19356         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
19357         * sysdeps/gnu/configure: Regenerate.
19358
19359         * configure.in: Substitute libc_cv_rtlddir.
19360         * configure: Regenerate.
19361         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
19362         * Makeconfig (rtlddir, inst_rtlddir): New variables.
19363         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
19364         * elf/Makefile (install-others, CFLAGS-interp.c)
19365         (ldso_install, common-ldd-rewrite): Likewise.
19366         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
19367         $(inst_slibdir)/$(rtld-installed-name).
19368         * scripts/rellns-sh: Add -p option.
19369         * Makerules (make-shlib-link): Use rellns-sh to get relative name
19370         for source.
19371
19372 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
19373
19374         * manual/nptl.texi: Renamed to ...
19375         * manual/threads.texi: ... this.
19376         * manual/Makefile (chapters): Update.
19377
19378 2013-03-18  Roland McGrath  <roland@hack.frob.com>
19379
19380         [BZ #14812]
19381         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
19382         on argument names, not just descriptions.
19383         * malloc/memusagestat.c (options): Likewise.
19384         * nss/getent.c (options): Likewise.
19385
19386 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
19387
19388         [BZ #14812]
19389         * iconv/iconv_prog.c (options): Put N_ translation marker
19390         on argument names, not just descriptions.
19391         * iconv/iconvconfig.c (options): Likewise.
19392
19393 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
19394
19395         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
19396         implementation which is faster on all x86_64 architectures.
19397         Tested on AMD, Intel Nehalem, SNB, IVB.
19398         * sysdeps/x86_64/strnlen.S: Likewise.
19399
19400         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
19401         Remove all multiarch strlen and strnlen versions.
19402         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
19403         Remove strlen and strnlen related parts.
19404
19405         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
19406         Inline strlen part.
19407         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
19408
19409         * sysdeps/x86_64/multiarch/strlen.S: Remove.
19410         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
19411         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
19412         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
19413         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
19414         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
19415
19416 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
19417
19418         * manual/memory.texi (Malloc Tunable Parameters):
19419         Sort parameters alphabetically. Add comments for missing entries.
19420
19421 2013-03-17  David S. Miller  <davem@davemloft.net>
19422
19423         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19424
19425 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
19426
19427         [BZ #15283]
19428         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
19429         for arguments at most half maximum finite value.
19430         * math/libm-test.inc (j0_test): Add more tests.
19431         (j1_test): Likewise.
19432         (y0_test): Likewise.
19433         (y1_test): Likewise.
19434         * sysdeps/i386/fpu/libm-test-ulps: Update.
19435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19436
19437         [BZ #14155]
19438         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
19439         1 / x and functions P and Q for arguments above 0x1p256L.
19440         (__ieee754_y0l): Likewise.
19441         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
19442         (__ieee754_y1l): Likewise.
19443         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
19444         (j1_test): Likewise.
19445         (y0_test): Likewise.
19446         (y1_test): Likewise.
19447
19448 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
19449
19450         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
19451         variable.
19452
19453 2013-03-15  Roland McGrath  <roland@hack.frob.com>
19454
19455         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
19456         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
19457         zero since it's initialized to EXEC_PAGESIZE.
19458
19459         * sysdeps/unix/sysv/linux/ldsodefs.h
19460         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
19461         * sysdeps/generic/ldsodefs.h: ... here.
19462
19463 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
19464
19465         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
19466
19467         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
19468         math/test-snan.c.
19469         * math/test-snan.c: Renamed from
19470         sysdeps/powerpc/fpu/test-powerpc-snan.c.
19471         * math/Makefile (tests): Add test-snan.
19472         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
19473         test-powerpc-snan.
19474
19475         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
19476         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
19477         functions.
19478         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
19479         __builtin_nan family of functions.
19480         * math/libm-test.inc (initialize): Initialize qnan_value with
19481         __builtin_nan family of functions.
19482         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
19483         Remove variables.
19484         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
19485         Remove functions.
19486         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
19487         storage class.  Initialize qNaN_var and sNaN_var with
19488         __builtin_nan and __builtin_nans families of functions,
19489         respectively.
19490
19491         * math/libm-test.inc (acosh_test): Also test with qNaN input.
19492         (sqrt_test): Remove duplicate test with qNaN input.
19493         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
19494         (round_test, signbit_test, significand_test): Note missing +/-Inf
19495         as well as qNaN tests.
19496
19497         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
19498         qNaN_var.  Fix a few strings, too.
19499         * math/libm-test.inc (nan_value): Rename to qnan_value.
19500         * math/gen-libm-test.pl (%beautify): Adjust to that.
19501         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
19502         * math/test-misc.c (main): Likewise.
19503         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
19504         to __qnan_bytes, and __qnan_union, respectively.
19505         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
19506         Likewise.
19507         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
19508         and lqnanval, respectively.
19509         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
19510         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
19511         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
19512         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
19513
19514         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
19515         * math/test-misc.c (main) [__x86_64__]: Enable test for long
19516         doubles.
19517
19518         * math/test-misc.c (main): Fix copy'n'pastos.
19519         * misc/tst-efgcvt.c (special): Likewise.
19520
19521         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
19522         Remove declarations.
19523
19524 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19525
19526         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
19527         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
19528         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
19529         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
19530
19531 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19532
19533         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
19534         macro to return vdso values correctly in IFUNC implementations.
19535         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
19536         Optimization by using IFUNC.
19537
19538 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19539             Richard Henderson  <rth@redhat.com>
19540             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19541
19542         * Makefile.in (bench): New target.
19543         * NEWS: Mention the benchmark framework.
19544         * Rules (bench): Likewise.
19545         (binaries-bench): Generate binaries for functions to
19546         benchmark.
19547         * benchtests/Makefile: New makefile for benchmark tests.
19548         * benchtests/bench-skeleton.c: New skeleton file for benchmark
19549         programs.
19550         * benchtests/exp-inputs: New input file for EXP function.
19551         * benchtests/pow-inputs: New input file for POW function.
19552         * scripts/bench.pl: New script to generate source files for
19553         benchmark programs.
19554
19555 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
19556
19557         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
19558         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
19559         computations on mantissa.  Use macros for rounding and
19560         division.
19561         (denorm): Likewise.
19562         (__dbl_mp): Likewise.
19563         (add_magnitudes): Likewise.
19564         (sub_magnitudes): Likewise.
19565         (__mul): Likewise.
19566         (__sqr): Likewise.
19567         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
19568         powers of two in terms of TWOPOW macro.
19569         (mp_no): Make type of mantissa as MANTISSA_T.
19570         [!RADIXI]: Define RADIXI.
19571         [!TWO52]: Define TWO52.
19572         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
19573
19574         * manual/nptl.texi (cindex): Modify threads to pthreads.
19575
19576 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
19577
19578         * sysdeps/x86_64/preconfigure: Regenerated.
19579
19580 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
19581
19582         [BZ #14155]
19583         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
19584         0x1p28 and above.
19585         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
19586         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
19587         0x1p28 and above.
19588         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
19589         * math/libm-test.inc (j0_test): Do not allow one spurious
19590         underflow exception.
19591         (y1_test): Likewise.
19592
19593 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
19594
19595         * manual/Makefile (chapters): Add nptl.
19596         * manual/debug.texi (Debugging Support): Add link to Threads
19597         chapter.
19598         * manual/nptl.texi: New file.
19599
19600         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
19601
19602 2013-03-14  Petr Baudis  <pasky@ucw.cz>
19603
19604         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
19605         for non-NULL pointer before the memory validity test. Pointed
19606         out by Holger Brunck <holger.brunck@keymile.com>.
19607
19608 2013-03-13  Andreas Schwab  <schwab@suse.de>
19609
19610         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
19611         instead of .os.
19612
19613 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
19614
19615         * timezone/zic.c: Update from tzcode 2013b.
19616
19617 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
19618
19619         * manual/install.texi (Configuring and compiling):
19620         Mention i686 and i586.
19621         * INSTALL: Regenerate.
19622
19623 2013-03-12  Roland McGrath  <roland@hack.frob.com>
19624
19625         * sysdeps/init_array/elf-init.c: New file.
19626         * csu/elf-init.c
19627         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
19628         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
19629
19630         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
19631         __gmon_start__ as global, but as static with a .preinit_array pointer.
19632         * sysdeps/init_array/gmon-start.c: New file.  Use that.
19633         * sysdeps/init_array/crti.S: New file, empty except for comments.
19634         * sysdeps/init_array/crtn.S: Likewise.
19635
19636 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
19637
19638         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
19639         definining bcopy.
19640         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19641         Remove Prefer_SSE_for_memop.
19642         * sysdeps/x86_64/multiarch/init-arch.h: Remove
19643         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
19644         HAS_PREFER_SSE_FOR_MEMOP.
19645         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
19646         memset-x86-64.
19647         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
19648         Remove bzero, memset ifunc support.
19649         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
19650         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
19651         * sysdeps/x86_64/multiarch/memset.S: Likewise.
19652         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
19653
19654 2013-03-11  Andreas Schwab  <schwab@suse.de>
19655
19656         [BZ #15234]
19657         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
19658         by SHLIB_COMPAT.
19659         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
19660         (GLIBC_2.16): Remove pthread_atfork.
19661
19662 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
19663
19664         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
19665         (ptestcases.h): Likewise.
19666
19667 2013-03-08  Roland McGrath  <roland@hack.frob.com>
19668
19669         * Makeconfig ($(common-objpfx)config.status): Depend on
19670         sysdeps/*/preconfigure{,.in} too.
19671
19672 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
19673
19674         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
19675         (__free_hook): Use void * instead of __malloc_ptr_t.
19676         (__malloc_hook): Likewise.
19677         (__realloc_hook): Likewise.
19678         (__memalign_hook): Likewise.
19679         (__after_morecore_hook): Likewise.
19680         * malloc/arena.c (save_malloc_hook): Likewise.
19681         (save_free_hook): Likewise.
19682         * malloc/hooks.c (malloc_hook_ini): Likewise.
19683         (realloc_hook_ini): Likewise.
19684         (memalign_hook_ini): Likewise.
19685         * malloc/malloc.c (malloc_hook_ini): Likewise.
19686         (realloc_hook_ini): Likewise.
19687         (memalign_hook_ini): Likewise.
19688         (__free_hook): Likewise.
19689         (__malloc_hook): Likewise.
19690         (__realloc_hook): Likewise.
19691         (__memalign_hook): Likewise.
19692         (__libc_malloc): Likewise.
19693         (__libc_free): Likewise.
19694         (__libc_realloc): Likewise.
19695         (__libc_memalign): Likewise.
19696         (__libc_valloc): Likewise.
19697         (__libc_pvalloc): Likewise.
19698         (__libc_calloc): Likewise.
19699         (__posix_memalign): Likewise.
19700         * malloc/morecore.c (__sbrk): Likewise.
19701         (__default_morecore): Likewise.
19702
19703         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
19704
19705         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
19706         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
19707         __malloc_ptrdiff_t.
19708
19709         * malloc/malloc.h (__malloc_size_t): Remove macro.
19710         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
19711         __malloc_size_t.
19712         (old_memalign_hook): Likewise.
19713         (old_realloc_hook): Likewise.
19714         (struct hdr): Likewise.
19715         (flood): Likewise.
19716         (mallochook): Likewise.
19717         (memalignhook): Likewise.
19718         (reallochook): Likewise.
19719         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
19720         (tr_old_realloc_hook): Likewise.
19721         (tr_old_memalign_hook): Likewise.
19722         (tr_mallochook): Likewise.
19723         (tr_reallochook): Likewise.
19724         (tr_memalignhook): Likewise.
19725
19726 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19727
19728         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
19729         default_ldbl_pack and using as default implementation.
19730         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
19731         implementation.
19732         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
19733         redundant definition.
19734         (ldbl_insert_mantissa): Likewise.
19735         (ldbl_canonicalize): Likewise.
19736         (ldbl_nearbyint): Likewise.
19737         (ldbl_pack): Rename to ldbl_pack_ppc.
19738         (ldbl_unpack): Rename to ldbl_unpack_ppc.
19739         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
19740         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
19741
19742 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
19743
19744         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
19745         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
19746         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
19747         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
19748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
19749         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
19750         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
19751         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
19752
19753 2013-03-07  Andreas Jaeger  <aj@suse.de>
19754
19755         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19756         bits/mman-linux.h.
19757
19758 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
19759
19760         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
19761         Include mpa.h and declare __MPEXP.
19762         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
19763         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
19764         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
19765         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
19766         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
19767         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
19768         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
19769
19770         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
19771         (__slowpow): Use long double EXPL and LOGL functions to
19772         compute POW.
19773         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
19774         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
19775         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
19776         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
19777         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
19778         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
19779
19780         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
19781         intermediate variable to calculate exponent.
19782         (__sqr): Likewise.
19783         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
19784         Likewise.
19785         (__sqr): Likewise.
19786
19787         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
19788         [!NO__SQR]: Define __sqr.
19789         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
19790         and NO__SQR.  Remove all code except __mul and __sqr.  Include
19791         sysdeps/ieee754/dbl-64/mpa.c.
19792         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
19793
19794         [BZ #12723]
19795         * posix/Makefile (tests): Add tst-pathconf.
19796         * posix/tst-pathconf.c: New test case.
19797         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
19798         _PC_PIPE_BUF.
19799         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
19800
19801 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
19802
19803         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
19804
19805 2013-03-06  Andreas Jaeger  <aj@suse.de>
19806
19807         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
19808         definition via __MAP_ANONYMOUS.
19809
19810         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
19811         it's not part of Linux headers.
19812
19813         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
19814         (MAP_HUGE_MASK): Define.
19815
19816         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19817         Define.
19818         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19819         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19820         Define.
19821         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19822         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
19823         Define.
19824         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19825         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
19826         Define.
19827         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
19828
19829         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
19830         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
19831         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
19832         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
19833         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
19834         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
19835
19836         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19837         Handle f2fs.
19838
19839         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19840         Handle f2fs and efivarfs.
19841
19842         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
19843         f2fs.
19844
19845         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
19846         (EFIVARFS_MAGIC): Add.
19847         (F2FS_LINK_MAX): Add.
19848
19849 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
19850
19851         * stdio-common/vfprintf.c: Replace __builtin_expect with
19852         __glibc_unlikely.
19853
19854 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
19855
19856         [BZ #13550]
19857         * sysdeps/generic/bp-sym.h: Remove file.
19858         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
19859         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
19860         <bp-sym.h> and <bp-asm.h>.
19861         (__longjmp): Don't use BP_SYM.
19862         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
19863         and <bp-asm.h>.
19864         (memcpy): Don't use BP_SYM.
19865         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
19866         <bp-sym.h> and <bp-asm.h>.
19867         (memcpy): Don't use BP_SYM.
19868         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
19869         <bp-asm.h>.
19870         (memcpy): Don't use BP_SYM.
19871         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
19872         <bp-asm.h>.
19873         (memset): Don't use BP_SYM.
19874         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19875         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19876         (__bzero): Don't use BP_SYM.
19877         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19878         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19879         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
19880         <bp-sym.h> and <bp-asm.h>.
19881         (memcmp): Don't use BP_SYM.  Remove comment about bounded
19882         pointers.
19883         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
19884         <bp-sym.h> and <bp-asm.h>.
19885         (memcpy): Don't use BP_SYM.
19886         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
19887         <bp-sym.h> and <bp-asm.h>.
19888         (memset): Don't use BP_SYM.
19889         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19890         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19891         (__bzero): Don't use BP_SYM.
19892         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19893         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19894         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
19895         <bp-sym.h> and <bp-asm.h>.
19896         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19897         pointers.
19898         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
19899         <bp-sym.h> and <bp-asm.h>.
19900         (memcpy): Don't use BP_SYM.
19901         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
19902         <bp-sym.h> and <bp-asm.h>.
19903         (memset): Don't use BP_SYM.
19904         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
19905         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
19906         (__bzero): Don't use BP_SYM.
19907         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
19908         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
19909         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
19910         <bp-sym.h> and <bp-asm.h>.
19911         (__memchr): Don't use BP_SYM.
19912         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
19913         <bp-sym.h> and <bp-asm.h>.
19914         (memcmp): Don't use BP_SYM.  Remove comment about bounded
19915         pointers.
19916         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
19917         <bp-sym.h> and <bp-asm.h>.
19918         (memcpy): Don't use BP_SYM.
19919         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
19920         <bp-sym.h> and <bp-asm.h>.
19921         (__mempcpy): Don't use BP_SYM.
19922         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
19923         <bp-sym.h> and <bp-asm.h>.
19924         (__memrchr): Don't use BP_SYM.
19925         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
19926         <bp-sym.h> and <bp-asm.h>.
19927         (memset): Don't use BP_SYM.
19928         (__bzero): Likewise.
19929         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
19930         <bp-sym.h> and <bp-asm.h>.
19931         (__rawmemchr): Don't use BP_SYM.
19932         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
19933         <bp-sym.h> and <bp-asm.h>.
19934         (__STRCMP): Don't use BP_SYM.
19935         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
19936         <bp-sym.h> and <bp-asm.h>.
19937         (strchr): Don't use BP_SYM.
19938         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
19939         <bp-sym.h> and <bp-asm.h>.
19940         (__strchrnul): Don't use BP_SYM.
19941         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
19942         <bp-sym.h> and <bp-asm.h>.
19943         (strlen): Don't use BP_SYM.
19944         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
19945         <bp-sym.h> and <bp-asm.h>.
19946         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19947         pointers.
19948         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
19949         <bp-sym.h> and <bp-asm.h>.
19950         (__strnlen): Don't use BP_SYM.
19951         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
19952         <bp-sym.h> and <bp-asm.h>.
19953         (__GI__setjmp): Don't use BP_SYM.
19954         (_setjmp): Likewise.
19955         (__sigsetjmp): Likewise.
19956         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
19957         (L(start_addresses)): Don't use BP_SYM.
19958         (_start): Likewise.
19959         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
19960         <bp-asm.h>.
19961         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
19962         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
19963         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19964         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19965         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
19966         <bp-asm.h>.
19967         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
19968         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
19969         about bounded pointers.
19970         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
19971         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
19972         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
19973         <bp-asm.h>.
19974         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
19975         about bounded pointers.  Remove GKM FIXME comments.
19976         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
19977         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
19978         <bp-asm.h>.
19979         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
19980         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
19981         Remove GKM FIXME comments.
19982         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
19983         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
19984         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
19985         <bp-asm.h>.
19986         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
19987         about bounded pointers.  Remove GKM FIXME comment.
19988         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
19989         and <bp-asm.h>.
19990         (strncmp): Don't use BP_SYM.  Remove comment about bounded
19991         pointers.
19992         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
19993         <bp-sym.h> and <bp-asm.h>.
19994         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
19995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
19996         <bp-sym.h> and <bp-asm.h>.
19997         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
19998         comment.
19999
20000 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20001
20002         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
20003         call free(NULL).
20004
20005 2013-03-05  David S. Miller  <davem@davemloft.net>
20006
20007         * po/es.po: Update from translation team.
20008
20009 2013-03-05  Andreas Jaeger  <aj@suse.de>
20010
20011         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
20012         <bits/mman-linux.h>.
20013         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20014         is fine.
20015         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
20016         <bits/mman-linux.h> to end of file.
20017         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20018         is fine.
20019         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
20020         <bits/mman-linux.h> to end of file.
20021         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
20022         is fine.
20023         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
20024         <bits/mman-linux.h> to end of file.
20025
20026         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
20027         (MCL_CURRENT, MCL_FUTURE): Define here.
20028
20029 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20030
20031         [BZ #15232]
20032         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
20033         attribute_hidden.
20034         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
20035
20036 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20037
20038         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
20039         fourth parameter needed for rt_sigprocmask syscall.
20040         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
20041         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
20042         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
20043         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
20044         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
20045         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
20046
20047 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
20048
20049         [BZ #13550]
20050         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
20051         comment about bounded pointers.
20052         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
20053         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
20054
20055 2013-03-04  Andreas Jaeger  <aj@suse.de>
20056
20057         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
20058         common definitions.
20059
20060         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
20061         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
20062         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
20063         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20064         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20065         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20066
20067 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20068
20069         [BZ #15055]
20070         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
20071         __ieee754_sqrl instead of __sqrl.
20072
20073 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
20074
20075         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
20076         * sysdeps/powerpc/fpu_control.h: ... here.
20077         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
20078         * sysdeps/powerpc/bits/fenvinline.h: ... here.
20079         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
20080         * sysdeps/powerpc/bits/mathinline.h: ... here.
20081
20082 2013-03-01  Roland McGrath  <roland@hack.frob.com>
20083
20084         * elf/dl-hwcaps.c (_dl_important_hwcaps):
20085         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
20086         to just [NEED_DL_SYSINFO_DSO].
20087         * elf/dl-support.c: Likewise.
20088         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
20089         * elf/rtld.c (dl_main): Likewise.
20090         * elf/setup-vdso.h (setup_vdso): Likewise.
20091         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
20092         * sysdeps/unix/sysv/linux/dl-sysdep.c
20093         (_dl_discover_osversion): Likewise.
20094
20095 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
20096
20097         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
20098         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20099
20100 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
20101
20102         * NEWS: Mention libm performance improvements and non-x86 PI
20103         futex support.
20104
20105         * csu/libc-start.c (__pthread_initialize_minimal): Change
20106         function arguments.
20107         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
20108
20109 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
20110
20111         [BZ #13550]
20112         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
20113         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
20114         <bp-sym.h> and <bp-asm.h>.
20115         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20116         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
20117         and <bp-asm.h>.
20118         (memcpy): Don't use BP_SYM.
20119         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
20120         <bp-asm.h>.
20121         (__mpn_add_n): Don't use BP_SYM.
20122         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
20123         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
20124         and <bp-asm.h>.
20125         (__mpn_addmul_1): Don't use BP_SYM.
20126         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20127         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
20128         <bp-sym.h>.
20129         (_setjmp): Don't use BP_SYM.
20130         (__novmx_setjmp): Likewise.
20131         (__GI__setjmp): Likewise.
20132         (__vmx_setjmp): Likewise.
20133         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
20134         <bp-sym.h>.
20135         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
20136         (__bzero): Don't use BP_SYM.
20137         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
20138         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
20139         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
20140         <bp-sym.h> and <bp-asm.h>.
20141         (memcpy): Don't use BP_SYM.
20142         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
20143         <bp-sym.h> and <bp-asm.h>.
20144         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20145         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
20146         <bp-sym.h> and <bp-asm.h>.
20147         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
20148         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
20149         <bp-asm.h>.
20150         (__mpn_lshift): Don't use BP_SYM.
20151         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20152         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
20153         <bp-asm.h>.
20154         (memset): Don't use BP_SYM.
20155         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
20156         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
20157         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
20158         <bp-asm.h>.
20159         (__mpn_mul_1): Don't use BP_SYM.
20160         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20161         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
20162         <bp-sym.h> and <bp-asm.h>.
20163         (memcmp): Don't use BP_SYM.
20164         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
20165         <bp-sym.h> and <bp-asm.h>.
20166         (memcpy): Don't use BP_SYM.
20167         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
20168         <bp-sym.h> and <bp-asm.h>.
20169         (memset): Don't use BP_SYM.
20170         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
20171         <bp-sym.h> and <bp-asm.h>.
20172         (strncmp): Don't use BP_SYM.
20173         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
20174         <bp-sym.h> and <bp-asm.h>.
20175         (memcpy): Don't use BP_SYM.
20176         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
20177         <bp-sym.h> and <bp-asm.h>.
20178         (memset): Don't use BP_SYM.
20179         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
20180         <bp-sym.h> and <bp-asm.h>.
20181         (__memchr): Don't use BP_SYM.
20182         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
20183         <bp-sym.h> and <bp-asm.h>.
20184         (memcmp): Don't use BP_SYM.
20185         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
20186         <bp-sym.h> and <bp-asm.h>.
20187         (memcpy): Don't use BP_SYM.
20188         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
20189         <bp-sym.h> and <bp-asm.h>.
20190         (__mempcpy): Don't use BP_SYM.
20191         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
20192         <bp-sym.h> and <bp-asm.h>.
20193         (__memrchr): Don't use BP_SYM.
20194         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
20195         <bp-sym.h> and <bp-asm.h>.
20196         (memset): Don't use BP_SYM.
20197         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
20198         <bp-sym.h> and <bp-asm.h>.
20199         (__rawmemchr): Don't use BP_SYM.
20200         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
20201         <bp-sym.h> and <bp-asm.h>.
20202         (__STRCMP): Don't use BP_SYM.
20203         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
20204         <bp-sym.h> and <bp-asm.h>.
20205         (strchr): Don't use BP_SYM.
20206         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
20207         <bp-sym.h> and <bp-asm.h>.
20208         (__strchrnul): Don't use BP_SYM.
20209         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
20210         <bp-sym.h> and <bp-asm.h>.
20211         (strlen): Don't use BP_SYM.
20212         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
20213         <bp-sym.h> and <bp-asm.h>.
20214         (strncmp): Don't use BP_SYM.
20215         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
20216         <bp-sym.h> and <bp-asm.h>.
20217         (__strnlen): Don't use BP_SYM.
20218         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
20219         <bp-asm.h>.
20220         (__mpn_rshift): Don't use BP_SYM.
20221         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20222         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
20223         <bp-sym.h> and <bp-asm.h>.
20224         (__sigsetjmp): Don't use BP_SYM.
20225         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
20226         (L(start_addresses)): Don't use BP_SYM.
20227         (_start): Likewise.
20228         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
20229         <bp-asm.h>.
20230         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
20231         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20232         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20233         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
20234         <bp-asm.h>.
20235         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
20236         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20237         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20238         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
20239         <bp-asm.h>.
20240         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20241         comments.
20242         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20243         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
20244         <bp-asm.h>.
20245         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
20246         FIXME comments.
20247         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20248         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
20249         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
20250         <bp-asm.h>.
20251         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
20252         comment.
20253         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
20254         and <bp-asm.h>.
20255         (strncmp): Don't use BP_SYM,
20256         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
20257         <bp-asm.h>.
20258         (__mpn_sub_n): Don't use BP_SYM.
20259         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20260         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
20261         and <bp-asm.h>.
20262         (__mpn_submul_1): Don't use BP_SYM.
20263         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
20265         <bp-sym.h> and <bp-asm.h>.
20266         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
20267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
20268         <bp-sym.h> and <bp-asm.h>.
20269         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
20270         comment.
20271
20272 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
20273
20274         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
20275         Use ZK to minimize writes to Z.
20276         (sub_magnitudes): Simplify code a bit.
20277         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
20278         Use ZK to minimize writes to Z.
20279         (sub_magnitudes): Simplify code a bit.
20280
20281 2013-02-27  Roland McGrath  <roland@hack.frob.com>
20282
20283         * csu/gmon-start.c: Add special exception to license text.
20284
20285 2013-02-27  Richard Henderson  <rth@redhat.com>
20286
20287         * scripts/config.guess: Update from config.git.
20288         * scripts/config.sub: Likewise.
20289
20290 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
20291
20292         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
20293
20294         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
20295
20296         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
20297
20298         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
20299
20300         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
20301
20302 2013-02-26  Roland McGrath  <roland@hack.frob.com>
20303
20304         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
20305         [$(build-shared = yes].
20306
20307 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20308
20309         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
20310         (__mul): Reduce iterations for calculating mantissa.
20311
20312         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
20313         MPTWO.
20314         (__mpranred): Likewise.
20315
20316         [BZ #15160]
20317         * malloc/memusagestat.c (main): Draw graphs for heap and stack
20318         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
20319
20320 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
20321
20322         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
20323         Define __attribute__.
20324
20325 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20326
20327         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
20328         unused.
20329         * posix/regex_internal.h (__attribute): Remove.
20330         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
20331         (re_string_context_at): Likewise.
20332         (bitset_not): Use __attribute__ and mark function as possibly
20333         unused.
20334         (bitset_merge): Likewise.
20335         (bitset_mask): Likewise.
20336         (re_string_char_size_at): Likewise.
20337         (re_string_wchar_at): Likewise.
20338         (re_string_elem_size_at): Likewise.
20339
20340 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20341
20342         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
20343         code.
20344         (cc32): Likewise.
20345
20346         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
20347         (__acr): Likewise.
20348         (__cpy): Likewise.
20349         (norm): Likewise.
20350         (denorm): Likewise.
20351         (__dbl_mp): Likewise.
20352         (add_magnitudes): Likewise.
20353         (sub_magnitudes): Likewise.
20354         (__mul): Likewise.
20355         (__inv): Likewise.
20356
20357         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
20358         style.
20359
20360         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
20361         style.
20362
20363         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
20364         code.
20365
20366         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
20367         up changes with default code.
20368         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
20369         Likewise.
20370
20371 2013-02-24  Allan McRae  <allan@archlinux.org>
20372
20373         * manual/socket.texi (The Internet Namespace): Order menu items
20374         to match that in the file.
20375
20376         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
20377         node listing of the info page menu.
20378
20379 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
20380
20381         [BZ #13550]
20382         * sysdeps/i386/bp-asm.h: Remove file.
20383         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20384         (PARMS): Do not use macros from bp-asm.h.
20385         (S1): Likewise.
20386         (S2): Likewise.
20387         (SIZE): Likewise.
20388         (__mpn_add_n): Do not use BP_SYM
20389         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
20390         "bp-asm.h".
20391         (PARMS): Do not use macros from bp-asm.h.
20392         (S1): Likewise.
20393         (SIZE): Likewise.
20394         (__mpn_addmul_1): Do not use BP_SYM
20395         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
20396         "bp-asm.h".
20397         (PARMS): Do not use macros from bp-asm.h.
20398         (SIGMSK): Likewise.
20399         (_setjmp): Likewise.  Do not use BP_SYM.
20400         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
20401         "bp-asm.h".
20402         (PARMS): Do not use macros from bp-asm.h.
20403         (SIGMSK): Likewise.
20404         (setjmp): Likewise.  Do not use BP_SYM.
20405         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
20406         "bp-asm.h".
20407         (PARMS): Do not use macros from bp-asm.h.
20408         (__frexp): Do not use BP_SYM.
20409         (frexp): Likewise.
20410         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
20411         "bp-asm.h".
20412         (PARMS): Do not use macros from bp-asm.h.
20413         (__frexpf): Do not use BP_SYM.
20414         (frexpf): Likewise.
20415         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
20416         "bp-asm.h".
20417         (PARMS): Do not use macros from bp-asm.h.
20418         (__frexpl): Do not use BP_SYM.
20419         (frexpl): Likewise.
20420         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
20421         "bp-asm.h".
20422         (PARMS): Do not use macros from bp-asm.h.
20423         (__remquo): Do not use BP_SYM.
20424         (remquo): Likewise.
20425         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
20426         "bp-asm.h".
20427         (PARMS): Do not use macros from bp-asm.h.
20428         (__remquof): Do not use BP_SYM.
20429         (remquof): Likewise.
20430         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
20431         "bp-asm.h".
20432         (PARMS): Do not use macros from bp-asm.h.
20433         (__remquol): Do not use BP_SYM.
20434         (remquol): Likewise.
20435         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
20436         "bp-asm.h".
20437         (PARMS): Do not use macros from bp-asm.h.
20438         (DEST): Likewise.
20439         (SRC): Likewise.
20440         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
20441         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
20442         "bp-asm.h".
20443         (PARMS): Do not use macros from bp-asm.h.
20444         (strlen): Do not use BP_SYM.
20445         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
20446         "bp-asm.h".
20447         (PARMS): Do not use macros from bp-asm.h.
20448         (S1): Likewise.
20449         (S2): Likewise.
20450         (SIZE): Likewise.
20451         (__mpn_add_n): Do not use BP_SYM.
20452         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
20453         "bp-asm.h".
20454         (PARMS): Do not use macros from bp-asm.h.
20455         (S1): Likewise.
20456         (SIZE): Likewise.
20457         (__mpn_addmul_1): Do not use BP_SYM.
20458         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
20459         weak_alias.
20460         (bzero): Likewise.
20461         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
20462         "bp-asm.h".
20463         (PARMS): Do not use macros from bp-asm.h.
20464         (S): Likewise.
20465         (SIZE): Likewise.
20466         (__mpn_lshift): Do not use BP_SYM.
20467         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
20468         "bp-asm.h".
20469         (PARMS): Do not use macros from bp-asm.h.
20470         (DEST): Likewise.
20471         (SRC): Likewise.
20472         (LEN): Likewise.
20473         (memcpy): Likewise.  Do not use BP_SYM.
20474         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
20475         libc_hidden_def and weak_alias.
20476         (mempcpy): Do not use BP_SYM in weak_alias.
20477         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
20478         "bp-asm.h".
20479         (PARMS): Do not use macros from bp-asm.h.
20480         (DEST): Likewise.
20481         (LEN): Likewise.
20482         [!BZERO_P] (CHR): Likewise.
20483         (memset): Likewise.  Do not use BP_SYM.
20484         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
20485         "bp-asm.h".
20486         (PARMS): Do not use macros from bp-asm.h.
20487         (S1): Likewise.
20488         (SIZE): Likewise.
20489         (__mpn_mul_1): Do not use BP_SYM.
20490         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
20491         "bp-asm.h".
20492         (PARMS): Do not use macros from bp-asm.h.
20493         (S): Likewise.
20494         (SIZE): Likewise.
20495         (__mpn_rshift): Do not use BP_SYM.
20496         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
20497         "bp-asm.h".
20498         (PARMS): Do not use macros from bp-asm.h.
20499         (STR): Likewise.
20500         (CHR): Likewise.
20501         (strchr): Likewise.  Do not use BP_SYM.
20502         (index): Do not use BP_SYM in weak_alias.
20503         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
20504         "bp-asm.h".
20505         (PARMS): Do not use macros from bp-asm.h.
20506         (DEST): Likewise.
20507         (SRC): Likewise.
20508         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
20509         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
20510         "bp-asm.h".
20511         (PARMS): Do not use macros from bp-asm.h.
20512         (strlen): Do not use BP_SYM.
20513         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
20514         "bp-asm.h".
20515         (PARMS): Do not use macros from bp-asm.h.
20516         (S1): Likewise.
20517         (S2): Likewise.
20518         (SIZE): Likewise.
20519         (__mpn_sub_n): Do not use BP_SYM.
20520         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
20521         "bp-asm.h".
20522         (PARMS): Do not use macros from bp-asm.h.
20523         (S1): Likewise.
20524         (SIZE): Likewise.
20525         (__mpn_submul_1): Do not use BP_SYM.
20526         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
20527         "bp-asm.h".
20528         (PARMS): Do not use macros from bp-asm.h.
20529         (S1): Likewise.
20530         (S2): Likewise.
20531         (SIZE): Likewise.
20532         (__mpn_add_n): Do not use BP_SYM.
20533         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
20534         weak_alias.
20535         (bzero): Likewise.
20536         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
20537         "bp-asm.h".
20538         (PARMS): Do not use macros from bp-asm.h.
20539         (BLK2): Likewise.
20540         (LEN): Likewise.
20541         (memcmp): Do not use BP_SYM.
20542         (bcmp): Do not use BP_SYM in weak_alias.
20543         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
20544         "bp-asm.h".
20545         (PARMS): Do not use macros from bp-asm.h.
20546         (DEST): Likewise.
20547         (SRC): Likewise.
20548         (LEN): Likewise.
20549         (memcpy): Likewise.  Do not use BP_SYM.
20550         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
20551         "bp-asm.h".
20552         (PARMS): Do not use macros from bp-asm.h.
20553         (DEST): Likewise.
20554         (SRC): Likewise.
20555         (LEN): Likewise.
20556         (memmove): Likewise.  Do not use BP_SYM.
20557         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
20558         "bp-asm.h".
20559         (PARMS): Do not use macros from bp-asm.h.
20560         (DEST): Likewise.
20561         (SRC): Likewise.
20562         (LEN): Likewise.
20563         (__mempcpy): Likewise.  Do not use BP_SYM.
20564         (mempcpy): Do not use BP_SYM in weak_alias.
20565         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
20566         "bp-asm.h".
20567         (PARMS): Do not use macros from bp-asm.h.
20568         (DEST): Likewise.
20569         (LEN): Likewise.
20570         [!BZERO_P] (CHR): Likewise.
20571         (memset): Likewise.  Do not use BP_SYM.
20572         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
20573         "bp-asm.h".
20574         (PARMS): Do not use macros from bp-asm.h.
20575         (STR2): Likewise.
20576         (strcmp): Do not use BP_SYM.
20577         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
20578         "bp-asm.h".
20579         (PARMS): Do not use macros from bp-asm.h.
20580         (STR): Likewise.
20581         (DELIM): Likewise.
20582         [USE_AS_STRTOK_R] (SAVE): Likewise.
20583         (FUNCTION): Likewise.  Do not use BP_SYM.
20584         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
20585         aliases.
20586         (strtok_r): Likewise.
20587         (__GI___strtok_r): Likewise.
20588         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20589         (PARMS): Do not use macros from bp-asm.h.
20590         (S): Likewise.
20591         (SIZE): Likewise.
20592         (__mpn_lshift): Do not use BP_SYM.
20593         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20594         (PARMS): Do not use macros from bp-asm.h.
20595         (STR): Likewise.
20596         (CHR): Likewise.
20597         (__memchr): Do not use BP_SYM.
20598         (memchr): Do not use BP_SYM in weak_alias.
20599         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20600         (PARMS): Do not use macros from bp-asm.h.
20601         (BLK2): Likewise.
20602         (LEN): Likewise.
20603         (memcmp): Do not use BP_SYM.
20604         (bcmp): Do not use BP_SYM in weak_alias.
20605         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
20606         (PARMS): Do not use macros from bp-asm.h.
20607         (S1): Likewise.
20608         (SIZE): Likewise.
20609         (__mpn_mul_1): Do not use BP_SYM.
20610         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
20611         "bp-asm.h".
20612         (PARMS): Do not use macros from bp-asm.h.
20613         (STR): Likewise.
20614         (CHR): Likewise.
20615         (__rawmemchr): Do not use BP_SYM.
20616         (rawmemchr): Do not use BP_SYM in weak_alias.
20617         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
20618         (PARMS): Do not use macros from bp-asm.h.
20619         (S): Likewise.
20620         (SIZE): Likewise.
20621         (__mpn_rshift): Do not use BP_SYM.
20622         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
20623         (PARMS): Do not use macros from bp-asm.h.
20624         (SIGMSK): Likewise.
20625         (__sigsetjmp): Likewise.  Do not use BP_SYM.
20626         * sysdeps/i386/start.S: Do not include "bp-sym.h".
20627         (_start): Do not use BP_SYM.
20628         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
20629         (PARMS): Do not use macros from bp-asm.h.
20630         (DEST): Likewise.
20631         (SRC): Likewise.
20632         (__stpcpy): Likewise.  Do not use BP_SYM.
20633         (stpcpy): Do not use BP_SYM in weak_alias.
20634         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
20635         "bp-asm.h".
20636         (PARMS): Do not use macros from bp-asm.h.
20637         (DEST): Likewise.
20638         (SRC): Likewise.
20639         (LEN): Likewise.
20640         (__stpncpy): Likewise.  Do not use BP_SYM.
20641         (stpncpy): Do not use BP_SYM in weak_alias.
20642         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
20643         (PARMS): Do not use macros from bp-asm.h.
20644         (STR): Likewise.
20645         (CHR): Likewise.
20646         (strchr): Likewise.  Do not use BP_SYM.
20647         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
20648         "bp-asm.h".
20649         (PARMS): Do not use macros from bp-asm.h.
20650         (STR): Likewise.
20651         (CHR): Likewise.
20652         (__strchrnul): Likewise.  Do not use BP_SYM.
20653         (strchrnul): Do not use BP_SYM in weak_alias.
20654         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
20655         "bp-asm.h".
20656         (PARMS): Do not use macros from bp-asm.h.
20657         (STOP): Likewise.
20658         (strcspn): Do not use BP_SYM.
20659         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
20660         "bp-asm.h".
20661         (PARMS): Do not use macros from bp-asm.h.
20662         (STR): Likewise.
20663         (STOP): Likewise.
20664         (strpbrk): Likewise.  Do not use BP_SYM.
20665         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
20666         "bp-asm.h".
20667         (PARMS): Do not use macros from bp-asm.h.
20668         (STR): Likewise.
20669         (CHR): Likewise.
20670         (strrchr): Likewise.  Do not use BP_SYM.
20671         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
20672         (PARMS): Do not use macros from bp-asm.h.
20673         (SKIP): Likewise.
20674         (strspn): Do not use BP_SYM.
20675         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
20676         (PARMS): Do not use macros from bp-asm.h.
20677         (STR): Likewise.
20678         (DELIM): Likewise.
20679         (SAVE): Likewise.
20680         (FUNCTION): Likewise.  Do not use BP_SYM.
20681         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
20682         aliases.
20683         (strtok_r): Likewise.
20684         (__GI___strtok_r): Likewise.
20685         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
20686         (PARMS): Do not use macros from bp-asm.h.
20687         (S1): Likewise.
20688         (S2): Likewise.
20689         (SIZE): Likewise.
20690         (__mpn_sub_n): Do not use BP_SYM.
20691         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
20692         "bp-asm.h".
20693         (PARMS): Do not use macros from bp-asm.h.
20694         (S1): Likewise.
20695         (SIZE): Likewise.
20696         (__mpn_submul_1): Do not use BP_SYM.
20697         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
20698         <bp-sym.h>.
20699         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
20700         and <bp-asm.h>.
20701         (PARMS): Do not use macros from bp-asm.h.
20702         (FLAGS): Likewise.
20703         (PTID): Likewise.
20704         (TLS): Likewise.
20705         (CTID): Likewise.
20706         (__clone): Do not use BP_SYM.
20707         (clone): Do not use BP_SYM in weak_alias.
20708         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
20709         and <bp-asm.h>.
20710         (PARMS): Do not use macros from bp-asm.h.
20711         (LEN): Likewise.
20712         (__mmap64): Do not use BP_SYM.
20713         (mmap64): Do not use BP_SYM in weak_alias.
20714         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
20715         <bp-sym.h> and <bp-asm.h>.
20716         (PARMS): Do not use macros from bp-asm.h.
20717         (__posix_fadvise64_l64): Do not use BP_SYM.
20718         * sysdeps/unix/sysv/linux/i386/semtimedop.S
20719         (PARMS): Do not use macros from bp-asm.h.
20720         (NSOPS): Likewise.
20721         (semtimedop): Do not use BP_SYM.
20722         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
20723         and <bp-asm.h>.
20724
20725 2013-02-21  Allan McRae  <allan@archlinux.org>
20726
20727         * manual/message.texi (Charset conversion in gettext):
20728         Move @end statement to beginning of line.
20729
20730 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20731
20732         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
20733         static.
20734         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
20735         Likewise.
20736
20737         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
20738         (denorm): Likewise.
20739         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
20740         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
20741
20742 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20743
20744         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
20745         tail-call to the resolved function if pltexit isn't needed.
20746
20747 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
20748
20749         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
20750         or Y being zero as being unlikely.
20751         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
20752         Likewise.
20753
20754 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
20755
20756         * manual/nss.texi (System Databases and Name Service Switch):
20757         Remove frobnicate @pxref.
20758
20759 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
20760
20761         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
20762         __attribute__ ((unused)) to __attribute__ ((__unused__)).
20763
20764 2013-02-20  Petr Machata  <pmachata@redhat.com>
20765
20766         * elf/elf.h (R_ARM_TARGET1): New macro.
20767         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
20768         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
20769         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
20770         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
20771         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
20772         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
20773         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
20774         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
20775         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
20776         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
20777         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
20778         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
20779         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
20780         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
20781         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
20782         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
20783         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
20784         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
20785         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
20786         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
20787         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
20788         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
20789         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
20790         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
20791         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
20792         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
20793         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
20794         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
20795         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
20796         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
20797         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
20798         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
20799         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
20800         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
20801         (R_ARM_THM_GOT_BREL12): Likewise.
20802         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
20803         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
20804         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
20805         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
20806         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
20807         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
20808         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
20809         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
20810         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
20811
20812 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
20813
20814         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
20815         __attribute_used__ to __attribute__ ((unused)).
20816
20817 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
20818
20819         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
20820         powerpc mpa.c.
20821         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
20822         comment formatting.
20823         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
20824
20825 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
20826
20827         [BZ #13550]
20828         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
20829         Remove macro.
20830         (ENTER): Remove both macro definitions.
20831         (LEAVE): Likewise.
20832         (CHECK_BOUNDS_LOW): Likewise.
20833         (CHECK_BOUNDS_HIGH): Likewise.
20834         (CHECK_BOUNDS_BOTH): Likewise.
20835         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
20836         (RETURN_BOUNDED_POINTER): Likewise.
20837         (RETURN_NULL_BOUNDED_POINTER): Likewise.
20838         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
20839         (POP_ERRNO_LOCATION_RETURN): Likewise.
20840         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
20841         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20842         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
20843         macros.
20844         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20845         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
20846         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
20847         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
20848         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
20849         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
20850         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
20851         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
20852         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
20853         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
20854         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
20855         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
20856         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20857         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
20858         removed macros.
20859         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20860         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
20861         macros.
20862         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20863         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
20864         * sysdeps/i386/i586/memset.S (memset): Likewise.
20865         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
20866         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20867         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
20868         macros.
20869         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20870         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
20871         Change uses of L(2) to L(out).
20872         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
20873         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
20874         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
20875         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20876         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
20877         removed macros.
20878         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20879         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
20880         macros.
20881         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20882         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
20883         (RETURN): Do not use macro LEAVE.
20884         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
20885         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
20886         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
20887         * sysdeps/i386/i686/memset.S (memset): Likewise.
20888         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
20889         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
20890         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
20891         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
20892         Likewise.
20893         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20894         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
20895         L(1_2) and L(1_3) into L(1).
20896         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
20897         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
20898         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20899         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
20900         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
20901         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
20902         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
20903         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20904         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
20905         macros.
20906         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
20907         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
20908         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
20909         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
20910         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
20911         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
20912         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
20913         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
20914         * sysdeps/i386/strcspn.S (strcspn): Likewise.
20915         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
20916         * sysdeps/i386/strrchr.S (strrchr): Likewise.
20917         * sysdeps/i386/strspn.S (strspn): Likewise.
20918         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
20919         conditional code.
20920         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
20921         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
20922         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
20923         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
20924         L(1_3) into L(1_1).
20925         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
20926         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
20927         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
20928         macros.
20929         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
20930
20931 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
20932
20933         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
20934         macro.
20935
20936 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
20937
20938         * math/atest-exp.c (exp_mpn): Remove ROUND.
20939         * math/atest-exp2.c (exp_mpn): Likewise.
20940         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
20941
20942         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
20943         * stdlib/tst-tls-atexit-lib.c: Likewise.
20944         * stdlib/tst-tls-atexit.c: Likewise.
20945
20946 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20947
20948         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
20949         and __attribute_alloc_size__.
20950
20951 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20952
20953         * include/programs/xmalloc.h: Change __attribute_alloc_size to
20954         __attribute_alloc_size__.
20955         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
20956         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
20957
20958 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
20959
20960         * include/programs/xmalloc.h: New file.
20961         * catgets/gencat.c: Include it.
20962         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
20963         * elf/pldd.c: Likewise.
20964         * iconv/iconv_charmap.c: Likewise.
20965         * iconv/iconvconfig.c: Likewise.
20966         * iconv/strtab.c: Likewise.
20967         * locale/programs/locale.c: Likewise.
20968         * locale/programs/localedef.h: Likewise.
20969         * locale/programs/simple-hash.c: Likewise.
20970         * nscd/nscd.h: Likewise.
20971         * nss/makedb.c: Likewise.
20972         * sysdeps/generic/ldconfig.h: Likewise.
20973
20974 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
20975
20976         * Versions.def: Add GLIBC_2.18.
20977         * include/link.h (struct link_map): New member l_tls_dtor_count.
20978         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
20979         (__call_tls_dtors): Likewise.
20980         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
20981         __cxa_thread_atexit_impl.
20982         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20983         Likewise.
20984         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20985         Likewise.
20986         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
20987         Likewise.
20988         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
20989         Likewise.
20990         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
20991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
20992         Likewise.
20993         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
20994         Likewise.
20995         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
20996         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
20997         Likewise.
20998         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
20999         (tests): Add test case tst-tls-atexit.
21000         (modules-names): Add shared library for tst-tls-atexit.
21001         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
21002         (GLIBC_PRIVATE): Add __call_tls_dtors.
21003         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
21004         for libstdc++.
21005         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
21006         * stdlib/tst-tls-atexit.c: New test case.
21007         * stdlib/tst-tls-atexit-lib.c: New test case.
21008
21009         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
21010
21011         * elf/Versions (ld): Add _dl_find_dso_for_object.
21012         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
21013         * elf/dl-open.c (_dl_find_dso_for_object): New function.
21014         (dl_open_worker): Use _dl_find_dso_for_object.
21015         * elf/dl-sym.c (do_sym): Likewise.
21016         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
21017
21018 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21019
21020         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
21021         Syntactic changes only.
21022         (_dl_runtime_profile): Do a tail-call to the resolved function.
21023
21024 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
21025
21026         [BZ #13550]
21027         * sysdeps/x86_64/bp-asm.h: Remove file.
21028         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
21029         <bp-sym.h> and <bp-asm.h>.
21030         (__clone): Do not use BP_SYM.
21031         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
21032         <bp-sym.h> and <bp-asm.h>.
21033         * sysdeps/unix/x86_64/sysdep.S: Likewise.
21034         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
21035         "bp-asm.h".
21036         (_setjmp): Do not use BP_SYM.
21037         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
21038         "bp-asm.h".
21039         (setjmp): Do not use BP_SYM.
21040         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
21041         libc_hidden_def.
21042         (mempcpy): Do not use BP_SYM in weak_alias.
21043         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
21044         "bp-asm.h".
21045         (strchr): Do not use BP_SYM.
21046         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
21047         "bp-asm.h".
21048         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
21049         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
21050         (_start): Do not use BP_SYM.
21051         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
21052         "bp-asm.h".
21053         (strcat): Do not use BP_SYM.
21054         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
21055         "bp-asm.h".
21056         (STRCMP): Do not use BP_SYM.
21057         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
21058         "bp-asm.h".
21059         (STRCPY): Do not use BP_SYM.
21060         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
21061         "bp-asm.h".
21062         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
21063         "bp-asm.h".
21064         (FUNCTION): Do not use BP_SYM.
21065         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
21066         weak_alias.
21067         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
21068
21069 2013-02-17  Andreas Jaeger  <aj@suse.de>
21070
21071         * time/Versions: Sort entries.
21072         * string/Versions: Likewise.
21073         * resolv/Versions: Likewise.
21074         * posix/Versions: Likewise.
21075         * iconv/Versions: Likewise.
21076         * elf/Versions: Likewise.
21077         * wcsmbs/Versions: Likewise.
21078
21079 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21080
21081         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
21082         loop termination condition.
21083
21084         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
21085         variable to calculate EZ.
21086         (__sqr): Likewise.
21087
21088         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
21089         the lower precision input.
21090
21091 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
21092
21093         [BZ #13550]
21094         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
21095         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
21096         (run-via-rtld-prefix): Do not handle %-bp tests.
21097         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
21098         (all-object-suffixes): Remove .ob.
21099         (bppfx): Remove variable.
21100         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
21101         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
21102         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
21103         [$(build-bounded) = yes] (libtype.ob): Likewise.
21104         * Makerules (elide-routines.ob): Remove variable.
21105         (do-tests-clean): Do not handle *-bp.out.
21106         (common-mostlyclean): Do not handle *-bp and *-bp.out.
21107         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
21108         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
21109         (tests): Do not include $(tests-bp.out).
21110         (xtests): Do not include $(xtests-bp.out).
21111         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
21112         [$(build-bounded) = yes] ($(addprefix
21113         $(objpfx),$(binaries-bounded))): Remove rule.
21114         ($(objpfx)%-bp.out): Remove rule.
21115         * config.make.in (build-bounded): Remove variable.
21116         * crypt/Makefile [$(build-bounded) = yes]
21117         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
21118         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
21119         append to variable.
21120         [$(build-bounded) = yes] (install-lib): Likewise.
21121         [$(build-bounded) = yes] (generated): Likewise.
21122         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
21123         Remove rule.
21124         * intl/Makefile [$(build-bounded) = yes]
21125         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
21126         * math/Makefile [$(build-bounded) = yes]
21127         ($(tests:%=$(objpfx)%-bp): Likewise.
21128         * misc/Makefile [$(build-bounded) = yes]
21129         ($(objpfx)tst-tsearch-bp): Likewise.
21130         * nptl/Makeconfig (bounded-thread-library): Remove variable.
21131         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
21132         Remove dependency.
21133         * string/Makefile (o-objects.ob): Remove variable.
21134         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
21135         (CFLAGS-.ob): Remove variable.
21136         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
21137         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
21138         both definitions of variable.
21139         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
21140         (ASFLAGS-.ob): Remove variable.
21141
21142 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
21143
21144         [BZ #13550]
21145         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
21146         Remove __BOUNDED_POINTERS__ from condition.
21147         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
21148         * string/bits/string2.h [!__NO_STRING_INLINES &&
21149         !__BOUNDED_POINTERS__]: Likewise.
21150         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
21151         Likewise.
21152         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
21153         Remove conditional code.
21154         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
21155         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
21156         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
21157         condition.
21158
21159         [BZ #13550]
21160         * csu/libc-start.c: Do not include <bp-sym.h>.
21161         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
21162         * elf/dl-open.c: Do not include <bp-sym.h>.
21163         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
21164         * math/fegetenv.c: Do not include <bp-sym.h>.
21165         (fegetenv): Do not use BP_SYM in versioned symbols.
21166         * nptl/sysdeps/pthread/bits/libc-lockP.h
21167         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
21168         <bp-sym.h>.
21169         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21170         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
21171         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21172         (__pthread_mutex_destroy): Likewise.
21173         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21174         (__pthread_mutex_lock): Likewise.
21175         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21176         (__pthread_mutex_trylock): Likewise.
21177         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21178         (__pthread_mutex_unlock): Likewise.
21179         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21180         (__pthread_mutexattr_init): Likewise.
21181         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21182         (__pthread_mutexattr_destroy): Likewise.
21183         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21184         (__pthread_mutexattr_settype): Likewise.
21185         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21186         (__pthread_rwlock_init): Likewise.
21187         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21188         (__pthread_rwlock_destroy): Likewise.
21189         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21190         (__pthread_rwlock_rdlock): Likewise.
21191         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21192         (__pthread_rwlock_tryrdlock): Likewise.
21193         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21194         (__pthread_rwlock_wrlock): Likewise.
21195         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21196         (__pthread_rwlock_trywrlock): Likewise.
21197         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21198         (__pthread_rwlock_unlock): Likewise.
21199         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21200         (__pthread_key_create): Likewise.
21201         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21202         (__pthread_setspecific): Likewise.
21203         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21204         (__pthread_getspecific): Likewise.
21205         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
21206         Likewise.
21207         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21208         (_pthread_cleanup_push_defer): Likewise.
21209         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21210         (_pthread_cleanup_pop_restore): Likewise.
21211         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
21212         (pthread_setcancelstate): Likewise.
21213         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
21214         <bp-sym.h>.
21215         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
21216         (memchr): Do not use BP_SYM in weak_alias.
21217         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
21218         (fegetenv): Do not use BP_SYM in versioned symbols.
21219         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
21220         (fesetenv): Do not use BP_SYM in versioned symbols.
21221         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21222         (feupdateenv): Do not use BP_SYM in versioned symbols.
21223         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21224         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21225         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
21226         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
21227         (open64): Do not use BP_SYM in weak_alias.
21228         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
21229         (fegetenv): Do not use BP_SYM in versioned symbols.
21230         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
21231         (fesetenv): Do not use BP_SYM in versioned symbols.
21232         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
21233         (feupdateenv): Do not use BP_SYM in versioned symbols.
21234         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
21235         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
21236         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
21237         (feraiseexcept): Do not use BP_SYM in versioned symbols.
21238         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
21239         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
21240         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
21241         <bp-sym.h>.
21242         (__libc_start_main): Do not use BP_SYM.
21243
21244 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21245
21246         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
21247         redundant return line.
21248         (norm): Likewise.
21249         (denorm): Likewise.
21250         (dbl_mp): Likewise.
21251         (sub_magnitudes): Likewise.
21252         (__add): Likewise.
21253         (__sub): Likewise.
21254         (__mul): Likewise.
21255         (__inv): Likewise.
21256         (__dvd): Likewise.
21257         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
21258         (norm): Likewise.
21259         (denorm): Likewise.
21260         (dbl_mp): Likewise.
21261         (sub_magnitudes): Likewise.
21262         (__add): Likewise.
21263         (__sub): Likewise.
21264         (__mul): Likewise.
21265         (__inv): Likewise.
21266         (__dvd): Likewise.
21267
21268         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
21269         instead of __mul.
21270         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
21271         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
21272         (cc32): Likewise.
21273
21274         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
21275         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
21276         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
21277         of __mul for squares.
21278         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
21279         function
21280         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
21281         Likewise.
21282         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
21283         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21284
21285 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
21286
21287         [BZ #13550]
21288         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
21289         code.
21290         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
21291         prototype or function definition.  Rename ubp_* variables and
21292         parameters.  Remove argv definitions conditional on
21293         [__BOUNDED_POINTERS__].
21294         * debug/backtrace.c (__backtrace): Do not use __unbounded.
21295         * elf/dl-runtime.c (_dl_fixup): Likewise.
21296         * include/set-hooks.h (RUN_HOOK): Likewise.
21297         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
21298         definition.
21299         * string/strcpy.c (strcpy): Do not use __unbounded.
21300         * sysdeps/generic/frame.h (struct layout): Likewise.
21301         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
21302         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
21303         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
21304         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
21305         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
21306         (__backtrace): Likewise.
21307         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
21308         use __ptrvalue.
21309         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
21310         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
21311         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
21312         Likewise.
21313         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
21314         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
21315         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
21316         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21317         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
21318         Do not use __unbounded.
21319         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
21320         Rename __unboundedrlimits parameter to rlimits in prototype.
21321         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
21322         Do not use __unbounded.
21323         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
21324         not use __ptrvalue.
21325         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21326         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
21327         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21328         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
21329         __ptrvalue or __unbounded.
21330         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
21331         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
21332         use __unbounded.
21333         (__new_msgctl): Do not use __ptrvalue.
21334         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
21335         __unbounded.
21336         (__libc_msgrcv): Do not use __ptrvalue.
21337         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
21338         startup_info): Do not use __unbounded.
21339         (__libc_start_main): Likewise.  Rename ubp_* variables and
21340         parameters.  Remove argv definitions conditional on
21341         [__BOUNDED_POINTERS__].
21342         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
21343         __ptrvalue.
21344         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
21345         use __unbounded.
21346         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
21347         or __ptrvalue.
21348         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
21349         use __unbounded.
21350         (__new_shmctl): Do not use __ptrvalue.
21351         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
21352         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
21353         Likewise.
21354         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
21355         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
21356         (__libc_sigaction): Likewise.
21357         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
21358         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
21359         Likewise.
21360         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21361
21362 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
21363
21364         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
21365
21366         * string/mempcpy.c: Implement by calling memcpy.
21367
21368 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
21369
21370         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
21371
21372         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
21373         evaluation.
21374
21375         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
21376         values in the mantissa.
21377
21378         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
21379         minimize writes to Z.
21380         (sub_magnitudes): Simplify code a bit.
21381
21382 2013-02-12  Roland McGrath  <roland@hack.frob.com>
21383
21384         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
21385         from the message.  The linker prefixes all warnings with that already.
21386
21387 2013-02-12  Andreas Schwab  <schwab@suse.de>
21388
21389         [BZ #15078]
21390         * posix/regexec.c (extend_buffers): Add parameter min_len.
21391         (check_matching): Pass minimum needed length.
21392         (clean_state_log_if_needed): Likewise.
21393         (get_subexp): Likewise.
21394         * posix/Makefile (tests): Add bug-regex34.
21395         (bug-regex34-ENV): Define.
21396         * posix/bug-regex34.c: New file.
21397
21398         [BZ #11561]
21399         * posix/regcomp.c (parse_bracket_exp): When looking up collating
21400         elements compare against the byte sequence of it, not its name.
21401         * posix/Makefile (tests): Add bug-regex35.
21402         (bug-regex35-ENV): Define.
21403         * posix/bug-regex35.c: New file.
21404
21405 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21406
21407         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
21408         comment.
21409         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
21410         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
21411         (CHECK_EOL): Add undef.
21412
21413 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
21414
21415         * bits/stdlib-bsearch.h: New file.
21416         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
21417         * stdlib/stdlib.h: Likewise.
21418
21419 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21420
21421         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
21422         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
21423         declaration.
21424         * manual/search.texi (Array Search Function): Add missing const in
21425         lfind prototype.
21426         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
21427         declaration to use rlim_t.
21428         (Basic Scheduling Functions): Remove erroneous const from
21429         sched_getparam prototype.  Remove erroneous * from
21430         sched_get_priority_max and sched_get_priority_min prototypes.
21431         (Resource Usage): Fix summary @comment on vtimes to refer to
21432         sys/vtimes.h rather than vtimes.h.
21433         Add missing *s in vtimes prototype.
21434         (Limits on Resources): Fix ulimit prototype to return long int.
21435         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
21436         prototypes to use long int rather than double.
21437         (BSD Random): Fix initstate and setstate to use char *, not void *.
21438         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
21439         prototype to make second argument 'struct aiocb64 *const[]'.
21440         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
21441         (Status of AIO Operations): Remove erroneous const in aio_return and
21442         aio_return64 prototypes.
21443         (Synchronizing I/O): Fix sync prototype to return void.
21444         * manual/startup.texi (Suboptions): Remove an erroneous const in
21445         getsubopt prototype.
21446         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
21447         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
21448         use size_t rather than int.
21449         (Scanning All Users): Likewise for getpwent_r.
21450         (Setting Groups): Add missing const to setgroups prototype.
21451         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
21452         * manual/socket.texi (Host Names): Fix gethostbyaddr and
21453         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
21454         'const void *' rather than 'const char *'.
21455         (Host Address Functions): Likewise for inet_ntop.
21456         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
21457         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
21458         ssize_t for return value.
21459         (Sending Data): Likewise for send, sendto, sendmsg.
21460         (Socket Option Functions): Add a missing const in setsockopt prototype.
21461         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
21462         use wchar_t for the argument.
21463         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
21464         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
21465         take no arguments.
21466         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
21467         double/float/long double for second argument.
21468         Fix return types of significand, significandf, significandl.
21469         * manual/filesys.texi (Setting Permissions): Use mode_t for second
21470         argument in fchmod prototype.
21471         (File Owner): Use uid_t and gid_t in fchown prototype.
21472         (File Times): Add const to utimes, futimes, and lutimes prototypes.
21473         (Making Special Files): Use mode_t and dev_t in mknod prototype.
21474         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
21475         use 'const struct dirent **' as argument types to CMP function pointer
21476         argument.
21477         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
21478         (File Times): Fix summary magic @comment for struct utimbuf and utime
21479         to refer to utime.h, not time.h.
21480         * manual/string.texi (Argz Functions): Add missing const in
21481         argz_extract and argz_next prototypes.
21482         (Finding Tokens in a String): Likewise for basename.
21483         (String/Array Comparison): Fix typo in wcscasecmp prototype.
21484         (Copying and Concatenation): Fix typo in wmemmove prototype.
21485         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
21486         (Signal Stack): Remove erroneous const in sigstack prototype.
21487         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
21488         prototype.
21489         (Simple Calendar Time): Likewise for stime.
21490         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
21491         prototype.
21492         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
21493         say sys/sysctl.h instead.
21494         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
21495         and vsyslog prototypes.
21496
21497 2013-02-11  Tom de Vries  <tom@codesourcery.com>
21498
21499         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
21500         Remove.
21501
21502 2013-02-11  Roland McGrath  <roland@hack.frob.com>
21503
21504         * misc/sys/mman.h: Fix typo in mremap comment.
21505
21506 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21507
21508         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
21509         the '\0' terminator.
21510
21511 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21512
21513         [BZ #13550]
21514         * debug/segfault.c: Don't include <bp-checks.h>.
21515         * sysdeps/generic/bp-checks.h: Remove file.
21516         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
21517         (__GETDENTS): Don't use CHECK_N.
21518         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
21519         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
21520         (__getgroups): Don't use CHECK_N.
21521         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
21522         (setgroups): Don't use CHECK_N.
21523         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
21524         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
21525         (__libc_msgrcv): Don't use CHECK_N.
21526         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
21527         (__libc_msgsnd): Don't use CHECK_N.
21528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
21529         <bp-checks.h>.
21530         (__libc_pread): Don't use CHECK_N.
21531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
21532         include <bp-checks.h>.
21533         (__libc_pread64): Don't use CHECK_N.
21534         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
21535         include <bp-checks.h>.
21536         (__libc_pwrite): Don't use CHECK_N.
21537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
21538         include <bp-checks.h>.
21539         (__libc_pwrite64): Don't use CHECK_N.
21540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
21541         <bp-checks.h>.
21542         (__libc_pread): Don't use CHECK_N.
21543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
21544         include <bp-checks.h>.
21545         (__libc_pread64): Don't use CHECK_N.
21546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
21547         include <bp-checks.h>.
21548         (__libc_pwrite): Don't use CHECK_N.
21549         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
21550         include <bp-checks.h>.
21551         (__libc_pwrite64): Don't use CHECK_N.
21552         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
21553         (do_pread): Don't use CHECK_N.
21554         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
21555         (do_pread64): Don't use CHECK_N.
21556         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
21557         (do_pwrite): Don't use CHECK_N.
21558         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
21559         (do_pwrite64): Don't use CHECK_N.
21560         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
21561         (__libc_readv): Don't use CHECK_N.
21562         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
21563         (semop): Don't use CHECK_N.
21564         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
21565         <bp-checks.h>.
21566         (semtimedop): Don't use CHECK_N.
21567         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
21568         (__libc_pread): Don't use CHECK_N.
21569         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
21570         <bp-checks.h>.
21571         (__libc_pread64): Don't use CHECK_N.
21572         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
21573         <bp-checks.h>.
21574         (__libc_pwrite): Don't use CHECK_N.
21575         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
21576         <bp-checks.h>.
21577         (__libc_pwrite64): Don't use CHECK_N.
21578         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
21579         <bp-checks.h>.
21580         (__libc_msgrcv): Don't use CHECK_N.
21581         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
21582         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
21583         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
21584         (__libc_writev): Don't use CHECK_N.
21585
21586 2013-02-08  Roland McGrath  <roland@hack.frob.com>
21587
21588         * string/strcpy.c: Removed unused variable.
21589
21590         * Makeconfig (+sysdep-includes): Define with := rather than =.
21591         Use an existing include/ subdir of each sysdeps dir before it.
21592
21593 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21594
21595         * nscd/connection.c (register_traced_file): Comment function.
21596         [HAVE_INOTIFY] (union __inev): Define.
21597         [HAVE_INOTIFY] (inotify_check_files): New function.
21598         [HAVE_INOTIFY] (clear_db_cache): Likewise.
21599         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
21600         clear_db_cache.
21601         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
21602
21603 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21604
21605         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
21606         loaded if not already and that a failure is permanent.
21607
21608 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
21609
21610         [BZ #15006]
21611         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
21612         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
21613
21614 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
21615
21616         [BZ #13550]
21617         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
21618         (CHECK_1_NULL_OK): Likewise.
21619         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
21620         (__fxstat): Do not use CHECK_1.
21621         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
21622         <bp-checks.h>.
21623         (___fxstat64): Do not use CHECK_1.
21624         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
21625         <bp-checks.h>.
21626         (__fxstatat): Do not use CHECK_1.
21627         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
21628         <bp-checks.h>.
21629         (__fxstatat64): Do not use CHECK_1.
21630         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
21631         <bp-checks.h>.
21632         (__fxstat): Do not use CHECK_1.
21633         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
21634         <bp-checks.h>.
21635         (__fxstatat): Do not use CHECK_1.
21636         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
21637         <bp-checks.h>.
21638         (__getresgid): Do not use CHECK_1.
21639         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
21640         <bp-checks.h>.
21641         (__getresuid): Do not use CHECK_1.
21642         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
21643         <bp-checks.h>.
21644         (__lxstat): Do not use CHECK_1.
21645         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
21646         <bp-checks.h>.
21647         (__old_msgctl): Do not use CHECK_1.
21648         (__new_msgctl): Likewise.
21649         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
21650         <bp-checks.h>.
21651         (__new_setrlimit): Do not use CHECK_1.
21652         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
21653         <bp-checks.h>.
21654         (__old_shmctl): Do not use CHECK_1.
21655         (__new_shmctl): Likewise.
21656         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
21657         <bp-checks.h>.
21658         (__xstat): Do not use CHECK_1.
21659         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
21660         (__lxstat): Do not use CHECK_1.
21661         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
21662         <bp-checks.h>.
21663         (___lxstat64): Do not use CHECK_1.
21664         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
21665         (__old_msgctl): Do not use CHECK_1.
21666         (__new_msgctl): Likewise.
21667         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
21668         <bp-checks.h>.
21669         (__gettimeofday): Do not use CHECK_1.
21670         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
21671         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
21672         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
21673         <bp-checks.h>.
21674         (__gettimeofday): Do not use CHECK_1.
21675         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
21676         (__old_shmctl): Do not use CHECK_1_NULL_OK.
21677         (__new_shmctl): Do not use CHECK_1.
21678         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
21679         <bp-checks.h>.
21680         (do_sigtimedwait): Do not use CHECK_1.
21681         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
21682         <bp-checks.h>.
21683         (do_sigwaitinfo): Do not use CHECK_1.
21684         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
21685         <bp-checks.h>.
21686         (msgctl): Do not use CHECK_1.
21687         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
21688         <bp-checks.h>.
21689         (shmctl): Do not use CHECK_1.
21690         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
21691         (ustat): Do not use CHECK_1.
21692         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
21693         <bp-checks.h>.
21694         (__fxstat): Do not use CHECK_1.
21695         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
21696         <bp-checks.h>.
21697         (__fxstatat): Do not use CHECK_1.
21698         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
21699         <bp-checks.h>.
21700         (__lxstat): Do not use CHECK_1.
21701         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
21702         <bp-checks.h>.
21703         (__xstat): Do not use CHECK_1.
21704         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
21705         (__xstat): Do not use CHECK_1.
21706         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
21707         (___xstat64): Do not use CHECK_1.
21708
21709         [BZ #13550]
21710         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
21711         definitions.
21712         (CHECK_BOUNDS_HIGH): Likewise.
21713         * string/strcpy.c: Do not include <bp-checks.h>.
21714         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
21715
21716 2013-02-07  Roland McGrath  <roland@hack.frob.com>
21717
21718         * nscd/nscd-client.h (__nscd_drop_map_ref):
21719         Add __attribute__ ((unused)).
21720         * nis/nss-nisplus.h (niserr2nss): Likewise.
21721
21722         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
21723         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
21724
21725         * csu/libc-tls.c (init_static_tls, init_slotinfo):
21726         Remove inline keyword.
21727         * include/rounding-mode.h (round_away): Likewise.
21728         * libio/wfileops.c (adjust_wide_data): Likewise.
21729         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
21730         (__m128i_strloadu_tolower): Likewise.
21731         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
21732         (__m128i_strloadu_tolower): Likewise.
21733         * time/mktime.c (ydhms_diff): Likewise.
21734         * locale/elem-hash.h (elem_hash): Likewise.
21735         * locale/setlocale.c (setdata): Likewise.
21736         * posix/regex_internal.h (re_string_char_size_at): Likewise.
21737         (re_string_wchar_at): Likewise.
21738         (bitset_not, bitset_merge, bitset_mask): Likewise.
21739         [!(__GNUC__ > 3)] (inline): Remove macro.
21740         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
21741         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
21742         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
21743         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
21744         * string/memcmp.c (memcmp_bytes): Likewise.
21745         * locale/programs/locarchive.c (compute_hashval): Likewise.
21746         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
21747         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
21748         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
21749         * nss/getent.c (print_rpc, print_protocols): Likewise.
21750         (print_passwd, print_group, print_aliases): Likewise.
21751         * nis/nss-nisplus.h (niserr2nss): Likewise.
21752         * nscd/connections.c (restart_p): Likewise.
21753         Change return type to bool.
21754
21755 2013-02-05  Roland McGrath  <roland@hack.frob.com>
21756
21757         * Makeconfig (all-Depend-files): Add existing
21758         $(sorted-subdirs:=/Depend) files.
21759         (all-subdirs): Remove nss.
21760         * sysdeps/unix/inet/Subdirs: Add it here instead.
21761         * hesiod/Depend: New file.
21762
21763         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
21764         instead of calling alloca.
21765
21766         * io/lseek.c (__lseek): Rename to __libc_lseek.
21767         Define __lseek as an alias.
21768
21769         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
21770
21771 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
21772
21773         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
21774         else clause and remove check for non-standard endianness.
21775
21776 2013-02-04  David S. Miller  <davem@davemloft.net>
21777
21778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21779
21780 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
21781
21782         [BZ #13550]
21783         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
21784         (__ubp_memchr): Remove prototype.
21785         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
21786         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
21787         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
21788         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
21789         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
21790         Remove alias.
21791         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
21792         (__ubp_memchr): Likewise.
21793         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
21794         (__ubp_memchr): Likewise.
21795         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
21796         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
21797         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
21798         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
21799         CHECK_STRING.
21800         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
21801         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
21802         (__getcwd): Do not use CHECK_STRING.
21803         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
21804         <bp-checks.h>.
21805         (__real_chown): Do not use CHECK_STRING.
21806         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
21807         <bp-checks.h>.
21808         (fchownat): Do not use CHECK_STRING.
21809         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
21810         CHECK_STRING.
21811         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
21812         <bp-checks.h>.
21813         (__lchown): Do not use CHECK_STRING.
21814         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
21815         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
21816         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
21817         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
21818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
21819         include <bp-checks.h>.
21820         (truncate64): Do not use CHECK_STRING.
21821         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
21822         <bp-checks.h>.
21823         (__real_chown): Do not use CHECK_STRING.
21824         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
21825         <bp-checks.h>.
21826         (__lchown): Do not use CHECK_STRING.
21827         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
21828         <bp-checks.h>.
21829         (__chown): Do not use CHECK_STRING.
21830         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
21831         <bp-checks.h>.
21832         (truncate64): Do not use CHECK_STRING.
21833         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
21834         Likewise.
21835         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
21836         (__xmknod): Do not use CHECK_STRING.
21837         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
21838         <bp-checks.h>.
21839         (__xmknodat): Do not use CHECK_STRING.
21840         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
21841         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
21842
21843 2013-02-04  Andreas Schwab  <schwab@suse.de>
21844
21845         [BZ #14142]
21846         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
21847         * include/netdb.h: Likewise for h_errno.
21848         * elf/tst-stackguard1.c: Include <tls.h>.
21849
21850 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
21851
21852         * elf/link.h (struct link_map): Extend the l_addr comment.
21853         * include/link.h (struct link_map): Likewise.
21854
21855 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
21856
21857         [BZ #13550]
21858         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
21859         (BOUNDED_1): Remove macro.
21860         * debug/backtrace.c: Don't include <bp-checks.h>.
21861         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
21862         (__backtrace): Likewise.
21863         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
21864         <bp-checks.h>.
21865         (__backtrace): Don't use BOUNDED_1.
21866         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
21867         <bp-checks.h>.
21868         (__backtrace): Don't use BOUNDED_1.
21869         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
21870         (__backtrace): Don't use BOUNDED_1.
21871         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
21872         (shmat): Don't use BOUNDED_N.
21873
21874 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
21875
21876         [BZ #13550]
21877         * sysdeps/generic/bp-start.h: Remove file.
21878         * csu/libc-start.c: Don't include <bp-start.h>.
21879         (LIBC_START_MAIN): Set up __environ directly instead of using
21880         INIT_ARGV_and_ENVIRON.
21881         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
21882         <bp-start.h>.
21883
21884         [BZ #13550]
21885         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
21886         definitions.
21887         (CHECK_FCNTL): Likewise.
21888         (CHECK_N_PAGES): Likewise.
21889
21890         [BZ #13550]
21891         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
21892         definitions.
21893         (CHECK_SIGSET_NULL_OK): Likewise.
21894         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
21895         <bp-checks.h>.
21896         (sigpending): Don't use CHECK_SIGSET.
21897         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
21898         <bp-checks.h>.
21899         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21900         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
21901         <bp-checks.h>.
21902         (do_sigsuspend): Don't use CHECK_SIGSET.
21903         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
21904         use CHECK_SIGSET.
21905         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
21906         (do_sigwait): Don't use CHECK_SIGSET.
21907         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
21908         use CHECK_SIGSET.
21909         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
21910         include <bp-checks.h>.
21911         (sigpending): Don't use CHECK_SIGSET.
21912         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
21913         include <bp-checks.h>.
21914         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21915         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
21916         <bp-checks.h>.
21917         (sigpending): Don't use CHECK_SIGSET.
21918         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
21919         <bp-checks.h>.
21920         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
21921
21922         [BZ #13550]
21923         * sysdeps/generic/bp-semctl.h: Remove file.
21924         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
21925         <bp-checks.h> and <bp-semctl.h>.
21926         (__old_semctl): Don't use CHECK_SEMCTL.
21927         (__new_semctl): Likewise.
21928         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
21929         and <bp-semctl.h>.
21930         (__old_semctl): Don't use CHECK_SEMCTL.
21931         (__new_semctl): Likewise.
21932         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
21933         <bp-checks.h> and <bp-semctl.h>.
21934         (__old_semctl): Don't use CHECK_SEMCTL.
21935         (__new_semctl): Likewise.
21936         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
21937         <bp-checks.h> and <bp-semctl.h>.
21938         (semctl): Don't use CHECK_SEMCTL.
21939
21940         [BZ #13550]
21941         * Makerules (elide-bp-thunks): Remove variable.
21942         (elide-routines.oS): Don't use $(elide-bp-thunks).
21943         (elide-routines.os): Likewise.
21944         (elide-routines.o): Likewise.
21945         (elide-routines.op): Likewise.
21946         (elide-routines.og): Likewise.
21947         (objects): Don't use $(bp-thunks).
21948         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
21949         include.
21950         (common-generated): Do not add s-proto-bp.d.
21951         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
21952         (int): Likewise.
21953         (typ): Likewise.
21954         Do not generate makefile rules for bounded-pointer thunks.
21955         * sysdeps/generic/bp-thunks.h: Remove file.
21956         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
21957         * sysdeps/unix/s-proto-bp.S: Likewise.
21958
21959         [BZ #15062]
21960         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
21961         parts of result separately when argument is not close to line from
21962         -i to i and one part of argument is small.
21963         * math/k_casinhf.c (__kernel_casinhf): Likewise.
21964         * math/k_casinhl.c (__kernel_casinhl): Likewise.
21965         * math/libm-test.inc (cacos_test): Add more tests.
21966         (casin_test): Likewise.
21967         (casinh_test): Likewise.
21968         * sysdeps/i386/fpu/libm-test-ulps: Update.
21969         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21970
21971 2013-01-31  David S. Miller  <davem@davemloft.net>
21972
21973         * po/de.po: Update from translation team.
21974
21975 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
21976
21977         * time/tzfile.c: Include stdint.h for SIZE_MAX.
21978
21979 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
21980
21981         * configure.in (_AC_PROG_CC_C89): New definition.
21982         * configure: Regenerate.
21983
21984         * configure.in (AC_PROG_CPP): New definition.
21985         * configure: Regenerate.
21986
21987 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
21988
21989         * debug/tst-backtrace.h: New file.
21990         * debug/tst-backtrace2.c: Include tst-backtrace.h.
21991         (ret): Remove variable.
21992         (x): Likewise.
21993         (FAIL): Remove macro.
21994         (NO_INLINE): Likewise.
21995         (fn1): Use match function instead of strstr.
21996         * debug/tst-backtrace3.c: Include tst-backtrace.h.
21997         (ret): Remove variable.
21998         (x): Likewise.
21999         (FAIL): Remove macro.
22000         (NO_INLINE): Likewise.
22001         (fn): Use match function instead of strstr.
22002         * debug/tst-backtrace4.c: Include tst-backtrace.h.
22003         (ret): Remove variable.
22004         (x): Likewise.
22005         (FAIL): Remove macro.
22006         (NO_INLINE): Likewise.
22007         (handle_signal): Use match function instead of strstr.
22008         * debug/tst-backtrace5.c: Include tst-backtrace.h.
22009         (ret): Remove variable.
22010         (x): Likewise.
22011         (FAIL): Remove macro.
22012         (NO_INLINE): Likewise.
22013         (handle_signal): Use match function instead of strstr.
22014
22015 2013-01-23  Roland McGrath  <roland@hack.frob.com>
22016
22017         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
22018
22019 2013-01-23  David S. Miller  <davem@davemloft.net>
22020
22021         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
22022         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
22023         argument of CAS if possible.
22024         * sysdeps/sparc/sparc64/bits/atomic.h
22025         (__arch_compare_and_exchange_val_32_acq): Likewise.
22026         (__arch_compare_and_exchange_val_64_acq): Likewise.
22027
22028 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
22029
22030         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
22031         * sysdeps/posix/ulimit.c: ... this.
22032         Include <limits.h>.
22033         * sysdeps/unix/bsd/ulimit.c: Remove file.
22034
22035 2013-01-23  Adam Conrad  <adconrad@0c3.net>
22036
22037         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
22038         (LDFLAGS-tst-array5): Likewise.
22039
22040 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
22041
22042         [BZ #15036]
22043         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
22044         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
22045         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
22046         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
22047
22048 2013-01-21  David S. Miller  <davem@davemloft.net>
22049
22050         * sysdeps/sparc/backtrace.c: New file.
22051         * sysdeps/sparc/sparc32/backtrace.h: New file.
22052         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
22053         * sysdeps/sparc/sparc64/backtrace.h: New file.
22054         * sysdeps/sparc/sparc64/backtrace.c: Delete.
22055         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
22056         -funwind-tables.
22057
22058 2013-01-21  Andreas Schwab  <schwab@suse.de>
22059
22060         [BZ #15020]
22061         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
22062         closed its stdout.
22063
22064 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
22065
22066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
22067         "mpa2.h".
22068         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22069
22070 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
22071             Mark Mitchell  <mark@codesourcery.com>
22072             Tom de Vries  <tom@codesourcery.com>
22073             Paul Pluzhnikov  <ppluzhnikov@google.com>
22074
22075         * debug/tst-backtrace2.c: New file.
22076         * debug/tst-backtrace3.c: Likewise.
22077         * debug/tst-backtrace4.c: Likewise.
22078         * debug/tst-backtrace5.c: Likewise.
22079         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
22080         (CFLAGS-tst-backtrace3.c): Likewise.
22081         (CFLAGS-tst-backtrace4.c): Likewise.
22082         (CFLAGS-tst-backtrace5.c): Likewise.
22083         (LDFLAGS-tst-backtrace2): Likewise.
22084         (LDFLAGS-tst-backtrace3): Likewise.
22085         (LDFLAGS-tst-backtrace4): Likewise.
22086         (LDFLAGS-tst-backtrace5): Likewise.
22087         (tests): Add new tests tst-backtrace2, tst-backtrace3,
22088         tst-backtrace4 and tst-backtrace5.
22089
22090 2013-01-18  Anton Blanchard  <anton@samba.org>
22091             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22092
22093         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
22094         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
22095         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
22096         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
22097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
22098         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
22099         "+r" and remove output regs list as redundant.  Add explicit inline
22100         asm to specify register of return val to work around compiler codegen
22101         bug.  Remove (int) cast on return value.  Add return type parameter to
22102         use in macro so that this macro does not truncate return value for
22103         64-bit values.
22104         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
22105         pass to INTERNAL_VSYSCALL_NCS.
22106         (INLINE_VSYSCALL): Add 'long int' as return type to
22107         INTERNAL_VSYSCALL_NCS macro invocation.
22108         (INTERNAL_VSYSCALL): Add 'long int' as return type to
22109         INTERNAL_VSYSCALL_NCS macro invocation.
22110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
22111
22112 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
22113
22114         [BZ #14496]
22115         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
22116         Fix application of SIMD FP exception mask.
22117
22118         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
22119         mp_no from a power of two.
22120         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
22121         __mpexp_twomm1.  Use __pow_mp.
22122
22123         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
22124         multiplication.
22125
22126 2013-01-17  David S. Miller  <davem@davemloft.net>
22127
22128         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22129
22130 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22131
22132         [BZ #15023]
22133         * include/complex.h: Condition contents on [!_COMPLEX_H].
22134         (__kernel_casinhf): New prototype.
22135         (__kernel_casinh): Likewise.
22136         (__kernel_casinhl): Likewise.
22137         * math/Makefile (libm_calls): Add k_casinh.
22138         * math/k_casinh.c: New file.
22139         * math/k_casinhf.c: Likewise.
22140         * math/k_casinhl.c: Likewise.
22141         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
22142         finite nonzero arguments.
22143         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
22144         finite nonzero arguments.
22145         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
22146         finite nonzero arguments.
22147         * math/s_casinh.c: Do not include <float.h>.
22148         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
22149         * math/s_casinhf.c: Do not include <float.h>.
22150         (__casinhf): Move code for finite nonzero arguments to
22151         k_casinhf.c.
22152         * math/s_casinhl.c: Do not include <float.h>.
22153         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
22154         redefine.
22155         (__casinhl): Move code for finite nonzero arguments to
22156         k_casinhl.c.
22157         * math/libm-test.inc (cacos_test): Add more tests.
22158         * sysdeps/i386/fpu/libm-test-ulps: Update.
22159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22160
22161 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
22162
22163         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
22164         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
22165         [!HAVE_MREMAP]: Remove [defined linux] case.
22166         * malloc/arena.c: Do not include <malloc-sysdep.h>.
22167
22168 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
22169
22170         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
22171
22172 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
22173
22174         * elf/elf.h (R_386_SIZE32): New relocation.
22175         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
22176         R_386_SIZE32.
22177         (elf_machine_rela): Likewise.
22178         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
22179         R_X86_64_SIZE64 and R_X86_64_SIZE32.
22180
22181 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
22182
22183         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
22184         (FP_FAST_FMA): Do not define.
22185         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
22186         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
22187         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
22188         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
22189         !_SOFT_FLOAT]: Likewise.
22190         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
22191         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
22192         value.
22193         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
22194         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
22195         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
22196         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
22197         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
22198         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
22199         file.
22200
22201 2013-01-16  Andreas Schwab  <schwab@suse.de>
22202
22203         [BZ #14327]
22204         * include/stdlib.h (__mktemp): Add declaration.
22205         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
22206         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
22207
22208 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
22209
22210         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
22211         definitions.
22212         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
22213         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
22214         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
22215         definitions here.
22216         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
22217         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
22218         definitions.
22219         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
22220         and ONE.
22221         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
22222         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
22223         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
22224         definitions.
22225         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
22226         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
22227         definitions.
22228         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
22229
22230         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
22231
22232 2013-01-15  David S. Miller  <davem@davemloft.net>
22233
22234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22235         trunc{,f} to libm-sysdep_routes.
22236         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
22238         file.
22239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
22240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
22241         file.
22242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
22243         file.
22244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
22245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
22246         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
22247         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
22248         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
22249         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
22250         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
22251         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
22252
22253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22254         nearbyint{,f} to libm-sysdep_routes.
22255         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
22257         New file.
22258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
22259         file.
22260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
22261         New file.
22262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
22263         file.
22264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
22265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
22266         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
22267         file.
22268         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
22269         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
22270         file.
22271         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
22272         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
22273         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
22274
22275         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
22276         libc_feholdexcept and libc_fesetenv.
22277
22278 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
22279
22280         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
22281
22282 2013-01-14  David S. Miller  <davem@davemloft.net>
22283
22284         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
22285         (SPARC_ASM_VIS2_IFUNC): Likewise.
22286         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
22287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
22288         use of 'siam' instruction.
22289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
22290         Likewise.
22291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
22292         Likewise.
22293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
22294         Likewise.
22295         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
22296         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
22297         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
22298         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
22299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
22300         file.
22301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
22302         file.
22303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
22304         file.
22305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
22306         file.
22307         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
22308         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
22309         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
22310         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
22311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
22312         new VIS2 routines.
22313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22316         Likewise.
22317         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22318         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22319         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22320         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
22322         routines to libm-sysdep_routines.
22323         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
22324
22325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
22326         fdim/fdimf to libm-sysdep_routines.
22327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
22328         file.
22329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
22330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
22331         file.
22332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
22333         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
22334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
22335         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
22336         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
22337         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
22338         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
22339
22340 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22341
22342         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
22343         to optimize copies.
22344
22345         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
22346         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22347         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22348
22349         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
22350         local variable MPTWO.
22351         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22352         Likewise.
22353
22354 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22355
22356         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
22357         GLOB_NOESCAPE.
22358
22359 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22360
22361         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
22362
22363 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
22364
22365         * manual/pattern.texi (glob_t): Document gl_flags.
22366         (glob64_t): Likewise.
22367
22368 2013-01-11  David S. Miller  <davem@davemloft.net>
22369
22370         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
22371         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
22372         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
22373         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
22374         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
22375         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
22376         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
22377         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
22378         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
22379         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
22380         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
22381         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
22382         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
22383
22384         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22385         sparc V9 rather than using V8 code.
22386         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22387         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22388
22389         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22390         Move to...
22391         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
22392         Here.
22393
22394 2013-01-11  Roland McGrath  <roland@hack.frob.com>
22395
22396         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
22397         not in the main loop.
22398         * configure: Regenerated.
22399
22400 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
22401
22402         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
22403         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
22404         to just #else.
22405         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
22406         [!__GLIBC_HAVE_LONG_LONG] case.
22407         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
22408         condition to just #else.
22409         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
22410         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
22411         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
22412         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
22413         unconditional.
22414         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
22415         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22416         #elif condition to just #else.
22417         * sysdeps/unix/sysv/linux/sys/sysmacros.h
22418         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
22419         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
22420         #elif condition to just #else.
22421
22422 2013-01-11  Steve Ellcey  <sellcey@mips.com>
22423
22424         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
22425         (EF_MIPS_ARCH_64): Fix value.
22426         (EF_MIPS_ARCH_32R2): New.
22427         (EF_MIPS_ARCH_64R2): New.
22428
22429 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
22430
22431         * Makeconfig (+link-pie-before-libc): New.
22432         (+link-pie-after-libc): Likewise.
22433         (+link-pie-tests): Likewise.
22434         (+link-pie): Rewritten.
22435         (link-before-libc): Remove $(config-LDFLAGS).
22436         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
22437         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
22438         (config-LDFLAGS): Renamed to ...
22439         (rtld-LDFLAGS): This.
22440         (rtld-tests-LDFLAGS): New macro.
22441         (link-libc-rpath-link): Likewise.
22442         (link-libc-tests-rpath-link): Likewise.
22443         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
22444         (link-libc): Prepand $(link-libc-rpath-link).
22445         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
22446         (test-program-prefix): New macro.
22447         (test-via-rtld-prefix): Likewise.
22448         (test-program-cmd): Likewise.
22449         (host-test-program-cmd): Likewise.
22450         * Makefile ($(common-objpfx)testrun.sh): Replace
22451         $(run-program-prefix) with $(test-program-prefix).
22452         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
22453         $(rtld-LDFLAGS).
22454         ($(common-objpfx)shlib.lds): Likewise.
22455         (build-module-helper): Likewise.
22456         ($(common-objpfx)format.lds): Likewise.
22457         * Rules (binaries-pie-tests): New.
22458         (binaries-pie-notests): Likewise.
22459         (binaries-pie): Rewritten.
22460         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
22461         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
22462         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
22463         (make-test-out): Replace $(host-built-program-cmd) with
22464         $(host-test-program-cmd).
22465         * config.make.in (build-hardcoded-path-in-tests): New variable.
22466         * configure.in (--enable-hardcoded-path-in-tests): New configure
22467         option.
22468         (hardcoded_path_in_tests): New AC_SUBST.
22469         * configure: Regenerated.
22470         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
22471         $(built-program-cmd) with $(test-program-cmd).
22472         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
22473         (test_program_cmd): This.
22474         * elf/Makefile ($(objpfx)order.out): Run test with
22475         $(test-program-prefix).
22476         ($(objpfx)order2.out): Likewise.
22477         ($(objpfx)tst-initorder.out): Likewise.
22478         ($(objpfx)tst-initorder2.out): Likewise.
22479         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
22480         $(test-program-cmd).
22481         ($(objpfx)tst-array1-static.out): Likewise.
22482         ($(objpfx)tst-array2.out): Likewise.
22483         ($(objpfx)tst-array3.out): Likewise.
22484         ($(objpfx)tst-array4.out): Likewise.
22485         ($(objpfx)tst-array5.out): Likewise.
22486         ($(objpfx)tst-array5-static.out): Likewise.
22487         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
22488         $(test-program-cmd).
22489         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
22490         $(run-program-prefix) with $(test-program-prefix).
22491         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
22492         (test_program_prefix): This.
22493         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
22494         $(run-program-prefix) with $(test-program-prefix).
22495         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
22496         (test_program_prefix): This.
22497         * iconvdata/tst-tables.sh: Likewise.
22498         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
22499         $(run-program-prefix) with $(test-program-prefix).
22500         ($(objpfx)tst-translit.out): Likewise.
22501         ($(objpfx)tst-gettext2.out): Likewise.
22502         ($(objpfx)tst-gettext4.out): Likewise.
22503         ($(objpfx)tst-gettext6.out): Likewise.
22504         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
22505         (test_program_prefix): This.
22506         * intl/tst-gettext2.sh: Likewise.
22507         * intl/tst-gettext4.sh  Likewise.
22508         * intl/tst-gettext6.sh: Likewise.
22509         * intl/tst-translit.sh: Likewise.
22510         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
22511         with $(test-program-cmd).
22512         * libio/Makefile ($(objpfx)test-freopen.out): Replace
22513         $(run-program-prefix) with $(test-program-prefix).
22514         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
22515         (test_program_prefix): This.
22516         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
22517         $(run-program-prefix) with $(test-program-prefix).
22518         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
22519         (test_program_prefix): This.
22520         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
22521         * posix/Makefile ($(objpfx)globtest.out): Replace
22522         $(run-via-rtld-prefix) and $(test-wrapper) with
22523         $(test-program-prefix) and $(test-via-rtld-prefix).
22524         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
22525         $(test-program-prefix).
22526         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
22527         $(host-test-program-cmd).
22528         (tst-spawn-ARGS): Likewise.
22529         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
22530         $(test-program-prefix).
22531         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
22532         (test_via_rtld_prefix): This.
22533         (test_wrapper): Renamed to ...
22534         (test_program_prefix): This.
22535         (run_program_prefix): Replaced by test_program_prefix.
22536         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
22537         (test_program_prefix): This.
22538         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
22539         with $(host-test-program-cmd).
22540         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
22541         $(run-program-prefix) with $(test-program-prefix).
22542         ($(objpfx)tst-printf.out): Likewise.
22543         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
22544         $(test-program-cmd).
22545         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
22546         (test_program_prefix): This.
22547         * stdio-common/tst-unbputc.sh: Likewise.
22548         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
22549         $(run-program-prefix) with $(test-program-prefix).
22550         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
22551         (test_program_prefix): This.
22552         * string/Makefile ($(objpfx)tst-svc.out):  Replace
22553         $(built-program-cmd) with $(test-program-cmd).
22554
22555 2013-01-11  Andreas Jaeger  <aj@suse.de>
22556
22557         [BZ #15003]
22558         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
22559         value. Sync with Linux 3.7.
22560
22561 2013-01-10  David S. Miller  <davem@davemloft.net>
22562
22563         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
22564         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22565         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22566
22567 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22568
22569         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
22570         never set.
22571         * configure: Regenerated.
22572
22573 2013-01-10  David S. Miller  <davem@davemloft.net>
22574
22575         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
22576         sparc V9 rather than using V8 code.
22577         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
22578         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
22579
22580 2013-01-10  Roland McGrath  <roland@hack.frob.com>
22581
22582         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
22583         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
22584         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
22585         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
22586         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
22587         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
22588         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
22589         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
22590         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
22591         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
22592         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
22593         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
22594         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
22595         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
22596         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
22597         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
22598         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
22599         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
22600         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
22601         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
22602         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
22603         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
22604         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
22605         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
22606         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
22607         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
22608         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
22609
22610 2013-01-10  David S. Miller  <davem@davemloft.net>
22611
22612         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22613
22614 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22615
22616         * posix/Makefile (tests-static): New variable.
22617         (tests): Add $(tests-static).
22618         (tst-exec-static-ARGS): New variable.
22619         (tst-spawn-static-ARGS): Likewise.
22620         * posix/tst-exec-static.c: New file.
22621         * posix/tst-spawn-static.c: Likewise.
22622         * posix/tst-exec.c: Support run directly.
22623         * posix/tst-spawn.c: Likewise.
22624
22625 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
22626
22627         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
22628         long.
22629         * math/bits/mathcalls.h (llrint): Likewise.
22630         (llround): Likewise.
22631         * stdlib/stdlib.h (struct drand48_data): Likewise.
22632         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
22633         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
22634         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
22635         Likewise.
22636         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
22637         Likewise.
22638         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
22639         (elf_greg_t): Likewise.
22640         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
22641         (__jmp_buf): Likewise.
22642         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
22643         definitions.
22644         (llrint): Likewise, for all definitions.
22645         (llrintl): Likewise.
22646
22647         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
22648         Remove [__GNUC__] condition.
22649         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
22650         condition to just [__USE_ISOC99].
22651         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
22652
22653 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
22654
22655         [BZ #14200]
22656         * sysdeps/unix/sysv/linux/x86/bits/environments.h
22657         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
22658         defined.
22659         (_POSIX_V6_ILP32_OFF32): Likewise.
22660         (_XBS5_ILP32_OFF32): Likewise.
22661         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
22662         (__ILP32_OFFBIG_LDFLAGS): Likewise.
22663
22664 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22665
22666         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
22667
22668         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
22669         doubles __mpexp_twomm1.  Adjust usage.
22670         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
22671         Remove.
22672
22673 2013-01-10  Andreas Schwab  <schwab@suse.de>
22674
22675         [BZ #14964]
22676         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
22677         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
22678
22679 2013-01-09  David S. Miller  <davem@davemloft.net>
22680
22681         [BZ #15003]
22682         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
22683         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
22684         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
22685         (TCP_FASTOPEN): Define.
22686         (tcp_repair_opt): New structure.
22687         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
22688         enum values.
22689         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
22690         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
22691         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
22692         (tcp_cookie_transactions): New structure.
22693
22694 2013-01-09  Anton Blanchard  <anton@samba.org>
22695
22696         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
22697         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
22698         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
22699         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
22700
22701 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
22702
22703         * include/features.h (__USE_ANSI): Remove.
22704
22705 2013-01-09  Roland McGrath  <roland@hack.frob.com>
22706
22707         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
22708
22709         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
22710
22711 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
22712
22713         * sysdeps/s390/fpu/libm-test-ulps: Update.
22714
22715         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22716
22717         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
22718         (__acr): Likewise.
22719         (__cpy): Likewise.
22720         (norm): Likewise.
22721         (denorm): Likewise.
22722         (__mp_dbl): Likewise.
22723         (__dbl_mp): Likewise.
22724         (add_magnitudes): Likewise.
22725         (sub_magnitudes): Likewise.
22726         (__add): Likewise.
22727         (__sub): Likewise.
22728         (__mul): Likewise.
22729         (__inv): Likewise.
22730         (__dvd): Likewise.
22731         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
22732         (__acr): Likewise.
22733         (__cpy): Likewise.
22734         (norm): Likewise.
22735         (denorm): Likewise.
22736         (__mp_dbl): Likewise.
22737         (__dbl_mp): Likewise.
22738         (add_magnitudes): Likewise.
22739         (sub_magnitudes): Likewise.
22740         (__add): Likewise.
22741         (__sub): Likewise.
22742         (__mul): Likewise.
22743         (__inv): Likewise.
22744         (__dvd): Likewise.
22745         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
22746         (__acr): Likewise.
22747         (__cpy): Likewise.
22748         (norm): Likewise.
22749         (denorm): Likewise.
22750         (__mp_dbl): Likewise.
22751         (__dbl_mp): Likewise.
22752         (add_magnitudes): Likewise.
22753         (sub_magnitudes): Likewise.
22754         (__add): Likewise.
22755         (__sub): Likewise.
22756         (__mul): Likewise.
22757         (__inv): Likewise.
22758         (__dvd): Likewise.
22759
22760 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
22761
22762         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
22763         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
22764         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
22765         2 && __USE_EXTERN_INLINES]: Likewise.
22766
22767 2013-01-08  Andreas Jaeger  <aj@suse.de>
22768
22769         [BZ# 14985]
22770         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
22771         Remove.
22772         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
22773         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
22774
22775 2013-01-07  Anton Blanchard  <anton@samba.org>
22776
22777         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
22778         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
22779         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
22780         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
22781         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
22782         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
22783         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
22784         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
22785         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
22786         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
22787         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
22788         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
22789         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
22790         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
22791         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
22792         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
22793         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
22794         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
22795         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
22796         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
22797         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
22798         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
22799         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
22800         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
22801         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
22802         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
22803         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
22804         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
22805         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
22806         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
22807         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
22808         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
22809         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
22810         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
22811         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
22812         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
22813         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
22814         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
22815         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
22816         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
22817         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
22818         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22819         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
22820
22821 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
22822
22823         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
22824         (__MALLOC_PMT): Likewise.
22825         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
22826         [__GNUC__], only on [_LIBC].
22827         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
22828         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
22829         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
22830         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
22831         forward declaration.
22832         (realloc_hook_ini): Likewise.
22833         (memalign_hook_ini): Likewise.
22834         (__libc_memalign): Do not use __MALLOC_PMT in variable
22835         declaration.
22836         (__libc_valloc): Likewise.
22837         (__libc_pvalloc): Likewise.
22838         (__libc_calloc): Likewise.
22839         (__posix_memalign): Likewise.
22840
22841         [BZ #14996]
22842         * math/s_casinh.c: Include <float.h>.
22843         (__casinh): Do not do computation with squaring and square root
22844         for large arguments.
22845         * math/s_casinhf.c: Include <float.h>.
22846         (__casinhf): Do not do computation with squaring and square root
22847         for large arguments.
22848         * math/s_casinhl.c: Include <float.h>.
22849         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
22850         (__casinhl): Do not do computation with squaring and square root
22851         for large arguments.
22852         * math/libm-test.inc (casin_test): Add more tests.
22853         (casinh_test): Likewise.
22854         * sysdeps/i386/fpu/libm-test-ulps: Update.
22855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22856
22857 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
22858
22859         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
22860         (__x86_64_raw_data_cache_size): Likewise.
22861         (__x86_64_data_cache_size_half): Likewise.
22862         (__x86_64_raw_data_cache_size_half): Likewise.
22863         (__x86_64_shared_cache_size): Likewise.
22864         (__x86_64_raw_shared_cache_size): Likewise.
22865         (__x86_64_shared_cache_size_half): Likewise.
22866         (__x86_64_raw_shared_cache_size_half): Likewise.
22867         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
22868         to ...
22869         (__x86_data_cache_size): This.
22870         (__x86_64_raw_data_cache_size): Renamed to ...
22871         (__x86_raw_data_cache_size): This.
22872         (__x86_64_data_cache_size_half): Renamed to ...
22873         (__x86_data_cache_size_half): This.
22874         (__x86_64_raw_data_cache_size_half): Renamed to ...
22875         (__x86_raw_data_cache_size_half): This.
22876         (__x86_64_shared_cache_size): Renamed to ...
22877         (__x86_shared_cache_size): This.
22878         (__x86_64_raw_shared_cache_size): Renamed to ...
22879         (__x86_raw_shared_cache_size): This.
22880         (__x86_64_shared_cache_size_half): Renamed to ...
22881         (__x86_shared_cache_size_half): This.
22882         (__x86_64_raw_shared_cache_size_half): Renamed to ...
22883         (__x86_raw_shared_cache_size_half): This.
22884         * sysdeps/x86_64/memcpy.S: Updated.
22885         * sysdeps/x86_64/memset.S: Likewise.
22886         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
22887         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
22888         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
22889
22890 2013-01-04  David S. Miller  <davem@davemloft.net>
22891
22892         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22893
22894 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
22895
22896         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
22897         1 to avoid redefinition warning.
22898         (__USE_GNU): Don't define.
22899         (init_signaling_nan): Protoize.
22900
22901         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22902
22903 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22904
22905         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
22906         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
22907         (__cpymn): Likewise.
22908         (norm): Remove commented code.
22909         (denorm): Likewise.
22910         (__mp_dbl): Likewise.
22911         (__inv): Likewise.
22912         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
22913         (__cpymn): Likewise.
22914         (norm): Remove commented code.
22915         (denorm): Likewise.
22916         (__mp_dbl): Likewise.
22917         (__inv): Likewise.
22918
22919         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
22920         mp_no value for 1.0 and 2.0.
22921         (norm): Use RADIXI instead of radixi.d.
22922         (denorm): Likewise.
22923         (__mul): Use 0.0 instead of zero.d.
22924         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
22925         mp_no value for 1.0 and 2.0.
22926         (norm): Use RADIXI instead of radixi.d.
22927         (denorm): Likewise.
22928         (__mul): Use 0.0 instead of zero.d.
22929
22930 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
22931
22932         [BZ #14994]
22933         * math/s_casinh.c (__casinh): Reduce finite argument to first
22934         quadrant then set signs of results at the end.
22935         * math/s_casinhf.c (__casinhf): Likewise.
22936         * math/s_casinhl.c (__casinhl): Likewise.
22937         * math/libm-test.inc (casin_test): Add more tests.
22938         (casinh_test): Likewise.
22939         * sysdeps/i386/fpu/libm-test-ulps: Update.
22940         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22941
22942 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22943
22944         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
22945
22946         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
22947
22948         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
22949         declarations.
22950         (denorm): Likewise.
22951         (__mp_dbl): Likewise.
22952         (__inv): Likewise.
22953
22954         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
22955         and adjust the header comment.
22956
22957         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
22958         variable name from declaration.
22959
22960 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
22961
22962         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22963         Initialize COMMON_CPUID_INDEX_7 element.
22964         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
22965         (CPUID_RTM): Likewise.
22966         (HAS_RTM): Likewise.
22967         (COMMON_CPUID_INDEX_7): New enum.
22968
22969 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
22970
22971         [BZ #14981]
22972         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
22973         size is zero, record memory as freed.
22974
22975 2013-01-03  Andreas Jaeger  <aj@suse.de>
22976
22977         * po/ia.po: Add new Interlingua translation.
22978
22979 2012-01-03  Allan McRae  <allan@archlinux.org>
22980
22981         * locale/programs/localedef.c: Fix description of '--posix' flag.
22982
22983 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
22984
22985         * NEWS: Update dates in second copyright notice.
22986         * README: Update copyright dates in example.
22987         * manual/libc.texinfo: Update copyright dates.
22988         * scripts/test-installation.pl: Update copyright date in --version
22989         output.
22990
22991         * hurd/ctty-input.c: Fix copyright notice formatting.
22992         * hurd/ctty-output.c: Likewise.
22993         * hurd/dtable.c: Likewise.
22994         * hurd/hurd-raise.c: Likewise.
22995         * hurd/hurdprio.c: Likewise.
22996         * hurd/msgportdemux.c: Likewise.
22997         * misc/sys/file.h: Likewise.
22998         * misc/sys/ioctl.h: Likewise.
22999         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
23000         * sysdeps/mach/hurd/chdir.c: Likewise.
23001         * sysdeps/mach/hurd/fchdir.c: Likewise.
23002         * sysdeps/mach/hurd/rename.c: Likewise.
23003         * sysdeps/mach/hurd/rmdir.c: Likewise.
23004         * sysdeps/mach/hurd/seekdir.c: Likewise.
23005         * sysdeps/mach/hurd/setsid.c: Likewise.
23006         * sysdeps/posix/wait3.c: Likewise.
23007
23008         * All files with FSF copyright notices: Update copyright dates
23009         using scripts/update-copyrights.
23010         * intl/plural.c: Regenerated.
23011         * locale/programs/charmap-kw.h: Likewise.
23012         * locale/programs/locfile-kw.h: Likewise.
23013
23014 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
23015
23016         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
23017         four values.
23018
23019         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
23020         calculation loop and add branch prediction.
23021
23022         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
23023         check access beyond bounds of m1np.
23024
23025         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23026         MPTWO.
23027         (__inv): Remove local variable MPTWO to use the global
23028         constant.
23029         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
23030         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23031         variable MPTWO.
23032         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
23033         MP3HALFS static const.
23034
23035 2013-01-01  David S. Miller  <davem@davemloft.net>
23036
23037         * po/ca.po: Update from translation team.
23038
23039 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
23040
23041         * scripts/update-copyrights: New file.
23042         * Makeconfig: Reformat copyright notice.
23043         * ctype/ctype.h: Likewise.
23044         * debug/swprintf_chk.c: Likewise.
23045         * elf/dl-cache.c: Likewise.
23046         * elf/dl-debug.c: Likewise.
23047         * elf/dl-object.c: Likewise.
23048         * grp/initgroups.c: Likewise.
23049         * hurd/Makefile: Likewise.
23050         * hurd/hurd/signal.h: Likewise.
23051         * hurd/hurdfault.c: Likewise.
23052         * hurd/hurdioctl.c: Likewise.
23053         * hurd/hurdlookup.c: Likewise.
23054         * hurd/intr-msg.c: Likewise.
23055         * iconv/gconv_open.c: Likewise.
23056         * libio/swprintf.c: Likewise.
23057         * locale/lc-ctype.c: Likewise.
23058         * locale/nl_langinfo.c: Likewise.
23059         * mach/Machrules: Likewise.
23060         * mach/Makefile: Likewise.
23061         * malloc/obstack.h: Likewise.
23062         * manual/Makefile: Likewise.
23063         * manual/tsort.awk: Likewise.
23064         * misc/bits/stab.def: Likewise.
23065         * nis/nis_print_group_entry.c: Likewise.
23066         * nis/nis_table.c: Likewise.
23067         * nis/nss_compat/compat-pwd.c: Likewise.
23068         * nis/nss_compat/compat-spwd.c: Likewise.
23069         * po/Makefile: Likewise.
23070         * posix/fnmatch.c: Likewise.
23071         * posix/regex.h: Likewise.
23072         * resolv/Makefile: Likewise.
23073         * resolv/nss_dns/dns-network.c: Likewise.
23074         * resolv/res_hconf.c: Likewise.
23075         * scripts/gen-sorted.awk: Likewise.
23076         * soft-fp/soft-fp.h: Likewise.
23077         * stdio-common/printf.h: Likewise.
23078         * stdlib/monetary.h: Likewise.
23079         * stdlib/random.c: Likewise.
23080         * stdlib/random_r.c: Likewise.
23081         * sysdeps/generic/Makefile: Likewise.
23082         * sysdeps/gnu/Makefile: Likewise.
23083         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23084         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23085         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23086         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23087         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23088         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23089         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23090         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23091         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23092         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23093         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
23094         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
23095         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
23096         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
23097         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
23098         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
23099         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
23100         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23101         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23102         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23103         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23104         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23105         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23106         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23107         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
23108         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
23109         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
23110         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
23111         * sysdeps/mach/hurd/errnos.awk: Likewise.
23112         * sysdeps/mach/hurd/fork.c: Likewise.
23113         * sysdeps/mach/hurd/getcwd.c: Likewise.
23114         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
23115         * sysdeps/mach/hurd/mmap.c: Likewise.
23116         * sysdeps/mach/hurd/utimes.c: Likewise.
23117         * sysdeps/mach/hurd/xmknod.c: Likewise.
23118         * sysdeps/posix/profil.c: Likewise.
23119         * sysdeps/posix/readdir_r.c: Likewise.
23120         * sysdeps/powerpc/bits/mathdef.h: Likewise.
23121         * sysdeps/powerpc/bits/setjmp.h: Likewise.
23122         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
23123         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
23124         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
23125         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23126         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23127         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
23128         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
23129         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23130         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23131         * sysdeps/pthread/lio_listio.c: Likewise.
23132         * sysdeps/sparc/dl-procinfo.h: Likewise.
23133         * sysdeps/unix/i386/sysdep.S: Likewise.
23134         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
23135         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
23136         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
23137         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
23138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
23139         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
23140         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
23141         * sysdeps/unix/sysv/linux/speed.c: Likewise.
23142         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
23143         * sysdeps/wordsize-32/divdi3.c: Likewise.
23144         * time/sys/time.h: Likewise.
23145         * wcsmbs/Makefile: Likewise.
23146
23147 2013-01-01  David S. Miller  <davem@davemloft.net>
23148
23149         * po/fr.po: Update from translation team.
23150
23151         * catgets/gencat.c: Update copyright year.
23152         * csu/version.c: Likewise.
23153         * debug/catchsegv.sh: Likewise.
23154         * debug/pcprofiledump.c: Likewise.
23155         * debug/xtrace.sh: Likewise.
23156         * elf/ldconfig.c: Likewise.
23157         * elf/ldd.bash.in: Likewise.
23158         * elf/pldd.c: Likewise.
23159         * elf/sotruss.ksh: Likewise.
23160         * elf/sprof.c: Likewise.
23161         * iconv/iconv_prog.c: Likewise.
23162         * iconv/iconvconfig.c: Likewise.
23163         * locale/programs/locale.c: Likewise.
23164         * locale/programs/localedef.c: Likewise.
23165         * login/programs/pt_chown.c: Likewise.
23166         * malloc/memusage.sh: Likewise.
23167         * malloc/memusagestat.c: Likewise.
23168         * malloc/mtrace.pl: Likewise.
23169         * nscd/nscd.c: Likewise.
23170         * nss/getent.c: Likewise.
23171         * nss/makedb.c: Likewise.
23172         * posix/getconf.c: Likewise.
23173
23174 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23175
23176         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
23177         numbers.
23178
23179 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
23180
23181         * math/bits/mathcalls.h (modf): Use __nonnull.
23182
23183 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23184
23185         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
23186         (split): Use macro CN instead of the bare value.
23187         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
23188         could be used.
23189         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
23190         instead of the bare value.
23191         (power1): Likewise.
23192
23193 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23194
23195         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
23196         __ATAN_TWOM.
23197         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23198
23199         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
23200         their values.
23201         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
23202         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
23203         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
23204         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
23205
23206 2012-12-28  Andreas Jaeger  <aj@suse.de>
23207
23208         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
23209         values are from Linux 3.7.
23210
23211         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
23212         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
23213
23214 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23215
23216         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
23217         TRUE case.
23218
23219         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
23220         (norm): Likewise.
23221         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
23222         variables with preprocessor constants.
23223         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
23224         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
23225         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
23226
23227 2012-12-27  Bruno Haible  <bruno@clisp.org>
23228
23229         [BZ #14317]
23230         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
23231         only if needed.
23232
23233 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23234
23235         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
23236         and use variable directly.
23237         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
23238
23239         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
23240         MPONE.
23241         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
23242         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
23243         variable MPONE.
23244         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
23245         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
23246         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
23247         include directive.  Remove local variable MPONE.
23248         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
23249         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
23250         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23251
23252 2012-12-25  David S. Miller  <davem@davemloft.net>
23253
23254         * version.h (RELEASE): Set to "development".
23255         (VERSION): Set to "2.17.90".
23256         * NEWS: Add 2.18 section.
23257
23258 2012-12-21  David S. Miller  <davem@davemloft.net>
23259
23260         * po/hr.po: Update from translation team.
23261
23262 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23263
23264         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
23265
23266 2012-12-19  Steve Ellcey  <sellcey@mips.com>
23267
23268         * NEWS:  Mention new memcpy for MIPS.
23269
23270 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
23271
23272         * manual/contrib.texi (Contributors): Spelling correction.
23273
23274 2012-12-15  David S. Miller  <davem@davemloft.net>
23275
23276         * po/ru.po: Update from translation team.
23277
23278 2012-12-13  David S. Miller  <davem@davemloft.net>
23279
23280         * NEWS: Mention IFUNC testsuite enhancements.
23281
23282         * po/pl.po: Update from translation team.
23283         * po/bg.po: Likewise.
23284
23285         * manual/contrib.texi (Contributors): Update entries for Hongjiu
23286         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
23287
23288 2012-12-11  David S. Miller  <davem@davemloft.net>
23289
23290         * po/sv.po: Update from translation team.
23291
23292         * po/vi.po: Update from translation team.
23293
23294         * po/cs.po: Update from translation team.
23295
23296         * po/de.po: Update from translation team.
23297         * po/eo.po: Likewise.
23298         * po/nl.po: Likewise.
23299
23300 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
23301
23302         [BZ #14246]
23303         * manual/argp.texi (Argp Helper Functions): Move node to follow
23304         Argp Parsing State.
23305
23306         [BZ #14872]
23307         * manual/conf.texi (Limits on File System Capacity): Mention if
23308         terminating null is included in the max size.
23309
23310 2012-12-10  Andreas Jaeger  <aj@suse.de>
23311
23312         * po/cs.po: Update from translation team.
23313
23314 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
23315
23316         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
23317         void pointer and cast to uintptr_t.
23318         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
23319         path.
23320         * sysdeps/s390/s390-64/memcpy.S: Likewise.
23321         * sysdeps/s390/s390-64/memset.S: Likewise.
23322
23323 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
23324
23325         [BZ #14833]
23326         * menual/message.texi (Message Translation): Fix typos.
23327         (Helper programs for gettext): Likewise.
23328
23329 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
23330
23331         [BZ #14898]
23332         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
23333         Change to -1.
23334
23335 2012-12-07  David S. Miller  <davem@davemloft.net>
23336
23337         * po/libc.pot: Update.
23338
23339 2012-12-07  Richard Henderson  <rth@redhat.com>
23340
23341         [BZ #10114]
23342         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
23343         normal/normal case to before the switch.
23344         (_FP_DIV): Likewise.
23345
23346 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
23347             Mike Frysinger  <vapier@gentoo.org>
23348
23349         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
23350         check for __NR_fadvise64_64.
23351
23352 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
23353
23354         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
23355         0, not just to plain "0" as a statement.
23356         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
23357         with cw.
23358
23359 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
23360
23361         * NEWS: Use sourceware.org in Bugzilla URL.
23362
23363 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
23364
23365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
23366         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23367
23368         * stdio-common/tst-put-error.c (do_test): Add newline to the
23369         padded test to ensure flush.
23370
23371 2012-12-05  Jeff Law  <law@redhat.com>
23372
23373         * sunrpc/etc.rpc (fedfs_admin): Add entry.
23374
23375 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
23376
23377         * README: Don't refer to ports add-on as distributed separately.
23378         Mention AArch64 in list of systems supported in the ports add-on.
23379
23380         * LICENSES: Add more non-FSF copyright and license notices.
23381
23382         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
23383         ((unused)).
23384
23385         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
23386
23387         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
23388         10000 as width of padded output.
23389
23390 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23391
23392         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
23393
23394         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
23395         variable LX with __attribute__ ((unused)).
23396         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
23397         Likewise.
23398         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
23399         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
23400         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
23401         with __attribute__ ((unused)).
23402
23403 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
23404
23405         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
23406
23407 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
23408
23409         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
23410         (CFLAGS-nldbl-acos.c): New variable.
23411         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
23412         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
23413         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
23414         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
23415         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
23416         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
23417         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
23418         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
23419         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
23420         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
23421         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
23422         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
23423         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
23424         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
23425         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
23426         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
23427         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
23428         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
23429         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
23430         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
23431         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
23432         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
23433         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
23434         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
23435         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
23436         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
23437         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
23438         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
23439         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
23440         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
23441         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
23442         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
23443         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
23444         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
23445         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
23446         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
23447         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
23448         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
23449         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
23450         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
23451         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
23452         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
23453         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
23454         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
23455         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
23456         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
23457         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
23458         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
23459         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
23460         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
23461         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
23462         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
23463         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
23464         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
23465         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
23466         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
23467         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
23468         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
23469         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
23470         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
23471         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
23472         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
23473         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
23474         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
23475         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
23476         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
23477         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
23478         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
23479         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
23480         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
23481         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
23482         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
23483         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
23484         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
23485         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
23486         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
23487         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
23488         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
23489         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
23490         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
23491         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
23492         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
23493         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
23494         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
23495         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
23496         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
23497         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
23498         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
23499         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
23500         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
23501         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
23502         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
23503         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
23504         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
23505         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
23506         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
23507         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
23508
23509         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
23510         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
23511
23512         [BZ #14914]
23513         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
23514         whole low double instead of just low 47 bits when splitting values
23515         into two parts.
23516
23517 2012-12-03  Allan McRae  <allan@archlinux.org>
23518
23519         * manual/stdio.texi (Predefined Printf Handlers): Remove
23520         @hsep and @vsep usage.
23521
23522 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
23523
23524         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
23525         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
23526
23527 2012-12-03  Jeff Law  <law@redhat.com>
23528
23529         * time/sys/time.h (settimeofday): Do not mark TV argument
23530         as __nonnull.
23531
23532 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
23533
23534         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
23535         when currently writing and seek to current position when not.
23536         * libio/Makefile (tests): Remove bug-fclose1.
23537         * libio/bug-fclose1.c: Delete.
23538
23539 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
23540
23541         * manual/arith.texi (feenableexcept): Fix typo.
23542         (fedisableexcept): Likewise.
23543
23544 2012-11-30  Roland McGrath  <roland@hack.frob.com>
23545
23546         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
23547         second, differently-typed declaration, rather than a cast.
23548
23549 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23550
23551         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
23552         * include/rpc/svc.h: ... here.
23553
23554 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
23555
23556         [BZ #13013]
23557         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
23558         depending n and resplen2 to catch cases where answer
23559         equals answerp2.
23560
23561 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
23562
23563         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
23564         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
23565
23566 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
23567
23568         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
23569
23570 2012-11-29  Roland McGrath  <roland@hack.frob.com>
23571
23572         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
23573
23574 2012-11-28  Jeff Law  <law@redhat.com>
23575
23576         [BZ #13761]
23577         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
23578         dataset_temporary.  Track alloca usage into alloca_used.
23579         If dataset is large allocate and release it via malloc/free.
23580
23581 2012-06-04  Florian Weimer  <fweimer@redhat.com>
23582
23583         [BZ #14197]
23584         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
23585
23586 2012-11-28  David S. Miller  <davem@davemloft.net>
23587
23588         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23589
23590 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23591
23592         [BZ #14803]
23593         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
23594         of pi/2 rounded to nearest to 64 bits.
23595         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
23596         nearest to 64 bits.
23597         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
23598         bits.
23599
23600 2012-11-28  Jeff Law <law@redhat.com>
23601             Martin Osvald <mosvald@redhat.com>
23602
23603         [BZ #14889]
23604         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
23605         * sunrpc/svc.c: Include time.h.
23606         (__svc_accept_failed): New function.
23607         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
23608         any reason other than EINTR, call __svc_accept_failed.
23609         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
23610         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
23611
23612 2012-11-28  Andreas Schwab  <schwab@suse.de>
23613
23614         * scripts/abilist.awk: Also handle indirect functions in .opd
23615         section.
23616
23617 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
23618
23619         [BZ #13881]
23620         * sysdeps/x86/fpu/powl_helper.c: New file.
23621         * sysdeps/x86/fpu/Makefile: Likewise.
23622         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
23623         (p3): New object.
23624         (__ieee754_powl): Use __powl_helper for finite arguments except
23625         integer exponents below 8.
23626         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
23627         (p3): New object.
23628         (__ieee754_powl): Use __powl_helper for finite arguments except
23629         integer exponents below 8.
23630         * math/libm-test.inc (pow_test): Add more tests and enable some
23631         previously disabled tests.
23632         * sysdeps/i386/fpu/libm-test-ulps: Update.
23633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23634
23635 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23636             Carlos O'Donell  <carlos_odonell@mentor.com>
23637
23638         * nss/makedb.c (is_prime): Assert that input is odd and greater
23639         than 4.  Note that fact in a comment too.
23640         (next_prime): Add 4 to input.
23641
23642 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
23643
23644         [BZ #11741]
23645         * libio/Makefile (tests): Add test case tst-fwrite-error.
23646         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
23647         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
23648         * libio/tst-fwrite-error.c: New test case.
23649
23650 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
23651
23652         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
23653         before casting to void *.
23654         * include/libc-internal.h (__pointer_type): New macro.
23655         (__integer_if_pointer_type_sub): Likewise.
23656         (__integer_if_pointer_type): Likewise.
23657         (cast_to_integer): Likewise.
23658         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
23659         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
23660         before casting to atomic64_t.
23661         (atomic_exchange_acq): Likewise.
23662         (__arch_exchange_and_add_body): Likewise.
23663         (__arch_add_body): Likewise.
23664         (atomic_add_negative): Likewise.
23665         (atomic_add_zero): Likewise.
23666
23667 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
23668
23669         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
23670         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
23671         (add_fdes): Likewise.
23672         (linear_search_fdes): Likewise.
23673         (binary_search_unencoded_fdes): Likewise.
23674
23675 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
23676
23677         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
23678
23679 2012-11-24  Adam Conrad  <adconrad@0c3.net>
23680
23681         * configure.in: Autodetect C++ header directories.
23682         * configure: Regenerated.
23683
23684 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
23685
23686         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
23687
23688 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
23689
23690         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23691
23692 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
23693
23694         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
23695         LDBL_MANT_DIG == 106]: Disable some tests.
23696         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23697         Likewise.
23698         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
23699         Likewise.
23700
23701         [BZ #14871]
23702         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
23703         input for small inputs.  Return +/- pi/2 for large inputs.
23704         * math/libm-test.inc (atan_test): Add more tests.
23705
23706         * sysdeps/generic/unwind-dw2-fde-glibc.c
23707         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
23708         __attribute__ ((unused)).
23709
23710         [BZ #14645]
23711         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
23712         x * y if x and y are nonzero and z is zero.
23713
23714         [BZ #14811]
23715         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
23716         nonzero exponents with absolute value below 0x1p-117 to +/-
23717         0x1p-117.
23718
23719         [BZ #14869]
23720         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
23721         up arguments below 2**-450, not just those below 2**-500.
23722         * math/libm-test.inc (hypot_test): Add another test.
23723
23724         [BZ #14868]
23725         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
23726         Return a+b for ratio over 2**120, not 2**60.
23727         * math/libm-test.inc (hypot_test): Add another test.
23728
23729         * math/libm-test.inc (clog_test): Use
23730         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
23731         (clog10_test): Likewise.
23732
23733         [BZ #6778]
23734         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
23735
23736 2012-11-22  Andreas Schwab  <schwab@suse.de>
23737
23738         * sysdeps/i386/fpu/libm-test-ulps: Update.
23739
23740 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
23741
23742         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
23743         printf output with newline.
23744
23745 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
23746
23747         [BZ #14865]
23748         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
23749         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
23750         -z nodlopen, -z initfirst and -z execstack support.
23751         * configure: Regenerated.
23752
23753         * elf/elf.h (DF_1_NODIRECT): New macro.
23754         (DF_1_IGNMULDEF): Likewise.
23755         (DF_1_NOKSYMS): Likewise.
23756         (DF_1_NOHDR): Likewise.
23757         (DF_1_EDITED): Likewise.
23758         (DF_1_NORELOC): Likewise.
23759         (DF_1_SYMINTPOSE): Likewise.
23760         (DF_1_GLOBAUDIT): Likewise.
23761         (DF_1_SINGLETON): Likewise.
23762         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
23763         DT_1_SUPPORTED_MASK bits.
23764         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
23765
23766 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
23767
23768         * sysdeps/unix/make-syscalls.sh: Document prefixes.
23769
23770 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
23771
23772         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
23773         macro.
23774
23775         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
23776         (sendmmsg): Move declarations...
23777         * socket/sys/socket.h: ... here.
23778         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
23779         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
23780         include it from...
23781         * socket/recvmmsg.c: ... this new file.
23782         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
23783         (sendmmsg): Rename to __sendmmsg, create weak alias and make
23784         definition of __sendmmsg hidden.
23785         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
23786         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
23787         Move ENOSYS stub into and include it from...
23788         * socket/sendmmsg.c: ... this new file.
23789         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
23790         (sysdep_routines): Move recvmmsg and sendmmsg...
23791         * socket/Makefile (routines): ... here.
23792         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
23793         (GLIBC_PRIVATE): Add __sendmmsg.
23794         * include/sys/socket.h (__sendmmsg): Add declarations.
23795         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
23796         sendmmsg.
23797
23798 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
23799
23800         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
23801         variable I1 with __attribute__ ((unused)).
23802         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
23803
23804 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
23805
23806         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
23807         DUMMY variables with __attribute__ ((unused)).
23808
23809         * bits/byteswap.h: Include <bits/types.h>.
23810         (__bswap_64): Use __uint64_t instead of unsigned long long int.
23811
23812 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
23813
23814         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
23815         string_t.  Do not manually set errno.
23816         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
23817         length with __strnlen.  Make sure to both set errno and return it on
23818         failure.
23819
23820 2012-11-19  David S. Miller  <davem@davemloft.net>
23821
23822         With help from Joseph Myers.
23823         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
23824         very large arguments properly.
23825         * math/libm-test.inc (atan_test): New tests.
23826         (atan2_test): New tests.
23827         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23828         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23829
23830 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
23831
23832         [BZ #14856]
23833         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
23834         Define to 3.
23835
23836         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
23837         [POSIX] (EADDRNOTAVAIL): Likewise.
23838         [POSIX] (EAFNOSUPPORT): Likewise.
23839         [POSIX] (EALREADY): Likewise.
23840         [POSIX] (ECONNABORTED): Likewise.
23841         [POSIX] (ECONNREFUSED): Likewise.
23842         [POSIX] (ECONNRESET): Likewise.
23843         [POSIX] (EDESTADDRREQ): Likewise.
23844         [POSIX] (EDQUOT): Likewise.
23845         [POSIX] (EHOSTUNREACH): Likewise.
23846         [POSIX] (EIDRM): Likewise.
23847         [POSIX] (EISCONN): Likewise.
23848         [POSIX] (ELOOP): Likewise.
23849         [POSIX] (EMULTIHOP): Likewise.
23850         [POSIX] (ENETDOWN): Likewise.
23851         [POSIX] (ENETUNREACH): Likewise.
23852         [POSIX] (ENOBUFS): Likewise.
23853         [POSIX] (ENODATA): Likewise.
23854         [POSIX] (ENOLINK): Likewise.
23855         [POSIX] (ENOMSG): Likewise.
23856         [POSIX] (ENOPROTOOPT): Likewise.
23857         [POSIX] (ENOSR): Likewise.
23858         [POSIX] (ENOSTR): Likewise.
23859         [POSIX] (ENOTCONN): Likewise.
23860         [POSIX] (ENOTSOCK): Likewise.
23861         [POSIX] (EOPNOTSUPP): Likewise.
23862         [POSIX] (EOVERFLOW): Likewise.
23863         [POSIX] (EPROTO): Likewise.
23864         [POSIX] (EPROTONOSUPPORT): Likewise.
23865         [POSIX] (EPROTOTYPE): Likewise.
23866         [POSIX] (ESTALE): Likewise.
23867         [POSIX] (ETIME): Likewise.
23868         [POSIX] (ETXTBSY): Likewise.
23869         [POSIX] (EWOULDBLOCK): Likewise.
23870         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
23871         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
23872         [POSIX] (SEEK_CUR): Likewise.
23873         [POSIX] (SEEK_END): Likewise.
23874         [POSIX || UNIX98] (mode_t): Do not require.
23875         [POSIX] (off_t): Likewise.
23876         [POSIX] (pid_t): Likewise.
23877         [POSIX] (sys/stat.h): Do not allow header.
23878         [POSIX] (unistd.h): Likewise.
23879         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
23880         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
23881         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
23882         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
23883         require.
23884         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
23885         sigevent): Specify elements.
23886         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
23887         entry.
23888         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
23889         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
23890
23891         * conform/data/cpio.h-data [POSIX]: Disable whole file.
23892         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
23893         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
23894         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
23895         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
23896         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
23897         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
23898         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
23899         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
23900         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
23901         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
23902         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
23903         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
23904         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
23905         Likewise.
23906         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
23907         Likewise.
23908         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
23909         Likewise.
23910         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
23911         Likewise.
23912         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
23913         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
23914         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
23915         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
23916         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
23917         Specify lower bound on value.
23918         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
23919         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
23920         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
23921         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
23922         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
23923         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
23924         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
23925         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
23926         value.
23927         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
23928         as optional.
23929         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
23930         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
23931         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
23932         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
23933         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
23934         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
23935         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
23936         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
23937         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
23938         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
23939         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
23940         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
23941         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
23942         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
23943         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
23944         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
23945         entry.
23946         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
23947         optional.
23948         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
23949         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
23950         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
23951         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
23952         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
23953         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
23954         Likewise.
23955         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
23956         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
23957         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
23958         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
23959         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
23960         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
23961         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
23962         as optional.
23963         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
23964         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
23965         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
23966         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
23967         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
23968         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
23969         specify as optional.
23970         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
23971         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
23972         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
23973         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
23974         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
23975         [XPG3] (NL_LANGMAX): Likewise.
23976         [POSIX || XPG3] (NL_MSGMAX): Likewise.
23977         [POSIX || XPG3] (NL_NMAX): Likewise.
23978         [POSIX || XPG3] (NL_SETMAX): Likewise.
23979         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
23980         [XPG3] (NZERO): Likewise.
23981         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
23982         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
23983         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
23984         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
23985         (REG_ERANGE): Expect.
23986         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
23987         optional-constant.
23988         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
23989         Use (void) in prototype.
23990         [POSIX] (*_t): Allow.
23991         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
23992         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
23993         (WRDE_BADVAL): Expect.
23994
23995         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
23996         expect.
23997         [XPG3 || XPG4] (O_RSYNC): Likewise.
23998         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
23999         Likewise.
24000         [XPG3 || XPG4] (pthread_sigmask): Likewise.
24001         [XPG3 || XPG4] (sigqueue): Likewise.
24002         [XPG3 || XPG4] (sigtimedwait): Likewise.
24003         [XPG3 || XPG4] (sigwaitinfo): Likewise.
24004         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
24005         [XPG3 || XPG4] (vsnprintf): Likewise.
24006         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
24007         Likewise.
24008         [XPG3 || XPG4] (blksize_t): Likewise.
24009         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
24010         Likewise.
24011         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
24012         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
24013         [XPG3 || XPG4] (struct itimerspec): Likewise.
24014         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
24015         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
24016         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
24017         [XPG3 || XPG4] (clockid_t): Likewise.
24018         [XPG3 || XPG4] (timer_t): Likewise.
24019         [XPG3 || XPG4] (clock_getres): Likewise.
24020         [XPG3 || XPG4] (clock_gettime): Likewise.
24021         [XPG3 || XPG4] (clock_settime): Likewise.
24022         [XPG3 || XPG4] (nanosleep): Likewise.
24023         [XPG3 || XPG4] (timer_create): Likewise.
24024         [XPG3 || XPG4] (timer_delete): Likewise.
24025         [XPG3 || XPG4] (timer_gettime): Likewise.
24026         [XPG3 || XPG4] (timer_getoverrun): Likewise.
24027         [XPG3 || XPG4] (timer_settime): Likewise.
24028         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
24029         [XPG3 || XPG4] (getlogin_r): Likewise.
24030         [XPG3 || XPG4] (pread): Likewise.
24031         [XPG3 || XPG4] (pthread_atfork): Likewise.
24032         [XPG3 || XPG4] (pwrite): Likewise.
24033
24034         [BZ #14835]
24035         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
24036         <bits/siginfo.h>.
24037
24038 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
24039
24040         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
24041         finalizing MALLSTREAM.
24042
24043         * sysdeps/mach/hurd/syncfs.c: New file.
24044
24045 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
24046
24047         [BZ #14719]
24048         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
24049         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
24050         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
24051         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
24052         (_nss_dns_gethostbyname4_r): Likewise.
24053         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
24054         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
24055
24056 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
24057
24058         [BZ #13763]
24059         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
24060
24061 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
24062
24063         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24064         * elf/cache.c (print_entry): Print ",AArch64" for
24065         FLAG_AARCH64_LIB64
24066
24067         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
24068         * elf/cache.c (print_entry): Print ",hard-float" for
24069         FLAG_ARM_LIBHF.
24070
24071 2012-11-18  David S. Miller  <davem@davemloft.net>
24072
24073         With help from Joseph Myers.
24074         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
24075         cutoff to 2**-13.
24076         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
24077         cutoff to 2**-25.
24078         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
24079         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
24080         small.
24081         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
24082         * math/libm-test.inc (y0_test): New tests.
24083         (y1_test): New tests.
24084         * sysdeps/i386/fpu/libm-test-ulps: Update.
24085         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24086         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24087
24088 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
24089
24090         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
24091         64-bit targets.
24092         * configure: Regenerated.
24093
24094 2012-11-17  David S. Miller  <davem@davemloft.net>
24095
24096         [BZ #14811]
24097         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
24098         nonzero exponents with absolute value below 0x1p-128 to +/-
24099         0x1p-128.
24100
24101 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
24102
24103         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
24104
24105         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
24106
24107         * posix/getconf-speclist.c: New file.
24108         * posix/posix-envs.def: Likewise.
24109         * posix/confstr.c (START_ENV_GROUP): New macro.
24110         (END_ENV_GROUP): Likewise.
24111         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24112         (KNOWN_PRESENT_ENV_STRING): Likewise.
24113         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24114         (UNKNOWN_ENVIRONMENT): Likewise.
24115         (confstr): Include posix-envs.def instead of handling
24116         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
24117         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
24118         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
24119         (END_ENV_GROUP): Likewise.
24120         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
24121         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
24122         (UNKNOWN_ENVIRONMENT): Likewise.
24123         (__sysconf): Include posix-envs.def instead of handling associated
24124         cases directly here.
24125         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
24126         preprocessing getconf-speclist.c rather than running getconf or
24127         generating empty file.
24128
24129 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
24130
24131         * scripts/check-local-headers.sh: Ignore 'mach' headers.
24132
24133 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
24134
24135         [BZ #14672]
24136         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
24137
24138 2012-11-16  David S. Miller  <davem@davemloft.net>
24139
24140         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
24141         smaller than LDBL_EPSILON/2.0L, just return xm1.
24142
24143 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
24144
24145         * elf/tst-array1.c (init): Set constructor priority to 1000.
24146         (fini): Set destructor priority to 1000.
24147         * elf/tst-array2dep.c: Likewise.
24148
24149 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24150
24151         [BZ #11741]
24152         * libio/fileops.c (_IO_new_file_write): Correctly return error.
24153         (_IO_new_file_xsputn): Also return EOF if none of the input
24154         data was written when overflow failed.
24155         * libio/iopadn.c (_IO_padn): Likewise.
24156         * libio/iowpadn.c (_IO_wpadn): Likewise.
24157         * stdio-common/tst-put-error.c: Add copyright notice.
24158         (do_test): Add case for printing padded string.
24159         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
24160         _IO_padn returned error.
24161         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
24162         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
24163         return EOF.
24164
24165 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24166
24167         * libio/libioP.h: Add comment note that the references to C++
24168         bits are now obsolete.
24169
24170 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24171
24172         * math/libm-test.inc (check_complex): Use asprintf.
24173
24174 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
24175
24176         * debug/pcprofiledump.c (print_version): Update copyright year.
24177         * malloc/memusagestat.c (print_version): Likewise.
24178
24179 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
24180
24181         [BZ #14831]
24182         * elf/Makefile (tests): Add tst-audit8.
24183         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
24184         ($(objpfx)tst-audit8.out): New target.
24185         (tst-audit8-ENV): New variable.
24186         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
24187         audit if l_reloc_result is NULL.
24188         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
24189         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
24190         * elf/tst-audit8.c: New file.
24191
24192 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24193
24194         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
24195         * misc/Makefile (CFLAGS-select.c): Define.
24196         * posix/Makefile (CFLAGS-pause.c): Define.
24197
24198 2012-11-13  David S. Miller  <davem@davemloft.net>
24199
24200         * crypt/Makefile: Move test targets after toplevel Rules
24201         inclusion.  Grab any necessary sysdep routines when linking.
24202         * crypt/md5.c (md5_process_block): Remove define, we will always
24203         name it __md5_process_block.
24204         (md5_finish_ctx): Update md5_process_block call.
24205         (md5_stream): Likewise.
24206         (md5_process_bytes): Likewise.
24207         (md5_process_block): Rename to __md5_process_block and move to ...
24208         * crypt/md5-block.c: ... here.
24209         * crypt/sha256.c (sha256_process_block): Move to ...
24210         * crypt/sha256-block.c: ... here.
24211         * crypt/sha512.c (sha512_process_block): Move to ...
24212         * crypt/sha512-block.c: ... here.
24213         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
24214         path.
24215         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
24216         * sysdeps/sparc/sparc64/multiarch/Makefile
24217         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
24218         crypt subdir.
24219         (localedef-aux): Add md5 crypto assembler when in locale subdir.
24220         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
24221         multiarch changes.
24222         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
24223         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
24224         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
24225         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
24226         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
24227         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
24228         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
24229         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
24230         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
24231         file.
24232         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
24233         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
24234         file.
24235         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
24236
24237 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
24238
24239         * timezone/tzselect.ksh: Update from tzcode git revision
24240         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
24241         * timezone/zdump.c: Likewise.
24242         * timezone/zic.c: Likewise.
24243         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
24244         in TZVERSION setting, not $(PKGVERSION).
24245         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
24246         REPORT_BUGS_TO settings.
24247
24248         [BZ #14838]
24249         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
24250         macro.
24251
24252 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24253
24254         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
24255         detection to immediately after _FP_ROUND().
24256         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
24257         bits are 0.
24258
24259 2012-11-11  David S. Miller  <davem@davemloft.net>
24260
24261         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
24262         inttypes.h
24263         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
24264         __close rather than their public counterparts.
24265
24266 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
24267
24268         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
24269         file.
24270         [UNIX98] (sem_timedwait): Do not expect.
24271         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
24272         [XPG4 || UNIX98] (sockatmark): Do not expect.
24273         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
24274         (clock_getcpuclockid): Do not expect.
24275         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
24276         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
24277         Do not expect.
24278         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
24279         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
24280         [UNIX98] (vwscanf): Likewise.
24281         [UNIX98] (vswscanf): Likewise.
24282
24283 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
24284
24285         * timezone/version.h: Remove file.
24286         * timezone/README: Do not refer to version.h.
24287         * timezone/Makefile ($(objpfx)zic.o): New dependency on
24288         $(objpfx)version.h.
24289         ($(objpfx)zdump.o): Likewise.
24290         ($(objpfx)version.h): New target.
24291
24292         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
24293         2012i.
24294         * timezone/README: Don't mention modification to tzselect.ksh.
24295         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
24296         work on unmodified tzselect.ksh.  Substitute version numbers in
24297         tzselect.ksh.
24298
24299         * Makefile (format-me): Remove.
24300         (INSTALL): Adjust indentation.  Use commands directly instead of
24301         using $(format-me).
24302
24303         * aclocal.m4 (ACX_PKGVERSION): New macro.
24304         (ACX_BUGURL): Likewise.
24305         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
24306         (PKGVERSION): New AC_DEFINE_UNQUOTED.
24307         (REPORT_BUGS_TO): Likewise.
24308         * configure: Regenerated.
24309         * config.h.in (PKGVERSION): New macro.
24310         (REPORT_BUGS_TO): Likewise.
24311         * config.make.in (PKGVERSION): New variable.
24312         (PKGVERSION_TEXI): Likewise.
24313         (REPORT_BUGS_TO): Likewise.
24314         (REPORT_BUGS_TEXI): Likewise.
24315         * Makefile (format-me): Use -I$(common-objpfx)manual.
24316         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
24317         ($(common-objpfx)manual/%): New target.
24318         (manual/%): Remove target.
24319         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
24320         (print_version): Use PKGVERSION.
24321         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
24322         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
24323         and REPORT_BUGS_TO.
24324         ($(objpfx)xtrace): Likewise.
24325         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
24326         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
24327         (print_version): Use PKGVERSION.
24328         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
24329         (do_version): Use PKGVERSION.
24330         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
24331         REPORT_BUGS_TO.
24332         (common-ldd-rewrite): Likewise.
24333         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
24334         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
24335         (print_version): Use PKGVERSION.
24336         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
24337         * elf/pldd.c (argp_program_bug_address): Remove variable.
24338         (more_help): New function.
24339         (argp): Use more_help.
24340         (print_version): Use PKGVERSION.
24341         * elf/sln.c (main): Use PKGVERSION.
24342         (usage): Use REPORT_BUGS_TO.
24343         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
24344         (top level): Use PKGVERSION.
24345         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
24346         (print_version): Use PKGVERSION.
24347         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
24348         (print_version): Use PKGVERSION.
24349         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
24350         (print_version): Use PKGVERSION.
24351         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
24352         (print_version): Use PKGVERSION.
24353         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
24354         (print_version): Use PKGVERSION.
24355         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
24356         (print_version): Use PKGVERSION.
24357         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
24358         and BUGURL.
24359         ($(objpfx)memusage): Likewise.
24360         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
24361         (do_version): Use PKGVERSION.
24362         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
24363         (print_version): Use PKGVERSION.
24364         * malloc/mtrace.pl ($PACKAGE): Remove variable.
24365         ($PKGVERSION): New variable.
24366         ($REPORT_BUGS_TO): Likewise.
24367         (usage): Use $REPORT_BUGS_TO.
24368         (top level): Use $PKGVERSION.
24369         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
24370         ($(objpfx)pkgvers.texi): New rule.
24371         ($(objpfx)stamp-pkgvers): Likewise.
24372         * manual/install.texi: Include pkgvers.texi.
24373         (--with-pkgversion): Document new configure option.
24374         (--with-bugurl): Likewise.
24375         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
24376         than necessarily for this particular distribution.  Use
24377         REPORT_BUGS_TO for where to report bugs.
24378         * INSTALL: Regenerated.
24379         * manual/libc.texinfo: Include pkgvers.texi.
24380         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
24381         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
24382         (print_version): Use PKGVERSION.
24383         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
24384         (print_version): Use PKGVERSION.
24385         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
24386         (print_version): Use PKGVERSION.
24387         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
24388         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
24389         macro.
24390         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
24391         (print_version): Use PKGVERSION.
24392         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
24393         (print_version): Use PKGVERSION.
24394         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
24395         and PKGVERSION.
24396
24397         * timezone/checktab.awk: Update from tzcode 2012i.
24398         * timezone/ialloc.c: Likewise.
24399         * timezone/private.h: Likewise.
24400         * timezone/scheck.c: Likewise.
24401         * timezone/tzfile.h: Likewise.
24402         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
24403         (TZVERSION): Hardcode tzcode version number.
24404         * timezone/zdump.c: Update from tzcode 2012i.
24405         * timezone/zic.c: Likewise.
24406         * timezone/version.h: New file.
24407         * timezone/README: Describe version.h.  Update upstream location.
24408
24409         [BZ #14824]
24410         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
24411         (mktemp): Enable declaration.
24412         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
24413         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
24414         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
24415         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
24416         Likewise.
24417         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
24418         Likewise.
24419         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
24420         Likewise.
24421         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
24422         Likewise.
24423         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
24424         Likewise.
24425         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
24426         Likewise.
24427
24428         [BZ #14821]
24429         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
24430         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
24431         for copies of such integer values.
24432         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
24433         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
24434
24435 2012-11-09  Andreas Jaeger  <aj@suse.de>
24436
24437         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
24438         definitions and declarations that are provided by
24439         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
24440
24441 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24442
24443         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
24444         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
24445         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
24446         definition.
24447
24448 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24449
24450         * elf/elf.h: Update comment before AArch64 relocations.
24451
24452 2012-11-07  David S. Miller  <davem@davemloft.net>
24453
24454         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
24455         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24456         (__start_context): Declare.
24457         (__makecontext_ret): Delete.
24458         (__makecontext): Hook up __start_context instead of
24459         __makecontext_ret.
24460         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
24461         (sysdep_routines): Add __start_context when in stdlib.
24462
24463 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24464
24465         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
24466         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
24467         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
24468         hardcoded "nm".
24469         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
24470         (READELF): New variable.  Use it instead of hardcoded "readelf".
24471
24472 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
24473
24474         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
24475         * sysdeps/x86/Makefile: Here.
24476         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
24477         * sysdeps/x86/tst-xmmymm.sh: This.
24478
24479 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24480
24481         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
24482         expectations.
24483         [UNIX98] (pthread_barrier_t): Do not expect.
24484         [UNIX98] (pthread_barrierattr_t): Likewise.
24485         [UNIX98] (pthread_spinlock_t): Likewise.
24486         [UNIX98] (pthread_barrier_destroy): Likewise.
24487         [UNIX98] (pthread_barrier_init): Likewise.
24488         [UNIX98] (pthread_barrier_wait): Likewise.
24489         [UNIX98] (pthread_barrierattr_destroy): Likewise.
24490         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
24491         [UNIX98] (pthread_barrierattr_init): Likewise.
24492         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
24493         [UNIX98] (pthread_getcpuclockid): Likewise.
24494         [UNIX98] (pthread_mutex_timedlock): Likewise.
24495         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
24496         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
24497         [UNIX98] (pthread_sigmask): Likewise.
24498         [UNIX98] (pthread_spin_destroy): Likewise.
24499         [UNIX98] (pthread_spin_init): Likewise.
24500         [UNIX98] (pthread_spin_lock): Likewise.
24501         [UNIX98] (pthread_spin_trylock): Likewise.
24502         [UNIX98] (pthread_spin_unlock): Likewise.
24503         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
24504         Do not expect.
24505         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
24506         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
24507         [XPG3 || XPG4] (pthread_cond_t): Likewise.
24508         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
24509         [XPG3 || XPG4] (pthread_key_t): Likewise.
24510         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
24511         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
24512         [XPG3 || XPG4] (pthread_once_t): Likewise.
24513         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
24514         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
24515         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
24516         [XPG3 || XPG4] (pthread_t): Likewise.
24517
24518         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
24519         not expect.
24520         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
24521
24522         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
24523         Change function return type to int.
24524
24525         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
24526         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
24527         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
24528         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
24529         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
24530         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
24531         [!POSIX] (posix_madvise): Likewise.
24532         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
24533         && !UNIX98].
24534         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
24535         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
24536         (mode_t): Likewise.
24537         (posix_mem_offset): Likewise.
24538         (posix_typed_mem_get_info): Likewise.
24539         (posix_typed_mem_open): Likewise.
24540
24541         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
24542         Change condition to [XOPEN2K8].
24543
24544         * conform/conformtest.pl: Preprocess allow-header data with -x c
24545         instead of from stdin.
24546         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
24547         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
24548         [C99-based standards] (cerfc): Likewise.
24549         [C99-based standards] (cexp2): Likewise.
24550         [C99-based standards] (cexpm1): Likewise.
24551         [C99-based standards] (clog10): Likewise.
24552         [C99-based standards] (clog1p): Likewise.
24553         [C99-based standards] (clog2): Likewise.
24554         [C99-based standards] (clgamma): Likewise.
24555         [C99-based standards] (ctgamma): Likewise.
24556         [C99-based standards] (cerff): Likewise.
24557         [C99-based standards] (cerfcf): Likewise.
24558         [C99-based standards] (cexp2f): Likewise.
24559         [C99-based standards] (cexpm1f): Likewise.
24560         [C99-based standards] (clog10f): Likewise.
24561         [C99-based standards] (clog1pf): Likewise.
24562         [C99-based standards] (clog2f): Likewise.
24563         [C99-based standards] (clgammaf): Likewise.
24564         [C99-based standards] (ctgammaf): Likewise.
24565         [C99-based standards] (cerfl): Likewise.
24566         [C99-based standards] (cerfcl): Likewise.
24567         [C99-based standards] (cexp2l): Likewise.
24568         [C99-based standards] (cexpm1l): Likewise.
24569         [C99-based standards] (clog10l): Likewise.
24570         [C99-based standards] (clog1pl): Likewise.
24571         [C99-based standards] (clog2l): Likewise.
24572         [C99-based standards] (clgammal): Likewise.
24573         [C99-based standards] (ctgammal): Likewise.
24574         * conform/data/inttypes.h-data [C99-based standards]: Include
24575         stdint.h-data.  Remove all expectations for stdint.h contents.
24576         [C99-based standards] (PRI*): Do not allow.
24577         [C99-based standards] (SCN*): Likewise.
24578         [C99-based standards] (*_t): Likewise.
24579         [C99-based-standards] (PRId8): Expect macro.
24580         [C99-based-standards] (PRIi8): Likewise.
24581         [C99-based-standards] (PRIo8): Likewise.
24582         [C99-based-standards] (PRIu8): Likewise.
24583         [C99-based-standards] (PRIx8): Likewise.
24584         [C99-based-standards] (PRIX8): Likewise.
24585         [C99-based-standards] (SCNd8): Likewise.
24586         [C99-based-standards] (SCNi8): Likewise.
24587         [C99-based-standards] (SCNo8): Likewise.
24588         [C99-based-standards] (SCNu8): Likewise.
24589         [C99-based-standards] (SCNx8): Likewise.
24590         [C99-based-standards] (PRIdLEAST8): Likewise.
24591         [C99-based-standards] (PRIiLEAST8): Likewise.
24592         [C99-based-standards] (PRIoLEAST8): Likewise.
24593         [C99-based-standards] (PRIuLEAST8): Likewise.
24594         [C99-based-standards] (PRIxLEAST8): Likewise.
24595         [C99-based-standards] (PRIXLEAST8): Likewise.
24596         [C99-based-standards] (SCNdLEAST8): Likewise.
24597         [C99-based-standards] (SCNiLEAST8): Likewise.
24598         [C99-based-standards] (SCNoLEAST8): Likewise.
24599         [C99-based-standards] (SCNuLEAST8): Likewise.
24600         [C99-based-standards] (SCNxLEAST8): Likewise.
24601         [C99-based-standards] (PRIdFAST8): Likewise.
24602         [C99-based-standards] (PRIiFAST8): Likewise.
24603         [C99-based-standards] (PRIoFAST8): Likewise.
24604         [C99-based-standards] (PRIuFAST8): Likewise.
24605         [C99-based-standards] (PRIxFAST8): Likewise.
24606         [C99-based-standards] (PRIXFAST8): Likewise.
24607         [C99-based-standards] (SCNdFAST8): Likewise.
24608         [C99-based-standards] (SCNiFAST8): Likewise.
24609         [C99-based-standards] (SCNoFAST8): Likewise.
24610         [C99-based-standards] (SCNuFAST8): Likewise.
24611         [C99-based-standards] (SCNxFAST8): Likewise.
24612         [C99-based-standards] (PRId16): Likewise.
24613         [C99-based-standards] (PRIi16): Likewise.
24614         [C99-based-standards] (PRIo16): Likewise.
24615         [C99-based-standards] (PRIu16): Likewise.
24616         [C99-based-standards] (PRIx16): Likewise.
24617         [C99-based-standards] (PRIX16): Likewise.
24618         [C99-based-standards] (SCNd16): Likewise.
24619         [C99-based-standards] (SCNi16): Likewise.
24620         [C99-based-standards] (SCNo16): Likewise.
24621         [C99-based-standards] (SCNu16): Likewise.
24622         [C99-based-standards] (SCNx16): Likewise.
24623         [C99-based-standards] (PRIdLEAST16): Likewise.
24624         [C99-based-standards] (PRIiLEAST16): Likewise.
24625         [C99-based-standards] (PRIoLEAST16): Likewise.
24626         [C99-based-standards] (PRIuLEAST16): Likewise.
24627         [C99-based-standards] (PRIxLEAST16): Likewise.
24628         [C99-based-standards] (PRIXLEAST16): Likewise.
24629         [C99-based-standards] (SCNdLEAST16): Likewise.
24630         [C99-based-standards] (SCNiLEAST16): Likewise.
24631         [C99-based-standards] (SCNoLEAST16): Likewise.
24632         [C99-based-standards] (SCNuLEAST16): Likewise.
24633         [C99-based-standards] (SCNxLEAST16): Likewise.
24634         [C99-based-standards] (PRIdFAST16): Likewise.
24635         [C99-based-standards] (PRIiFAST16): Likewise.
24636         [C99-based-standards] (PRIoFAST16): Likewise.
24637         [C99-based-standards] (PRIuFAST16): Likewise.
24638         [C99-based-standards] (PRIxFAST16): Likewise.
24639         [C99-based-standards] (PRIXFAST16): Likewise.
24640         [C99-based-standards] (SCNdFAST16): Likewise.
24641         [C99-based-standards] (SCNiFAST16): Likewise.
24642         [C99-based-standards] (SCNoFAST16): Likewise.
24643         [C99-based-standards] (SCNuFAST16): Likewise.
24644         [C99-based-standards] (SCNxFAST16): Likewise.
24645         [C99-based-standards] (PRId32): Likewise.
24646         [C99-based-standards] (PRIi32): Likewise.
24647         [C99-based-standards] (PRIo32): Likewise.
24648         [C99-based-standards] (PRIu32): Likewise.
24649         [C99-based-standards] (PRIx32): Likewise.
24650         [C99-based-standards] (PRIX32): Likewise.
24651         [C99-based-standards] (SCNd32): Likewise.
24652         [C99-based-standards] (SCNi32): Likewise.
24653         [C99-based-standards] (SCNo32): Likewise.
24654         [C99-based-standards] (SCNu32): Likewise.
24655         [C99-based-standards] (SCNx32): Likewise.
24656         [C99-based-standards] (PRIdLEAST32): Likewise.
24657         [C99-based-standards] (PRIiLEAST32): Likewise.
24658         [C99-based-standards] (PRIoLEAST32): Likewise.
24659         [C99-based-standards] (PRIuLEAST32): Likewise.
24660         [C99-based-standards] (PRIxLEAST32): Likewise.
24661         [C99-based-standards] (PRIXLEAST32): Likewise.
24662         [C99-based-standards] (SCNdLEAST32): Likewise.
24663         [C99-based-standards] (SCNiLEAST32): Likewise.
24664         [C99-based-standards] (SCNoLEAST32): Likewise.
24665         [C99-based-standards] (SCNuLEAST32): Likewise.
24666         [C99-based-standards] (SCNxLEAST32): Likewise.
24667         [C99-based-standards] (PRIdFAST32): Likewise.
24668         [C99-based-standards] (PRIiFAST32): Likewise.
24669         [C99-based-standards] (PRIoFAST32): Likewise.
24670         [C99-based-standards] (PRIuFAST32): Likewise.
24671         [C99-based-standards] (PRIxFAST32): Likewise.
24672         [C99-based-standards] (PRIXFAST32): Likewise.
24673         [C99-based-standards] (SCNdFAST32): Likewise.
24674         [C99-based-standards] (SCNiFAST32): Likewise.
24675         [C99-based-standards] (SCNoFAST32): Likewise.
24676         [C99-based-standards] (SCNuFAST32): Likewise.
24677         [C99-based-standards] (SCNxFAST32): Likewise.
24678         [C99-based-standards] (PRId64): Likewise.
24679         [C99-based-standards] (PRIi64): Likewise.
24680         [C99-based-standards] (PRIo64): Likewise.
24681         [C99-based-standards] (PRIu64): Likewise.
24682         [C99-based-standards] (PRIx64): Likewise.
24683         [C99-based-standards] (PRIX64): Likewise.
24684         [C99-based-standards] (SCNd64): Likewise.
24685         [C99-based-standards] (SCNi64): Likewise.
24686         [C99-based-standards] (SCNo64): Likewise.
24687         [C99-based-standards] (SCNu64): Likewise.
24688         [C99-based-standards] (SCNx64): Likewise.
24689         [C99-based-standards] (PRIdLEAST64): Likewise.
24690         [C99-based-standards] (PRIiLEAST64): Likewise.
24691         [C99-based-standards] (PRIoLEAST64): Likewise.
24692         [C99-based-standards] (PRIuLEAST64): Likewise.
24693         [C99-based-standards] (PRIxLEAST64): Likewise.
24694         [C99-based-standards] (PRIXLEAST64): Likewise.
24695         [C99-based-standards] (SCNdLEAST64): Likewise.
24696         [C99-based-standards] (SCNiLEAST64): Likewise.
24697         [C99-based-standards] (SCNoLEAST64): Likewise.
24698         [C99-based-standards] (SCNuLEAST64): Likewise.
24699         [C99-based-standards] (SCNxLEAST64): Likewise.
24700         [C99-based-standards] (PRIdFAST64): Likewise.
24701         [C99-based-standards] (PRIiFAST64): Likewise.
24702         [C99-based-standards] (PRIoFAST64): Likewise.
24703         [C99-based-standards] (PRIuFAST64): Likewise.
24704         [C99-based-standards] (PRIxFAST64): Likewise.
24705         [C99-based-standards] (PRIXFAST64): Likewise.
24706         [C99-based-standards] (SCNdFAST64): Likewise.
24707         [C99-based-standards] (SCNiFAST64): Likewise.
24708         [C99-based-standards] (SCNoFAST64): Likewise.
24709         [C99-based-standards] (SCNuFAST64): Likewise.
24710         [C99-based-standards] (SCNxFAST64): Likewise.
24711         [C99-based-standards] (PRIdMAX): Likewise.
24712         [C99-based-standards] (PRIiMAX): Likewise.
24713         [C99-based-standards] (PRIoMAX): Likewise.
24714         [C99-based-standards] (PRIuMAX): Likewise.
24715         [C99-based-standards] (PRIxMAX): Likewise.
24716         [C99-based-standards] (PRIXMAX): Likewise.
24717         [C99-based-standards] (SCNdMAX): Likewise.
24718         [C99-based-standards] (SCNiMAX): Likewise.
24719         [C99-based-standards] (SCNoMAX): Likewise.
24720         [C99-based-standards] (SCNuMAX): Likewise.
24721         [C99-based-standards] (SCNxMAX): Likewise.
24722         [C99-based-standards] (PRIdPTR): Likewise.
24723         [C99-based-standards] (PRIiPTR): Likewise.
24724         [C99-based-standards] (PRIoPTR): Likewise.
24725         [C99-based-standards] (PRIuPTR): Likewise.
24726         [C99-based-standards] (PRIxPTR): Likewise.
24727         [C99-based-standards] (PRIXPTR): Likewise.
24728         [C99-based-standards] (SCNdPTR): Likewise.
24729         [C99-based-standards] (SCNiPTR): Likewise.
24730         [C99-based-standards] (SCNoPTR): Likewise.
24731         [C99-based-standards] (SCNuPTR): Likewise.
24732         [C99-based-standards] (SCNxPTR): Likewise.
24733         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
24734         allow.
24735         * conform/data/stdint.h-data: Update comments to clarify
24736         requirements.
24737         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
24738         type.
24739         [C99-based standards] (INT8_MAX): Likewise.
24740         [C99-based standards] (INT16_MIN): Likewise.
24741         [C99-based standards] (INT16_MAX): Likewise.
24742         [C99-based standards] (INT32_MIN): Likewise.
24743         [C99-based standards] (INT32_MAX): Likewise.
24744         [C99-based standards] (INT64_MIN): Likewise.
24745         [C99-based standards] (INT64_MAX): Likewise.
24746         [C99-based standards] (UINT8_MAX): Likewise.
24747         [C99-based standards] (UINT16_MAX): Likewise.
24748         [C99-based standards] (UINT32_MAX): Likewise.
24749         [C99-based standards] (UINT64_MAX): Likewise.
24750         [C99-based standards] (INT_LEAST8_MIN): Likewise.
24751         [C99-based standards] (INT_LEAST8_MAX): Likewise.
24752         [C99-based standards] (INT_LEAST16_MIN): Likewise.
24753         [C99-based standards] (INT_LEAST16_MAX): Likewise.
24754         [C99-based standards] (INT_LEAST32_MIN): Likewise.
24755         [C99-based standards] (INT_LEAST32_MAX): Likewise.
24756         [C99-based standards] (INT_LEAST64_MIN): Likewise.
24757         [C99-based standards] (INT_LEAST64_MAX): Likewise.
24758         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
24759         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
24760         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
24761         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
24762         [C99-based standards] (INT_FAST8_MIN): Likewise.
24763         [C99-based standards] (INT_FAST8_MAX): Likewise.
24764         [C99-based standards] (INT_FAST16_MIN): Likewise.
24765         [C99-based standards] (INT_FAST16_MAX): Likewise.
24766         [C99-based standards] (INT_FAST32_MIN): Likewise.
24767         [C99-based standards] (INT_FAST32_MAX): Likewise.
24768         [C99-based standards] (INT_FAST64_MIN): Likewise.
24769         [C99-based standards] (INT_FAST64_MAX): Likewise.
24770         [C99-based standards] (UINT_FAST8_MAX): Likewise.
24771         [C99-based standards] (UINT_FAST16_MAX): Likewise.
24772         [C99-based standards] (UINT_FAST32_MAX): Likewise.
24773         [C99-based standards] (UINT_FAST64_MAX): Likewise.
24774         [C99-based standards] (INTPTR_MIN): Likewise.
24775         [C99-based standards] (INTPTR_MAX): Likewise.
24776         [C99-based standards] (UINTPTR_MAX): Likewise.
24777         [C99-based standards] (INTMAX_MIN): Likewise.
24778         [C99-based standards] (INTMAX_MAX): Likewise.
24779         [C99-based standards] (UINTMAX_MAX): Likewise.
24780         [C99-based standards] (PTRDIFF_MIN): Likewise.
24781         [C99-based standards] (PTRDIFF_MAX): Likewise.
24782         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
24783         [C99-based standards] (SIZE_MAX): Likewise.
24784         [C99-based standards] (WCHAR_MAX): Likewise.
24785         [C99-based standards] (WINT_MAX): Likewise.
24786         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
24787         constraint on value.
24788         [C99-based standards] (WCHAR_MIN): Likewise.
24789         [C99-based standards] (WINT_MIN): Likewise.
24790         [C99-based standards] (*_t): Allow.
24791         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
24792         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
24793         Include math.h-data and complex.h-data.  Remove all expectations
24794         of math.h and complex.h contents.
24795         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
24796         at end of line.
24797         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
24798         (struct tm): Expect tag.
24799         [C99-based-standards] (wcstof): Expect function.
24800         [C99-based-standards] (wcstold): Likewise.
24801         [C99-based-standards] (wcstoll): Likewise.
24802         [C99-based-standards] (wcstoull): Likewise.
24803         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
24804         macro-int-constant.  Specify type.
24805         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
24806         constraint on value.
24807         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
24808         Specify type.
24809         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
24810         Specify value.
24811         [ISO C standards]: Do not allow headers.
24812         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
24813         wcs[abcdefghijklmnopqrstuvwxyz]*.
24814         [ISO C standards] (*_t): Do not allow.
24815         * conform/data/wctype.h-data [C99-based standards] (iswblank):
24816         Expect function.
24817         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
24818         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
24819         Specify type.
24820         [ISO C standards]: Do not allow headers.
24821         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
24822         is[abcdefghijklmnopqrstuvwxyz]*.
24823         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
24824         to[abcdefghijklmnopqrstuvwxyz]*.
24825         [ISO C standards] (*_t): Do not allow.
24826         * conform/data/stdalign.h-data: New file.
24827         * conform/data/stdbool.h-data: Likewise.
24828         * conform/data/stdnoreturn.h-data: Likewise.
24829
24830 2012-11-07  Roland McGrath  <roland@hack.frob.com>
24831
24832         [BZ #14815]
24833         * manual/filesys.texi (Directory Entries): Typo fix.
24834         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
24835
24836 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
24837
24838         * elf/elf.h (EM_AARCH64): New macro.
24839         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
24840         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
24841         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
24842         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
24843         (R_AARCH64_TLSDESC): Likewise.
24844         (NT_ARM_TLS): Likewise.
24845         (NT_ARM_HW_BREAK): Likewise.
24846         (NT_ARM_HW_WATCH): Likewise.
24847
24848 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24849
24850         [BZ #14811]
24851         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
24852         (__ieee754_powl): Saturate nonzero exponents with absolute value
24853         below 0x1p-79 to +/- 0x1p-79.
24854         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
24855         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
24856         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
24857         nonzero exponents with absolute value below 0x1p-32 to +/-
24858         0x1p-32.
24859         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
24860         (__ieee754_powl): Saturate nonzero exponents with absolute value
24861         below 0x1p-79 to +/- 0x1p-79.
24862         * math/libm-test.inc (pow_test): Add more tests.
24863
24864 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24865
24866         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
24867         _dl_s390_cap_flags with kernel. Increase string length.
24868         (_dl_s390_platforms): Add z196 and zEC12.
24869
24870 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
24871
24872         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
24873         Change XOPEN21K to XOPEN2K.
24874
24875 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
24876
24877         * string/memmove.c: Use memcpy when possible.
24878
24879 2012-11-06  Andreas Jaeger  <aj@suse.de>
24880
24881         * po/eo.po: Update from translation team.
24882
24883 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
24884
24885         [BZ #14793]
24886         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
24887         exponent and small x and y exponents, scale x or y up.  Increase
24888         by 2 the exponent used in scaling up.
24889         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24890         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24891         * math/libm-test.inc (fma_test): Add more tests.
24892         (fma_test_towardzero): Likewise.
24893         (fma_test_downward): Likewise.
24894         (fma_test_upward): Likewise.
24895
24896 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
24897
24898         [BZ #14805]
24899         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
24900         fenv_t *.
24901
24902         [BZ #14801]
24903         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
24904         namespace for names of struct fields.
24905         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
24906         fenv_t fields.
24907         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
24908         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
24909
24910 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24911
24912         [BZ #3665]
24913         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
24914
24915 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
24916
24917         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
24918         PTR_DEMANGLE.
24919
24920         [BZ #5246]
24921         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
24922         PTR_DEMANGLE.
24923
24924 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
24925
24926         [BZ #14797]
24927         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
24928         definitely overflow as x * y not x * y + z.
24929         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
24930         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
24931         * math/libm-test.inc (fma_test): Add more tests.
24932         (fma_test_towardzero): Likewise.
24933         (fma_test_downward): Likewise.
24934         (fma_test_upward): Likewise.
24935
24936 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
24937
24938         [BZ #157]
24939
24940         * include/stub-tag.h: Remove file.
24941         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
24942         '#include' of it.
24943         * manual/maint.texi (Porting): Don't reference it.
24944         * Makerules ($(objpfx)stubs): Likewise.
24945         * dirent/closedir.c: Don't include <stub-tag.h>.
24946         * dirent/dirfd.c: Likewise.
24947         * dirent/fdopendir.c: Likewise.
24948         * dirent/getdents.c: Likewise.
24949         * dirent/getdents64.c: Likewise.
24950         * dirent/opendir.c: Likewise.
24951         * dirent/readdir.c: Likewise.
24952         * dirent/readdir64.c: Likewise.
24953         * dirent/readdir64_r.c: Likewise.
24954         * dirent/readdir_r.c: Likewise.
24955         * dirent/rewinddir.c: Likewise.
24956         * dirent/seekdir.c: Likewise.
24957         * dirent/telldir.c: Likewise.
24958         * gmon/profil.c: Likewise.
24959         * grp/setgroups.c: Likewise.
24960         * inet/if_index.c: Likewise.
24961         * io/access.c: Likewise.
24962         * io/chdir.c: Likewise.
24963         * io/chmod.c: Likewise.
24964         * io/chown.c: Likewise.
24965         * io/close.c: Likewise.
24966         * io/dup.c: Likewise.
24967         * io/dup2.c: Likewise.
24968         * io/dup3.c: Likewise.
24969         * io/euidaccess.c: Likewise.
24970         * io/faccessat.c: Likewise.
24971         * io/fchdir.c: Likewise.
24972         * io/fchmod.c: Likewise.
24973         * io/fchmodat.c: Likewise.
24974         * io/fchown.c: Likewise.
24975         * io/fchownat.c: Likewise.
24976         * io/fcntl.c: Likewise.
24977         * io/flock.c: Likewise.
24978         * io/fstatfs.c: Likewise.
24979         * io/fstatfs64.c: Likewise.
24980         * io/fstatvfs.c: Likewise.
24981         * io/fstatvfs64.c: Likewise.
24982         * io/futimens.c: Likewise.
24983         * io/fxstat.c: Likewise.
24984         * io/fxstat64.c: Likewise.
24985         * io/fxstatat.c: Likewise.
24986         * io/fxstatat64.c: Likewise.
24987         * io/getcwd.c: Likewise.
24988         * io/isatty.c: Likewise.
24989         * io/lchmod.c: Likewise.
24990         * io/lchown.c: Likewise.
24991         * io/link.c: Likewise.
24992         * io/linkat.c: Likewise.
24993         * io/lseek.c: Likewise.
24994         * io/lseek64.c: Likewise.
24995         * io/lxstat64.c: Likewise.
24996         * io/mkdir.c: Likewise.
24997         * io/mkdirat.c: Likewise.
24998         * io/mkfifo.c: Likewise.
24999         * io/mkfifoat.c: Likewise.
25000         * io/open.c: Likewise.
25001         * io/open64.c: Likewise.
25002         * io/openat.c: Likewise.
25003         * io/openat64.c: Likewise.
25004         * io/pipe.c: Likewise.
25005         * io/pipe2.c: Likewise.
25006         * io/poll.c: Likewise.
25007         * io/posix_fadvise.c: Likewise.
25008         * io/posix_fadvise64.c: Likewise.
25009         * io/posix_fallocate.c: Likewise.
25010         * io/posix_fallocate64.c: Likewise.
25011         * io/read.c: Likewise.
25012         * io/readlink.c: Likewise.
25013         * io/readlinkat.c: Likewise.
25014         * io/rmdir.c: Likewise.
25015         * io/sendfile.c: Likewise.
25016         * io/sendfile64.c: Likewise.
25017         * io/statfs.c: Likewise.
25018         * io/statfs64.c: Likewise.
25019         * io/statvfs.c: Likewise.
25020         * io/statvfs64.c: Likewise.
25021         * io/symlink.c: Likewise.
25022         * io/symlinkat.c: Likewise.
25023         * io/ttyname.c: Likewise.
25024         * io/ttyname_r.c: Likewise.
25025         * io/umask.c: Likewise.
25026         * io/unlink.c: Likewise.
25027         * io/unlinkat.c: Likewise.
25028         * io/utime.c: Likewise.
25029         * io/utimensat.c: Likewise.
25030         * io/write.c: Likewise.
25031         * io/xmknod.c: Likewise.
25032         * io/xmknodat.c: Likewise.
25033         * io/xstat.c: Likewise.
25034         * io/xstat64.c: Likewise.
25035         * login/getpt.c: Likewise.
25036         * login/grantpt.c: Likewise.
25037         * login/unlockpt.c: Likewise.
25038         * math/e_acoshl.c: Likewise.
25039         * math/e_acosl.c: Likewise.
25040         * math/e_asinl.c: Likewise.
25041         * math/e_atan2l.c: Likewise.
25042         * math/e_atanhl.c: Likewise.
25043         * math/e_coshl.c: Likewise.
25044         * math/e_expl.c: Likewise.
25045         * math/e_fmodl.c: Likewise.
25046         * math/e_gammal_r.c: Likewise.
25047         * math/e_hypotl.c: Likewise.
25048         * math/e_j0l.c: Likewise.
25049         * math/e_j1l.c: Likewise.
25050         * math/e_jnl.c: Likewise.
25051         * math/e_lgammal_r.c: Likewise.
25052         * math/e_log10l.c: Likewise.
25053         * math/e_log2l.c: Likewise.
25054         * math/e_logl.c: Likewise.
25055         * math/e_powl.c: Likewise.
25056         * math/e_rem_pio2l.c: Likewise.
25057         * math/e_sinhl.c: Likewise.
25058         * math/e_sqrtl.c: Likewise.
25059         * math/fclrexcpt.c: Likewise.
25060         * math/fedisblxcpt.c: Likewise.
25061         * math/feenablxcpt.c: Likewise.
25062         * math/fegetenv.c: Likewise.
25063         * math/fegetexcept.c: Likewise.
25064         * math/fegetround.c: Likewise.
25065         * math/feholdexcpt.c: Likewise.
25066         * math/fesetenv.c: Likewise.
25067         * math/fesetround.c: Likewise.
25068         * math/feupdateenv.c: Likewise.
25069         * math/fgetexcptflg.c: Likewise.
25070         * math/fraiseexcpt.c: Likewise.
25071         * math/fsetexcptflg.c: Likewise.
25072         * math/ftestexcept.c: Likewise.
25073         * math/k_cosl.c: Likewise.
25074         * math/k_rem_pio2l.c: Likewise.
25075         * math/k_sinl.c: Likewise.
25076         * math/k_tanl.c: Likewise.
25077         * math/s_asinhl.c: Likewise.
25078         * math/s_atanl.c: Likewise.
25079         * math/s_cbrtl.c: Likewise.
25080         * math/s_erfl.c: Likewise.
25081         * math/s_expm1l.c: Likewise.
25082         * math/s_log1pl.c: Likewise.
25083         * math/s_tanhl.c: Likewise.
25084         * misc/acct.c: Likewise.
25085         * misc/brk.c: Likewise.
25086         * misc/chflags.c: Likewise.
25087         * misc/chroot.c: Likewise.
25088         * misc/fchflags.c: Likewise.
25089         * misc/fgetxattr.c: Likewise.
25090         * misc/flistxattr.c: Likewise.
25091         * misc/fremovexattr.c: Likewise.
25092         * misc/fsetxattr.c: Likewise.
25093         * misc/fsync.c: Likewise.
25094         * misc/ftruncate.c: Likewise.
25095         * misc/futimes.c: Likewise.
25096         * misc/futimesat.c: Likewise.
25097         * misc/getdomain.c: Likewise.
25098         * misc/getdtsz.c: Likewise.
25099         * misc/gethostid.c: Likewise.
25100         * misc/gethostname.c: Likewise.
25101         * misc/getloadavg.c: Likewise.
25102         * misc/getpagesize.c: Likewise.
25103         * misc/getsysstats.c: Likewise.
25104         * misc/getxattr.c: Likewise.
25105         * misc/gtty.c: Likewise.
25106         * misc/ioctl.c: Likewise.
25107         * misc/lgetxattr.c: Likewise.
25108         * misc/listxattr.c: Likewise.
25109         * misc/llistxattr.c: Likewise.
25110         * misc/lremovexattr.c: Likewise.
25111         * misc/lsetxattr.c: Likewise.
25112         * misc/lutimes.c: Likewise.
25113         * misc/madvise.c: Likewise.
25114         * misc/mincore.c: Likewise.
25115         * misc/mlock.c: Likewise.
25116         * misc/mlockall.c: Likewise.
25117         * misc/mmap.c: Likewise.
25118         * misc/mprotect.c: Likewise.
25119         * misc/msync.c: Likewise.
25120         * misc/munlock.c: Likewise.
25121         * misc/munlockall.c: Likewise.
25122         * misc/munmap.c: Likewise.
25123         * misc/preadv.c: Likewise.
25124         * misc/preadv64.c: Likewise.
25125         * misc/ptrace.c: Likewise.
25126         * misc/pwritev.c: Likewise.
25127         * misc/pwritev64.c: Likewise.
25128         * misc/readv.c: Likewise.
25129         * misc/reboot.c: Likewise.
25130         * misc/remap_file_pages.c: Likewise.
25131         * misc/removexattr.c: Likewise.
25132         * misc/revoke.c: Likewise.
25133         * misc/select.c: Likewise.
25134         * misc/setdomain.c: Likewise.
25135         * misc/setegid.c: Likewise.
25136         * misc/seteuid.c: Likewise.
25137         * misc/sethostid.c: Likewise.
25138         * misc/sethostname.c: Likewise.
25139         * misc/setregid.c: Likewise.
25140         * misc/setreuid.c: Likewise.
25141         * misc/setxattr.c: Likewise.
25142         * misc/sstk.c: Likewise.
25143         * misc/stty.c: Likewise.
25144         * misc/swapoff.c: Likewise.
25145         * misc/swapon.c: Likewise.
25146         * misc/sync.c: Likewise.
25147         * misc/syncfs.c: Likewise.
25148         * misc/syscall.c: Likewise.
25149         * misc/truncate.c: Likewise.
25150         * misc/ualarm.c: Likewise.
25151         * misc/usleep.c: Likewise.
25152         * misc/ustat.c: Likewise.
25153         * misc/utimes.c: Likewise.
25154         * misc/vhangup.c: Likewise.
25155         * misc/writev.c: Likewise.
25156         * posix/_exit.c: Likewise.
25157         * posix/alarm.c: Likewise.
25158         * posix/execve.c: Likewise.
25159         * posix/fexecve.c: Likewise.
25160         * posix/fork.c: Likewise.
25161         * posix/fpathconf.c: Likewise.
25162         * posix/getaddrinfo.c: Likewise.
25163         * posix/getegid.c: Likewise.
25164         * posix/geteuid.c: Likewise.
25165         * posix/getgid.c: Likewise.
25166         * posix/getgroups.c: Likewise.
25167         * posix/getlogin.c: Likewise.
25168         * posix/getlogin_r.c: Likewise.
25169         * posix/getpgid.c: Likewise.
25170         * posix/getpid.c: Likewise.
25171         * posix/getppid.c: Likewise.
25172         * posix/getresgid.c: Likewise.
25173         * posix/getresuid.c: Likewise.
25174         * posix/getsid.c: Likewise.
25175         * posix/getuid.c: Likewise.
25176         * posix/glob64.c: Likewise.
25177         * posix/nanosleep.c: Likewise.
25178         * posix/pathconf.c: Likewise.
25179         * posix/pause.c: Likewise.
25180         * posix/posix_madvise.c: Likewise.
25181         * posix/pread.c: Likewise.
25182         * posix/pread64.c: Likewise.
25183         * posix/pwrite.c: Likewise.
25184         * posix/pwrite64.c: Likewise.
25185         * posix/sched_getaffinity.c: Likewise.
25186         * posix/sched_getp.c: Likewise.
25187         * posix/sched_gets.c: Likewise.
25188         * posix/sched_primax.c: Likewise.
25189         * posix/sched_primin.c: Likewise.
25190         * posix/sched_rr_gi.c: Likewise.
25191         * posix/sched_setaffinity.c: Likewise.
25192         * posix/sched_setp.c: Likewise.
25193         * posix/sched_sets.c: Likewise.
25194         * posix/sched_yield.c: Likewise.
25195         * posix/setgid.c: Likewise.
25196         * posix/setlogin.c: Likewise.
25197         * posix/setpgid.c: Likewise.
25198         * posix/setresgid.c: Likewise.
25199         * posix/setresuid.c: Likewise.
25200         * posix/setsid.c: Likewise.
25201         * posix/setuid.c: Likewise.
25202         * posix/sleep.c: Likewise.
25203         * posix/spawni.c: Likewise.
25204         * posix/sysconf.c: Likewise.
25205         * posix/times.c: Likewise.
25206         * posix/wait.c: Likewise.
25207         * posix/wait3.c: Likewise.
25208         * posix/wait4.c: Likewise.
25209         * posix/waitpid.c: Likewise.
25210         * resolv/gai_sigqueue.c: Likewise.
25211         * resource/getpriority.c: Likewise.
25212         * resource/getrlimit.c: Likewise.
25213         * resource/getrusage.c: Likewise.
25214         * resource/nice.c: Likewise.
25215         * resource/setpriority.c: Likewise.
25216         * resource/setrlimit.c: Likewise.
25217         * resource/ulimit.c: Likewise.
25218         * rt/aio_cancel.c: Likewise.
25219         * rt/aio_fsync.c: Likewise.
25220         * rt/aio_read.c: Likewise.
25221         * rt/aio_sigqueue.c: Likewise.
25222         * rt/aio_suspend.c: Likewise.
25223         * rt/aio_write.c: Likewise.
25224         * rt/clock_getres.c: Likewise.
25225         * rt/clock_gettime.c: Likewise.
25226         * rt/clock_nanosleep.c: Likewise.
25227         * rt/clock_settime.c: Likewise.
25228         * rt/lio_listio.c: Likewise.
25229         * rt/mq_close.c: Likewise.
25230         * rt/mq_getattr.c: Likewise.
25231         * rt/mq_notify.c: Likewise.
25232         * rt/mq_open.c: Likewise.
25233         * rt/mq_receive.c: Likewise.
25234         * rt/mq_send.c: Likewise.
25235         * rt/mq_setattr.c: Likewise.
25236         * rt/mq_timedreceive.c: Likewise.
25237         * rt/mq_timedsend.c: Likewise.
25238         * rt/mq_unlink.c: Likewise.
25239         * rt/shm_open.c: Likewise.
25240         * rt/shm_unlink.c: Likewise.
25241         * rt/timer_create.c: Likewise.
25242         * rt/timer_delete.c: Likewise.
25243         * rt/timer_getoverr.c: Likewise.
25244         * rt/timer_gettime.c: Likewise.
25245         * rt/timer_settime.c: Likewise.
25246         * setjmp/__longjmp.c: Likewise.
25247         * setjmp/setjmp.c: Likewise.
25248         * signal/kill.c: Likewise.
25249         * signal/killpg.c: Likewise.
25250         * signal/raise.c: Likewise.
25251         * signal/sigaction.c: Likewise.
25252         * signal/sigaltstack.c: Likewise.
25253         * signal/sigblock.c: Likewise.
25254         * signal/sigignore.c: Likewise.
25255         * signal/sigintr.c: Likewise.
25256         * signal/signal.c: Likewise.
25257         * signal/sigpause.c: Likewise.
25258         * signal/sigpending.c: Likewise.
25259         * signal/sigqueue.c: Likewise.
25260         * signal/sigreturn.c: Likewise.
25261         * signal/sigset.c: Likewise.
25262         * signal/sigsetmask.c: Likewise.
25263         * signal/sigstack.c: Likewise.
25264         * signal/sigsuspend.c: Likewise.
25265         * signal/sigtimedwait.c: Likewise.
25266         * signal/sigvec.c: Likewise.
25267         * signal/sigwait.c: Likewise.
25268         * signal/sigwaitinfo.c: Likewise.
25269         * signal/sysv_signal.c: Likewise.
25270         * socket/accept.c: Likewise.
25271         * socket/accept4.c: Likewise.
25272         * socket/bind.c: Likewise.
25273         * socket/connect.c: Likewise.
25274         * socket/getpeername.c: Likewise.
25275         * socket/getsockname.c: Likewise.
25276         * socket/getsockopt.c: Likewise.
25277         * socket/isfdtype.c: Likewise.
25278         * socket/listen.c: Likewise.
25279         * socket/recv.c: Likewise.
25280         * socket/recvfrom.c: Likewise.
25281         * socket/recvmsg.c: Likewise.
25282         * socket/send.c: Likewise.
25283         * socket/sendmsg.c: Likewise.
25284         * socket/sendto.c: Likewise.
25285         * socket/setsockopt.c: Likewise.
25286         * socket/shutdown.c: Likewise.
25287         * socket/sockatmark.c: Likewise.
25288         * socket/socket.c: Likewise.
25289         * socket/socketpair.c: Likewise.
25290         * stdio-common/ctermid.c: Likewise.
25291         * stdio-common/cuserid.c: Likewise.
25292         * stdio-common/remove.c: Likewise.
25293         * stdio-common/rename.c: Likewise.
25294         * stdio-common/renameat.c: Likewise.
25295         * stdio-common/tempname.c: Likewise.
25296         * stdlib/getcontext.c: Likewise.
25297         * stdlib/makecontext.c: Likewise.
25298         * stdlib/setcontext.c: Likewise.
25299         * stdlib/swapcontext.c: Likewise.
25300         * stdlib/system.c: Likewise.
25301         * streams/fattach.c: Likewise.
25302         * streams/fdetach.c: Likewise.
25303         * streams/getmsg.c: Likewise.
25304         * streams/getpmsg.c: Likewise.
25305         * streams/putmsg.c: Likewise.
25306         * streams/putpmsg.c: Likewise.
25307         * sysdeps/unix/bsd/getpt.c: Likewise.
25308         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
25309         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
25310         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
25311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
25312         Likewise.
25313         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
25314         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
25315         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
25316         * sysvipc/msgctl.c: Likewise.
25317         * sysvipc/msgget.c: Likewise.
25318         * sysvipc/msgrcv.c: Likewise.
25319         * sysvipc/msgsnd.c: Likewise.
25320         * sysvipc/semctl.c: Likewise.
25321         * sysvipc/semget.c: Likewise.
25322         * sysvipc/semop.c: Likewise.
25323         * sysvipc/semtimedop.c: Likewise.
25324         * sysvipc/shmat.c: Likewise.
25325         * sysvipc/shmctl.c: Likewise.
25326         * sysvipc/shmdt.c: Likewise.
25327         * sysvipc/shmget.c: Likewise.
25328         * termios/tcdrain.c: Likewise.
25329         * termios/tcflow.c: Likewise.
25330         * termios/tcflush.c: Likewise.
25331         * termios/tcgetattr.c: Likewise.
25332         * termios/tcgetpgrp.c: Likewise.
25333         * termios/tcsendbrk.c: Likewise.
25334         * termios/tcsetattr.c: Likewise.
25335         * termios/tcsetpgrp.c: Likewise.
25336         * time/adjtime.c: Likewise.
25337         * time/clock.c: Likewise.
25338         * time/getitimer.c: Likewise.
25339         * time/gettimeofday.c: Likewise.
25340         * time/setitimer.c: Likewise.
25341         * time/settimeofday.c: Likewise.
25342         * time/stime.c: Likewise.
25343         * time/time.c: Likewise.
25344
25345 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
25346
25347         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
25348         /usr/old/bin.
25349
25350         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
25351         instead of spaces.
25352         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
25353
25354 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
25355
25356         [BZ #14796]
25357         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
25358         FE_TONEAREST before applying Dekker multiplication and Knuth
25359         addition.  Clear inexact exceptions and check for exact zero
25360         results afterwards.
25361         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25362         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
25363         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25364         * math/libm-test.inc (fma_test): Add more tests.
25365         (fma_test_towardzero): Likewise.
25366         (fma_test_downward): Likewise.
25367         (fma_test_upward): Likewise.
25368         * sysdeps/generic/math_private.h (default_libc_fesetround): New
25369         function.
25370         (libc_fesetround): New macro.
25371         (libc_fesetroundf): Likewise.
25372         (libc_fesetroundl): Likewise.
25373         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
25374         function.
25375         (libc_fesetround_387): Likewise.
25376         (libc_fesetroundf): New macro.
25377         (libc_fesetround): Likewise.
25378         (libc_fesetroundl): Likewise.
25379         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
25380         function.
25381         (libc_fesetroundf): New macro.
25382         (libc_fesetround): Likewise.
25383         (libc_fesetroundl): Likewise.
25384         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
25385         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
25386         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
25387         libm_hidden_ver.
25388         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
25389         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
25390         libm_hidden_def.
25391         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
25392         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
25393         libm_hidden_ver.
25394         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
25395         libm_hidden_def.
25396
25397         [BZ #3439]
25398         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
25399         integer constant usable in #if and use that to give value to enum
25400         constant.
25401         (FE_DIVBYZERO): Likewise.
25402         (FE_UNDERFLOW): Likewise.
25403         (FE_OVERFLOW): Likewise.
25404         (FE_INVALID): Likewise.
25405         (FE_INVALID_SNAN): Likewise.
25406         (FE_INVALID_ISI): Likewise.
25407         (FE_INVALID_IDI): Likewise.
25408         (FE_INVALID_ZDZ): Likewise.
25409         (FE_INVALID_IMZ): Likewise.
25410         (FE_INVALID_COMPARE): Likewise.
25411         (FE_INVALID_SOFTWARE): Likewise.
25412         (FE_INVALID_SQRT): Likewise.
25413         (FE_INVALID_INTEGER_CONVERSION): Likewise.
25414         (FE_TONEAREST): Likewise.
25415         (FE_TOWARDZERO): Likewise.
25416         (FE_UPWARD): Likewise.
25417         (FE_DOWNWARD): Likewise.
25418         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
25419         (FE_DIVBYZERO): Likewise.
25420         (FE_OVERFLOW): Likewise.
25421         (FE_UNDERFLOW): Likewise.
25422         (FE_INEXACT): Likewise.
25423         (FE_TONEAREST): Likewise.
25424         (FE_DOWNWARD): Likewise.
25425         (FE_UPWARD): Likewise.
25426         (FE_TOWARDZERO): Likewise.
25427         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
25428         (FE_UNDERFLOW): Likewise.
25429         (FE_OVERFLOW): Likewise.
25430         (FE_DIVBYZERO): Likewise.
25431         (FE_INVALID): Likewise.
25432         (FE_TONEAREST): Likewise.
25433         (FE_TOWARDZERO): Likewise.
25434         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
25435         (FE_OVERFLOW): Likewise.
25436         (FE_UNDERFLOW): Likewise.
25437         (FE_DIVBYZERO): Likewise.
25438         (FE_INEXACT): Likewise.
25439         (FE_TONEAREST): Likewise.
25440         (FE_TOWARDZERO): Likewise.
25441         (FE_UPWARD): Likewise.
25442         (FE_DOWNWARD): Likewise.
25443         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
25444         (FE_DIVBYZERO): Likewise.
25445         (FE_OVERFLOW): Likewise.
25446         (FE_UNDERFLOW): Likewise.
25447         (FE_INEXACT): Likewise.
25448         (FE_TONEAREST): Likewise.
25449         (FE_DOWNWARD): Likewise.
25450         (FE_UPWARD): Likewise.
25451         (FE_TOWARDZERO): Likewise.
25452
25453 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
25454
25455         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
25456
25457 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
25458
25459         * scripts/cross-test-ssh.sh (command): Use newlines to separate
25460         commands.  Quote $PWD.
25461         (blacklist_exports): Don't use remove_newlines.  Replace "declare
25462         -x" by "export".
25463         (remove_newlines): Remove.
25464
25465 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
25466
25467         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
25468         * stdlib/stdlib.h (atof): Moved to ...
25469         * include/bits/stdlib-float.h: Here.  New file.
25470         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
25471         * stdlib/bits/stdlib-float.h: New file.
25472         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
25473         -mno-sse -mno-mmx.
25474         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
25475         <xmmintrin.h>.
25476
25477 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25478
25479         * conform/conformtest.pl (@headers): Add fenv.h.
25480         * conform/data/fenv.h-data: New file.
25481         * include/fenv.h [_ISOMAC]: Disable all contents of file except
25482         include of <math/fenv.h>.
25483
25484         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
25485         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
25486         && !UNIX98].  Enables tests for XOPEN2K8.
25487         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
25488         POSIX2008]: Likewise.
25489
25490         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
25491         (struct rusage): Do not expect type or its members.
25492
25493         [BZ #3439]
25494         * math/math.h (FP_NAN): Define macro to integer constant usable in
25495         #if and use that to give value to enum constant.
25496         (FP_INFINITE): Likewise.
25497         (FP_ZERO): Likewise.
25498         (FP_SUBNORMAL): Likewise.
25499         (FP_NORMAL): Likewise.
25500
25501 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
25502
25503         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
25504         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
25505         arguments.
25506
25507 2012-11-02  Roland McGrath  <roland@hack.frob.com>
25508
25509         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
25510         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
25511         autoconf-time if not.
25512         * configure.in: Remove AC_PREREQ.
25513
25514 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25515
25516         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
25517         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
25518         of the internal implementation.
25519
25520 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
25521
25522         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
25523         except include of <misc/sys/syslog.h>.
25524
25525 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25526
25527         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
25528         function returns with a NULL context exit with zero.
25529
25530 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25531
25532         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
25533
25534 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
25535
25536         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
25537         (run_program_cmd): This.
25538         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
25539         (tst_langinfo): New variable.  Use it.
25540
25541 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
25542
25543         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
25544         floating point opcodes.
25545
25546 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25547
25548         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
25549         variable.
25550
25551         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
25552
25553         * sysdeps/mach/hurd/powerpc: Remove directory.
25554         * sysdeps/mach/powerpc: Likewise.
25555
25556 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
25557
25558         * scripts/check-local-headers.sh: Ignore c++ headers.
25559
25560 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25561
25562         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
25563         __libc_cleanup_region_start argument.
25564
25565 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
25566
25567         [BZ #14784]
25568         [BZ #14785]
25569         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
25570         x * y using scaling, not as x * y + z.
25571         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25572         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25573         * math/libm-test.inc (fma_test): Add more tests.
25574         (fma_test_towardzero): Likewise.
25575         (fma_test_downward): Likewise.
25576         (fma_test_upward): Likewise.
25577
25578 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
25579
25580         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
25581
25582 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25583
25584         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
25585         New variable.
25586
25587 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
25588
25589         * rt/tst-shm.c (worker): Correct checking for mmap failure.
25590
25591 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25592
25593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25594         Fix sort order.
25595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25596         Likewise.
25597
25598 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
25599
25600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25601         Fix the order of the list for glibc 2.17.
25602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25603         Likewise.
25604
25605 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
25606
25607         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25608
25609 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
25610
25611         [BZ #14610]
25612         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
25613         for low part of x being zero before using __atanl (y).
25614         * math/libm-test.inc (atan2_test): Add another test.
25615
25616         * manual/install.texi (Configuring and compiling): Document
25617         general use of test-wrapper and test-wrapper-env.
25618         * INSTALL: Regenerated.
25619
25620         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
25621         (__fma): Do not extract and scale down low bits on after-rounding
25622         systems when result rounded to normal precision would have normal
25623         exponent.
25624         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
25625         (__fmal): Do not extract and scale down low bits on after-rounding
25626         systems when result rounded to normal precision would have normal
25627         exponent.
25628         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
25629         (__fmal): Do not extract and scale down low bits on after-rounding
25630         systems when result rounded to normal precision would have normal
25631         exponent.
25632         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
25633         macro.
25634         (fma_test): Add more tests.
25635         (fma_test_towardzero): Likewise.
25636         (fma_test_downward): Likewise.
25637         (fma_test_upward): Likewise.
25638
25639 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
25640
25641         * sysdeps/i386/tininess.h: Renamed to ...
25642         * sysdeps/x86/tininess.h: This.
25643         * sysdeps/x86_64/tininess.h: Removed.
25644
25645 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25646
25647         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
25648         input.  Use $(build-program-cmd).
25649         ($(objpfx)tst-array1-static.out): Likewise.
25650         ($(objpfx)tst-array2.out): Likewise.
25651         ($(objpfx)tst-array3.out): Likewise.
25652         ($(objpfx)tst-array4.out): Likewise.
25653         ($(objpfx)tst-array5.out): Likewise.
25654         ($(objpfx)tst-array5-static.out): Likewise.
25655
25656 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
25657
25658         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
25659         if defined.
25660
25661         * nss/nsswitch.h (nss_interface_function): Provide new
25662         macro for use with NSS functions.
25663         * grp/initgroups.c: Use new macro.
25664         * nss/getXXbyYY.c: Likewise.
25665         * nss/getXXbyYY_r.c: Likewise.
25666         * nss/getXXent.c: Likewise.
25667         * nss/getXXent_r.c: Likewise.
25668         * sysdeps/posix/getaddrinfo.c: Likewise.
25669
25670 2012-10-30  Andreas Jaeger  <aj@suse.de>
25671
25672         * po/ru.po: Update Russion translation from translation project.
25673
25674 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
25675
25676         [BZ #14152]
25677         [BZ #14783]
25678         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
25679         result and shift together with sticky bit instead of replicating
25680         round-to-nearest rounding.
25681         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
25682         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
25683         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
25684         missing underflow exceptions.
25685         (fma_test_towardzero): Add more tests.
25686         (fma_test_downward): Likewise.
25687         (fma_test_upward): Likewise.
25688
25689         [BZ #14047]
25690         * sysdeps/generic/tininess.h: New file.
25691         * sysdeps/i386/tininess.h: Likewise.
25692         * sysdeps/sh/tininess.h: Likewise.
25693         * sysdeps/x86_64/tininess.h: Likewise.
25694         * stdlib/tst-strtod-underflow.c: Likewise.
25695         * stdlib/tst-tininess.c: Likewise.
25696         * stdlib/strtod_l.c: Include <tininess.h>.
25697         (round_and_return): Do not set errno for exact underflow cases.
25698         Force an underflow exception when setting errno for underflow.
25699         Determine underflow based on rounding to normal precision if
25700         TININESS_AFTER_ROUNDING.
25701         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
25702         ERANGE for exact underflow cases.
25703         * stdlib/Makefile (tests): Add tst-tininess and
25704         tst-strtod-underflow.
25705         ($(objpfx)tst-tininess): Use $(link-libm).
25706         ($(objpfx)tst-strtod-underflow): Likewise.
25707
25708 2012-10-30  Andreas Jaeger  <aj@suse.de>
25709
25710         [BZ#14767]
25711         * elf/Makefile (tests): Remove conditional for have-initfini-array
25712         since this is now always required and the variable does not exist
25713         anymore.
25714         (tests-static): Likewise.
25715         (modules-names): Likewise.
25716
25717         * po/eo.po: Add Esperanto translation from translation project.
25718
25719         * elf/tst-array1.c (fini_array): Make writeable so that it can be
25720         merged with constructor/destructor.
25721         (init_array): Likewise.
25722         * elf/tst-array2dep.c (fini_array): Likewise.
25723         (init_array): Likewise.
25724
25725 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
25726
25727         * manual/message.texi: Delete @cartouche tags.
25728
25729 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
25730
25731         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
25732         EOPNOTSUPP.
25733         * sysdeps/mach/hurd/fsync.c: Likewise.
25734
25735         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
25736         [_POSIX_REALTIME_SIGNALS]: Change condition to
25737         [_POSIX_REALTIME_SIGNALS > 0].
25738
25739 2012-10-27  Andreas Jaeger  <aj@suse.de>
25740
25741         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
25742         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
25743         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
25744         [__WORDSIZE != 64]: Likewise.
25745
25746 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
25747
25748         *  iconvdata/tst-table.sh: Remove ${SHELL}.
25749         *  iconvdata/tst-tables.sh: Likewise.
25750
25751 2012-10-25  David S. Miller  <davem@davemloft.net>
25752
25753         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25754         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
25755         of strtoull.
25756
25757         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
25758         ifunc-impl-list.c
25759         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25760         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
25761         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
25762         file.
25763
25764 2012-10-25  Roland McGrath  <roland@hack.frob.com>
25765
25766         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25767         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
25768         __getdirentries.
25769
25770 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
25771             Jim Blandy  <jimb@codesourcery.com>
25772
25773         * scripts/cross-test-ssh.sh: New file.
25774         * manual/install.texi (Configuring and compiling): Document use of
25775         cross-test-ssh.sh.
25776         * INSTALL: Regenerated.
25777
25778 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
25779
25780         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
25781         EOPNOTSUPP.
25782
25783 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
25784
25785         * Makeconfig (run-program-prefix): Fix comment.
25786
25787 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25788             Jim Blandy  <jimb@codesourcery.com>
25789
25790         * Makeconfig (test-wrapper): New variable,
25791         (test-wrapper-env): Likewise.
25792         [$(cross-compiling) = yes && $(test-wrapper) != ""]
25793         (run-built-tests): Define to yes.
25794         (run-program-prefix): Use $(test-wrapper).
25795         (built-program-cmd): Likewise.
25796         * Rules (make-test-out): Use $(test-wrapper-env) and
25797         $(host-built-program-cmd).
25798         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
25799         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
25800         tst-pathopt.sh.
25801         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
25802         $(test-wrapper-env) to tst-rtld-load-self.sh.
25803         ($(objpfx)order2.out): Use $(test-wrapper).
25804         ($(objpfx)tst-initorder.out): Likewise.
25805         ($(objpfx)tst-initorder2.out): Likewise.
25806         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
25807         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
25808         (test_wrapper_env): New variable.  Use it to run ld.so.
25809         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
25810         Use it to run ld.so.
25811         (test_wrapper_env): Likewise.
25812         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
25813         $(test-wrapper) to run-iconv-test.sh.
25814         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
25815         (ICONV): Use $test_wrapper.
25816         * posix/Makefile ($(objpfx)globtest.out): Pass
25817         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
25818         globtest.sh, not $(run-program-prefix).
25819         * posix/globtest.sh (run_via_rtld_prefix): New variable.
25820         (test_wrapper): Likewise.
25821         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
25822         set together with run_via_rtld_prefix.
25823         (run_program_prefix): Define in terms of test_wrapper and
25824         run_via_rtld_prefix.
25825
25826 2012-10-24  Roland McGrath  <roland@hack.frob.com>
25827
25828         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
25829         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
25830         Targets removed.
25831
25832         [BZ #14743]
25833         * include/time.h: Remove librt_hidden_proto (clock_gettime).
25834         Declare __clock_getres, __clock_gettime, __clock_settime,
25835         __clock_nanosleep, and __clock_getcpuclockid.
25836         * rt/clock_gettime.c: Define __clock_gettime as an alias.
25837         Remove librt_hidden_def (clock_gettime).
25838         * sysdeps/unix/clock_gettime.c: Likewise.
25839         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
25840         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
25841         * rt/clock_getres.c: Define __clock_getres as an alias.
25842         * sysdeps/posix/clock_getres.c: Likewise.
25843         * rt/clock_settime.c: Define __clock_settime as an alias.
25844         * sysdeps/unix/clock_settime.c: Likewise.
25845         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
25846         * sysdeps/unix/clock_nanosleep.c: Likewise.
25847         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
25848         * rt/clock-compat.c: New file.
25849         * rt/Makefile (librt-routines): Add clock-compat and move
25850         $(clock-routines) to ...
25851         (routines): ... here, new variable.
25852         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
25853         Don't add get_clockfreq here.
25854         * rt/Versions (libc: GLIBC_2.17): New version set.
25855         Add clock_* symbols here.
25856         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
25857         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
25858         (GLIBC_2.17): Add clock_* symbols.
25859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
25860         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
25861         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
25862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
25863         Likewise.
25864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
25865         Likewise.
25866         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
25867         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
25868         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
25869         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
25870         * NEWS: Mention the move.
25871
25872         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
25873         Use __open, __read, __close rather than their public counterparts.
25874         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25875         (__get_clockfreq_via_cpuinfo): Likewise.
25876         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
25877         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
25878
25879         * config.h.in (HAVE_IFUNC): New #undef.
25880         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
25881         was successful.
25882         * configure: Regenerated.
25883
25884 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
25885
25886         * configure.in: Move READELF check to start of file.
25887         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
25888         libc_cv_asm_gnu_indirect_function in the process.
25889         * configure: Regenerated.
25890
25891 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
25892
25893         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
25894         send the output to /dev/null.
25895         (libc_cv_cc_with_libunwind): Likewise.
25896         (libc_cv_as_noexecstack): Likewise.
25897         * configure: Regenerate.
25898
25899 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25900
25901         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
25902
25903         * posix/globtest.sh (TMPDIR): Do not set.
25904         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
25905         (testout): Likewise.
25906
25907 2012-10-24  Andreas Jaeger  <aj@suse.de>
25908
25909         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
25910         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
25911         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
25912         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
25913         posix_fadvise64, posix_fallocate64.
25914
25915         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
25916         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
25917         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
25918         Likewise.
25919         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
25920         Likewise.
25921         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
25922
25923         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
25924         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
25925         <bits/fcntl-linux.h>.
25926         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
25927
25928         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
25929         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
25930         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
25931         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
25932         [__WORDSIZE != 64]: Likewise.
25933
25934 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
25935
25936         * Makeconfig (run-built-tests): New variable.
25937         * Rules [$(cross-compiling) = yes]: Change condition to
25938         [$(run-built-tests) = no].
25939         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
25940         to [$(run-built-tests) = yes].
25941         * elf/Makefile [$(cross-compiling) = no]: Likewise
25942         * grp/Makefile [$(cross-compiling) = no]: Likewise.
25943         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
25944         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
25945         * intl/Makefile [$(cross-compiling) = no]: Likewise.
25946         * io/Makefile [$(cross-compiling) = no]: Likewise.
25947         * libio/Makefile [$(cross-compiling) = no]: Likewise.
25948         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
25949         * misc/Makefile [$(cross-compiling) = no]: Likewise.
25950         * posix/Makefile [$(cross-compiling) = no]: Likewise.
25951         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
25952         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
25953         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
25954         * string/Makefile [$(cross-compiling) = no]: Likewise.
25955
25956         * posix/Makefile ($(objpfx)globtest.out): Pass
25957         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
25958         $(rtld-installed-name).
25959         * posix/globtest.sh (elf_objpfx): Remove variable.
25960         (rtld_installed_name): Likewise.
25961         (library_path): Likewise.
25962         (run_program_prefix): New variable.  Use for running globtest
25963         binary.
25964
25965 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
25966             Joseph Myers  <joseph@codesourcery.com>
25967
25968         * Makeconfig (host-built-program-cmd): New variable.
25969         * elf/Makefile (tst-stackguard1-ARGS): Use
25970         $(host-built-program-cmd).
25971         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
25972         (tst-spawn-ARGS): Likewise.
25973         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
25974
25975 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
25976             Jim Blandy  <jimb@codesourcery.com>
25977
25978         * Makeconfig (run-via-rtld-prefix): New variable.
25979         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
25980         (built-program-cmd): Likewise.
25981
25982 2012-10-22  Andreas Jaeger  <aj@suse.de>
25983
25984         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
25985         __O_RSYNC if it exists, otherwise to O_SYNC.
25986
25987 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
25988             Joseph Myers  <joseph@codesourcery.com>
25989
25990         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
25991         /dev/null.
25992         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
25993         from /dev/null
25994         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
25995         /dev/null.
25996
25997 2012-10-22  Andreas Jaeger  <aj@suse.de>
25998
25999         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
26000         Define always.
26001         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
26002
26003         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26004         bits/fcntl-linux.h.
26005
26006         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
26007         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
26008
26009         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
26010         to __O_LARGEFILE.
26011         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
26012         to __O_LARGEFILE.
26013
26014 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
26015             Joseph Myers  <joseph@codesourcery.com>
26016
26017         * config.make.in (NM): New variable.
26018
26019 2012-10-21  Andreas Jaeger  <aj@suse.de>
26020
26021         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26022         definitions and declarations that are provided by
26023         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26024
26025 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26026
26027         [BZ #14683]
26028         * elf/Makefile (tests-static): Add tst-leaks1-static.
26029         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
26030         ($(objpfx)tst-leaks1-static): New rule.
26031         ($(objpfx)tst-leaks1-static-mem): Likewise.
26032         (tst-leaks1-static-ENV): New macro.
26033         * elf/dl-open.c (dl_open_worker): Check the main application
26034         only if SHARED is defined.
26035         * elf/tst-leaks1-static.c: New file.
26036
26037 2012-10-20  Andreas Jaeger  <aj@suse.de>
26038
26039         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
26040         generic values for Linux.
26041         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
26042         and declarations that are provided by <bits/fcntl-linux.h> and
26043         include <bits/fcntl-linux.h>.
26044         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26045         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26046
26047 2012-10-20  Roland McGrath  <roland@hack.frob.com>
26048
26049         * io/fcntl.h: Move include of <bits/types.h> to the top and
26050         include it unconditionally.
26051
26052 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
26053
26054         * wcsmbs/Makefile (tests-ifunc): New variable.
26055         (tests): Add $(tests-ifunc).
26056         * wcsmbs/test-wcschr-ifunc.c: New file.
26057         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
26058         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
26059         * wcsmbs/test-wcslen-ifunc.c: Likewise.
26060         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
26061         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26062
26063         * string/Makefile (tests-ifunc): New variable.
26064         (tests): Add $(tests-ifunc).
26065         * string/test-memccpy.c (TEST_NAME): New macro.
26066         * string/test-memchr.c (TEST_NAME): Likewise.
26067         * string/test-memcmp.c (TEST_NAME): Likewise.
26068         * string/test-memcpy.c (TEST_NAME): Likewise.
26069         * string/test-memmem.c (TEST_NAME): Likewise.
26070         * string/test-memmove.c (TEST_NAME): Likewise.
26071         * string/test-memset.c (TEST_NAME): Likewise.
26072         * string/test-rawmemchr.c (TEST_NAME): Likewise.
26073         * string/test-stpcpy.c (TEST_NAME): Likewise.
26074         * string/test-stpncpy.c (TEST_NAME): Likewise.
26075         * string/test-strcasecmp.c (TEST_NAME): Likewise.
26076         * string/test-strcasestr.c (TEST_NAME): Likewise.
26077         * string/test-strcat.c (TEST_NAME): Likewise.
26078         * string/test-strchr.c (TEST_NAME): Likewise.
26079         * string/test-strcmp.c(TEST_NAME): Likewise.
26080         * string/test-strcpy.c (TEST_NAME): Likewise.
26081         * string/test-strcspn.c (TEST_NAME): Likewise.
26082         * string/test-strlen.c (TEST_NAME): Likewise.
26083         * string/test-strncasecmp.c (TEST_NAME): Likewise.
26084         * string/test-strncmp.c (TEST_NAME): Likewise.
26085         * string/test-strncpy.c (TEST_NAME): Likewise.
26086         * string/test-strnlen.c (TEST_NAME): Likewise.
26087         * string/test-strpbrk.c (TEST_NAME): Likewise.
26088         * string/test-strrchr.c (TEST_NAME): Likewise.
26089         * string/test-strspn.c (TEST_NAME): Likewise.
26090         * string/test-strstr.c (TEST_NAME): Likewise.
26091         * string/test-bcopy-ifunc.c: New file.
26092         * string/test-bzero-ifunc.c: Likewise.
26093         * string/test-memccpy-ifunc.c: Likewise.
26094         * string/test-memchr-ifunc.c: Likewise.
26095         * string/test-memcmp-ifunc.c: Likewise.
26096         * string/test-memcpy-ifunc.c: Likewise.
26097         * string/test-memmem-ifunc.c: Likewise.
26098         * string/test-memmove-ifunc.c: Likewise.
26099         * string/test-mempcpy-ifunc.c: Likewise.
26100         * string/test-memset-ifunc.c: Likewise.
26101         * string/test-rawmemchr-ifunc.c: Likewise.
26102         * string/test-stpcpy-ifunc.c: Likewise.
26103         * string/test-stpncpy-ifunc.c: Likewise.
26104         * string/test-strcasecmp-ifunc.c: Likewise.
26105         * string/test-strcasestr-ifunc.c: Likewise.
26106         * string/test-strcat-ifunc.c: Likewise.
26107         * string/test-strchr-ifunc.c: Likewise.
26108         * string/test-strchrnul-ifunc.c: Likewise.
26109         * string/test-strcmp-ifunc.c: Likewise.
26110         * string/test-strcpy-ifunc.c: Likewise.
26111         * string/test-strcspn-ifunc.c: Likewise.
26112         * string/test-strlen-ifunc.c: Likewise.
26113         * string/test-strncasecmp-ifunc.c: Likewise.
26114         * string/test-strncat-ifunc.c: Likewise.
26115         * string/test-strncmp-ifunc.c: Likewise.
26116         * string/test-strncpy-ifunc.c: Likewise.
26117         * string/test-strnlen-ifunc.c: Likewise.
26118         * string/test-strpbrk-ifunc.c: Likewise.
26119         * string/test-strrchr-ifunc.c: Likewise.
26120         * string/test-strspn-ifunc.c: Likewise.
26121         * string/test-strstr-ifunc.c: Likewise.
26122
26123         * debug/Makefile (tests-ifunc): New variable.
26124         (tests): Add $(tests-ifunc).
26125         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
26126         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
26127         * debug/test-stpcpy_chk-ifunc.c: New file.
26128         * debug/test-strcpy_chk-ifunc.c: Likewise.
26129
26130 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
26131
26132         [BZ #13601]
26133         * elf/dl-load.c (open_verify): Retry read if the entire ELF
26134         header is not read in.
26135
26136 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
26137
26138         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
26139         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
26140         directly.  Pass built executable to script as
26141         $(built-program-cmd).
26142         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
26143         $testprogram without using LD_LIBRARY_PATH and $ldso.
26144
26145         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
26146         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
26147         $(rtld-installed-name).
26148         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
26149         (rtld_installed_name): Likewise.
26150         (library_path): Likewise.
26151         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
26152         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
26153         $(run-program-prefix) to tst-tables.sh.
26154         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
26155         it to run tst-table-from and tst-table-to.
26156         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
26157         Pass it to tst-table.sh.
26158         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
26159         $(run-program-prefix) to tst-gettext.sh.
26160         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
26161         tst-translit.sh.
26162         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
26163         tst-gettext2.sh.
26164         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
26165         to run tst-gettext.
26166         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
26167         to run tst-gettext2.
26168         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
26169         to run tst-translit.
26170         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
26171         $(run-program-prefix) to tst-mtrace.sh.
26172         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
26173         to run tst-mtrace.
26174         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
26175         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
26176         $(rtld-installed-name).
26177         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
26178         (rtld_installed_name): Likewise.
26179         (run_program_prefix): New variable.  Use it to run wordexp-test.
26180
26181         * Makeconfig (ARCH): Remove all definitions.
26182         (machine): Likewise.
26183         [ARCH]: Remove conditional code.
26184         [!objdir]: Give error.
26185         [!objdir] (objpfx): Remove.
26186         [!objdir] (common-objpfx): Likewise.
26187         [!objdir] (common-objdir): Likewise.
26188         * configure.in (config_makefile): Remove.  Hardcode Makefile in
26189         AC_CONFIG_FILES call.
26190         * configure: Regenerated.
26191
26192         [BZ #13888]
26193         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
26194         or TMPDIR.
26195         (testout): Likewise.
26196
26197         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
26198         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
26199         $(rtld-installed-name).
26200         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
26201         (rtld_installed_name): Likwise.
26202         (runit): Remove function.
26203         (run_getconf): New variable,  Use it for running getconf binary.
26204
26205 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
26206
26207         [BZ #14716]
26208         * string/test-memmem.c (check_result): New function.
26209         (do_one_test): Use it.
26210         (check1): New function.
26211         (test_main): Use it.
26212
26213 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
26214
26215         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
26216
26217 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
26218
26219         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
26220         (_G_LSEEK64): Likewise.
26221         (_G_MMAP64): Likewise.
26222         (_G_FSTAT64): Likewise.
26223         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
26224         (_G_LSEEK64): Likewise.
26225         (_G_MMAP64): Likewise.
26226         (_G_FSTAT64): Likewise.
26227         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
26228         unconditional.  Call __mmap64 directly.
26229         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
26230         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
26231         __lseek64 directly.
26232         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
26233         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
26234         __mmap64 directly.
26235         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
26236         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26237         __lseek64 directly.
26238         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
26239         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
26240         __lseek64 directly.
26241         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
26242         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
26243         __lseek64 directly.
26244         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
26245         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
26246         __fxstat64 directly.
26247         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
26248         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
26249         unconditional.
26250         (freopen64) [!_G_OPEN64]: Remove conditional code.
26251         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
26252         unconditional.
26253         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
26254         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
26255         unconditional.
26256         (ftello64) [!_G_LSEEK64]: Remove conditional code.
26257         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
26258         unconditional.
26259         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26260         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
26261         unconditional.
26262         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
26263         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
26264         unconditional.
26265         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26266         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
26267         unconditional.
26268         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
26269         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
26270         unconditional.
26271         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
26272
26273 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
26274
26275         [BZ #12140]
26276         * manual/memory.texi (Malloc Tunable Parameters): Add note
26277         about free list pointers overwriting some perturb bytes.
26278         Wording suggested by Roland McGrath.
26279
26280 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
26281
26282         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
26283         (lgamma_test): Likewise.
26284         (tgamma_test): Likewise.
26285
26286 2012-10-16  Florian Weimer  <fweimer@redhat.com>
26287
26288         [BZ #14700]
26289         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
26290         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
26291
26292 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
26293
26294         * NEWS: Mention BZ #14716.
26295         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
26296         when removing AVAILABLE1_USES_J macro.
26297
26298 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
26299
26300         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
26301         (__bswap_64): __uint64_t for unsigned 64-bit int.
26302
26303 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
26304
26305         * include/string.h (memmem): Declare libc hidden alias.
26306         * string/memmem.c (memmem): Define libc hidden alias.
26307         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
26308         __read, __close instead of open, read, close.
26309
26310 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
26311
26312         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
26313         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
26314         global and hidden.
26315         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
26316         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
26317         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
26318         Likewise.
26319         (__rawmemchr_sse2): Likewise.
26320         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
26321         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
26322         (__strchr_sse2): Likewise.
26323         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
26324         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
26325         (__strcasecmp_sse2): Likewise.
26326         (__strncasecmp_sse2): Likewise.
26327         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
26328         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
26329         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
26330         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
26331         (__strrchr_sse2): Likewise.
26332         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
26333         ifunc-impl-list.c.
26334         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
26335         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
26336         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
26337         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26338         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
26339         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
26340         * sysdeps/x86_64/multiarch/memset.S: Likewise.
26341         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
26342         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
26343         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
26344         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
26345         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
26346         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
26347         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
26348         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
26349         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
26350         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
26351         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
26352         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
26353         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
26354         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
26355         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
26356         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
26357         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26358         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
26359         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
26360         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
26361         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
26362         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
26363         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
26364
26365         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
26366         global and hidden.
26367         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
26368         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
26369         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
26370         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
26371         Likewise.
26372         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
26373         Likewise.
26374         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
26375         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
26376         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
26377         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
26378         ifunc-impl-list.c.
26379         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
26380         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
26381         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
26382         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
26383         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
26384         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
26385         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
26386         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
26387         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
26388         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
26389         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
26390         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
26391         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
26392         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
26393         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
26394         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
26395         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
26396         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
26397         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
26398         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
26399         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26400         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
26401         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
26402         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
26403         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26404         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
26405         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
26406         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
26407         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
26408         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
26409         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
26410         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
26411         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
26412         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
26413         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
26414         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
26415         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
26416         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
26417         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
26418         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
26419         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
26420
26421         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
26422         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
26423         * include/ifunc-impl-list.h: New file.
26424         * misc/ifunc-impl-list.c: Likewise.
26425         * misc/Makefile (routines): Add ifunc-impl-list.
26426         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
26427         * string/test-string.h: Include <ifunc-impl-list.h>.
26428         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
26429         TEST_NAME]: New variables.
26430         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
26431         are defined.
26432         (test_init): Call __libc_ifunc_impl_list to initialize
26433         func_list if TEST_IFUNC and TEST_NAME are defined.
26434
26435         * string/Makefile (strop-tests): Add bcopy and bzero.
26436         * string/test-bcopy.c: New file.
26437         * string/test-bzero.c: Likewise.
26438         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
26439         defined.
26440         * string/test-memset.c: Support bzero test if TEST_BZERO is
26441         defined.
26442         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
26443         __libc_memmove.
26444         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
26445         __libc_memset.
26446         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
26447         of memset.
26448
26449 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
26450
26451         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
26452         * configure: Regenerated.
26453
26454         * Makeconfig (+link-static-before-libc): Don't include
26455         $(link-static-libc).
26456
26457         * libio/libio.h (_IO_pos_t): Remove.
26458
26459 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26460
26461         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
26462         McGrath.
26463
26464 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26465
26466         * crypt/crypt-entry.c: Include fips-private.h.
26467         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
26468         * crypt/md5c-test.c (main): Tolerate disabled MD5.
26469         * sysdeps/unix/sysv/linux/fips-private.h: New file.
26470         * sysdeps/generic/fips-private.h: New file, dummy fallback.
26471
26472 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
26473
26474         * crypt/crypt-private.h: Include stdbool.h.
26475         (_ufc_setup_salt_r): Return bool.
26476         * crypt/crypt-entry.c: Include errno.h.
26477         (__crypt_r): Return NULL with EINVAL for bad salt.
26478         * crypt/crypt_util.c (bad_for_salt): New.
26479         (_ufc_setup_salt_r): Check that salt is long enough and within
26480         the specified alphabet.
26481         * crypt/badsalttest.c: New file.
26482         * crypt/Makefile (tests): Add it.
26483         ($(objpfx)badsalttest): New.
26484
26485 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
26486
26487         * NEWS: Add entry for BZ #14602.
26488
26489 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26490
26491         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
26492         type-generic.
26493         * math/libm-test.inc: Update comment listing what functions and
26494         macros are tested.
26495         (isgreater_test): New function.
26496         (isgreaterequal_test): Likewise.
26497         (isless_test): Likewise.
26498         (islessequal_test): Likewise.
26499         (islessgreater_test): Likewise.
26500         (isunordered_test): Likewise.
26501         (main): Call the new functions.
26502
26503 2012-10-09  Roland McGrath  <roland@hack.frob.com>
26504
26505         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
26506         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
26507         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
26508         * sysdeps/i386/configure: Regenerated.
26509         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
26510         * sysdeps/mach/configure: Regenerated.
26511         * sysdeps/mach/hurd/configure: Regenerated.
26512         * sysdeps/powerpc/configure: Regenerated.
26513         * sysdeps/powerpc/powerpc32/configure: Regenerated.
26514         * sysdeps/powerpc/powerpc64/configure: Regenerated.
26515         * sysdeps/s390/s390-32/configure: Regenerated.
26516         * sysdeps/s390/s390-64/configure: Regenerated.
26517         * sysdeps/sh/configure: Regenerated.
26518         * sysdeps/sparc/configure: Regenerated.
26519         * sysdeps/unix/sysv/linux/configure: Regenerated.
26520         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
26521         * sysdeps/x86_64/configure: Regenerated.
26522
26523         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
26524         defined.  Don't check if MAP is NULL.
26525
26526 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
26527
26528         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
26529         (_G_stat64): Likewise.
26530         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
26531         (_G_stat64): Likewise.
26532         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
26533         instead of struct _G_stat64.
26534         * libio/fileops.c (mmap_remap_check): Likewise.
26535         (decide_maybe_mmap): Likewise.
26536         (_IO_new_file_seekoff): Likewise.
26537         (_IO_file_stat): Likewise.
26538         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
26539         _G_off64_t.
26540         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
26541         instead of struct _G_stat64.
26542         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26543
26544 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
26545
26546         [BZ #14602]
26547         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26548         Replace with ...
26549         (CHECK_EOL): New macro.
26550         (two_way_short_needle): Check beginning of haystack for EOL.  Use
26551         CHECK_EOL.
26552         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26553         Replace with CHECK_EOL.
26554         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
26555         Replace with CHECK_EOL.
26556
26557 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
26558
26559         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
26560         type-generic.
26561         * math/libm-test.inc: Update comment listing what functions and
26562         macros are tested.
26563         (finite_test): New function.
26564         (isinf_test): Likewise.
26565         (isnan_test): Likewise.
26566         (fpclassify_test): Test subnormal input.
26567         (isfinite_test): Likewise.
26568         (isnormal_test): Likewise.
26569         (main): Call the new functions.
26570
26571 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
26572
26573         [BZ #14660]
26574         * Makerules (%.dynsym): Force C locale when running
26575         $(OBJDUMP) --dynamic-syms.
26576
26577 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
26578
26579         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
26580         <stdint.h>.
26581
26582 2012-10-06  David S. Miller  <davem@davemloft.net>
26583
26584         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
26585         upper 32-bits of the length value in %o2 since we use branch-on-register
26586         tests which consider the entire 64-bit register.
26587
26588 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
26589
26590         * string/test-strstr.c (check2): Add a test for page boundary.
26591
26592 2012-10-05  David S. Miller  <davem@davemloft.net>
26593
26594         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
26595         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
26596         file.
26597         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26598         sysdep_routines.
26599         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26600         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
26601         and bzero when HWCAP_SPARC_CRYPTO is present.
26602
26603 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
26604
26605         [BZ #14602]
26606         * string/test-strstr.c (check2): New function.
26607         (test_main): Call check2.
26608
26609         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
26610         and bug-strchr1.
26611         * string/bug-strcasestr1.c (do_test): Moved to ...
26612         * string/test-strcasestr.c (check1): Here.  New function.
26613         (do_one_test): Break out result checking code into ...
26614         (check_result): This.  New function.
26615         (do_one_test): Call check_result.
26616         (test_main): Call check1.
26617         * string/bug-strchr1.c (do_test): Moved to ...
26618         * string/test-strchr.c (check1): Here.  New function.
26619         (do_one_test): Break out result checking code into ...
26620         (check_result): This.  New function.
26621         (do_one_test): Call check_result.
26622         (test_main): Call check1.
26623         * string/bug-strstr1.c (main): Moved to ...
26624         * string/test-strstr.c (check1): Here.  New function.
26625         (do_one_test): Break out result checking code into ...
26626         (check_result): This.  New function.
26627         (do_one_test): Call check_result.
26628         (test_main): Call check1.
26629         * string/bug-strcasestr1.c: Removed.
26630         * string/bug-strchr1.c: Likewise.
26631         * string/bug-strstr1.c: Likewise.
26632
26633         * elf/Makefile (dl-routines): Add hwcaps.
26634         * elf/dl-support.c (_dl_important_hwcaps): Removed.
26635         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
26636         (_dl_important_hwcaps): Moved to ...
26637         * elf/dl-hwcaps.c: Here.  New file.
26638         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
26639
26640         [BZ #14557]
26641         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
26642         if IS_IN_rtld isn't defined.
26643
26644         * elf/dl-support.c (_dl_sysinfo_map): New.
26645         Include "get-dynamic-info.h" and "setup-vdso.h".
26646         (_dl_non_dynamic_init): Call setup_vdso.
26647         * elf/dynamic-link.h: Don't include <assert.h>.
26648         (elf_get_dynamic_info): Moved to ...
26649         * elf/get-dynamic-info.h: Here.  New file.
26650         * elf/dynamic-link.h: Include "get-dynamic-info.h".
26651         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
26652         * elf/setup-vdso.h: Here.  New file.
26653         * elf/rtld.c: Include "setup-vdso.h".
26654         (dl_main): Call setup_vdso.
26655
26656 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
26657
26658         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
26659         creal in comment listing functions tested.  List finite, isinf,
26660         isnan, isless, islessequal, isgreater, isgreaterequal,
26661         islessgreater, isunordered, lgamma_r and pow10 as functions and
26662         macros not tested.  Mention which functions not tested are aliases
26663         for other functions.  Fix typo.  Note that signs of NaNs are not
26664         tested.
26665
26666         * scripts/config.guess: Update from config.git.
26667         * scripts/config.sub: Likewise.
26668
26669 2012-10-04  Roland McGrath  <roland@hack.frob.com>
26670
26671         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
26672         * misc/madvise.c (madvise): Renamed to __madvise.
26673         Make madvise a weak alias.
26674         * include/sys/mman.h: Declare __madvise.
26675         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
26676         * sysdeps/unix/syscalls.list
26677         (madvise): Make __madvise the strong name, and madvise a weak alias.
26678         * sysdeps/unix/sysv/linux/syscalls.list
26679         (madvise, mmap): Remove redundant entries.
26680         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
26681         * malloc/malloc.c (mtrim): Likewise.
26682         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
26683
26684 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26685
26686         * sysdeps/mach/hurd/dl-cache.c: File removed.
26687         * config.h.in (USE_LDCONFIG): New #undef.
26688         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
26689         * configure: Regenerated.
26690         * elf/Makefile (dl-routines): Add dl-cache only under
26691         [$(use-ldconfig) = yes].
26692         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
26693         cache on [USE_LDCONFIG].
26694         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
26695         [USE_LDCONFIG].
26696         * elf/rtld.c (dl_main): Likewise.
26697
26698 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
26699
26700         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
26701         _SC_LEVEL4_CACHE_LINESIZE.
26702
26703 2012-10-03  Roland McGrath  <roland@hack.frob.com>
26704
26705         * sysdeps/unix/bsd/confstr.h: File removed.
26706
26707 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
26708
26709         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
26710         sys/sdt-config.h.
26711
26712 2012-10-02  Roland McGrath  <roland@hack.frob.com>
26713
26714         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
26715         Make 'mapoff' field ElfW(Off) rather than off_t.
26716
26717 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
26718
26719         * nscd/Makefile: Remove nscd-cflags and all its users.
26720         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
26721         (CFLAGS-nonlib): Add compiler flags for nscd modules.
26722
26723         [BZ #10631]
26724         * malloc.c (malloc_printerr): Clarify error message.
26725
26726 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
26727
26728         [BZ #14648]
26729         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26730         Set bit_FMA_Usable if FMA is supported.
26731         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
26732         macro.
26733         (bit_FMA4_Usable): Updated.
26734         (index_FMA_Usable): New macro.
26735         (CPUID_FMA): Likewise
26736         (HAS_FMA): Defined with bit_FMA_Usable.
26737
26738 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26739
26740         * bits/types.h (__swblk_t): Type removed.
26741         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
26742         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
26743         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
26744         (__SWBLK_T_TYPE): Likewise.
26745         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
26746         (__SWBLK_T_TYPE): Likewise.
26747         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
26748         (__SWBLK_T_TYPE): Likewise.
26749         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
26750         (__SWBLK_T_TYPE): Likewise.
26751
26752 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
26753             Honza Horak <hhorak@redhat.com>
26754
26755         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
26756         (xdr_mapname): Use YPMAXMAP as maxsize.
26757         (xdr_peername): Use YPMAXPEER as maxsize.
26758         (xdr_keydat): Use YPAXRECORD as maxsize.
26759         (xdr_valdat): Use YPMAXRECORD as maxsize.
26760
26761 2012-10-01  Roland McGrath  <roland@hack.frob.com>
26762
26763         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
26764
26765         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
26766         * csu/init-first.c: ... here.
26767         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
26768         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
26769         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
26770         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
26771         * sysdeps/i386/init-first.c: File removed.
26772         * sysdeps/sh/init-first.c: File removed.
26773
26774 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
26775
26776         [BZ #14645]
26777         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
26778         if x * y might underflow to zero and z is zero.
26779         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26780         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26781         * math/libm-test.inc (min_subnorm_value): New variable.
26782         (fma_test): Add more tests.
26783         (fma_test_towardzero): Likewise.
26784         (fma_test_downward): Likewise
26785         (fma_test_upward): Likewise.
26786         (initialize): Set min_subnorm_value.
26787
26788 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
26789
26790         [BZ #14638]
26791         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
26792         0 + 0.
26793         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
26794         mode for addition resulting in exact zero.
26795         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
26796         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
26797         exact 0 + 0.
26798         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
26799         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26800         * math/libm-test.inc (fma_test): Add more tests.
26801         (fma_test_towardzero): New function.
26802         (fma_test_downward): Likewise.
26803         (fma_test_upward): Likewise.
26804         (main): Call the new functions.
26805
26806 2012-09-28  David S. Miller  <davem@davemloft.net>
26807
26808         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
26809
26810 2012-09-28  Roland McGrath  <roland@hack.frob.com>
26811
26812         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
26813         instead of SIGALRM.
26814
26815         * sysdeps/gnu/_G_config.h: Moved to ...
26816         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
26817         * sysdeps/mach/hurd/_G_config.h: Moved to ...
26818         * sysdeps/generic/_G_config.h: ... here.
26819
26820         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
26821
26822         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
26823
26824         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
26825         Conditionalize target on [libnss_test1.so-version].
26826
26827         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
26828
26829         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
26830         (elfobjdir): Move out of conditionals.
26831
26832         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
26833         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
26834         (__nss_lookup_function): Conditionalize label remove_from_tree on
26835         [!DO_STATIC_NSS || SHARED], matching its only use.
26836
26837 2012-09-28  David S. Miller  <davem@davemloft.net>
26838
26839         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
26840         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
26841         file.
26842         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
26843         sysdep_routines.
26844         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
26845         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
26846         when HWCAP_SPARC_CRYPTO is present.
26847
26848 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26849
26850         * io/tst-mknodat.c: Create a FIFO instead of a socket.
26851
26852 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
26853
26854         [BZ #6530]
26855         * stdio-common/vfprintf.c (process_string_arg): Revert
26856         2000-07-22 change.
26857
26858 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
26859
26860         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
26861         for testcase.
26862         * stdio-common/tst-sprintf.c: Include <locale.h>
26863         (main): Test sprintf's handling of incomplete multibyte
26864         characters.
26865
26866 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
26867
26868         * elf/dl-runtime.c (VERSYMIDX): Removed.
26869         * elf/dl-version.c (VERSYMIDX): Likewise.
26870         * elf/do-rel.h (VERSYMIDX): Likewise.
26871         (VALIDX): Likewise.
26872         * elf/dynamic-link.h (VERSYMIDX): Likewise.
26873         * elf/rtld.c (VALIDX): Likewise.
26874         (ADDRIDX): Likewise.
26875         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
26876         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
26877         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
26878         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
26879         (VALIDX): Likewise.
26880         (ADDRIDX): Likewise.
26881
26882 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26883
26884         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
26885
26886 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
26887
26888         [BZ #11438]
26889         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
26890         to global scope.
26891         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
26892         addresses are in the same scope as 192.0.2/24.
26893         * posix/gai.conf: Document new scope table defaults.
26894
26895 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26896
26897         [BZ #5298]
26898         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
26899         for ftell.  Compute offsets from write pointers instead.
26900         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
26901
26902 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26903
26904         [BZ #14543]
26905         * libio/Makefile (tests): New test case tst-fseek.
26906         * libio/tst-fseek.c: New test case to verify that fseek/ftell
26907         combination works in wide mode.
26908         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
26909         state when the external buffer state changes.
26910
26911 2012-09-27  David S. Miller  <davem@davemloft.net>
26912
26913         [BZ #14376]
26914         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
26915         pass reloc->r_addend in as the 'high' argument to
26916         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
26917
26918         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26919
26920 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
26921
26922         * rt/tst-aio2.c: Include <pthread.h>.
26923         * rt/tst-aio3.c: Likewise.
26924
26925 2012-09-27  Steve Ellcey  <sellcey@mips.com>
26926
26927         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
26928
26929 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
26930
26931         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
26932         contents on [SHARED].
26933
26934 2012-09-26  Marek Polacek  <polacek@redhat.com>
26935
26936         [BZ #14530]
26937         [BZ #13741]
26938         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
26939         for C++ and GCC <4.3 as well as for non GCC compilers.
26940
26941 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26942
26943         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26944
26945 2012-09-25  Roland McGrath  <roland@hack.frob.com>
26946
26947         * Makefile.in (all, install): Declare with .PHONY.
26948         Reported by Michael Hope <michael.hope@linaro.org>.
26949
26950 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
26951
26952         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
26953         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
26954         system header.
26955         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
26956         Likewise.
26957         (sydep_routines): Add the new and the internal functions.
26958         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
26959         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
26960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
26961         (GLIBC_2.17): Add the new function.
26962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
26963         (GLIBC_2.17): Likewise.
26964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
26965         (GLIBC_2.17): Likewise.
26966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
26967         (GLIBC_2.17): Likewise.
26968         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
26969
26970 2012-09-25  Alan Modra  <amodra@gmail.com>
26971
26972         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
26973         Add release barrier before setting once_control to say
26974         initialisation is done.  Add hints on lwarx.  Use macro in
26975         place of isync.
26976         (clear_once_control): Add release barrier.
26977
26978 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
26979
26980         [BZ #13629]
26981         * math/s_clog.c (__clog): Handle more values close to |z| = 1
26982         specially.
26983         * math/s_clog10.c (__clog10): Likewise.
26984         * math/s_clog10f.c (__clog10f): Likewise.
26985         * math/s_clog10l.c (__clog10l): Likewise.
26986         * math/s_clogf.c (__clogf): Likewise.
26987         * math/s_clogl.c (__clogl): Likewise.
26988         * math/Makefile (libm-calls): Add x2y2m1.
26989         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
26990         (__x2y2m1): Likewise.
26991         (__x2y2m1l): Likewise.
26992         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
26993         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
26994         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
26995         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
26996         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
26997         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
26998         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
26999         * sysdeps/i386/fpu/libm-test-ulps: Update.
27000         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27001
27002         [BZ #14621]
27003         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
27004         int as type of variable DEPTH.
27005         (glob): Use size_t instead of int as type of variables NEWCOUNT
27006         and OLD_PATHC.
27007
27008 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27009
27010         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27011         Add s_sincosf-sse2.
27012         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
27013         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
27014         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
27015         macros for using routine as __sincosf_ia32.
27016         Use macro for function declaration and weak_alias.
27017         * sysdeps/i386/fpu/libm-test-ulps: Update.
27018
27019         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
27020         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27021
27022         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
27023         subnormal argument.
27024         * math/s_cexpf.c (__cexpf): Likewise.
27025         * math/s_csinf.c (__csinf): Likewise.
27026         * math/s_csinhf.c (__csinhf): Likewise.
27027         * math/s_ctanf.c (__ctanf): Likewise.
27028         * math/s_ctanhf.c (__ctanhf): Likewise.
27029         * math/s_ccosh.c (__ccoshf): Likewise.
27030         * math/s_cexp.c (__cexpl): Likewise.
27031         * math/s_csin.c (__csin): Likewise.
27032         * math/s_csinh.c (__csinh): Likewise.
27033         * math/s_ctan.c (__ctan): Likewise.
27034         * math/s_ctanh.c (ctanh): Likewise.
27035         * math/s_ccoshl.c (__ccoshl): Likewise.
27036         * math/s_cexpl.c (__cexpl): Likewise.
27037         * math/s_csinl.c (__csinl): Likewise.
27038         * math/s_csinhl.c (__csinhl): Likewise.
27039         * math/s_ctanl.c (__ctanl): Likewise.
27040         * math/s_ctanhl.c (__ctanhl): Likewise.
27041
27042 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
27043
27044         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
27045         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
27046         (_IO_off_t): Define to __off_t, not _G_off_t.
27047         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
27048         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
27049         (_IO_wint_t): Define to wint_t, not _G_wint_t.
27050         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
27051         type of __dummy and __dummy2 fields.
27052         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
27053         (_G_ssize_t): Likewise.
27054         (_G_off_t): Likewise.
27055         (_G_pid_t): Likewise.
27056         (_G_uid_t): Likewise.
27057         (_G_wchar_t): Likewise.
27058         (_G_wint_t): Likewise.
27059         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
27060         (_G_ssize_t): Likewise.
27061         (_G_off_t): Likewise.
27062         (_G_pid_t): Likewise.
27063         (_G_uid_t): Likewise.
27064         (_G_wchar_t): Likewise.
27065         (_G_wint_t): Likewise.
27066         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
27067         (_G_ssize_t): Likewise.
27068         (_G_off_t): Likewise.
27069         (_G_pid_t): Likewise.
27070         (_G_uid_t): Likewise.
27071         (_G_wchar_t): Likewise.
27072         (_G_wint_t): Likewise.
27073
27074 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27075
27076         * malloc/arena.c: Include malloc-sysdep.h.
27077         (shrink_heap): Use check_may_shrink_heap to decide if madvise
27078         is sufficient to shrink the heap or an unmap is needed.
27079         * sysdeps/generic/malloc-sysdep.h: New file.  Define
27080         new function check_may_shrink_heap.
27081         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
27082         new function check_may_shrink_heap.
27083
27084 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27085
27086         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
27087         comments.
27088
27089 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
27090
27091         * catgets/test-gencat.sh: Add "set -e".
27092         * elf/tst-pathopt.sh: Likewise.
27093         * grp/tst_fgetgrent.sh: Likewise.
27094         * iconvdata/run-iconv-test.sh: Likewise.
27095         * intl/tst-gettext.sh: Likewise.
27096         * intl/tst-gettext2.sh: Likewise.
27097         * intl/tst-gettext4.sh: Likewise.
27098         * intl/tst-gettext6.sh: Likewise.
27099         * intl/tst-translit.sh: Likewise.
27100         * io/ftwtest-sh: Likewise.
27101         * libio/test-freopen.sh: Likewise.
27102         * malloc/tst-mtrace.sh: Likewise.
27103         * posix/globtest.sh: Likewise.
27104         * posix/tst-getconf.sh: Likewise.
27105         * posix/wordexp-tst.sh: Likewise.
27106         * stdio-common/tst-printf.sh: Likewise.
27107         * stdio-common/tst-unbputc.sh: Likewise.
27108         * stdlib/tst-fmtmsg.sh: Likewise.
27109         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27110         * catgets/Makefile: Do not specify -e option when running
27111         testsuite shell scripts.
27112         * elf/Makefile: Likewise.
27113         * grp/Makefile: Likewise.
27114         * iconvdata/Makefile: Likewise.
27115         * intl/Makefile: Likewise.
27116         * io/Makefile: Likewise.
27117         * libio/Makefile: Likewise.
27118         * malloc/Makefile: Likewise.
27119         * posix/Makefile: Likewise.
27120         * stdio-common/Makefile: Likewise.
27121         * stdlib/Makefile: Likewise.
27122         * sysdeps/x86_64/Makefile: Likewise.
27123
27124         * io/ftwtest-sh: Add copyright header.
27125         * posix/globtest.sh: Likewise.
27126         * posix/tst-getconf.sh: Likewise.
27127         * posix/wordexp-tst.sh: Likewise.
27128         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
27129
27130 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
27131
27132         [BZ #13679]
27133         * Makeconfig (+link): Defined as $(+link-static) if
27134         $(build-shared) isn't yes.
27135         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
27136         isn't yes.
27137         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
27138
27139         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
27140
27141         [BZ #14562]
27142         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
27143         new chunk size with MALLOC_ALIGN_MASK.
27144
27145 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
27146
27147         [BZ #5044]
27148         * stdio-common/printf_fphex.c: Include <stdbool.h> and
27149         <rounding-mode.h>.
27150         (__printf_fphex): Determine rounding using get_rounding_mode and
27151         round_away.
27152         * stdio-common/tst-printf-round.c (struct hex_test): New
27153         structure.
27154         (hex_tests): New variable.
27155         (test_hex_in_one_mode): New function.
27156         (do_test): Also run tests for hex float output.
27157
27158 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
27159
27160         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27161         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27162         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
27163         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
27164         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
27165         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
27166         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27167         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
27168
27169 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
27170
27171         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
27172         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
27173         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
27174         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
27175
27176 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
27177
27178         [BZ #14579]
27179         * elf/rtld.c (dl_main): Limit the check for self loading to normal
27180         mode only.
27181         * elf/tst-rtld-load-self.sh: New test.
27182         * elf/Makefile: Run it.
27183
27184 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
27185
27186         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
27187         (tst-writev-ENV): Remove.
27188         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
27189
27190 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
27191
27192         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
27193
27194 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
27195
27196         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
27197         unconditional.
27198         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
27199         Likewise.
27200         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
27201         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
27202         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
27203         Likewise.
27204
27205 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
27206
27207         [BZ #14587]
27208         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
27209         * config.make.in (have-cpp-asm-debuginfo): Removed.
27210         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
27211         * configure: Regenerated.
27212
27213 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
27214
27215         [BZ #5044]
27216         * stdio-common/printf_fp.c: Include <stdbool.h> and
27217         <rounding-mode.h>.
27218         (___printf_fp): Determine rounding using get_rounding_mode and
27219         round_away.
27220         * stdio-common/tst-printf-round.c: New file.
27221         * stdio-common/Makefile (tests): Add tst-printf-round.
27222         (link-libm): New variable.
27223         ($(objpfx)tst-printf-round): Depend in $(link-libm).
27224
27225 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
27226
27227         [BZ #14576]
27228         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
27229         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
27230         Likewise.
27231         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
27232         Likewise.
27233
27234 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
27235
27236         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
27237         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27238         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27239         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
27240
27241 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
27242
27243         [BZ #14518]
27244         * include/rounding-mode.h: New file.
27245         * sysdeps/generic/get-rounding-mode.h: Likewise.
27246         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
27247         * stdlib/strtod_l.c: Include <rounding-mode.h>.
27248         (MAX_VALUE): New macro.
27249         (MIN_VALUE): Likewise.
27250         (overflow_value): New function.
27251         (underflow_value): Likewise.
27252         (round_and_return): Use overflow_value and underflow_value to
27253         determine return values in overflow and underflow cases.  Use
27254         round_away to determine rounding depending on rounding mode.
27255         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
27256         determine return values in overflow and underflow cases.
27257         * stdlib/tst-strtod-round.c: Include <fenv.h>.
27258         (struct test_results): New structure.
27259         (struct test): Use struct test_results to store expected results
27260         for all rounding modes.
27261         (TEST): Include expected results for all rounding modes.
27262         (test_in_one_mode): New function.
27263         (do_test): Use test_in_one_mode to compute and check results.
27264         Check results for all rounding modes.
27265         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
27266         $(link-libm).
27267
27268 2012-12-09  Allan McRae  <allan@archlinux.org>
27269
27270         * sysdeps/i386/fpu/libm-test-ulps: Update
27271
27272 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
27273
27274         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
27275         (_G_int32_t): Likewise.
27276         (_G_uint16_t): Likewise.
27277         (_G_uint32_t): Likewise.
27278         (_G_HAVE_BOOL): Likewise.
27279         (_G_HAVE_ATEXIT): Likewise.
27280         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27281         (_G_HAVE_IO_FILE_OPEN): Likewise.
27282         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
27283         (_G_int32_t): Likewise.
27284         (_G_uint16_t): Likewise.
27285         (_G_uint32_t): Likewise.
27286         (_G_HAVE_BOOL): Likewise.
27287         (_G_HAVE_ATEXIT): Likewise.
27288         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27289         (_G_HAVE_IO_FILE_OPEN): Likewise.
27290         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
27291         (_G_int32_t): Likewise.
27292         (_G_uint16_t): Likewise.
27293         (_G_uint32_t): Likewise.
27294         (_G_HAVE_BOOL): Likewise.
27295         (_G_HAVE_ATEXIT): Likewise.
27296         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
27297         (_G_HAVE_IO_FILE_OPEN): Likewise.
27298
27299 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
27300
27301         * csu/libc-tls.c: Update copyright years.
27302
27303 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
27304
27305         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
27306         [!_G_USING_THUNKS]: Remove conditional code.
27307         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
27308         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
27309
27310         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
27311         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
27312         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27313         (_G_VTABLE_LABEL_PREFIX): Likewise.
27314         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27315         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27316         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27317         (_G_VTABLE_LABEL_PREFIX): Likewise.
27318         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27319         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
27320         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
27321         (_G_VTABLE_LABEL_PREFIX): Likewise.
27322         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
27323
27324 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
27325
27326         * libio/Makefile: Include ../Makeconfig before tests.
27327         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
27328         only if $(build-shared) is yes.
27329
27330         * iconv/gconv_db.c: Update copyright years.
27331
27332 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27333
27334         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
27335         unwind info if defined PIC. Fix special cases description.
27336         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
27337
27338         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
27339         DP_HI_MASK entry.
27340         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
27341
27342 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
27343
27344         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
27345
27346         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
27347         is NULL.
27348
27349         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
27350         (LDLIBS-tst-chk4): This.
27351         (LDFLAGS-tst-chk5): Renamed to ...
27352         (LDLIBS-tst-chk5): This.
27353         (LDFLAGS-tst-chk6): Renamed to ...
27354         (LDLIBS-tst-chk6): This.
27355         (LDFLAGS-tst-lfschk4): Renamed to ...
27356         (LDLIBS-tst-lfschk4): This.
27357         (LDFLAGS-tst-lfschk5): Renamed to ...
27358         (LDLIBS-tst-lfschk5): This.
27359         (LDFLAGS-tst-lfschk6): Renamed to ...
27360         (LDLIBS-tst-lfschk6): This.
27361
27362         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
27363         on $(common-objpfx)soversions.mk.
27364
27365 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
27366
27367         [BZ #10014]
27368         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
27369         example host name.
27370
27371 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
27372
27373         * malloc/arena.c (arena_get_retry): New function that gets
27374         another arena for the caller to try its request on.
27375         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
27376         current arena cannot fulfill the request.
27377         (__libc_memalign): Likewise.
27378         (__libc_memalign): Likewise.
27379         (__libc_pvalloc): Likewise.
27380         (__libc_calloc): Likewise.
27381
27382 2012-09-05  John Tobey  <john.tobey@gmail.com>
27383
27384         [BZ #13542]
27385         * manual/arith.texi (Operations on Complex): Fix description
27386         of carg branch cut.
27387
27388 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27389
27390         [BZ #10014]
27391         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
27392         host name.
27393
27394         [BZ #10038]
27395         * manual/memory.texi (Memory): Make order of menu items match
27396         order of sections.
27397
27398 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27399
27400         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
27401         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
27402         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
27403
27404 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27405
27406         * csu/libc-tls.c (static_dtv): Renamed to ...
27407         (_dl_static_dtv): This.  Make it global.
27408         (_dl_initial_dtv): Removed.
27409         (__libc_setup_tls): Updated.
27410         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
27411         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
27412         DL_INITIAL_DTV.
27413
27414 2012-09-06  Petr Machata  <pmachata@redhat.com>
27415
27416         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
27417         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
27418         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
27419         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
27420
27421 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27422
27423         [BZ #14545]
27424         * csu/libc-tls.c (_dl_initial_dtv): New variable.
27425         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
27426         freeing dtv[-1].
27427
27428 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
27429
27430         [BZ #14544]
27431         * Makeconfig (link-static-before-libc): Replace $(+prector)
27432         with $(+prectorT).
27433         (link-static-after-libc): Replace $(+postctor) with
27434         $(+postctorT).
27435         (link-bounded): Replace $(+prector)/$(+postctor) with
27436         $(+prectorT)/$(+postctorT).
27437         (+prectorT): New macro.
27438         (+postctorT): Likewise.
27439
27440 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
27441
27442         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
27443         (round_str): Handle values above the maximum for IBM long double
27444         as inexact.
27445         * stdlib/tst-strtod-round.c (tests): Regenerated.
27446
27447 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27448
27449         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
27450         assembler flag.
27451         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
27452         zarch_nohighgprs around the zarch optimized routines.
27453         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
27454         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
27455         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
27456         for zarch.
27457
27458 2012-09-05  David S. Miller  <davem@davemloft.net>
27459
27460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
27461
27462         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
27463         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
27464         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
27465         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
27466         entries.
27467
27468 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27469
27470         * malloc/arena.c: Fold copyright years.
27471         * malloc/mcheck.c, malloc/memusage.c: Likewise.
27472
27473 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27474
27475         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
27476
27477 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27478
27479         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
27480
27481 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27482
27483         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
27484         change internal state upon failure.
27485
27486 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
27487
27488         * malloc/mcheck.c (mcheck_check_all): Fix typo.
27489         * malloc/memusage.c (mmap): Likewise.
27490         (mmap64, mremap): Likewise.  Adjust name in comment.
27491
27492 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27493
27494         * libio/fileops.c: Fix typos in comments.
27495         * libio/oldfileops.c: Likewise.
27496         * libio/wfileops.c: Likewise.
27497
27498 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
27499
27500         [BZ #1349]
27501         * malloc/Makefile (tests): Add tst-malloc-usable test case.
27502         (tst-malloc-usable-ENV): Set environment for test case.
27503         * malloc/hooks.c (malloc_check_get_size): New function to get
27504         requested size.
27505         * malloc/malloc.c (musable): Use malloc_check_get_size.
27506         * malloc/tst-malloc-usable.c: New test case.
27507
27508 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27509
27510         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
27511
27512 2012-09-05  Allan McRae  <allan@archlinux.org>
27513
27514         [BZ #13966]
27515         * configure.in (CXX_SYSINCLUDES): Use compiler output to
27516         determine header location.
27517         * configure: Regenerated.
27518
27519 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
27520
27521         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
27522         float format.
27523         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
27524         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
27525         format.
27526         (test): Regenerate.
27527
27528 2012-09-04  David S. Miller  <davem@davemloft.net>
27529
27530         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
27531         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
27532         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
27533
27534 2012-09-04  Florian Weimer  <fweimer@redhat.com>
27535
27536         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
27537         failures.
27538
27539         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
27540
27541 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
27542
27543         [BZ #9914]
27544         * libio/iogetdelim.c: Include <limits.h>.
27545         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
27546         + len + 1 would overflow.
27547
27548 2012-09-03  Andreas Jaeger  <aj@suse.de>
27549
27550         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27551         * sysdeps/i386/fpu/libm-test-ulps: Update.
27552
27553 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27554
27555         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
27556         Add s_sinf-sse2, s_conf-sse2.
27557
27558         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
27559         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
27560         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
27561         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
27562
27563         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
27564         for using routine as __sinf_ia32.
27565         Use macro for function declaration and weak_alias.
27566         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
27567         for using routine as __cosf_ia32.
27568         Use macro for function declaration and weak_alias.
27569
27570         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
27571         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
27572
27573         * sysdeps/x86_64/fpu/s_sinf.S: New file.
27574         * sysdeps/x86_64/fpu/s_cosf.S: New file.
27575         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27576
27577         * math/libm-test.inc (cos_test): Add more test cases.
27578         (sin_test): Likewise.
27579         (sincos_test): Likewise.
27580
27581 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27582
27583         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
27584         (IFUNC_RESOLVE): Make pointers to the specialized implementations
27585         hidden.
27586         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27587
27588 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
27589
27590         [BZ #14538]
27591         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
27592         first element of the GOT.
27593         (elf_machine_load_address): Return the difference between
27594         the runtime address of _DYNAMIC and elf_machine_dynamic ().
27595
27596 2012-09-01  Allan McRae  <allan@archlinux.org>
27597
27598         [BZ #13412]
27599         * configure.in (AWK): Require gawk version 3.0 or later.
27600         * configure: Regenerated.
27601
27602 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
27603
27604         * sysdeps/unix/sysv/linux/kernel-features.h
27605         (__ASSUME_POSIX_CPU_TIMERS): Remove.
27606         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
27607         [__NR_clock_getres]: Make code unconditional.
27608         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
27609         (clock_getcpuclockid): Remove code left unreachable by removal of
27610         conditionals.
27611         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
27612         code unconditional.
27613         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27614         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27615         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
27616         Make code unconditional.
27617         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
27618         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27619         * sysdeps/unix/sysv/linux/clock_settime.c
27620         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
27621         conditional code.
27622         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
27623         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
27624
27625 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
27626
27627         [BZ #14476]
27628         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
27629         scripts/test-installation.pl.
27630
27631         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
27632         and $ld_so_version if it is set.
27633
27634 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
27635
27636         [BZ #14516]
27637         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
27638         failure if reading from procfs failed.
27639         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
27640
27641 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27642
27643         * sysdeps/unix/sysv/linux/kernel-features.h
27644         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
27645         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27646         Remove conditional code.
27647         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27648         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
27649         Remove conditional code.
27650         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27651         * sysdeps/unix/sysv/linux/i386/fxstat.c
27652         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27653         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27654         * sysdeps/unix/sysv/linux/i386/fxstatat.c
27655         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27656         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27657         * sysdeps/unix/sysv/linux/i386/lxstat.c
27658         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
27659         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27660         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
27661         Remove conditional code.
27662         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27663         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
27664         Remove conditional code.
27665         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27666         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
27667         <kernel-features.h>.
27668         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
27669         Remove.
27670         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
27671         Remove conditional code.
27672         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
27673         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
27674         Remove conditional.
27675
27676 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
27677
27678         [BZ #5400]
27679         * NEWS: Add fixed bug number.
27680
27681 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
27682
27683         [BZ #14519]
27684         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
27685         underflowing exponent in case of negative sign.
27686         * stdlib/tst-strtod-round-data: Add more tests.
27687         * stdlib/tst-strtod-round.c (tests): Regenerated.
27688
27689         [BZ #3479]
27690         * stdlib/strtod_l.c (NDIG): Remove.
27691         (HEXNDIG): Likewise.
27692         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
27693         smallest representable value.
27694         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
27695         lie within an exact representation of 1/2 ulp of the result.
27696         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
27697         unconditionally.
27698         (TENS_P9_IDX): Define unconditionally.
27699         (TENS_P9_SIZE): Likewise.
27700         (TENS_P10_IDX): Likewise.
27701         (TENS_P10_SIZE): Likewise.
27702         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
27703         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
27704         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
27705         entries for 10^2^13 and 10^2^14.
27706         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
27707         (TENS_P13_IDX): Define.
27708         (TENS_P13_SIZE): Likewise.
27709         (TENS_P14_IDX): Likewise.
27710         (TENS_P14_SIZE): Likewise.
27711         (_fpioconst_pow10): Change array size to
27712         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
27713         unconditional.
27714         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
27715         1024]: Add entries for 10^2^13 and 10^2^14.
27716         [LAST_POW10 > _LAST_POW10]: Remove #error.
27717         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
27718         (_fpioconst_pow10): Change array size to
27719         FPIOCONST_POW10_ARRAY_SIZE.
27720         * stdlib/gen-fpioconst.c: New file.
27721         * stdlib/gen-tst-strtod-round.c: Likewise.
27722         * stdlib/tst-strtod-round-data: Likewise.
27723         * stdlib/tst-strtod-round.c: Likewise.
27724         * stdlib/Makefile (tests): Add tst-strtod-round.
27725
27726         [BZ #14459]
27727         * stdlib/strtod_l.c: Include <stdint.h>.
27728         (NDEBUG): Do not define.
27729         (round_and_return): Change EXPONENT parameter to type intmax_t.
27730         Rearrange calculations to avoid internal overflow possibilities.
27731         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
27732         Rearrange calculations to avoid internal overflow possibilities.
27733         Assert that number fits inside MPNSIZE limbs.
27734         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
27735         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
27736         calculations and add assertions to avoid internal overflow
27737         possibilities.  Add casts to avoid signed/unsigned operations.
27738         * stdlib/tst-strtod-overflow.c: New file.
27739         * stdlib/Makefile (tests): Add tst-strtod-overflow.
27740
27741 2012-08-25  Marek Polacek  <polacek@redhat.com>
27742
27743         * time/time.h: Fix some typos in comments.
27744
27745 2012-08-23  Roland McGrath  <roland@hack.frob.com>
27746
27747         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
27748         * posix/tst-rfc3484-2.c: Likewise.
27749         * posix/tst-rfc3484-3.c: Likewise.
27750
27751 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
27752
27753         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
27754         (EF_ARM_ABI_FLOAT_HARD): Likewise.
27755
27756 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
27757
27758         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
27759         #include of fxstatat64.c.
27760
27761 2012-08-22  Roland McGrath  <roland@hack.frob.com>
27762
27763         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
27764         * shadow/getspent_r.c: Likewise.
27765         * shadow/getspnam.c: Likewise.
27766         * shadow/getspnam_r.c: Likewise.
27767         * gshadow/getsgent.c: Likewise.
27768         * gshadow/getsgent_r.c: Likewise.
27769         * gshadow/getsgnam.c: Likewise.
27770         * gshadow/getsgnam_r.c: Likewise.
27771         * inet/getnetbyad.c: Likewise.
27772         * inet/getnetbyad_r.c: Likewise.
27773         * inet/getnetbynm.c: Likewise.
27774         * inet/getnetbynm_r.c: Likewise.
27775         * inet/getnetent.c: Likewise.
27776         * inet/getnetent_r.c: Likewise.
27777         * inet/getproto.c: Likewise.
27778         * inet/getproto_r.c: Likewise.
27779         * inet/getprtent.c: Likewise.
27780         * inet/getprtent_r.c: Likewise.
27781         * inet/getprtname.c: Likewise.
27782         * inet/getprtname_r.c: Likewise.
27783         * inet/getrpcbyname.c: Likewise.
27784         * inet/getrpcbyname_r.c: Likewise.
27785         * inet/getrpcbynumber.c: Likewise.
27786         * inet/getrpcbynumber_r.c: Likewise.
27787         * inet/getrpcent.c: Likewise.
27788         * inet/getrpcent_r.c: Likewise.
27789         * inet/getaliasent.c: Likewise.
27790         * inet/getaliasent_r.c: Likewise.
27791         * inet/getaliasname.c: Likewise.
27792         * inet/getaliasname_r.c: Likewise.
27793         * nscd/getgrgid_r.c: Likewise.
27794         * nscd/getgrnam_r.c: Likewise.
27795         * nscd/gethstbyad_r.c: Likewise.
27796         * nscd/gethstbynm3_r.c: Likewise.
27797         * nscd/getpwnam_r.c: Likewise.
27798         * nscd/getpwuid_r.c: Likewise.
27799         * nscd/getsrvbynm_r.c: Likewise.
27800         * nscd/getsrvbypt_r.c: Likewise.
27801         * nscd/gai.c: Likewise.
27802
27803         * configure.in (build_nscd): New substituted variable, set
27804         by --disable-build-nscd and defaults to $use_nscd.
27805         * configure: Regenerated.
27806         * config.make.in (build-nscd): New substituted variable.
27807         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
27808         Change conditional to require [$(build-nscd) = yes] as well.
27809         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
27810
27811         [BZ# 13696]
27812         * configure.in (use_nscd): New substituted variable, set by
27813         --disable-nscd.  If enabled, define USE_NSCD.
27814         * configure: Regenerated.
27815         * config.h.in: Add USE_NSCD.
27816         * config.make.in (use-nscd): New substituted variable.
27817         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
27818         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
27819         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
27820         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
27821         (CFLAGS-getgrnam_r.c): Likewise.
27822         (CFLAGS-initgroups.c): Likewise.
27823         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
27824         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
27825         Variables removed.
27826         * inet/getnetgrent_r.c
27827         (nscd_setnetgrent): New function, broken out of ...
27828         (setnetgrent): ... here.  Call it.
27829         (innetgr): Conditionalize nscd bits on [USE_NSCD].
27830         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
27831         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
27832         * nscd/Makefile (routines, aux): Move definitions after include of
27833         Makeconfig.  Conditionalize on [$(use-nscd) != no].
27834         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
27835         Conditionalize on [USE_NSCD].
27836         (is_nscd, nscd_init_cb): Likewise.
27837         (nss_load_library): Conditionalize init callback on [USE_NSCD].
27838         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
27839         * nss/nss_db/db-init.c: Likewise.
27840         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
27841         [USE_NSCD].
27842         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
27843         (make_request): Use it.
27844         (cache_valid_p): New function.
27845         (__check_pf): Use it.
27846         * NEWS: Add item for --disable-nscd.
27847
27848 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
27849
27850         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
27851         to support sed >= 4.2.1-20-ga9bf076.
27852         * configure: Regenerated.
27853
27854 2012-08-22  Roland McGrath  <roland@hack.frob.com>
27855
27856         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
27857         Conditionalize whole body on [IREL].
27858
27859 2012-08-22  Jeff Law <law@redhat.com>
27860
27861         [BZ #14505]
27862         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
27863         if the family is PF_UNSPEC.
27864
27865 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
27866
27867         * Makerules (lib-version): Rename from V.
27868         (install-lib-nosubdir): Change V to lib-version.
27869
27870 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
27871
27872         [BZ #14252]
27873         * powerpc32/power6/wcschr.c: New file.
27874         * powerpc32/power6/wcscpy.c: New file.
27875         * powerpc32/power6/wcsrchr.c: New file.
27876         * powerpc64/power6/wcschr.c: New file.
27877         * powerpc64/power6/wcscpy.c: New file.
27878         * powerpc64/power6/wcsrchr.c: New file.
27879
27880 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
27881
27882         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
27883         (two_way_short_needle): Use it.
27884         * string/strstr.c (AVAILABLE1_USES_J): Define.
27885         * string/strcasestr.c: Likewise.
27886
27887         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
27888         array references.
27889         * string/strcasestr.c (TOLOWER): Make side-effect safe.
27890
27891         [BZ #11607]
27892         * NEWS: Add an entry.
27893         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
27894         define their defaults.
27895         (two_way_short_needle): Detect end-of-string on-the-fly.
27896         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
27897         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
27898         * string/bug-strcasestr1.c: New test.
27899         * string/Makefile: Run it.
27900
27901 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
27902
27903         [BZ #11607]
27904         * string/str-two-way.h (two_way_short_needle): Optimize matching of
27905         the first character.
27906
27907 2012-08-21  Roland McGrath  <roland@hack.frob.com>
27908
27909         * csu/elf-init.c (__libc_csu_irel): Function removed.
27910         * csu/libc-start.c (apply_irel): New function.
27911         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
27912
27913 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
27914
27915         * sysdeps/unix/sysv/linux/kernel-features.h
27916         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
27917         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
27918         <kernel-features.h>.
27919         [__NR_fadvise64_64]: Make code unconditional.
27920         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
27921         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
27922         !__NR_fadvise64_64)]: Likewise.
27923         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
27924         !__NR_fadvise64_64))]: Likewise.
27925         [__NR_fadvise64]: Make code unconditional.
27926         [!__NR_fadvise64]: Remove conditional code.
27927         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
27928         <kernel-features.h>.
27929         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27930         unconditional.
27931         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27932         conditional code.
27933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
27934         not include <kernel-features.h>.
27935         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27936         unconditional.
27937         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27938         conditional code.
27939         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
27940         include <kernel-features.h>.
27941         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
27942         unconditional.
27943         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
27944         conditional code.
27945
27946 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
27947
27948         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
27949         slight instruction rearrangements per scrollpipe analysis.
27950         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
27951
27952 2012-08-20  Roland McGrath  <roland@hack.frob.com>
27953
27954         * manual/syslog.texi (syslog; vsyslog, closelog):
27955         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
27956         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
27957
27958         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
27959         DSOCAPS to match condition on defining it.
27960
27961 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
27962
27963         * sysdeps/unix/sysv/linux/kernel-features.h
27964         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
27965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
27966         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27967         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
27969         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27970         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
27972         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
27973         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
27974
27975         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
27976         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
27977
27978         * sysdeps/unix/sysv/linux/kernel-features.h
27979         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
27980         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
27981         unconditional.
27982         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27983         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
27984         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
27985         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27986         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
27987         Make code unconditional.
27988         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27989         (__mmap64) [!__NR_mmap2]: Likewise.
27990         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
27991         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
27992         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27993         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
27994         [__NR_mmap2]: Make code unconditional.
27995         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
27996         (__mmap64) [!__NR_mmap2]: Likewise.
27997
27998 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27999
28000         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
28001
28002 2012-08-18  Andreas Jaeger  <aj@suse.de>
28003
28004         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
28005
28006 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28007
28008         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
28009         * include/unistd.h (__have_sock_cloexec): Likewise.
28010         (__have_pipe2): Likewise.
28011         (__have_dup3): Likewise.
28012
28013 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
28014
28015         [BZ #9685]
28016         * include/unistd.h (__have_pipe2): Change define into an extern int.
28017         (__have_dup3): Likewise.
28018         * socket/have_sock_cloexec.c: Include fcntl.h.
28019         (__have_pipe2): New variable.
28020         (__have_dup3): Likewise.
28021
28022 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
28023
28024         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
28025
28026 2012-08-17  Marek Polacek  <polacek@redhat.com>
28027
28028         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
28029         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
28030
28031 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28032
28033         * configure.in: Add AC_SUBST for sysheaders.
28034         * configure: Regenerated.
28035         * config.make.in (sysheaders): New substituted variable.
28036
28037         * sysdeps/unix/mkfifo.c: Moved ...
28038         * sysdeps/posix/mkfifo.c: ... here.
28039         * sysdeps/unix/mkfifoat.c: Moved ...
28040         * sysdeps/posix/mkfifoat.c: ... here.
28041
28042         * sysdeps/unix/utime.c: Moved ...
28043         * sysdeps/posix/utime.c: ... here.
28044
28045         * sysdeps/unix/time.c: Moved ...
28046         * sysdeps/posix/time.c: ... here.
28047         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
28048         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
28049
28050         * sysdeps/unix/nice.c: Moved ...
28051         * sysdeps/posix/nice.c: ... here.
28052
28053         * sysdeps/unix/alarm.c: Moved ...
28054         * sysdeps/posix/alarm.c: ... here.
28055
28056         * intl/Makefile ($(codeset_mo)): Depend on the input file.
28057
28058 2012-08-17  Jeff Law <law@redhat.com>
28059
28060         * intl/Makefile (codeset_mo): New variable.
28061         ($(codeset_mo)): New target.
28062         (tst-codeset.out): Depend on that.  Remove explicit rule.
28063         (tst-gettext3.out, tst-gettext5.out): Likewise.
28064         (LOCPATH-ENV, tst-codeset-ENV): New variables.
28065         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
28066         * intl/tst-codeset.sh: Remove.
28067         * intl/tst-gettext3.sh: Likewise.
28068         * intl/tst-gettext5.sh: Likewise.
28069
28070 2012-08-17  Roland McGrath  <roland@hack.frob.com>
28071
28072         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
28073         * sysdeps/unix/syscalls.list: ... here.
28074
28075         * sysdeps/posix/getaddrinfo.c
28076         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
28077         (gaiconf_init, gaiconf_reload): Use them.
28078         [!_STATBUF_ST_NSEC]
28079         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
28080         Define using time_t rather than struct timespec.
28081
28082         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
28083         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
28084         Macros removed.
28085         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
28086         [!NO_THREADS].
28087         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
28088         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
28089         Likewise.
28090
28091         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
28092         __libc_cleanup_push argument.
28093
28094         * bits/param.h: New file.
28095         * misc/sys/param.h: New file.
28096         * include/sys/param.h: New file.
28097         * misc/Makefile (headers): Add bits/param.h.
28098         * sysdeps/generic/sys/param.h: File removed.
28099         * sysdeps/unix/sysv/linux/bits/param.h: New file.
28100         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
28101         * sysdeps/mach/hurd/bits/param.h: New file.
28102         * sysdeps/mach/hurd/sys/param.h: File removed.
28103
28104         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
28105         last change.
28106
28107         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
28108         [_IO_MTSAFE_IO].
28109         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
28110         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
28111         New macros.
28112
28113         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
28114         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
28115         rather than -D_IO_MTSAFE_IO conditionally.
28116         * stdio-common/Makefile (CPPFLAGS): Likewise.
28117         * wcsmbs/Makefile (CPPFLAGS): Likewise.
28118         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
28119         Use $(libio-mtsafe).
28120         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
28121         of -D_IO_MTSAFE_IO.
28122         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
28123         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
28124         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
28125         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
28126         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
28127         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
28128         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
28129         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
28130         (CFLAGS-fread_u_chk.c): Likewise.
28131         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
28132         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
28133         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
28134         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
28135         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
28136         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
28137         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
28138         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
28139         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
28140
28141         * libio/Makefile: Test [$(libc-reentrant) = yes]
28142         instead of [$(filter %REENTRANT, $(defines)) nonempty].
28143
28144         * Makeconfig
28145         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
28146         * sysdeps/pthread/configure: File removed.
28147         * sysdeps/pthread/Makeconfig: New file.
28148         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
28149         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
28150
28151 2012-08-16  Gary Benson  <gbenson@redhat.com>
28152
28153         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
28154         unmapping the first object in a namespace.
28155
28156 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28157
28158         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
28159         (__internal_setnetgrent): ... this.  Add internal_function to
28160         definition.  Add libc_hidden_def.
28161         (setnetgrent): Update caller.
28162         (internal_endnetgrent): Renamed to ...
28163         (__internal_endnetgrent): ... this.  Add internal_function to
28164         definition.  Add libc_hidden_def.
28165         (endnetgrent): Update caller.
28166         (internal_getnetgrent_r): Renamed to ...
28167         (__internal_getnetgrent_r): ... this.  Add internal_function to
28168         definition.  Add libc_hidden_def.
28169         (__getnetgrent_r): Update caller.
28170         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
28171
28172 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28173
28174         * stdlib/longlong.h: Update from GCC.
28175
28176 2012-08-16  Roland McGrath  <roland@hack.frob.com>
28177
28178         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
28179         on _QL, which is set by umul_ppmm but never used.
28180         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
28181         variables, which are set by GMP macros but never used.
28182         * stdio-common/_itowa.c (_itowa): Likewise.
28183         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
28184         * stdlib/mod_1.c (mpn_mod_1): Likewise.
28185
28186 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
28187
28188         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
28189         struct La_sh_regs is not constant.
28190         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
28191         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
28192         and struct La_sparc64_regs are not constant.
28193
28194 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
28195
28196         * sysdeps/unix/sysv/linux/kernel-features.h
28197         (__ASSUME_POSIX_TIMERS): Remove.
28198         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
28199         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28200         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
28201         Make code unconditional.
28202         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28203         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
28204         Make code unconditional.
28205         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28206         * sysdeps/unix/sysv/linux/clock_nanosleep.c
28207         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
28208         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28209         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
28210         Make code unconditional.
28211         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
28212         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
28213         (__libc_missing_posix_timers): Remove.
28214
28215 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28216
28217         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
28218         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
28219
28220         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
28221
28222         * elf/dl-sym.c: Include <stdlib.h>.
28223
28224         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
28225         constants, which avoids warnings in 32-bit builds.
28226
28227         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
28228         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
28229
28230         * misc/lseek.c: File moved to ...
28231         * io/lseek.c: ... here.
28232
28233         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
28234
28235         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
28236         shifting LEN more than 31 bits at once.
28237
28238 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28239
28240         [BZ #14195]
28241         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
28242         segmentation fault for a case of two empty input strings.
28243         * string/test-strncasecmp.c (check1): Renamed to...
28244         (bz12205): ...this.
28245         (bz14195): Add new testcase for two empty input strings and N > 0.
28246         (test_main): Call new testcase, adapt for renamed function.
28247
28248 2012-08-15  Andreas Jaeger  <aj@suse.de>
28249
28250         [BZ #14090]
28251         * crypt/md5test2.c: New test, based on test supplied by Serge
28252         Belyshev <belyshev@depni.sinp.msu.ru>.
28253         * crypt/Makefile (xtests): Add md5test-giant..
28254         * crypt/Makefile ($(objpfx)md5test-giant): Add.
28255
28256 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28257
28258         [BZ #14090]
28259         * crypt/md5.c (md5_process_block): Don't assume the buffer
28260         length is less than 2**32.
28261         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
28262         length is less than 2**64.
28263
28264 2012-08-15  Roland McGrath  <roland@hack.frob.com>
28265
28266         * string/str-two-way.h: Include <sys/param.h>.
28267         (MAX): Macro removed.
28268
28269         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
28270         Move #define and #undef of memmove to just before and after
28271         including <string.h>.
28272
28273         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
28274         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
28275         and after including <string.h>.  Move declarations of
28276         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
28277         to before #include "string/memmove.c".
28278
28279         * include/dirent.h: Declare __getdirentries.
28280
28281         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
28282         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
28283
28284 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
28285
28286         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
28287         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
28288         * sysdeps/i386/configure: Regenerated.
28289         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
28290         STABS_CURRENT_FILE, and STABS_FUN.
28291         (END): Remove call to STABS_FUN_END.
28292         (STABS_CURRENT_FILE1): Delete.
28293         (STABS_CURRENT_FILE): Likewise.
28294         (STABS_FUN): Likewise.
28295         (STABS_FUN_END): Likewise.
28296         (STABS_FUN2): Likewise.
28297         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
28298         * sysdeps/x86_64/configure: Regenerated.
28299
28300 2012-08-14  Roland McGrath  <roland@hack.frob.com>
28301
28302         * elf/dl-open.c: Include <atomic.h>.
28303         * elf/dl-lookup.c: Likewise.
28304
28305 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
28306
28307         * sysdeps/unix/sysv/linux/kernel-features.h
28308         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
28309         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
28310         unconditionally.
28311         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
28312         unconditionally.
28313         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
28314         condition on __ASSUME_CLONE_THREAD_FLAGS.
28315
28316 2012-08-14  Andreas Jaeger  <aj@suse.de>
28317
28318         * sysdeps/i386/fpu/libm-test-ulps: Update.
28319
28320 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
28321
28322         * include/atomic.h (atomic_exchange_and_add): Split into ...
28323         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
28324         New atomic macros.
28325
28326 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
28327
28328         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
28329
28330 2012-08-13  Jeff Law <law@redhat.com>
28331
28332         * manual/stdio.texi (snprintf): Clarify handling of the trailing
28333         null byte in the output string.
28334
28335 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
28336
28337         * sysdeps/unix/sysv/linux/kernel-features.h
28338         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
28339         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
28340         (__ASSUME_ARG_MAX_STACK_BASED): Define.
28341         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
28342         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
28343         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
28344         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
28345
28346 2012-08-09  Jeff Law <law@redhat.com>
28347
28348         [BZ #13939]
28349         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
28350         When avoid_arena is set, don't retry in the that arena.  Pick the
28351         next one, whatever it might be.
28352         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
28353         (arena_lock): Pass in new parameter to arena_get2.
28354         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
28355         arena_get2.
28356         (__libc_malloc): Unify retrying after main arena failure with
28357         __libc_memalign version.
28358         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
28359
28360 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
28361
28362         [BZ #14166]
28363         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
28364         to __redirect_strstr.
28365         (__strstr_sse42): Use typeof __redirect_strstr.
28366         (__strstr_ia32): Likewise.
28367         (__libc_strstr): New prototype.
28368         (strstr): Renamed to ...
28369         (__libc_strstr): This.
28370         (strstr): New strong alias of __libc_strstr.
28371         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
28372         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
28373         __redirect_time.
28374         Include <time.h>.
28375         (__libc_time): New prototype.
28376         (time_ifunc): Replace time with __libc_time.
28377         (time): New strong alias and hidden definition of __libc_time.
28378         (__GI_time): Remove strong alias.
28379         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
28380         Include <stddef.h>.
28381         (memmove): Redefined to __redirect_memmove.
28382         (__memmove_sse2): Use typeof __redirect_memmove.
28383         (__memmove_ssse3): Likewise.
28384         (__memmove_ssse3_back): Likewise.
28385         (__libc_memmove): New prototype.
28386         (memmove): Renamed to ...
28387         (__libc_memmove): This.
28388         (memmove): New strong alias of __libc_memmove.
28389
28390 2012-08-08  Mark Salter  <msalter@redhat.com>
28391
28392         * elf/elf.h
28393         (R_MN10300_TLS_GD): Define.
28394         (R_MN10300_TLS_LD): Likewise.
28395         (R_MN10300_TLS_LDO): Likewise.
28396         (R_MN10300_TLS_GOTIE): Likewise.
28397         (R_MN10300_TLS_IE): Likewise.
28398         (R_MN10300_TLS_LE): Likewise.
28399         (R_MN10300_TLS_DTPMOD): Likewise.
28400         (R_MN10300_TLS_DTPOFF): Likewise.
28401         (R_MN10300_TLS_TPOFF): Likewise.
28402         (R_MN10300_SYM_DIFF): Likewise.
28403         (R_MN10300_ALIGN): Likewise.
28404         (R_MN10300_NUM): Update.
28405
28406 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
28407
28408         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
28409         Remove.
28410
28411 2012-08-08  Roland McGrath  <roland@hack.frob.com>
28412
28413         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
28414
28415         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
28416         sysdeps/unix -> sysdeps/posix move.
28417         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28418
28419 2012-08-07      Allan McRae     <allan@archlinux.org>
28420
28421         [BZ #14303]
28422         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
28423         (SUNOS_CPP): Likewise.
28424         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
28425         not found.
28426         (open_input): Call CPP using execvp.
28427
28428 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28429
28430         * sysdeps/unix/sysv/linux/kernel-features.h
28431         (__ASSUME_PROT_GROWSUPDOWN): Remove.
28432         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28433         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28434         (__ASSUME_WAITID_SYSCALL): Likewise.
28435         * sysdeps/unix/sysv/linux/dl-execstack.c
28436         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
28437         code unconditional.
28438         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
28439         conditional code.
28440         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
28441         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
28442         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
28443         code.
28444         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
28445         unconditional.
28446         [__ASSUME_WAITID_SYSCALL]: Likewise.
28447         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
28448
28449 2012-08-07  Roland McGrath  <roland@hack.frob.com>
28450
28451         * sysdeps/unix/closedir.c: Renamed to ...
28452         * sysdeps/posix/closedir.c: ... here.
28453         * sysdeps/unix/dirfd.c: Renamed to ...
28454         * sysdeps/posix/dirfd.c: ... here.
28455         * sysdeps/unix/dirstream.h: Renamed to ...
28456         * sysdeps/posix/dirstream.h: ... here.
28457         * sysdeps/unix/fdopendir.c: Renamed to ...
28458         * sysdeps/posix/fdopendir.c: ... here.
28459         * sysdeps/unix/opendir.c: Renamed to ...
28460         * sysdeps/posix/opendir.c: ... here.
28461         * sysdeps/unix/readdir.c: Renamed to ...
28462         * sysdeps/posix/readdir.c: ... here.
28463         * sysdeps/unix/readdir_r.c: Renamed to ...
28464         * sysdeps/posix/readdir_r.c: ... here.
28465         * sysdeps/unix/rewinddir.c: Renamed to ...
28466         * sysdeps/posix/rewinddir.c: ... here.
28467         * sysdeps/unix/seekdir.c: Renamed to ...
28468         * sysdeps/posix/seekdir.c: ... here.
28469         * sysdeps/unix/telldir.c: Renamed to ...
28470         * sysdeps/posix/telldir.c: ... here.
28471         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
28472         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
28473         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28474         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
28475
28476         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
28477         * bits/fcntl.h: ... here.
28478
28479         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
28480         not 0.
28481         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
28482         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
28483         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
28484         (struct flock): Move l_start, l_len to the beginning.
28485         Use __pid_t for l_pid.
28486         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
28487         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
28488         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
28489         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
28490         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
28491         [__USE_LARGEFILE64] (struct flock64): New type.
28492         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
28493
28494         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
28495         * bits/dirent.h: ... here.
28496
28497         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
28498         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
28499
28500 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
28501
28502         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28503         Change from 2.6.0 to 2.6.16.
28504         * sysdeps/unix/sysv/linux/configure: Regenerated.
28505         * sysdeps/unix/sysv/linux/kernel-features.h
28506         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
28507         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
28508         version.
28509         (__ASSUME_UTIMES): Likewise.
28510         (__ASSUME_CLONE_STOPPED): Remove.
28511         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
28512         architectures, not kernel version.
28513         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
28514         (__ASSUME_NO_CLONE_DETACHED): Likewise.
28515         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
28516         (__ASSUME_WAITID_SYSCALL): Likewise.
28517         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
28518         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
28519         * README: State 2.6.16 as minimum Linux kernel version.  Do not
28520         refer to older versions.
28521
28522 2012-08-06  Roland McGrath  <roland@hack.frob.com>
28523
28524         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
28525         Define alphasort64 as an alias.
28526         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
28527         Define versionsort64 as an alias.
28528         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
28529         Define scandir64 as an alias.
28530         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
28531         Define scandirat64 as an alias.
28532         * dirent/alphasort64.c (alphasort64):
28533         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
28534         * dirent/versionsort64.c: Likewise.
28535         * dirent/scandir64.c: Likewise.
28536         * dirent/scandirat64.c: Likewise.
28537         * sysdeps/wordsize-64/alphasort.c: File removed.
28538         * sysdeps/wordsize-64/alphasort64.c: File removed.
28539         * sysdeps/wordsize-64/scandir.c: File removed.
28540         * sysdeps/wordsize-64/scandir64.c: File removed.
28541         * sysdeps/wordsize-64/scandirat.c: File removed.
28542         * sysdeps/wordsize-64/scandirat64.c: File removed.
28543         * sysdeps/wordsize-64/versionsort.c: File removed.
28544         * sysdeps/wordsize-64/versionsort64.c: File removed.
28545         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
28546         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
28547         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
28548         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
28549         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
28550         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
28551         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
28552         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
28553
28554         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
28555         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28556         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
28557         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28558         [defined __arch64__ || defined __sparcv9]
28559         (__INO_T_MATCHES_INO64_T): New macro.
28560         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28561         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
28562         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
28563         * sysdeps/unix/sysv/linux/bits/dirent.h
28564         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
28565         (_DIRENT_MATCHES_DIRENT64): New macro.
28566
28567         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
28568         Define lockf64 as an alias.
28569         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
28570         Define fseeko64 as an alias.
28571         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
28572         Define ftello64 as an alias.
28573         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
28574         Define _IO_fgetpos64 and fgetpos64 as aliases.
28575         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
28576         Define _IO_fsetpos64 and fsetpos64 as aliases.
28577         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
28578         Conditionalize body on this.
28579         * libio/fseeko64.c: Likewise.
28580         * libio/ftello64.c: Likewise.
28581         * libio/iofgetpos64.c: Likewise.
28582         * libio/iofsetpos64.c: Likewise.
28583         * sysdeps/wordsize-64/lockf.c: File removed.
28584         * sysdeps/wordsize-64/lockf64.c: File removed.
28585         * sysdeps/wordsize-64/fseeko.c: File removed.
28586         * sysdeps/wordsize-64/fseeko64.c: File removed.
28587         * sysdeps/wordsize-64/ftello.c: File removed.
28588         * sysdeps/wordsize-64/ftello64.c: File removed.
28589         * sysdeps/wordsize-64/iofgetpos.c: File removed.
28590         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
28591         * sysdeps/wordsize-64/iofsetpos.c: File removed.
28592         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
28593         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
28594         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
28595         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
28596         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
28597         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
28598         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
28599         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
28600         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
28601         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
28602         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
28603
28604         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28605         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
28606         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
28607         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28608         [defined __arch64__ || defined __sparcv9]
28609         (__OFF_T_MATCHES_OFF64_T): New macro.
28610         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28611         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
28612         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28613         (__OFF_T_MATCHES_OFF64_T): New macro.
28614
28615 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28616
28617         * stdlib/secure-getenv.c (__secure_getenv): Replace
28618         GLIBC_2_16 with GLIBC_2_17.
28619
28620 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
28621
28622         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
28623         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
28624
28625 2012-08-03  David S. Miller  <davem@davemloft.net>
28626
28627         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28628
28629 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28630
28631         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
28632         Remove.
28633         (__ASSUME_CORRECT_SI_PID): Likewise.
28634         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
28635         (__ASSUME_TMPFS_NAME): Likewise.
28636         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
28637         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
28638         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
28639         (HAVE_AUX_SECURE): Make definition unconditional.
28640         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
28641         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
28642
28643 2012-08-03  Roland McGrath  <roland@hack.frob.com>
28644
28645         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
28646         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
28647         * sysdeps/mach/hurd/eloop-threshold.h: New file.
28648         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
28649         __eloop_threshold instead of SYMLOOP_MAX.
28650
28651         * sysdeps/generic/eloop-threshold.h: New file.
28652         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
28653         of MAXSYMLINKS.
28654         * elf/chroot_canon.c (chroot_canon): Likewise.
28655
28656 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
28657
28658         [BZ #13717]
28659         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
28660         Change to 2.6.0 everywhere.
28661         * sysdeps/unix/sysv/linux/configure: Regenerated.
28662         * sysdeps/unix/sysv/linux/kernel-features.h
28663         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
28664         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
28665         kernel versions.
28666         (__ASSUME_POSIX_TIMERS): Define unconditionally.
28667         (__ASSUME_FUTEX_REQUEUE): Remove.
28668         (__ASSUME_STATFS64): Define unconditionally.
28669         (__ASSUME_AT_SECURE): Likewise.
28670         (__ASSUME_CORRECT_SI_PID): Likewise.
28671         (__ASSUME_TGKILL): Define without depending on kernel version for
28672         i386.
28673         (__ASSUME_UTIMES): Likewise.
28674         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
28675         kernel version.
28676         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
28677         (__ASSUME_TMPFS_NAME): Likewise.
28678         * README: Update reference to Linux kernel versions.
28679
28680 2012-08-02  Marek Polacek  <polacek@redhat.com>
28681
28682         [BZ# 14150]
28683         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
28684         libc_cv_asm_type_prefix with %.
28685         * configure: Regenerated.
28686         * include/libc-symbols.h: Remove comment about
28687         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28688         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
28689         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
28690         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
28691         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
28692         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
28693         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
28694         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
28695         * elf/tst-unique2mod1.c: Likewise.
28696         * elf/tst-unique1mod2.c: Likewise.
28697         * elf/tst-unique1mod1.c: Likewise.
28698         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
28699         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
28700         Replace ASM_TYPE_DIRECTIVE with .type.
28701         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28702         * sysdeps/i386/sysdep.h: Likewise.
28703         * sysdeps/x86_64/sysdep.h: Likewise.
28704         * sysdeps/sh/sysdep.h: Likewise.
28705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
28706         Do not define ASM_TYPE_DIRECTIVE.
28707         * sysdeps/powerpc/sysdep.h: Likewise.
28708         * sysdeps/powerpc/powerpc32/sysdep.h:
28709         Replace ASM_TYPE_DIRECTIVE with .type.
28710         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
28711         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
28712         * sysdeps/i386/fpu/e_powf.S: Likewise.
28713         * sysdeps/i386/fpu/e_expl.S: Likewise.
28714         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
28715         * sysdeps/i386/fpu/e_acosh.S: Likewise.
28716         * sysdeps/i386/fpu/e_pow.S: Likewise.
28717         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
28718         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
28719         * sysdeps/i386/fpu/s_expm1.S: Likewise.
28720         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
28721         * sysdeps/i386/fpu/e_log2.S: Likewise.
28722         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28723         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28724         * sysdeps/i386/fpu/e_powl.S: Likewise.
28725         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28726         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
28727         * sysdeps/i386/fpu/e_logl.S: Likewise.
28728         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
28729         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
28730         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
28731         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28732         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
28733         * sysdeps/i386/fpu/e_log.S: Likewise.
28734         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28735         * sysdeps/i386/fpu/e_logf.S: Likewise.
28736         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28737         * sysdeps/i386/fpu/e_atanh.S: Likewise.
28738         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
28739         * sysdeps/i386/fpu/e_log10.S: Likewise.
28740         * sysdeps/i386/fpu/s_frexp.S: Likewise.
28741         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
28742         * sysdeps/i386/fpu/s_asinh.S: Likewise.
28743         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
28744         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28745         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
28746         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
28747         * sysdeps/i386/i686/strtok.S: Likewise.
28748         * sysdeps/i386/i386-mcount.S: Likewise.
28749         * sysdeps/i386/strtok.S: Likewise.
28750         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
28751         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
28752         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
28753         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
28754         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
28755         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
28756         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
28757         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
28758         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
28759         * sysdeps/x86_64/_mcount.S: Likewise.
28760         * sysdeps/x86_64/strtok.S: Likewise.
28761         * sysdeps/sh/_mcount.S: Likewise.
28762
28763 2012-08-01  Roland McGrath  <roland@hack.frob.com>
28764
28765         * libio/iofopen.c: Include <fcntl.h>.
28766         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
28767         (_IO_fopen64, fopen64): Define as aliases.
28768         * libio/iofopen64.c: Include <fcntl.h>.
28769         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
28770         Conditionalize body on this.
28771         * sysdeps/wordsize-64/iofopen.c: File removed.
28772         * sysdeps/wordsize-64/iofopen64.c: File removed.
28773
28774 2012-08-01  Marek Polacek  <polacek@redhat.com>
28775
28776         * libc/Makeconfig: Use elf in place of binfmt-subdir.
28777         Use dlfcn directly instead of a variable.
28778         (binfmt-subdir): Do not define.
28779         (dlfcn): Likewise.
28780
28781 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
28782
28783         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
28784         Remove all definitions.
28785         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
28786         <kernel-features.h>.
28787         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
28788         (miss_F_GETOWN_EX): Remove all definitions.
28789         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
28790         macro definition.
28791         [!__ASSUME_FCNTL64]: Remove conditional code.
28792         [__ASSUME_FCNTL64]: Make code unconditional.
28793         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
28794         <kernel-features.h>.
28795         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
28796         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
28797         (lockf64) [__NR_fcntl64]: Make code unconditional.
28798         (lockf64) [__ASSUME_FCNTL64]: Likewise.
28799
28800         * sysdeps/unix/sysv/linux/kernel-features.h
28801         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
28802         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
28803         Make code unconditional.
28804         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28805         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
28807         [__NR_vfork]: Make code unconditional.
28808         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28809         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
28811         [__NR_vfork]: Make code unconditional.
28812         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
28813         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
28814
28815 2012-08-01  Roland McGrath  <roland@hack.frob.com>
28816
28817         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
28818         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
28819
28820         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28821         Define mkstemp64 as an alias.
28822         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28823         Define mkstemps64 as an alias.
28824         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28825         Define mkostemp64 as an alias.
28826         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
28827         Define mkostemps64 as an alias.
28828         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
28829         Conditionalize body on this.
28830         * misc/mkostemp64.c: Likewise.
28831         * misc/mkostemps64.c: Likewise.
28832         * misc/mkstemps64.c: Likewise.
28833         * sysdeps/wordsize-64/mkstemp64.c: File removed.
28834         * sysdeps/wordsize-64/mkostemp64.c: File removed.
28835         * sysdeps/wordsize-64/mkostemp.c: File removed.
28836         * sysdeps/wordsize-64/mkstemp.c: File removed.
28837         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
28838         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
28839         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
28840         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
28841
28842         [BZ #14138]
28843         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
28844         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
28845         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
28846         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
28847
28848         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
28849         compat_symbol macros from <shlib-compat.h> rather than the underlying
28850         default_symbol_version and symbol_version macros, so that DEFAULT
28851         lines in shlib-versions are respected.
28852         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
28853
28854 2012-08-01  Florian Weimer  <fweimer@redhat.com>
28855
28856         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
28857         Declare with warn_unused_result.
28858         (setgid, setregid, setegid, setresgid): Likewise.
28859         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
28860         Likewise.
28861         * WUR-REPORT: Remove set*id functions.
28862
28863 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
28864
28865         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
28866
28867 2012-07-31  Roland McGrath  <roland@hack.frob.com>
28868
28869         [BZ #10191]
28870         * include/sys/socket.h (__libc_accept, __libc_accept4):
28871         Add attribute_hidden.
28872         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
28873
28874         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
28875         use of PTR_MANGLE.
28876         * inet/getnetgrent_r.c (setup): Likewise.
28877
28878         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
28879
28880 2012-07-31  David S. Miller  <davem@davemloft.net>
28881
28882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28883
28884 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
28885
28886         [BZ #13629]
28887         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
28888         value between 1.0 and 2.0 and smaller part has absolute value less
28889         than 1.0.
28890         * math/s_clog10.c (__clog10): Likewise.
28891         * math/s_clog10f.c (__clog10f): Likewise.
28892         * math/s_clog10l.c (__clog10l): Likewise.
28893         * math/s_clogf.c (__clogf): Likewise.
28894         * math/s_clogl.c (__clogl): Likewise.
28895         * math/libm-test.inc (clog_test): Add more tests.
28896         (clog10_test): Likewise.
28897         * sysdeps/i386/fpu/libm-test-ulps: Update.
28898         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
28899
28900 2012-07-31  Florian Weimer  <fweimer@redhat.com>
28901
28902         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
28903         Exit with zero in case no suitable GID is found, and write a
28904         message to standard error.
28905
28906 2012-07-30  Roland McGrath  <roland@hack.frob.com>
28907
28908         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
28909         rather than to 1.
28910         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
28911         (MAXPATHLEN): Removed.
28912         (NOGROUP, NODEV): New macros.
28913         (setbit, clrbit, isset, isclr): New macros.
28914         (howmany, roundup, powerof2): New macros.
28915         (DEV_BSIZE): New macro.
28916
28917         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
28918         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
28919
28920         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
28921         definition on [!__NO_LONG_DOUBLE_MATH].
28922
28923         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
28924         PTR_MANGLE and PTR_DEMANGLE.
28925
28926         * socket/accept4.c (accept4): Rename to __libc_accept4.
28927         Define accept4 as a weak alias.
28928
28929         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
28930         on [_DIRENT_HAVE_D_TYPE].
28931         * io/ftw.c (ftw_dir): Likewise.
28932
28933         * io/xmknod.c (__xmknod): Don't check PATH for being null.
28934
28935         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
28936
28937         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
28938         Use the BSD numbers rather than the arbitrary ones we had.
28939         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
28940         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
28941         (SIGXCPU, SIGXFSZ): New macros.
28942         (_NSIG): Now 32.
28943
28944         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
28945         initializer on [_LIBC_REENTRANT].
28946
28947         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
28948         definitions inside [_POSIX_MAPPED_FILES].
28949
28950         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
28951
28952         * dirent/opendir.c: Include <fcntl.h>.
28953
28954         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
28955         (__libc_getspecific): Likewise.
28956         (__libc_key_create): Likewise.
28957
28958         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
28959         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
28960         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
28961         (tmpfile64): Define as alias.
28962         * sysdeps/wordsize-64/tmpfile.c: File removed.
28963         * sysdeps/wordsize-64/tmpfile64.c: File removed.
28964         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
28965         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
28966
28967         * stdio-common/vfscanf.c: Include <stdbool.h>.
28968         * nss/makedb.c: Likewise.
28969         * stdio-common/_i18n_number.h: Likewise.
28970         * argp/argp-help.c: Likewise.
28971         * posix/wordexp.c: Likewise.
28972         * sysdeps/posix/spawni.c: Likewise.
28973         * nss/nss_files/files-initgroups.c: Likewise.
28974         * stdio-common/reg-modifier.c: Include <stdlib.h>.
28975         * nss/nss_files/files-initgroups.c: Likewise.
28976         * nss/nss_db/db-netgrp.c: Likewise.
28977         * nss/nss_db/db-initgroups.c: Likewise.
28978         * io/fchmodat.c: Include <sys/stat.h>.
28979
28980         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
28981         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
28982
28983         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
28984         [HAVE_MMAP].
28985
28986         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
28987         Add multiple inclusion protection.
28988
28989 2012-07-27  David S. Miller  <davem@davemloft.net>
28990
28991         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28992
28993 2012-07-27  Gary Benson  <gbenson@redhat.com>
28994
28995         [BZ #14298]
28996         * elf/rtld.c: Include <stap-probe.h>.
28997         (dl_main): Added static probes "init_start" and "init_complete".
28998         * elf/dl-load.c: Include <stap-probe.h>.
28999         (lose): Take new parameter "nsid".
29000         Added static probe "map_failed".
29001         (_dl_map_object_from_fd): Pass namespace id to lose.
29002         Added static probe "map_start".
29003         (open_verify): Pass namespace id to lose.
29004         * elf/dl-open.c: Include <stap-probe.h>.
29005         (dl_open_worker) Added static probes "map_complete", "reloc_start"
29006         and "reloc_complete".
29007         * elf/dl-close.c: Include <stap-probe.h>.
29008         (_dl_close_worker): Added static probes "unmap_start" and
29009         "unmap_complete".
29010         * elf/rtld-debugger-interface.txt: New file documenting the above.
29011
29012 2012-07-26  Roland McGrath  <roland@hack.frob.com>
29013
29014         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
29015         rather than a string variable.
29016         * sunrpc/rpc_main.c (h_output): Likewise.
29017         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
29018
29019 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
29020
29021         * inet/check_native.c: New file.
29022
29023 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
29024
29025         [BZ #13629]
29026         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
29027         if larger part has absolute value 1.0.
29028         * math/s_clog10.c (__clog10): Likewise.
29029         * math/s_clog10f.c (__clog10f): Likewise.
29030         * math/s_clog10l.c (__clog10l): Likewise.
29031         * math/s_clogf.c (__clogf): Likewise.
29032         * math/s_clogl.c (__clogl): Likewise.
29033         * math/libm-test.inc (clog_test): Add more tests.
29034         (clog10_test): Likewise.
29035         * sysdeps/i386/fpu/libm-test-ulps: Update.
29036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29037
29038         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
29039         (pltexit): Likewise.
29040         (La_regs): Likewise.
29041         (La_retval): Likewise.
29042         (int_retval): Likewise.
29043         Update #error for removed macros to refer only to definitions in
29044         tst-audit.h.
29045         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
29046         macro.
29047         (pltexit): Likewise.
29048         (La_regs): Likewise.
29049         (La_retval): Likewise.
29050         (int_retval): Likewise.
29051         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
29052         macro.
29053         (pltexit): Likewise.
29054         (La_regs): Likewise.
29055         (La_retval): Likewise.
29056         (int_retval): Likewise.
29057         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
29058         macro.
29059         (pltexit): Likewise.
29060         (La_regs): Likewise.
29061         (La_retval): Likewise.
29062         (int_retval): Likewise.
29063         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
29064         macro.
29065         (pltexit): Likewise.
29066         (La_regs): Likewise.
29067         (La_retval): Likewise.
29068         (int_retval): Likewise.
29069         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
29070         macro.
29071         (pltexit): Likewise.
29072         (La_regs): Likewise.
29073         (La_retval): Likewise.
29074         (int_retval): Likewise.
29075         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
29076         macro.
29077         (pltexit): Likewise.
29078         (La_regs): Likewise.
29079         (La_retval): Likewise.
29080         (int_retval): Likewise.
29081         * sysdeps/generic/tst-audit.h: Update comment to refer only to
29082         macro definitions in tst-audit.h.
29083         * sysdeps/i386/tst-audit.h: New file.
29084         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
29085         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
29086         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
29087         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
29088         * sysdeps/sh/tst-audit.h: Likewise.
29089         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
29090         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
29091         * sysdeps/x86_64/tst-audit.h: Likewise.
29092
29093 2012-07-26  Andreas Jaeger  <aj@suse.de>
29094
29095         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
29096         ptrace.
29097
29098         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
29099         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
29100         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
29101         PTRACE_O_MASK.
29102         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
29103         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
29104         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
29105
29106         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
29107         value.
29108
29109         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
29110         _sigsys.
29111         (si_call_addr, si_syscall, si_arch): Define new macro.
29112         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
29113         _sigsys.
29114         (si_call_addr, si_syscall, si_arch): Define new marcro.
29115         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
29116         _sigsys.
29117         (si_call_addr, si_syscall, si_arch): Define new macro.
29118         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
29119         _sigsys.
29120         (si_call_addr, si_syscall, si_arch): Define new macro.
29121
29122 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29123
29124         [BZ #13717]
29125         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29126         Change to 2.4.21 where previously 2.4.1.
29127         * sysdeps/unix/sysv/linux/configure: Regenerated.
29128         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
29129         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
29130         Linux kernel version.
29131         (__ASSUME_STD_AUXV): Remove.
29132         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
29133         kernel version.
29134         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
29135         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
29136         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
29137         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
29138         (__ASSUME_NETLINK_SUPPORT): Likewise.
29139         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
29140         (__no_netlink_support): Remove conditional definition.
29141         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
29142         Remove.
29143         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29144         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
29145         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
29146         (if_nameindex_ioctl): Remove.
29147         (if_nameindex_netlink): Do not handle __no_netlink_support.
29148         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29149         code.
29150         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
29151         Remove conditional code.
29152         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
29153         code.
29154         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
29155         unconditional.
29156         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
29157         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
29158         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
29159         Remove.
29160         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
29161         [!__ASSUME_STD_AUXV]: Remove conditional code.
29162         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
29163         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
29164         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
29165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
29166         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
29167         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29168         code.
29169         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
29171         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
29172         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29173         conditional code.
29174         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
29175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
29176         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
29177         code.
29178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
29179         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
29180         conditional code.
29181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
29182         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29183         code unconditional.
29184         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29185         conditional code.
29186         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29187         unconditional.
29188         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29189         conditional code.
29190         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
29191         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29192         unconditional.
29193         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29194         conditional code.
29195         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
29196         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29197         code unconditional.
29198         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29199         conditional code.
29200         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29201         unconditional.
29202         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29203         conditional code.
29204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
29205         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
29206         code unconditional.
29207         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29208         conditional code.
29209         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
29210         unconditional.
29211         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
29212         conditional code.
29213
29214 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
29215
29216         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
29217         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
29218         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
29219         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
29220         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
29221         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
29222         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
29223         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
29224         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
29225         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
29226         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
29227         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
29228         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
29229         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
29230         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
29231         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
29232         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
29233         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
29234         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
29235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
29236         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
29237         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
29238         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
29239
29240 2012-07-25  Florian Weimer  <fweimer@redhat.com>
29241
29242         * Versions.def: Add GLIBC_2.17.
29243         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
29244         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
29245         Introduce __libc_secure_getenv.
29246         * stdlib/Versions (2.17): Add secure_getenv
29247         (GLIBC_PRIVATE): Add __libc_secure_getenv.
29248         * stdlib/secure-getenv.c: Rename __secure_getenv to
29249         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
29250         symbol __secure_getenv for GLIBC_2.0.
29251         * stdlib/tst-secure-getenv.c: New.
29252         * stdlib/Makefile (tests): Add testcase.
29253         * manual/startup.texi (Environment Access): Document
29254         secure_getenv.
29255         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
29256         __libc_secure_getenv.
29257         * inet/ruserpass.c (ruserpass): Likewise.
29258         * malloc/mtrace.c (mtrace): Likewise.
29259         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
29260         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
29261         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
29262         * sysdeps/posix/tempname.c: Likewise.  Evaluate
29263         HAVE_SECURE_GETENV.
29264         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
29265         __secure_getenv to __libc_secure_getenv.
29266         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
29267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
29268         Likewise.
29269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
29270         Likewise.
29271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
29272         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
29273         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
29274         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
29275         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
29276         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
29277         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
29278
29279 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
29280
29281         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
29282         (struct La_i86_retval): Likewise.
29283         (struct La_x86_64_regs): Likewise.
29284         (struct La_x86_64_retval): Likewise.
29285         (struct La_x32_regs): Likewise.
29286         (struct La_x32_retval): Likewise.
29287         (struct La_ppc32_regs): Likewise.
29288         (struct La_ppc32_retval): Likewise.
29289         (struct La_ppc64_regs): Likewise.
29290         (struct La_ppc64_retval): Likewise.
29291         (struct La_sh_regs): Likewise.
29292         (struct La_sh_retval): Likewise.
29293         (struct La_s390_32_regs): Likewise.
29294         (struct La_s390_32_retval): Likewise.
29295         (struct La_s390_64_regs): Likewise.
29296         (struct La_s390_64_retval): Likewise.
29297         (struct La_sparc32_regs): Likewise.
29298         (struct La_sparc32_retval): Likewise.
29299         (struct La_sparc64_regs): Likewise.
29300         (struct La_sparc64_retval): Likewise.
29301         (struct audit_ifaces): Remove architecture-specific pltenter and
29302         pltexit members.
29303         * sysdeps/i386/ldsodefs.h: New file.
29304         * sysdeps/powerpc/ldsodefs.h: Likewise.
29305         * sysdeps/s390/ldsodefs.h: Likewise.
29306         * sysdeps/sh/ldsodefs.h: Likewise.
29307         * sysdeps/sparc/ldsodefs.h: Likewise.
29308         * sysdeps/x86_64/ldsodefs.h: Likewise.
29309
29310 2012-07-25  Marek Polacek  <polacek@redhat.com>
29311
29312         [BZ #6808]
29313         * math/libm-test.inc (yn_test): Add another test.
29314         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
29315         to ERANGE when the result is +-Inf.
29316         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
29317         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29318         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
29319         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
29320
29321 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
29322
29323         * conform/data/time.h-data (NULL): Use macro-constant.  Require
29324         equal to 0.
29325         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
29326         clock_t.
29327         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
29328
29329 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
29330
29331         * configure.in <sysdeps resolving>: Correct printing
29332         Implies_before.
29333         * configure: Regenerate.
29334
29335 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
29336
29337         * math/w_ilogb.c: Include <limits.h>.
29338         * math/w_ilogbl.c: Likewise.
29339
29340 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29341
29342         * manual/lang.texi (__va_copy): Document primarily as ISO C99
29343         va_copy.  Document allowing for unavailable va_copy only as
29344         pre-C99 compatibility.
29345         * manual/string.texi (Copying and Concatenation): Use va_copy
29346         instead of __va_copy in concat example.
29347
29348 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
29349
29350         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
29351         (__sendto): Use create_address_port.  Initialize APORT and deallocate
29352         it if not null.
29353
29354         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
29355         with O_NOLINK passed to __file_name_lookup.
29356
29357         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
29358         with O_NOLINK passed to __file_name_lookup.
29359
29360         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
29361         negative N or less than NGIDS.
29362
29363         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
29364         type to string_t.  Set ERANGE as errno and return it if NAME is not big
29365         enough.  Use memcpy instead of strncpy.
29366
29367 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
29368
29369         * elf/Makefile (check-data): Remove.
29370         (localplt.data): New vpath directive.
29371         ($(objpfx)check-localplt.out): Use localplt.data from vpath
29372         instead of $(check-data).
29373         * scripts/data/localplt-generic.data: Move to ...
29374         * sysdeps/generic/localplt.data: ... here.
29375         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
29376         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
29377         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
29378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
29379         ... here.
29380         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
29381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
29382         ... here.
29383         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
29384         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
29385         ... here.
29386         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
29387         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
29388         ... here.
29389         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
29390         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
29391         ... here.
29392         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
29393         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
29394         ... here.
29395
29396 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29397
29398         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
29399         PPC32 and PPC64 files.
29400         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
29401         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
29402
29403 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29404
29405         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
29406         __makecontext_ret to ...
29407         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
29408         ... here and call exit if uc_link is NULL.  New file.
29409         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
29410         __makecontext_ret.S.
29411         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
29412         __makecontext_ret to ...
29413         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
29414         ... here and call exit if uc_link is NULL.  New file.
29415         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
29416         __makecontext_ret.S.
29417
29418 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29419
29420         * elf/elf.h (R_390_IRELATIVE): New definition.
29421         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
29422         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
29423         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
29424         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
29425         (elf_machine_lazy_rel): Likewise.
29426         * sysdeps/s390/dl-irel.h: New file.
29427         * sysdeps/s390/s390-64/memcpy.S: New asm code.
29428         * sysdeps/s390/s390-64/memset.S: New asm code.
29429         * sysdeps/s390/s390-64/memcmp.S: New asm code.
29430         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
29431         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
29432         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
29433         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
29434         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
29435         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
29436         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
29437         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
29438         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
29439         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
29440         * sysdeps/s390/s390-32/memcpy.S: New asm code.
29441         * sysdeps/s390/s390-32/memset.S: New asm code.
29442         * sysdeps/s390/s390-32/memcmp.S: New asm code.
29443
29444 2012-07-17  Marek Polacek  <polacek@redhat.com>
29445
29446         [BZ #14349]
29447         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
29448         * sysdeps/s390/s390-64/configure.in: Likewise.
29449         * sysdeps/sparc/configure.in: Likewise.
29450         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
29451         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
29452         * sysdeps/i386/configure.in: Likewise.
29453         * sysdeps/x86_64/configure.in: Likewise.
29454         * sysdeps/sh/configure.in: Likewise.
29455         * sysdeps/s390/s390-32/configure: Regenerated.
29456         * sysdeps/s390/s390-64/configure: Likewise.
29457         * sysdeps/x86_64/configure: Likewise.
29458         * sysdeps/sh/configure: Likewise.
29459         * sysdeps/powerpc/powerpc64/configure: Likewise.
29460         * sysdeps/powerpc/powerpc32/configure: Likewise.
29461         * sysdeps/sparc/configure: Likwise.
29462         * sysdeps/i386/configure: Likewise.
29463
29464         * elf/dl-open.c: Comment fixes.
29465
29466 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
29467
29468         * Makefile [CXX] (check-data): Remove.
29469         [CXX] (c++-types.data): New vpath directive.
29470         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
29471         vpath.  Do not allow for C++ type data being missing.
29472         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
29473         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
29474         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
29475         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
29476         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
29477         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
29478         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
29479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
29480         ... here.
29481         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
29482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
29483         ... here.
29484         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
29485         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
29486         ... here.
29487         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
29488         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
29489         ... here.
29490         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
29491         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
29492         ... here.
29493         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
29494         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
29495         ... here.
29496         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
29497         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
29498         ... here.
29499         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
29500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
29501
29502         * elf/tls-macros.h (TLS_LE): Move architecture-specific
29503         definitions to architecture-specific files.
29504         (TLS_IE): Likewise.
29505         (TLS_LD): Likewise.
29506         (TLS_GD): Likewise.
29507         * sysdeps/i386/tls-macros.h: New file.
29508         * sysdeps/powerpc/tls-macros.h: Likewise.
29509         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
29510         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
29511         * sysdeps/sh/tls-macros.h: Likewise.
29512         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
29513         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
29514         * sysdeps/x86_64/tls-macros.h: Likewise.
29515
29516 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29517
29518         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
29519         zero value for regular exit case.
29520
29521         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
29522         (__start_context): Preserve zero value for regular exit case.
29523
29524 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
29525             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29526
29527         * manual/setjmp.texi (setcontext): Clarify normal process
29528         termination when uc_link is the null pointer.
29529         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
29530         exit call.
29531
29532 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
29533
29534         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
29535         preprocessor.  Test for each exception mask separately.
29536
29537 2012-07-16  Andreas Jaeger  <aj@suse.de>
29538
29539         * po/ru.po: Update from translation team.
29540
29541 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
29542
29543         * conform/data/string.h-data (NULL): Use macro-constant.  Require
29544         equal to 0.
29545         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
29546         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
29547         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
29548         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
29549         [ISO || ISO99 || ISO11] (*_t): Do not allow.
29550
29551 2012-07-13  Andreas Jaeger  <aj@suse.de>
29552
29553         * po/fr.po: Update from translation team.
29554
29555 2012-07-12  Marek Polacek  <polacek@redhat.com>
29556
29557         [BZ #14173]
29558         * math/libm-test.inc (yn_test): Add test for BZ #14173.
29559         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
29560         loop condition.
29561
29562 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
29563
29564         [BZ #13717]
29565         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
29566         Change to 2.4.1 where previously 2.4.0.
29567         * sysdeps/unix/sysv/linux/configure: Regenerated.
29568         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
29569         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
29570         version.
29571         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
29572         (__ASSUME_AT_CLKTCK): Remove.
29573         (__ASSUME_AT_PAGESIZE): Likewise.
29574         (__ASSUME_AT_XID): Likewise.
29575         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
29576         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
29577         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
29578         unconditionally.
29579         (HAVE_AUX_PAGESIZE): Likewise.
29580         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
29581         [__ASSUME_AT_CLKTCK]: Make code unconditional.
29582         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
29583
29584 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
29585
29586         [BZ #14307]
29587         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
29588         the temporary buffer used to invoke __gethostbyname2_r,
29589         __gethostbyaddr_r and gethostbyname4_r to make room for struct
29590         host_data / struct gaih_addrtuple.
29591         * resolv/nss_dns/dns-host.c (global scope): Move definition of
29592         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
29593         header file nss/nsswitch.h.
29594         * nss/nsswitch.h (global scope): Add definition of implementation
29595         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
29596         resolv/nss_dns/dns-host.c).
29597
29598 2012-07-11  Andreas Jaeger  <aj@suse.de>
29599
29600         * po/fr.po: Update from translation team.
29601
29602         * po/sv.po: Update from translation team
29603         * po/fr.po: Another update from translation team.
29604
29605 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29606
29607         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
29608         for subnormals or multiply small sinh result by itself.
29609         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
29610         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
29611
29612 2012-07-11  David S. Miller  <davem@davemloft.net>
29613
29614         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29615
29616 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
29617
29618         [BZ #14347]
29619         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
29620         (INTERNAL_MARK): Shift it here.
29621
29622 2012-07-10  Marek Polacek  <polacek@redhat.com>
29623
29624         [BZ #14151]
29625         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
29626         libc_cv_asm_global_directive with .globl.
29627         * configure: Regenerated.
29628         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
29629         with .globl.
29630         * sysdeps/i386/configure: Regenerated.
29631         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
29632         with .globl.
29633         * sysdeps/x86_64/configure: Regenerated.
29634         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
29635         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
29636         * elf/tst-unique2mod2.c: Likewise.
29637         * elf/tst-unique2mod1.c: Likewise.
29638         * elf/tst-unique1mod2.c: Likewise.
29639         * elf/tst-unique1mod1.c: Likewise.
29640         * sysdeps/s390/s390-32/sysdep.h: Likewise.
29641         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
29642         * sysdeps/s390/s390-64/sysdep.h: Likewise.
29643         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
29644         * sysdeps/mach/sysdep.h: Likewise.
29645         * sysdeps/i386/sysdep.h: Likewise.
29646         * sysdeps/i386/i386-mcount.S: Likewise.
29647         * sysdeps/x86_64/_mcount.S: Likewise.
29648         * sysdeps/x86_64/sysdep.h: Likewise.
29649         * sysdeps/sh/_mcount.S: Likewise.
29650         * sysdeps/sh/sysdep.h: Likewise.
29651         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
29652         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
29653         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
29654         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
29655         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
29656         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
29657         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
29658         * locale/localeinfo.h: Likewise.
29659         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
29660         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
29661
29662 2012-07-09  Roland McGrath  <roland@hack.frob.com>
29663
29664         [BZ #14336]
29665         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
29666         system".
29667         * manual/message.texi (The Uniforum approach): Likewise.
29668         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
29669         (glibc iconv Implementation): Likewise.
29670
29671 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
29672
29673         [BZ #14337]
29674         * math/s_clog.c (__clog): Avoid scaling a value down where that
29675         could result in underflow.
29676         * math/s_clog10.c (__clog10): Likewise.
29677         * math/s_clog10f.c (__clog10f): Likewise.
29678         * math/s_clog10l.c (__clog10l): Likewise.
29679         * math/s_clogf.c (__clogf): Likewise.
29680         * math/s_clogl.c (__clogl): Likewise.
29681         * math/libm-test.inc (clog_test): Add more tests.
29682         (clog10_test): Likewise.
29683         * sysdeps/i386/fpu/libm-test-ulps: Update.
29684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29685
29686 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
29687
29688         [BZ #14283]
29689         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
29690         by 7 not 8 to examine high bit of fractional part.
29691
29692         [BZ #14042]
29693         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
29694         for call to __mcount_internal.
29695         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
29696         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
29697         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
29698
29699 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
29700
29701         [BZ #14154]
29702         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
29703         approximation for values within 0x1p-13f of an odd multiple of
29704         pi/4.
29705         * math/libm-test.inc (tan_test): Do not allow spurious underflow
29706         exception.  Add more tests.
29707         * sysdeps/i386/fpu/libm-test-ulps: Update.
29708
29709         [BZ #6778]
29710         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
29711         inputs and return -1 for them.  Do not check for +Inf in case not
29712         reachable for +Inf.
29713         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
29714         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
29715         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29716         and return -1 for them.  Do not check for +Inf in case not
29717         reachable for +Inf.
29718         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
29719         define.
29720         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
29721         and return -1 for them.  Do not check for +Inf in case not
29722         reachable for +Inf.
29723         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
29724         spurious underflow.
29725         * sysdeps/i386/fpu/libm-test-ulps: Update.
29726         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29727
29728 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
29729
29730         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
29731
29732 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
29733
29734         [BZ #14157]
29735         [BZ #14331]
29736         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
29737         could result in spurious underflow.  Scale down values above
29738         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
29739         * math/s_csqrtf.c (__csqrtf): Likewise.
29740         * math/s_csqrtl.c (__csqrtl): Likewise.
29741         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
29742         spurious underflow.
29743         * sysdeps/i386/fpu/libm-test-ulps: Update.
29744         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29745
29746 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
29747
29748         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
29749         xopen-msg.sed.
29750         * catgets/xopen-msg.awk: New file.
29751         * catgets/xopen-msg.sed: Removed.
29752
29753         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
29754         po2text.sed.
29755         * intl/po2test.awk: New file.
29756         * intl/po2test.sed: Removed.
29757
29758 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
29759
29760         [BZ #14328]
29761         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
29762         or multiply small sinh result by itself.
29763         * math/s_ctanf.c (__ctanf): Likewise.
29764         * math/s_ctanh.c (__ctanh): Likewise.
29765         * math/s_ctanhf.c (__ctanhf): Likewise.
29766         * math/s_ctanhl.c (__ctanhl): Likewise.
29767         * math/s_ctanl.c (__ctanl): Likewise.
29768         * math/libm-test.inc (ctan_test_tonearest): New function.
29769         (ctan_test_towardzero): Likewise.
29770         (ctan_test_downward): Likewise.
29771         (ctan_test_upward): Likewise.
29772         (ctanh_test_tonearest): Likewise.
29773         (ctanh_test_towardzero): Likewise.
29774         (ctanh_test_downward): Likewise.
29775         (ctanh_test_upward): Likewise.
29776         (main): Call these new functions.
29777         * sysdeps/i386/fpu/libm-test-ulps: Update.
29778         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29779
29780 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
29781
29782         * .gitignore: Delete /ports entry.
29783
29784 2012-07-03  Andreas Jaeger  <aj@suse.de>
29785
29786         * po/bg.po: Update from translation team.
29787         * po/cs.po: Likewise.
29788         * po/de.po: Likewise.
29789         * po/hr.po: Likewise.
29790         * po/nl.pl: Likewise.
29791         * po/pl.po: Likewise.
29792         * po/vi.po: Likewise.
29793
29794 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
29795
29796         * Makeconfig [!+link] (+link-before-libc): New variable.
29797         [!+link] (+link-after-libc): Likewise.
29798         [!+link] (+link-tests): Likewise.
29799         [!+link] (+link): Define in terms of $(+link-before-libc) and
29800         $(+link-after-libc).
29801         [!+link-static] (+link-static-before-libc): New variable.
29802         [!+link-static] (+link-static-after-libc): Likewise.
29803         [!+link-static] (+link-static-tests): Likewise.
29804         [!+link-static] (+link-static): Define in terms of
29805         $(+link-static-before-libc) and $(+link-static-after-libc).
29806         [build-shared] (link-libc-before-gnulib): New variable.
29807         [build-shared] (link-libc-tests): Likewise.
29808         [build-shared] (link-libc): Define in terms of
29809         $(link-libc-before-gnulib).
29810         [!build-shared] (link-libc-tests): New variable.
29811         (link-libc-static-tests): New variable.
29812         [!gnulib] (gnulib-arch): New variable.
29813         [!gnulib] (gnulib-tests): Likewise.
29814         [!gnulib] (static-gnulib-arch): Likewise.
29815         [!gnulib] (static-gnulib-tests): Likewise.
29816         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
29817         Define with "=" instead of ":=".
29818         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
29819         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
29820         * Rules (binaries-all-notests): New variable.
29821         (binaries-all-tests): Likewise.
29822         (binaries-static-notests): Likewise.
29823         (binaries-static-tests): Likewise.
29824         (binaries-all): Define using $(binaries-all-notests) and
29825         $(binaries-all-tests).
29826         (binaries-static): Define using $(binaries-static-notests) and
29827         $(binaries-static-tests).
29828         (binaries-shared-tests): New variable.
29829         (binaries-shared-notests): Likewise.
29830         (binaries-shared): Remove variable.
29831         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
29832         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
29833         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
29834         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
29835         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
29836         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
29837         * elf/Makefile (sln-modules): New variable.
29838         (extra-objs): Add $(sln-modules:=.o).
29839         (ldconfig-modules): Add static-stubs.
29840         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
29841         * elf/static-stubs.c: New file.
29842
29843         [BZ #14283]
29844         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
29845         by 7 not 8 to examine high bit of fractional part.  Use volatile
29846         variables when splitting into final array of floats if
29847         __FLT_EVAL_METHOD__ != 0.
29848         * math/libm-test.inc (cos_test): Add another test.
29849         (sin_test): Likewise.
29850         * sysdeps/i386/fpu/libm-test-ulps: Update.
29851
29852         [BZ #14273]
29853         * math/libm-test.inc (cosh_test): Add more tests.
29854
29855         * version.h (RELEASE): Set to "development".
29856         (VERSION): Set to "2.16.90".
29857
29858 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
29859
29860         * NEWS: Update copyright. Remove last-updated date.
29861         Mention math library bug fixes and timezone data changes.
29862         * README: Mention GNU/Hurd, x32, and HPPA support status.
29863
29864 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
29865
29866         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
29867
29868 2012-06-27  Andreas Jaeger  <aj@suse.de>
29869
29870         * manual/contrib.texi (Contributors): Add Samuel Thibault.
29871
29872 2012-06-25  Andreas Jaeger  <aj@suse.de>
29873
29874         * sysdeps/s390/fpu/libm-test-ulps: Update.
29875
29876 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
29877             Thomas Schwinge  <thomas@codesourcery.com>
29878
29879         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
29880         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
29881         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
29882         fanotify_mark.
29883
29884 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
29885
29886         * sysdeps/mach/start.c: Remove file.
29887         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
29888         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
29889         * sysdeps/sh/init-first.c: Likewise.
29890
29891         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
29892         registers for frame unwinding purposes, add CFI directives.
29893         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
29894         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
29895         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
29896         Likewise.
29897
29898         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
29899         __fortify_fail returning.
29900         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
29901
29902         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
29903         sysdeps/sh/____longjmp_chk.S.
29904         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
29905         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
29906         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
29907         (gen-as-const-headers): Append sigaltstack-offsets.sym.
29908
29909         * sysdeps/sh/abort-instr.h: New file.
29910         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
29911         process in case exit returns.
29912
29913         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
29914         initialize the GOT register before use.
29915
29916         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
29917         calculation of ARGC > 4.
29918
29919         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
29920         meaningful names to some local labels.
29921
29922 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
29923             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
29924
29925         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
29926         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
29927         (__arch_compare_and_exchange_val_16_acq): Likewise.
29928         (__arch_compare_and_exchange_val_32_acq): Likewise.
29929         (atomic_exchange_and_add): Fix gUSA sequence.
29930         (atomic_add): Likewise.
29931         (atomic_add_negative): Likewise.
29932         (atomic_add_zero): Likewise.
29933         (atomic_bit_test_set): Likewise.
29934
29935 2012-06-22  Andreas Schwab  <schwab@redhat.com>
29936
29937         [BZ #13579]
29938         * include/link.h (struct link_map): Add l_free_initfini.
29939         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
29940         l_initfini.
29941         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
29942         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
29943         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
29944         set.
29945
29946 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
29947
29948         * configure.in: Use AC_LANG_SOURCE.
29949         * configure: Regenerate.
29950
29951 2012-06-22  Roland McGrath  <roland@hack.frob.com>
29952
29953         * configure.in (libc_cv_localstatedir): New substituted variable.
29954         * configure: Regenerated.
29955         * config.make.in (localstatedir): New variable, substituted from
29956         libc_cv_localstatedir.
29957         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
29958         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
29959         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
29960         * sysdeps/gnu/configure: Regenerated.
29961
29962 2012-06-21  Jeff Law  <law@redhat.com>
29963
29964         [BZ #14277]
29965         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
29966         free.  Simplify list management for _LIBC case.
29967
29968 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
29969
29970         [BZ #14273]
29971         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
29972         Clear sign bit of 64-bit integer value before comparing against
29973         overflow value.
29974
29975         * sysdeps/mach/configure: Regenerated.
29976
29977 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
29978
29979         [BZ #14278]
29980         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
29981
29982 2012-06-21  Jeff Law  <law@redhat.com>
29983
29984         [BZ #13882]
29985         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
29986         uint16_t for elements in the "seen" array to avoid char overflows.
29987         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29988         * elf/dl-open.c (dl_open_worker): Likewise.
29989
29990 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
29991
29992         * scripts/list-sources.sh: Scan PORTS for translations.
29993         * po/libc.pot: Regenerated.
29994
29995 2012-06-21  Andreas Jaeger  <aj@suse.de>
29996
29997         [BZ #12194]
29998         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
29999         warning.
30000         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
30001         * bits/byteswap-16.h (__bswap_16): Likewise.
30002         * bits/byteswap.h (__bswap_constant_16): Likewise.
30003
30004 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
30005
30006         [BZ #14117]
30007         * sysdeps/i386/fpu_control.h: Removed.
30008         * sysdeps/x86_64/fpu_control.h: Moved to ...
30009         * sysdeps/x86/fpu_control.h: Here.
30010
30011         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
30012         (_FPU_SETCW): Likewise.
30013
30014 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
30015
30016         [BZ #14117]
30017         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
30018         * sysdeps/x86/fpu/bits/mathinline.h: This.
30019         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
30020
30021         [BZ #14050]
30022         [BZ #14117]
30023         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
30024         functions if __x86_64__ is defined.
30025
30026 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
30027
30028         * string/endian.h: Add !__ASSEMBLER__ condition for including
30029         conversion interfaces.
30030
30031 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
30032
30033         [BZ #14241]
30034         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
30035         of ABS(x) in calculating zero to negative powers other than odd
30036         integers.
30037         * math/libm-test.inc (pow_test): Add more tests.
30038
30039 2012-06-15  Andreas Jaeger  <aj@suse.de>
30040
30041         * manual/contrib.texi (Contributors): Update entry of Liubov
30042         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
30043         Machado Filho.
30044
30045 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
30046
30047         * string/string.h: Add __wur to GNU version of strerror_r.
30048
30049 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
30050
30051         [BZ #14229]
30052         * string/Makefile (tests): Add tst-strtok_r.
30053         * string/tst-strtok_r.c: New file.
30054         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
30055         RAX_LP/RDX_LP on SAVE_PTR.
30056
30057 2012-06-14  Roland McGrath  <roland@hack.frob.com>
30058
30059         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
30060
30061 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
30062
30063         * libm_test.inc (csqrt_test): Allow more spurious underflow
30064         exceptions.
30065         (j0_test): Likewise.
30066         (j1_test): Likewise.
30067         (y0_test): Likewise.
30068         (y1_test): Likewise.
30069
30070 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
30071
30072         * po/Makefile (libc.pot): Use UTF-8 charset.
30073
30074 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
30075
30076         [BZ #14210]
30077         Suppress sign-conversion warning from FD_SET.
30078         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
30079         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
30080         not unsigned long int.
30081         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
30082
30083 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
30084
30085         [BZ #14050]
30086         [BZ #14117]
30087         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
30088         __extern_always_inline instead of __extern_inline.
30089         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
30090         (__signbit): Likewise.
30091         (__signbitl): Support C++ namespace.
30092         (lrintf): New inline function.
30093         (lrint): Likewise.
30094         (llrintf): Likewise.
30095         (llrint): Likewise.
30096         (fmaxf): Likewise.
30097         (fmax): Likewise.
30098         (fminf): Likewise.
30099         (fmin): Likewise.
30100         (rint): Likewise.
30101         (rintf): Likewise.
30102         (ceil): Likewise.
30103         (ceilf): Likewise.
30104         (floor): Likewise.
30105         (floorf): Likewise.
30106         (nearbyint): Likewise.
30107         (nearbyintf): Likewise.
30108
30109 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
30110
30111         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
30112         non-default versions.
30113
30114 2012-06-11  Roland McGrath  <roland@hack.frob.com>
30115
30116         [BZ #14218]
30117         * manual/argp.texi (Argp): Reword argp_parse description slightly.
30118
30119 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
30120
30121         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
30122         (FE_UPWARD, FE_DOWNWARD): Don't define.
30123         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
30124         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30125
30126         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
30127         reading it.
30128         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30129         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30130
30131 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30132
30133         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
30134         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
30135         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
30136         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
30137
30138 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
30139
30140         [BZ #14117]
30141         * sysdeps/i386/fpu/bits/fenv.h: Removed.
30142         * sysdeps/i386/fpu/Implies: New file.
30143         * sysdeps/x86_64/fpu/Implies: Likewise.
30144         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
30145         * sysdeps/x86/fpu/bits/fenv.h: This.
30146
30147         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
30148         __SSE_MATH__.
30149
30150 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30151
30152         [BZ #14134]
30153         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
30154         character 0xffff that matches the last element of the
30155         conversion table.
30156
30157 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30158
30159         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
30160         fmodl commit.
30161
30162 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30163
30164         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
30165         values higher than 25.6283.
30166
30167 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30168
30169         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
30170         subnormal exponent extraction and add some __builtin_expect.
30171         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
30172         Fix for subnormal mantissa calculation.
30173
30174 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
30175
30176         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
30177         cpu2 is -1 and errno is not ENOSYS.
30178
30179 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
30180
30181         [BZ #14117]
30182         * sysdeps/i386/i486/bits/string.h: Renamed to ...
30183         * sysdeps/x86/bits/string.h: This.
30184         * sysdeps/x86_64/bits/string.h: Removed.
30185
30186         * sysdeps/i386/i486/bits/string.h: Define inline functions only
30187         if not compiling for x86-64, but compiling for >= i486.
30188
30189         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
30190         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
30191
30192         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
30193         New macro from Linux kernel 3.4.0.
30194         (FP_XSTATE_MAGIC2): Likewise.
30195         (FP_XSTATE_MAGIC2_SIZE): Likewise.
30196         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
30197         (struct _fpx_sw_bytes): New struct.
30198         (struct _xsave_hdr): Likewise.
30199         (struct _ymmh_state): Likewise.
30200         (struct _xstate): Likewise.
30201
30202         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
30203         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
30204         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
30205         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
30206         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
30207         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
30208
30209         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
30210         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
30211         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
30212         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
30213         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
30214         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
30215
30216 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
30217
30218         [BZ #13743]
30219         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
30220         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
30221         (sysdep_headers): Include sys/platform/ppc.h.
30222         * sysdeps/powerpc/test-gettimebase.c: Test for
30223         __ppc_get_timebase() to catch future ISA opcode/insn changes.
30224         * manual/Makefile (appendices): Include platform.texi.
30225         * manual/contrib.texi (Contributors): Update @node pointers.
30226         * manual/maint.texi (Maintenance): Likewise.
30227         (Platform): New node.
30228         * manual/platform.texi: New file.  Document the new features.
30229
30230 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30231             Jakub Jelinek  <jakub@redhat.com>
30232
30233         [BZ #14188]
30234         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
30235         where __builtin_expect is unavailable.
30236
30237 2012-06-03  David S. Miller  <davem@davemloft.net>
30238
30239         * stdlib/longlong.h: Updated from GCC.
30240
30241 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
30242
30243         [BZ #14042]
30244         * sysdeps/powerpc/powerpc32/mcount.c: New file.
30245         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
30246         __mcount_internal.
30247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
30248         (GLIBC_2.16): Likewise.
30249
30250 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30251
30252         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
30253
30254 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30255
30256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
30257         (default-abi): New variable.
30258         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
30259         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
30260         variable.
30261         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
30262         Likewise.
30263         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
30264         Likewise.
30265         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
30266         Likewise.
30267
30268         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
30269         definition.  Document in comment.
30270
30271 2012-06-01  David S. Miller  <davem@davemloft.net>
30272
30273         * stdlib/longlong.h: Updated from GCC.
30274
30275 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30276
30277         [BZ #14117]
30278         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
30279         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
30280         sys/debugreg.h sys/io.h here.
30281         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
30282         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
30283         sys/io.h.
30284         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
30285         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
30286         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
30287         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
30288         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
30289         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
30290
30291         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
30292         Define only if __x86_64__ is defined.
30293
30294 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
30295
30296         [BZ #14048]
30297         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
30298         Use int64_t for variable i.
30299         * math/libm-test.inc (fmod_test): Add more tests.
30300
30301         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
30302         z computation is not scheduled after fetestexcept.
30303         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
30304         Use math_force_eval instead of asm to ensure calculation scheduled
30305         before exception test.
30306         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
30307         Ensure a1 + u.d computation is not scheduled after fetestexcept.
30308
30309 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
30310
30311         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
30312         computation is not scheduled after fetestexcept.
30313
30314 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
30315
30316         [BZ #14117]
30317         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
30318         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
30319
30320 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30321
30322         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
30323         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
30324
30325 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30326
30327         [BZ #14117]
30328         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
30329         <bits/wordsize.h>.
30330         (__WCHAR_MIN): Support __WORDSIZE == 64.
30331         (__WCHAR_MAX): Likewise.
30332
30333         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
30334         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
30335
30336         [BZ #14183]
30337         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
30338         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
30339
30340         [BZ #14117]
30341         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
30342         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
30343
30344         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
30345         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
30346
30347         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
30348         Defined to 1 if __x86_64__ isn't defined.
30349         (_STAT_VER_LINUX_OLD): New.
30350         (st_atime): Remove duplicate.
30351         (st_mtime): Likewise.
30352         (st_ctime): Likewise.
30353
30354 2012-05-31  David S. Miller  <davem@davemloft.net>
30355
30356         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
30357         entries.
30358
30359 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
30360
30361         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
30362         gen-libm-test.pl.
30363
30364         [BZ #14132]
30365         * elf/dl-reloc.c: Include <_itoa.h>.
30366         (_dl_reloc_bad_type): Remove use of INTUSE.
30367         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
30368         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
30369         * stdio-common/psiginfo.c (psiginfo): Likewise.
30370         * stdio-common/psignal.c (psignal): Likewise.
30371         * string/strsignal.c (strsignal): Likewise.
30372         * include/signal.h (_sys_siglist): Declare hidden proto.
30373         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
30374         INTVARDEF with libc_hidden_data_def.
30375         * stdio-common/itoa-udigits.c: Likewise.
30376         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
30377         (_itoa_lower_digits_internal): Remove declaration.
30378         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
30379         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
30380         (_sys_sigabbrev_internal): Remove aliases.
30381         (_sys_siglist): Define hidden alias.
30382
30383 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
30384
30385         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30386         bits/sysctl.h.
30387
30388 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
30389
30390         [BZ #14117]
30391         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
30392         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
30393
30394         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
30395         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
30396         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
30397         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
30398         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
30399         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
30400
30401         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
30402         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
30403         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
30404
30405         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
30406         with __addr.
30407         (insw): Likewise.
30408         (insl): Likewise.
30409         (outsb): Likewise.
30410         (outsw): Likewise.
30411         (outsl): Likewise.
30412
30413         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
30414         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
30415         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
30416
30417         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
30418         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
30419         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
30420         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
30421         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
30422         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
30423
30424         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
30425         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
30426
30427         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
30428         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
30429
30430         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
30431         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
30432         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
30433
30434         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
30435         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
30436         to ...
30437         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
30438
30439         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
30440         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
30441         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
30442
30443         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
30444         for x86-64.
30445         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
30446
30447 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
30448
30449         * math/math.h (M_El): Use two more decimal places.
30450         (M_LOG2El): Likewise.
30451         (M_LOG10El): Likewise.
30452         (M_LN2l): Likewise.
30453         (M_LN10l): Likewise.
30454         (M_PIl): Likewise.
30455         (M_PI_2l): Likewise.
30456         (M_PI_4l): Likewise.
30457         (M_1_PIl): Likewise.
30458         (M_2_PIl): Likewise.
30459         (M_2_SQRTPIl): Likewise.
30460         (M_SQRT2l): Likewise.
30461         (M_SQRT1_2l): Likewise.
30462
30463 2012-05-31  David S. Miller  <davem@davemloft.net>
30464
30465         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
30466         values between float registers.
30467         * sysdeps/sparc/sparc64/memset.S: Likewise.
30468         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
30469
30470 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
30471
30472         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
30473         -D_FORTIFY_SOURCE=1.
30474         (CPPFLAGS-tst-longjmp_chk.c): Define.
30475         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
30476         (CPPFLAGS-tst-longjmp_chk2.c): Define.
30477         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
30478         CFLAGS-tst-wchar-h.c.
30479
30480 2012-05-31  Marek Polacek  <polacek@redhat.com>
30481
30482         [BZ #14132]
30483         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
30484         __endmntent_internal): Remove declaration.
30485         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
30486         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
30487         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
30488
30489 2012-05-30  David S. Miller  <davem@davemloft.net>
30490
30491         * sysdeps/sparc/sparc32/soft-fp/q_util.c
30492         (___Q_simulate_exceptions): Use real FP ops rather than writing
30493         into the %fsr.
30494         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
30495         Likewise.
30496
30497 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30498
30499         [BZ #14117]
30500         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
30501         * sysdeps/x86/bits/xtitypes.h: This.
30502
30503         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
30504         * sysdeps/x86/bits/wordsize.h: This.
30505
30506         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
30507         * sysdeps/x86/bits/huge_vall.h: This.
30508
30509         * sysdeps/i386/bits/select.h: Removed.
30510         * sysdeps/x86_64/bits/select.h: Renamed to ...
30511         * sysdeps/x86/bits/select.h: This.
30512
30513         * sysdeps/i386/bits/setjmp.h: Removed.
30514         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
30515         * sysdeps/x86/bits/setjmp.h: This.
30516
30517         * sysdeps/i386/bits/mathdef.h: Removed.
30518         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
30519         * sysdeps/x86/bits/mathdef.h: This.
30520
30521 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
30522
30523         [BZ #14132]
30524         * include/sys/socket.h (__connect_internal)
30525         (__libc_sa_len_internal): Remove declaration.
30526         (__connect, __libc_sa_len): Declare hidden_proto.
30527         (SA_LEN): Remove use of INTUSE.
30528         * socket/connect.c: Add libc_hidden_def.
30529         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
30530         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
30531         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
30532         alias.
30533         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
30534         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
30535         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
30536         of adding _internal alias.
30537
30538 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30539
30540         [BZ #14117]
30541         * sysdeps/i386/bits/link.h: Removed.
30542         * sysdeps/i386/bits/linkmap.h: Likewise.
30543         * sysdeps/x86_64/bits/link.h: Renamed to ...
30544         * sysdeps/x86/bits/link.h: This.
30545         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
30546         * sysdeps/x86/bits/linkmap.h: This.
30547
30548         * sysdeps/i386/bits/endian.h: Removed.
30549         * sysdeps/x86_64/bits/endian.h: Renamed to ...
30550         * sysdeps/x86/bits/endian.h: This.
30551
30552         * sysdeps/i386/bits/byteswap.h: Removed.
30553         * sysdeps/i386/bits/byteswap-16.h: Likewise.
30554         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
30555         * sysdeps/x86/bits/byteswap.h: This.
30556         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
30557         * sysdeps/x86/bits/byteswap-16.h: This.
30558         * sysdeps/i386/Implies: Add x86.
30559         * sysdeps/x86_64/Implies: Likewise.
30560
30561 2012-05-30  David S. Miller  <davem@davemloft.net>
30562
30563         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
30564         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
30565         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
30566         (FP_TRAPPING_EXCEPTIONS): Define.
30567         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
30568         (FP_TRAPPING_EXCEPTIONS): Define.
30569         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
30570         subnormals only when inexact has been signalled or underflow
30571         exceptions are enabled.
30572         (_FP_PACK_CANONICAL): Likewise.
30573
30574 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30575
30576         [BZ #14183]
30577         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
30578         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
30579
30580 2012-05-30  Richard Henderson  <rth@twiddle.net>
30581
30582         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
30583         with #ifndef NOT_IN_libc.
30584
30585         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
30586         marked to avoid plt entry.
30587
30588 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
30589
30590         [BZ #14112]
30591         * Makeconfig (default-abi): New macro.
30592         (abi-includes): Likewise.
30593         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
30594         $(abi-$(default-abi)-lib-soname) for soname if defined.
30595         ($(common-objpfx)gnu/lib-names.stmp): Generate from
30596         abi-variants.
30597         * Makefile (installed-stubs): Likewise.
30598         * include/stubs-biarch.h: Removed.
30599         * scripts/lib-names.awk: Only handle one library at a time.
30600         * scripts/soversions.awk: Remove WORDSIZE support.
30601         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
30602         entries.
30603         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
30604         Removed.
30605         (syscall-list-default-condition): Likewise.
30606         (syscall-list-default-condition): Likewise.
30607         (syscall-list-includes): Likewise.
30608         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
30609         syscall-list-* with abi-*.  Handle undefined abi-variants.
30610         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
30611         * sysdeps/unix/sysv/linux/i386/Implies: New file.
30612         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
30613         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
30614         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
30615         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
30616         Removed.
30617         (syscall-list-32-options): Likewise.
30618         (syscall-list-32-condition): Likewise.
30619         (syscall-list-64-options): Likewise.
30620         (syscall-list-64-condition): Likewise.
30621         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
30622         macro.
30623         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
30624         Renamed to ...
30625         (abi-*): This.
30626         (abi-64-ld-soname): New macro.
30627         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
30628         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
30629         Renamed to ...
30630         (abi-*): This.
30631         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
30632         * sysdeps/x86_64/x32/shlib-versions: Likewise.
30633
30634 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
30635
30636         * sysdeps/unix/sysv/linux/kernel-features.h
30637         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
30638         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
30639         include <kernel-features.h>.
30640         [!__NR_ftruncate64]: Remove conditional code.
30641         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30642         [__NR_ftruncate64]: Make code unconditional.
30643         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30644         * sysdeps/unix/sysv/linux/truncate64.c: Do not
30645         include <kernel-features.h>.
30646         [!__NR_ftruncate64]: Remove conditional code.
30647         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30648         [__NR_ftruncate64]: Make code unconditional.
30649         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
30651         include <kernel-features.h>.
30652         [!__NR_ftruncate64]: Remove conditional code.
30653         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30654         [__NR_ftruncate64]: Make code unconditional.
30655         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
30657         include <kernel-features.h>.
30658         [!__NR_ftruncate64]: Remove conditional code.
30659         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30660         [__NR_ftruncate64]: Make code unconditional.
30661         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
30662
30663         * configure.in (libc_cv_fpie): Weaken to a compile test using
30664         LIBC_TRY_CC_OPTION.
30665         * configure: Regenerated.
30666
30667 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30668
30669         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
30670         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
30671         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
30672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
30673         Refreshed.
30674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
30675         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
30676         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
30677         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
30678         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
30679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
30680         Refreshed.
30681
30682 2012-05-27  David S. Miller  <davem@davemloft.net>
30683
30684         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
30685         (___Q_zero): New.
30686         (__Q_simulate_exceptions): Return void.  Change to simulate
30687         exceptions by writing into the %fsr.
30688         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
30689         (__Qp_handle_exceptions): Likewise.
30690         (numbers): Delete.
30691         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
30692         __Qp_handle_exceptions.
30693         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
30694         __Qp_handle_exceptions.
30695         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30696         as unused and give dummy FP_RND_NEAREST initializer.
30697         (FP_INHIBIT_RESULTS): Define.
30698         (___Q_simulate_exceptions): Update declaration.
30699         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
30700         formatting.
30701         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
30702         as unused and give dummy FP_RND_NEAREST initializer.
30703         (__Qp_handle_exceptions): Update declaration.
30704         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
30705         formatting.
30706
30707 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
30708
30709         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
30710         the temporary FPU control word.
30711         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
30712         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
30713         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
30714         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
30715         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
30716         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
30717         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
30718         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
30719         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
30720         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
30721         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
30722
30723 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
30724
30725         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
30726         fields.
30727
30728 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
30729
30730         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
30731         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
30732         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
30733         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
30734         Likewise.
30735         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
30736         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
30737         Likewise.
30738
30739 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
30740
30741         * po/h.po: Update from translation team.
30742
30743 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
30744
30745         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
30746
30747         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
30748         handling of denormals.
30749         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
30750         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
30751         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
30752         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
30753         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
30754         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
30755         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
30756         Likewise.
30757
30758 2012-05-26  Marek Polacek  <polacek@redhat.com>
30759
30760         [BZ #14152]
30761         * math/libm-test.inc (fma_test): Don't always expect underflow
30762         exception.
30763
30764 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
30765
30766         [BZ #12416]
30767         * elf/tst-execstack.c: Include stackinfo.h.
30768         (do_test): Adjust test case to ensure that pthread_getattr_np
30769         behaviour remains the same after marking stack executable.
30770
30771 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
30772
30773         * sysdeps/unix/sysv/linux/kernel-features.h
30774         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
30775         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
30776         kernel-features.h.
30777         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
30778         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
30779         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
30780         kernel-features.h.
30781         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
30782         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
30783
30784 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
30785
30786         * configure.in: Define the default includes to being none.
30787         * configure: Regenerated.
30788
30789 2012-05-25  Roland McGrath  <roland@hack.frob.com>
30790
30791         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
30792         * sysdeps/x86_64/setjmp.S: Likewise.
30793         * sysdeps/i386/bsd-setjmp.S: Likewise.
30794         * sysdeps/i386/bsd-_setjmp.S: Likewise.
30795         * sysdeps/i386/setjmp.S: Likewise.
30796         * sysdeps/i386/__longjmp.S: Likewise.
30797         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
30798         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
30799
30800         * include/stap-probe.h: New file.
30801         * configure.in: Handle --enable-systemtap.
30802         * configure: Regenerated.
30803         * config.h.in (USE_STAP_PROBE): New #undef.
30804         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
30805         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
30806         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
30807
30808 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
30809
30810         [BZ #13717]
30811         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
30812         to 2.4.0 where earlier.
30813         * sysdeps/unix/sysv/linux/configure: Regenerated.
30814         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
30815         <kernel-features.h>.
30816         [__ASSUME_32BITUIDS]: Make code unconditional.
30817         [!__ASSUME_32BITUIDS]: Remove conditional code.
30818         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
30819         <kernel-features.h>.
30820         [__ASSUME_32BITUIDS]: Make code unconditional.
30821         [!__ASSUME_32BITUIDS]: Remove conditional code.
30822         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
30823         [__ASSUME_32BITUIDS]: Make code unconditional.
30824         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
30825         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
30826         <kernel-features.h>.
30827         [__ASSUME_32BITUIDS]: Make code unconditional.
30828         [!__ASSUME_32BITUIDS]: Remove conditional code.
30829         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
30830         <kernel-features.h>.
30831         [__ASSUME_32BITUIDS]: Make code unconditional.
30832         [!__ASSUME_32BITUIDS]: Remove conditional code.
30833         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
30834         <kernel-features.h>.
30835         [__ASSUME_32BITUIDS]: Make code unconditional.
30836         [!__ASSUME_32BITUIDS]: Remove conditional code.
30837         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
30838         <kernel-features.h>.
30839         [__ASSUME_32BITUIDS]: Make code unconditional.
30840         [!__ASSUME_32BITUIDS]: Remove conditional code.
30841         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
30842         <kernel-features.h>.
30843         [__ASSUME_32BITUIDS]: Make code unconditional.
30844         [!__ASSUME_32BITUIDS]: Remove conditional code.
30845         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
30846         <kernel-features.h>.
30847         [__ASSUME_32BITUIDS]: Make code unconditional.
30848         [!__ASSUME_32BITUIDS]: Remove conditional code.
30849         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
30850         <kernel-features.h>.
30851         [__ASSUME_32BITUIDS]: Make code unconditional.
30852         [!__ASSUME_32BITUIDS]: Remove conditional code.
30853         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
30854         <kernel-features.h>.
30855         [__ASSUME_32BITUIDS]: Make code unconditional.
30856         [!__ASSUME_32BITUIDS]: Remove conditional code.
30857         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
30858         <kernel-features.h>.
30859         [__ASSUME_32BITUIDS]: Make code unconditional.
30860         [!__ASSUME_32BITUIDS]: Remove conditional code.
30861         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
30862         <kernel-features.h>.
30863         [__ASSUME_32BITUIDS]: Make code unconditional.
30864         [!__ASSUME_32BITUIDS]: Remove conditional code.
30865         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
30866         <kernel-features.h>.
30867         [__NR_setresgid] (__setresgid): Do not declare.
30868         [__ASSUME_32BITUIDS]: Make code unconditional.
30869         [!__ASSUME_32BITUIDS]: Remove conditional code.
30870         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
30871         <kernel-features.h>.
30872         [__NR_setresuid] (__setresuid): Do not declare.
30873         [__ASSUME_32BITUIDS]: Make code unconditional.
30874         [!__ASSUME_32BITUIDS]: Remove conditional code.
30875         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
30876         <kernel-features.h>.
30877         [__ASSUME_32BITUIDS]: Make code unconditional.
30878         [!__ASSUME_32BITUIDS]: Remove conditional code.
30879         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
30880         <kernel-features.h>.
30881         [__ASSUME_32BITUIDS]: Make code unconditional.
30882         [!__ASSUME_32BITUIDS]: Remove conditional code.
30883         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
30884         <kernel-features.h>.
30885         [__ASSUME_32BITUIDS]: Make code unconditional.
30886         [!__ASSUME_32BITUIDS]: Remove conditional code.
30887         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
30888         <kernel-features.h>.
30889         [__ASSUME_32BITUIDS]: Make code unconditional.
30890         [!__ASSUME_32BITUIDS]: Remove conditional code.
30891         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
30892         <kernel-features.h>.
30893         [__ASSUME_32BITUIDS]: Make code unconditional.
30894         [!__ASSUME_32BITUIDS]: Remove conditional code.
30895         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
30896         <kernel-features.h>.
30897         [__ASSUME_32BITUIDS]: Make code unconditional.
30898         [!__ASSUME_32BITUIDS]: Remove conditional code.
30899         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
30900         <kernel-features.h>.
30901         [__ASSUME_32BITUIDS]: Make code unconditional.
30902         [!__ASSUME_32BITUIDS]: Remove conditional code.
30903         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
30904         <kernel-features.h>.
30905         [__ASSUME_32BITUIDS]: Make code unconditional.
30906         [!__ASSUME_32BITUIDS]: Remove conditional code.
30907         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
30908         <kernel-features.h>.
30909         [__ASSUME_32BITUIDS]: Make code unconditional.
30910         [!__ASSUME_32BITUIDS]: Remove conditional code.
30911         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
30912         <kernel-features.h>.
30913         [__ASSUME_32BITUIDS]: Make code unconditional.
30914         [!__ASSUME_32BITUIDS]: Remove conditional code.
30915         * sysdeps/unix/sysv/linux/kernel-features.h
30916         (__ASSUME_SETRESUID_SYSCALL): Remove.
30917         (__ASSUME_SETRESGID_SYSCALL): Likewise.
30918         (__ASSUME_32BITUIDS): Likewise.
30919         (__ASSUME_LDT_WORKS): Likewise.
30920         (__ASSUME_O_DIRECTORY): Likewise.
30921         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
30922         architecture but not kernel version.
30923         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
30924         (__ASSUME_MMAP2_SYSCALL): Likewise.
30925         (__ASSUME_STAT64_SYSCALL): Likewise.
30926         (__ASSUME_IPC64): Likewise.
30927         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
30928         <kernel-features.h>.
30929         [__ASSUME_32BITUIDS]: Make code unconditional.
30930         [!__ASSUME_32BITUIDS]: Remove conditional code.
30931         * sysdeps/unix/sysv/linux/opendir.c: Do not include
30932         <kernel-features.h>.
30933         [__ASSUME_O_DIRECTORY]: Make code unconditional.
30934         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
30935         132096]: Remove conditional code.
30936         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
30937         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
30938         <kernel-features.h>.
30939         [__ASSUME_32BITUIDS]: Make code unconditional.
30940         [!__ASSUME_32BITUIDS]: Remove conditional code.
30941         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
30942         <kernel-features.h>.
30943         [__ASSUME_32BITUIDS]: Make code unconditional.
30944         [!__ASSUME_32BITUIDS]: Remove conditional code.
30945         * sysdeps/unix/sysv/linux/setegid.c: Do not include
30946         <kernel-features.h>.
30947         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
30948         unconditional.
30949         (__setresgid): Do not declare.
30950         [__ASSUME_32BITUIDS]: Make code unconditional.
30951         [!__ASSUME_32BITUIDS]: Remove conditional code.
30952         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
30953         <kernel-features.h>.
30954         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
30955         unconditional.
30956         (__setresuid): Do not declare.
30957         [__ASSUME_32BITUIDS]: Make code unconditional.
30958         [!__ASSUME_32BITUIDS]: Remove conditional code.
30959         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
30960         <kernel-features.h>.
30961         [__ASSUME_32BITUIDS]: Make code unconditional.
30962         [!__ASSUME_32BITUIDS]: Remove conditional code.
30963         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
30964         <kernel-features.h>.
30965         [__ASSUME_32BITUIDS]: Make code unconditional.
30966         [!__ASSUME_32BITUIDS]: Remove conditional code.
30967
30968 2012-05-25  Richard Henderson  <rth@twiddle.net>
30969
30970         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
30971         dl_hwcap to ifunc resolver.
30972         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
30973         elf_ifunc_invoke.
30974         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
30975         dl_hwcap to ifunc resolver.
30976         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
30977
30978 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30979
30980         [BZ #14153]
30981         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
30982         for |x| <= 2**-26, not 2**-57.
30983         * math/libm-test.inc (acos_test): Do not allow spurious underflow
30984         exception.
30985
30986 2012-05-24  Jeff Law  <law@redhat.com>
30987
30988         * stdio-common/Makefile (tests): Add bug25.
30989         * stdio-common/bug25.c: New test.
30990
30991 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
30992
30993         [BZ #13576]
30994         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
30995         multiple of MALLOC_ALIGNMENT in size.
30996         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
30997
30998 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
30999
31000         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
31001         Require >= 256.
31002         (FILENAME_MAX): Use macro-int-constant.
31003         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
31004         (_IOFBF): Use macro-int-constant.
31005         (_IOLBF): Likewise.
31006         (_IONBF): Likewise.
31007         (SEEK_CUR): Likewise.
31008         (SEEK_END): Likewise.
31009         (SEEK_SET): Likewise.
31010         (TMP_MAX): Likewise.
31011         (EOF): Use macro-int-constant.  Require < 0.
31012         (NULL): Use macro-constant.  Require == 0.
31013         (stdin): Require type to be FILE *.
31014         (stdout): Likewise.
31015         (stderr): Likewise.
31016         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
31017         macro-int-constant.
31018         (EXIT_SUCCESS): Likewise.
31019         (NULL): Use macro-constant.  Require == 0.
31020         (RAND_MAX): Use macro-int-constant.
31021         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
31022         [C99-based standards] (strtof): Require function.
31023         [C99-based standards] (strtold): Likewise.
31024         [C99-based standards] (strtoll): Likewise.
31025         [C99-based standards] (strtoull): Likewise.
31026         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31027         [ISO || ISO99 || ISO11] (limits.h): Likewise.
31028         [ISO || ISO99 || ISO11] (math.h): Likewise.
31029         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
31030         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31031         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31032
31033 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
31034
31035         [BZ #14132]
31036         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
31037         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
31038         * intl/dgettext.c (DCGETTEXT): Likewise.
31039         * intl/gettext.c (DCGETTEXT): Likewise.
31040         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
31041         * posix/regex_internal.h (gettext): Likewise.
31042         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
31043         Remove declaration.
31044         * include/argz.h (__argz_count_internal)
31045         (__argz_stringify_internal): Remove declaration.
31046         (__argz_count, __argz_stringify): Declare hidden proto.
31047         * intl/dcgettext.c: Remove use of INTDEF.
31048         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
31049         * string/argz-stringify.c: Likewise.
31050         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31051         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31052         Declare hidden proto.
31053         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
31054         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
31055         Declare hidden proto.
31056         * include/stdio.h (__asprintf_internal): Don't declare.
31057         (__asprintf): Don't define as macro.  Declare hidden proto.
31058         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
31059         (__fsetlocking): Declare hidden proto.
31060         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
31061         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
31062         hidden proto.
31063         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
31064         (_IO_setlinebuf): Remove use of INTUSE.
31065         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
31066         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
31067         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
31068         Remove declaration.
31069         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
31070         (_IO_do_flush): Remove use of INTUSE.
31071         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
31072         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
31073         (_IO_adjust_column, _IO_least_wmarker)
31074         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
31075         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
31076         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
31077         (_IO_default_doallocate, _IO_wdefault_doallocate)
31078         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
31079         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
31080         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
31081         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
31082         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
31083         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
31084         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
31085         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
31086         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
31087         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
31088         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
31089         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
31090         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
31091         proto.
31092         (_IO_flush_all_internal, _IO_adjust_column_internal)
31093         (_IO_default_uflow_internal, _IO_default_finish_internal)
31094         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
31095         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
31096         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
31097         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
31098         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
31099         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
31100         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
31101         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
31102         (_IO_file_close_internal, _IO_file_close_it_internal)
31103         (_IO_file_underflow_internal, _IO_file_overflow_internal)
31104         (_IO_file_init_internal, _IO_file_attach_internal)
31105         (_IO_file_fopen_internal, _IO_file_read_internal)
31106         (_IO_file_sync_internal, _IO_file_seek_internal)
31107         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
31108         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
31109         (_IO_str_underflow_internal, _IO_str_overflow_internal)
31110         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
31111         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
31112         (_IO_list_all_internal, _IO_link_in_internal)
31113         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
31114         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
31115         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
31116         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
31117         (_IO_do_write_internal, _IO_padn_internal)
31118         (_IO_getline_info_internal, _IO_getline_internal)
31119         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
31120         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
31121         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
31122         (_IO_vfscanf_internal, _IO_vfprintf_internal)
31123         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
31124         (_IO_init_internal, _IO_un_link_internal): Don't declare.
31125         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
31126         with libc_hidden_ver, remove use of INTUSE.
31127         * libio/genops.c: Likewise.
31128         * libio/freopen.c: Likewise.
31129         * libio/freopen64.c: Likewise.
31130         * libio/iofclose.c: Likewise.
31131         * libio/iofdopen.c: Likewise.
31132         * libio/iofflush.c: Likewise.
31133         * libio/iofflush_u.c: Likewise.
31134         * libio/iofgets.c: Likewise.
31135         * libio/iofgets_u.c: Likewise.
31136         * libio/iofopen.c: Likewise.
31137         * libio/iofopncook.c: Likewise.
31138         * libio/iofread.c: Likewise.
31139         * libio/iofread_u.c: Likewise.
31140         * libio/ioftell.c: Likewise.
31141         * libio/iofwrite.c: Likewise.
31142         * libio/iogetline.c: Likewise.
31143         * libio/iogets.c: Likewise.
31144         * libio/iogetwline.c: Likewise.
31145         * libio/iopadn.c: Likewise.
31146         * libio/iopopen.c: Likewise.
31147         * libio/ioseekoff.c: Likewise.
31148         * libio/ioseekpos.c: Likewise.
31149         * libio/iosetbuffer.c: Likewise.
31150         * libio/iosetvbuf.c: Likewise.
31151         * libio/ioungetc.c: Likewise.
31152         * libio/ioungetwc.c: Likewise.
31153         * libio/iovdprintf.c: Likewise.
31154         * libio/iovsprintf.c: Likewise.
31155         * libio/iovsscanf.c: Likewise.
31156         * libio/memstream.c: Likewise.
31157         * libio/obprintf.c: Likewise.
31158         * libio/oldfileops.c: Likewise.
31159         * libio/oldiofclose.c: Likewise.
31160         * libio/oldiofdopen.c: Likewise.
31161         * libio/oldiofopen.c: Likewise.
31162         * libio/oldiopopen.c: Likewise.
31163         * libio/oldstdfiles.c: Likewise.
31164         * libio/putc.c: Likewise.
31165         * libio/setbuf.c: Likewise.
31166         * libio/setlinebuf.c: Likewise.
31167         * libio/stdfiles.c: Likewise.
31168         * libio/strops.c: Likewise.
31169         * libio/vasprintf.c: Likewise.
31170         * libio/vscanf.c: Likewise.
31171         * libio/vsnprintf.c: Likewise.
31172         * libio/vswprintf.c: Likewise.
31173         * libio/wfiledoalloc.c: Likewise.
31174         * libio/wfileops.c: Likewise.
31175         * libio/wgenops.c: Likewise.
31176         * libio/wmemstream.c: Likewise.
31177         * libio/wstrops.c: Likewise.
31178         * libio/__fpurge.c: Likewise.
31179         * libio/__fsetlocking.c: Likewise.
31180         * assert/assert.c: Likewise.
31181         * debug/fgets_chk.c: Likewise.
31182         * debug/fgets_u_chk.c: Likewise.
31183         * debug/fread_chk.c: Likewise.
31184         * debug/fread_u_chk.c: Likewise.
31185         * debug/gets_chk.c: Likewise.
31186         * debug/obprintf_chk.c: Likewise.
31187         * debug/vasprintf_chk.c: Likewise.
31188         * debug/vdprintf_chk.c: Likewise.
31189         * debug/vsnprintf_chk.c: Likewise.
31190         * debug/vsprintf_chk.c: Likewise.
31191         * malloc/mtrace.c: Likewise.
31192         * misc/error.c: Likewise.
31193         * misc/syslog.c: Likewise.
31194         * stdio-common/asprintf.c: Likewise.
31195         * stdio-common/fxprintf.c: Likewise.
31196         * stdio-common/getw.c: Likewise.
31197         * stdio-common/isoc99_fscanf.c: Likewise.
31198         * stdio-common/isoc99_scanf.c: Likewise.
31199         * stdio-common/isoc99_vfscanf.c: Likewise.
31200         * stdio-common/isoc99_vscanf.c: Likewise.
31201         * stdio-common/isoc99_vsscanf.c: Likewise.
31202         * stdio-common/printf-prs.c: Likewise.
31203         * stdio-common/printf_fp.c: Likewise.
31204         * stdio-common/printf_fphex.c: Likewise.
31205         * stdio-common/printf_size.c: Likewise.
31206         * stdio-common/putw.c: Likewise.
31207         * stdio-common/scanf.c: Likewise.
31208         * stdio-common/sprintf.c: Likewise.
31209         * stdio-common/tmpfile.c: Likewise.
31210         * stdio-common/vfprintf.c: Likewise.
31211         * stdio-common/vfscanf.c: Likewise.
31212         * stdlib/strfmon_l.c: Likewise.
31213         * sunrpc/openchild.c: Likewise.
31214         * sunrpc/xdr_stdio.c: Likewise.
31215         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
31216         * sysdeps/mach/hurd/tmpfile.c: Likewise.
31217
31218 2012-05-24  Roland McGrath  <roland@hack.frob.com>
31219
31220         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31221
31222         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
31223         in the third column, to generate for the shared library an IFUNC
31224         that uses _dl_vdso_vsym.
31225         * Makerules (COMPILE.c, compile-stdin.c): New variables.
31226         * Makeconfig (object-suffixes-noshared): New variable.
31227
31228         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
31229         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
31230         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
31231         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
31232
31233         [BZ #14132]
31234         * include/sys/time.h (__gettimeofday): Remove macro.
31235         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
31236         * time/gettimeofday.c (__gettimeofday): Remove #undef.
31237         Remove INTDEF.
31238         (__gettimeofday): Add libc_hidden_def.
31239         (gettimeofday): Add libc_hidden_weak.
31240         * sysdeps/mach/gettimeofday.c: Likewise.
31241         * sysdeps/posix/gettimeofday.c: Likewise.
31242         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
31243         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
31244         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
31245         (__gettimeofday_internal): Remove strong_alias.
31246         (__gettimeofday): Add libc_hidden_def.
31247         (gettimeofday): Add libc_hidden_weak.
31248         * sysdeps/unix/syscalls.list (gettimeofday):
31249         Remove __gettimeofday_internal alias.
31250
31251 2012-05-24  Daniel Jacobowitz  <drow@false.org>
31252             H.J. Lu  <hongjiu.lu@intel.com>
31253
31254         [BZ #12495]
31255         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
31256         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
31257         (largebin_index_32_big): New.
31258         (largebin_index): Use it for 16-byte alignment.
31259         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
31260         correction with front_misalign.
31261
31262 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
31263
31264         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
31265         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
31266         Likewise.
31267         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
31268         Likewise.
31269         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
31270         Likewise.
31271         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
31272         Likewise.
31273         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
31274         Likewise.
31275         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
31276         Likewise.
31277         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
31278         Likewise.
31279         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
31280         Likewise.
31281         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
31282         Likewise.
31283         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
31284         Likewise.
31285         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
31286         Likewise.
31287         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
31288         Likewise.
31289
31290         * scripts/data/c++-types-x32-linux-gnu.data: New file.
31291         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
31292
31293 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
31294
31295         [BZ #10846]
31296         [BZ #14036]
31297         * math/libm-test.inc (exp_test): Add test from bug 14036.
31298         (pow_test): Add test from bug 10846.
31299
31300         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
31301         and other flags.
31302         (special_function): Do not include flags in test name.
31303         (parse_args): Likewise.
31304         * sysdeps/i386/fpu/libm-test-ulps: Update.
31305         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31306         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31307         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31309
31310         * math/gen-libm-test.pl (%beautify): Add entries for underflow
31311         exceptions.
31312         * math/libm-test.inc ("Philosophy"): Update comment about
31313         exception testing.
31314         (UNDERFLOW_EXCEPTION): New macro.
31315         (UNDERFLOW_EXCEPTION_OK): Likewise.
31316         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
31317         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
31318         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
31319         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
31320         (INVALID_EXCEPTION_OK): Update value.
31321         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
31322         (OVERFLOW_EXCEPTION_OK): Likewise.
31323         (IGNORE_ZERO_INF_SIGN): Likewise.
31324         (test_exceptions): Handle underflow exceptions.
31325         (acos_test): Update for underflow exception expectations.
31326         (cexp_test): Likewise.
31327         (clog_test): Likewise.
31328         (clog10_test): Likewise.
31329         (csqrt_test): Likewise.
31330         (ctan_test): Likewise.
31331         (ctanh_test): Likewise.
31332         (exp_test): Likewise.
31333         (exp10_test): Likewise.
31334         (exp2_test): Likewise.
31335         (expm1_test): Likewise.
31336         (fma_test): Likewise.
31337         (j0_test): Likewise.
31338         (jn_test): Likewise.
31339         (nexttoward_test): Likewise.
31340         (pow_test): Likewise.
31341         (scalbn_test): Likewise.
31342         (scalbln_test): Likewise.
31343         (tan_test): Likewise.
31344         (y1_test): Likewise.
31345         * sysdeps/i386/fpu/libm-test-ulps: Update.
31346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31347
31348 2012-05-23  David S. Miller  <davem@davemloft.net>
31349
31350         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
31351         (__libc_sigaction): Remove unused local variables.
31352
31353 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31354
31355         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
31356
31357 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
31358
31359         mktime: avoid signed integer overflow
31360         * time/mktime.c (__mktime_internal): Do not mishandle the case
31361         where diff == INT_MIN.
31362
31363         mktime: simplify computation of average
31364         * time/mktime.c (ranged_convert): Use new time_t_avg function
31365         instead of rolling our own (probably-slower) code.
31366
31367         mktime: do not assume signed right shift propagates sign bit
31368         * time/mktime.c (isdst_differ): New static function.
31369         (__mktime_internal): No need to normalize tm_isdst now.
31370         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
31371         tm_isdst values.
31372
31373         mktime: merge another wrapv change from gnulib
31374         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
31375         from some compilers.
31376
31377         mktime: remove incorrect attempt at unusual arithmetics
31378         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
31379         The code didn't really work on such machines anyway.
31380         (TYPE_MINIMUM): Assume two's complement.
31381         (twos_complement_arithmetic): Verify that long_int and time_t
31382         are two's complement (or unsigned, in the latter case).
31383
31384         mktime: check signed shifts on long_int and time_t, too
31385         * time/mktime.c (SHR): Check that shifts work as desired
31386         on the types long_int and time_t too, as SHR is used on
31387         such types.
31388
31389         mktime: do not assume 'long' is wide enough
31390         * time/mktime.c (verify): Move decl up.
31391         (long_int): New type.
31392         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
31393         to remove assumption in the code that 'long' is wide enough to
31394         store year values.  This assumption is not true on x32 and on
31395         some non-glibc platforms.
31396
31397         mktime: merge wrapv change from gnulib
31398         * time/mktime.c (WRAPV): New macro.
31399         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
31400         (guess_time_tm, __mktime_internal): Do not assume that signed
31401         integer overflow wraps around; modern compilers generate code
31402         where this assumption is no longer valid.
31403
31404 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31405
31406         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31407         Replace "jmp L(pseudo_end)" with "ret".
31408         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
31409         Likewise.
31410
31411 2012-05-23  Andreas Jaeger  <aj@suse.de>
31412
31413         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
31414         * sysdeps/unix/sysv/linux/poll.c: Remove file.
31415
31416 2012-05-23  Andreas Jaeger  <aj@suse.de>
31417             Maximilian Attems  <max@stro.at>
31418
31419         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
31420         New macros.
31421
31422 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
31423
31424         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
31425         code so that pseudo_end is just ret and the stack pointer is
31426         correct also for static library in error case.
31427
31428 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
31429
31430         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
31431         move to syscalls.list.
31432         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
31433         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
31434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
31435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
31436
31437         * manual/install.texi (Running make install): Do not mention Linux
31438         kernel version for which pt_chown is not needed.
31439         (Linux): Do not mention problems with nscd with 2.0 kernels.
31440         * INSTALL: Regenerated.
31441
31442 2012-05-23  Andreas Jaeger  <aj@suse.de>
31443
31444         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
31445         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
31446         macro.
31447         * sysdeps/unix/sysv/linux/s390/bits/mman.h
31448         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31449         * sysdeps/unix/sysv/linux/sh/bits/mman.h
31450         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31451         * sysdeps/unix/sysv/linux/i386/bits/mman.h
31452         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31453         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
31454         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31455         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
31456         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
31457         * sysdeps/unix/sysv/linux/bits/in.h
31458         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
31459
31460 2012-05-22  Roland McGrath  <roland@hack.frob.com>
31461
31462         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
31463         (PREPARE_VERSION): Just use assert instead, it will be elided
31464         under [NDEBUG] anyway.
31465
31466 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31467
31468         * sysdeps/unix/sysv/linux/Makefile: Include
31469         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
31470         (sysdep_routines): Remove sysctl.
31471         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
31472         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
31473         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
31474         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
31475         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
31476
31477 2012-05-22  Andreas Jaeger  <aj@suse.de>
31478
31479         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
31480         that pseudo_end is just ret and the stack pointer is correct also
31481         for static library in error case.
31482
31483 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
31484
31485         [BZ #14122]
31486         * nss/nsswitch.c (defconfig_entries): New variable.
31487         (__nss_database_lookup): Don't leak defconfig entries.
31488         (nss_parse_service_list): Don't leak on error paths.
31489         (free_database_entries): New function.
31490         (free_defconfig): New function.
31491         (free_mem): Move common code to free_database_entries.
31492
31493 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31494
31495         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
31496         Add arch_prctl.
31497         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
31498
31499         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
31500         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
31501         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
31502         New macro.
31503         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
31504         (INTERNAL_SYSCALL_TYPES): Likewise.
31505         (LOAD_ARGS_TYPES_[1-6]): Likewise.
31506         (LOAD_REGS_TYPES_[1-6]): Likewise.
31507         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
31508         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
31509
31510 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31511
31512         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
31513         copysignl for GLIBC_2_0.
31514         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
31515         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
31516         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
31517         logbl for GLIBC_2_0.
31518         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31519         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
31520
31521 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31522
31523         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
31524         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
31525
31526         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
31527         Use "neg %eax".
31528
31529         * time/mktime.c: Update copyright years.
31530
31531 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
31532
31533         mktime: merge comment-quoting-style change from gnulib
31534         * time/mktime.c: Quote 'like this' in comments.
31535         The GNU coding standards suggest that we no longer quote `like this',
31536         as "`" and "'" are typically rendered asymmetrically nowadays.
31537         The typical gnulib style is to quote 'like this' when quoting
31538         code, and "like this" when quoting English.
31539
31540         * time/mktime.c (compile-command): Add "-I.".
31541
31542         mktime: merge mktime-internal.h change from gnulib
31543         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
31544
31545         mktime: merge time_r change from gnulib
31546         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
31547
31548         mktime: merge DEBUG change from gnulib
31549         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
31550         case system <time.h> has a #define.
31551
31552         mktime: merge <sys/types.h> change from gnulib
31553         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
31554         since <time.t> is now guaranteed to define time_t.
31555
31556         mktime: merge HAVE_CONFIG_H change from gnulib
31557         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
31558
31559 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
31560
31561         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31562         Use "neg %eax".
31563
31564         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
31565         __rlim_t cast.
31566         (struct rusage): Use anonymous union to pad each field to
31567         __syscall_slong_t.
31568
31569 2012-05-21  David S. Miller  <davem@davemloft.net>
31570
31571         * Makefules (o-iterator): Remove .s cases.
31572         (compile-command.s): Delete.
31573         (COMPILE.s): Delete.
31574         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
31575
31576 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
31577
31578         * configure.in (libc_cv_predef_stack_protector): Only consider
31579         "foobar" and "__stack_chk_fail" lines in libc_undefs.
31580         * configure: Regenerated.
31581
31582 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31583
31584         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
31585         New macro.  Use R*LP on int and pointer.
31586         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
31587         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
31588         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
31589         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
31590
31591         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
31592         [__WORDSIZE_TIME64_COMPAT32] instead of
31593         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
31594         (struct utmp): Likewise.
31595         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
31596         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
31597         Renamed to ...
31598         (__WORDSIZE_TIME64_COMPAT32): This.
31599         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
31600         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
31601         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
31602         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
31603         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
31604         (__WORDSIZE_TIME64_COMPAT32): New macro.
31605
31606 2012-05-21  Andreas Jaeger  <aj@suse.de>
31607
31608         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
31609         only if [SHARED]. Add prototype for __wcschr_ia32.
31610
31611 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31612
31613         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
31614         of %rbp unmolested in the jmp_buf while mangling the low bits.
31615         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
31616         unmolested high bits of %rbp while demangling the low bits.
31617         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
31618
31619 2012-05-21  Andreas Jaeger  <aj@suse.de>
31620
31621         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
31622         * sunrpc/svc_simple.c: Use it for registerrpc.
31623         * sunrpc/xcrypt.c: Use it for passwd2des.
31624
31625         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
31626
31627 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31628
31629         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
31630         Don't define if [__SYSCALL_WORDSIZE != 32].
31631         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
31632         New macro.
31633
31634 2012-05-21  Bruno Haible  <bruno@clisp.org>
31635             Andreas Jaeger  <aj@suse.de>
31636
31637         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
31638         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
31639         inptr and inend for must_buffer_ch.
31640         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
31641         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
31642         * stdio-common/Makefile (tests): Remove bug15.
31643         (bug15-ENV): Remove macro.
31644         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
31645         anymore.
31646
31647 2012-05-19  Andreas Jaeger  <aj@suse.de>
31648             Roland McGrath  <roland@hack.frob.com>
31649
31650         * manual/contrib.texi: Completely rewritten. It contains now an
31651         alphabetical list of contributors and their contributions.
31652
31653 2012-05-21  Richard Henderson  <rth@twiddle.net>
31654
31655         * misc/getauxval.c (__getauxval): Use unsigned long int.
31656         * misc/sys/auxv.h: Include <sys/cdefs.h>.
31657         (getauxval): Use unsigned long int.
31658
31659 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
31660
31661         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
31662
31663 2012-05-21  Roland McGrath  <roland@hack.frob.com>
31664
31665         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
31666         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
31667         __alignof__ (long double).
31668
31669 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31670
31671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31672
31673 2012-05-20  Richard Henderson  <rth@twiddle.net>
31674
31675         * misc/getauxval.c: New file.
31676         * misc/sys/auxv.h: New file.
31677         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
31678         (routines): Add getauxval.
31679         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
31680         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
31681         * elf/dl-sysdep.c (_dl_auxv): Remove.
31682         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
31683         * elf/dl-support.c (_dl_auxv): New variable.
31684         (_dl_aux_init): Initialize it.
31685         * manual/startup.texi (Auxiliary Vector): New node.
31686         * sysdeps/generic/bits/hwcap.h: New file.
31687         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
31688         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
31689         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
31690         * sysdeps/sparc/sysdep.h: ... here.  Include it.
31691         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
31692         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
31693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
31694         Update.
31695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
31696         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
31697         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
31698         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
31699         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31700         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
31701         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
31702         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
31703
31704 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31705
31706         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31707
31708 2012-05-19  David S. Miller  <davem@davemloft.net>
31709
31710         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31711
31712 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31713
31714         [BZ #14123]
31715         * math/s_ccosh.c: Include <float.h>
31716         (__ccosh): Avoid internal overflow calculating sinh and cosh
31717         values before multiplying by sin and cos values.
31718         * math/s_ccoshf.c: Likewise.
31719         * math/s_ccoshl.c: Likewise.
31720         * math/s_csin.c: Likewise.
31721         * math/s_csinf.c: Likewise.
31722         * math/s_csinl.c: Likewise.
31723         * math/s_csinh.c: Likewise.
31724         * math/s_csinhf.c: Likewise.
31725         * math/s_csinhl.c: Likewise.
31726         * math/libm-test.inc (ccos_test): Add more tests.
31727         (ccosh_test): Likewise.
31728         (csin_test): Likewise.
31729         (csinh_test): Likewise.
31730         * sysdeps/i386/fpu/libm-test-ulps: Update.
31731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31732
31733 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
31734
31735         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
31736         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
31737
31738         * sysdeps/x86_64/x32/_itoa.h: Add comment.
31739
31740 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
31741
31742         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
31743         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
31744         * sysdeps/powerpc/soft-fp/Versions: Likewise.
31745         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
31746         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
31747         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
31748         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
31749         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
31750         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
31751         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
31752         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
31753         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
31754         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
31755         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
31756         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
31757         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
31758         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
31759         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
31760         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
31761         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
31762         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
31763         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
31764         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
31765         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
31766         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
31767         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
31768         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
31769         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
31770         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
31771         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
31772         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
31773
31774 2012-05-18  Andreas Jaeger  <aj@suse.de>
31775
31776         * csu/.gitignore: Delete.
31777
31778 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31779
31780         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
31781         (timex): Use __syscall_slong_t.
31782
31783 2012-05-18  Andreas Jaeger  <aj@suse.de>
31784             Carlos O'Donell  <carlos_odonell@mentor.com>
31785
31786         * manual/install.texi (Configuring and compiling): Update
31787         description about files modified in the source directory.
31788         * INSTALL: Regenerated.
31789
31790 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31791
31792         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
31793         value.  Use "or" to set return value to -1.
31794         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
31795         negate return value.
31796
31797 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
31798
31799         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
31800         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
31801         failure if the compiler has Graphite support disabled.
31802         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
31803         Likewise.
31804         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
31805         (CFLAGS-memmove.c): Likewise.
31806         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
31807         Likewise.
31808
31809 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
31810
31811         * sysdeps/x86_64/x32/_itoa.h: New file.
31812
31813         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
31814         getdents system call only if kernel and user dirents have the
31815         same d_ino and d_off.
31816
31817         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
31818         LLONG_MAX != LONG_MAX.
31819         (_itoa_word): Use _ITOA_WORD_TYPE on value.
31820         (_fitoa_word): Likewise.
31821
31822         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
31823         years.
31824         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
31825         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
31826         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
31827
31828         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
31829         include <bits/wordsize.h>.  Check __x86_64__ instead of
31830         __WORDSIZE.
31831         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
31832         if __x86_64__ is defined.  Use anonymous union on fpstate.
31833
31834         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
31835         anonymous union.
31836
31837 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
31838
31839         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
31840         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
31841         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
31842         Refer to _rtld_local_ro instead of _rtld_global_ro.
31843         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
31844         Likewise.
31845         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
31846         Likewise.
31847         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
31848         Likewise.
31849         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
31850         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
31851         of _rtld_global, and rtld_progname instead of _dl_argv[0].
31852
31853         * sysdeps/powerpc/powerpc32/dl-machine.c
31854         (__elf_machine_runtime_setup) [PROF]: Don't reference
31855         _dl_prof_resolve.
31856
31857 2012-05-18  Andreas Jaeger  <aj@suse.de>
31858
31859         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
31860         function only available for GCCs before 3.4 since GCC 3.4
31861         introduced a builtin.
31862         (lrint): Likewise.
31863         (llrintf): Likewise.
31864         (llrint): Likewise.
31865         (fmaxf): Likewise.
31866         (fmax): Likewise.
31867         (fminf): Likewise.
31868         (fmin): Likewise.
31869         (rint): Likewise.
31870         (rintf): Likewise.
31871         (nearbyint): Likewise.
31872         (nearbyintf): Likewise.
31873         (ceil): Likewise.
31874         (ceilf): Likewise.
31875         (floor): Likewise.
31876         (floorf): Likewise.
31877
31878 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31879
31880         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
31881         on both fields and cast pointer to __syscall_ulong_t.
31882
31883         * bits/types.h (__fsword_t): New type.
31884         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
31885         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
31886         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
31887         (__FSWORD_T_TYPE): Likewise.
31888         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
31889         (__FSWORD_T_TYPE): Likewise.
31890         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
31891         (__FSWORD_T_TYPE): Likewise.
31892         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
31893         (__FSWORD_T_TYPE): Likewise.
31894         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
31895         __SWORD_TYPE with __fsword_t.
31896         (statfs64): Likewise.
31897
31898 2012-05-17  David S. Miller  <davem@davemloft.net>
31899
31900         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
31901
31902 2012-05-17  Andreas Jaeger  <aj@suse.de>
31903
31904         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
31905         warning.
31906
31907 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31908
31909         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
31910
31911 2012-05-17  Andreas Jaeger  <aj@suse.de>
31912
31913         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
31914         when it is used.
31915
31916 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
31917
31918         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
31919
31920 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
31921
31922         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
31923         * sysdeps/x86_64/tst-mallocalign1.c: New file.
31924
31925 2012-05-17  Andreas Jaeger  <aj@suse.de>
31926             Carlos O'Donell  <carlos_odonell@mentor.com>
31927
31928         [BZ #14059]
31929         * sysdeps/x86_64/multiarch/init-arch.h
31930         (bit_YMM_Usable): Rename to...
31931         (bit_AVX_Usable): ... this.
31932         (bit_FMA4_Usable): New macro.
31933         (bit_XMM_state): New macro.
31934         (bit_YMM_state): New macro.
31935         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
31936         [__ASSEMBLER__] (index_AVX_Usable): ... this.
31937         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
31938         (CPUID_OSXSAVE): New macro.
31939         (CPUID_AVX): New macro.
31940         (CPUID_FMA4): New macro.
31941         (index_YMM_Usable): Rename to...
31942         (index_AVX_Usable): ... this.
31943         (HAS_AVX): Use HAS_ARCH_FEATURE.
31944         (HAS_FMA4): Likewise.
31945         (HAS_YMM_USABLE): Remove.
31946         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31947         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
31948         are present.
31949         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
31950         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
31951         * sysdeps/x86_64/multiarch/Makefile: Likewise.
31952         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
31953         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
31954
31955 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
31956
31957         * math/libm-test.c: Support platforms without multiple rounding modes.
31958         * math/bug-nextafter.c: Support platforms without FP exceptions.
31959         * math/bug-nexttoward.c: Likewise.
31960         * math/test-fenv.c: Likewise.
31961         * math/test-misc.c: Likewise.
31962         * stdlib/bug-getcontext.c: Likewise.
31963
31964 2012-05-17  Andreas Jaeger  <aj@suse.de>
31965
31966         * manual/examples/search.c (critter_cmp): Change signature to
31967         avoid warnings.
31968         * manual/string.texi (Collation Functions): Likewise.
31969
31970 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
31971
31972         * bits/types.h: Fold copyright years.
31973         * bits/typesizes.h: Likewise.
31974         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
31975         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
31976         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
31977         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
31978         * time/time.h: Likewise.
31979
31980 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
31981
31982         [BZ #208]
31983         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
31984         in instead of returning them.  Return void.
31985         (__libc_mallinfo): Accumulate over all arenas.
31986         (__malloc_stats): Adjust for change in int_mallinfo interface.
31987
31988 2012-05-16  Roland McGrath  <roland@hack.frob.com>
31989
31990         [BZ #10375]
31991         * configure.in (NM): Add AC_CHECK_TOOL for it.
31992         (libc_extra_cflags): New substituted variable.
31993         Check for -fstack-protector being used implicitly.
31994         * configure: Regenerated.
31995         * config.make.in (config-extra-cflags): New variable,
31996         gets @libc_extra_cflags@.
31997         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
31998
31999         [BZ #10375]
32000         * configure.in: Check for _FORTIFY_SOURCE being predefined.
32001         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
32002         * configure: Regenerated.
32003         * config.make.in (CPPUNDEFS): New substituted variable.
32004         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
32005         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
32006         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
32007
32008 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32009
32010         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
32011         (mq_attr): Use __syscall_slong_t.
32012
32013 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32014
32015         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
32016         Check __x86_64__ instead of __WORDSIZE.
32017         (_STAT_VER_LINUX): Likewise.
32018         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
32019         __syscall_ulong_t and __syscall_slong_t.
32020         (stat64): Likewise.
32021
32022 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32023
32024         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
32025
32026 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32027
32028         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
32029
32030 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32031
32032         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
32033         __syscall_ulong_t.
32034
32035         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
32036         include <bits/wordsize.h>.  Check __x86_64__ instead of
32037         __WORDSIZE.
32038         (greg_t): Use "__extension__ long long int" if __x86_64__ is
32039         defined.
32040         (mcontext_t): Replace "unsigned long" with "unsigned long long".
32041
32042         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
32043         include <bits/wordsize.h>.  Check __x86_64__ instead of
32044         __WORDSIZE.
32045         (user_regs_struct): Use "__extension__ unsigned long long"
32046         instead of "unsigned long" if __x86_64__ is defined.
32047         (user): Likewise.  Pad after pointer field if __ILP32__ is
32048         defined.
32049
32050 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
32051
32052         * configure.in (makeinfo): Require version 4.5 or later.  Allow
32053         versions 5 to 9.
32054         * configure: Regenerated.
32055         * manual/install.texi (texinfo): Increase version requirement to
32056         4.5 or later.
32057         * INSTALL: Regenerated.
32058
32059         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
32060
32061 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32062
32063         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
32064
32065         * sysdeps/x86_64/x32/ffs.c: New file.
32066
32067         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
32068         __syscall_ulong_t.
32069         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
32070         defined.  Use __syscall_ulong_t.
32071         (shminfo): Use __syscall_ulong_t.
32072         (shm_info): Likewise.
32073
32074         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
32075         __syscall_ulong_t.
32076
32077         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
32078         <bits/wordsize.h>.
32079         (msgqnum_t): Use __syscall_ulong_t.
32080         (msglen_t): Likewise.
32081         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
32082         __syscall_ulong_t.
32083
32084         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
32085         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32086
32087         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
32088
32089         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
32090         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
32091
32092         * sysvipc/sys/msg.h (msgbuf): Replace long int with
32093         __syscall_slong_t.
32094
32095         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
32096         include <bits/wordsize.h>.  Check __x86_64__ instead of
32097         __WORDSIZE.
32098
32099         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
32100         "unsigned long long int" if __x86_64__ is defined.
32101         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
32102
32103         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
32104         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
32105         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
32106
32107         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
32108         <stdint.h>.
32109         (GET_PC): Cast to uintptr_t first.
32110         (GET_FRAME): Likewise.
32111         (GET_STACK): Likewise.
32112
32113         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
32114         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
32115         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
32116         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
32117         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
32118         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
32119         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
32120         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
32121         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
32122         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
32123         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
32124         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
32125         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
32126         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
32127         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
32128         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
32129         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
32130         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
32131         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
32132         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
32133         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
32134         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
32135         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
32136         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
32137         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
32138         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
32139         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
32140         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
32141         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
32142
32143 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
32144
32145         * Makerules (+depfiles): Also collect depfiles from .oS in
32146         $(extra-objs).
32147         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
32148         .oS, $(libnldbl-routines)).
32149
32150         * Makerules (native-compile-mkdep-flags): Define.
32151         * sunrpc/Makefile (extra-objs): Add $(addprefix
32152         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
32153         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
32154         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
32155         calling $(make-target-directory).
32156
32157 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32158
32159         * bits/types.h (__snseconds_t): Removed.
32160         * time/time.h (struct timespec): Replace __snseconds_t with
32161         __syscall_slong_t.
32162         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
32163         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
32164         Likewise.
32165         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32166         (__SNSECONDS_T_TYPE): Likewise.
32167         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32168         (__SNSECONDS_T_TYPE): Likewise.
32169         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32170         (__SNSECONDS_T_TYPE): Likewise.
32171
32172 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32173
32174         * sysdeps/mach/hurd/bits/typesizes.h
32175         (__SYSCALL_SLONG_TYPE): New macro.
32176         (__SYSCALL_ULONG_TYPE): Likewise.
32177
32178 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32179
32180         * bits/types.h (__syscall_slong_t): New type.
32181         (__syscall_ulong_t): Likewise.
32182
32183         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
32184         (__SYSCALL_ULONG_TYPE): Likewise.
32185         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
32186         (__SYSCALL_SLONG_TYPE): Likewise.
32187         (__SYSCALL_ULONG_TYPE): Likewise.
32188         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
32189         (__SYSCALL_SLONG_TYPE): Likewise.
32190         (__SYSCALL_ULONG_TYPE): Likewise.
32191         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
32192         (__SYSCALL_SLONG_TYPE): Likewise.
32193         (__SYSCALL_ULONG_TYPE): Likewise.
32194
32195 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32196
32197         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
32198         Add sigaltstack-offsets.sym.
32199         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
32200         <sigaltstack-offsets.h>.
32201         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
32202         longjmp_msg pointer.
32203         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
32204         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
32205         signal stack.
32206         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
32207
32208 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32209
32210         * elf/stackguard-macros.h: Remove file.
32211         * sysdeps/generic/stackguard-macros.h: New file.
32212         * sysdeps/i386/stackguard-macros.h: Likewise.
32213         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
32214         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
32215         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
32216         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
32217         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
32218         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
32219         * sysdeps/x86_64/stackguard-macros.h: Likewise.
32220         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
32221         <elf/stackguard-macros.h>.
32222
32223         [BZ #14109]
32224         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
32225         __aligned__ in attribute.
32226         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
32227         (gregset_t): Likewise.
32228
32229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32230
32231         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
32232         * sysdeps/x86_64/64/Implies-after: Here.  New file.
32233         * sysdeps/x86_64/x32/Implies-after: New file.
32234
32235 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32236
32237         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
32238         and access return value for _dl_profile_fixup.  Use R10_LP to
32239         load frame size.
32240
32241 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32242
32243         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
32244
32245 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32246
32247         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
32248         * sysdeps/x86_64/x32/sysdep.h: New file.
32249
32250 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32251
32252         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
32253         * sysdeps/x86_64/setjmp.S: Likewise.
32254
32255 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32256
32257         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
32258         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
32259         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
32260         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
32261         remove unused global constant.
32262
32263 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
32264
32265         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
32266         include of <not-cancel.h>.
32267
32268 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32269
32270         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
32271
32272 2012-05-15  Jeff Law  <law@redhat.com>
32273             Andreas Jaeger  <aj@suse.de>
32274
32275         [BZ #13594]
32276         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
32277         out from...
32278         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
32279         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
32280         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
32281         code changing __hst_map_handle.map.
32282
32283 2012-05-15  Roland McGrath  <roland@hack.frob.com>
32284
32285         * configure.in (sysnames): Look for Implies-before and Implies-after
32286         files.
32287         * configure: Regenerated.
32288
32289 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32290
32291         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
32292         8-byte data alignment with LP_SIZE alignment.
32293
32294 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32295
32296         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
32297         into R10_LP.
32298
32299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32300
32301         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
32302
32303 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32304
32305         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
32306         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
32307         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
32308         Likewise.
32309         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
32310
32311 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32312
32313         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
32314         (stackinfo_sub_sp): Likewise.
32315
32316 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32317
32318         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
32319         RAX_LP.
32320
32321 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32322
32323         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
32324         into R*_LP.
32325
32326 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32327
32328         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
32329         sizes into R*_LP.
32330
32331 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32332
32333         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
32334
32335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32336
32337         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
32338         into R11_LP and load __x86_64_shared_cache_size_half into
32339         R8_LP.
32340
32341 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
32342
32343         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
32344         R8_LP.
32345
32346 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32347
32348         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
32349         logb for POWER7.
32350         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
32351         logbf for POWER7.
32352         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
32353         logbl for POWER7.
32354         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
32355         powerpc32/power7/fpu/s_logb.c via #include.
32356         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
32357         powerpc32/power7/fpu/s_logbf.c via #include.
32358         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
32359         powerpc32/power7/fpu/s_logbl.c via #include.
32360
32361 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
32362
32363         * README.libm: Remove file.
32364
32365 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32366
32367         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
32368         count for x32.  Use R*_LP and omit operand-size suffix.
32369
32370 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32371
32372         * shlib-versions: Move x86_64-.*-linux.* entries to ...
32373         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
32374         * sysdeps/x86_64/x32/shlib-versions: New file.
32375
32376 2012-05-14  Roland McGrath  <roland@hack.frob.com>
32377
32378         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
32379         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
32380         Use _dl_fatal_printf instead.
32381
32382 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32383
32384         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
32385         set if not set by the user.  Do not allow for being unset.
32386         * sysdeps/unix/sysv/linux/configure: Regenerated.
32387
32388 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32389
32390         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
32391         the `q' suffix from lea and replace .quad with ASM_ADDR.
32392
32393 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32394
32395         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
32396         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
32397         instead of $17.
32398         (PTR_DEMANGLE): Likewise.
32399
32400 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32401
32402         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
32403         (LP_OP): Likewise.
32404         (ASM_ADDR): Likewise.
32405         (RAX_LP): Likewise.
32406         (RBP_LP): Likewise.
32407         (RBX_LP): Likewise.
32408         (RCX_LP): Likewise.
32409         (RDI_LP): Likewise.
32410         (RSI_LP): Likewise.
32411         (RSP_LP): Likewise.
32412         (R8_LP): Likewise.
32413         (R9_LP): Likewise.
32414         (R10_LP): Likewise.
32415         (R10_LP): Likewise.
32416         (R11_LP): Likewise.
32417         (R12_LP): Likewise.
32418         (R13_LP): Likewise.
32419         (R14_LP): Likewise.
32420         (R15_LP): Likewise.
32421
32422 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32423
32424         * sysdeps/x86_64/x32/dl-machine.h: New file.
32425
32426 2012-05-14  Andreas Jaeger  <aj@suse.de>
32427
32428         * manual/Makefile (subdir): Remove export of subdir.
32429         (all): Remove target.
32430         (.PHONY): Remove all from list.
32431         (mkinstalldirs): Remove.
32432         (.PHONY): Remove installdirs from list.
32433         ($(inst_infodir)/libc.info): Use make-target-directory.
32434         (installdirs): Remove.
32435         (subdir_%): Remove.
32436         (glibc-targets): Remove.
32437         (lib): Remove.
32438         (stubs): Remove.
32439         ($(objpfx)stubs ../po/manual.pot): Remove.
32440         ($(objpfx)stamp%): Remove.
32441         (make-target-directory): Remove.
32442         (subdir_install): Remove.
32443         (routines): Remove.
32444         (aux): Remove.
32445         (sources): Remove.
32446         (objects): Remove.
32447         (headers): Remove.
32448
32449         [BZ #13750]
32450         * manual/.gitignore: Remove, it's not needed anymore.
32451         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
32452         all files in it.
32453         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
32454         directory.
32455         (texis): Renamed to $(objpfx)texis.
32456         (texis-path): New, contains path to generated files.
32457         (chapters.%): Use texis-path for complete path, add extra argument
32458         libc-texinfo.sh.
32459         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
32460         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
32461         (summary,texi, stamp-summary): Use complete path of
32462         files. Generate files in build dir.
32463         (dir-add.texi): Build in build dir.
32464         (libm-err.texi,stamp-libm-err): Likewise.
32465         (version.texi, stamp-version): Likewise.
32466         (.%c.texi): Likewise.
32467         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
32468         (mostlyclean): Remove target.
32469         (realclean): Remove target.
32470         (generated): Add new variable with contents from mostlyclean and
32471         realclean, remove entries duplicated in common-mostlyclean, add
32472         stamp-libm-err and stamp-version.
32473         (generated-dirs): Add libc directory.
32474         ($(inst_infodir)/libc.info): Install files from build dir.
32475
32476         * manual/install.texi (Configuring and compiling): Adjust since
32477         the info files are not part of the tar ball anymore.
32478
32479 2012-05-14  Andreas Jaeger  <aj@suse.de>
32480
32481         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
32482         variable.
32483
32484 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
32485
32486         [BZ #13717]
32487         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32488         to 2.2.0 where earlier.
32489         * sysdeps/unix/sysv/linux/configure: Regenerated.
32490         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
32491         Remove conditional code.
32492         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
32493         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
32494         Remove conditional code.
32495         [!__NR_lchown]: Likewise.
32496         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32497         [__NR_lchown]: Likewise.
32498         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
32499         comment referencing __ASSUME_LCHOWN_SYSCALL.
32500         * sysdeps/unix/sysv/linux/i386/sigaction.c
32501         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32502         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32503         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
32504         Remove conditional code.
32505         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
32506         (__protocol_available): Remove #if 0 code.
32507         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
32508         conditional code.
32509         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
32510         * sysdeps/unix/sysv/linux/kernel-features.h
32511         (__ASSUME_GETCWD_SYSCALL): Don't define.
32512         (__ASSUME_REALTIME_SIGNALS): Likewise.
32513         (__ASSUME_PREAD_SYSCALL): Likewise.
32514         (__ASSUME_PWRITE_SYSCALL): Likewise.
32515         (__ASSUME_POLL_SYSCALL): Likewise.
32516         (__ASSUME_LCHOWN_SYSCALL): Likewise.
32517         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
32518         non-SPARC.
32519         (__ASSUME_SIOCGIFNAME): Don't define.
32520         (__ASSUME_MSG_NOSIGNAL): Likewise.
32521         (__ASSUME_SENDFILE): Define unconditionally.
32522         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
32523         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
32524         conditional code.
32525         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
32526         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
32527         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32528         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32529         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
32530         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
32531         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
32532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
32533         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32534         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
32536         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32537         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
32539         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32540         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
32542         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32543         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
32545         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32546         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
32548         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
32549         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
32551         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32552         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
32554         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32555         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32556         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
32557         Remove conditional code.
32558         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32559         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32560         Remove conditional code.
32561         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32562         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
32563         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
32564         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32565         Remove conditional code.
32566         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32567         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
32568         Remove conditional code.
32569         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32570         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
32571         Remove conditional code.
32572         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32573         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
32574         Remove conditional code.
32575         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
32576         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
32577         Remove conditional code.
32578         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32579         * sysdeps/unix/sysv/linux/sh/pwrite64.c
32580         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
32581         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
32582         * sysdeps/unix/sysv/linux/sigaction.c
32583         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32584         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32585         * sysdeps/unix/sysv/linux/sigpending.c
32586         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32587         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32588         * sysdeps/unix/sysv/linux/sigprocmask.c
32589         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32590         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32591         * sysdeps/unix/sysv/linux/sigsuspend.c
32592         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
32593         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
32594         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
32595         (__libc_missing_rt_sigs): Remove.
32596         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
32597         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
32598         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
32599         Remove conditional code.
32600         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
32601         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
32602         return 1.
32603         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
32604         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
32605         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
32606         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
32607
32608 2012-05-14  Andreas Jaeger  <aj@suse.de>
32609
32610         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
32611         it's not used in glibc.
32612         (__coshm1): Likewise.
32613         (__acosh1p): Likewise.
32614         (__sgn): Likewise.
32615
32616         * manual/string.texi (Copying and Concatenation): Add missing
32617         variable in concat example.
32618         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
32619
32620 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32621
32622         [BZ #14103]
32623         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
32624         __builtin_clzl with __builtin_clzll.
32625
32626 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
32627
32628         [BZ #14104]
32629         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
32630         libc_freeres_ptr.
32631
32632 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
32633
32634         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
32635         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
32636         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
32637         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
32638
32639 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
32640
32641         * NEWS: Update ia64 info.
32642
32643 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
32644
32645         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
32646         used as bcopy.
32647
32648 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
32649
32650         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
32651         * sysdeps/unix/syscalls.list (dup3): Likewise.
32652         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
32653         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
32654
32655 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32656
32657         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
32658         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
32659
32660 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
32661
32662         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
32663         thread pointer.
32664         (TLS_IE): Use mov/add instead of movq/addq to load thread
32665         pointer.
32666         (TLS_GD_PREFIX): New.
32667         (TLS_GD): Use it.
32668
32669 2012-05-11  David S. Miller  <davem@davemloft.net>
32670
32671         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
32672         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
32673         (_FPU_SETCW): Likewise.
32674
32675 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32676
32677         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
32678         is 32-byte aligned.
32679
32680 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
32681
32682         [BZ #11837]
32683         * iconvdata/gb18030.c: Update tables.
32684         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
32685         characters specially.
32686         (BODY for TO_LOOP): Add encoding of missing ranges.
32687
32688 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
32689
32690         [BZ #13673]
32691         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
32692         * sysdeps/mach/hurd/dup3.c: Likewise.
32693         * sysdeps/mach/hurd/readlinkat.c: Likewise.
32694         * sysdeps/powerpc/memmove.c:: Likewise.
32695
32696 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32697
32698         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
32699         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
32700
32701 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
32702
32703         * elf/elf.h (R_X86_64_RELATIVE64): New.
32704         (R_X86_64_NUM): Updated.
32705         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
32706         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
32707         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
32708         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
32709         tst-quad1pie tst-quad2pie
32710         (modules-names): Add tst-quadmod1 tst-quadmod2.
32711         ($(objpfx)tst-quad1): New dependency.
32712         ($(objpfx)tst-quad2): Likewise.
32713         ($(objpfx)tst-quad1pie): Likewise.
32714         ($(objpfx)tst-quad2pie): Likewise.
32715         * sysdeps/x86_64/tst-quad1.c: New file.
32716         * sysdeps/x86_64/tst-quad1pie.c: New file.
32717         * sysdeps/x86_64/tst-quad2.c: Likewise.
32718         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
32719         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
32720         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
32721         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
32722         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
32723
32724 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32725
32726         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
32727         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
32728         * streams/stropts.h (t_scalar_t): Define type.
32729
32730         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
32731         (_PATH_PRESERVE): Set to "/var/lib".
32732         (_PATH_RWHODIR): Set to "/var/spool/rwho".
32733
32734         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
32735         instead of int.
32736
32737         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
32738         if __dir_mkfile succeeded.
32739
32740         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
32741         checking for _hurd_dtablesize.  Unlock it right after having
32742         finished _hurd_dtable allocation.
32743
32744 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32745
32746         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
32747         * sysdeps/mach/hurd/configure: Regenerated.
32748         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
32749         special-casing to...
32750         * sysdeps/gnu/configure.in: ... this new file.
32751         * sysdeps/unix/sysv/linux/configure: Regenerated.
32752         * sysdeps/gnu/configure: New generated file.
32753
32754         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
32755         for Linux: use nsec instead of usec, as well as:
32756         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
32757         members of type struct timespec.
32758         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
32759         New macros.
32760         (struct stat64): Likewise.
32761         (_STATBUF_ST_NSEC): New macro.
32762         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
32763
32764         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
32765         __strtoul_internal rather than strtoul.
32766
32767 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32768
32769         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
32770         and reject them.
32771
32772 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32773
32774         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
32775         which preserves existing values.
32776         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
32777
32778 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32779
32780         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
32781         TIMEOUT values.  Return EINVAL for NFDS values either negative or
32782         greater than FD_SETSIZE.
32783
32784 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32785
32786         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
32787         allocated, call __vm_protect to finish enabling the existing space, and
32788         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
32789         allocate the remainder.
32790
32791 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32792
32793         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
32794         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
32795
32796 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32797
32798         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
32799         sysdeps/mach/hurd/readlink.c.
32800
32801         * posix/tst-sysconf.c (posix_options): Only use
32802         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
32803         _POSIX_SYNCHRONIZED_IO when they are defined
32804         * sysdeps/mach/hurd/bits/posix_opt.h:
32805         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
32806         (_XOPEN_REALTIME): Undefine macro.
32807         (_XOPEN_REALTIME_THREADS): Undefine macro.
32808         (_XOPEN_SHM): Undefine macro.
32809         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
32810         macro to -1.
32811         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
32812         macro to -1.
32813         (_POSIX_ASYNC_IO): Undefine macro.
32814         (_POSIX_PRIORITIZED_IO): Undefine macro.
32815         (_POSIX_SPIN_LOCKS): Define macro to -1.
32816
32817         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
32818         SA_NODEFER, SA_RESETHAND.
32819         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
32820         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
32821         F_DUPFD_CLOEXEC.
32822
32823 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32824
32825         * elf/Makefile (pldd-modules): Define unconditionally.
32826
32827 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32828
32829         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
32830
32831 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32832
32833         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
32834         Return ENOENT when name is empty.
32835         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
32836
32837 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32838
32839         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
32840
32841         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
32842
32843 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32844
32845         Fix mlock in all cases except non-readable pages.
32846         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
32847         instead of VM_PROT_ALL as parameter to __vm_wire function.
32848
32849         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
32850         (__mkdir): When path is `/', just fail with EEXIST.
32851         * sysdeps/mach/hurd/mkdirat.c: Likewise.
32852
32853 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32854
32855         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
32856         <sys/uio.h> (for writev).
32857         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
32858         and <sys/param.h> (for MIN).
32859
32860 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
32861
32862         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
32863         REQUESTED_TIME.  Properly set the remaining time and return EINTR
32864         if interrupted.
32865
32866 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32867
32868         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
32869         Depend on against $(link-rpcuserlibs).
32870
32871 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32872
32873         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
32874         (__libc_stack_end): Do not use attribute_relro.
32875         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
32876         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
32877         to libthread-provided value.
32878         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
32879         attribute_relro.
32880
32881 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32882
32883         [BZ #3748]
32884         * bits/libc-lock.h (__libc_once_get): New macro.
32885         * sysdeps/mach/bits/libc-lock.h: Likewise.
32886         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
32887         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
32888         instead of using implementation details.
32889
32890         * libio/fileops.c: Unconditionally include <kernel-features.h>.
32891         * libio/freopen.c: Likewise.
32892         * libio/freopen64.c: Likewise.
32893         * misc/syslog.c: Likewise.
32894         * nscd/connections.c: Likewise.
32895         * nscd/netgroupcache.c: Likewise.
32896         * sysdeps/posix/getcwd.c: Likewise.
32897
32898 2012-05-10  Roland McGrath  <roland@hack.frob.com>
32899
32900         * math/w_ilogbf.c: Add #include <limits.h>.
32901
32902 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32903
32904         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
32905         path instead of returning without unlocking.
32906
32907         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
32908         immediate-write ioctls.
32909         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
32910
32911 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32912
32913         * sysdeps/mach/hurd/i386/init-first.c (init): Use
32914         __builtin_frame_address instead of making assumptions about the
32915         location of the return address relative to DATA.  Force early load of
32916         the return address.
32917         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
32918         __builtin_frame_address.
32919
32920         dup3 for GNU Hurd.
32921         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
32922         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
32923         implement dup3 and do some further code clean-ups.
32924         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
32925         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
32926
32927 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32928
32929         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
32930
32931         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
32932         HURD_CRITICAL_END around holding _hurd_dtable_lock.
32933         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
32934         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
32935         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
32936         d->port.lock.
32937
32938         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
32939         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
32940         when handler == SIG_ERR, not when handler != SIG_ERR.
32941
32942 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32943
32944         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
32945         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
32946         definitions.
32947
32948         accept4 for GNU Hurd.
32949         * include/sys/socket.h (__libc_accept4): New prototype.
32950         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
32951         to implement __libc_accept4.
32952         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
32953         __libc_accept4.
32954         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
32955
32956         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
32957         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
32958         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
32959         signal-defines.sym.
32960
32961 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32962
32963         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
32964
32965 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
32966
32967         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
32968         assertion on O_CLOEXEC flag.
32969         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
32970         * hurd/intern-fd.c: Likewise.
32971         * hurd/port2fd.c: Likewise.
32972
32973 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32974
32975         [BZ #3906]
32976         * bits/in.h (IPV6_PKTINFO): Define new macro.
32977         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
32978
32979 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32980
32981         [BZ #13954]
32982         [BZ #13955]
32983         [BZ #13956]
32984         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
32985         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
32986         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
32987         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
32988         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
32989         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
32990         * math/libm-test.inc (logb_test) : Additional logb tests.
32991
32992 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
32993             Andreas Jaeger  <aj@suse.de>
32994
32995         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
32996         * configure: Regenerated.
32997         * config.h.in (LINK_OBSOLETE_RPC): New macro.
32998         * config.make.in (link-obsolete-rpc): New substituted variable.
32999         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
33000         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
33001         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33002         (shared-only-routines): Don't set it under [link-obsolete-rpc],
33003         so that libc.a contains the symbols.
33004         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
33005         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
33006         * sunrpc/auth_none.c: Likewise.
33007         * sunrpc/auth_unix.c: Likewise.
33008         * sunrpc/authdes_prot.c: Likewise.
33009         * sunrpc/authuxprot.c: Likewise.
33010         * sunrpc/clnt_gen.c: Likewise.
33011         * sunrpc/clnt_perr.c: Likewise.
33012         * sunrpc/clnt_raw.c: Likewise.
33013         * sunrpc/clnt_simp.c: Likewise.
33014         * sunrpc/clnt_tcp.c: Likewise.
33015         * sunrpc/clnt_udp.c: Likewise.
33016         * sunrpc/clnt_unix.c: Likewise.
33017         * sunrpc/des_crypt.c: Likewise.
33018         * sunrpc/des_soft.c: Likewise.
33019         * sunrpc/get_myaddr.c: Likewise.
33020         * sunrpc/key_call.c: Likewise.
33021         * sunrpc/key_prot.c: Likewise.
33022         * sunrpc/netname.c: Likewise.
33023         * sunrpc/pm_getmaps.c: Likewise.
33024         * sunrpc/pm_getport.c: Likewise.
33025         * sunrpc/pmap_clnt.c: Likewise.
33026         * sunrpc/pmap_prot.c: Likewise.
33027         * sunrpc/pmap_prot2.c: Likewise.
33028         * sunrpc/pmap_rmt.c: Likewise.
33029         * sunrpc/publickey.c: Likewise.
33030         * sunrpc/rpc_cmsg.c: Likewise.
33031         * sunrpc/rpc_common.c: Likewise.
33032         * sunrpc/rpc_dtable.c: Likewise.
33033         * sunrpc/rpc_prot.c: Likewise.
33034         * sunrpc/rpc_thread.c: Likewise.
33035         * sunrpc/rtime.c: Likewise.
33036         * sunrpc/svc.c: Likewise.
33037         * sunrpc/svc_auth.c: Likewise.
33038         * sunrpc/svc_raw.c: Likewise.
33039         * sunrpc/svc_run.c: Likewise.
33040         * sunrpc/svc_tcp.c: Likewise.
33041         * sunrpc/svc_udp.c: Likewise.
33042         * sunrpc/svc_unix.c: Likewise.
33043         * sunrpc/svcauth_des.c: Likewise.
33044         * sunrpc/xcrypt.c: Likewise.
33045         * sunrpc/xdr.c: Likewise.
33046         * sunrpc/xdr_array.c: Likewise.
33047         * sunrpc/xdr_float.c: Likewise.
33048         * sunrpc/xdr_intXX_t.c: Likewise.
33049         * sunrpc/xdr_mem.c: Likewise.
33050         * sunrpc/xdr_rec.c: Likewise.
33051         * sunrpc/xdr_ref.c: Likewise.
33052         * sunrpc/xdr_sizeof.c: Likewise.
33053         * sunrpc/xdr_stdio.c: Likewise.
33054
33055 2012-05-10  Roland McGrath  <roland@hack.frob.com>
33056
33057         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
33058         change.  Update copyright years.
33059
33060 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33061
33062         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
33063
33064 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
33065             Joseph Myers  <joseph@codesourcery.com>
33066             Paul Pluzhnikov  <ppluzhnikov@google.com>
33067
33068         [BZ #14012]
33069         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
33070         requiring rpcgen.
33071         [cross-compiling] (extra-libs): Likewise.
33072         [cross-compiling] (extra-libs-others): Likewise.
33073         [cross-compiling] (librpcsvc-routines): Likewise.
33074         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
33075         [cross-compiling] (omit-deps): Likewise.
33076         (sunrpc-CPPFLAGS): New variable.
33077         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
33078         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
33079         (cross-rpcgen-objs): New variable.
33080         (extra-objs): Append $(cross-rpcgen-objs).
33081         ($(cross-rpcgen-objs)): New rule.
33082         ($(objpfx)cross-rpcgen): Likewise.
33083         (rpcgen-cmd): Define to use $(built-program-file).  Expand
33084         comment.
33085         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
33086         ($(objpfx)x%.stmp): Likewise.
33087         * sunrpc/proto.h [IS_IN_build] (_): Define.
33088         [IS_IN_build] (_libc_intl_domainname): Likewise.
33089
33090 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
33091
33092         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
33093         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
33094         and R_X86_64_TPOFF64.
33095
33096 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
33097
33098         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
33099         sysdeps/unix/sysv/syscalls.list.
33100         (stime): Likewise.
33101         (utime): Likewise.
33102         * sysdeps/unix/sysv/syscalls.list: Remove file.
33103
33104 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
33105
33106         [BZ #3440]
33107         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
33108         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
33109         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
33110         (__LC_IDENTIFICATION): Make these macros useful in #if
33111         expressions, as required by C99.
33112
33113 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
33114
33115         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
33116         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
33117         after this.
33118
33119 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
33120
33121         * stdlib/longlong.h: Updated from GCC.
33122
33123 2012-05-09  Andreas Jaeger  <aj@suse.de>
33124
33125         * nscd/nscd.c (run_modes): Make named enum, reorder so that
33126         default is first entry.
33127         (run_mode): Set type.
33128         (main): Remove informal message about syslog.
33129         (options): Fix typo.
33130
33131         [BZ #14053]
33132         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
33133         to asm.
33134         (lrint): Likewise.
33135         (llrintf): Likewise.
33136         (llrint): Likewise.
33137         (rint): Likewise.
33138         (rintf): Likewise.
33139         (nearbyint): Likewise.
33140         (nearbyintf): Likewise.
33141
33142 2012-05-09  Andreas Jaeger  <aj@suse.de>
33143             Pedro Alves  <palves@redhat.com>
33144
33145         * nscd/nscd.c (run_mode): Use enum.
33146         (main): Cleanup coding style issue.
33147
33148 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
33149             Andreas Jaeger  <aj@suse.de>
33150
33151         * nscd/nscd.c (go_background): Replaced with...
33152         (run_mode): ... this.
33153         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
33154         (options): Add -F --foreground.
33155         (main): Implement it.
33156         (parse_opt): Parse it.
33157
33158 2012-05-09  Andreas Jaeger  <aj@suse.de>
33159
33160         [BZ #14083]
33161         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
33162         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
33163         -Wconversion warning.
33164         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
33165         Likewise.
33166
33167 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
33168
33169         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
33170         == 0.
33171         (LC_ALL): Use macro-int-constant.
33172         (LC_COLLATE): Likewise.
33173         (LC_CTYPE): Likewise.
33174         (LC_MESSAGES): Likewise.
33175         (LC_MONETARY): Likewise.
33176         (LC_NUMERIC): Likewise.
33177         (LC_TIME): Likewise.
33178         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
33179         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33180         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33181         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
33182         Specify type.
33183         [C99-based standards] (float_t): Expect type.
33184         [C99-based standards] (double_t): Expect type.
33185         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
33186         type.
33187         [C99-based standards] (HUGE_VALL): Likewise.
33188         [C99-based standards] (INFINITY): Likewise.
33189         [C99-based standards] (NAN): Likewise.
33190         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
33191         [C99-based standards] (FP_NAN): Likewise.
33192         [C99-based standards] (FP_NORMAL): Likewise.
33193         [C99-based standards] (FP_SUBNORMAL): Likewise.
33194         [C99-based standards] (FP_ZERO): Likewise.
33195         [C99-based standards] (FP_FAST_FMA): Use
33196         optional-macro-int-constant.  Specify type.  Require == 1.
33197         [C99-based standards] (FP_FAST_FMAF): Likewise.
33198         [C99-based standards] (FP_FAST_FMAL): Likewise.
33199         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
33200         [C99-based standards] (FP_ILOGBNAN): Likewise.
33201         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
33202         Specify type.
33203         [C99-based standards] (MATH_ERREXCEPT): Likewise.
33204         [C99-based standards] (math_errhandling): Specify type.
33205         [ISO99 || ISO11] (signgam): Do not allow.
33206         [non-C99-based standards] (copysignf): Do not allow.
33207         [non-C99-based standards] (exp2f): Likewise.
33208         [non-C99-based standards] (log2f): Likewise.
33209         [non-C99-based standards] (modff): Allow.
33210         [non-C99-based standards] (erff): Do not allow.
33211         [non-C99-based standards] (erfcf): Likewise.
33212         [non-C99-based standards] (gammaf): Likewise.
33213         [non-C99-based standards] (hypotf): Likewise.
33214         [non-C99-based standards] (j0f): Likewise.
33215         [non-C99-based standards] (j1f): Likewise.
33216         [non-C99-based standards] (jnf): Likewise.
33217         [non-C99-based standards] (lgammaf): Likewise.
33218         [non-C99-based standards] (tgammaf): Likewise.
33219         [non-C99-based standards] (y0f): Likewise.
33220         [non-C99-based standards] (y1f): Likewise.
33221         [non-C99-based standards] (ynf): Likewise.
33222         [non-C99-based standards] (isnanf): Likewise.
33223         [non-C99-based standards] (acoshf): Likewise.
33224         [non-C99-based standards] (asinhf): Likewise.
33225         [non-C99-based standards] (atanhf): Likewise.
33226         [non-C99-based standards] (cbrtf): Likewise.
33227         [non-C99-based standards] (expm1f): Likewise.
33228         [non-C99-based standards] (ilogbf): Likewise.
33229         [non-C99-based standards] (log1pf): Likewise.
33230         [non-C99-based standards] (logbf): Likewise.
33231         [non-C99-based standards] (nextafterf): Likewise.
33232         [non-C99-based standards] (remainderf): Likewise.
33233         [non-C99-based standards] (rintf): Likewise.
33234         [non-C99-based standards] (scalbf): Likewise.
33235         [non-C99-based standards] (copysignl): Likewise.
33236         [non-C99-based standards] (exp2l): Likewise.
33237         [non-C99-based standards] (log2l): Likewise.
33238         [non-C99-based standards] (modfl): Allow.
33239         [non-C99-based standards] (erfl): Do not allow.
33240         [non-C99-based standards] (erfcl): Likewise.
33241         [non-C99-based standards] (gammal): Likewise.
33242         [non-C99-based standards] (hypotl): Likewise.
33243         [non-C99-based standards] (j0l): Likewise.
33244         [non-C99-based standards] (j1l): Likewise.
33245         [non-C99-based standards] (jnl): Likewise.
33246         [non-C99-based standards] (lgammal): Likewise.
33247         [non-C99-based standards] (tgammal): Likewise.
33248         [non-C99-based standards] (y0l): Likewise.
33249         [non-C99-based standards] (y1l): Likewise.
33250         [non-C99-based standards] (ynl): Likewise.
33251         [non-C99-based standards] (isnanl): Likewise.
33252         [non-C99-based standards] (acoshl): Likewise.
33253         [non-C99-based standards] (asinhl): Likewise.
33254         [non-C99-based standards] (atanhl): Likewise.
33255         [non-C99-based standards] (cbrtl): Likewise.
33256         [non-C99-based standards] (expm1l): Likewise.
33257         [non-C99-based standards] (ilogbl): Likewise.
33258         [non-C99-based standards] (log1pl): Likewise.
33259         [non-C99-based standards] (logbl): Likewise.
33260         [non-C99-based standards] (nextafterl): Likewise.
33261         [non-C99-based standards] (remainderl): Likewise.
33262         [non-C99-based standards] (rintl): Likewise.
33263         [non-C99-based standards] (scalbl): Likewise.
33264         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33265         [non-C99-based standards] (FP_*): Do not allow.
33266         [C99-based standards] (FP_*): Change to
33267         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
33268         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33269         allow.
33270         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
33271         (SIG_ERR): Likewise.
33272         [X/Open-based standards] (SIG_HOLD): Likewise.
33273         (SIG_IGN): Likewise.
33274         (SIGABRT): Use macro-int-constant.  Specify type.  Require
33275         positive value.
33276         (SIGFPE): Likewise.
33277         (SIGILL): Likewise.
33278         (SIGINT): Likewise.
33279         (SIGSEGV): Likewise.
33280         (SIGTER): Likewise.
33281         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
33282         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
33283         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
33284         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
33285         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
33286         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
33287         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
33288         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
33289         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
33290         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
33291         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
33292         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
33293         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
33294         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
33295         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
33296         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
33297         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
33298         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
33299         [X/Open-based standards] (SIGTRAP): Likewise.
33300         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
33301         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
33302         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
33303         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
33304         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33305         allow.
33306
33307 2012-05-08  Ian Wienand  <ianw@vmware.com>
33308
33309         [BZ #14080]
33310         * time/tzset.c (__tzset_parse_tz): Update default rules for
33311         daylight time changes in the Energy Policy Act of 2005.
33312
33313 2012-05-09  Andreas Jaeger  <aj@suse.de>
33314
33315         [BZ #13983]
33316         * elf/ldconfig.c (parse_conf): Change string to make clear that
33317         ldconfig only issued a warning if ld.so.conf does not exist.
33318
33319 2012-05-08  David S. Miller  <davem@davemloft.net>
33320
33321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
33322         movxtod instead of popping the value on the stack.
33323
33324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33325
33326 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
33327
33328         * config.h.in: Add HAVE_ARM_PCS_VFP.
33329
33330 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
33331
33332         [BZ #13979]
33333         * include/features.h: Warn if user requests __FORTIFY_SOURCE
33334         checking but the checks are disabled for any reason.
33335
33336 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
33337
33338         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
33339         and ELF64_R_TYPE with ELFW(R_TYPE).
33340
33341 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
33342
33343         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
33344         (ulimit): Likewise.
33345
33346         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
33347         (settimeofday): Likewise.
33348
33349 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
33350
33351         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
33352         a struct th_u2 inside the union, and move tu_block/tu_code into
33353         a new th_u3 union of tu_block/tu_code inside of that.  Move
33354         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
33355         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
33356         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
33357         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
33358         (th_stuff): Change to th_u1.tu_stuff.
33359         (th_data): Define.
33360         (th_msg): Change to th_u1.th_u2.tu_data.
33361
33362 2012-05-07  David S. Miller  <davem@davemloft.net>
33363
33364         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33365
33366         [BZ #14074]
33367         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
33368         (SETUP_PIC_REG): Use it.
33369         (SETUP_PIC_REG_LEAF): Use it.
33370
33371 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
33372
33373         [BZ #13885]
33374         [BZ #13923]
33375         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33376         USE_AS_EXPM1L.
33377         (EXPL_FINITE): Likewise.
33378         (FLDLOG): Likewise.
33379         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33380         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33381         e_expl.S.
33382         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33383         USE_AS_EXPM1L.
33384         (EXPL_FINITE): Likewise.
33385         (FLDLOG): Likewise.
33386         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
33387         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
33388         e_expl.S.
33389         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
33390         test of -max_value argument for long double.
33391         * sysdeps/i386/fpu/libm-test-ulps: Update.
33392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33393
33394 2012-05-06  David S. Miller  <davem@davemloft.net>
33395
33396         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
33397         quad soft-float symbols whose references which are compiler
33398         generated.
33399         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
33400
33401 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
33402
33403         [BZ #13884]
33404         [BZ #13914]
33405         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33406         USE_AS_EXP10L.
33407         (EXPL_FINITE): Likewise.
33408         (FLDLOG): Likewise.
33409         (c0): Likewise.
33410         (c1): Likewise.
33411         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33412         Adjust comments for base varying.
33413         (__expl_finite): Change alias to EXPL_FINITE.
33414         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
33415         e_expl.S.
33416         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
33417         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
33418         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
33419         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
33420         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
33421         USE_AS_EXP10L.
33422         (EXPL_FINITE): Likewise.
33423         (FLDLOG): Likewise.
33424         (c0): Likewise.
33425         (c1): Likewise.
33426         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
33427         Adjust comments for base varying.
33428         (__expl_finite): Change alias to EXPL_FINITE.
33429         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
33430         tests for bugs.
33431         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
33432
33433         [BZ #14064]
33434         * math/libm-test.inc (check_float_internal): Correct ulp
33435         calculation for subnormal expected results.
33436
33437 2012-05-06  Andreas Jaeger  <aj@suse.de>
33438
33439         * Makeconfig (+math-flags): New, set to -frounding-math.
33440         (+cflags): Add +math-flags so that all of glibc gets compiled with
33441         it.
33442
33443         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
33444
33445 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
33446
33447         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
33448         Disable one test.
33449
33450         [BZ #13787]
33451         [BZ #13922]
33452         [BZ #14036]
33453         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
33454         (__ieee754_expl): Allow for and saturate large arguments.
33455         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
33456         (u_threshold): Likewise.
33457         (__exp): Call __ieee754_exp before checking for overflow and
33458         underflow.
33459         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
33460         (u_threshold): Likewise.
33461         (__expf): Call __ieee754_expf before checking for overflow and
33462         underflow.
33463         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
33464         (u_threshold): Likewise.
33465         (__expl): Call __ieee754_expl before checking for overflow and
33466         underflow.
33467         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
33468         (__ieee754_expl): Allow for and saturate large arguments.
33469         * math/libm-test.inc (exp_test): Add another test.  Do not allow
33470         missing overflow exception on overflow.
33471         (expm1_test): Do not allow missing overflow exception on overflow.
33472
33473         * sysdeps/i386/fpu/e_expl.c: Move to ...
33474         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
33475         rather than using inline asm.
33476         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
33477         * sysdeps/x86_64/fpu/e_expl.S: Copy from
33478         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
33479
33480         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
33481         (nice): Likewise.
33482         (poll): Likewise.
33483         (signal): Likewise.
33484         (time): Likewise.
33485         (times): Likewise.
33486
33487 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33488
33489         * sysdeps/unix/syscalls.list (adjtime): Add entry from
33490         sysdeps/unix/common/syscalls.list.
33491         (fchmod): Likewise.
33492         (fchown): Likewise.
33493         (ftruncate): Likewise.
33494         (getrusage): Likewise.
33495         (gettimeofday): Likewise.
33496         (setpgid): Likewise.
33497         (setregid): Likewise.
33498         (setreuid): Likewise.
33499         (sigaction): Likewise.
33500         (truncate): Likewise.
33501         (vhangup): Likewise.
33502         * sysdeps/unix/common/syscalls.list: Remove file.
33503         * sysdeps/unix/bsd/Implies: Don't include unix/common.
33504         * sysdeps/unix/sysv/linux/Implies: Likewise.
33505
33506 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
33507
33508         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
33509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
33510         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
33511         Moved to ...
33512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
33513         Here.
33514         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
33515         to ...
33516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
33517         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
33518         to ...
33519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
33520         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
33521         to ...
33522         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
33523         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
33524         to ...
33525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
33526         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
33527         to ...
33528         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
33529         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
33530         to ...
33531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
33532         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
33533         to ...
33534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
33535         Here.
33536         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
33537         to ...
33538         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
33539         Here.
33540         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
33541         to ...
33542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
33543         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
33544         Moved to ...
33545         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
33546         Here.
33547         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
33548         to ...
33549         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
33550
33551 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33552
33553         * sysdeps/unix/common/bits/dirent.h: Remove file.
33554         * sysdeps/unix/common/bits/fcntl.h: Likewise.
33555
33556         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
33557         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
33558         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
33559         * sysdeps/unix/bsd/isatty.c: Likewise.
33560         * sysdeps/unix/bsd/tcdrain.c: Likewise.
33561         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
33562         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
33563
33564 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33565
33566         [BZ #13563]
33567         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
33568         long double comparison inaccuracies.
33569         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
33570         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33571
33572 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
33573
33574         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
33575         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
33576
33577 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
33578
33579         [BZ #14049]
33580         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
33581         nonzero digits before rounding a hex value.
33582         * stdlib/tst-strtod.c (tests): Add another test.
33583
33584 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33585
33586         * sysdeps/s390/fpu/libm-test-ulps: Update.
33587
33588 2012-05-03  Andreas Jaeger  <aj@suse.de>
33589
33590         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
33591         does not get optimized out.
33592         (malloc_opt_barrier): New.
33593
33594 2012-05-03  Andreas Jaeger  <aj@suse.de>
33595             Roland McGrath  <roland@hack.frob.com>
33596
33597         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
33598         intermediate file deletion.
33599         (generated): Add .symlist files.
33600
33601 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
33602
33603         [BZ #13775]
33604         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
33605         Redirect under this condition.
33606         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33607         [__USE_GNU] (__dprintf_chk): Not under this condition.
33608         [__USE_GNU] (__vdprintf_chk): Likewise.
33609         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
33610         under this condition.
33611         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
33612         [__USE_XOPEN2K8] (dprintf): Define under this condition.
33613         [__USE_XOPEN2K8] (vdprintf): Likewise.
33614         [__USE_GNU] (__dprintf_chk): Not under this condition.
33615         [__USE_GNU] (__vdprintf_chk): Likewise.
33616         [__USE_GNU] (dprintf): Likewise.
33617         [__USE_GNU] (vdprintf): Likewise.
33618
33619 2012-05-03  Roland McGrath  <roland@hack.frob.com>
33620
33621         * elf/Makefile (common-generated): Set this instead of generated for
33622         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
33623         $(all-built-dso)-derived lists.
33624
33625 2012-05-03  Andreas Jaeger  <aj@suse.de>
33626
33627         * sysdeps/i386/fpu/libm-test-ulps: Update.
33628
33629         * FAQ: Removed.
33630         * FAQ.in: Likewise.
33631         * scripts/gen-FAQ.pl: Likewise.
33632         * manual/install.texi (Installation): Point to online location of
33633         FAQ.
33634         * Makefile (files-for-dist): Remove FAQ.
33635         (FAQ): Remove.
33636
33637 2012-05-02  Allan McRae  <allan@archlinux.org>
33638
33639         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
33640         (LDFLAGS-reldepmod5.so): Likewise.
33641         (LDFLAGS-reldep6mod1.so): Likewise.
33642         (LDFLAGS-reldep6mod4.so): Likewise.
33643         (LDFLAGS-reldep8mod3.so): Likewise.
33644         (LDFLAGS-unload4mod1.so): Likewise.
33645         (LDFLAGS-unload4mod2.so): Likewise.
33646         (LDFLAGS-tst-initorder): Likewise.
33647         (LDFLAGS-tst-initordera2.so): Likewise.
33648         (LDFLAGS-tst-initordera3.so): Likewise.
33649         (LDFLAGS-tst-initordera4.so): Likewise.
33650         (LDFLAGS-tst-initorderb2.so): Likewise.
33651         (LDFLAGS-noload): Likewise.
33652         (LDFLAGS-next): Likewise.
33653         (LDFLAGS-order2mod1.so): Likewise.
33654         (LDFLAGS-order2mod2.so): Likewise.
33655         (LDFLAGS-tst-initorder2): Likewise.
33656         (LDFLAGS-tst-initorder2a.so): Likewise.
33657         (LDFLAGS-tst-initorder2b.so): Likewise.
33658         (LDFLAGS-tst-initorder2c.so): Likewise.
33659         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
33660
33661 2012-05-02  David S. Miller  <davem@davemloft.net>
33662
33663         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33664
33665 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
33666
33667         [BZ #14055]
33668         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
33669
33670 2012-05-02  Andreas Jaeger  <aj@suse.de>
33671
33672         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
33673         since we manipulate rounding mode.
33674         (CPPFLAGS-test-idouble.c): Likewise.
33675         (CPPFLAGS-test-ifloat.c): Likewise.
33676         (CFLAGS-test-ldouble.c): Likewise.
33677         (CFLAGS-test-double.c): Likewise.
33678         (CFLAGS-test-float.c): Likewise.
33679         (CFLAGS-test-misc.c): Likewise.
33680         (CFLAGS-test-test-fenv.c): Likewise.
33681
33682 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33683
33684         [BZ #2550]
33685         [BZ #2570]
33686         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
33687         comparisons to determine direction to adjust input.
33688
33689 2012-05-01  Roland McGrath  <roland@hack.frob.com>
33690
33691         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
33692         output to the target.
33693
33694         * scripts/localplt.awk: New file.
33695         * elf/Makefile ($(objpfx)check-localplt): Target removed.
33696         (check-localplt-CFLAGS): Variable removed.
33697         ($(all-built-dso:=.jmprel)): New static pattern rule.
33698         (generated): Add those targets.
33699         (localplt-built-dso): New variable.
33700         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
33701
33702         * elf/check-localplt.c: File removed.
33703
33704         * scripts/check-execstack.awk: New file.
33705         * elf/Makefile ($(objpfx)check-execstack): Target removed.
33706         (check-execstack-CFLAGS): Variable removed.
33707         ($(objpfx)check-execstack.h): Target removed.
33708         ($(objpfx)execstack-default): New target.
33709         (generated): Add that instead of check-execstack.h.
33710         ($(all-built-dso:=.phdr)): New static pattern rule.
33711         (generated): Add those targets.
33712         * elf/check-execstack.c: File removed.
33713
33714         * scripts/check-textrel.awk: New file.
33715         * elf/Makefile ($(objpfx)check-textrel): Target removed.
33716         (check-textrel-CFLAGS): Variable removed.
33717         (all-built-dso): Use := to define.o
33718         ($(all-built-dso:=.dyn)): New static pattern rule.
33719         (generated): Add those targets.
33720         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
33721         * config.make.in (READELF): New substituted variable.
33722         * elf/check-textrel.c: File removed.
33723
33724 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
33725
33726         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
33727         allow.
33728         * conform/data/ctype.h-data [C99-based standards] (isblank):
33729         Expect function.
33730         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
33731         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
33732         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33733         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
33734         Specify type.  Require positive value.
33735         (EILSEQ): Likewise.
33736         (ERANGE): Likewise.
33737         [ISO || POSIX] (EILSEQ): Do not expect.
33738         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
33739         Specify type.  Require positive value.
33740         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
33741         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
33742         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
33743         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
33744         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
33745         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
33746         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
33747         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
33748         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
33749         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
33750         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
33751         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
33752         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
33753         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
33754         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
33755         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
33756         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
33757         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
33758         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
33759         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
33760         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
33761         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
33762         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
33763         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
33764         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
33765         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
33766         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
33767         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
33768         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
33769         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
33770         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
33771         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
33772         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
33773         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
33774         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
33775         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
33776         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
33777         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
33778         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
33779         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
33780         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
33781         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
33782         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
33783         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
33784         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
33785         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
33786         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
33787         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
33788         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
33789         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
33790         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
33791         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
33792         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
33793         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
33794         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
33795         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
33796         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
33797         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
33798         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
33799         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
33800         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
33801         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
33802         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
33803         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
33804         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
33805         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
33806         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
33807         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
33808         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
33809         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
33810         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
33811         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
33812         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
33813         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
33814         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
33815         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
33816         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
33817         Require >= 2.
33818         (FLT_ROUNDS): Expect as macro, not constant.
33819         (FLT_MANT_DIG): Use macro-int-constant.
33820         (DBL_MANT_DIG): Likewise.
33821         (LDBL_MANT_DIG): Likewise.
33822         (FLT_DIG): Likewise.
33823         (DBL_DIG): Likewise.
33824         (LDBL_DIG): Likewise.
33825         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
33826         (DBL_MIN_EXP): Likewise.
33827         (LDBL_MIN_EXP): Likewise.
33828         (FLT_MAX_EXP): Use macro-int-constant.
33829         (DBL_MAX_EXP): Likewise.
33830         (LDBL_MAX_EXP): Likewise.
33831         (FLT_MAX_10_EXP): Likewise.
33832         (DBL_MAX_10_EXP): Likewise.
33833         (LDBL_MAX_10_EXP): Likewise.
33834         (FLT_MAX): Use macro-constant.
33835         (DBL_MAX): Likewise.
33836         (LDBL_MAX): Likewise.
33837         (FLT_EPSILON): Use macro-constant.  Give upper bound.
33838         (DBL_EPSILON): Likewise.
33839         (LDBL_EPSILON): Likewise.
33840         (FLT_MIN): Likewise.
33841         (DBL_MIN): Likewise.
33842         (LDBL_MIN): Likewise.
33843         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
33844         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
33845         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
33846         [ISO11] (FLT_HAS_SUBNORM): Likewise.
33847         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
33848         [ISO11] (DBL_DECIMAL_DIG): Likewise.
33849         [ISO11] (FLT_DECIMAL_DIG): Likewise.
33850         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
33851         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
33852         [ISO11] (FLT_TRUE_MIN): Likewise.
33853         [ISO11] (LDBL_TRUE_MIN): Likewise.
33854         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33855         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
33856         (SCHAR_MIN): Use macro-int-constant.  Specify type.
33857         (SCHAR_MAX): Likewise.
33858         (UCHAR_MAX): Likewise.
33859         (CHAR_MIN): Likewise.
33860         (CHAR_MAX): Likewise.
33861         (MB_LEN_MAX): Use macro-int-constant.
33862         (SHRT_MIN): Use macro-int-constant.  Specify type.
33863         (SHRT_MAX): Likewise.
33864         (USHRT_MAX): Likewise.
33865         (INT_MAX): Likewise.
33866         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
33867         bound negative.
33868         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33869         bound with "U".
33870         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33871         bound with "L".
33872         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
33873         bound negative.  Suffix upper bound with "L".
33874         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
33875         bound with "UL".
33876         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
33877         Specify type.
33878         [C99-based standards] (LLONG_MAX): Likewise.
33879         [C99-based standards] (ULLONG_MAX): Likewise.
33880         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
33881         == 0.
33882         [ISO11] (max_align_t): Require type.
33883         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33884
33885         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
33886         from $CFLAGS, without defining away __attribute__ calls.
33887         (checknamespace): Use $CFLAGS_namespace.
33888
33889         * conform/conformtest.pl (@keywords): Only include C99 keywords
33890         for standards based on C99 or C11.
33891
33892         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
33893         Disable tests.
33894         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
33895         UNIX98]: Likewise.
33896
33897         * conform/conformtest.pl: Handle "macro-int-constant" and test for
33898         usability of symbols in #if.
33899
33900         * conform/conformtest.pl: If macro or constant types start
33901         "promoted:", expect the symbol to be of the following type
33902         promoted by the integer promotions.
33903
33904         * conform/conformtest.pl: Parse all "constant" and "macro" lines
33905         in one place.  Also handle "macro-constant".
33906
33907         * conform/conformtest.pl: Only accept expected macro values with
33908         "==".  Parse all "macro" lines in one place.
33909         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
33910
33911         * conform/conformtest.pl: Handle braced types on "constant" lines
33912         instead of handling "typed-constant".
33913         * conform/data/signal.h-data: Use "constant" instead of
33914         "typed-constant".
33915
33916         * conform/conformtest.pl: Handle "optional-" at start of lines in
33917         one place rather than duplicating several cases.  Handle each
33918         format of "macro" line with initial "optional-".
33919
33920         * conform/conformtest.pl: Only accept expected constant or
33921         optional-constant values with "==".  Parse all "constant" lines in
33922         one place.  Parse all "optional-constant" lines in one place.
33923         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
33924         * conform/data/fmtmsg.h-data: Likewise.
33925         * conform/data/netinet/in.h-data: Likewise.
33926         * conform/data/tar.h-data: Likewise.
33927         * conform/data/limits.h-data: Use "==" form on "constant" and
33928         "optional-constant" lines.
33929
33930         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
33931         Use -std=c99 for XOPEN2K.
33932         (@knownproblems): Remove.
33933         (newtoken): Don't check %isknown.
33934
33935         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
33936         Do not expect macro.
33937         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
33938         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
33939         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
33940         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
33941         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
33942         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
33943         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
33944         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
33945         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
33946         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
33947         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
33948         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
33949         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
33950         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
33951         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
33952         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
33953         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
33954         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
33955         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
33956         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
33957         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
33958         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
33959         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
33960         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
33961         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
33962         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
33963         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
33964         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
33965         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
33966         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
33967         [XPG3] (acosh): Likewise.
33968         [XPG3] (asinh): Likewise.
33969         [XPG3] (atanh): Likewise.
33970         [XPG3] (cbrt): Likewise.
33971         [XPG3] (expm1): Likewise.
33972         [XPG3] (ilogb): Likewise.
33973         [XPG3] (log1p): Likewise.
33974         [XPG3] (logb): Likewise.
33975         [XPG3] (nextafter): Likewise.
33976         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
33977         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
33978         [XPG3] (remainder): Likewise.
33979         [XPG3] (rint): Likewise.
33980         [XPG3 || XPG4 || UNIX98] (round): Likewise.
33981         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
33982         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
33983         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
33984         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
33985         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
33986         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
33987         [UNIX98 || XOPEN2K] (scalb): Expect.
33988         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
33989         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
33990         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
33991         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
33992         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
33993         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
33994         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
33995         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
33996         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
33997         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
33998         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
33999         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
34000         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
34001         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
34002         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
34003         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
34004         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
34005         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
34006         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
34007         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
34008         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
34009         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
34010         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
34011         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
34012         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
34013         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
34014         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
34015         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
34016         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
34017         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
34018         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
34019         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
34020         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
34021         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
34022         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
34023         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
34024         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
34025         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
34026         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
34027         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
34028         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
34029         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
34030         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
34031         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
34032         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
34033         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
34034         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
34035         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
34036         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
34037         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
34038         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
34039         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
34040         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
34041         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
34042         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
34043         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
34044         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
34045         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
34046         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
34047         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
34048         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
34049         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
34050         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
34051         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
34052         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
34053         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
34054         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
34055         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
34056         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
34057         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
34058         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
34059         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
34060         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
34061         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
34062         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
34063         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
34064         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
34065         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
34066         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
34067         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
34068         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
34069         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
34070         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
34071         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
34072         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
34073         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
34074         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
34075         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
34076         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
34077         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
34078         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
34079         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
34080         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
34081         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
34082         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
34083         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
34084         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
34085         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
34086         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
34087         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
34088         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
34089         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
34090         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
34091         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
34092         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
34093         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
34094         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
34095         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
34096         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
34097         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
34098         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
34099         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
34100         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
34101         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
34102         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
34103         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
34104         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
34105         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
34106         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
34107         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
34108         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
34109         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
34110         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
34111         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
34112         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
34113         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
34114         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
34115         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
34116         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
34117         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
34118         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
34119         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
34120         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
34121         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
34122         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
34123         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
34124         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
34125
34126         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
34127         _XOPEN_SOURCE_EXTENDED for XPG4.
34128
34129         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
34130
34131         * Makeconfig (localtime): Remove variable.
34132         (inst_localtime-file): Likewise.
34133
34134 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34135
34136         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
34137         Update.
34138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
34139         Update.
34140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
34141         Update.
34142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
34143         Update.
34144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
34145         Update.
34146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
34147         Update.
34148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
34149         Update.
34150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
34151         Update.
34152         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34153         Update.
34154
34155 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
34156
34157         [BZ #2550]
34158         [BZ #2570]
34159         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
34160         comparisons to determine direction to adjust input.
34161         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34162         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
34163         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34164         Likewise.
34165         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34166         Likewise.
34167         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34168         Likewise.
34169         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34170         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34171         Likewise.
34172         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34173         Likewise.
34174         * math/libm-test.inc (nexttoward_test): Add more tests.
34175
34176 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
34177
34178         [BZ #14040]
34179         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
34180         in version GLIBC_2.1, not GLIBC_2.0.
34181         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
34182         Likewise.
34183
34184 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
34185
34186         [BZ #13942]
34187         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
34188         (1 - x) * (1 + x).
34189         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34190         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
34191         * math/libm-test.inc (acos_test): Add more tests.
34192         (asin_test): Likewise.
34193         * sysdeps/i386/fpu/libm-test-ulps: Update.
34194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34195
34196         [BZ #14034]
34197         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
34198         of square root.
34199         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
34200         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
34201         * math/libm-test.inc (acos_test_tonearest): New function.
34202         (acos_test_towardzero): Likewise.
34203         (acos_test_downward): Likewise.
34204         (acos_test_upward): Likewise.
34205         (asin_test_tonearest): Likewise.
34206         (asin_test_towardzero): Likewise.
34207         (asin_test_downward): Likewise.
34208         (asin_test_upward): Likewise.
34209         (main): Call the new functions.
34210         * sysdeps/i386/fpu/libm-test-ulps: Update.
34211         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34212
34213         [BZ #13884]
34214         [BZ #13924]
34215         * math/e_exp10.c: Include <float.h>.
34216         (__ieee754_exp10): Handle underflow here rather than multiplying
34217         large negative argument by M_LN10.
34218         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
34219         of __ieee754_expf.
34220         * math/e_exp10l.c: Include <float.h>.
34221         (__ieee754_exp10l): Handle underflow here rather than multiplying
34222         large negative argument by M_LN10l.
34223         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
34224         spurious overflow exception on underflow.
34225
34226 2012-04-29  Marek Polacek  <polacek@redhat.com>
34227
34228         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
34229         (__fortify_function): New macro.
34230         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
34231         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
34232         __extern_always_inline.
34233         * libio/bits/stdio2.h: Likewise.
34234         * libio/bits/stdio.h: Likewise.
34235         * string/string.h: Likewise.
34236         * string/bits/string3.h: Likewise.
34237         * include/stdio.h: Likewise.
34238         * stdlib/bits/stdlib.h: Likewise.
34239         * stdlib/stdlib.h: Likewise.
34240         * rt/bits/mqueue2.h: Likewise.
34241         * rt/mqueue.h: Likewise.
34242         * posix/bits/unistd.h: Likewise.
34243         * posix/unistd.h: Likewise.
34244         * io/bits/poll2.h: Likewise.
34245         * io/bits/fcntl2.h: Likewise.
34246         * io/fcntl.h: Likewise.
34247         * io/sys/poll.h: Likewise.
34248         * misc/bits/syslog.h: Likewise.
34249         * misc/bits/syslog-ldbl.h: Likewise.
34250         * misc/sys/syslog.h: Likewise.
34251         * socket/bits/socket2.h: Likewise.
34252         * socket/sys/socket.h: Likewise.
34253         * debug/tst-chk1.c: Likewise.
34254         * wcsmbs/bits/wchar2.h: Likewise.
34255         * wcsmbs/bits/wchar-ldbl.h: Likewise.
34256         * wcsmbs/wchar.h: Likewise.
34257
34258 2012-04-29  Andreas Jaeger  <aj@suse.de>
34259
34260         * Makerules (tests): Remove enable-check-abi protection.
34261         (check-abi-warn): Remove.
34262         (check-abi-%): Remove check-abi-warn usage.
34263
34264         * configure.in: Remove check-abi configure option.
34265         * configure: Regenerated.
34266         * config.make.in (enable-check-abi): Remove.
34267
34268 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
34269
34270         [BZ #14033]
34271         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
34272         double functions to double *_finite functions.
34273
34274         [BZ #13941]
34275         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
34276         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
34277         LDBL_MIN_EXP.
34278         * stdio-common/Makefile (tests): Add tst-sprintf3.
34279         * stdio-common/tst-sprintf3.c: New file.
34280
34281         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
34282         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
34283
34284 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34285
34286         * conform/conformtest.pl: Remove duplicate typed-constant
34287         handling.
34288
34289 2012-04-28  David S. Miller  <davem@davemloft.net>
34290
34291         * Makerules (%.abilist): Add vpath on sysdep_dirs.
34292         (check-abi-%): Remove AWK script prerequisite and explicit
34293         abilist directory.
34294         (check-abi): Rewrite to just diff the symlist with the abilist.
34295         (config-tls, config-abi-config): Delete, no longer used.
34296         (update-abi-%): Remove AWK script and explicit abilist directory.
34297         (update-abi): Rewrite to simply compare and conditionally copy the
34298         symlist and the sysdep abilist file.  Remove update-abi-config
34299         checks.
34300         * abilist/ld.abilist: Remove.
34301         * abilist/libBrokenLocale.abilist: Remove.
34302         * abilist/libanl.abilist: Remove.
34303         * abilist/libcrypt.abilist: Remove.
34304         * abilist/libdl.abilist: Remove.
34305         * abilist/librt.abilist: Remove.
34306         * abilist/libthread_db.abilist: Remove.
34307         * abilist/libutil.abilist: Remove.
34308         * scripts/extract-abilist.awk: Remove.
34309         * scripts/merge-abilist.awk: Remove.
34310         * sysdeps/generic/libcidn.abilist: New file.
34311         * sysdeps/generic/libnss_compat.abilist: New file.
34312         * sysdeps/generic/libnss_db.abilist: New file.
34313         * sysdeps/generic/libnss_dns.abilist: New file.
34314         * sysdeps/generic/libnss_files.abilist: New file.
34315         * sysdeps/generic/libnss_hesiod.abilist: New file.
34316         * sysdeps/generic/libnss_nis.abilist: New file.
34317         * sysdeps/generic/libnss_nisplus.abilist: New file.
34318         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
34319         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
34320         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
34321         file.
34322         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
34323         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
34324         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
34325         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
34326         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
34327         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
34328         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
34329         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
34330         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
34331         file.
34332         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
34333         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
34334         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
34335         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
34336         file.
34337         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
34338         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
34339         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
34340         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
34341         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
34342         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
34343         file.
34344         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
34345         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
34346         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
34347         file.
34348         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
34349         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
34350         New file.
34351         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
34352         New file.
34353         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
34354         New file.
34355         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
34356         New file.
34357         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
34358         New file.
34359         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
34360         New file.
34361         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
34362         New file.
34363         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
34364         New file.
34365         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
34366         New file.
34367         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
34368         New file.
34369         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
34370         New file.
34371         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
34372         New file.
34373         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
34374         New file.
34375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
34376         file.
34377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
34378         New file.
34379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
34380         New file.
34381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
34382         file.
34383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
34384         New file.
34385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
34386         New file.
34387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
34388         file.
34389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
34390         New file.
34391         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
34392         New file.
34393         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
34394         New file.
34395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
34396         New file.
34397         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
34398         New file.
34399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
34400         New file.
34401         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
34402         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
34403         file.
34404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
34405         New file.
34406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
34407         file.
34408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
34409         file.
34410         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
34411         file.
34412         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
34413         file.
34414         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
34415         file.
34416         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
34417         New file.
34418         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
34419         file.
34420         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
34421         file.
34422         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
34423         New file.
34424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
34425         file.
34426         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
34427         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
34428         file.
34429         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
34430         New file.
34431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
34432         file.
34433         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
34434         file.
34435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
34436         file.
34437         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
34438         file.
34439         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
34440         file.
34441         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
34442         New file.
34443         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
34444         file.
34445         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
34446         file.
34447         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
34448         New file.
34449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
34450         file.
34451         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
34452         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
34453         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
34454         file.
34455         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
34456         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
34457         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
34458         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
34459         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
34460         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
34461         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
34462         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
34463         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
34464         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
34465         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
34466         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
34467         file.
34468         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
34469         New file.
34470         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
34471         file.
34472         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
34473         file.
34474         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
34475         file.
34476         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
34477         file.
34478         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
34479         file.
34480         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
34481         New file.
34482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
34483         New file.
34484         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
34485         file.
34486         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
34487         New file.
34488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
34489         file.
34490         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
34491         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
34492         file.
34493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
34494         New file.
34495         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
34496         file.
34497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
34498         file.
34499         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
34500         file.
34501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
34502         file.
34503         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
34504         file.
34505         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
34506         New file.
34507         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
34508         New file.
34509         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
34510         file.
34511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
34512         New file.
34513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
34514         file.
34515
34516 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
34517
34518         * conform/conformtest.pl: Fix typo in handling typed-constant from
34519         allow-header.
34520
34521 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34522
34523         * README: Cut down references to pre-2.6 Linux kernels and
34524         Linuxthreads.  Update lists of configurations in libc and ports
34525         and sort alphabetically.  Say "or newer" with Linux kernel version
34526         requirements.
34527
34528         * config.h.in [IS_IN_build]: Allow compiling without optimization.
34529
34530 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
34531
34532         [BZ #887]
34533         * math/libm-test.inc (logb_test_downward): New test to expose
34534         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
34535         rounding mode.
34536
34537 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
34538
34539         [BZ #14027]
34540         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
34541         to be done.
34542         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
34543         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
34544
34545 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
34546
34547         * sysdeps/unix/i386/brk.S: Remove file.
34548         * sysdeps/unix/i386/dl-brk.S: Likewise.
34549         * sysdeps/unix/i386/pipe.S: Likewise.
34550         * sysdeps/unix/i386/sigreturn.S: Likewise.
34551         * sysdeps/unix/i386/syscall.S: Likewise.
34552         * sysdeps/unix/i386/vfork.S: Likewise.
34553         * sysdeps/unix/i386/wait.S: Likewise.
34554
34555         * sysdeps/unix/common/tcsendbrk.c: Move to ...
34556         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
34557
34558         * configure.in (arm*-none*): Do not allow without
34559         --enable-hacker-mode.
34560         (netbsd*): Remove case setting base_os.
34561         (386bsd*): Likewise.
34562         (freebsd*): Likewise.
34563         (bsdi*): Likewise.
34564         (osf*): Likewise.
34565         (sunos*): Likewise.
34566         (ultrix*): Likewise.
34567         (newsos*): Likewise.
34568         (dynix*): Likewise.
34569         (*bsd*): Likewise.
34570         (sysv*): Likewise.
34571         (isc*): Likewise.
34572         (esix*): Likewise.
34573         (sco*): Likewise.
34574         (minix*): Likewise.
34575         (irix4*): Likewise.
34576         (irix6*): Likewise.
34577         (solaris[2-9]*): Likewise.
34578         (none): Likewise.
34579         * configure: Regenerated.
34580
34581 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34582
34583         [BZ #11521]
34584         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
34585         overflow or cancellation in calculating denominator.
34586         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
34587         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
34588         down expression to avoid unexpected rounding in newer GCCs.
34589         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
34590
34591 2012-04-26  David S. Miller  <davem@davemloft.net>
34592
34593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
34594         long-double compat symbols.
34595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
34596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
34597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
34598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
34599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
34600         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
34601         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
34602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
34603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
34604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
34605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
34606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
34607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
34608
34609 2012-04-25  David S. Miller  <davem@davemloft.net>
34610
34611         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
34612         HWCAP_* values only after the memory barriers have been defined.
34613         (atomic_full_barrier): Define.
34614         (atomic_read_barrier): Define.
34615         (atomic_write_barrier): Define.
34616
34617 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34618
34619         * shlib-versions: Add libgcc_s version information.
34620         * sysdeps/generic/libgcc_s.h: Remove.
34621         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
34622         libgcc_s.h.
34623         * sysdeps/gnu/unwind-resume.c: Likewise.
34624         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
34625
34626 2012-04-25  David S. Miller  <davem@davemloft.net>
34627
34628         * sysdeps/unix/sparc/brk.S: Delete.
34629         * sysdeps/unix/sparc/dl-brk.S: Delete.
34630         * sysdeps/unix/sparc/pipe.S: Delete.
34631         * sysdeps/unix/sparc/sysdep.S: Delete.
34632         * sysdeps/unix/sparc/sysdep.h: Delete.
34633         * sysdeps/unix/sparc/vfork.S: Delete.
34634         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
34635         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
34636         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
34637         (ret_ERRVAL, r0, r1, MOVE): Define.
34638         (JUMPTARGET): Remove.
34639         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
34640         sysdeps/unix/sparc/sysdep.h
34641         (ENTRY, END): Remove.
34642         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
34643
34644 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
34645
34646         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
34647         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
34648         -DIS_IN_build.
34649
34650         * timezone/README: Update upstream location and email address for
34651         tzcode and tzdata.
34652         * timezone/zdump.c: Update from tzcode 2012b.
34653         * timezone/zic.c: Likewise.
34654
34655         * configure.in (libc_cv_as_needed): Remove test.
34656         * configure: Regenerated.
34657         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
34658         conditional definition.
34659         [$(have-as-needed) != yes] (no-as-needed): Likewise.
34660         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
34661         * config.make.in (have-as-needed): Remove variable.
34662
34663 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
34664             Paul Pluzhnikov  <ppluzhnikov@google.com>
34665
34666         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
34667         strings correctly.
34668
34669 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
34670
34671         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
34672         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
34673         * sysdeps/sh/strlen.S: Likewise.
34674
34675 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34676
34677         * sysdeps/unix/fork.S: Remove file.
34678         * sysdeps/unix/i386/fork.S: Likewise.
34679         * sysdeps/unix/sparc/fork.S: Likewise.
34680
34681         * sysdeps/unix/system.c: Remove file.
34682         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
34683
34684         * sysdeps/unix/getegid.S: Remove file.
34685         * sysdeps/unix/geteuid.S: Likewise.
34686
34687 2012-04-24  Roland McGrath  <roland@hack.frob.com>
34688
34689         * scripts/check-localplt.awk: New file.
34690         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
34691         of diff.
34692         * scripts/data/localplt-generic.data: Add a comment.
34693
34694         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
34695         NODE when __dir_mkfile failed.
34696         * sysdeps/mach/hurd/symlinkat.c: Likewise.
34697         Reported by Ludovic Courtès <ludo@gnu.org>.
34698
34699 2012-04-24  Andreas Jaeger  <aj@suse.de>
34700
34701         * Makerules (common-clean): Also remove gen-as-const-headers
34702         files.
34703
34704 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34705
34706         * Makerules (native-compile): Do not change working directory for
34707         build.  Use $(OUTPUT_OPTION) in command.
34708         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
34709
34710 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34711
34712         [BZ #13886]
34713         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
34714         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
34715         * math/libm-test.inc (floor_test): Add more tests.
34716         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
34717
34718 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
34719
34720         * sysdeps/unix/getdents.c: Remove file.
34721         * sysdeps/unix/sysv/getdents.c: Likewise.
34722         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
34723
34724         * sysdeps/unix/syscalls.list (madvise): Add syscall from
34725         sysdeps/unix/mman/syscalls.list.
34726         (mmap): Likewise.
34727         (mprotect): Likewise.
34728         (msync): Likewise.
34729         (munmap): Likewise.
34730         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
34731         * sysdeps/unix/mman/syscalls.list: Remove.
34732         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
34733
34734         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
34735         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
34736         * configure: Regenerated.
34737         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
34738         $(libgcc_s_suffix).
34739         * config.make.in (libgcc_s_suffix): Remove variable.
34740
34741 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
34742
34743         * sysdeps/unix/sysv/gethostname.c: Move to ...
34744         * sysdeps/posix/gethostname.c: ... here.
34745
34746         * sysdeps/unix/execve.S: Remove file.
34747
34748         * sysdeps/unix/_exit.S: Remove file.
34749
34750 2012-04-23  Andreas Jaeger  <aj@suse.de>
34751
34752         [BZ #13739]
34753         * manual/Makefile: Remove make dist support, there's no
34754         need for a stand-alone documentation tar ball.
34755         (TEXI2DVI): Define always, it's not in Makeconfig.
34756         (dist): Removed.
34757         (tar-it): Removed.
34758         (edition): Removed.
34759         (glibc-doc-$(edition).tar): Removed
34760         (%.Z): Removed.
34761         (%.gz): Removed.
34762         (%.uu): Removed.
34763         (ETAGS): Remove, it's in Makeconfig.
34764         (move-if-change): Remove, it's in Makeconfig.
34765
34766 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
34767
34768         [BZ #13970]
34769         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
34770         (strtod, strtof, strtold, strtol, strtoul, strtoq)
34771         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
34772         (strtod_l, strtof_l, strtold_l): Remove __wur.
34773         It is not necessarily an error to ignore strtol's return value.
34774         One can reliably look at the stored endptr to decide whether
34775         the number had valid syntax.
34776
34777 2012-04-21  Andreas Jaeger  <aj@suse.de>
34778
34779         [BZ #13739]
34780         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
34781
34782 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
34783
34784         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
34785         * sysdeps/unix/sysv/Versions: Remove file.
34786
34787 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
34788
34789         [BZ #13927]
34790         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34791
34792 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
34793
34794         [BZ #7064]
34795         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
34796         version from __vm86.
34797
34798 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
34799
34800         * sysdeps/unix/common/lxstat.c: Remove file.
34801         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
34802
34803         * sysdeps/unix/sysv/Makefile: Remove file.
34804
34805         * sysdeps/unix/sysv/direct.h: Remove file.
34806
34807         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
34808         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
34809         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
34810         * sysdeps/unix/sysv/bits/signum.h: Likewise.
34811         * sysdeps/unix/sysv/bits/stat.h: Likewise.
34812         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
34813         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
34814
34815         * sysdeps/unix/sysv/setrlimit.c: Remove file.
34816
34817         * sysdeps/unix/xmknod.c: Remove file.
34818         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
34819
34820         * sysdeps/unix/sysv/settimeofday.c: Remove file.
34821
34822         * sysdeps/unix/sysv/i386/time.S: Remove file.
34823
34824         * sysdeps/unix/fxstat.c: Remove file.
34825         * sysdeps/unix/xstat.c: Likewise.
34826         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
34827
34828         * sysdeps/unix/sysv/sigaction.c: Remove file.
34829
34830         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
34831         (sysdep_headers): Remove variable.
34832         [termio.h not in sysdep_headers] (generated): Likewise.
34833         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
34834         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
34835         * sysdeps/unix/sysv/tcdrain.c: Likewise.
34836         * sysdeps/unix/sysv/tcflow.c: Likewise.
34837         * sysdeps/unix/sysv/tcflush.c: Likewise.
34838         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
34839         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
34840         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
34841         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
34842         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
34843
34844         * sysdeps/unix/siglist.c: Remove file.
34845
34846         * sysdeps/unix/getppid.S: Remove file.
34847
34848         * sysdeps/unix/mkdir.c: Remove file.
34849         * sysdeps/unix/rmdir.c: Likewise.
34850
34851 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
34852
34853         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
34854         ERR_MAX value.
34855         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
34856         errlist-compat value.
34857
34858 2012-04-18  David S. Miller  <davem@davemloft.net>
34859
34860         * sysdeps/generic/memcopy.h (reg_char): Delete.
34861         * debug/strcat_chk.c: Use char, not reg_char.
34862         * debug/strcpy_chk.c: Likewise.
34863         * debug/strncat_chk.c: Likewise.
34864         * debug/strncpy_chk.c: Likewise.
34865         * string/memchr.c: Likewise.
34866         * string/memrchr.c: Likewise.
34867         * string/rawmemchr.c: Likewise.
34868         * string/strcat.c: Likewise.
34869         * string/strchr.c: Likewise.
34870         * string/strchrnul.c: Likewise.
34871         * string/strcmp.c: Likewise.
34872         * string/strcpy.c: Likewise.
34873         * string/strncat.c: Likewise.
34874         * string/strncmp.c: Likewise.
34875         * string/strncpy.c: Likewise.
34876
34877 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34878
34879         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
34880         __builtin_memcopy is called when src and dest ranges are known to not
34881         overlap.
34882
34883 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34884
34885         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
34886         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
34887         fwd_align_merge macro call.
34888         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
34889         bwd_align_merge macro call.
34890         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
34891
34892 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
34893
34894         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
34895         bwd_align_merge macros.
34896         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
34897         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
34898         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
34899
34900 2012-04-18  David S. Miller  <davem@davemloft.net>
34901
34902         * sysdeps/sparc/sparc64/memcopy.h: Delete.
34903
34904 2012-04-18  Andreas Jaeger  <aj@suse.de>
34905
34906         [BZ# 6794]
34907         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
34908         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
34909         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34910
34911         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
34912         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
34913         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34914
34915         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
34916         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
34917         Adjust for changed ldbl-128 files.
34918
34919         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
34920         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
34921         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
34922
34923 2012-04-17  David S. Miller  <davem@davemloft.net>
34924
34925         * sysdeps/sparc/sparc32/memcopy.h: Delete.
34926
34927 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
34928
34929         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
34930         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
34931         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
34932         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
34933         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
34934         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
34935
34936 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34937
34938         [BZ #6794]
34939         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
34940         * math/libm-test.inc: Add ilogb errno and exception tests.
34941         * math/w_ilogb.c: New file: ilogb wrapper.
34942         * math/w_ilogbf.c: New file: ilogbf wrapper.
34943         * math/w_ilogbl.c: New file: ilogbl wrapper.
34944         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
34945         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
34946         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
34947         exception being thrown with 0.0 as argument.
34948         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
34949         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
34950         exception being thrown with 0.0 as argument.
34951         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
34952         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
34953         exception being thrown with 0.0 as argument.
34954         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
34955         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
34956         exception being thrown with 0.0 as argument.
34957         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
34958         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
34959         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
34960         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
34961         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
34962         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
34963         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
34964         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
34965         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
34966
34967 2012-04-17  Petr Baudis  <pasky@ucw.cz>
34968
34969         * include/sys/uio.h: Change __vector to __iovec to avoid clash
34970         with altivec.
34971
34972 2012-04-16  Marek Polacek  <polacek@redhat.com>
34973
34974         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
34975
34976 2012-04-16  Marek Polacek  <polacek@redhat.com>
34977
34978         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
34979         operands of fdivp instruction.
34980
34981 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
34982
34983         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
34984         * elf/tst-auditmod3b.c: Likewise.
34985         * elf/tst-auditmod4b.c: Likewise.
34986         * elf/tst-auditmod5b.c: Likewise.
34987         * elf/tst-auditmod6b.c: Likewise.
34988         * elf/tst-auditmod6c.c: Likewise.
34989         * elf/tst-auditmod7b.c: Likewise.
34990         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
34991         * sysdeps/x86_64/preconfigure.in: Likewise.
34992         * sysdeps/x86_64/preconfigure: Regenerated.
34993
34994 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
34995
34996         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
34997         __ILP32__.
34998
34999 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
35000
35001         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
35002         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
35003
35004 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
35005
35006         [BZ #13973]
35007         * locale/iso-639.def: Fix gl language name. Spotted by
35008         Yaron Shahrabani.
35009
35010 2012-04-12  Roland McGrath  <roland@hack.frob.com>
35011
35012         [BZ #2074]
35013         * libio/libio.h (__io_write_fn): Update comment.
35014
35015 2012-04-12  Petr Baudis  <pasky@ucw.cz>
35016
35017         [BZ #2074]
35018         * stdio.texi (Hook Functions): The user provided writer function
35019         is not allowed to return -1.
35020
35021 2012-04-11  David S. Miller  <davem@davemloft.net>
35022
35023         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35024
35025 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
35026
35027         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
35028         Add a leading slash to rtkaio.
35029
35030 2012-04-11  Jim Meyering  <meyering@redhat.com>
35031
35032         [BZ #11959]
35033         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
35034         It is not necessarily an error to ignore fwrite's return
35035         value.  One can reliably use ferror to test for errors after
35036         the fact.
35037
35038 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35039
35040         * bits/types.h (__snseconds_t): New type.
35041         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
35042
35043         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
35044         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
35045         (__SNSECONDS_T_TYPE): Likewise.
35046         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
35047         (__SNSECONDS_T_TYPE): Likewise.
35048         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
35049         (__SNSECONDS_T_TYPE): Likewise.
35050
35051 2012-04-10  Andreas Jaeger  <aj@suse.de>
35052
35053         [BZ #2636]
35054         * manual/time.texi (Processor Time): Return type of times is
35055         elapsed real time since an arbitrary point in the past.
35056         (CPU Time): Move CLK_TCK from here...
35057         (Processor Time): ...to here.  Correct description.
35058         * manual/conf.texi (Constants for Sysconf): Correct description of
35059         _SC_CLK_TCK.
35060
35061 2012-04-10  David S. Miller  <davem@davemloft.net>
35062
35063         [BZ #13967]
35064         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
35065         where the is a gap between DT_REL(A) and DT_JMPREL.
35066
35067 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
35068
35069         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
35070         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35071         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35072
35073 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
35074
35075         * elf/dl-support.c (_dl_inhibit_cache): New variable.
35076         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
35077         (dl_main): Handle --inhibit-cache.
35078         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
35079         _dl_inhibit_cache.
35080         * elf/dl-load.c (_dl_map_object): Use it.
35081         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
35082
35083 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35084
35085         [BZ #13872]
35086         * sysdeps/i386/fpu/e_powl.S (p78): New object.
35087         (__ieee754_powl): Saturate large exponents rather than testing for
35088         overflow of y*log2(x).
35089         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
35090         * math/libm-test.inc (pow_test): Do not permit spurious overflow
35091         exceptions.
35092
35093         [BZ #11521]
35094         * math/s_ctan.c: Include <float.h>.
35095         (__ctan): Avoid internal overflow or cancellation in calculating
35096         denominator.
35097         * math/s_ctanf.c: Likewise.
35098         * math/s_ctanl.c: Likewise.
35099         * math/s_ctanh.c: Likewise.
35100         * math/s_ctanhf.c: Likewise.
35101         * math/s_ctanhl.c: Likewise.
35102         * math/libm-test.inc (ctan_test): Add more tests.
35103         (ctanh_test): Likewise.
35104         * sysdeps/i386/fpu/libm-test-ulps: Update.
35105         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35106
35107 2012-04-09  Andreas Jaeger  <aj@suse.de>
35108
35109         [BZ #6894]
35110         * manual/filesys.texi (Directory Entries): Mention that d_namlen
35111         is an optional BSD extension.
35112
35113         [BZ #10254]
35114         * manual/stdio.texi (Opening Streams): Document additional fopen
35115         parameters.
35116
35117 2012-04-09  Roland McGrath  <roland@hack.frob.com>
35118
35119         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
35120         %eax without telling the compiler.
35121
35122 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
35123
35124         [BZ # 13963]
35125         * manual/install.texi: Use sourceware.org.
35126
35127 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
35128
35129         [BZ #13873]
35130         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
35131         (__ieee754_pow): Generate overflow and underflow using huge*huge
35132         and tiny*tiny rather than just returning constant infinity or zero
35133         for large exponents.
35134         * math/libm-test.inc (pow_test): Require overflow exceptions for
35135         applicable cases of large exponents.
35136
35137         [BZ #706]
35138         * sysdeps/i386/fpu/e_pow.S (p10): New object.
35139         (__ieee754_pow): Use iterative multiplication algorithm only for
35140         integer exponents with absolute value below 1024.  Check for odd
35141         integer exponents when using algorithm for real exponents.
35142         * math/libm-test.inc (pow_test): Add more tests.
35143         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35144
35145 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
35146
35147         [BZ #13705]
35148         * math/libm-test.inc (exp_test): Do not allow overflow exception
35149         on underflow test.
35150
35151 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
35152
35153         [BZ #13705]
35154         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
35155         instead of __kernel_standard_f.
35156
35157 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
35158
35159         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
35160         * sysdeps/x86_64/memset_chk.S: Likewise.
35161
35162 2012-04-08  Andreas Jaeger  <aj@suse.de>
35163
35164         [BZ #10153]
35165         * manual/startup.texi (Environment Access): Describe return value
35166         for putenv and setenv.
35167
35168         [BZ #6895]
35169         * manual/filesys.texi (Directory Entries): Add description for
35170         DT_LNK.
35171
35172         [BZ #6890]
35173         * manual/filesys.texi (Directory Entries): Clarify that it's file
35174         system not operating system in the description of DT_UNKNOWN.
35175
35176         [BZ #6578]
35177         * manual/syslog.texi (closelog): Fix reference, it's openlog.
35178
35179 2012-04-08  Stephen Compall  <s11@member.fsf.org>
35180
35181         [BZ #6649]
35182         * manual/llio.texi (Opening and Closing Files): Add cross
35183         reference to explain mode argument.
35184
35185 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
35186
35187         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
35188         * sysdeps/x86_64/memset_chk.S: Likewise.
35189
35190 2012-04-07  David S. Miller  <davem@davemloft.net>
35191
35192         * elf/elf.h (R_SPARC_WDISP10): Define.
35193         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
35194         R_SPARC_SIZE32.
35195         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
35196         R_SPARC_SIZE64 and R_SPARC_H34.
35197
35198 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
35199
35200         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
35201         conditions and remove no longer applicable assertion.
35202
35203 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35204
35205         * bits/byteswap.h: Include <features.h>.
35206         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
35207         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
35208
35209 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
35210
35211         * bits/byteswap.h (__bswap_16): Removed.
35212         Include <bits/byteswap-16.h> to get __bswap_16.
35213         * sysdeps/i386/bits/byteswap.h: Likewise.
35214         * sysdeps/s390/bits/byteswap.h: Likewise.
35215         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35216         * bits/byteswap-16.h: New file.
35217         * sysdeps/i386/bits/byteswap-16.h: Likewise.
35218         * sysdeps/s390/bits/byteswap-16.h: Likewise.
35219         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
35220         * string/Makefile (headers): Add bits/byteswap-16.h.
35221
35222 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
35223
35224         [BZ #13895]
35225         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
35226         extra indirection.
35227         * nss/Makefile (tests-static, tests): Add tst-nss-static.
35228         * nss/tst-nss-static.c: New.
35229
35230 2012-04-06  Robert Millan  <rmh@gnu.org>
35231
35232         [BZ #6486]
35233         * manual/llio.texi (File Position Primitive): lseek
35234         refers to WHENCE when it really means OFFSET.
35235
35236 2012-04-06  Andreas Jaeger  <aj@suse.de>
35237
35238         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
35239         strncmp declarations.
35240
35241         * abilist/libc.abilist: Add __poll and __ppoll.
35242
35243 2012-04-05  David S. Miller  <davem@davemloft.net>
35244
35245         * scripts/check-local-headers.sh: Accept a host triplet in the
35246         path matched by the exclude regexp.
35247
35248         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
35249         definition.
35250         * sysdeps/powerpc/powerpc32/dl-machine.h
35251         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
35252         * sysdeps/s390/s390-32/dl-machine.h
35253         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35254         * sysdeps/sparc/sparc32/dl-machine.h
35255         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35256         * sysdeps/sparc/sparc64/dl-machine.h
35257         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
35258
35259         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
35260         lazy binding.
35261         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
35262         undefined symbol errors.
35263
35264         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
35265         DT_NEEDED entries.
35266
35267 2012-04-05  Michael Matz  <matz@suse.de>
35268
35269         [BZ #13592]
35270         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
35271
35272 2012-04-05  Andreas Jaeger  <aj@suse.de>
35273
35274         [BZ #13908]
35275         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
35276         comment.
35277
35278 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35279
35280         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
35281         which ROUND is no valid rounding mode.
35282
35283 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35284
35285         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
35286         read again.
35287         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
35288
35289 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35290
35291         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
35292         an exception using FPU order intentionally.
35293
35294 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
35295
35296         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
35297         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
35298         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
35299         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
35300
35301 2012-04-05  Simon Josefsson  <simon@josefsson.org>
35302
35303         [BZ #12340]
35304         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
35305         EINVAL when BUFLEN is too smal.
35306
35307 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
35308
35309         [BZ #13553]
35310         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
35311         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
35312
35313 2012-04-03  Andreas Jaeger  <aj@suse.de>
35314
35315         [BZ #13938]
35316         * manual/setjmp.texi (System V contexts): Fix sentence.
35317
35318         [BZ #13926]
35319         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
35320         New macro for this case.
35321         [!__GNUC__] (__bswap_64): New inline function for this case.
35322         * sysdeps/x86_64/bits/byteswap.h: Likewise.
35323         * bits/byteswap.h: Likewise.
35324         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
35325         ull, guard with __GLIBC_HAVE_LONG_LONG.
35326
35327         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
35328         __GLIBC_HAVE_LONG_LONG.
35329
35330         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
35331         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
35332
35333 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
35334
35335         [BZ #13691]
35336         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
35337         inptr and inend, rather than using last_ch.
35338
35339 2012-04-02  David S. Miller  <davem@davemloft.net>
35340
35341         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
35342         * stdio-common/printf-parse.h (read_int): Change return type to
35343         'int', return -1 on INT_MAX overflow.
35344         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
35345         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
35346         overflows INT_MAX.  Check for overflow of in-format-string precision
35347         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
35348         SIZE_MAX not INT_MAX for integer overflow test.
35349         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
35350         skip the construct in the format string but do not record anything.
35351         * stdio-common/bug22.c: Adjust to test both width/prevision
35352         INT_MAX overflow as well as total length INT_MAX overflow.  Check
35353         explicitly for proper errno values.
35354
35355 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
35356
35357         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
35358         CHAR_MAX.
35359         * string/test-strcmp.c [! WIDE]: Likewise.
35360         * time/tst-mktime2.c: Likewise for INT_MAX.
35361         * string/test-string.h: #include <sys/param.h> for MIN.
35362
35363         * csu/init-first.c (__libc_init_first): Call __ctype_init.
35364         * sysdeps/i386/init-first.c (init): Likewise.
35365         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
35366         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
35367         * sysdeps/sh/init-first.c (init): Likewise.
35368
35369 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
35370
35371         * po/ru.po: Update from translation team.
35372         * po/vi.po: Likewise.
35373
35374 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
35375
35376         * resolv/nss_dns/dns-host.c: Merge copyright years.
35377
35378 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35379
35380         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
35381         Optimize memcpy with prefetch if
35382         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
35383         src, dst pointers have unequal 16 byte alignments.
35384
35385 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
35386
35387         [BZ #13928]
35388         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
35389         from a CNAME entry and return the minimum ttl for the query.
35390         (gaih_getanswer_slice): Likewise.
35391
35392 2012-03-30  Jeff Law  <law@redhat.com>
35393
35394         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
35395         due to long keys.
35396         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
35397         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
35398
35399         * resolv/nss_dns/dns-host.c: Update copyright year.
35400
35401 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
35402
35403         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
35404         requests to save a system call.  Fix check that all bytes are sent.
35405
35406         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
35407         comments for sendmmsg.
35408
35409 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
35410
35411         [BZ #13691]
35412         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
35413         with only 1 character between 0x0041 and 0x01b0.
35414         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
35415         * wcsmbs/tst-mbsnrtowcs.c: New file.
35416
35417 2012-03-29  David S. Miller  <davem@davemloft.net>
35418
35419         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
35420         small copies by hand.
35421
35422 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
35423
35424         [BZ #13761]
35425         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
35426         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
35427         group memberships.
35428
35429 2012-03-28  David S. Miller  <davem@davemloft.net>
35430
35431         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
35432         that branches into memcpy.
35433         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
35434         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
35435         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
35436         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
35437         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
35438         bits.
35439         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
35440         implementation too.
35441         * sysdeps/sparc/mempcpy.S: New file.
35442
35443         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
35444         the IFUNC routine in the libc case.
35445         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
35446
35447         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
35448         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
35449         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
35450         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
35451         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
35452         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
35453         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
35454         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
35455
35456         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
35457         loop to 256 bytes instead of 64 bytes and fix test signedness.
35458
35459         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
35460         * sysdeps/sparc/sparc32/Makefile: rather than here...
35461         * sysdeps/sparc/sparc64/Makefile: and here.
35462
35463 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
35464
35465         * malloc/mallocbug.c: Avoid warnings about unused variables.
35466
35467 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
35468
35469         [BZ #13760]
35470         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
35471         in the right place. Discard and retry query if response is
35472         larger than input buffer size.
35473
35474 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
35475
35476         [BZ #369]
35477         [BZ #2678]
35478         [BZ #3866]
35479         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
35480         x for large integer exponent.
35481         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
35482         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
35483         sign of result as needed afterwards.
35484         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
35485         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
35486         result for underflowing pow the same as for overflow.
35487         (__kernel_standard_l): Handle powl overflow and underflow here
35488         rather than calling __kernel_standard.
35489         * math/libm-test.inc (pow_test): Add more tests.
35490
35491         [BZ #3868]
35492         [BZ #13879]
35493         [BZ #13910]
35494         [BZ #13911]
35495         [BZ #13912]
35496         [BZ #13913]
35497         [BZ #13915]
35498         [BZ #13916]
35499         [BZ #13917]
35500         [BZ #13918]
35501         [BZ #13919]
35502         [BZ #13920]
35503         [BZ #13921]
35504         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
35505         * sysdeps/ieee754/k_standard.c: Include <float.h>.
35506         (__kernel_standard_l): New function.
35507         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
35508         __kernel_standard.
35509         * math/w_acosl.c (__acosl): Likewise.
35510         * math/w_asinl.c (__asinl): Likewise.
35511         * math/w_atan2l.c (__atan2l): Likewise.
35512         * math/w_atanhl.c (__atanhl): Likewise.
35513         * math/w_coshl.c (__coshl): Likewise.
35514         * math/w_exp10l.c (__exp10l): Likewise.
35515         * math/w_exp2l.c (__exp2l): Likewise.
35516         * math/w_fmodl.c (__fmodl): Likewise.
35517         * math/w_hypotl.c (__hypotl): Likewise.
35518         * math/w_j0l.c (__j0l, __y0l): Likewise.
35519         * math/w_j1l.c (__j1l, __y1l): Likewise.
35520         * math/w_jnl.c (__jnl, __ynl): Likewise.
35521         * math/w_lgammal.c (__lgammal): Likewise.
35522         * math/w_log10l.c (__log10l): Likewise.
35523         * math/w_log2l.c (__log2l): Likewise.
35524         * math/w_logl.c (__logl): Likewise.
35525         * math/w_powl.c (__powl): Likewise.
35526         * math/w_remainderl.c (__remainderl): Likewise.
35527         * math/w_scalbl.c (sysv_scalbl): Likewise.
35528         * math/w_sinhl.c (__sinhl): Likewise.
35529         * math/w_sqrtl.c (__sqrtl): Likewise.
35530         * math/w_tgammal.c (__tgammal): Likewise.
35531         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
35532         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
35533         * math/libm-test.inc (acos_test): Add more tests.
35534         (acosh_test): Likewise.
35535         (asin_test): Likewise.
35536         (atanh_test): Likewise.
35537         (exp_test): Likewise.
35538         (exp10_test): Likewise.
35539         (exp2_test): Likewise.
35540         (expm1_test): Likewise.
35541         (lgamma_test): Likewise.
35542         (log_test): Likewise.
35543         (log10_test): Likewise.
35544         (log1p_test): Likewise.
35545         (log2_test): Likewise.
35546         (pow_test): Do not allow some spurious overflow exceptions.
35547         (sqrt_test): Add more tests.
35548         (tgamma_test): Likewise.
35549         (y0_test): Likewise.
35550         (y1_test): Likewise.
35551         (yn_test): Likewise.
35552
35553 2012-03-27  Anton Blanchard  <anton@samba.org>
35554
35555         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
35556         MAP_HUGETLB.
35557         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
35558         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
35559         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
35560
35561 2012-03-27  David S. Miller  <davem@davemloft.net>
35562
35563         * conform/Makefile: Run run-conformtest.sh using $(BASH).
35564
35565         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
35566         have-as-vis3 check.
35567
35568 2012-03-27  Andreas Jaeger  <aj@suse.de>
35569
35570         * sysdeps/x86_64/elf/configure.in: Moved to ...
35571         * sysdeps/x86_64/configure.in: ... here.
35572         * sysdeps/x86_64/elf/start.S: Moved to ...
35573         * sysdeps/x86_64/start.S: ... here.
35574         * sysdeps/x86_64/elf/configure: Delete.
35575
35576         * sysdeps/x86_64/configure.in: Merge contents from
35577         sysdeps/i386/configure.in (without i686 check).
35578
35579         * sysdeps/i386/elf/Versions: Merge into ...
35580         * sysdeps/i386/Versions: ... this.
35581         * sysdeps/i386/elf/Versions: Delete file.
35582         * sysdeps/i386/elf/start.S: Moved to ...
35583         * sysdeps/i386/start.S: ...here.
35584         * sysdeps/i386/elf/configure.in: Merge into...
35585         * sysdeps/i386/configure.in: ...here.
35586         * sysdeps/i386/elf/configure.in: Delete file.
35587         * sysdeps/i386/elf/configure: Delete file.
35588
35589         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
35590         * debug/backtracesyms.c: ... here.
35591         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
35592         * debug/backtracesymsfd.c: ... here.
35593         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
35594         * sysdeps/generic/ifunc-sel.h: ... here.
35595
35596         * sysdeps/unix/i386/start.c: Delete file.
35597         * sysdeps/unix/sparc/start.c: Delete file.
35598         * sysdeps/unix/start.c: Delete file.
35599
35600         * sysdeps/sh/elf/configure.in: Moved to ...
35601         * sysdeps/sh/configure.in: ... here.
35602         * sysdeps/sh/elf/start.S: Moved to ...
35603         * sysdeps/sh/start.S: ... here.
35604         * sysdeps/sh/elf/configure: Delete file.
35605
35606         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
35607         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
35608         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
35609         * sysdeps/powerpc/powerpc64/entry.h: ... here.
35610         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
35611         * sysdeps/powerpc/powerpc64/start.S: here.
35612         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
35613         * sysdeps/powerpc/powerpc64/Makefile: ... this.
35614         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
35615         * sysdeps/powerpc/powerpc64/configure.in: ... this.
35616         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
35617
35618         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
35619         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
35620         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
35621         * sysdeps/powerpc/powerpc32/start.S: ... here.
35622         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
35623         * sysdeps/powerpc/powerpc32/configure.in: ... this.
35624         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
35625
35626         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
35627         * sysdeps/powerpc/ifunc-sel.h: ... here.
35628         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
35629         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
35630
35631         * sysdeps/sparc/elf/configure.in: Moved to ...
35632         * sysdeps/sparc/configure.in: ... here.
35633         * sysdeps/sparc/elf/configure: Delete file.
35634         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
35635         * sysdeps/sparc/sparc32/start.S: ... here.
35636         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
35637         * sysdeps/sparc/sparc64/start.S: ... here.
35638         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
35639         * sysdeps/sparc/sparc32/Makefile: ... this.
35640         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
35641         * sysdeps/sparc/sparc64/Makefile: ... this.
35642
35643         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
35644         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
35645         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
35646         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
35647         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
35648         * sysdeps/s390/s390-32/setjmp.S: ... here.
35649         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
35650         * sysdeps/s390/s390-32/configure.in: ... here.
35651         * sysdeps/s390/s390-32/elf/configure: Delete file.
35652         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
35653         * sysdeps/s390/s390-32/start.S: ... here.
35654
35655         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
35656         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
35657         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
35658         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
35659         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
35660         * sysdeps/s390/s390-64/setjmp.S: ... here.
35661         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
35662         * sysdeps/s390/s390-64/configure.in: ... here
35663         * sysdeps/s390/s390-64/elf/configure: Delete file.
35664         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
35665         * sysdeps/s390/s390-64/start.S: ... here.
35666         * sysdeps/s390/s390-64/elf/configure: Delete.
35667
35668         * configure.in: Remove support for elf directories in sysdeps.
35669
35670         * configure: Regenerated.
35671         * sysdeps/i386/configure: Regenerated.
35672         * sysdeps/powerpc/powerpc32/configure: Regenerated.
35673         * sysdeps/powerpc/powerpc64/configure: Regenerated.
35674         * sysdeps/s390/s390-32/configure: Regenerated.
35675         * sysdeps/s390/s390-64/configure: Regenerated.
35676         * sysdeps/sh/configure: Regenerated.
35677         * sysdeps/sparc/configure: Regenerated.
35678         * sysdeps/x86_64/configure: Regenerated.
35679
35680 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
35681
35682         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35683
35684         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
35685         denormal result into account.
35686
35687 2012-03-25  Roland McGrath  <roland@hack.frob.com>
35688
35689         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
35690         Reported by Allan McRae <allan@archlinux.org>.
35691
35692 2012-03-23  Jeff Law  <law@redhat.com>
35693
35694         * nss/getnssent.c (__nss_getent): Fix typo.
35695
35696 2012-03-23  David S. Miller  <davem@davemloft.net>
35697
35698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35699
35700 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
35701
35702         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
35703         to pad to uint64_t for each field.
35704         (dl_tls_index): Replace unsigned long with uint64_t.
35705
35706 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
35707         Paul Pluzhnikov  <ppluzhnikov@google.com>
35708
35709         [BZ #6528]
35710         * grp/Makefile (otherlibs): Don't set it.
35711         * inet/Makefile (otherlibs): Likewise.
35712         * login/Makefile (otherlibs): Likewise.
35713         * nscd/Makefile (otherlibs): Likewise.
35714         * posix/Makefile (otherlibs): Likewise.
35715         * pwd/Makefile (otherlibs): Likewise.
35716         * rt/Makefile (otherlibs): Likewise.
35717         * sunrpc/Makefile (otherlibs): Likewise.
35718         * nss/Makefile (otherlibs): Likewise.
35719         Add libnss_files to routines and static-only-routines.
35720         ($(objpfx)getent): Remove rule.
35721         * resolv/Makefile: Add libnss_dns and libresolv to routines and
35722         static-only-routines.
35723
35724 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35725
35726         [BZ #13892]
35727         * math/s_cexp.c: Include <float.h>.
35728         (__cexp): Handle exp result overflowing not necessarily
35729         overflowing both real and imaginary parts of result.
35730         * math/s_cexpf.c: Likewise.
35731         * math/s_cexpl.c: Likewise.
35732         * math/libm-test.inc (cexp_test): Add more tests.
35733         * sysdeps/i386/fpu/libm-test-ulps: Update.
35734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35735
35736 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35737
35738         * include/link.h (ELFW): New macro.
35739         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
35740         Replace ELF64_R_TYPE with ELFW(R_TYPE).
35741
35742 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35743
35744         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
35745         with uint64_t.
35746
35747 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35748
35749         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
35750         declaration.
35751         (struct La_x32_retval): Likewise.
35752
35753 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
35754
35755         * sysdeps/x86_64/preconfigure.in: New file.
35756         * sysdeps/x86_64/preconfigure: New generated file.
35757
35758 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
35759
35760         [BZ #13824]
35761         * math/e_exp2l.c: Include <float.h>.
35762         (__ieee754_exp2l): Handle overflow and underflow cases
35763         separately.  Only pass fractional part of argument to
35764         __ieee754_expl.
35765         * math/libm-test.inc (exp2_test): Add more tests.
35766
35767         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
35768         negating x to take absolute value.
35769         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35770         Likewise.
35771         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35772         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
35773         Likewise.
35774         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
35775         computing low part if x was negated.
35776         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35777
35778 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35779
35780         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
35781         la_x32_gnu_pltexit.
35782         (pltexit): Cast int_retval to ptrdiff_t.
35783         * elf/tst-auditmod3b.c: Likewise.
35784         * elf/tst-auditmod4b.c: Likewise.
35785         * elf/tst-auditmod5b.c: Likewise.
35786         * elf/tst-auditmod6b.c: Likewise.
35787         * elf/tst-auditmod6c.c: Likewise.
35788         * elf/tst-auditmod7b.c: Likewise.
35789
35790         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
35791         and x32_gnu_pltexit.
35792
35793         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
35794         __ELF_NATIVE_CLASS.
35795         (La_x32_regs): New macro.
35796         (La_x32_retval): Likewise.
35797         (la_x32_gnu_pltenter): New function prototype.
35798         (la_x32_gnu_pltexit): Likewise.
35799
35800 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
35801
35802         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
35803         exponent.
35804
35805         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35806
35807         * configure.in (libc_cv_cc_nofma): Check for option to disable
35808         generation of FMA instructions.
35809         * configure: Regenerate.
35810         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
35811         * sysdeps/ieee754/dbl-64/Makefile: New file.
35812         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35813         Remove brandred-fma4.
35814         (CFLAGS-brandred-fma4.c): Remove.
35815         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
35816         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
35817         define.
35818         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
35819         define.
35820
35821 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35822
35823         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
35824         LLONG_MAX != LONG_MAX.
35825         (_itoa_word): Use _ITOA_WORD_TYPE on value.
35826         (_fitoa_word): Likewise.
35827         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
35828         LLONG_MAX != LONG_MAX.
35829         * stdio-common/_itowa.h: Include <_itoa.h>.
35830         (_itowa_word): Use _ITOA_WORD_TYPE on value.
35831         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
35832         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
35833         only if not defined.
35834         (_ITOA_WORD_TYPE): Likewise.
35835         (_itoa_word): Use _ITOA_WORD_TYPE on value.
35836         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
35837
35838 2012-03-21  David S. Miller  <davem@davemloft.net>
35839
35840         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35841
35842 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
35843
35844         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
35845         of x86_64 when setting libc_cv_slibdir, libdir and
35846         libc_cv_localedir.
35847         * sysdeps/unix/sysv/linux/configure: Regenerated.
35848
35849 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35850
35851         * manual/lang.texi (Old Varargs): Remove section.
35852         (How Variadic): Update menu.
35853         (va_start): Do not mention varargs.h.
35854
35855 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
35856             Joseph Myers  <joseph@codesourcery.com>
35857
35858         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
35859         link test.
35860         * configure: Regenerated.
35861
35862 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
35863
35864         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
35865         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
35866         conformtest.pl
35867
35868 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35869
35870         * NOTES: Remove.
35871         * Makefile (files-for-dist): Remove NOTES.
35872         (NOTES): Remove rule.
35873         * README: Don't refer to NOTES.
35874         * manual/creature.texi: Don't include macros.texi.
35875         * manual/intro.texi (creature.texi): Remove comment referring to
35876         NOTES.
35877
35878         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
35879         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
35880         * configure: Regenerated.
35881         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
35882         LIBC_TRY_CC_OPTION.
35883         (libc_cv_as_i686): Likewise.
35884         (libc_cv_cc_avx): Likewise.
35885         (libc_cv_cc_sse2avx): Likewise.
35886         (libc_cv_cc_fma4): Likewise.
35887         (libc_cv_cc_novzeroupper): Likewise.
35888         * sysdeps/i386/configure: Regenerated.
35889
35890         [BZ #13883]
35891         * sysdeps/i386/fpu/s_cexp.S: Remove.
35892         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
35893         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
35894         * math/libm-test.inc (cexp_test): Add more tests.
35895         * sysdeps/i386/fpu/libm-test-ulps: Update.
35896         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35897
35898 2012-03-21  Allan McRae  <allan@archlinux.org>
35899
35900         * timezone/Makefile: Do not install iso3166.tab and zone.tab
35901
35902 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
35903
35904         [BZ #13871]
35905         * math/w_exp2.c: Do not include <float.h>.
35906         (o_threshold, u_threshold): Remove.
35907         (__exp2): Calculate result before checking finiteness and calling
35908         __kernel_standard.
35909         * math/w_exp2f.c: Likewise.
35910         * math/w_exp2l.c: Likewise.
35911         * math/libm-test.inc (exp2_test): Require overflow exception for
35912         1e6 input.
35913
35914         [BZ #3866]
35915         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
35916         range of signed 64-bit integers before using fistpll.  Remove
35917         checks for whether integers fit in mantissa bits.
35918         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
35919         the range of signed 32-bit integers before using fistpl.  Remove
35920         checks for whether integers fit in mantissa bits.
35921         * sysdeps/i386/fpu/e_powl.S (p64): New object.
35922         (__ieee754_powl): Test for y outside the range of signed 64-bit
35923         integers before using fistpll.  Reduce 64-bit values to 63-bit
35924         ones as needed.
35925         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
35926         divide-by-zero is raised for zero to large negative powers.
35927         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
35928         (__ieee754_powl): Test for y outside the range of signed 64-bit
35929         integers before using fistpll.  Reduce 64-bit values to 63-bit
35930         ones as needed.
35931         * math/libm-test.inc (pow_test): Add more tests.
35932
35933 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35934
35935         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
35936         <stdio-common/_itoa.h>.
35937         * debug/segfault.c: Likewise.
35938         * elf/dl-cache.c: Likewise.
35939         * elf/dl-minimal.c: Likewise.
35940         * elf/dl-misc.c: Likewise.
35941         * elf/dl-sysdep.c: Likewise.
35942         * elf/dl-version.c: Likewise.
35943         * elf/rtld.c: Likewise.
35944         * hurd/hurdsock.c: Likewise.
35945         * hurd/lookup-retry.c: Likewise.
35946         * malloc/malloc.c: Likewise.
35947         * malloc/mtrace.c: Likewise.
35948         * nscd/nscd_getgr_r.c: Likewise.
35949         * nscd/nscd_getpw_r.c: Likewise.
35950         * nscd/nscd_getserv_r.c: Likewise.
35951         * posix/getopt_init.c: Likewise.
35952         * posix/wordexp.c: Likewise.
35953         * stdio-common/_itoa.c: Likewise.
35954         * stdio-common/printf_fphex.c: Likewise.
35955         * stdio-common/vfprintf.c: Likewise.
35956         * string/_strerror.c: Likewise.
35957         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
35958         * sysdeps/i386/i686/hp-timing.h: Likewise.
35959         * sysdeps/mach/_strerror.c: Likewise.
35960         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
35961         * sysdeps/mach/hurd/sethostid.c: Likewise.
35962         * sysdeps/mach/hurd/xmknodat.c: Likewise.
35963         * sysdeps/mach/xpg-strerror.c: Likewise.
35964         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
35965         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
35966         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
35967         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
35968         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
35969         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
35970         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
35971         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
35972         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
35973         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
35974         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
35975         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
35976         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
35977         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
35978         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
35979         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
35980         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
35981         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
35982         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
35983         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
35984         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
35985
35986         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
35987
35988         * stdio-common/_itoa.h: Moved to ...
35989         * sysdeps/generic/_itoa.h: Here.
35990
35991         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
35992
35993         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
35994         instead of "_itoa.h" and "_itowa.h".
35995         * stdio-common/vfprintf.: Likewise.
35996
35997 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
35998
35999         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
36000         <bits/wordsize.h>.
36001         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
36002         (__signbit): Likwise.
36003         (llrintf): Likwise.
36004         (llrint): Likwise.
36005
36006 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
36007
36008         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
36009         __WORDSIZE != 64.
36010
36011 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
36012
36013         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
36014         OVERFLOW_EXCEPTION_OK.
36015         * math/libm-test.inc ("Philosophy"): Update comment about
36016         exception testing.
36017         (OVERFLOW_EXCEPTION): Define.
36018         (OVERFLOW_EXCEPTION_OK): Likewise.
36019         (INVALID_EXCEPTION_OK): Renumber.
36020         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
36021         (IGNORE_ZERO_INF_SIGN): Likewise.
36022         (test_exceptions): Handle FE_OVERFLOW.
36023         (exp10_test): Expect overflow exceptions.
36024         (exp2_test): Likewise.
36025         (expm1_test): Likewise.
36026         (nextafter_test): Likewise.
36027         (pow_test): Likewise.
36028         (scalbn_test): Likewise.
36029         (scalbln_test): Likewise.
36030
36031 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36032
36033         * sysdeps/x86_64/bits/atomic.h
36034         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
36035         64bit integer.
36036         (atomic_exchange_acq): Likewise.
36037         (__arch_exchange_and_add_body): Likewise.
36038         (__arch_add_body): Likewise.
36039         (atomic_add_negative): Likewise.
36040         (atomic_add_zero): Likewise.
36041
36042 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36043
36044         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
36045         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
36046
36047 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36048
36049         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
36050         Check __x86_64__ instead of __WORDSIZE.
36051
36052 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36053
36054         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
36055
36056 2012-03-19  David S. Miller  <davem@davemloft.net>
36057
36058         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36059
36060         * sysdeps/sparc/fpu/fenv_private.h: New file.
36061         * sysdeps/sparc/fpu/math_private.h: Use it.
36062         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
36063         Remove.
36064         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
36065         (libc_feholdexcept_setroundl): Remove.
36066         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
36067         Remove.
36068         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
36069         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
36070
36071 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36072
36073         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
36074         int64_t instead of long int.
36075         (INSERT_WORDS64): Likwise.
36076
36077 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
36078
36079         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
36080         _Unwind_GetCFA return to _Unwind_Ptr first.
36081
36082 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
36083
36084         [BZ #13629]
36085         * math/s_clog.c: Include <float.h>.
36086         (__clog): Scale large or subnormal inputs.
36087         * math/s_clogf.c: Likewise.
36088         * math/s_clogl.c: Likewise.
36089         * math/s_clog10.c: Include <float.h>.
36090         (M_LOG10_2): Define.
36091         (__clog10): Scale large or subnormal inputs.
36092         * math/s_clog10f.c: Likewise.
36093         * math/s_clog10l.c: Likewise.
36094         * math/libm-test.inc (clog_test): Add more tests.
36095         (clog10_test): Likewise.
36096         * sysdeps/i386/fpu/libm-test-ulps: Update.
36097         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36098
36099         [BZ #11451]
36100         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
36101         x and y.
36102         * math/libm-test.inc (atan2_test): Add another test.
36103
36104         * Makerules (common-objdir-compile): Remove.
36105         * sysdeps/unix/Makefile (config-generated): Do not add
36106         $(unix-generated) to variable.
36107         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
36108         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
36109         Remove rule.
36110         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
36111         Likewise.
36112         [generic bits/local_lim.h] (before-compile): Do not append to
36113         variable.
36114         [generic bits/local_lim.h] (common-generated): Likewise.
36115         [generic sys/param.h] (before-compile): Do not append to variable.
36116         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
36117         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
36118         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
36119         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
36120         include.
36121         [generic sys/param.h] (sys/param.h-includes): Remove variable.
36122         [generic sys/param.h] (sys/param.h-includes): Remove rule.
36123         [generic sys/param.h] ($(addprefix
36124         $(common-objpfx),$(sys/param.h-includes))): Likewise.
36125         [generic sys/param.h] (common-generated): Do not append to
36126         variable.
36127         [generic sys/param.h] (sysdep_headers): Likewise.
36128         [generic bits/errno.h] (before-compile): Do not append to
36129         variable.
36130         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
36131         rule.
36132         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
36133         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
36134         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
36135         [generic bits/errno.h] (common-generated): Do not append to
36136         variable.
36137         [generic bits/ioctls.h] (before-compile): Do not append to
36138         variable.
36139         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
36140         rule.
36141         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
36142         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
36143         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
36144         rule.
36145         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
36146         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
36147         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
36148         [generic bits/ioctls.h] (common-generated): Do not append to
36149         variable.
36150         [generic sys/syscall.h] (syscall.h): Remove variable.
36151         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
36152         rule.
36153         [generic sys/syscall.h] (before-compile): Do not append to
36154         variable.
36155         [generic sys/syscall.h] (common-generated): Likewise.
36156         * sysdeps/unix/errnos-tmpl.c: Remove file.
36157         * sysdeps/unix/errnos.awk: Likewise.
36158         * sysdeps/unix/ioctls-tmpl.c: Likewise.
36159         * sysdeps/unix/ioctls.awk: Likewise.
36160         * sysdeps/unix/mk-local_lim.c: Likewise.
36161         * sysdeps/unix/snarf-ioctls: Likewise.
36162
36163 2012-03-19  Richard Henderson  <rth@twiddle.net>
36164
36165         * sysdeps/i386/fpu/fenv_private.h: New file.
36166         * sysdeps/i386/fpu/math_private.h: Use it.
36167         (math_opt_barrier, math_force_eval): Remove.
36168         (libc_feholdexcept_setround_53bit): Remove.
36169         (libc_feupdateenv_53bit): Remove.
36170         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36171         (math_opt_barrier, math_force_eval): Remove.
36172         (libc_feholdexcept): Remove.
36173         (libc_feholdexcept_setround): Remove.
36174         (libc_fetestexcept, libc_fesetenv): Remove.
36175         (libc_feupdateenv_test): Remove.
36176         (libc_feupdateenv, libc_feholdsetround): Remove.
36177         (libc_feresetround): Remove.
36178
36179         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
36180         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
36181
36182         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
36183         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
36184         (libc_feupdateenv_testl): New.
36185         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
36186         (libc_feupdateenv_testf): New.
36187         (libc_feupdateenv): Use libc_feupdateenv_test.
36188         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
36189         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
36190
36191         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
36192         (libc_feholdsetroundf, libc_feholdsetroundl): New.
36193         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
36194         (libc_feresetround_noex): New.
36195         (libc_feresetround_noexf): New.
36196         (libc_feresetround_noexl): New.
36197         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
36198         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
36199         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
36200         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
36201         SET_RESTORE_ROUND.
36202         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
36203         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
36204         (__cos): Likewise.
36205         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
36206         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
36207         SET_RESTORE_ROUND_NOEX.
36208         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
36209         SET_RESTORE_ROUND_NOEXF.
36210         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
36211         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
36212         (libc_feholdsetroundf): New.
36213         (libc_feresetround, libc_feresetroundf): New.
36214
36215         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
36216         (libc_feholdexcept_setround_53bit): Convert from macro to function.
36217         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
36218
36219         * sysdeps/generic/math_private.h: Include <fenv.h>.
36220         (default_libc_feholdexcept): New.
36221         (default_libc_feholdexcept_setround): New.
36222         (default_libc_fesetenv, default_libc_feupdateenv): New.
36223         (libc_feholdexcept): Only define if undefined.
36224         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
36225         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
36226         (libc_feholdexcept_setroundl): Likewise.
36227         (libc_feholdexcept_setround_53bit): Likewise.
36228         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
36229         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
36230         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
36231         (libc_feupdateenv_53bit): Likewise.
36232         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
36233         (libc_feholdexcept): Convert from macro to inline function.
36234         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
36235         (libc_fesetenv, libc_feupdateenv): Likewise.
36236
36237         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
36238         not previously defined.
36239         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
36240         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
36241         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
36242         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
36243         * sysdeps/ieee754/flt-32/math_private.h: New file.
36244         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
36245         math_private.h below SET_FLOAT_WORD.
36246         (__isnan, __isinf_ns, __finite): Remove.
36247         (__isnanf, __isinf_nsf, __finitef): Remove.
36248
36249 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
36250
36251         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36252
36253 2012-03-17  David S. Miller  <davem@davemloft.net>
36254
36255         [BZ #6471]
36256         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
36257         for 2.16.
36258
36259 2012-03-16  David S. Miller  <davem@davemloft.net>
36260
36261         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
36262         warnings.
36263
36264         [BZ #6471]
36265         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
36266         properly.
36267         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
36268         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
36269         sysdep_routines when subdir is sysvipc.
36270         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
36271         __getshmlba helper.
36272
36273         * sysdeps/sparc/fpu/libm-test/ulps: Update.
36274
36275 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36276
36277         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
36278         [__LP64__].
36279
36280 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36281
36282         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
36283         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
36284         (__lround): Renamed to ...
36285         (__llround): This.  Replace long int with long long int.
36286         Define lround functions as aliases of llround functions.
36287         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
36288
36289 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36290
36291         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
36292         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
36293         adresses to uintptr_t.  Replace "long int" and "unsigned long
36294         int" with "greg_t" on va_arg.
36295
36296 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36297
36298         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
36299         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
36300
36301         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
36302         Move e_machine check before EI_CLASS check.  Handle x32
36303         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
36304         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
36305         SKIP_EM_IA_64 and include
36306         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
36307
36308         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
36309         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
36310         (add_system_dir): New macro.
36311
36312         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
36313         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
36314
36315 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36316
36317         [BZ #2551]
36318         [BZ #2552]
36319         [BZ #2553]
36320         [BZ #2554]
36321         [BZ #2562]
36322         [BZ #2563]
36323         [BZ #2565]
36324         [BZ #2566]
36325         [BZ #2576]
36326         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
36327         (y0): Likewise.
36328         * math/w_j0f.c (j0f): Likewise.
36329         (y0f): Likewise.
36330         * math/w_j0l.c (__j0l): Likewise.
36331         (__y0l): Likewise.
36332         * math/w_j1.c (j1): Likewise.
36333         (y1): Likewise.
36334         * math/w_j1f.c (j1f): Likewise.
36335         (y1f): Likewise.
36336         * math/w_j1l.c (__j1l): Likewise.
36337         (__y1l): Likewise.
36338         * math/w_jn.c (jn): Likewise.
36339         (yn): Likewise.
36340         * math/w_jnf.c (jnf): Likewise.
36341         (ynf): Likewise.
36342         * math/w_jnl.c (__jnl): Likewise.
36343         (__ynl): Likewise.
36344         * math/libm-test.inc (j0_test): Add more tests.
36345         (j1_test): Likewise.
36346         (jn_test): Likewise.  Add trailing semicolon to existing test.
36347         (y0_test): Likewise.
36348         (y1_test): Likewise.
36349         * sysdeps/i386/fpu/libm-test-ulps: Update.
36350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36351
36352         [BZ #13851]
36353         [BZ #13854]
36354         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
36355         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
36356         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
36357         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
36358         (__tanl): Set errno for infinite argument.
36359         * sysdeps/i386/fpu/mptan.c: Remove.
36360         * sysdeps/i386/fpu/s_tan.S: Likewise.
36361         * sysdeps/i386/fpu/s_tanl.S: Likewise.
36362         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
36363         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
36364         * math/libm-test.inc (tan_test): Add more tests and enable more
36365         tests for double and long double.
36366         * sysdeps/i386/fpu/libm-test-ulps: Update.
36367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36368
36369 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
36370
36371         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
36372         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
36373
36374 2012-03-16  Roland McGrath  <roland@hack.frob.com>
36375
36376         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
36377         * configure.in: Use it for both main tree and add-ons.
36378         * configure: Regenerated.
36379
36380 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
36381
36382         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
36383
36384 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
36385
36386         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
36387         in comment.
36388
36389         [BZ #13851]
36390         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
36391         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
36392         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
36393         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
36394         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
36395         infinite argument.
36396         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
36397         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
36398         != 0 for prec == 2.
36399         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
36400         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
36401         * sysdeps/i386/fpu/s_cosl.S: Likewise.
36402         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
36403         * sysdeps/i386/fpu/s_sinl.S: Likewise.
36404         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
36405         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
36406         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
36407         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
36408         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
36409         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
36410         * math/libm-test.inc (cos_test): Add more tests and enable more
36411         tests for long double.
36412         (sin_test): Likewise.
36413         (sincos_test): Likewise.
36414         * sysdeps/i386/fpu/libm-test-ulps: Update.
36415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36416
36417 2012-03-16  David S. Miller  <davem@davemloft.net>
36418
36419         * sysdeps/sparc/fpu/math_private.h: New file.
36420
36421 2012-03-15  David S. Miller  <davem@davemloft.net>
36422
36423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
36424         file.
36425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
36426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
36427         file.
36428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
36429         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
36430         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
36431         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
36432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
36433         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
36434         sysdep routines.
36435         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36436
36437         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
36438         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
36439
36440         * sysdeps/sparc/sparc-ifunc.h: New file.
36441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
36442         sparc-ifunc.h
36443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
36444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
36445         Likewise.
36446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
36447         Likewise.
36448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
36449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
36450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
36451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
36452         Likewise.
36453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
36454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
36455         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
36456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
36457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
36458         Likewise.
36459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
36460         Likewise.
36461         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
36462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
36463         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
36464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
36465         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
36466         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
36467         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
36468         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
36469         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
36470         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
36471         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
36472         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
36473         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
36474         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
36475         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
36476         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
36477         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
36478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
36479         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
36480         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
36481         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
36482         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
36483         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
36484         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
36485
36486 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36487
36488         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
36489         scaling.
36490         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36491
36492 2012-03-15  Andreas Jaeger  <aj@suse.de>
36493
36494         [BZ #13852]
36495         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
36496         ieee754/flt-32 implementation for sin, cos and sincos.
36497         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
36498         * sysdeps/i386/fpu/s_cosf.S: Likewise.
36499         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
36500         * sysdeps/i386/fpu/s_sinf.S: Likewise.
36501         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
36502         ieee754/flt-32 implementation for tan.
36503
36504         * math/libm-test.inc (cos_test): Enable some large input tests for
36505         float as well
36506         (sin_test): Likewise.
36507         (sincos_test): Likewise.
36508         (tan_test): Add tests for large input.
36509
36510         * sysdeps/i386/fpu/libm-test-ulps: Update.
36511
36512 2012-03-15  Andreas Jaeger  <aj@suse.de>
36513
36514         [BZ #13658]
36515         * math/libm-test.inc (cos_test): Add more test cases.
36516         (sin_test): Likewise.
36517         (sincos_test): Likewise.
36518
36519 2012-03-15  Andreas Jaeger  <aj@suse.de>
36520
36521         [BZ #13837]
36522         * math/libm-test.inc (cos_test): Add a test case for large input
36523         value.
36524         (sin_test): Likewise.
36525         (sincos_test): Likewise.
36526
36527 2012-03-15  Andreas Jaeger  <aj@suse.de>
36528             Joseph Myers  <joseph@codesourcery.com>
36529
36530         [BZ #13658]
36531         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
36532         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
36533         * sysdeps/i386/fpu/branred.c: Likewise.
36534         * sysdeps/i386/fpu/dosincos.c: Likewise.
36535         * sysdeps/i386/fpu/mpa.c: Likewise.
36536         * sysdeps/i386/fpu/s_cos.S: Likewise.
36537         * sysdeps/i386/fpu/s_sin.S: Likewise.
36538         * sysdeps/i386/fpu/s_sincos.S: Likewise.
36539         * sysdeps/i386/fpu/sincos32.c: Likewise.
36540
36541         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
36542         Define.
36543         (libc_feupdateenv_53bit): Define.
36544         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
36545         Define.
36546         (libc_feupdateenv_53bit): Define.
36547
36548         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
36549         53 bit (without extend i386 double precision).
36550
36551         * math/libm-test.inc (sincos_test): Add tests for large input.
36552         (sin): Likewise.
36553         (cos): Likewise.
36554
36555         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
36556
36557 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
36558
36559         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36560
36561 2012-03-15  David S. Miller  <davem@davemloft.net>
36562
36563         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
36564         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
36565         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
36566         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
36567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
36568         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
36569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
36570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
36571         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
36572         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
36573         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
36574         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
36575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
36576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
36577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
36578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
36579         file.
36580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
36581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
36582         file.
36583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
36584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
36585         file.
36586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
36587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
36588         file.
36589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
36590         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
36591         fmin/fmax sysdep routines.
36592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
36593
36594 2012-03-14  David S. Miller  <davem@davemloft.net>
36595
36596         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
36597         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
36598         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
36599         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
36600         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
36601         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
36602         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
36603         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
36604         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
36605         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
36606         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
36607         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
36608         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
36609         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
36610         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
36611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
36612         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
36613         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
36614         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
36615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
36616         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
36617         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
36618         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
36619         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
36620         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
36621         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
36622         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
36623         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
36624         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
36625         routines.
36626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
36627         file.
36628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
36629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
36630         file.
36631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
36632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
36633         file.
36634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
36635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
36636         file.
36637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
36638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
36639         file.
36640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
36641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
36642         file.
36643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
36644         file.
36645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
36646         file.
36647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
36648         file.
36649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
36650         New file.
36651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
36652         file.
36653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
36654         file.
36655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
36656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
36657         file.
36658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
36659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
36660         file.
36661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
36662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
36663         file.
36664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
36665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
36666         VIS3 routines.
36667
36668         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
36669         New file.
36670
36671         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36672
36673         * sysdeps/sparc/configure.in: New file.
36674         * sysdeps/sparc/configure: Generate.
36675         * configure.in (libc_cv_sparc_as_vis3): Substitute.
36676         * configure: Regenerate.
36677         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
36678         * config.make.in (have-as-vis3): New.
36679         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
36680         available use -Av9d instead of -Av9a.
36681         * sysdeps/sparc/sparc64/Makefile: Likewise.
36682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
36683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
36684         New file.
36685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
36686         file.
36687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
36688         New file.
36689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
36690         file.
36691         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
36692         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
36693         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
36694         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
36695         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
36696
36697         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
36698         fzeros/fnegs to load 0x80000000 into a float register instead of
36699         using the stack.
36700         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
36701
36702 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36703
36704         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
36705         bits/syscall.h.
36706         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
36707         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
36708         ($(inst_includedir)/bits/syscall.h): Remove rule.
36709         ($(objpfx)bits/syscall.d): Include instead of
36710         $(objpfx)syscall-list.d.
36711         (generated): Change syscall-list.h and syscall-list.d to
36712         bits/syscall.h and bits/syscall.d.
36713
36714 2012-03-14  Roland McGrath  <roland@hack.frob.com>
36715
36716         [BZ #13846]
36717         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
36718
36719 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
36720
36721         [BZ #13841]
36722         * math/s_csqrt.c: Include <float.h>.
36723         (__csqrt): Scale large or subnormal inputs.
36724         * math/s_csqrtf.c: Likewise.
36725         * math/s_csqrtl.c: Likewise.
36726         * math/libm-test.inc (csqrt_test): Add more tests.
36727         * sysdeps/i386/fpu/libm-test-ulps: Update.
36728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36729
36730         [BZ #13840]
36731         * math/libm-test.inc (hypot_test): Add more tests.
36732
36733 2012-03-13  David S. Miller  <davem@davemloft.net>
36734
36735         [BZ #13840]
36736         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
36737         double-precision for the calculation instead of scaling.
36738
36739 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
36740
36741         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
36742         manipulate bits before adding and subtracting TWO52[sx].
36743         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
36744         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
36745         Likewise.
36746         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
36747
36748 2012-03-13  David S. Miller  <davem@davemloft.net>
36749
36750         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
36751         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
36752         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
36753         rtld-global-offsets.h
36754         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
36755
36756         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
36757         large parameters.
36758
36759         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
36760
36761         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
36762         'err' in the ifdef scope in which it is actually used.
36763
36764         * nss/nss_db/db-init.c: Include string.h
36765
36766 2012-03-12  David S. Miller  <davem@davemloft.net>
36767
36768         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
36769         masking out of the most significant byte of random value used.
36770         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36771         Fix coding style in previous change.
36772
36773         * sysdeps/unix/sysv/linux/kernel-features.h
36774         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
36775         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
36776         expression.
36777         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
36778         later.
36779
36780 2012-03-11  David S. Miller  <davem@davemloft.net>
36781
36782         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
36783         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
36784         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
36785         for 'resultvar' otherwise things get truncated on 64-bit.
36786
36787         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
36788         Fix masking out of the most significant byte of random value used.
36789
36790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36791
36792 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
36793
36794         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36795
36796 2012-03-09  David S. Miller  <davem@davemloft.net>
36797
36798         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
36799         variables with appropriate CPP guards.
36800         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
36801         from the frame pointer, not the stack pointer.  Correct layout
36802         comments.  Fix test on resulting framesize and the management of
36803         the outregs buffer for pltexit.  Preserve floating point return
36804         values across _dl_call_pltexit call.
36805         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
36806         framesize and the management of the outregs buffer for pltexit.
36807         Preserve floating point return values across _dl_call_pltexit
36808         call.
36809         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
36810         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
36811         (la_sparc64_gnu_pltexit): New functions.
36812         (print_exit): Fix format string for return register value.
36813
36814 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
36815
36816         * sunrpc/Makefile (others): Add rpcgen.
36817         ($(objpfx)rpcgen): Remove special build rule and dependency on
36818         libc.
36819         * sunrpc/rpcgen.c: New file.
36820
36821 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
36822
36823         [BZ #13673]
36824         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
36825         * stdio-common/bug-vfprintf-nargs.c: Likewise.
36826         * sysdeps/i386/crti.S: Likewise.
36827         * sysdeps/i386/crtn.S: Likewise.
36828         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
36829         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
36830         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
36831         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
36832         * sysdeps/sh/crti.S: Likewise.
36833         * sysdeps/sh/crtn.S: Likewise.
36834         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
36835
36836         [BZ #13673]
36837         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
36838         with URL.
36839         * locale/programs/locfile-kw.gperf: Likewise.
36840         * locale/programs/charmap-kw.h: Regenerated.
36841         * locale/programs/locfile-kw.h: Likewise.
36842
36843         [BZ #13673]
36844         * intl/plural.y: Replace FSF snail mail address with URL.
36845         * intl/plural.c: Regenerated.
36846
36847 2012-03-09  Richard Henderson  <rth@twiddle.net>
36848
36849         * include/math_private.h: Remove file.
36850         * math/math_private.h: Move file ...
36851         * sysdeps/generic/math_private.h: ... here.
36852
36853         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
36854         * sysdeps/powerpc/fpu/math_private.h: Likewise.
36855         * sysdeps/x86_64/fpu/math_private.h: Likewise.
36856
36857         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
36858         and <math_private.h>.
36859         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
36860         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
36861         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
36862         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
36863         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
36864         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
36865         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
36866         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
36867         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
36868         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
36869         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
36870         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
36871         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
36872         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
36873         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
36874         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
36875         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
36876         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
36877         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
36878         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
36879         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
36880         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
36881         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
36882         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
36883         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
36884         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
36885         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
36886         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
36887         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
36888         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
36889         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
36890         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
36891         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
36892         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
36893         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
36894         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
36895         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
36896         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
36897         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
36898         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
36899         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
36900         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
36901         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
36902         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
36903         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
36904         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
36905         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
36906         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
36907         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
36908         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
36909         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
36910         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
36911         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
36912         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
36913         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
36914         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
36915         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
36916         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
36917         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
36918         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
36919         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
36920         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
36921         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
36922         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
36923         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
36924         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
36925         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
36926         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
36927         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
36928         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
36929         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
36930         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
36931         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
36932         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
36933         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
36934         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
36935         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
36936         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
36937         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
36938         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
36939         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
36940         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
36941         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
36942         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
36943         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
36944         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
36945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
36946         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
36947         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
36948         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
36949         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
36950         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
36951         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
36952         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
36953         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
36954         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
36955         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
36956         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
36957         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
36958         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
36959         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
36960         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
36961         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
36962         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
36963         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
36964         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
36965         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
36966         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
36967         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
36968         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
36969         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
36970         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
36971         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
36972         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
36973         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
36974         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
36975         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
36976         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
36977         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
36978         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
36979         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
36980         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
36981         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
36982         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
36983         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
36984         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
36985         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
36986         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
36987         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
36988         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
36989         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
36990         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
36991         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
36992         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
36993         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
36994         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
36995         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
36996         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
36997         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
36998         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
36999         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
37000         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
37001         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
37002         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
37003         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
37004         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
37005         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
37006         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
37007         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
37008         * sysdeps/ieee754/k_standard.c: Likewise.
37009         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
37010         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
37011         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
37012         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
37013         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
37014         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
37015         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
37016         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
37017         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
37018         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
37019         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
37020         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
37021         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
37022         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
37023         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
37024         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
37025         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
37026         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
37027         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
37028         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
37029         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
37030         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
37031         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
37032         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
37033         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
37034         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
37035         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
37036         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
37037         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
37038         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
37039         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
37040         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
37041         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
37042         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
37043         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
37044         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
37045         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
37046         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
37047         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
37048         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
37049         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
37050         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
37051         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
37052         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
37053         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
37054         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
37055         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
37056         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
37057         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
37058         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
37059         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
37060         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
37061         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
37062         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
37063         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
37064         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
37065         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
37066         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
37067         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
37068         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
37069         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
37070         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
37071         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
37072         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
37073         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
37074         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
37075         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
37076         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
37077         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
37078         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
37079         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
37080         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
37081         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
37082         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
37083         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
37084         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
37085         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
37086         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
37087         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37088         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
37089         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
37090         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
37091         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
37092         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
37093         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
37094         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
37095         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
37096         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
37097         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37098         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
37099         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
37100         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
37101         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
37102         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
37103         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
37104         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
37105         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
37106         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
37107         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
37108         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
37109         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
37110         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
37111         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
37112         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
37113         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
37114         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
37115         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
37116         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
37117         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
37118         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
37119         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
37120         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
37121         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
37122         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
37123         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
37124         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
37125         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
37126         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
37127         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
37128         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
37129         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
37130         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
37131         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
37132         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
37133         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
37134         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
37135         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
37136         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
37137         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
37138         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
37139         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
37140         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
37141         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
37142         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
37143         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
37144         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
37145         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
37146         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
37147         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
37148         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
37149         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
37150         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
37151         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
37152         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
37153         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
37154         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
37155         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
37156         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
37157         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
37158         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
37159         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
37160         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
37161         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
37162         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
37163         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
37164         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
37165         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
37166         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
37167         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
37168         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
37169         * sysdeps/ieee754/s_lib_version.c: Likewise.
37170         * sysdeps/ieee754/s_matherr.c: Likewise.
37171         * sysdeps/ieee754/s_signgam.c: Likewise.
37172         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
37173         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
37174         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
37175         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
37176         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
37177         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37178         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
37179         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
37180         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
37181         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
37182         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
37183         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
37184         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
37185         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
37186         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
37187         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
37188         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
37189         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
37190         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
37191         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
37192         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
37193
37194 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37195
37196         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
37197         * sunrpc/rpc_main.c: Likewise.
37198         * sunrpc/rpc_svcout.c: Likewise.
37199
37200 2012-03-09  David S. Miller  <davem@davemloft.net>
37201
37202         * include/math_private.h: New file.
37203
37204 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
37205
37206         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
37207         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
37208         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
37209         from <bits/socket_type.h>.
37210         (enum __socket_type): Don't define here.
37211         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
37212         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37213         bits/socket_type.h.
37214
37215         [BZ #13566]
37216         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
37217         checking __USE_GNU.
37218
37219         * Makerules ($(inst_includedir)/%.h): New rule.
37220         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
37221         (install-others): Remove variable setting.
37222         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
37223
37224 2012-03-08  Richard Henderson  <rth@twiddle.net>
37225
37226         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
37227         from macro to inline function; merge with the
37228         !__LIBC_INTERNAL_MATH_INLINES version.
37229         (__ieee754_sqrtf): Likewise.
37230
37231         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
37232         to inline function.
37233         (__rintf, __floor, __floorf): Likewise.
37234
37235         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
37236         macro to inline function.
37237         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
37238
37239         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
37240         not <math/math_private.h>.
37241
37242 2012-03-08  David S. Miller  <davem@davemloft.net>
37243
37244         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
37245         copyright year.
37246         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
37247
37248 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
37249
37250         * resolv/gai_misc.c (handle_requests): Fix struct timespec
37251         normalization.
37252         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
37253         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
37254
37255 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
37256
37257         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
37258         be defined individually, they must be defined as a block.  Define
37259         S for printing a string instead of hidint the different by using a
37260         macro for adding the 'l'.
37261         * stdio-common/tst-fphex-wide.c: Adjust.
37262
37263 2012-03-07  Marek Polacek  <polacek@redhat.com>
37264
37265         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
37266
37267 2012-03-08  Marek Polacek  <polacek@redhat.com>
37268
37269         [BZ #13806]
37270         * stdio-common/Makefile (tests): Add tst-fphex-wide.
37271         * stdio-common/tst-fphex.c: Define a few macros to make the
37272         test reusable.  Use them.
37273         * stdio-common/tst-fphex-wide.c: New file.
37274
37275 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
37276
37277         [BZ #6911]
37278         * manual/macros.texi (gnusystems): New macro.
37279         (nongnusystems): Likewise.
37280         (gnulinuxhurdsystems): Likewise.
37281         (gnuhurdsystems): Likewise..
37282         (gnulinuxsystems): Likewise.
37283         * manual/charset.texi: Use new macros or @theglibc{} to refer to
37284         variants of the GNU system, not "GNU system".
37285         * manual/conf.texi: Likewise.
37286         * manual/errno.texi: Likewise.  Update example of errno macro
37287         expansion.
37288         * manual/filesys.texi: Likewise.
37289         (getumask): Document as specific to GNU/Hurd.
37290         * manual/install.texi: Likewise.  Reword some references to
37291         GNU/Linux.
37292         * manual/intro.texi: Likewise.
37293         * manual/io.texi: Likewise.
37294         (File Name Portability): Detail which constraints are inapplicable
37295         to all GNU systems and which are only inapplicable to GNU/Hurd.
37296         * manual/job.texi: Likewise.
37297         * manual/llio.texi: Likewise.
37298         (O_NOCTTY): Document as present on GNU/Linux.
37299         * manual/maint.texi: Likewise.
37300         * manual/memory.texi: Likewise.
37301         * manual/pattern.texi: Likewise.
37302         * manual/pipe.texi: Likewise.
37303         * manual/process.texi: Likewise.
37304         * manual/resource.texi: Likewise.
37305         (RUSAGE_CHILDREN): Remove statement about specifying a particular
37306         child on GNU/Hurd.
37307         * manual/setjmp.texi: Likewise.
37308         * manual/signal.texi: Likewise.
37309         * manual/startup.texi: Likewise.
37310         * manual/stdio.texi: Likewise.
37311         * manual/terminal.texi: Likewise.
37312         (ONLCR): Document as POSIX.
37313         (OXTABS): Document availability on GNU/Linux as XTABS.
37314         (ONOEOT): Document availability separately from other bits.
37315         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
37316         * manual/time.texi: Likewise.
37317         * manual/users.texi: Likewise.
37318         * INSTALL: Regenerated.
37319         * sysdeps/gnu/errlist.c: Regenerated.
37320
37321         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
37322         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
37323         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
37324         puts.
37325         * configure: Regenerated.
37326
37327 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
37328
37329         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
37330         default includes instead of AC_HEADER_CHECK.
37331         * sysdeps/i386/configure: Regenerated.
37332
37333         [BZ #10716]
37334         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
37335         * math/s_cacoshf.c (__cacoshf): Likewise.
37336         * math/s_cacoshl.c (__cacoshl): Likewise.
37337         * math/s_casinh.c (__casinh): Set signs of result from argument.
37338         * math/s_casinhf.c (__casinhf): Likewise.
37339         * math/s_casinhl.c (__casinhl): Likewise.
37340         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
37341         (casinh_test): Add more tests.
37342         * sysdeps/i386/fpu/libm-test-ulps: Update.
37343         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37344
37345 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
37346
37347         * po/zh_TW.po: Update from translation team.
37348
37349         * login/Makefile (distribute): Remove variable.
37350         * catgets/Makefile: Likewise.
37351         * mach/Makefile: Likewise.
37352         * malloc/Makefile: Likewise.
37353         * misc/Makefile: Likewise.
37354         * iconv/Makefile: Likewise.
37355         * nscd/Makefile: Likewise.
37356         * hurd/Makefile: Likewise.
37357         * manual/Makefile: Likewise.
37358         * locale/Makefile: Likewise.
37359         * intl/Makefile: Likewise.
37360         * conform/Makefile: Likewise.
37361         * nss/Makefile: Likewise.
37362         * time/Makefile: Likewise.
37363         * soft-fp/Makefile: Likewise.
37364         * dirent/Makefile: Likewise.
37365         * gmon/Makefile: Likewise.
37366         * po/Makefile: Likewise.
37367         * rt/Makefile: Likewise.
37368         * socket/Makefile: Likewise.
37369         * math/Makefile: Likewise.
37370         * signal/Makefile: Likewise.
37371         * debug/Makefile: Likewise.
37372         * elf/Makefile: Likewise.
37373         * timezone/Makefile: Likewise.
37374         * stdlib/Makefile: Likewise.
37375         * iconvdata/Makefile: Likewise.
37376         * sunrpc/Makefile: Likewise.
37377         * io/Makefile: Likewise.
37378         * argp/Makefile: Likewise.
37379         * inet/Makefile: Likewise.
37380         * hesiod/Makefile: Likewise.
37381         * grp/Makefile: Likewise.
37382         * csu/Makefile: Likewise.
37383         * wctype/Makefile: Likewise.
37384         * crypt/Makefile: Likewise.
37385         * libio/Makefile: Likewise.
37386         * string/Makefile: Likewise.
37387         * nis/Makefile: Likewise.
37388         * resolv/Makefile: Likewise.
37389         * stdio-common/Makefile: Likewise.
37390         * wcsmbs/Makefile: Likewise.
37391         * dlfcn/Makefile: Likewise.
37392         * posix/Makefile: Likewise.
37393
37394         [BZ #6959]
37395         * timezone/Makefile: Don't install timezone files, just the programs
37396         and scripts.
37397
37398 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
37399
37400         * nss/databases.def: Add missing gshadow entry.
37401
37402         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
37403
37404 2012-03-06  Marek Polacek  <polacek@redhat.com>
37405
37406         [BZ #13726]
37407         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
37408         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
37409         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
37410         * stdio-common/tst-long-dbl-fphex.c: New file.
37411
37412 2012-03-06  David S. Miller  <davem@davemloft.net>
37413
37414         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
37415         (set_obp_int): New function.
37416         (get_obp_int): New function.
37417         (__get_clockfreq_via_dev_openprom): Likewise.
37418         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
37419         Avoid unused variable warnings on 'val' and use builtin_expect.
37420         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
37421         __builtin_expect.
37422         (INLINE_CLONE_SYSCALL): Likewise.
37423
37424 2012-03-05  David S. Miller  <davem@davemloft.net>
37425
37426         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37427
37428 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
37429
37430         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37431
37432         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
37433         only for |x| >= 40.
37434         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
37435
37436 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
37437
37438         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
37439         Replace gettimeofday with __vdso_gettimeofday.
37440
37441         * sysdeps/unix/sysv/linux/x86_64/init-first.c
37442         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
37443         __vdso_clock_gettime and __vdso_getcpu.
37444
37445         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
37446         time with __vdso_time.
37447
37448 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37449
37450         * manual/lang.texi (size_t): Note types to which size_t may be
37451         equivalent with the GNU C Library, but do not describe when
37452         differences between them are significant.
37453
37454 2012-03-05  Andreas Jaeger  <aj@suse.de>
37455
37456         * sysdeps/i386/fpu/libm-test-ulps: Update.
37457
37458 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
37459
37460         [BZ #3976]
37461         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
37462         (__ieee754_pow): Save and restore rounding mode and use
37463         round-to-nearest for main computations.
37464         * math/libm-test.inc (pow_test_tonearest): New function.
37465         (pow_test_towardzero): Likewise.
37466         (pow_test_downward): Likewise.
37467         (pow_test_upward): Likewise.
37468         (main): Call the new functions.
37469         * sysdeps/i386/fpu/libm-test-ulps: Update.
37470         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37471
37472         [BZ #3976]
37473         * math/libm-test.inc (cosh_test_tonearest): New function.
37474         (cosh_test_towardzero): Likewise.
37475         (cosh_test_downward): Likewise.
37476         (cosh_test_upward): Likewise.
37477         (sinh_test_tonearest): Likewise.
37478         (sinh_test_towardzero): Likewise.
37479         (sinh_test_downward): Likewise.
37480         (sinh_test_upward): Likewise.
37481         (main): Call the new functions.
37482         * sysdeps/i386/fpu/libm-test-ulps: Update.
37483         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37484
37485 2012-03-05  Tom de Vries  <tom@codesourcery.com>
37486
37487         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
37488         default stack guard is set in last bytes.
37489         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
37490
37491 2012-03-05  Kees Cook  <keescook@chromium.org>
37492
37493         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
37494
37495         [BZ #13656]
37496         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
37497         possibly allocate from heap instead of stack.
37498         * stdio-common/bug-vfprintf-nargs.c: New file.
37499         * stdio-common/Makefile (tests): Add nargs overflow test.
37500
37501 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
37502
37503         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37504
37505 2012-03-03  Marek Polacek  <polacek@redhat.com>
37506
37507         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
37508         * math/math_private.h: Likewise.
37509         * stdlib/tst-strtod.c: Likewise.
37510         * sysdeps/i386/i486/bits/atomic.h: Likewise.
37511         * sysdeps/x86_64/bits/atomic.h: Likewise.
37512
37513 2012-03-02  David S. Miller  <davem@davemloft.net>
37514
37515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
37516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
37517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
37518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
37519         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
37520         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
37521         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
37522         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
37523
37524 2012-03-02  Roland McGrath  <roland@hack.frob.com>
37525
37526         [BZ #13792]
37527         * manual/examples/README: New file, says the example source files
37528         can be used under GPL>=2.
37529         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
37530         line containing just "*/".
37531         * manual/examples/add.c: Add copyright header (GPL>=2).
37532         * manual/examples/argp-ex1.c: Likewise.
37533         * manual/examples/argp-ex2.c: Likewise.
37534         * manual/examples/argp-ex3.c: Likewise.
37535         * manual/examples/argp-ex4.c: Likewise.
37536         * manual/examples/atexit.c: Likewise.
37537         * manual/examples/db.c: Likewise.
37538         * manual/examples/dir.c: Likewise.
37539         * manual/examples/dir2.c: Likewise.
37540         * manual/examples/execinfo.c: Likewise.
37541         * manual/examples/filecli.c: Likewise.
37542         * manual/examples/filesrv.c: Likewise.
37543         * manual/examples/fmtmsgexpl.c: Likewise.
37544         * manual/examples/genpass.c: Likewise.
37545         * manual/examples/inetcli.c: Likewise.
37546         * manual/examples/inetsrv.c: Likewise.
37547         * manual/examples/isockad.c: Likewise.
37548         * manual/examples/longopt.c: Likewise.
37549         * manual/examples/memopen.c: Likewise.
37550         * manual/examples/memstrm.c: Likewise.
37551         * manual/examples/mkfsock.c: Likewise.
37552         * manual/examples/mkisock.c: Likewise.
37553         * manual/examples/mygetpass.c: Likewise.
37554         * manual/examples/pipe.c: Likewise.
37555         * manual/examples/popen.c: Likewise.
37556         * manual/examples/rprintf.c: Likewise.
37557         * manual/examples/search.c: Likewise.
37558         * manual/examples/select.c: Likewise.
37559         * manual/examples/setjmp.c: Likewise.
37560         * manual/examples/sigh1.c: Likewise.
37561         * manual/examples/sigusr.c: Likewise.
37562         * manual/examples/stpcpy.c: Likewise.
37563         * manual/examples/strdupa.c: Likewise.
37564         * manual/examples/strftim.c: Likewise.
37565         * manual/examples/strncat.c: Likewise.
37566         * manual/examples/subopt.c: Likewise.
37567         * manual/examples/swapcontext.c: Likewise.
37568         * manual/examples/termios.c: Likewise.
37569         * manual/examples/testopt.c: Likewise.
37570         * manual/examples/testpass.c: Likewise.
37571         * manual/examples/timeval_subtract.c: Likewise.
37572
37573         [BZ #13792]
37574         * manual/time.texi (Elapsed Time): Move timeval_subtract example
37575         function to ...
37576         * manual/timeval_subtract.c.texi: ... here, new file.
37577
37578 2012-03-02  David S. Miller  <davem@davemloft.net>
37579
37580         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
37581
37582 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
37583
37584         [BZ #3976]
37585         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
37586         (__sin): Save and restore rounding mode and use round-to-nearest
37587         for all computations.
37588         (__cos): Save and restore rounding mode and use round-to-nearest
37589         for all computations.
37590         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
37591         <fenv.h>.
37592         (tan): Save and restore rounding mode and use round-to-nearest for
37593         all computations.
37594         * math/libm-test.inc (cos_test_tonearest): New function.
37595         (cos_test_towardzero): Likewise.
37596         (cos_test_downward): Likewise.
37597         (cos_test_upward): Likewise.
37598         (sin_test_tonearest): Likewise.
37599         (sin_test_towardzero): Likewise.
37600         (sin_test_downward): Likewise.
37601         (sin_test_upward): Likewise.
37602         (tan_test_tonearest): Likewise.
37603         (tan_test_towardzero): Likewise.
37604         (tan_test_downward): Likewise.
37605         (tan_test_upward): Likewise.
37606         (main): Call the new functions.
37607         * sysdeps/i386/fpu/libm-test-ulps: Update.
37608         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37609
37610         [BZ #10135]
37611         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
37612         small n, then large n, before computing and testing k+n.
37613         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
37614         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
37615         Likewise.
37616         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
37617         Likewise.
37618         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
37619         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
37620         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
37621         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
37622         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
37623         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
37624         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
37625         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
37626         * math/libm-test.inc (scalbn_test): Add more tests.
37627         (scalbln_test): Likewise.
37628
37629         * manual/filesys.texi (mode_t): Describe constraints on size and
37630         signedness, not exact equivalence to a particular type.
37631         (ino_t): Likewise.
37632         (ino64_t): Likewise.
37633         (dev_t): Likewise.
37634         (nlink_t): Likewise.
37635         (blkcnt_t): Likewise.
37636         (blkcnt64_t): Likewise.
37637         * manual/llio.texi (off_t): Likewise.
37638
37639         [BZ #3976]
37640         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
37641         (__ieee754_exp): Save and restore rounding mode and use
37642         round-to-nearest for all computations.
37643         * math/libm-test.inc (exp_test_tonearest): New function.
37644         (exp_test_towardzero): Likewise.
37645         (exp_test_downward): Likewise.
37646         (exp_test_upward): Likewise.
37647         (main): Call the new functions.
37648         * sysdeps/i386/fpu/libm-test-ulps: Update.
37649         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37650
37651 2012-03-01  Chris Demetriou  <cgd@google.com>
37652
37653         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
37654         have predictable order.
37655
37656 2012-03-01  David S. Miller  <davem@davemloft.net>
37657
37658         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
37659
37660         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
37661         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
37662         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
37663         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
37664
37665         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
37666         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
37667         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
37668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
37669         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
37670         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
37671         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
37672         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
37673         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
37674
37675         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37676
37677         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
37678         * sysdeps/sparc/fpu/libm-test-ulps: to here.
37679         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
37680
37681         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
37682         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
37683         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
37684         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
37685         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
37686         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
37687         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
37688         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
37689         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
37690         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
37691         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
37692         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
37693         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
37694         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
37695         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
37696         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
37697         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
37698         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
37699         * sysdeps/sparc/elf/configure: Regenerated.
37700
37701 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
37702
37703         * configure.in (AS, LD): Require binutils 2.20 or later.
37704         * configure: Regenerated.
37705         * manual/install.texi (Tools for Compilation): Give binutils 2.20
37706         as required minimum version.
37707         * INSTALL: Regenerated.
37708
37709         [BZ #2541]
37710         [BZ #4108]
37711         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
37712         before squaring exponent.
37713         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
37714         bottom long double and 27 bits of top long double before squaring
37715         exponent.
37716         * math/libm-test.inc (erfc_test): Add more tests.
37717         * sysdeps/i386/fpu/libm-test-ulps: Update.
37718         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
37719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37720
37721 2012-03-01  Kai Tietz  <ktietz@redhat.com>
37722
37723         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
37724         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
37725         containing bit-fields.
37726         * soft-fp/extended.h (_FP_UNION_E): Likewise.
37727         * soft-fp/single.h (_FP_UNION_S): Likewise.
37728         * soft-fp/double.h (_FP_UNION_D): Likewise.
37729
37730 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37731
37732         [BZ #13786]
37733         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
37734         not include ../strcmp.S.
37735         [USE_AS_STRNCASECMP_L]: Likewise.
37736         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
37737         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
37738         * sysdeps/i386/i686/multiarch/strncase_l-c.c
37739         (__strncasecmp_l_ia32): Define as alias to
37740         __strncasecmp_l_nonascii.
37741
37742         [BZ #5794]
37743         * math/libm-test.inc (expm1_test): Add test for bug 5794.
37744         * sysdeps/i386/fpu/libm-test-ulps: Update.
37745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37746
37747         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
37748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37749
37750 2012-02-29  Jeff Law  <law@redhat.com>
37751
37752         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
37753         out of bounds read.
37754
37755 2012-02-29  Marek Polacek  <polacek@redhat.com>
37756
37757         [BZ #13706]
37758         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
37759         * elf/Makefile: Add rules to run tst-unused-dep.out.
37760
37761 2012-02-28  David S. Miller  <davem@davemloft.net>
37762
37763         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
37764         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
37765         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
37766         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
37767         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
37768         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
37769
37770 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
37771
37772         * math/libm-test.inc (llround_test): Move one test from
37773         lround_test.  Use TEST_f_L in moved test.
37774         (lround_test): Move misplaced test to llround_test.  Add testcase
37775         from bug 2561.
37776
37777 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
37778
37779         * sysdeps/x86_64/fpu/e_expf.S: New file.
37780         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
37781
37782 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
37783
37784         [BZ #13637]
37785         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
37786         of remain_len that may cause incomplete multi-byte character and
37787         false match.
37788         * posix/bug-regex33.c: New file.
37789         * posix/Makefile (tests): Add bug-regex33.
37790
37791 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
37792
37793         * manual/macros.texi: New file.
37794         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
37795         * manual/libc.texinfo: Include macros.texi.
37796         * manual/creatute.texi: Likewise.
37797         * manual/install.texi: Likewise.
37798         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
37799         @glibcadj{} in references to the GNU C Library.
37800         * manual/charset.texi: Likewise.
37801         * manual/conf.texi: Likewise.
37802         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
37803         when not using those macros.
37804         * manual/creature.texi: Likewise.
37805         * manual/crypt.texi: Likewise.
37806         * manual/errno.texi: Likewise.
37807         * manual/filesys.texi: Likewise.
37808         * manual/header.texi: Likewise.
37809         * manual/install.texi: Likewise.
37810         * manual/intro.texi: Likewise.
37811         * manual/io.texi: Likewise.
37812         * manual/job.texi: Likewise.
37813         * manual/lang.texi: Likewise.
37814         * manual/libc.texiinfo: Likewise.
37815         * manual/llio.texi: Likewise.
37816         * manual/locale.texi: Likewise.
37817         * manual/maint.texi: Likewise.
37818         * manual/math.texi: Likewise.
37819         * manual/memory.texi: Likewise.
37820         * manual/message.texi: Likewise.
37821         * manual/nss.texi: Likewise.
37822         * manual/pattern.texi: Likewise.
37823         * manual/process.texi: Likewise.
37824         * manual/resource.texi: Likewise.
37825         * manual/search.texi: Likewise.
37826         * manual/setjmp.texi: Likewise.
37827         * manual/signal.texi: Likewise.
37828         * manual/socket.texi: Likewise.
37829         * manual/startup.texi: Likewise.
37830         * manual/stdio.texi: Likewise.
37831         * manual/string.texi: Likewise.
37832         * manual/sysinfo.texi: Likewise.
37833         * manual/syslog.texi: Likewise.
37834         * manual/terminal.texi: Likewise.
37835         * manual/time.texi: Likewise.
37836         * manual/users.texi: Likewise.
37837         * INSTALL: Regenerated.
37838         * NOTES: Regenerated.
37839         * sysdeps/gnu/errlist.c: Regenerated.
37840
37841 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
37842
37843         * include/dirent.h: Include <dirstream.h> before
37844         <dirent/dirent.h>.
37845
37846 2012-02-28  David S. Miller  <davem@davemloft.net>
37847
37848         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
37849         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
37850         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
37851         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
37852
37853 2012-02-27  David S. Miller  <davem@davemloft.net>
37854
37855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
37856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
37857         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
37858         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
37859
37860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
37861         frame pointer instead of stack pointer relative arg slot.
37862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
37863         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
37864         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
37865
37866 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
37867
37868         [BZ #3992]
37869         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
37870
37871 2012-02-27  David S. Miller  <davem@davemloft.net>
37872
37873         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
37874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
37875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
37876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
37877         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
37878         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
37879         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
37880         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
37881
37882 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
37883
37884         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
37885         later.  Allow versions 5-9.
37886         * configure: Regenerated.
37887         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
37888         required minimum version and 4.6 as recommended version.  Do not
37889         mention bugs in GCC 2.7 and 2.8.
37890         * INSTALL: Regenerated.
37891
37892 2012-02-27  David S. Miller  <davem@davemloft.net>
37893
37894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
37895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
37896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
37897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
37898         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
37899         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
37900         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
37901         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
37902
37903         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
37904         manipulate bits before adding and subtracting TWO112[sx].
37905         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
37906
37907 2012-02-27  Roland McGrath  <roland@hack.frob.com>
37908
37909         [BZ #13775]
37910         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
37911         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
37912         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
37913         being in POSIX, because they are in 1003.1-2008.
37914
37915         * rt/tst-aio.c: Include <fcntl.h>.
37916         * rt/tst-aio7.c: Likewise.
37917         * rt/tst-aio64.c: Likewise.
37918
37919         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
37920
37921 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
37922
37923         * manual/install.texi (--with-headers): Describe headers as
37924         interface headers, not private headers.
37925         (Specific advice for GNU/Linux systems): Describe use of headers
37926         from "make headers_install", not private headers from older
37927         kernels.
37928         * INSTALL: Regenerated.
37929         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
37930         Change to 2.6.19.
37931         * sysdeps/unix/sysv/linux/configure: Regenerated.
37932
37933         * manual/llio.texi (fclean): Remove documentation.
37934
37935         * manual/Makefile (libc-texi-generated): New variable.  Include
37936         version.texi.
37937         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
37938         $(libc-texi-generated), not duplicated list of files.
37939         (version.texi, stamp-version): New rules.
37940         (realclean): Remove $(libc-texi-generated), not individual files
37941         from that list.  Do not remove dir-add.texinfo.
37942         * manual/libc.texinfo: Comment out uses of edition numbers and
37943         references to printed manual.  Remove last-updated dates.
37944         (EDITION): Comment out.
37945         (ISBN): Likewise.
37946         (VERSION, UPDATED): Remove.
37947         (version.texi): Include.
37948
37949 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
37950
37951         * sysdeps/posix/spawni.c: Include <signal.h>.
37952         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
37953         * sysdeps/pthread/aio_fsync.c: Likewise.
37954
37955 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
37956
37957         * conform/Makefile (tests): Run only when not cross-compiling and
37958         when fast-check is not defined.
37959
37960         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
37961         * conform/data/limits.h-data: Fixes for POSIX2008.
37962         * conform/run-conformtest.sh: Run all tests.
37963         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
37964         headers.
37965         * include/bits/dlfcn.h: Likewise.
37966         * include/langinfo.h: Likewise.
37967         * include/monetary.h: Likewise.
37968         * include/sys/poll.h: Likewise.
37969
37970         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
37971         for __USE_GNU.
37972         * posix/spawn.h: Define __need_sigset_t.
37973         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
37974         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
37975         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
37976         to get sigevent_t only.
37977         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
37978         only for __USE_GNU.
37979         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
37980         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
37981         process_vm_writev only for __USE_GNU.
37982         * termios/termios.h: Declare tcgetsid also for POSIX2008.
37983
37984         * conform/Makefile: For now ignore errors from run-conformtest.
37985         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
37986         POSIX to avoid namespace pollution.  Don't prepend headers.
37987         * conform/data/aio.h-data: Fixes for POSIX testing.
37988         * conform/data/fcntl.h-data: Likewise.
37989         * conform/data/glob.h-data: Likewise.
37990         * conform/data/grp.h-data: Likewise.
37991         * conform/data/pthread.h-data: Likewise.
37992         * conform/data/pwd.h-data: Likewise.
37993         * conform/data/signal.h-data: Likewise.
37994         * conform/data/spawn.h-data: Likewise.
37995         * conform/data/stdio.h-data: Likewise.
37996         * conform/data/stdlib.h-data: Likewise.
37997         * conform/data/stropts.h-data: Likewise.
37998         * conform/data/sys/mman.h-data: Likewise.
37999         * conform/data/sys/stat.h-data: Likewise.
38000         * conform/data/sys/types.h-data: Likewise.
38001         * conform/data/sys/wait.h-data: Likewise.
38002         * conform/data/time.h-data: Likewise.
38003         * conform/data/unistd.h-data: Likewise.
38004         * conform/data/utime.h-data: Likewise.
38005
38006         * io/sys/stat.h: fchmod was always in POSIX.
38007         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
38008         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
38009         * rt/aio.h: Define __need_timespec before including <time.h>.
38010         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
38011         struct.  Add forward declaration of pthread_attr_t and use it in
38012         sigevent.
38013         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
38014         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
38015         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
38016         always remove CLK_TCK definition.
38017
38018 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
38019
38020         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
38021
38022 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
38023
38024         * conform/run-conformtest.sh: New file.
38025         * conform/Makefile: Run run-conformtest for tests.
38026         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
38027         support.
38028
38029         * conform/data/uchar.h-data: New file.
38030         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
38031         * conform/data/arpa/inet.h-data: Likewise.
38032         * conform/data/assert.h-data: Likewise.
38033         * conform/data/complex.h-data: Likewise.
38034         * conform/data/cpio.h-data: Likewise.
38035         * conform/data/ctype.h-data: Likewise.
38036         * conform/data/dirent.h-data: Likewise.
38037         * conform/data/dlfcn.h-data: Likewise.
38038         * conform/data/errno.h-data: Likewise.
38039         * conform/data/fcntl.h-data: Likewise.
38040         * conform/data/float.h-data: Likewise.
38041         * conform/data/fmtmsg.h-data: Likewise.
38042         * conform/data/fnmatch.h-data: Likewise.
38043         * conform/data/ftw.h-data: Likewise.
38044         * conform/data/glob.h-data: Likewise.
38045         * conform/data/grp.h-data: Likewise.
38046         * conform/data/iconv.h-data: Likewise.
38047         * conform/data/inttypes.h-data: Likewise.
38048         * conform/data/langinfo.h-data: Likewise.
38049         * conform/data/libgen.h-data: Likewise.
38050         * conform/data/limits.h-data: Likewise.
38051         * conform/data/locale.h-data: Likewise.
38052         * conform/data/math.h-data: Likewise.
38053         * conform/data/monetary.h-data: Likewise.
38054         * conform/data/mqueue.h-data: Likewise.
38055         * conform/data/ndbm.h-data: Likewise.
38056         * conform/data/net/if.h-data: Likewise.
38057         * conform/data/netdb.h-data: Likewise.
38058         * conform/data/netinet/in.h-data: Likewise.
38059         * conform/data/nl_types.h-data: Likewise.
38060         * conform/data/poll.h-data: Likewise.
38061         * conform/data/pthread.h-data: Likewise.
38062         * conform/data/pwd.h-data: Likewise.
38063         * conform/data/regex.h-data: Likewise.
38064         * conform/data/sched.h-data: Likewise.
38065         * conform/data/search.h-data: Likewise.
38066         * conform/data/semaphore.h-data: Likewise.
38067         * conform/data/setjmp.h-data: Likewise.
38068         * conform/data/signal.h-data: Likewise.
38069         * conform/data/spawn.h-data: Likewise.
38070         * conform/data/stdarg.h-data: Likewise.
38071         * conform/data/stdio.h-data: Likewise.
38072         * conform/data/stdlib.h-data: Likewise.
38073         * conform/data/string.h-data: Likewise.
38074         * conform/data/strings.h-data: Likewise.
38075         * conform/data/stropts.h-data: Likewise.
38076         * conform/data/sys/ipc.h-data: Likewise.
38077         * conform/data/sys/mman.h-data: Likewise.
38078         * conform/data/sys/msg.h-data: Likewise.
38079         * conform/data/sys/resource.h-data: Likewise.
38080         * conform/data/sys/select.h-data: Likewise.
38081         * conform/data/sys/sem.h-data: Likewise.
38082         * conform/data/sys/shm.h-data: Likewise.
38083         * conform/data/sys/socket.h-data: Likewise.
38084         * conform/data/sys/stat.h-data: Likewise.
38085         * conform/data/sys/statvfs.h-data: Likewise.
38086         * conform/data/sys/time.h-data: Likewise.
38087         * conform/data/sys/timeb.h-data: Likewise.
38088         * conform/data/sys/times.h-data: Likewise.
38089         * conform/data/sys/types.h-data: Likewise.
38090         * conform/data/sys/uio.h-data: Likewise.
38091         * conform/data/sys/un.h-data: Likewise.
38092         * conform/data/sys/utsname.h-data: Likewise.
38093         * conform/data/sys/wait.h-data: Likewise.
38094         * conform/data/syslog.h-data: Likewise.
38095         * conform/data/tar.h-data: Likewise.
38096         * conform/data/termios.h-data: Likewise.
38097         * conform/data/utime.h-data: Likewise.
38098         * conform/data/utmpx.h-data: Likewise.
38099         * conform/data/varargs.h-data: Likewise.
38100         * conform/data/wchar.h-data: Likewise.
38101         * conform/data/wctype.h-data: Likewise.
38102         * conform/data/wordexp.h-data: Likewise.
38103
38104         * include/stropts.h: New file.
38105         * include/uchar.h: New file.
38106         * include/aio.h: Changes to allow conformtest.pl to use the headers.
38107         * include/assert.h: Likewise.
38108         * include/ctype.h: Likewise.
38109         * include/dirent.h: Likewise.
38110         * include/dlfcn.h: Likewise.
38111         * include/fcntl.h: Likewise.
38112         * include/fnmatch.h: Likewise.
38113         * include/glob.h: Likewise.
38114         * include/grp.h: Likewise.
38115         * include/libio.h: Likewise.
38116         * include/locale.h: Likewise.
38117         * include/math.h: Likewise.
38118         * include/net/if.h: Likewise.
38119         * include/netdb.h: Likewise.
38120         * include/netinet/in.h: Likewise.
38121         * include/pthread.h: Likewise.
38122         * include/pwd.h: Likewise.
38123         * include/regex.h: Likewise.
38124         * include/sched.h: Likewise.
38125         * include/search.h: Likewise.
38126         * include/setjmp.h: Likewise.
38127         * include/signal.h: Likewise.
38128         * include/stdio.h: Likewise.
38129         * include/stdlib.h: Likewise.
38130         * include/string.h: Likewise.
38131         * include/sys/cdefs.h: Likewise.
38132         * include/sys/mman.h: Likewise.
38133         * include/sys/msg.h: Likewise.
38134         * include/sys/resource.h: Likewise.
38135         * include/sys/select.h: Likewise.
38136         * include/sys/socket.h: Likewise.
38137         * include/sys/stat.h: Likewise.
38138         * include/sys/statvfs.h: Likewise.
38139         * include/sys/time.h: Likewise.
38140         * include/sys/times.h: Likewise.
38141         * include/sys/uio.h: Likewise.
38142         * include/sys/utsname.h: Likewise.
38143         * include/sys/wait.h: Likewise.
38144         * include/termios.h: Likewise.
38145         * include/time.h: Likewise.
38146         * include/ulimit.h: Likewise.
38147         * include/unistd.h: Likewise.
38148         * include/utime.h: Likewise.
38149         * include/wchar.h: Likewise.
38150         * include/wctype.h: Likewise.
38151         * include/wordexp.h: Likewise.
38152
38153         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
38154
38155         * time/time.h: TIME_UTC must be a macro.
38156         Make timespec_get available for ISO C11 only as well.
38157
38158 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
38159
38160         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
38161         Reported by Peng Haitao <penght@cn.fujitsu.com>.
38162
38163 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38164
38165         * configure.in: Use -o not -a in test for unsupported multi-arch.
38166
38167 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38168
38169         * manual/texinfo.tex: Update to version 2012-01-19.16.
38170
38171 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
38172
38173         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
38174
38175 2012-02-24  Roland McGrath  <roland@hack.frob.com>
38176
38177         [BZ #13738]
38178         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
38179         * manual/fdl-1.3.texi: New file.
38180         * manual/fdl-1.1.texi: File removed.
38181
38182         [BZ #13738]
38183         * manual/libc.texinfo (FDL_VERSION): New @set.
38184         Use it for mention of FDL in cover text.
38185         (Documentation License): Use it in @include file name.
38186
38187 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38188             Roland McGrath  <roland@hack.frob.com>
38189
38190         [BZ #5461]
38191         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
38192         (not LONG_LONG_MAX and LONG_LONG_MIN.
38193         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
38194         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
38195         name.
38196         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
38197
38198 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38199
38200         [BZ #2547]
38201         [BZ #11365]
38202         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
38203         manipulate bits before adding and subtracting TWO23[sx].
38204         * math/libm-test.inc (nearbyint_test): Add more tests.
38205
38206 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38207
38208         [BZ #2548]
38209         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
38210         bits before adding and subtracting TWO23[sx].
38211         * math/libm-test.inc (rint_test): Add more tests.
38212         (rint_test_tonearest): Likewise.
38213         (rint_test_towardzero): Likewise.
38214         (rint_test_downward): Likewise.
38215         (rint_test_upward: Likewise.
38216
38217 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38218
38219         [BZ #10110]
38220         * include/stdc-predef.h: New file.  Extracted from features.h.
38221         * include/features.h: Include stdc-predef.h.
38222         * Makefile (headers): Add stdc-predef.h.
38223         * CONFORMANCE (Compiler limitations): Update.
38224
38225 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
38226
38227         * manual/libc.texinfo (VERSION, UPDATED): Revert.
38228
38229 2012-02-21  David S. Miller  <davem@davemloft.net>
38230
38231         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
38232         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38233
38234 2012-02-20  David S. Miller  <davem@davemloft.net>
38235
38236         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
38237         using a normal save/restore sequence, rather than allocating a
38238         dummy stack frame just to store a frame pointer and restore.
38239         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38240
38241 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38242
38243         * manual/install.texi: Fix stray word in line-wrapped comment.
38244
38245 2012-02-20  David S. Miller  <davem@davemloft.net>
38246
38247         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
38248         both binutils and gcc support GOTDATA.
38249
38250         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
38251         "rd %pc" in the PIC register setup sequences.
38252
38253         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
38254         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
38255         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
38256         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
38257         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
38258         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
38259         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38260         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
38261         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
38262         (SYSCALL_ERROR_HANDLER): Likewise.
38263         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
38264         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
38265         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
38266         (SYSCALL_ERROR_HANDLER): Likewise.
38267
38268         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
38269         (HAVE_GCC_GOTDATA): New.
38270         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
38271         relocation support in both binutils and gcc.
38272         * sysdeps/sparc/elf/configure: Regenerate.
38273
38274         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
38275         * sysdeps/sparc/sparc32/elf/configure: Delete.
38276         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
38277         * sysdeps/sparc/sparc64/elf/configure: Delete.
38278         * sysdeps/sparc/elf/configure.in: New file.
38279         * sysdeps/sparc/elf/configure: Generate.
38280
38281         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
38282         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
38283         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
38284         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
38285         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
38286
38287 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38288
38289         * manual/install.texi: Do not mention specific glibc version
38290         numbers.
38291         * manual/libc.texinfo (VERSION, UPDATED): Update.
38292         (@copying): Use @copyright{} and range of years.
38293
38294 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
38295
38296         [BZ #13695]
38297         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
38298         [crti.S not in sysdirs] (generated): Do not append.
38299         [crti.S not in sysdirs] (omit-deps): Likewise.
38300         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
38301         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
38302         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
38303         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
38304         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
38305         Likewise.
38306         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
38307         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
38308         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
38309         * csu/defs.awk: Remove file.
38310         * sysdeps/generic/initfini.c: Likewise.
38311         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
38312         variable.
38313         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
38314         Likewise.
38315
38316 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38317
38318         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
38319         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
38320         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
38321         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
38322         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
38323         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
38324         <bits/epoll.h>.
38325         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
38326         (__EPOLL_PACKED): Define to empty if not defined by
38327         <bits/epoll.h>.
38328         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
38329         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38330         bits/epoll.h.
38331
38332 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38333
38334         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
38335         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
38336         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
38337         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
38338         <bits/timerfd.h>.
38339         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
38340         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38341         bits/timerfd.h.
38342
38343 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
38344
38345         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
38346         in C locale.
38347         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38348         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
38349         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
38350         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38351
38352 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
38353
38354         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38355         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
38356
38357 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
38358
38359         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
38360         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
38361         defined.
38362         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
38363         Likewise.
38364         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
38365         entry for 2.16.
38366
38367 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
38368
38369         * math/w_acos.c: Use non-signaling floating-point comparisons.
38370         * math/w_acosf.c: Likewise.
38371         * math/w_acosh.c: Likewise.
38372         * math/w_acoshf.c: Likewise.
38373         * math/w_acoshl.c: Likewise.
38374         * math/w_acosl.c: Likewise.
38375         * math/w_asin.c: Likewise.
38376         * math/w_asinf.c: Likewise.
38377         * math/w_asinl.c: Likewise.
38378         * math/w_atanh.c: Likewise.
38379         * math/w_atanhf.c: Likewise.
38380         * math/w_atanhl.c: Likewise.
38381         * math/w_exp2.c: Likewise.
38382         * math/w_exp2f.c: Likewise.
38383         * math/w_exp2l.c: Likewise.
38384         * math/w_j0.c: Likewise.
38385         * math/w_j0f.c: Likewise.
38386         * math/w_j0l.c: Likewise.
38387         * math/w_j1.c: Likewise.
38388         * math/w_j1f.c: Likewise.
38389         * math/w_j1l.c: Likewise.
38390         * math/w_jn.c: Likewise.
38391         * math/w_jnf.c: Likewise.
38392         * math/w_log.c: Likewise.
38393         * math/w_log10.c: Likewise.
38394         * math/w_log10f.c: Likewise.
38395         * math/w_log10l.c: Likewise.
38396         * math/w_log2.c: Likewise.
38397         * math/w_log2f.c: Likewise.
38398         * math/w_log2l.c: Likewise.
38399         * math/w_logf.c: Likewise.
38400         * math/w_logl.c: Likewise.
38401         * math/w_sqrt.c: Likewise.
38402         * math/w_sqrtf.c: Likewise.
38403         * math/w_sqrtl.c: Likewise.
38404         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38405         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
38406         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
38407         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
38408         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
38409
38410 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38411
38412         [BZ #9739]
38413         * manual/string.texi (strnlen): Use correct parameter name in
38414         equivalent expression.
38415
38416 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38417
38418         [BZ #11174]
38419         * manual/users.texi (seteuid): Consistently use neweuid for
38420         argument name.
38421
38422 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
38423
38424         [BZ #13704]
38425         * manual/nss.texi (Services in the NSS configuration): Correct
38426         list of services in example configuration file.
38427
38428 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
38429
38430         [BZ #11322]
38431         * manual/arith.texi: Remove statements about negative zero
38432         behaving identically to zero.
38433
38434 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38435
38436         [BZ #5993]
38437         * manual/install.texi: Do not document upgrading from libc5.
38438
38439 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
38440
38441         [BZ #4596]
38442         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
38443
38444 2012-02-18  David S. Miller  <davem@davemloft.net>
38445
38446         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
38447         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
38448         %o7 across the call.
38449         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
38450         instead.
38451         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
38452         SETUP_PIC_REG_LEAF.
38453         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
38454         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
38455         * sysdeps/sparc/crtn.S: Likewise.
38456
38457 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
38458
38459         * aout/Makefile: Remove.
38460
38461 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
38462
38463         [BZ #13058]
38464         * manual/examples/argp-ex1.c (main): Format definition in GNU
38465         style.
38466         * manual/examples/argp-ex2.c (main): Likewise.
38467         * manual/examples/argp-ex3.c (main): Likewise.
38468         * manual/examples/argp-ex4.c (main): Likewise.
38469         * manual/examples/longopt.c (main): Use new-style prototype
38470         definition.
38471         * manual/examples/strncat.c (main): Specify return type and use
38472         (void) for arguments.
38473         * manual/examples/subopt.c (main): Use char **argv argument.
38474
38475 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38476
38477         [BZ #5077]
38478         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
38479         rounding modes.
38480
38481 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
38482
38483         [BZ #6907]
38484         * manual/string.texi (strchr): Change when strchrnul is
38485         recommended.
38486
38487 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
38488
38489         [BZ #174]
38490         * manual/locale.texi (setlocale): Document LOCPATH.
38491
38492 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38493
38494         [BZ #10210]
38495         * manual/process.texi (execle): Move @dots{} before last argument.
38496
38497 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
38498
38499         [BZ #12047]
38500         * manual/charset.texi (Generic Charset Conversion): Fix typo
38501         (LC_TYPE -> LC_CTYPE).
38502
38503 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
38504
38505         [BZ #5805]
38506         * manual/arith.texi (scalbn): Use @var{} on parameter names.
38507         (scalbnf): Likewise.
38508         (scalbnl): Likewise.
38509         (scalbln): Likewise.
38510         (scalblnf): Likewise.
38511         (scalblnl): Likewise.
38512         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
38513         (vwarnx): Likewise.
38514         (verr): Likewise.
38515         (verrx): Likewise.
38516         * manual/filesys.texi (telldir): Use braces around return type.
38517         * manual/llio.texi (mmap): Add space after comma.
38518         (mmap64): Likewise.
38519         * manual/math.texi (jn): Use @var{} on parameter names.
38520         (jnf): Likewise.
38521         (jnl): Likewise.
38522         (yn): Likewise.
38523         (ynf): Likewise.
38524         (ynl): Likewise.
38525         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
38526         line.
38527         * manual/resource.texi (ulimit): Use @dots{} instead of literal
38528         "...".
38529         (sched_get_priority_min): Remove semicolon on @deftypefun line.
38530         (sched_get_priority_max): Likewise.
38531         * manual/signal.texi (sigvec): Add space after comma.
38532         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
38533         names.
38534         (if_indextoname): Likewise.
38535         (if_freenameindex): Likewise.
38536         (sendto): Use ',' instead of '.' in prototype.
38537         * manual/startup.texi (syscall): Use @dots{} instead of literal
38538         "...".
38539         * manual/stdio.texi (__fpending): Separate initial words of
38540         paragraph from @deftypefun line.
38541         * manual/syslog.texi (syslog): Use @dots{} instead of literal
38542         "...".
38543         (vsyslog): Use @var{} on parameter names.
38544         * manual/terminal.texi (stty): Use @var{} on parameter names.
38545         * manual/users.texi (getutmp): Use @var{} on parameter names.
38546         (getutmpx): Likewise.
38547
38548 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38549
38550         [BZ #6884]
38551         * manual/stdio.texi (fopen): Fix typos in description of
38552         ",ccs=STRING".
38553
38554 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
38555
38556         [BZ #4026]
38557         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
38558         get clock_id definition.
38559
38560 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
38561
38562         [BZ #4822]
38563         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
38564         (madvise): Cast every argument to void on its own.
38565
38566 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38567
38568         [BZ #9902]
38569         * manual/startup.texi (Exit Status): Fix typo.
38570
38571 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
38572
38573         [BZ #10140]
38574         * manual/examples/argp-ex1.c: Include <stdlib.h>.
38575         * manual/examples/argp-ex2.c: Likewise.
38576         * manual/examples/argp-ex3.c: Likewise.
38577
38578 2012-02-16  Richard Henderson  <rth@redhat.com>
38579
38580         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
38581         * sysdeps/s390/s390-32/initfini.c: Remove.
38582         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
38583         * sysdeps/s390/s390-64/initfini.c: Remove.
38584
38585 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38586
38587         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
38588         compiler output for sysdeps/generic/initfini.c.
38589         * sysdeps/sh/elf/initfini.c: Remove file.
38590
38591 2012-02-16  David S. Miller  <davem@davemloft.net>
38592
38593         [BZ #11494]
38594         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
38595
38596         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
38597         * sysdeps/sparc/crti.S: New file.
38598         * sysdeps/sparc/crtn.S: New file.
38599         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
38600         * sysdeps/sparc/sparc64/Makefile: Likewise.
38601
38602 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
38603
38604         [BZ #3335]
38605         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
38606
38607 2012-02-15  Roland McGrath  <roland@hack.frob.com>
38608
38609         [BZ #4822]
38610         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
38611
38612         * mach/devstream.c (cookie_io_functions_t): Macro removed.
38613         (write, read, close): Likewise.
38614         Patch by Aurelien Jarno <aurelien@aurel32.net>.
38615
38616 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
38617
38618         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
38619         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
38620         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
38621         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
38622         <bits/signalfd.h>.
38623         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
38624         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38625         bits/signalfd.h.
38626
38627 2012-02-14  Marek Polacek  <polacek@redhat.com>
38628
38629         * sysdeps/x86_64/crti.S: New file.
38630         * sysdeps/x86_64/crtn.S: New file.
38631         * sysdeps/x86_64/elf/initfini.c: Remove file.
38632
38633 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38634
38635         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
38636         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
38637         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
38638         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
38639         <bits/inotify.h>.
38640         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
38641         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38642         bits/inotify.h.
38643
38644 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
38645
38646         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
38647         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
38648         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
38649         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
38650         <bits/eventfd.h>.
38651         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
38652         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38653         bits/eventfd.h.
38654
38655 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
38656
38657         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
38658         __feraiseexcept instead of feraiseexcept.
38659
38660         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
38661         nanosleep invocations.
38662         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
38663         strings, and add error checking for a nanosleep invocations.
38664
38665 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38666
38667         Replace FSF snail mail address with URLs, as per GNU coding standards.
38668         Most of the snail mail addresses were wrong anyway, and omitting
38669         them makes the source code easier to maintain.  Almost all of the
38670         changes are to license notices and to locale LC_IDENTIFICATION
38671         addresses, except for this one:
38672         * manual/libc.texinfo: In "Published by", give the FSF's URL,
38673         not its snail mail address.
38674
38675 2012-02-09  Richard Henderson  <rth@twiddle.net>
38676
38677         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
38678         of kernel-features.h.
38679
38680         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
38681
38682 2012-02-08  Marek Polacek  <polacek@redhat.com>
38683
38684         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
38685         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
38686         * sysdeps/gnu/_G_config.h: Likewise.
38687         * sysdeps/generic/_G_config.h: Likewise.
38688
38689 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
38690
38691         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
38692         tests.
38693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38694
38695         * sysdeps/powerpc/powerpc32/crti.S: New file.
38696         * sysdeps/powerpc/powerpc32/crtn.S: New file.
38697         * sysdeps/powerpc/powerpc64/crti.S: New file.
38698         * sysdeps/powerpc/powerpc64/crtn.S: New file.
38699
38700         * Makeconfig (have-initfini): Don't set.
38701         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
38702         * configure.in (nopic_initfini): Don't substitute.
38703         * config.h.in (HAVE_INITFINI): Don't #undef.
38704         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
38705         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
38706
38707 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
38708
38709         Support crti.S and crtn.S provided directly by architectures.
38710         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
38711         [crti.S in sysdirs] (omit-deps): Likewise.
38712         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
38713         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
38714         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
38715         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
38716         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
38717         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
38718         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
38719         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
38720         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
38721         compiler output for sysdeps/generic/initfini.c.
38722         * sysdeps/i386/elf/Makefile: Remove file.
38723         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
38724
38725 2012-02-07  Marek Polacek  <polacek@redhat.com>
38726
38727         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
38728         * sysdeps/gnu/_G_config.h: Likewise.
38729         * sysdeps/mach/hurd/_G_config.h: Likewise.
38730
38731 2012-02-07  Marek Polacek  <polacek@redhat.com>
38732
38733         * math/Makefile (tests): Add tst-CMPLX2.
38734         * math/tst-CMPLX2.c: New file.
38735
38736 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
38737
38738         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
38739
38740         * math/libm-test.inc (jn_test): Add missing L suffix.
38741
38742 2012-02-06  Marek Polacek  <polacek@redhat.com>
38743
38744         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
38745         * sysdeps/i386/fpu/e_powf.S: Likewise.
38746         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
38747         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
38748         * sysdeps/i386/fpu/e_acosh.S: Likewise.
38749         * sysdeps/i386/fpu/e_pow.S: Likewise.
38750         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
38751         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
38752         * sysdeps/i386/fpu/s_expm1.S: Likewise.
38753         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
38754         * sysdeps/i386/fpu/e_log2.S: Likewise.
38755         * sysdeps/i386/fpu/e_log2l.S: Likewise.
38756         * sysdeps/i386/fpu/e_scalb.S: Likewise.
38757         * sysdeps/i386/fpu/e_powl.S: Likewise.
38758         * sysdeps/i386/fpu/s_log1p.S: Likewise.
38759         * sysdeps/i386/fpu/e_log10f.S: Likewise.
38760         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
38761         * sysdeps/i386/fpu/e_logl.S: Likewise.
38762         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
38763         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
38764         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
38765         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
38766         * sysdeps/i386/fpu/e_log2f.S: Likewise.
38767         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
38768         * sysdeps/i386/fpu/e_log.S: Likewise.
38769         * sysdeps/i386/fpu/s_cexp.S: Likewise.
38770         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
38771         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
38772         * sysdeps/i386/fpu/e_logf.S: Likewise.
38773         * sysdeps/i386/fpu/e_log10l.S: Likewise.
38774         * sysdeps/i386/fpu/e_atanh.S: Likewise.
38775         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
38776         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
38777         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
38778         * sysdeps/i386/fpu/e_log10.S: Likewise.
38779         * sysdeps/i386/fpu/s_frexp.S: Likewise.
38780         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
38781         * sysdeps/i386/fpu/s_asinh.S: Likewise.
38782         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
38783         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
38784         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
38785         * sysdeps/i386/asm-syntax.h: Likewise.
38786         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
38787         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
38788         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
38789         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
38790         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
38791         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
38792         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
38793         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
38794         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
38795         * sysdeps/powerpc/sysdep.h: Likewise.
38796         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
38797         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
38798
38799 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
38800
38801         [BZ #411]
38802         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
38803
38804 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
38805
38806         * sysdeps/i386/sysdep.h: Include <features.h>.
38807         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
38808         version.
38809
38810 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
38811
38812         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
38813         Define.
38814         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
38815         LOAD_PIC_REG_STR.
38816
38817 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38818
38819         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
38820         (SETUP_PIC_REG): Use GET_PC_THUNK.
38821         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
38822         macro.
38823
38824 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38825
38826         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
38827         for non-PIC compilation.
38828         (SETUP_PIC_REG): Add .p2align directive.
38829         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
38830         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
38831         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38832         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38833         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
38834         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38835         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38836         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38837         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38838         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38839         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38840         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38841         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38842         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38843         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38844         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38845         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38846         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38847         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38848         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38849         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38850         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38851         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38852         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
38853         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
38854         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
38855         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38856         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38857         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38858         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38859         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38860         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38861         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38862         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38863         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38864         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38865         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38866         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38867         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38868         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38869         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38870
38871 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
38872
38873         * math/tst-CMPLX.c: Include <stdio.h>.
38874
38875 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
38876
38877         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
38878         float.
38879         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
38880         * sysdeps/sparc/bits/mathdef.h: Likewise.
38881
38882 2012-01-31  Marek Polacek  <polacek@redhat.com>
38883
38884         * libio/libio.h: Don't define _PARAMS.
38885         * locale/programs/config.h: Don't define PARAMS.
38886         * stdlib/strtol_l.c: Likewise.
38887         (__strtol_l): Remove PARAMS from the prototype.
38888
38889 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
38890
38891         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
38892         names.  Just use the correct names.  Remove unnecessary wrapper
38893         functions.
38894         * malloc/arena.c: Likewise.
38895         * malloc/hooks.c: Likewise.
38896
38897         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
38898         ARENA_TEST says not to.  Simplify test for creation of a new arena.
38899         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
38900
38901 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
38902
38903         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
38904         into tail calls.
38905         (update_get_addr): New function.
38906         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
38907         GET_ADDR_MODULE parameter.
38908
38909 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
38910
38911         * crypt/cert.c: Remove __STDC__ conditionals.
38912         * crypt/crypt-entry.c: Likewise.
38913         * crypt/crypt_util.c: Likewise.
38914         * libio/filedoalloc.c: Likewise.
38915         * libio/fileops.c: Likewise.
38916         * libio/genops.c: Likewise.
38917         * libio/iofclose.c: Likewise.
38918         * libio/iofdopen.c: Likewise.
38919         * libio/iofopen.c: Likewise.
38920         * libio/iofopen64.c: Likewise.
38921         * libio/iogetdelim.c: Likewise.
38922         * libio/iopopen.c: Likewise.
38923         * libio/obprintf.c: Likewise.
38924         * libio/oldfileops.c: Likewise.
38925         * libio/oldiofclose.c: Likewise.
38926         * libio/oldiofdopen.c: Likewise.
38927         * libio/oldiofopen.c: Likewise.
38928         * libio/oldiopopen.c: Likewise.
38929         * libio/wfiledoalloc.c: Likewise.
38930         * libio/wgenops.c: Likewise.
38931         * locale/programs/xmalloc.c: Likewise.
38932         * misc/syslog.c: Likewise.
38933         * stdio-common/xbug.c: Likewise.
38934         * string/memchr.c: Likewise.
38935         * string/memcmp.c: Likewise.
38936         * string/memrchr.c: Likewise.
38937         * string/rawmemchr.c: Likewise.
38938         * sysdeps/posix/getcwd.c: Likewise.
38939         * time/strftime_l.c: Likewise.
38940
38941 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
38942
38943         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
38944         * config.make.in (config-cflags-sse2avx): Define.
38945         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
38946         Fix typo.
38947
38948 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
38949
38950         * scripts/config.guess: Update from upstream config git repository.
38951         * scripts/config.sub: Likewise.
38952
38953 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
38954
38955         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
38956         (EM_NUM): Update.
38957         (R_TILEPRO_*, R_TILEGX_*): New macros.
38958
38959         * scripts/firstversions.awk: Fix bug in version range handling.
38960
38961         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
38962
38963         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
38964
38965         * include/sys/epoll.h: New file.
38966         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
38967         libc_hidden_def.
38968
38969 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
38970
38971         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
38972         Avoid unnecessary __WORDSIZE == 64 test.
38973         (fmaxf): Use VEX format if possible.
38974         (fmax): Likewise.
38975         (fminf): Likewise.
38976         (fmin): Likewise.
38977
38978         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
38979         * math/math_private.h: Remove libc_fegetround* and
38980         libc_fesetround*.
38981         * sysdeps/i386/configure.in: Check for -msse2avx.
38982         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
38983         also if SSE2AVX is defined.
38984         Remove libc_fegetround* and libc_fesetround*.
38985         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
38986         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
38987         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
38988         of HAS_YMM_USABLE.
38989         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38990         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38991         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38992         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38993         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38994
38995         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
38996
38997 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
38998
38999         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
39000         size is not set.
39001         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
39002
39003 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
39004
39005         [BZ #13618]
39006         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
39007         relocation.
39008         * Makeconfig (libm): Define.
39009         * elf/Makefile: Add rules to build and run tst-relsort1.
39010         * elf/tst-relsort1.c: New file.
39011         * elf/tst-relsort1mod1.c: New file.
39012         * elf/tst-relsort1mod2.c: New file.
39013
39014 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
39015
39016         * math/s_ldexp.c: Remove __STDC__ conditionals.
39017         * math/s_ldexpf.c: Likewise.
39018         * math/s_ldexpl.c: Likewise.
39019         * math/s_nextafter.c: Likewise.
39020         * math/s_nexttowardf.c: Likewise.
39021         * math/s_significand.c: Likewise.
39022         * math/s_significandf.c: Likewise.
39023         * math/s_significandl.c: Likewise.
39024         * math/w_jnl.c: Likewise.
39025         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
39026         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
39027         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
39028         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
39029         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
39030         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
39031         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
39032         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
39033         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
39034         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
39035         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
39036         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
39037         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
39038         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
39039         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
39040         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
39041         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39042         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39043         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39044         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39045         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39046         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39047         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39048         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39049         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39050         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39051         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39052         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39053         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39054         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39055         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39056         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39057         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39058         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39059         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39060         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39061         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39062         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39063         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39064         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39065         * sysdeps/ieee754/k_standard.c: Likewise.
39066         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39067         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39068         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39069         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39070         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39071         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39072         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39073         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39074         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39075         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39076         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39077         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39078         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39079         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39080         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39081         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39082         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39083         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39084         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39085         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39086         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39087         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39088         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39089         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39090         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39091         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39092         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39093         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39094         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39095         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39096         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39097         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
39098         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39099         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39100         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39101         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39102         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
39103         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39104         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39105         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
39106         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
39107         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39108         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
39109         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
39110         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39111         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
39112         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
39113         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39114         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39115         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
39116         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
39117         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39118         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39119         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39120         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39121         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39122         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
39123         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39124         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39125         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39126         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39127         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39128         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39129         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39130         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39131         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39132         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39133         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39134         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39135         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39136         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39137         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39138         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39139         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39140         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39141         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39142         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39143         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39144         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39145         * sysdeps/ieee754/s_matherr.c: Likewise.
39146         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39147         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39148         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39149         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39150
39151 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39152
39153         * crypt/md5.h: Remove __STDC__ conditionals.
39154         * libio/libioP.h: Likewise.
39155         * locale/programs/config.h: Likewise.
39156         * sysdeps/generic/sysdep.h: Likewise.
39157         * sysdeps/i386/asm-syntax.h: Likewise.
39158         * sysdeps/s390/asm-syntax.h: Likewise.
39159         * sysdeps/unix/sysdep.h: Likewise.
39160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
39161         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
39162
39163 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
39164
39165         * libio/libio.h: Remove __STDC__ conditionals.
39166         * malloc/obstack.h: Likewise.
39167         * math/complex.h: Likewise.
39168         * math/math.h: Likewise.
39169         * sysdeps/generic/_G_config.h: Likewise.
39170         * sysdeps/gnu/_G_config.h: Likewise.
39171         * sysdeps/mach/hurd/_G_config.h: Likewise.
39172         * sysdeps/powerpc/bits/mathdef.h: Likewise.
39173         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
39174         * sysdeps/sparc/bits/mathdef.h: Likewise.
39175
39176 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
39177
39178         [BZ #13583]
39179         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
39180         Clean up HAS_* macros.
39181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
39182         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
39183         possible.
39184         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
39185         HAS_AVX.
39186         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
39187         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
39188         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
39189         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
39190         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
39191
39192 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
39193
39194         * elf/tst-unique3.cc (gets): Remove declaration.
39195         * elf/tst-unique3lib.cc (gets): Likewise.
39196         * elf/tst-unique3lib2.cc (gets): Likewise.
39197         * elf/tst-unique4.cc (gets): Likewise.
39198
39199 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
39200
39201         * include/stdio.h: Add C++ protection.  Add gets declarations and
39202         definitions.
39203         * debug/tst-chk1.c: Don't declare gets here.
39204         * stdio-common/tst-gets.c: Likewise.
39205
39206 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39207
39208         * posix/glob: Remove directory.
39209
39210 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
39211
39212         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
39213
39214 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
39215
39216         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
39217         of the non-standard EPFNOSUPPORT.
39218
39219 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
39220
39221         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
39222         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
39223         ANYWHERE set to 1 only on KERN_NO_SPACE error.
39224
39225 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
39226
39227         * wcsmbs/uchar.h: Test __STDC_VERSION__.
39228
39229 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
39230
39231         * nscd/aicache.c (addhstaiX): Do not cache negative results of
39232         transient errors.
39233         * nscd/grpcache.c (cache_addgr): Likewise.
39234         * nscd/hstcache.c (cache_addhst): Likewise.
39235         * nscd/initgrcache.c (addinitgroupsX): Likewise.
39236         * nscd/pwdcache.c (cache_addpw): Likewise.
39237         * nscd/servicescache.c (cache_addserv): Likewise.
39238
39239 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
39240
39241         * malloc/malloc.c: Various cleanups.
39242         * malloc/hooks.c: Likewise.
39243
39244         * stdlib/Makefile (tests): Add bug-fmtmsg1.
39245         * stdlib/bug-fmtmsg1.c: New file.
39246
39247         * stdlib/fmtmsg.c (init): Add missing unlock.
39248         Patch by Peng Haitao <penght@cn.fujitsu.com>.
39249
39250 2012-01-12  Marek Polacek  <polacek@redhat.com>
39251
39252         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
39253         and _GNU_SOURCE.
39254
39255 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
39256
39257         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
39258         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
39259         macro to ensure uniqueness of label name.
39260         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
39261         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
39262
39263 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
39264
39265         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
39266
39267         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
39268         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39269         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39270         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
39271
39272 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
39273
39274         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
39275
39276         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
39277         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39278         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39279
39280         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
39281
39282         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
39283         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39284         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39285         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
39286
39287         * math/bits/math-finite.h: Add ldexp support.
39288
39289 2012-01-10  Marek Polacek  <polacek@redhat.com>
39290
39291         * locale/programs/localedef.h (show_archive_content): Add noreturn
39292         attribute.
39293
39294 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
39295
39296         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
39297
39298 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39299
39300         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
39301
39302         * io/Makefile (headers): Add bits/poll2.h.
39303
39304 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
39305
39306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
39307         typo #include statement.
39308
39309 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39310
39311         * include/sys/cdefs.h: Define __attribute_alloc_size.
39312         * catgets/gencat.c: Add alloc_size attribute and apply consistently
39313         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
39314         * elf/pldd.c: Likewise.
39315         * iconv/iconv_charmap.c: Likewise.
39316         * iconv/iconvconfig.c: Likewise.
39317         * iconv/strtab.c: Likewise.
39318         * locale/programs/locale.c: Likewise.
39319         * locale/programs/localedef.h: Likewise.
39320         * locale/programs/simple-hash.c: Likewise.
39321         * nscd/nscd.h: Likewise.
39322         * nss/makedb.c: Likewise.
39323         * sysdeps/generic/ldconfig.h: Likewise.
39324         * locale/programs/localedef.c: Remove xmalloc prototype.
39325         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
39326
39327 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
39328
39329         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
39330         appropriate.
39331
39332 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
39333
39334         * math/Makefile (tests): Add tst-CMPLX.
39335         * math/tst-CMPLX.c: New file.
39336
39337         * math/complex.h (CMPLXL): Fix typo.
39338
39339         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
39340         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
39341         GLIBC_2.16.
39342         * debug/tst-chk1.c: Add poll and ppoll tests.
39343         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
39344         * include/sys/poll.h: Add hidden proto for ppoll.
39345         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
39346         * sysdeps/mach/hurd/ppoll.c: Likewise.
39347         * io/ppoll.c: Likewise.
39348         * debug/poll_chk.c: New file.
39349         * debug/ppoll_chk.c: New file.
39350         * include/bits/poll2.h: New file.
39351         * io/bits/poll2.h: New file.
39352
39353         [BZ #1350]
39354         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
39355
39356         * configure.in: static is always set to yes.  Remove.
39357         * config.make.in: Don't set build-static.
39358         * Makeconfig: Remove use of build-static.
39359         * dlfcn/Makefile: Likewise.
39360         * elf/Makefile: Likewise.
39361         * math/Makefile: Likewise.
39362         * misc/Makefile: Likewise.
39363         * nptl/Makefile: Likewise.
39364         * sysdeps/mach/hurd/Makefile: Likewise.
39365
39366         * configure.in: PWD_P is not used anymore.
39367         * config.make.in: Remove PWD_P entry.
39368
39369         * configure.in: Remove last remnants of RANLIB.
39370         No need to check for signed size_t anymore.
39371         Don't set libc_commonpagesize and libc_relro_required here for Alpha
39372         and IA-64.
39373         Remove __builtin_expect test because we require at least gcc 3.4.
39374         * aclocal.m4: Likewise.
39375
39376         * wcsmbs/mbrtoc16.c: Implement using towc function.
39377         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
39378         * wcsmbs/wcsmbsload.c: Likewise.
39379         * iconv/gconv_simple.c: Likewise.
39380         * iconv/gconv_int.h: Likewise.
39381         * iconv/gconv_builtin.h: Likewise.
39382         * iconv/iconv_prog.c: Remove CHAR16 handling.
39383
39384         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
39385
39386         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
39387
39388         * configure.in: Remove --with-elf and --enable-bounded options.
39389         Dont set base_machine for ia64.  More non-ELF conditions removed.
39390         Remove testing and setting of leading underscore information.
39391         * config.make.in (build-bounded): Set to no.
39392         * config.h.in: Remove NO_UNDERSCORES entry.
39393         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
39394         them.
39395         * csu/start.c: Remove !NO_UNDERSCORE code.
39396         * locale/localeinfo.h: Likewise.
39397         * sysdeps/generic/machine-gmon.h: Likewise.
39398         * sysdeps/generic/sysdep.h: Likewise.
39399         * sysdeps/i386/sysdep.h: Likewise.
39400         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39401         * sysdeps/mach/sysdep.h: Likewise.
39402         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39403         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39404         * sysdeps/sh/sysdep.h: Likewise.
39405         * sysdeps/sparc/sparc32/alloca.S: Likewise.
39406         * sysdeps/unix/i386/sysdep.S: Likewise.
39407         * sysdeps/unix/sparc/start.c: Likewise.
39408         * sysdeps/unix/sparc/sysdep.S: Likewise.
39409         * sysdeps/unix/sparc/sysdep.h: Likewise.
39410         * sysdeps/unix/start.c: Likewise.
39411         * sysdeps/unix/x86_64/sysdep.S: Likewise.
39412         * sysdeps/x86_64/sysdep.h: Likewise.
39413
39414 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
39415
39416         [BZ #13553]
39417         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
39418         for non-gcc.
39419         * argp/argp-fmtstream.h: Use const instead __const.
39420         * argp/argp.h: Likewise.
39421         * assert/assert.h: Likewise.
39422         * bits/fenv.h: Likewise.
39423         * bits/sched.h: Likewise.
39424         * bits/sigset.h: Likewise.
39425         * bits/sigthread.h: Likewise.
39426         * catgets/nl_types.h: Likewise.
39427         * conform/data/pthread.h-data: Likewise.
39428         * crypt/crypt-private.h: Likewise.
39429         * crypt/crypt.h: Likewise.
39430         * crypt/crypt_util.c: Likewise.
39431         * ctype/ctype.h: Likewise.
39432         * debug/execinfo.h: Likewise.
39433         * debug/mbsnrtowcs_chk.c: Likewise.
39434         * debug/mbsrtowcs_chk.c: Likewise.
39435         * debug/wcsnrtombs_chk.c: Likewise.
39436         * debug/wcsrtombs_chk.c: Likewise.
39437         * debug/wcstombs_chk.c: Likewise.
39438         * dirent/dirent.h: Likewise.
39439         * dlfcn/dlfcn.h: Likewise.
39440         * elf/neededtest4.c: Likewise.
39441         * grp/grp.h: Likewise.
39442         * gshadow/gshadow.h: Likewise.
39443         * iconv/gconv.h: Likewise.
39444         * iconv/gconv_int.h: Likewise.
39445         * iconv/gconv_simple.c: Likewise.
39446         * iconv/iconv.h: Likewise.
39447         * iconv/loop.c: Likewise.
39448         * iconv/skeleton.c: Likewise.
39449         * include/aio.h: Likewise.
39450         * include/aliases.h: Likewise.
39451         * include/argz.h: Likewise.
39452         * include/arpa/inet.h: Likewise.
39453         * include/assert.h: Likewise.
39454         * include/dirent.h: Likewise.
39455         * include/dlfcn.h: Likewise.
39456         * include/execinfo.h: Likewise.
39457         * include/fcntl.h: Likewise.
39458         * include/fenv.h: Likewise.
39459         * include/glob.h: Likewise.
39460         * include/grp.h: Likewise.
39461         * include/libintl.h: Likewise.
39462         * include/mntent.h: Likewise.
39463         * include/netdb.h: Likewise.
39464         * include/pwd.h: Likewise.
39465         * include/rpc/netdb.h: Likewise.
39466         * include/sched.h: Likewise.
39467         * include/search.h: Likewise.
39468         * include/shadow.h: Likewise.
39469         * include/signal.h: Likewise.
39470         * include/stdio.h: Likewise.
39471         * include/stdlib.h: Likewise.
39472         * include/string.h: Likewise.
39473         * include/sys/socket.h: Likewise.
39474         * include/sys/stat.h: Likewise.
39475         * include/sys/statfs.h: Likewise.
39476         * include/sys/statvfs.h: Likewise.
39477         * include/sys/syslog.h: Likewise.
39478         * include/sys/time.h: Likewise.
39479         * include/sys/uio.h: Likewise.
39480         * include/time.h: Likewise.
39481         * include/unistd.h: Likewise.
39482         * include/utmp.h: Likewise.
39483         * include/wchar.h: Likewise.
39484         * include/wctype.h: Likewise.
39485         * inet/aliases.h: Likewise.
39486         * inet/arpa/inet.h: Likewise.
39487         * inet/netinet/ether.h: Likewise.
39488         * inet/netinet/in.h: Likewise.
39489         * intl/libintl.h: Likewise.
39490         * io/bits/fcntl2.h: Likewise.
39491         * io/fcntl.h: Likewise.
39492         * io/ftw.h: Likewise.
39493         * io/sys/poll.h: Likewise.
39494         * io/sys/stat.h: Likewise.
39495         * io/sys/statfs.h: Likewise.
39496         * io/sys/statvfs.h: Likewise.
39497         * io/utime.h: Likewise.
39498         * libio/bits/stdio.h: Likewise.
39499         * libio/bits/stdio2.h: Likewise.
39500         * libio/libio.h: Likewise.
39501         * libio/libioP.h: Likewise.
39502         * libio/stdio.h: Likewise.
39503         * locale/lc-ctype.c: Likewise.
39504         * locale/locale.h: Likewise.
39505         * login/utmp.h: Likewise.
39506         * malloc/arena.c: Likewise.
39507         * malloc/malloc.c: Likewise.
39508         * malloc/malloc.h: Likewise.
39509         * malloc/mcheck.c: Likewise.
39510         * malloc/mtrace.c: Likewise.
39511         * math/bits/mathcalls.h: Likewise.
39512         * math/fenv.h: Likewise.
39513         * math/math_private.h: Likewise.
39514         * misc/bits/error.h: Likewise.
39515         * misc/bits/syslog.h: Likewise.
39516         * misc/err.h: Likewise.
39517         * misc/error.h: Likewise.
39518         * misc/fstab.h: Likewise.
39519         * misc/mntent.h: Likewise.
39520         * misc/regexp.h: Likewise.
39521         * misc/search.h: Likewise.
39522         * misc/sgtty.h: Likewise.
39523         * misc/sys/mman.h: Likewise.
39524         * misc/sys/syslog.h: Likewise.
39525         * misc/sys/uio.h: Likewise.
39526         * misc/sys/xattr.h: Likewise.
39527         * misc/ttyent.h: Likewise.
39528         * nis/rpcsvc/ypclnt.h: Likewise.
39529         * nss/nss.h: Likewise.
39530         * posix/bits/unistd.h: Likewise.
39531         * posix/fnmatch.h: Likewise.
39532         * posix/glob.h: Likewise.
39533         * posix/sched.h: Likewise.
39534         * posix/spawn.h: Likewise.
39535         * posix/sys/wait.h: Likewise.
39536         * posix/unistd.h: Likewise.
39537         * posix/wordexp.h: Likewise.
39538         * pwd/pwd.h: Likewise.
39539         * resolv/netdb.h: Likewise.
39540         * resource/sys/resource.h: Likewise.
39541         * rt/aio.h: Likewise.
39542         * rt/bits/mqueue2.h: Likewise.
39543         * rt/mqueue.h: Likewise.
39544         * shadow/shadow.h: Likewise.
39545         * signal/signal.h: Likewise.
39546         * socket/send.c: Likewise.
39547         * socket/sendto.c: Likewise.
39548         * socket/sys/socket.h: Likewise.
39549         * stdio-common/printf.h: Likewise.
39550         * stdlib/bits/stdlib.h: Likewise.
39551         * stdlib/fmtmsg.h: Likewise.
39552         * stdlib/monetary.h: Likewise.
39553         * stdlib/stdlib.h: Likewise.
39554         * stdlib/ucontext.h: Likewise.
39555         * streams/stropts.h: Likewise.
39556         * string/argz.h: Likewise.
39557         * string/bits/string2.h: Likewise.
39558         * string/string.h: Likewise.
39559         * string/strings.h: Likewise.
39560         * sunrpc/rpc/auth.h: Likewise.
39561         * sunrpc/rpc/auth_des.h: Likewise.
39562         * sunrpc/rpc/clnt.h: Likewise.
39563         * sunrpc/rpc/netdb.h: Likewise.
39564         * sunrpc/rpc/pmap_clnt.h: Likewise.
39565         * sunrpc/rpc/xdr.h: Likewise.
39566         * sysdeps/generic/inttypes.h: Likewise.
39567         * sysdeps/generic/net/if.h: Likewise.
39568         * sysdeps/generic/sys/swap.h: Likewise.
39569         * sysdeps/gnu/net/if.h: Likewise.
39570         * sysdeps/gnu/utmpx.h: Likewise.
39571         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
39572         * sysdeps/i386/i486/bits/string.h: Likewise.
39573         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
39574         * sysdeps/s390/bits/string.h: Likewise.
39575         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
39576         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
39577         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
39578         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
39579         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
39580         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
39581         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
39582         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
39583         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
39584         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
39585         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
39586         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
39587         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
39588         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
39589         * sysdeps/unix/sysv/linux/readv.c: Likewise.
39590         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
39591         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
39592         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
39593         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
39594         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
39595         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39596         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
39597         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
39598         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
39599         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
39600         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
39601         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
39602         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39603         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
39604         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
39605         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
39606         * sysvipc/sys/ipc.h: Likewise.
39607         * sysvipc/sys/msg.h: Likewise.
39608         * sysvipc/sys/sem.h: Likewise.
39609         * sysvipc/sys/shm.h: Likewise.
39610         * termios/termios.h: Likewise.
39611         * time/sys/time.h: Likewise.
39612         * time/time.h: Likewise.
39613         * wcsmbs/bits/wchar2.h: Likewise.
39614         * wcsmbs/uchar.h: Likewise.
39615         * wcsmbs/wchar.h: Likewise.
39616         * wctype/wctype.h: Likewise.
39617
39618         [BZ #13551]
39619         * Makeconfig: Remove all but ELF support including AIX support.
39620         * Makerules: Likewise.
39621         * config.h.in: Likewise.
39622         * config.make.in: Likewise.
39623         * configure: Likewise.
39624         * configure.in: Likewise.
39625         * csu/Makefile: Likewise.
39626         * csu/version.c: Likewise.
39627         * debug/Makefile: Likewise.
39628         * dlfcn/Makefile: Likewise.
39629         * elf/Makefile: Likewise.
39630         * extra-lib.mk: Likewise.
39631         * iconv/Makefile: Likewise.
39632         * include/libc-symbols.h: Likewise.
39633         * include/shlib-compat.h: Likewise.
39634         * resolv/Makefile: Likewise.
39635         * resolv/res_libc.c: Likewise.
39636         * rt/Makefile: Likewise.
39637         * sysdeps/i386/asm-syntax.h: Likewise.
39638         * sysdeps/i386/sysdep.h: Likewise.
39639         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
39640         * sysdeps/mach/sysdep.h: Likewise.
39641         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
39642         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
39643         * sysdeps/s390/asm-syntax.h: Likewise.
39644         * sysdeps/s390/s390-32/sysdep.h: Likewise.
39645         * sysdeps/s390/s390-64/sysdep.h: Likewise.
39646         * sysdeps/sh/sysdep.h: Likewise.
39647         * sysdeps/unix/sparc/sysdep.h: Likewise.
39648         * sysdeps/wordsize-32/divdi3.c: Likewise.
39649         * sysdeps/x86_64/sysdep.h: Likewise.
39650
39651         * argp/Versions: Remove _argp_unlock_xxx.
39652
39653         [BZ #13559]
39654         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
39655         * abilist/libBrokenLocale.abilist: Likewise.
39656         * abilist/libanl.abilist: Likewise.
39657         * abilist/libc.abilist: Likewise.
39658         * abilist/libcrypt.abilist: Likewise.
39659         * abilist/libdl.abilist: Likewise.
39660         * abilist/libm.abilist: Likewise.
39661         * abilist/libnsl.abilist: Likewise.
39662         * abilist/libpthread.abilist: Likewise.
39663         * abilist/libresolv.abilist: Likewise.
39664         * abilist/librt.abilist: Likewise.
39665         * abilist/libthread_db.abilist: Likewise.
39666         * abilist/libutil.abilist: Likewise.
39667         * abilist/libnss_db.abilist: New file.
39668
39669         * scripts/abilist.awk: Add support for indirect functions.
39670
39671         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
39672
39673         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
39674
39675         * shlib-versions: Remove entries for ports architectures.
39676
39677         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
39678         files in ports.
39679         * elf/stackguard-macros.h: Remove support for IA-64.
39680         * elf/tst-auditmod1.c: Likewise.
39681         * sysdeps/generic/ldsodefs.h: Likewise.
39682
39683         * sysdeps/unix/sysv/linux/configure.in: Ports should define
39684         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
39685         configure files.
39686
39687         [BZ #13552]
39688         * configure.in: Remove --enable-omitfp support.
39689         * FAQ.in: Adjust.
39690         * config.make.in: Likewise.
39691         * Makeconfig: Likewise.
39692         * manual/install.texi: Likewise.
39693
39694         In case anyone cares, the IA-64 architecture could move to ports.
39695         * sysdeps/ia64/*: Removed.
39696         * sysdeps/unix/sysv/linux/ia64/*: Removed.
39697         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
39698
39699         [BZ #13555]
39700         * configure.in: Remove entries for unsupported architectures.
39701
39702         [BZ #13533]
39703         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
39704         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
39705         routines.
39706         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
39707         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
39708         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
39709         fall back to using wcrtomb.
39710         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
39711         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
39712         renaming.
39713         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
39714         * wcsmbs/tst-c16c32-1.c: New file.
39715
39716         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
39717         local variable.
39718
39719         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
39720
39721         * elf/tst-unique3.cc: Add explicit declaration of gets.
39722         * elf/tst-unique3lib.cc: Likewise.
39723         * elf/tst-unique3lib2.cc: Likewise.
39724         * elf/tst-unique4.cc: Likewise.
39725
39726         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
39727
39728 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
39729
39730         [BZ #13566]
39731         * assert/assert.h (static_assert): Don't define for C++.
39732         * libio/stdio.h (gets): Do declare for C++ <= C++11.
39733         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
39734
39735 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
39736
39737         * iconv/loop.c (single loop): Fix assertion in storing of
39738         remaining bytes.
39739
39740         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
39741
39742 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
39743
39744         * posix/getconf.c: Update copyright year.
39745         * nss/getent.c: Likewise.
39746         * nss/makedb.c: Likewise.
39747         * iconv/iconvconfig.c: Likewise.
39748         * iconv/iconv_prog.c: Likewise.
39749         * elf/ldconfig.c: Likewise.
39750         * elf/pldd.c: Likewise.
39751         * elf/sotruss.ksh: Likewise.
39752         * catgets/gencat.c: Likewise.
39753         * csu/version.c: Likewise.
39754         * elf/ldd.bash.in: Likewise.
39755         * elf/sprof.c (print_version): Likewise.
39756         * locale/programs/locale.c: Likewise.
39757         * locale/programs/localedef.c: Likewise.
39758         * login/programs/pt_chown.c: Likewise.
39759         * nscd/nscd.c (print_version): Likewise.
39760         * debug/xtrace.sh: Likewise.
39761         * malloc/memusage.sh: Likewise.
39762         * malloc/mtrace.pl: Likewise.
39763         * debug/catchsegv.sh: Likewise.
39764
39765 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
39766
39767         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
39768         pure attribute.
39769
39770 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
39771
39772         [BZ #13533]
39773         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
39774         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
39775         transformations.
39776         * iconv/gconv_int.h: Likewise.
39777         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
39778         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
39779         from libc for GLIBC_2.16.
39780         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
39781         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
39782         * wcsmbs/uchar.h: Really define mbstate_t.
39783         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
39784         * wcsmbs/c16rtomb.c: New file.
39785         * wcsmbs/mbrtoc16.c: New file.
39786         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
39787         for C/POSIX locale.
39788         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
39789         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
39790
39791         * wcsmbs/wchar.h: Add missing __restrict.
39792
39793 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
39794
39795         [BZ #13532]
39796         * time/Makefile (routines): Add timespec_get.
39797         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
39798         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
39799         timespec for ISO C11.
39800         * time/timespec_get.c: New file.
39801         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
39802         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
39803
39804         [BZ #13531]
39805         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
39806         * stdlib/stdlib.h: Declare aligned_alloc.
39807         * Versions.def: Add GLIBC_2.16 for libc.
39808         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
39809
39810         [BZ 13527]
39811         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
39812         ISO C11.
39813
39814         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
39815         code.
39816
39817         [BZ #13528]
39818         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
39819
39820         [BZ #13529]
39821         * assert/assert.h (static_assert): Define.
39822
39823         * version.h: Update for 2.16 development version.
39824
39825         [BZ #13526]
39826         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
39827         _ISOC11_SOURCE.
39828
39829         * version.h (RELEASE): Bump for 2.15 release.
39830         * include/features.h (__GLIBC_MINOR__): Bump to 15.
39831
39832         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
39833         Patch by Marek Polacek <mpolacek@redhat.com>.
39834
39835         * bits/byteswap.h: Protect long long constants with __extension__.
39836         * sysdeps/i386/bits/byteswap.h: Likewise.
39837         * sysdeps/ia64/bits/byteswap.h: Likewise.
39838         * sysdeps/s390/bits/byteswap.h: Likewise.
39839         * sysdeps/x86_64/bits/byteswap.h: Likewise.
39840
39841 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39842
39843         [BZ #13540]
39844         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
39845         destination buffer.
39846         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
39847
39848 2011-12-23  Marek Polacek  <polacek@redhat.com>
39849
39850         * elf/dl-addr.c (determine_info): Add inline keyword.
39851         * elf/tst-auditmod4b.c (check_avx): Likewise.
39852         * elf/tst-auditmod6b.c (check_avx): Likewise.
39853         * elf/tst-auditmod6c.c (check_avx): Likewise.
39854         * elf/tst-auditmod7b.c (check_avx): Likewise.
39855
39856 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
39857
39858         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
39859         !__SSE_MATH__.
39860
39861 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39862
39863         [BZ #13540]
39864         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
39865         processing for last bytes.
39866
39867 2011-08-06  Bruno Haible  <bruno@clisp.org>
39868
39869         [BZ #13061]
39870         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
39871         U+0385, not to U+1FEE.
39872
39873         [BZ #13062]
39874         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
39875         entry for U+00A5 U+0301.
39876
39877 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
39878
39879         [BZ #13166]
39880         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
39881         buffer for the output is too small.
39882
39883         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
39884         optimization.
39885
39886         [BZ #13185]
39887         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
39888         SSE flags if possible.
39889
39890 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
39891
39892         [BZ #13540]
39893         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
39894         processing for last bytes.
39895
39896 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
39897
39898         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
39899         (syscall-list-default-options, syscall-list-default-condition)
39900         (syscall-list-includes): Define.
39901         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
39902         list of ABIs and options and #if conditions for each ABI.  Do not
39903         handle common syscalls between ABIs specially.
39904         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
39905         Remove.
39906         (syscall-list-variants, syscall-list-32bit-options)
39907         (syscall-list-32bit-condition, syscall-list-64bit-options)
39908         (syscall-list-64bit-condition): Define.
39909         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
39910         (syscall-list-variants, syscall-list-32bit-options)
39911         (syscall-list-32bit-condition, syscall-list-64bit-options)
39912         (syscall-list-64bit-condition): Define.
39913         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
39914         Remove.
39915         (syscall-list-variants, syscall-list-32bit-options)
39916         (syscall-list-32bit-condition, syscall-list-64bit-options)
39917         (syscall-list-64bit-condition): Define.
39918         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
39919         Remove.
39920         (syscall-list-variants, syscall-list-32bit-options)
39921         (syscall-list-32bit-condition, syscall-list-64bit-options)
39922         (syscall-list-64bit-condition): Define.
39923
39924 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
39925
39926         * locale/iso-639.def: Add brx entry.
39927
39928         [BZ #13328]
39929         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
39930         Proposed by Mariusz_Cukr <marcukr@op.pl>.
39931
39932         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
39933         __feraiseexcept_renamed.
39934
39935 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
39936
39937         [BZ #13538]
39938         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
39939         EPOLLET with unsigned values.
39940         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
39941         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
39942
39943         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
39944         to large cancellation.
39945         * math/s_cacoshf.c: Likewise.
39946         * math/s_cacoshl.c: Likewise.
39947
39948 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
39949
39950         [BZ #13305]
39951         [BZ #12786]
39952         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
39953         * math/s_cacoshf.c: Likewise.
39954         * math/s_cacoshl.c: Likewise.
39955
39956 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
39957
39958         [BZ #13439]
39959         * iconv/gconv.h: Define __GCONV_SWAP.
39960         * iconvdata/unicode.c: The swap bit must be stored in __flags.
39961         * iconvdata/utf-16.c: Likewise.
39962         * iconvdata/utf-32.c: Likewise.
39963
39964 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
39965
39966         [BZ #13524]
39967         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
39968         numerator after shifting it by one limb.
39969
39970 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
39971
39972         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
39973         under [__USE_EXTERN_INLINES].
39974
39975 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
39976
39977         [BZ #13446]
39978         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
39979
39980 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39981
39982         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
39983         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
39984         optimized code.
39985         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
39986         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
39987         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
39988         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
39989         for strncasecmp/strncasecmp_l compilation.
39990         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
39991         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
39992
39993 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
39994
39995         [BZ #13484]
39996         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
39997         of __asm__.
39998
39999 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
40000
40001         [BZ #13506]
40002         * time/tzfile.c (__tzfile_read): Check values from file header.
40003
40004 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
40005
40006         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
40007         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
40008         * powerpc/powerpc32/dl-start.S: Likewise.
40009         * powerpc/powerpc32/elf/start.S: Likewise.
40010         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
40011         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
40012         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
40013         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
40014         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
40015         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
40016         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
40017         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40018         * powerpc/powerpc32/fpu/s_round.S: Likewise.
40019         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
40020         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
40021         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
40022         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
40023         * powerpc/powerpc32/memset.S: Likewise.
40024         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
40025         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
40026         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
40027         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
40028         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
40029         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
40030         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
40031         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
40032         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
40033         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
40034         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
40035         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
40036         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
40037
40038 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40039
40040         * math/libm-test.inc: Added more nearbyint tests.
40041         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
40042         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
40043         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
40044         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
40045
40046 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
40047
40048         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
40049         FD_CLOEXEC.
40050
40051 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40052
40053         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
40054         Add wcscpy-ssse3 wcscpy-c.
40055         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
40056         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
40057         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
40058         * sysdeps/x86_64/wcschr.S: New file.
40059         * sysdeps/x86_64/wcsrchr.S: New file.
40060         * string/test-strcmp.c: Remove checking of wcscmp function for
40061         wrong alignments.
40062         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
40063         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
40064         wcsrchr-sse2 wcsrchr-c.
40065         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
40066         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
40067         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
40068         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
40069         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
40070         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
40071         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
40072         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
40073         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
40074         * wcsmbc/wcschr.c (WCSCHR): New macro.
40075
40076 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40077
40078         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
40079         * wcsmbs/test-wcsrchr.c: New file.
40080         * string/test-strrchr.c: Add wcsrchr support.
40081         (WIDE): New macro.
40082         * wcsmbs/test-wcscpy.c: New file.
40083         * string/test-strcpy.c: Add wcscpy support.
40084         (WIDE): New macro.
40085
40086 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
40087
40088         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
40089         the inner loop.
40090
40091 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
40092
40093         [BZ #13472]
40094         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
40095
40096 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
40097
40098         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
40099         Minor optimizations.
40100
40101         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
40102         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
40103         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
40104
40105 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
40106
40107         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
40108         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
40109         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
40110         for gcc to avoid warnings.
40111         * inet/Makefile (tests): Add tst-checks.
40112         * inet/tst-checks.c: New file.
40113
40114         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
40115         warning.
40116
40117         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
40118         __wmemcmp_sse2.
40119
40120         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
40121         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
40122
40123         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
40124
40125 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
40126
40127         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
40128         problem.
40129
40130         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
40131
40132 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
40133
40134         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
40135         conditional on GCC version.
40136         (__arch_compare_and_exchange_val_8_acq)
40137         (__arch_compare_and_exchange_val_16_acq)
40138         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
40139         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
40140         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
40141
40142 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
40143
40144         * sysdeps/sh/backtrace.c: New file.
40145
40146 2011-12-02  Andreas Schwab  <schwab@redhat.com>
40147
40148         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
40149         parenthesis.
40150
40151 2011-12-01  Andreas Schwab  <schwab@redhat.com>
40152
40153         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
40154         falling back to utime.
40155
40156 2011-11-30  Andreas Schwab  <schwab@redhat.com>
40157
40158         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
40159         expectations for float.
40160
40161 2011-11-29  Andreas Schwab  <schwab@redhat.com>
40162
40163         * locale/weight.h (findidx): Add parameter len.
40164         * locale/weightwc.h (findidx): Likewise.
40165         * posix/fnmatch_loop.c (FCT): Adjust caller.
40166         * posix/regcomp.c (build_equiv_class): Likewise.
40167         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
40168         * posix/regexec.c (check_node_accept_bytes): Likewise.
40169         * string/strcoll_l.c (STRCOLL): Likewise.
40170         * string/strxfrm_l.c (STRXFRM): Likewise.
40171
40172 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
40173
40174         * Makefile.in: Remove CVSOPT handling.
40175         * configure.in: Remove use of AC_REVISION.
40176         * iconvdata/Makefile (distribute): No need to filter out CVS.
40177         * scripts/list-sources.sh: Remove CVS, subversion and monotone
40178         handling.
40179
40180 2011-11-16  Andreas Schwab  <schwab@redhat.com>
40181
40182         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
40183         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
40184         [USE_AS_STRNCASECMP_L]: Likewise.
40185         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
40186         NO_TLS_DIRECT_SEG_REFS.
40187         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
40188         Fix argument offsets for non-PIC.
40189         [USE_AS_STRNCASECMP_L]: Likewise.
40190         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
40191         NO_TLS_DIRECT_SEG_REFS.
40192
40193 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40194
40195         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
40196         O_CLOEXEC.
40197         * locale/loadlocale.c (_nl_load_locale): Likewise.
40198
40199 2011-11-15  Andreas Schwab  <schwab@redhat.com>
40200
40201         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
40202         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
40203         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
40204         (SYSCALL_GETTIME): Set errno on error.
40205
40206         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
40207         count references to noai6ai_cached.
40208
40209 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
40210
40211         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
40212
40213         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
40214         FD_CLOEXEC for /proc/self/maps.
40215
40216         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
40217         FD_CLOEXEC for /proc/meminfo.
40218
40219         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
40220         gai.conf.
40221
40222         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
40223         FD_CLOEXEC for given file.
40224
40225         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
40226
40227         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
40228         FD_CLOEXEC for /etc/hosts.
40229         (_gethtent): Likewise.
40230
40231         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
40232
40233         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
40234         cancellation and set FD_CLOEXEC for /etc/netgroup.
40235
40236         * nss/nss_files/files-key.c (search): Don't allow cancellation when
40237         reading /etc/publickey.
40238
40239         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
40240         allow cancellation when reading /etc/group.
40241
40242         * nss/nss_files/files-alias.c (internal_setent): Don't allow
40243         cancellation.
40244         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
40245
40246         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
40247         when using data file.
40248
40249         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
40250
40251         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
40252         (write_nis_obj): Use "c" and "e" in fopen.
40253
40254         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
40255
40256         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
40257
40258         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
40259
40260         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
40261
40262         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
40263         locale.alias.
40264
40265         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
40266
40267         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
40268
40269         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
40270
40271         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
40272         file parsing and set FD_CLOEXEC.
40273
40274 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40275
40276         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
40277
40278 2011-11-14  Andreas Schwab  <schwab@redhat.com>
40279
40280         * malloc/arena.c (arena_get2): Don't call reused_arena when
40281         _int_new_arena failed.
40282
40283 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
40284
40285         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
40286         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
40287         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
40288         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40289         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40290         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
40291         to compile strcasecmp and strncasecmp.
40292         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
40293         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
40294
40295         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
40296
40297 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
40298
40299         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
40300         locale-defines.sym to gen-as-const-headers.
40301         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
40302         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
40303         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
40304         to compile strcasecmp and strncasecmp.
40305         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
40306         strcasecmp_l and strncasecmp_l.
40307         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
40308         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
40309         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
40310         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
40311         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
40312         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
40313         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
40314         * sysdeps/i386/i686/multiarch/strncase.S: New file.
40315         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
40316         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
40317         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
40318
40319 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
40320
40321         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
40322         result of SYSDEP_GETTIME_CPU to retval.
40323         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
40324         parameter list to macro.  Remove trailing semicolon.  Adjust users.
40325
40326         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
40327         variable.
40328
40329         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
40330         mantissa words.
40331         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
40332
40333         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
40334         from unused variable.
40335
40336         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
40337         DWARF definitions.
40338         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
40339         for assembling.
40340
40341         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
40342         over namespaces.
40343
40344         * sunrpc/rpc_prot.c (rejected): Fix case value.
40345
40346         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
40347         unsigned long long int to avoid warnings in shift.
40348
40349         * posix/regex_internal.c (re_string_reconstruct): Actually use result
40350         of use of trans.
40351         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
40352         variable tmp.
40353
40354         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
40355         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
40356         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
40357
40358         * nis/nis_table.c (nis_list): Use variable of correct type for
40359         result of __follow_path call.
40360
40361 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40362
40363         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
40364         of math functions ceil, trunc, floor, round, and sqrt, when
40365         avaliable on the platform.
40366         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
40367         name clash.
40368         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
40369         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
40370         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
40371
40372 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
40373
40374         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
40375         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
40376
40377 2011-11-11  Roland McGrath  <roland@hack.frob.com>
40378
40379         * include/unistd.h: Fix __readlink return type.
40380         Reported by Chris Metcalf <cmetcalf@tilera.com>.
40381
40382 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
40383
40384         * stdlib/ucontext.h: Undo last change for makecontext.
40385
40386 2011-11-11  Andreas Schwab  <schwab@redhat.com>
40387
40388         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
40389
40390         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
40391         * setjmp/setjmp.h: Mark functions as non-leaf.
40392         * setjmp/bits/setjmp2.h: Likewise.
40393         * stdlib/ucontext.h: Likewise.
40394
40395 2011-11-10  Andreas Schwab  <schwab@redhat.com>
40396
40397         * malloc/arena.c (_int_new_arena): Don't increment narenas.
40398         (reused_arena): Don't check arena limit.
40399         (arena_get2): Atomically check arena limit.
40400
40401 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
40402
40403         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
40404         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
40405
40406         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
40407         instructions.
40408
40409 2011-11-07  Andreas Schwab  <schwab@redhat.com>
40410
40411         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
40412         handler when locking.
40413
40414         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
40415         Fix size of allocated buffer.
40416
40417 2011-11-04  Andreas Schwab  <schwab@redhat.com>
40418
40419         [BZ #10103]
40420         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
40421         declarations for long double functions.
40422         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
40423
40424         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
40425
40426 2011-11-03  Andreas Schwab  <schwab@redhat.com>
40427
40428         * nscd/nscd.c (main): Don't start AVC thread until credentials are
40429         installed.
40430
40431         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
40432         is disabled.
40433
40434 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40435
40436         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
40437
40438 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
40439
40440         * include/alloca.h (stackinfo_alloca_round): Define.
40441         (extend_alloca): Use it.
40442         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
40443         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
40444         here.
40445
40446         * scripts/check-local-headers.sh: Ignore libaudit.h.
40447
40448         * nscd/Makefile (extra-objs): Make recursively expanded.
40449
40450 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
40451
40452         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
40453         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
40454
40455         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
40456         * posix/tst-rfc3484-2.c: Likewise.
40457         * posix/tst-rfc3484-3.c: Likewise.
40458
40459         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
40460         process_vm_writev.
40461         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
40462         process_vm_writev.
40463         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
40464         process_vm_writev from libc using GLIBC_2.15 version.
40465
40466         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
40467
40468 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
40469
40470         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
40471         stack usage.
40472
40473 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
40474
40475         [BZ #13367]
40476         * nss/getent.c (initgroups_keys): Show error message in case no group
40477         names are given.
40478
40479         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
40480         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
40481         __bump_nl_timestamp.
40482         * nscd/connections (nscd_init): When host database is served open
40483         netlink socket and request notification about configuration changes.
40484         (main_loop_poll): Track netlink file descriptor and bump timestamp
40485         in case data becomes available.
40486         (main_loop_epoll): Likewise.
40487         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
40488         (database_pers_head): Add extra_data fileds.
40489         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
40490         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
40491         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
40492         Adjust caller.
40493         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
40494         in6ai data, call __free_in6ai.
40495         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
40496         Add -DHAVE_NETLINK.
40497         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
40498         interface information.  Reuse previous data if netlink timestamp
40499         is not changed.
40500         (__bump_nl_timestamp): New function.
40501         (__free_in6ai): New function.
40502
40503 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
40504
40505         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
40506         close_not_cancel_no_status here.
40507         (__check_pf): Reorganize code a bit to not call close twice if OOM.
40508
40509 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40510
40511         [BZ #13276]
40512         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
40513         return value.
40514
40515         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
40516         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
40517         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
40518
40519 2011-07-03  Andreas Jaeger  <aj@suse.de>
40520
40521         [BZ #10709]
40522         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
40523         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
40524         * math/libm-test.inc (sin_test): Add test case.
40525
40526 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
40527
40528         [BZ #13337]
40529         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
40530         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40531
40532         * elf/chroot_canon.c (chroot_canon): Cleanups.
40533
40534         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
40535
40536         [BZ #13335]
40537         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
40538         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
40539
40540         * string/test-strchr.c: Make usable for strchrnul testing.
40541         * string/test-strchrnul.c: New file.
40542         * string/Makefile (strop-tests): Add strchrnul.
40543
40544         * po/it.po: Update from translation team.
40545         * po/es.po: Likewise.
40546
40547 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
40548
40549         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
40550         the three constants needed as parameters.  Drop the others.
40551         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
40552         __m128i_strloadu_tolower.
40553         Create and initialize variable zero and use it in all the places
40554         where _mm_setzero_si128 was used.
40555
40556         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
40557         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
40558         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
40559         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
40560         anymore.
40561         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
40562         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
40563         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
40564         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
40565         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
40566         __mpranred, __mptan.
40567         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
40568         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
40569         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
40570         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
40571         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
40572         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
40573         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
40574         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
40575         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
40576
40577 2011-10-28  Andreas Schwab  <schwab@redhat.com>
40578
40579         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
40580         redefine if SHARED.
40581         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
40582
40583         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
40584         wide char related routines to wcsmbs subdir.
40585
40586 2011-10-27  Andreas Schwab  <schwab@redhat.com>
40587
40588         [BZ #13344]
40589         * misc/sys/cdefs.h (__THROWNL): Define.
40590         * posix/unistd.h: Use __THREADNL instead of __THREAD
40591         for memory synchronization functions.
40592
40593 2011-10-26  Roland McGrath  <roland@hack.frob.com>
40594
40595         [BZ #13349]
40596         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
40597         doesn't exist.
40598         * manual/stdio.texi (Obstack Streams): Node removed.
40599
40600 2011-10-26  Andreas Schwab  <schwab@redhat.com>
40601
40602         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
40603         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40604         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40605
40606         * math/math_private.h (math_force_eval): Allow non-addressable
40607         arguments.
40608         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
40609
40610 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40611
40612         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
40613         file is not needed.
40614
40615         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
40616         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
40617         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
40618         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
40619         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
40620         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
40621         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
40622         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
40623         Add AVX variants.
40624         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
40625         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
40626         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
40627         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
40628         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
40629         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
40630         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
40631         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
40632         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
40633         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
40634         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
40635         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
40636         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
40637         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
40638         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
40639         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
40640         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
40641         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
40642         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
40643
40644         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
40645         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
40646
40647         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
40648         place.  Use VEX encoding when compiling for AVX.
40649
40650 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40651
40652         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
40653         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
40654
40655         * string/test-strchr.c (do_test): Don't generate NUL bytes.
40656
40657 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40658
40659         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
40660         useless if() expression.
40661         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
40662         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
40663         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
40664         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
40665         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
40666         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
40667         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
40668         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
40669         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
40670         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
40671         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
40672         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
40673         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
40674         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
40675         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
40676         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
40677         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
40678         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
40679         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
40680
40681         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
40682
40683 2011-10-25  Andreas Schwab  <schwab@redhat.com>
40684
40685         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
40686         condition.
40687         * elf/dl-fini.c (_dl_sort_fini): Likewise.
40688
40689 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
40690
40691         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
40692         .text section.  Avoid duplicate constants.
40693         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
40694         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40695         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
40696         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40697         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40698         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40699         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40700         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40701         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
40702         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
40703         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
40704         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
40705         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
40706         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
40707         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
40708         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
40709         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
40710         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
40711         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
40712         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40713         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
40714         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
40715         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
40716         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
40717         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
40718         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
40719         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
40720         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
40721         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
40722         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
40723         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
40724         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
40725         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
40726         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
40727         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
40728         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
40729         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
40730         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
40731         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
40732         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
40733         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
40734         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
40735         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
40736         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
40737         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
40738
40739 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
40740
40741         * sysdeps/x86_64/dla.h: Move to ...
40742         * sysdeps/x86_64/fpu/dla.h: ...here.
40743         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
40744         situations.  Use __builtin_fma only for gcc 4.6 and up.
40745
40746         * config.make.in: Add have-mfma4 entry.
40747         * configure.in: Substitute libc_cv_cc_fma4.
40748         * math/Makefile (dbl-only-routines): Add sincostab.
40749         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
40750         Use __sincostab not sincos.
40751         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
40752         name is a macro.
40753         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
40754         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40755         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40756         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
40757         using __copysign.
40758         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
40759         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
40760         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
40761         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
40762         and __inv.
40763         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
40764         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
40765         __copysign.
40766         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
40767         define aliases when function name is a macro.
40768         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
40769         sysdeps/ieee754/dbl-64/sincos.tbl.
40770         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
40771         fma4-enabled routines.
40772         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
40773         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
40774         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
40775         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
40776         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
40777         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
40778         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
40779         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
40780         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
40781         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
40782         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
40783         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
40784         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
40785         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
40786         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
40787         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
40788         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
40789         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
40790         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
40791         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
40792         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
40793         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
40794         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
40795         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
40796         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
40797         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
40798         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
40799         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
40800         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
40801         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
40802
40803         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
40804         rename.
40805         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40806         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40807         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40808         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40809         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40810         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40811         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40812         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40813
40814 2011-10-24  Andreas Schwab  <schwab@redhat.com>
40815
40816         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
40817
40818 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40819
40820         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
40821
40822         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
40823         prediction.
40824         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
40825
40826         * string/strnlen.c: Don't define STRNLEN, reverse logic.
40827         Remove unused variable magic_bits.
40828         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
40829
40830         * string/strnlen.c: Define and use STRNLEN macro.
40831         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
40832         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
40833         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
40834         * wcsmbs/wcslen.c: Define and use WCSLEN.
40835         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
40836         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
40837         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
40838         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
40839         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
40840         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
40841         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
40842
40843 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40844
40845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
40846         strnlen-sse2-no-bsf.
40847         Rename strlen-no-bsf to strlen-sse2-no-bsf.
40848         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
40849         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
40850         Add strnlen support.
40851         (USE_AS_STRNLEN): New macro.
40852         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
40853         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
40854         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
40855         * sysdeps/x86_64/wcslen.S: New file.
40856
40857 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
40858
40859         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
40860         XMM-moves are used for copying on small sizes.
40861
40862 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40863
40864         * wcsmbs/Makefile (strop-tests): Add wcschr.
40865         * wcsmbs/test-wcschr.c: New file.
40866         * string/test-strchr.c: Update.
40867         Add wcschr support.
40868         (WIDE): New macro.
40869
40870 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40871
40872         * wcsmbs/Makefile (strop-tests): Add wcslen.
40873         * wcsmbs/test-wcslen.c: New file.
40874         * string/test-strlen.c: Update.
40875         Add wcslen support.
40876         (WIDE): New macro.
40877
40878 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40879
40880         * po/it.po: Update from translation team.
40881
40882 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40883
40884         * sysdeps/x86_64/wcscmp.S: Update.
40885         Fix wrong comparison semantics.
40886         wcscmp shall use signed comparison not unsigned.
40887         Don't use substraction to avoid overflow bug.
40888         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
40889         * wcsmbc/wcscmp.c: Likewise.
40890         * string/test-strcmp.c: Likewise.
40891         Add new tests to check cases with negative values.
40892
40893 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
40894
40895         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
40896         * sysdeps/x86_64/dla.h: ...here.  New file.
40897         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
40898         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40899         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40900         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40901         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40902         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
40903         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40904         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40905         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40906
40907 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
40908
40909         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
40910         __ynl_finite aliases.
40911
40912 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
40913
40914         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40915
40916         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
40917         define DLA_FMA.
40918         [DLA_FMA] (EMULV): Use DLA_FMA.
40919         [DLA_FMA] (MUL12): Use EMULV.
40920         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
40921         that are not needed.
40922         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
40923         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
40924         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
40925         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
40926         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
40927         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
40928         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
40929
40930 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
40931
40932         * math/s_nan.c: Undef __nan.
40933         * math/s_nanf.c: Undef __nanf.
40934         * math/s_nanl.c: Undef __nanl.
40935         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
40936         "math_private.h".
40937
40938 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
40939
40940         * math/s_catan.c: Add branch predictions.
40941         * math/s_catanf.c: Likewise.
40942         * math/s_catanh.c: Likewise.
40943         * math/s_catanhf.c: Likewise.
40944         * math/s_catanhl.c: Likewise.
40945         * math/s_catanl.c: Likewise.
40946         * math/s_cexp.c: Likewise.
40947         * math/s_cexpf.c: Likewise.
40948         * math/s_cexpl.c: Likewise.
40949         * math/s_clog.c: Likewise.
40950         * math/s_clog10.c: Likewise.
40951         * math/s_clog10f.c: Likewise.
40952         * math/s_clog10l.c: Likewise.
40953         * math/s_clogf.c: Likewise.
40954         * math/s_clogl.c: Likewise.
40955         * math/s_csqrt.c: Likewise.
40956         * math/s_csqrtf.c: Likewise.
40957         * math/s_csqrtl.c: Likewise.
40958         * math/s_ctanf.c: Likewise.
40959         * math/s_ctanh.c: Likewise.
40960         * math/s_ctanhf.c: Likewise.
40961         * math/s_ctanhl.c: Likewise.
40962         * math/s_ctanl.c: Likewise.
40963
40964         * math/math_private.h: Define __nan, __nanf, __nanl.
40965         * math/s_cacosh.c: Include <math_private.h>.
40966         * math/s_cacoshl.c: Likewise.
40967         * math/s_casinh.c: Likewise.
40968         * math/s_casinhf.c: Likewise.
40969         * math/s_casinhl.c: Likewise.
40970         * math/s_ccos.c: Rely entire on ccosh.
40971         * math/s_ccosf.c: Rely entire on ccoshf.
40972         * math/s_ccosl.c: Rely entirely on ccoshl.
40973         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
40974         Remove tests for FE_INVALID.
40975         * math/s_ccoshf.c: Likewise.
40976         * math/s_ccoshl.c: Likewise.
40977         * math/s_csin.c: Likewise.
40978         * math/s_csinf.c: Likewise.
40979         * math/s_csinh.c Likewise.
40980         * math/s_csinhf.c: Likewise.
40981         * math/s_csinhl.c: Likewise.
40982         * math/s_csinl.c: Likewise.
40983         * math/s_ctan.c: Likewise.
40984         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
40985         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
40986         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
40987
40988 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
40989
40990         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
40991         compilation problems.
40992
40993         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
40994         __builtin_expect.
40995
40996 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
40997
40998         * sysdeps/i386/configure.in: Test for -mfma4 option.
40999         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
41000         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
41001         COMMON_CPUID_INDEX_80000001.
41002         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
41003         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
41004         use it if FMA3 is not supported.
41005         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
41006
41007         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
41008         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
41009
41010 2011-10-20  Andreas Schwab  <schwab@redhat.com>
41011
41012         [BZ #12892]
41013         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
41014         it would create a cycle with a link time dependency.
41015
41016 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
41017
41018         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
41019         instruction.
41020         * string/Makefile (strop-tests): Add rawmemchr.
41021         * string/test-rawmemchr.c: New file.
41022
41023         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
41024         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
41025         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
41026         when compiling str{,n}casecmp and when AVX is available.  Hook up
41027         new optimized code in initializers.
41028
41029 2011-10-19  Andreas Schwab  <schwab@redhat.com>
41030
41031         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
41032         __feraiseexcept instead of feraiseexcept.
41033
41034 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
41035
41036         * math/math_private.h: Define defaults for libc_fetestexcept and
41037         libc_feupdateenv.
41038         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
41039         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
41040         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41041         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41042         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
41043         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41044         libc_fetestexcept and libc_feupdateenv.
41045
41046         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
41047         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
41048         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
41049         * sysdeps/x86_64/fpu/math_private.h: Define special version of
41050         libc_feholdexcept_setround.
41051
41052         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
41053         Add s_nearbyint-c and s_nearbyintf-c.
41054         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
41055         nearbyintf inlines.
41056         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
41057         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
41058         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
41059         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
41060
41061         * math/math_private.h: Define defaults for libc_fegetround,
41062         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
41063         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
41064         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
41065         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
41066         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
41067         standard functions.
41068         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41069         Remove comments and hacks for old compiler versions.
41070         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
41071         libc_fegetround, libc_fesetround, libc_feholdexcept, and
41072         libc_feholdexceptl.
41073
41074 2011-10-18  Andreas Schwab  <schwab@redhat.com>
41075
41076         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
41077         (__feraiseexcept_renamed): Add __NTH.
41078         (feraiseexcept): Add __NTH.  Rename local variables to fix
41079         namespace violations.
41080
41081 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
41082
41083         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
41084
41085         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
41086
41087         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
41088         recently added interfaces.
41089         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
41090
41091         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
41092         about macro parameter expansion.
41093
41094         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
41095         __NO_MATH_INLINES is defined.  Cleanups.
41096
41097         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
41098         and __floorf is target has SSE4.1.
41099         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
41100         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
41101         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
41102         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
41103
41104         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
41105         name.
41106         (floorf): Likewise.
41107
41108         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
41109
41110 2011-10-17  Andreas Schwab  <schwab@redhat.com>
41111
41112         * misc/sys/cdefs.h: Fix last change.
41113
41114         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
41115         database lookup.
41116
41117 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
41118
41119         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
41120
41121         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
41122         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41123         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
41124         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
41125         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
41126         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
41127         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
41128         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
41129         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
41130         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
41131         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
41132         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
41133         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
41134         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
41135         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
41136         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
41137         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
41138         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
41139         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
41140         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
41141         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
41142         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
41143
41144         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
41145         ceil, ceilf, floor, floorf.
41146
41147         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
41148         Perform IRELATIVE relocations last.
41149
41150         * elf/do-rel.h: Add another parameter nrelative, replacing the
41151         local variable with the same name.  Change name of the function
41152         to end in Rel or Rela (uppercase).
41153         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
41154         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
41155         elf_dynamic_do_##reloc function.
41156
41157 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41158
41159         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
41160         is sufficient, at least on modern CPUs.
41161
41162         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
41163
41164         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
41165         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
41166
41167         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
41168         __expl_finite.
41169         * math/bits/math-finite.h: Add entries for exp.
41170         * math/e_expl.c: Add __*_finite alias.
41171         * sysdeps/i386/fpu/e_exp.S: Likewise.
41172         * sysdeps/i386/fpu/e_expf.S: Likewise.
41173         * sysdeps/i386/fpu/e_expl.c: Likewise.
41174         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
41175         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
41176         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
41177         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
41178         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
41179         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
41180         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
41181
41182         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
41183         is sufficient, at least on modern CPUs.
41184
41185         * ctype/ctype-info.c (__ctype_init): Define.
41186         * include/ctype.h (__ctype_init): Declare.
41187         (__ctype_b_loc): The variable is always initialized.
41188         (__ctype_toupper_loc): Likewise.
41189         (__ctype_tolower_loc): Likewise.
41190         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
41191         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
41192
41193 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
41194
41195         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
41196
41197         * configure.in: Also look in $cxxmachine/include for C++ system
41198         headers.
41199
41200 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41201
41202         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
41203         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
41204         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
41205         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
41206         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
41207         (USE_AS_WMEMCMP): New macro.
41208         Fixing indents.
41209         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
41210         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
41211         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
41212         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
41213         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41214         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
41215         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
41216         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
41217         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
41218         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
41219         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
41220         (USE_AS_WMEMCMP): New macro.
41221         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
41222         * sysdeps/string/test-memcmp.c: Update.
41223         Fix simple_wmemcmp.
41224         Add new tests.
41225         * wcsmbs/wmemcmp.c: Update.
41226         (WMEMCMP): New macro.
41227         Fix overflow bug.
41228
41229 2011-10-12  Andreas Jaeger  <aj@suse.de>
41230
41231         [BZ #13268]
41232         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
41233
41234 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
41235
41236         * libio/iofwide.c (do_length): Avoid warning.
41237
41238         * ctype/ctype.h (__isctype_f): Add missing __THROW.
41239
41240 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
41241
41242         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
41243
41244         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
41245         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
41246         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
41247         * sysdeps/i386/i686/fpu/e_log.S: New file.
41248         * sysdeps/i386/i686/fpu/e_logf.S: New file.
41249         * sysdeps/i386/i686/fpu/e_logl.S: New file.
41250
41251         * ctype/ctype.h: Add support for inlined isXXX functions when
41252         compiling C++ code.
41253
41254 2011-10-14  Andreas Schwab  <schwab@redhat.com>
41255
41256         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41257
41258         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
41259
41260 2011-10-13  Roland McGrath  <roland@hack.frob.com>
41261
41262         [BZ #13291]
41263         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
41264
41265 2011-10-13  Andreas Schwab  <schwab@redhat.com>
41266
41267         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
41268         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
41269         feraiseexcept.
41270
41271         * sysdeps/x86_64/memrchr.S: Check for zero size.
41272
41273         * string/stratcliff.c: Add memrchr tests.
41274
41275 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41276
41277         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
41278         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
41279         rawmemchr-sse2 rawmemchr-sse2-bsf.
41280         * sysdeps/i386/i686/multiarch/memchr.S: New file.
41281         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
41282         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
41283         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
41284         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
41285         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
41286         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
41287         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
41288         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
41289         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
41290         * string/memrchr.c (MEMRCHR): New macro.
41291
41292 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
41293
41294         Add integration with gcc's -ffinite-math-only and optimize wrapper
41295         functions in libm.
41296         * Versions.def: Define GLIBC_2.15 version for libm.
41297         * math/Makefile (headers): Add bits/math-finite.h.
41298         * math/bits/math-finite.h: New file.
41299         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
41300         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
41301         * math/e_acoshl.c: Add __*_finite alias.
41302         * math/e_acosl.c: Likewise.
41303         * math/e_asinl.c: Likewise.
41304         * math/e_atan2l.c: Likewise.
41305         * math/e_atanhl.c: Likewise.
41306         * math/e_coshl.c: Likewise.
41307         * math/e_exp10.c: Likewise.
41308         * math/e_exp10f.c: Likewise.
41309         * math/e_exp10l.c: Likewise.
41310         * math/e_exp2l.c: Likewise.
41311         * math/e_fmodl.c: Likewise.
41312         * math/e_gammal_r.c: Likewise.
41313         * math/e_hypotl.c: Likewise.
41314         * math/e_j0l.c: Likewise.
41315         * math/e_j1l.c: Likewise.
41316         * math/e_jnl.c: Likewise.
41317         * math/e_lgammal_r.c: Likewise.
41318         * math/e_log10l.c: Likewise.
41319         * math/e_log2l.c: Likewise.
41320         * math/e_logl.c: Likewise.
41321         * math/e_powl.c: Likewise.
41322         * math/e_sinhl.c: Likewise.
41323         * math/e_sqrtl.c: Likewise.
41324         * math/e_scalb.c: Completely rewritten and optimized.
41325         * math/e_scalbf.c: Likewise.
41326         * math/e_scalbl.c: Likewise.
41327         * math/w_acos.c: Likewise.
41328         * math/w_acosf.c: Likewise.
41329         * math/w_acosl.c: Likewise.
41330         * math/w_acosh.c: Likewise.
41331         * math/w_acoshf.c: Likewise.
41332         * math/w_acoshl.c: Likewise.
41333         * math/w_asin.c: Likewise.
41334         * math/w_asinf.c: Likewise.
41335         * math/w_asinl.c: Likewise.
41336         * math/w_atan2.c: Likewise.
41337         * math/w_atan2f.c: Likewise.
41338         * math/w_atan2l.c: Likewise.
41339         * math/w_atanh.c: Likewise.
41340         * math/w_atanhf.c: Likewise.
41341         * math/w_atanhl.c: Likewise.
41342         * math/w_exp10.c: Likewise.
41343         * math/w_exp10f.c: Likewise.
41344         * math/w_exp10l.c: Likewise.
41345         * math/w_fmod.c: Likewise.
41346         * math/w_fmodf.c: Likewise.
41347         * math/w_fmodl.c: Likewise.
41348         * math/w_j0.c: Likewise.
41349         * math/w_j0f.c: Likewise.
41350         * math/w_j0l.c: Likewise.
41351         * math/w_j1.c: Likewise.
41352         * math/w_j1f.c: Likewise.
41353         * math/w_j1l.c: Likewise.
41354         * math/w_jn.c: Likewise.
41355         * math/w_jnf.c: Likewise.
41356         * math/w_log.c: Likewise.
41357         * math/w_logf.c: Likewise.
41358         * math/w_logl.c: Likewise.
41359         * math/w_log10.c: Likewise.
41360         * math/w_log10f.c: Likewise.
41361         * math/w_log10l.c: Likewise.
41362         * math/w_log2.c: Likewise.
41363         * math/w_log2f.c: Likewise.
41364         * math/w_log2l.c: Likewise.
41365         * math/w_pow.c: Likewise.
41366         * math/w_powf.c: Likewise.
41367         * math/w_powl.c: Likewise.
41368         * math/w_remainder.c: Likewise.
41369         * math/w_remainderf.c: Likewise.
41370         * math/w_remainderl.c: Likewise.
41371         * math/w_scalb.c: Likewise.
41372         * math/w_scalbf.c: Likewise.
41373         * math/w_scalbl.c: Likewise.
41374         * math/w_sqrt.c: Likewise.
41375         * math/w_sqrtf.c: Likewise.
41376         * math/w_sqrtl.c: Likewise.
41377         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
41378         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
41379         used.
41380         * math/math_private.h: Declare __kernel_standard_f.
41381         * math/w_cosh.c: Remove cruft and optimize a bit.
41382         * math/w_coshf.c: Likewise.
41383         * math/w_coshl.c: Likewise.
41384         * math/w_exp2.c: Likewise.
41385         * math/w_exp2f.c: Likewise.
41386         * math/w_exp2l.c: Likewise.
41387         * math/w_hypot.c: Likewise.
41388         * math/w_hypotf.c: Likewise.
41389         * math/w_hypotl.c: Likewise.
41390         * math/w_lgamma.c: Likewise.
41391         * math/w_lgamma_r.c: Likewise.
41392         * math/w_lgammaf.c: Likewise.
41393         * math/w_lgammaf_r.c: Likewise.
41394         * math/w_lgammal.c: Likewise.
41395         * math/w_lgammal_r.c: Likewise.
41396         * math/w_sinh.c: Likewise.
41397         * math/w_sinhf.c: Likewise.
41398         * math/w_sinhl.c: Likewise.
41399         * math/w_tgamma.c: Likewise.
41400         * math/w_tgammaf.c: Likewise.
41401         * math/w_tgammal.c: Likewise.
41402         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
41403         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
41404         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
41405         Minor optimizations.  Pretty printing.  Remove cruft.
41406         * sysdeps/i386/fpu/e_acosf.S: Likewise.
41407         * sysdeps/i386/fpu/e_acosh.S: Likewise.
41408         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
41409         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
41410         * sysdeps/i386/fpu/e_acosl.c: Likewise.
41411         * sysdeps/i386/fpu/e_asin.S: Likewise.
41412         * sysdeps/i386/fpu/e_asinf.S: Likewise.
41413         * sysdeps/i386/fpu/e_atan2.S: Likewise.
41414         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
41415         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
41416         * sysdeps/i386/fpu/e_atanh.S: Likewise.
41417         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
41418         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
41419         * sysdeps/i386/fpu/e_exp10.S: Likewise.
41420         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
41421         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
41422         * sysdeps/i386/fpu/e_exp2.S: Likewise.
41423         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
41424         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
41425         * sysdeps/i386/fpu/e_fmod.S: Likewise.
41426         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
41427         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
41428         * sysdeps/i386/fpu/e_hypot.S: Likewise.
41429         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
41430         * sysdeps/i386/fpu/e_log.S: Likewise.
41431         * sysdeps/i386/fpu/e_log10.S: Likewise.
41432         * sysdeps/i386/fpu/e_log10f.S: Likewise.
41433         * sysdeps/i386/fpu/e_log10l.S: Likewise.
41434         * sysdeps/i386/fpu/e_log2.S: Likewise.
41435         * sysdeps/i386/fpu/e_log2f.S: Likewise.
41436         * sysdeps/i386/fpu/e_log2l.S: Likewise.
41437         * sysdeps/i386/fpu/e_logf.S: Likewise.
41438         * sysdeps/i386/fpu/e_logl.S: Likewise.
41439         * sysdeps/i386/fpu/e_pow.S: Likewise.
41440         * sysdeps/i386/fpu/e_powf.S: Likewise.
41441         * sysdeps/i386/fpu/e_powl.S: Likewise.
41442         * sysdeps/i386/fpu/e_remainder.S: Likewise.
41443         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
41444         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
41445         * sysdeps/i386/fpu/e_scalb.S: Likewise.
41446         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
41447         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
41448         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
41449         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
41450         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
41451         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
41452         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
41453         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
41454         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
41455         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
41456         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
41457         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
41458         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
41459         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
41460         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
41461         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
41462         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
41463         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
41464         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
41465         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
41466         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
41467         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
41468         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
41469         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
41470         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
41471         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
41472         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
41473         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
41474         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
41475         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
41476         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
41477         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
41478         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
41479         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
41480         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
41481         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
41482         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
41483         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
41484         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
41485         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
41486         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
41487         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
41488         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
41489         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
41490         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
41491         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
41492         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
41493         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
41494         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
41495         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
41496         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
41497         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
41498         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
41499         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
41500         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
41501         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
41502         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
41503         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
41504         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
41505         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
41506         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
41507         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
41508         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
41509         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
41510         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
41511         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
41512         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
41513         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
41514         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
41515         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
41516         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
41517         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
41518         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
41519         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
41520         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
41521         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
41522         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
41523         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
41524         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
41525         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
41526         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
41527         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
41528         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
41529         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
41530         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
41531         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
41532         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
41533         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
41534         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
41535         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
41536         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
41537         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
41538         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
41539         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
41540         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
41541         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
41542         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
41543         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
41544         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
41545         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
41546         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
41547         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
41548         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
41549         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
41550         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
41551         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
41552         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
41553         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
41554         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
41555         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
41556         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
41557         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
41558         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
41559         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
41560         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
41561         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
41562         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
41563         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
41564         (__isnanf): Likewise.
41565         (__isinf_ns): Likewise.
41566         (__isinf_nsf): Likewise.
41567         (__finite): Likewise.
41568         (__finitef): Likewise.
41569         (__ieee754_sqrt): Define as macro.
41570         (__ieee754_sqrtf): Define as macro.
41571         (__ieee754_sqrtl): Define as macro.
41572         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
41573         inlined copy.
41574         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
41575         __FINITE_MATH_ONLY__ consistent.
41576         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
41577
41578 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
41579
41580         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
41581         of rawmemchr.
41582
41583         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
41584
41585 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
41586
41587         * po/ja.po: Update from translation team.
41588
41589 2011-10-08  Roland McGrath  <roland@hack.frob.com>
41590
41591         * locale/programs/locarchive.c (prepare_address_space): New function.
41592         (create_archive, enlarge_archive, open_archive): Use it.
41593
41594         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
41595         inside [SHARED], where it is used.
41596
41597         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
41598
41599         * nss/getent.c (netgroup_keys): Remove unused variable.
41600         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
41601
41602 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
41603
41604         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
41605         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
41606         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
41607         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
41608         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
41609         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
41610         * math/Makefile (libm-calls): Add s_isinf_ns.
41611         * math/divtc3.c: Use __isinf_nsl instead of isinf.
41612         * math/multc3.c: Likewise.
41613         * math/s_casin.c: Likewise.
41614         * math/s_casinf.c: Likewise.
41615         * math/s_casinl.c: Likewise.
41616         * math/s_ccos.c: Likewise.
41617         * math/s_ccosf.c: Likewise.
41618         * math/s_ccosl.c: Likewise.
41619         * math/s_ctan.c: Likewise.
41620         * math/s_ctanf.c: Likewise.
41621         * math/s_ctanh.c: Likewise.
41622         * math/s_ctanhf.c: Likewise.
41623         * math/s_ctanhl.c: Likewise.
41624         * math/s_ctanl.c: Likewise.
41625         * math/w_fmod.c: Likewise.
41626         * math/w_fmodf.c: Likewise.
41627         * math/w_fmodl.c: Likewise.
41628         * math/w_remainder.c: Likewise.
41629         * math/w_remainderf.c: Likewise.
41630         * math/w_remainderl.c: Likewise.
41631         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
41632         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
41633         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
41634         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
41635         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
41636         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
41637         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
41638         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
41639
41640         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
41641         of the number.
41642         * stdio-common/printf_fphex.c: Likewise.
41643         * stdio-common/printf_size.c: Likewise.
41644
41645         * math/e_exp10.c: Include math_private.h using <...> not "...".
41646         * math/e_exp10f.c: Likewise.
41647         * math/e_exp10l.c: Likewise.
41648         * math/e_exp2l.c: Likewise.
41649         * math/e_j0l.c: Likewise.
41650         * math/e_j1l.c: Likewise.
41651         * math/e_jnl.c: Likewise.
41652         * math/e_lgammal_r.c: Likewise.
41653         * math/e_rem_pio2l.c: Likewise.
41654         * math/e_scalb.c: Likewise.
41655         * math/e_scalbf.c: Likewise.
41656         * math/e_scalbl.c: Likewise.
41657         * math/k_cosl.c: Likewise.
41658         * math/k_sinl.c: Likewise.
41659         * math/k_tanl.c: Likewise.
41660         * math/s_cacoshf.c: Likewise.
41661         * math/s_catan.c: Likewise.
41662         * math/s_catanf.c: Likewise.
41663         * math/s_catanh.c: Likewise.
41664         * math/s_catanhf.c: Likewise.
41665         * math/s_catanhl.c: Likewise.
41666         * math/s_catanl.c: Likewise.
41667         * math/s_ccosh.c: Likewise.
41668         * math/s_ccoshf.c: Likewise.
41669         * math/s_ccoshl.c: Likewise.
41670         * math/s_cexp.c: Likewise.
41671         * math/s_cexpf.c: Likewise.
41672         * math/s_cexpl.c: Likewise.
41673         * math/s_clog.c: Likewise.
41674         * math/s_clog10.c: Likewise.
41675         * math/s_clog10f.c: Likewise.
41676         * math/s_clog10l.c: Likewise.
41677         * math/s_clogf.c: Likewise.
41678         * math/s_clogl.c: Likewise.
41679         * math/s_csin.c: Likewise.
41680         * math/s_csinf.c: Likewise.
41681         * math/s_csinh.c: Likewise.
41682         * math/s_csinhf.c: Likewise.
41683         * math/s_csinhl.c: Likewise.
41684         * math/s_csinl.c: Likewise.
41685         * math/s_csqrt.c: Likewise.
41686         * math/s_csqrtf.c: Likewise.
41687         * math/s_csqrtl.c: Likewise.
41688         * math/s_ctan.c: Likewise.
41689         * math/s_ctanf.c: Likewise.
41690         * math/s_ctanh.c: Likewise.
41691         * math/s_ctanhf.c: Likewise.
41692         * math/s_ctanhl.c: Likewise.
41693         * math/s_ctanl.c: Likewise.
41694         * math/s_ldexp.c: Likewise.
41695         * math/s_ldexpf.c: Likewise.
41696         * math/s_ldexpl.c: Likewise.
41697         * math/s_significand.c: Likewise.
41698         * math/s_significandf.c: Likewise.
41699         * math/s_significandl.c: Likewise.
41700         * math/w_acos.c: Likewise.
41701         * math/w_acosf.c: Likewise.
41702         * math/w_acosh.c: Likewise.
41703         * math/w_acoshf.c: Likewise.
41704         * math/w_acoshl.c: Likewise.
41705         * math/w_acosl.c: Likewise.
41706         * math/w_asin.c: Likewise.
41707         * math/w_asinf.c: Likewise.
41708         * math/w_asinl.c: Likewise.
41709         * math/w_atan2.c: Likewise.
41710         * math/w_atan2f.c: Likewise.
41711         * math/w_atan2l.c: Likewise.
41712         * math/w_atanh.c: Likewise.
41713         * math/w_atanhf.c: Likewise.
41714         * math/w_atanhl.c: Likewise.
41715         * math/w_cosh.c: Likewise.
41716         * math/w_coshf.c: Likewise.
41717         * math/w_coshl.c: Likewise.
41718         * math/w_dremf.c: Likewise.
41719         * math/w_exp10.c: Likewise.
41720         * math/w_exp10f.c: Likewise.
41721         * math/w_exp10l.c: Likewise.
41722         * math/w_exp2.c: Likewise.
41723         * math/w_exp2f.c: Likewise.
41724         * math/w_fmod.c: Likewise.
41725         * math/w_fmodf.c: Likewise.
41726         * math/w_fmodl.c: Likewise.
41727         * math/w_hypot.c: Likewise.
41728         * math/w_hypotf.c: Likewise.
41729         * math/w_hypotl.c: Likewise.
41730         * math/w_j0.c: Likewise.
41731         * math/w_j0f.c: Likewise.
41732         * math/w_j0l.c: Likewise.
41733         * math/w_j1.c: Likewise.
41734         * math/w_j1f.c: Likewise.
41735         * math/w_j1l.c: Likewise.
41736         * math/w_jn.c: Likewise.
41737         * math/w_jnf.c: Likewise.
41738         * math/w_jnl.c: Likewise.
41739         * math/w_lgamma.c: Likewise.
41740         * math/w_lgamma_r.c: Likewise.
41741         * math/w_lgammaf.c: Likewise.
41742         * math/w_lgammaf_r.c: Likewise.
41743         * math/w_lgammal.c: Likewise.
41744         * math/w_lgammal_r.c: Likewise.
41745         * math/w_log.c: Likewise.
41746         * math/w_log10.c: Likewise.
41747         * math/w_log10f.c: Likewise.
41748         * math/w_log10l.c: Likewise.
41749         * math/w_log2.c: Likewise.
41750         * math/w_log2f.c: Likewise.
41751         * math/w_log2l.c: Likewise.
41752         * math/w_logf.c: Likewise.
41753         * math/w_logl.c: Likewise.
41754         * math/w_pow.c: Likewise.
41755         * math/w_powf.c: Likewise.
41756         * math/w_powl.c: Likewise.
41757         * math/w_remainder.c: Likewise.
41758         * math/w_remainderf.c: Likewise.
41759         * math/w_remainderl.c: Likewise.
41760         * math/w_scalb.c: Likewise.
41761         * math/w_scalbf.c: Likewise.
41762         * math/w_scalbl.c: Likewise.
41763         * math/w_sinh.c: Likewise.
41764         * math/w_sinhf.c: Likewise.
41765         * math/w_sinhl.c: Likewise.
41766         * math/w_sqrt.c: Likewise.
41767         * math/w_sqrtf.c: Likewise.
41768         * math/w_sqrtl.c: Likewise.
41769         * math/w_tgamma.c: Likewise.
41770         * math/w_tgammaf.c: Likewise.
41771         * math/w_tgammal.c: Likewise.
41772
41773         * po/ja.po: Update from translation team.
41774
41775 2011-09-29  Andreas Jaeger  <aj@suse.de>
41776
41777         [BZ #13179]
41778         * sunrpc/netname.c (netname2host): Fix logic.
41779
41780         [BZ #6779]
41781         [BZ #6783]
41782         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
41783         correctly.
41784         * math/w_remainder.c (__remainder): Likewise.
41785         * math/w_remainderf.c (__remainderf): Likewise.
41786         * math/libm-test.inc (remainder_test): Add test cases.
41787
41788 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41789
41790         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
41791         sdiv_qrnnd.
41792
41793 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
41794
41795         * string/test-memcmp.c: Avoid unncessary #defines.
41796         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
41797
41798 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41799
41800         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
41801         Use new sse2 version for core i3 - i7 as it's faster
41802         than sse42 version.
41803         (bit_Prefer_PMINUB_for_stringop): New.
41804         * sysdeps/x86_64/rawmemchr.S: Update.
41805         Replace with faster SSE2 version.
41806         * sysdeps/x86_64/memrchr.S: New file.
41807         * sysdeps/x86_64/memchr.S: Update.
41808         Replace with faster SSE2 version.
41809
41810 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
41811
41812         * elf/dl-load.c (lose): Add cast to avoid warning.
41813
41814 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
41815
41816         * po/ca.po: Update from translation team.
41817
41818         * inet/getnetgrent_r.c: Hook up nscd.
41819         * nscd/Makefile (routines): Add nscd_netgroup.
41820         (nscd-modules): Add netgroupcache.
41821         (CFLAGS-netgroupcache.c): Define.
41822         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
41823         (cache_search): Add const to second parameter.
41824         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
41825         INNETGR.
41826         (dbs): Add netgrdb entry.
41827         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
41828         (verify_persistent_db): Handle netgrdb.
41829         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
41830         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
41831         GETFDNETGR.
41832         (netgroup_response_header): Define.
41833         (innetgroup_response_header): Define.
41834         (datahead): Add netgroup_response_header and innetgroup_response_header
41835         elements.
41836         * nscd/nscd.conf: Add entries for netgroup cache.
41837         * nscd/nscd.h (dbtype): Add netgrdb.
41838         (_PATH_NSCD_NETGROUP_DB): Define.
41839         (netgroup_iov_disabled): Declare.
41840         (xmalloc, xcalloc, xrealloc): Move declarations here.
41841         (cache_search): Adjust prototype.
41842         Add netgroup-related prototypes.
41843         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
41844         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
41845         (__nscd_innetgr): Declare.
41846         * nscd/selinux.c (perms): Use access_vector_t as element type and
41847         add netgroup-related initializers.
41848         * nscd/netgroupcache.c: New file.
41849         * nscd/nscd_netgroup.c: New file.
41850         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
41851         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
41852         For four parameters use innetgr.
41853         * nss/nss_files/files-init.c: Add definition and callback for netgr.
41854         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
41855         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
41856         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
41857
41858         * nscd/connections.c (register_traced_file): Don't register file
41859         for disabled databases.
41860
41861 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
41862
41863         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
41864
41865         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
41866         from tree and freeing node.
41867
41868 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
41869
41870         * nss/nsswitch.c (__nss_database_lookup): Handle
41871         nss_parse_service_list out of memory case.
41872
41873 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
41874
41875         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
41876         out of memory case.
41877
41878 2011-10-04  Andreas Schwab  <schwab@redhat.com>
41879
41880         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
41881         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
41882         pass it down.
41883         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
41884         elf_machine_rela, elf_machine_lazy_rel.
41885         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
41886         (ELF_DYNAMIC_DO_REL): Likewise.
41887         (ELF_DYNAMIC_DO_RELA): Likewise.
41888         (ELF_DYNAMIC_RELOCATE): Likewise.
41889         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
41890         to ELF_DYNAMIC_DO_REL.
41891         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
41892         (dl_main): In trace mode always set __RTLD_NOIFUNC.
41893         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
41894         elf_machine_rela.
41895         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
41896         skip_ifunc, don't call ifunc function if non-zero.
41897         (elf_machine_rela): Likewise.
41898         (elf_machine_lazy_rel): Likewise.
41899         (elf_machine_lazy_rela): Likewise.
41900         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
41901         (elf_machine_lazy_rel): Likewise.
41902         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
41903         Likewise.
41904         (elf_machine_lazy_rel): Likewise.
41905         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
41906         Likewise.
41907         (elf_machine_lazy_rel): Likewise.
41908         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
41909         (elf_machine_lazy_rel): Likewise.
41910         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
41911         (elf_machine_lazy_rel): Likewise.
41912         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
41913         (elf_machine_lazy_rel): Likewise.
41914         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
41915         (elf_machine_lazy_rel): Likewise.
41916         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
41917         (elf_machine_lazy_rel): Likewise.
41918         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
41919         (elf_machine_lazy_rel): Likewise.
41920
41921 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
41922
41923         * nss/nss_files/files-init.c (_nss_files_init): Use static
41924         initialization for all the *_traced_file variables.
41925
41926 2011-09-28  Andreas Schwab  <schwab@redhat.com>
41927
41928         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
41929
41930 2011-09-27  Roland McGrath  <roland@hack.frob.com>
41931
41932         [BZ #13226]
41933         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
41934
41935 2011-09-27  Andreas Schwab  <schwab@redhat.com>
41936
41937         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
41938         Reread the line before reparsing it.
41939
41940 2011-09-26  Andreas Schwab  <schwab@redhat.com>
41941
41942         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
41943
41944 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
41945             Maxim Kuvyrkov  <maxim@codesourcery.com>
41946             Joseph Myers  <joseph@codesourcery.com>
41947
41948         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
41949         if needed for __stack_chk_guard.
41950
41951 2011-09-19  Roland McGrath  <roland@hack.frob.com>
41952
41953         * sysdeps/posix/spawni.c (script_execute): Always define it.
41954         It will be optimized away if unused.
41955         (maybe_script_execute): New function.
41956         (__spawni): Call it.
41957
41958         * Makerules: Don't include tls.make.
41959         (config-tls): Always set to thread.
41960         * tls.make.c: File removed.
41961
41962 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
41963
41964         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
41965         * config.make.in (CPPFLAGS-config): New substituted variable.
41966
41967 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
41968
41969         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
41970
41971         [BZ #13192]
41972         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
41973         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
41974
41975 2011-09-15  Roland McGrath  <roland@hack.frob.com>
41976
41977         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
41978         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
41979         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
41980         (CALL_FAIL): Likewise.
41981         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
41982         (CALL_FAIL): Macro removed.
41983         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
41984
41985 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
41986
41987         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
41988         for __FINITE_MATH_ONLY__ == 1.
41989
41990 2011-09-15  Andreas Schwab  <schwab@redhat.com>
41991
41992         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
41993         __ieee754_sqrt instead of sqrt.
41994         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
41995         __ieee754_sqrtf instead of sqrtf.
41996         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
41997         __floorf instead of floorf.
41998         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
41999         __floorf, __truncf instead of floorf, truncf.
42000
42001 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
42002
42003         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
42004
42005         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
42006         __extern_always_inline.
42007         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
42008         32-bit.
42009
42010 2011-09-14  Andreas Schwab  <schwab@redhat.com>
42011
42012         * elf/rtld.c (dl_main): Also relocate in dependency order when
42013         doing symbol dependency testing.
42014
42015 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
42016
42017         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
42018         Always define `refsym'.
42019
42020 2011-09-13  Andreas Schwab  <schwab@redhat.com>
42021
42022         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
42023         (__FD_ELT): Renamed from __FDELT.
42024         * misc/bits/select2.h (__FD_ELT): Likewise.
42025         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
42026         __FD_MASK instead of __FDELT, __FDMASK.
42027         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42028         Likewise.
42029         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
42030         Likewise.
42031
42032         * elf/Makefile (gen-ldd): Fix pattern.
42033
42034         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
42035         (init_tls): Likewise.
42036
42037 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
42038
42039         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
42040
42041 2011-09-12  Andreas Schwab  <schwab@redhat.com>
42042
42043         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
42044         `struct cmsghdr *' instead of `void *'.
42045         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
42046         Likewise.
42047
42048 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
42049
42050         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
42051         if non-absolute.
42052         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
42053         ldd_rewrite_script.
42054
42055 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
42056
42057         * configure.in: Remove --with-tls option.
42058         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
42059         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
42060         out in case it is missing.
42061         * sysdeps/ia64/elf/configure.in: Likewise.
42062         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
42063         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
42064         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
42065         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
42066         * sysdeps/sh/elf/configure.in: Likewise.
42067         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
42068         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
42069         * sysdeps/x86_64/elf/configure.in: Likewise.
42070         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
42071         * sysdeps/mach/hurd/tls.h: Likewise.
42072
42073         [BZ #13067]
42074         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
42075
42076         [BZ #13090]
42077         * configure.in: Fix use of AC_INIT.
42078
42079         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
42080
42081 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
42082
42083         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
42084         __set_errno.
42085         * malloc/hooks.c: Likewise.
42086
42087         [BZ #11929]
42088         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
42089         variables statically.
42090         (narenas): Initialize.
42091         (list_lock): Initialize.
42092         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
42093         initializtion of main_arena and list_lock.  Small cleanups.
42094         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
42095         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
42096         Add initializers to main_arena and mp_.
42097         (malloc_state): Remove pagesize member.  Change all users to use
42098         GLRO(dl_pagesize).
42099
42100         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
42101         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
42102         is always initialized.
42103
42104         * malloc/malloc.c: Removed unused configurations and dead code.
42105         * malloc/arena.c: Likewise.
42106         * malloc/hooks.c: Likewise.
42107         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
42108
42109         * include/tls.h: Removed.  USE___THREAD must always be defined.
42110         * bits/libc-tsd.h: Don't handle !USE___THREAD.
42111         * elf/dl-libc.c: Likewise.
42112         * elf/dl-tsd.c: Likewise.
42113         * include/errno.h: Likewise.
42114         * include/netdb.h: Likewise.
42115         * include/resolv.h: Likewise.
42116         * inet/herrno-loc.c: Likewise.
42117         * inet/herrno.c: Likewise.
42118         * malloc/arena.c: Likewise.
42119         * malloc/hooks.c: Likewise.
42120         * malloc/malloc.c: Likewise.
42121         * resolv/res-state.c: Likewise.
42122         * resolv/res_libc.c: Likewise.
42123         * sysdeps/i386/dl-machine.h: Likewise.
42124         * sysdeps/ia64/dl-machine.h: Likewise.
42125         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
42126         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
42127         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
42128         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
42129         * sysdeps/sh/dl-machine.h: Likewise.
42130         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
42131         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
42132         * sysdeps/unix/i386/sysdep.S: Likewise.
42133         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
42134         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
42135         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
42136         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
42137         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
42138         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
42139         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
42140         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
42141         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
42143         * sysdeps/unix/x86_64/sysdep.S: Likewise.
42144         * sysdeps/x86_64/dl-machine.h: Likewise.
42145         * tls.make.c: Likewise.
42146
42147         * configure.in: Remove --with-__thread option.  Make tests for
42148         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
42149         tls_model attribute fail if no support is available.  Remove
42150         USE_IN_LIBIO.
42151         * Makeconfig: Adjust for dropped configure option.  All features are
42152         now mandatory.
42153         * Makerules: Likewise.
42154         * Versions.def: Likewise.
42155         * argp/argp-fmtstream.c: Likewise.
42156         * argp/argp-fmtstream.h: Likewise.
42157         * argp/argp-help.c: Likewise.
42158         * assert/assert.c: Likewise.
42159         * config.h.in: Likewise.
42160         * config.make.in: Likewise.
42161         * configure: Likewise.
42162         * configure.in: Likewise.
42163         * csu/Versions: Likewise.
42164         * csu/init.c: Likewise.
42165         * elf/tst-audit2.c: Likewise.
42166         * elf/tst-tls10.c: Likewise.
42167         * elf/tst-tls10.h: Likewise.
42168         * elf/tst-tls11.c: Likewise.
42169         * elf/tst-tls12.c: Likewise.
42170         * elf/tst-tls14.c: Likewise.
42171         * elf/tst-tlsmod11.c: Likewise.
42172         * elf/tst-tlsmod12.c: Likewise.
42173         * elf/tst-tlsmod13.c: Likewise.
42174         * elf/tst-tlsmod13a.c: Likewise.
42175         * elf/tst-tlsmod14a.c: Likewise.
42176         * elf/tst-tlsmod15b.c: Likewise.
42177         * elf/tst-tlsmod16a.c: Likewise.
42178         * elf/tst-tlsmod16b.c: Likewise.
42179         * elf/tst-tlsmod7.c: Likewise.
42180         * elf/tst-tlsmod8.c: Likewise.
42181         * elf/tst-tlsmod9.c: Likewise.
42182         * gmon/gmon.c: Likewise.
42183         * grp/fgetgrent_r.c: Likewise.
42184         * grp/putgrent.c: Likewise.
42185         * hurd/fopenport.c: Likewise.
42186         * include/libc-symbols.h: Likewise.
42187         * include/tls.h: Likewise.
42188         * intl/gettextP.h: Likewise.
42189         * intl/loadinfo.h: Likewise.
42190         * locale/global-locale.c: Likewise.
42191         * locale/localeinfo.h: Likewise.
42192         * mach/devstream.c: Likewise.
42193         * malloc/arena.c: Likewise.
42194         * malloc/set-freeres.c: Likewise.
42195         * misc/err.c: Likewise.
42196         * misc/getttyent.c: Likewise.
42197         * misc/mntent_r.c: Likewise.
42198         * posix/getopt.c: Likewise.
42199         * posix/wordexp.c: Likewise.
42200         * pwd/fgetpwent_r.c: Likewise.
42201         * resolv/Versions: Likewise.
42202         * resolv/res_hconf.c: Likewise.
42203         * shadow/fgetspent_r.c: Likewise.
42204         * shadow/putspent.c: Likewise.
42205         * stdio-common/printf_fphex.c: Likewise.
42206         * stdio-common/tmpfile.c: Likewise.
42207         * stdlib/abort.c: Likewise.
42208         * stdlib/fmtmsg.c: Likewise.
42209         * sunrpc/auth_unix.c: Likewise.
42210         * sunrpc/clnt_perr.c: Likewise.
42211         * sunrpc/clnt_tcp.c: Likewise.
42212         * sunrpc/clnt_udp.c: Likewise.
42213         * sunrpc/clnt_unix.c: Likewise.
42214         * sunrpc/openchild.c: Likewise.
42215         * sunrpc/svc_simple.c: Likewise.
42216         * sunrpc/svc_tcp.c: Likewise.
42217         * sunrpc/svc_udp.c: Likewise.
42218         * sunrpc/svc_unix.c: Likewise.
42219         * sunrpc/xdr.c: Likewise.
42220         * sunrpc/xdr_array.c: Likewise.
42221         * sunrpc/xdr_rec.c: Likewise.
42222         * sunrpc/xdr_ref.c: Likewise.
42223         * sunrpc/xdr_stdio.c: Likewise.
42224
42225 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42226
42227         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
42228
42229 2011-07-03  Andreas Jaeger  <aj@suse.de>
42230
42231         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
42232         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
42233         regenerate with gen-libm-tests.pl.
42234
42235 2010-05-12  Petr Baudis  <pasky@suse.cz>
42236
42237         [BZ #11589]
42238         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
42239         around j0() zero points by switching to j1().
42240         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
42241         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
42242         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
42243         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
42244
42245 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42246
42247         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
42248         instead of 0.
42249         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
42250         instead of 0.
42251         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
42252         Patch in part by Pavel Roskin <proski@gnu.org>.
42253
42254         [BZ #13138]
42255         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
42256         realloc.
42257         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
42258         Free memory block if necessary.
42259
42260         [BZ #12847]
42261         * libio/genops.c (INTDEF): For string streams the _lock pointer can
42262         be NULL.  Don't lock in this case.
42263
42264 2011-09-09  Roland McGrath  <roland@hack.frob.com>
42265
42266         * elf/elf.h (ELFOSABI_GNU): New macro.
42267         (ELFOSABI_LINUX): Define to that.
42268
42269 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
42270
42271         * string/strncat.c (strncat): Undef the symbol in case it has been
42272         defined in bits/string.h.
42273
42274 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
42275
42276         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
42277
42278         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
42279         link map.
42280
42281 2011-08-17  Andreas Jaeger  <aj@suse.de>
42282
42283         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
42284
42285 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
42286             Ian Lance Taylor  <iant@google.com>
42287
42288         * math/libm-test.inc (lround_test): New testcase.
42289         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
42290
42291 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
42292
42293         * Makefile: Remove support for automatic cvs check-ins.
42294         * Makerules: Likewise.
42295         * config.make.in: Likewise.
42296         * configure.in: Likewise.
42297         * intl/Makefile: Likewise.
42298         * locale/Makefile: Likewise.
42299         * po/Makefile: Likewise.
42300         * posix/Makefile: Likewise.
42301         * sysdeps/gnu/Makefile: Likewise.
42302         * sysdeps/mach/hurd/Makefile: Likewise.
42303         * sysdeps/sparc/sparc32/Makefile: Likewise.
42304
42305         [BZ #13118]
42306         * posix/Makefile (bug-regex32-ENV): Define.
42307         Patch by John Stanley <jpsinthemix@verizon.net>.
42308
42309         * misc/Makefile (headers): Add bits/select2.h.
42310         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
42311         * misc/bits/select2.h: New file.
42312         * include/bits/select2.h: New file.
42313         * debug/Makefile (routines): Add fdelt_chk.
42314         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
42315         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
42316         FD_ISSET.
42317         * debug/fdelt_chk.c: New file.
42318
42319         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
42320         * wcsmbs/test-wmemcmp.c: Likewise.
42321         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
42322         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
42323
42324 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42325
42326         * string/Makefile (strop-tests): Add memcmp.
42327         * string/test-wmemcmp.c: New file.
42328         * string/test-memcmp.c: Add wmemcmp support.
42329
42330 2011-09-08  Roland McGrath  <roland@hack.frob.com>
42331
42332         [BZ #13153]
42333         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
42334         2011-07-19 change.
42335
42336         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
42337         garbage value in a __mach_port_mod_refs call in the cases of the
42338         task-self and thread-self ports.
42339
42340 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42341
42342         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
42343
42344 2011-09-08  Andreas Schwab  <schwab@redhat.com>
42345
42346         * elf/dl-load.c (lose): Check for non-null L.
42347
42348 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42349
42350         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
42351
42352         * elf/dl-libc.c (dlerror_run): Pass back error code from
42353         dl_catch_error.
42354
42355         [BZ #13123]
42356         * elf/dl-load.c (lose): Free l_origin if it is valid.
42357
42358         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
42359         names.
42360         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
42361         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42362         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42363         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42364         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
42365         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
42366
42367 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42368
42369         * sysdeps/powerpc/fpu/e_hypot.c: New file.
42370         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
42371         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
42372         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
42373         * sysdeps/powerpc/fpu/k_cosf.c: New file.
42374         * sysdeps/powerpc/fpu/k_sinf.c: New file.
42375         * sysdeps/powerpc/fpu/s_cosf.c: New file.
42376         * sysdeps/powerpc/fpu/s_sinf.c: New file.
42377         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
42378         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
42379
42380 2011-08-15  Alan Modra  <amodra@gmail.com>
42381
42382         [BZ #13092]
42383         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
42384         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
42385         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
42386         ppc_mcount to static-only-routines.
42387         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
42388         __mcount_internal.
42389         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
42390         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
42391
42392 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
42393
42394         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
42395         for finite and infinity parameters.
42396
42397 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
42398
42399         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
42400         and add nop instructions for throughput optimization.
42401         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
42402
42403 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
42404
42405         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
42406         aligned copy for power7 with vector-scalar instructions.
42407         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
42408
42409 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
42410
42411         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
42412         AVX check.
42413
42414 2011-09-07  Andreas Schwab  <schwab@redhat.com>
42415
42416         [BZ #13144]
42417         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
42418         last change.
42419
42420 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
42421
42422         * sysdeps/unix/sysv/linux/x86_64/init-first.c
42423         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
42424         syscall wrapper around clock_gettime in __vdso_clock_gettime.
42425         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
42426         clock_gettime.
42427
42428 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42429
42430         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
42431         Forgot to demangle the pointer.
42432
42433         * sysdeps/i386/sysdep.h: Define atom_text_section.
42434         * sysdeps/x86_64/sysdep.h: Likewise.
42435         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
42436         section with atom_text_section.
42437         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
42438         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
42439         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
42440         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
42441         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
42442
42443         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
42444         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
42445         already be defined.  Change to take two parameters and don't assign
42446         result to variable.  Adjust all users.
42447         Define INTERNAL_GETTIME if not already defined.
42448         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
42449         call.
42450         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
42451         HAVE_CLOCK_GETTIME_VSYSCALL.
42452         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
42453
42454         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
42455         gettimeofday vsyscall, just use time.
42456
42457 2011-09-06  Andreas Schwab  <schwab@redhat.com>
42458
42459         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
42460         <errno.h>.
42461
42462 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
42463
42464         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
42465         syscall on x86-64.
42466         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
42467         syscall.
42468         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
42469         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
42470         syscall if possible.
42471
42472 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42473
42474         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
42475         e_ident.  Don't pass to find_mapsXX.
42476         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
42477
42478 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42479
42480         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42481         strchr-sse2-no-bsf strrchr-sse2-no-bsf
42482         * sysdeps/x86_64/multiarch/strchr.S: Update.
42483         Check bit_slow_BSF bit.
42484         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
42485         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
42486         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
42487
42488 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42489
42490         [BZ #13134]
42491         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
42492         before glibc 2.15.
42493         (tryshell): Define.
42494         (__spawni): Change last parameter to be flag.  Test
42495         SPAWN_XFLAGS_USE_PATH flag to use path or not.
42496         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
42497         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
42498         * posix/spawni.c: Likewise.
42499         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
42500         * posix/spawnp.c: Likewise.  Change normal version to use
42501         SPAWN_XFLAGS_USE_PATH.
42502         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
42503         SPAWN_XFLAGS_TRY_SHELL.
42504
42505         [BZ #13150]
42506         * posix/glob.h: Remove gcc 1.x support.
42507
42508         [BZ #13068]
42509         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
42510
42511 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42512
42513         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42514         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
42515         strrchr-sse2-bsf
42516         * sysdeps/i386/i686/multiarch/strchr.S: New file.
42517         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
42518         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
42519         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
42520         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
42521         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
42522
42523 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42524
42525         * sysdeps/x86_64/wcscmp.S: New file.
42526
42527         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
42528         wcscmp-c wcscmp-sse2
42529         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
42530         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
42531         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
42532         * wcsmbs/wcscmp.c: Allow renaming.
42533
42534 2011-09-05  David S. Miller  <davem@davemloft.net>
42535
42536         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
42537         stack slot, rather than the struct return pointer slot.
42538         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
42539         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
42540         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
42541         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
42542
42543 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
42544
42545         * po/ja.po: Update from translation team.
42546
42547         [BZ #13144]
42548         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
42549         kernel in 64-bit binaries.
42550
42551 2011-09-01  David S. Miller  <davem@davemloft.net>
42552
42553         * elf/elf.h (HWCAP_SPARC_*): Move to..
42554         * sysdeps/sparc/sysdep.h: this new file and add new values.
42555         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
42556         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
42557         _DL_HWCAP_COUNT to 24.
42558         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
42559         entries.
42560         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
42561         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
42562         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
42563         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
42564         instead of magic constants.
42565         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
42566
42567 2011-08-31  David S. Miller  <davem@davemloft.net>
42568
42569         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
42570         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
42571         Reimplement to do errno handling inline.
42572         (SYSCALL_ERROR_HANDLER): New macro.
42573         (__SYSCALL_STRING): Do not do errno handling in asm.
42574         (__CLONE_SYSCALL_STRING): Delete.
42575         (__INTERNAL_SYSCALL_STRING): Delete.
42576         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
42577         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
42578         (PSEUDO): Reimplement to do errno handling inline.
42579         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
42580         (SYSCALL_ERROR_HANDLER): New macro.
42581         (__SYSCALL_STRING): Do not do errno handling in asm.
42582         (__CLONE_SYSCALL_STRING): Delete.
42583         (__INTERNAL_SYSCALL_STRING): Delete.
42584         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
42585         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
42586         i386.
42587         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
42588         (inline_syscall*): Add 'err' argument.
42589         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
42590         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
42591         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
42592         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
42593
42594         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
42595         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
42596
42597 2011-08-30  Andreas Schwab  <schwab@redhat.com>
42598
42599         * elf/rtld.c (dl_main): Relocate objects in dependency order.
42600
42601 2011-08-29  Jiri Olsa <jolsa@redhat.com>
42602
42603         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
42604         directive.
42605
42606 2011-08-24  David S. Miller  <davem@davemloft.net>
42607
42608         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
42609
42610 2011-08-24  Andreas Schwab  <schwab@redhat.com>
42611
42612         * elf/Makefile: Add rules to build and run unload8 test.
42613         * elf/unload8.c: New file.
42614         * elf/unload8mod1.c: New file.
42615         * elf/unload8mod1x.c: New file.
42616         * elf/unload8mod2.c: New file.
42617         * elf/unload8mod3.c: New file.
42618
42619         * elf/dl-close.c (_dl_close_worker): Reset private search list if
42620         it wasn't used.
42621
42622 2011-08-23  David S. Miller  <davem@davemloft.net>
42623
42624         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
42625         subtract stack bias.
42626         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
42627         %sp not %fp in calculations.
42628         (_JMPBUF_UNWINDS_ADJ): Likewise.
42629
42630         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
42631         (aio_suspend): Call it to force an exception region around the
42632         AIO_MISC_WAIT() invocation.
42633
42634 2011-08-23  Andreas Schwab  <schwab@redhat.com>
42635
42636         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
42637         backslash.
42638
42639 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
42640
42641         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
42642         protection macro.
42643         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
42644         and <dl-machine.h>.
42645         (Elf64_FuncDesc): Remove.
42646
42647 2011-08-22  David S. Miller  <davem@davemloft.net>
42648
42649         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
42650         sigaltstack check, add missing cfi directives.
42651         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
42652         missing cfi directives, and sigaltstack handling.
42653
42654 2011-08-16  Andreas Schwab  <schwab@redhat.com>
42655
42656         [BZ #11724]
42657         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
42658         object is seen twice.
42659         * elf/dl-fini.c (_dl_sort_fini): Likewise.
42660
42661         * elf/Makefile (distribute): Add tst-initorder2.c.
42662         (tests): Add tst-initorder2.
42663         (modules-names): Add tst-initorder2a tst-initorder2b
42664         tst-initorder2c tst-initorder2d.  Add rules to build them.
42665         ($(objpfx)tst-initorder2.out): New rule.
42666         * elf/tst-initorder2.c: New file.
42667         * elf/tst-initorder2.exp: New file.
42668
42669 2011-08-22  Andreas Schwab  <schwab@redhat.com>
42670
42671         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
42672
42673         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
42674         dependencies back to end of function.
42675
42676         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
42677         $(elfobjdir)/ld.so.
42678
42679 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
42680
42681         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
42682         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
42683         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
42684         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
42685         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
42686         of __vdso_gettimeofday.
42687         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
42688         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
42689         attribute_hidden.
42690         (_libc_vdso_platform_setup): Remove initialization of
42691         __vdso_gettimeofday and __vdso_time.
42692
42693 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42694
42695         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
42696         and fgetc_unlocked.
42697         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
42698         getc_unlocked.
42699
42700         * elf/dl-open.c (add_to_global): Report additions to the global scope
42701         for LD_DEBUG=scopes.
42702         (dl_open_worker): Also print scope of newly loaded dependencies.
42703         (_dl_show_scope): Indicate if there is no scope.
42704
42705         [BZ #13114]
42706         * stdio-common/Makefile (tests): Add bug24.
42707         * stdio-common/bug24.c: New file.
42708
42709 2011-08-19  Andreas Jaeger  <aj@suse.de>
42710
42711         [BZ #13114]
42712         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
42713         non-existant file when using close-on-exec mode.
42714
42715 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
42716
42717         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
42718         the very first instruction.
42719
42720         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
42721         the CFI state in the end.
42722         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
42723         inclusion of dl-trampoline.h.
42724         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
42725
42726 2011-08-19  Andreas Schwab  <schwab@redhat.com>
42727
42728         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
42729         expectations for long double.
42730
42731         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
42732         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
42733
42734 2011-08-14  David S. Miller  <davem@davemloft.net>
42735
42736         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
42737         artificual limit depends upon the system page size.
42738
42739 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42740
42741         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
42742         * resolv/Makefile: Define CFLAGS-libresolv.
42743
42744 2011-08-17  Andreas Schwab  <schwab@redhat.com>
42745
42746         * nss/makedb.c (compute_tables): Make variables used in nested
42747         function static.
42748
42749 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
42750
42751         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
42752         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
42753         if buffer was too small.
42754
42755         * elf/pldd.c (main): Attach to all threads in the process.
42756         Rewrite /proc handling to use *at functions.
42757
42758 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
42759
42760         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
42761         specifies first scope to show.
42762         (dl_open_worker): Update callers.  Move printing scope of new
42763         object to before the relocation.
42764         * elf/rtld.c (dl_main): Update _dl_show_scope call.
42765         * sysdeps/generic/ldsodefs.h: Update declaration.
42766
42767         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
42768         string for the scope number.
42769
42770 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
42771
42772         * nscd/servicescache.c (cache_addserv): Make sure written is always
42773         initialized.
42774
42775 2011-08-14  Roland McGrath  <roland@hack.frob.com>
42776
42777         * sysdeps/i386/i486/bits/atomic.h
42778         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
42779         statement expression, so as to suppress "set but not used" warning.
42780         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
42781
42782         * string/strncat.c (STRNCAT): Use prototype definition.
42783
42784         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
42785         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
42786         -Iprograms here.
42787         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
42788         (localedef-modules): Add localedef.
42789         (locale-modules): Add locale.
42790
42791         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
42792         * elf/rtld.c (dl_main): Invert order of assignment in last change,
42793         to avoid a warning.
42794
42795 2011-08-14  David S. Miller  <davem@davemloft.net>
42796
42797         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
42798         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
42799
42800 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
42801
42802         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
42803         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
42804         * elf/rtld.c (dl_main): Set l_name of vDSO.
42805         Call _dl_show_scope when DL_DEBUG_SCOPES.
42806         (process_dl_debug): Recognize scopes flag and also set it for all.
42807         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
42808         Declare _dl_show_scope.
42809
42810         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
42811         (do_dlopen): Pass caller_dlopen to dl_open.
42812         (__libc_dlopen_mode): Initialize caller_dlopen.
42813
42814         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
42815         of libc.  Make tolower call locale-independent.  Optimize a bit by
42816         using isdigit instead of isalnum.
42817         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
42818
42819 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
42820
42821         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
42822         was a dependency or dynamically loaded.
42823
42824 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
42825
42826         * intl/l10nflist.c: Allow architecture-specific pop function.
42827         * sysdeps/x86_64/l10nflist.c: New file.
42828
42829         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
42830         classification.
42831
42832 2011-08-10  Andreas Schwab  <schwab@redhat.com>
42833
42834         * include/dirent.h: Add libc_hidden_proto for scandirat and
42835         scandirat64.  Don't declare __scandirat64.
42836         * dirent/scandirat.c: Add libc_hidden_def.
42837         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
42838         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
42839
42840 2011-08-10  David S. Miller  <davem@davemloft.net>
42841
42842         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
42843         enum.
42844         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42845         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42846         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42847
42848 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
42849
42850         * Versions.def [libc]: Add GLIBC_2.15.
42851         * dirent/Makefile (routines): Add scandirat and scandirat64.
42852         * dirent/Versions [libc]: Export scandirat and scandirat64 for
42853         GLIBC_2.15.
42854         * dirent/dirent.h: Declare scandirat and scandirat64.
42855         * dirent/scandirat.c: New file.
42856         * dirent/scandirat64.c: New file.
42857         * sysdeps/wordsize-64/scandirat.c: New file.
42858         * sysdeps/wordsize-64/scandirat64.c: New file.
42859         * dirent/opendir.c: Define opendirat.
42860         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
42861         using scandirat.
42862         * dirent/scandir64.c: Adjust for scandir.c change.
42863         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
42864         __scandirat64, and __scandir_cancel_handler.
42865         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
42866         additional parameter and use openat instead of open (outside of ld.so).
42867         Add new __opendir as wrapper around __opendirat.
42868         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
42869         here without requiring old scandirat implementation.
42870
42871 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
42872
42873         * dirent/scandir.c (cancel_handler): Renamed to
42874         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
42875         defined.  Adjust users.
42876         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
42877         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
42878
42879 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
42880
42881         * string/test-string.h (IMPL): Use __STRING to expand name and then
42882         stringify it.
42883
42884         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
42885         of cleanups.
42886
42887 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42888
42889         * string/Makefile: Update.
42890         (strop-tests): Append strncat.
42891         * string/test-wcscmp.c: New file.
42892         New comprehensive test for wcscmp.
42893         * string/test-strcmp.c: Update.
42894         (WIDE): New define.
42895
42896 2011-07-22  Andreas Schwab  <schwab@redhat.com>
42897
42898         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
42899         line.
42900
42901 2011-07-26  Andreas Schwab  <schwab@redhat.com>
42902
42903         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
42904         encoding to ACE if AI_IDN.
42905
42906 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
42907
42908         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
42909         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
42910
42911 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42912
42913         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
42914         Fix overflow bug in strncat.
42915         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
42916
42917         * string/test-strncat.c: Update.
42918         Add new tests for checking overflow bugs.
42919
42920 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
42921
42922         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
42923         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
42924         * sysdeps/i386/i686/multiarch/strcat.S: New file.
42925         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
42926         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
42927         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
42928         * sysdeps/i386/i686/multiarch/strncat.S: New file.
42929         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
42930         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
42931
42932         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
42933         (USE_AS_STRCAT): Define.
42934         Add strcat and strncat support.
42935         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
42936
42937 2011-07-25  Andreas Schwab  <schwab@redhat.com>
42938
42939         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
42940         __n bigger than INT_MAX+1.
42941         (__strncmp_g): Likewise.
42942
42943 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
42944
42945         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
42946         * libio/stido.h: Likewise.
42947
42948         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
42949         (AF_NFC): Define.
42950         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
42951         (AF_NFC): Define.
42952
42953         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
42954         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
42955         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
42956         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
42957         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
42958
42959         [BZ #13021]
42960         * scripts/test-installation.pl: Don't expect libnss_test1 to be
42961         installed.
42962
42963         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
42964         typo.
42965         (_dl_x86_64_save_sse): Likewise.
42966
42967 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
42968
42969         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
42970         OSXSAVE.
42971         (_dl_x86_64_save_sse): Likewise.
42972
42973         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
42974
42975         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
42976
42977 2011-07-21  Andreas Schwab  <schwab@redhat.com>
42978
42979         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
42980         change.
42981         (_dl_x86_64_save_sse): Use correct AVX check.
42982
42983 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42984
42985         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
42986         bug in strncpy/strncat.
42987         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
42988
42989 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
42990
42991         * string/tester.c (test_strcat): Add tests for different alignments
42992         of source and destination.
42993         (test_strncat): Likewise.
42994
42995 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
42996
42997         [BZ #12852]
42998         * posix/glob.c (glob): Check passed in values before using them in
42999         expressions to avoid some overflows.
43000         (glob_in_dir): Likewise.
43001
43002         [BZ #13007]
43003         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
43004         check for AVX enablement so that we don't crash with old kernels and
43005         new hardware.
43006         * elf/tst-audit4.c: Add same checks here.
43007         * elf/tst-audit6.c: Likewise.
43008
43009         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
43010
43011 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
43012
43013         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
43014
43015 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
43016
43017         * po/cs.po: Update from translation team.
43018         * po/bg.po: Likewise.
43019
43020 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
43021
43022         * misc/sys/cdefs.h: Add support for const attribute.
43023         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
43024         to gnu_dev_{major,minor,makedev} functions.
43025
43026 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
43027
43028         * intl/dcigettext.c (get_output_charset): Add missing bracket.
43029
43030 2011-07-20  Andreas Schwab  <schwab@redhat.com>
43031
43032         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
43033         strlen results.
43034
43035 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43036
43037         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
43038         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
43039         register in order to avoid conflicts with the soft frame pointer
43040         being held in r11 when necessary.
43041         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
43042         (INTERNAL_VSYSCALL_NCS): Likewise.
43043
43044 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
43045
43046         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
43047         * elf/dl-fini.c (_dl_fini): Adjust caller.
43048         * elf/dl-close.c (_dl_close_worker): Likewise.
43049         * sysdeps/generic/ldsodefs.h: Adjust declaration.
43050
43051 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43052
43053         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
43054         "aux_cache->nlibs < 0".
43055
43056         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
43057         in the reload-count case.
43058
43059 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
43060
43061         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43062         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
43063         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
43064         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
43065         * sysdeps/x86_64/multiarch/strcat.S: New file.
43066         * sysdeps/x86_64/multiarch/strncat.S: New file.
43067         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
43068         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
43069         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
43070         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
43071         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
43072         (USE_AS_STRCAT): Define.
43073         Add strcat and strncat support.
43074         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
43075         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
43076         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
43077         * string/strncat.c: Update.
43078         (USE_AS_STRNCAT): Define.
43079         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43080         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
43081         and i7.
43082         * sysdeps/x86_64/multiarch/init-arch.h
43083         (bit_Prefer_PMINUB_for_stringop): New.
43084         (index_Prefer_PMINUB_for_stringop): Likewise.
43085         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
43086         bit_Prefer_PMINUB_for_stringop.
43087
43088 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43089
43090         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
43091         buffer64.
43092         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
43093         of casting of buffer.
43094         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
43095         buffer32 and buffer64.
43096         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
43097         writes instead of casting of buffer.
43098         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
43099         buffer32.
43100         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
43101         casting of buffer.
43102
43103 2011-07-19  Andreas Schwab  <schwab@redhat.com>
43104
43105         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
43106
43107 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
43108
43109         * nscd/nscd.c (termination_handler): Don't do anything for a database
43110         if it has not yet been initialized.
43111
43112 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43113
43114         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43115
43116 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
43117
43118         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
43119
43120 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
43121
43122         * po/nl.po: Update from translation team.
43123         * po/sv.po: Likewise.
43124
43125 2011-07-16  Roland McGrath  <roland@hack.frob.com>
43126
43127         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
43128         now disallowed by GCC.
43129
43130         * configure.in (use-default-link): Default to yes if a test -shared
43131         link meets our qualifications.
43132         * configure: Regenerated.
43133
43134         * config.make.in (output-format): New variable.
43135         * configure.in: Check for ld --print-output-format support.
43136         * configure: Regenerated.
43137         * Makerules ($(common-objpfx)format.lds)
43138         [$(output-format) != unknown]: Just use $(output-format),
43139         instead of the linker-script munging.
43140
43141 2011-07-14  Roland McGrath  <roland@hack.frob.com>
43142
43143         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
43144         of $(common-objpfx)shlib.lds.
43145         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
43146
43147         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
43148         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
43149
43150         * configure.in (-z relro check): Adjust test code to add a large
43151         writable data section after it.
43152         * configure: Regenerated.
43153
43154 2011-07-11  Roland McGrath  <roland@hack.frob.com>
43155
43156         * configure.in (-z relro check): Fix test code to make the variable
43157         truly const.
43158         * configure: Regenerated.
43159
43160 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
43161
43162         * nscd/nscd.h (struct traced_file): Define.
43163         (struct database_dyn): Remove inotify_descr, reset_res, and filename
43164         elements.  Add traced_files.
43165         (inotify_fd): Declare.
43166         (register_traced_file): Declare.
43167         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
43168         (inotify_fd): Export.
43169         (resolv_conf_descr): Remove.
43170         (nscd_init): Move inotify descriptor creation to main.
43171         Don't register files for notification here.
43172         (register_traced_file): New function.
43173         (invalidate_cache): Don't use reset_res to determine whether to call
43174         res_init, go through the list of registered files.
43175         (main_loop_poll): The inotify descriptors are now stored in the
43176         structures for the traced files.
43177         (main_loop_epoll): Likewise
43178         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
43179         to __nss_disable_nscd.
43180         * nscd/cache.c (prune_cache): There is no single inotify descriptor
43181         for a database anymore.  Check the records for all the registered
43182         files instead.
43183         * nss/Makefile (libnss_files-routines): Add files-init.
43184         (libnss_db-routines): Add db-init.
43185         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
43186         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
43187         * nss/nss_db/db-init.c: New file.
43188         * nss/nss_files/files-init.c: New file.
43189         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
43190         __nss_lookup_function.
43191         (__nss_lookup_function): Call nss_load_library.
43192         (nss_load_all_libraries): New function.
43193         (__nss_disable_nscd): Take parameter with callback function for files
43194         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
43195         used for the cached services.
43196         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
43197         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
43198         options for features to all the files in nscd.
43199
43200         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
43201
43202 2011-07-10  Roland McGrath  <roland@hack.frob.com>
43203
43204         * csu/elf-init.c (__libc_csu_init): Comment typo.
43205
43206 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
43207
43208         * po/pl.po: Update from translation team.
43209         * po/ja.po: Likewise.
43210         * po/ru.po: Likewise.
43211         * po/ko.po: Likewise.
43212         * po/fr.po: Likewise.
43213
43214 2011-07-09  Roland McGrath  <roland@hack.frob.com>
43215
43216         * configure.in (.ctors/.dtors header and trailer check):
43217         Use an empirical test on a built program.
43218         * configure: Regenerated.
43219
43220         * configure.in (-z relro check): Use an empirical test on a built DSO.
43221         Detect, but do not require, on ia64.
43222         * configure: Regenerated.
43223
43224         * configure.in (READELF): Find it with AC_CHECK_TOOL.
43225         Update tests that use readelf to use $READELF instead.
43226         * configure: Regenerated.
43227
43228 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
43229
43230         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
43231         if the result is not used.
43232
43233 2011-07-05  Andreas Jaeger  <aj@suse.de>
43234
43235         [BZ#9696]
43236         * stdlib/tst-strtod.c: Add testcase.
43237
43238 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
43239
43240         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
43241         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
43242         The latter has a higher limit.  Take additional parameter to pass to
43243         the new function.
43244         (__pathconf): Pass file to __statfs_link_max.
43245         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
43246         __statfs_link_max.
43247         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
43248         __statfs_link_max.
43249
43250         [BZ #12868]
43251         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
43252         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
43253         Handle Lustre.
43254         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
43255         (__statfs_filesize_max): Likewise.
43256         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
43257
43258 2011-07-05  Andreas Jaeger  <aj@suse.de>
43259
43260         * resolv/res_comp.c (dn_skipname): Remove unused variable.
43261
43262 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
43263
43264         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
43265         `status' variable.
43266         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
43267         Likewise.
43268
43269 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
43270
43271         * Makefile (strop-tests): Add strncat.
43272         * string/test-strncat.c: New file.
43273
43274 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
43275
43276         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
43277
43278 2011-06-21  Andreas Jaeger  <aj@suse.de>
43279
43280         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
43281         Copy rule from iconvdata/Makefile.
43282
43283 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43284
43285         [BZ #12922]
43286         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
43287         but no long options are defined, just return 'W'.
43288
43289 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
43290
43291         [BZ #9696]
43292         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
43293
43294 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
43295
43296         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
43297         netgroups to read.
43298         (innetgr): Likewise.
43299
43300 2011-07-05  Roland McGrath  <roland@hack.frob.com>
43301
43302         * config.make.in (install_root): Default to $(DESTDIR).
43303
43304 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
43305
43306         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
43307
43308 2011-07-02  Roland McGrath  <roland@hack.frob.com>
43309
43310         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
43311
43312         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
43313         containing directory rather than embedding absolute directory names.
43314
43315         * scripts/check-local-headers.sh: Rewritten using awk.
43316         Match by word, not by line.  Print error messages for matches.
43317         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
43318
43319         * Makerules [shlib-lds-flags empty]:
43320         ($(common-objpfx)libc_pic.opts): New target.
43321         ($(common-objpfx)libc_pic.os.clean): New target.
43322         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
43323
43324         * config.make.in (OBJCOPY): New variable.
43325         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
43326         * configure: Regenerated.
43327
43328         * config.make.in (use-default-link): New variable.
43329         * configure.in (use_default_link): Grok --with-default-link to set it.
43330         * configure: Regenerated.
43331         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
43332         (shlib-lds, shlib-lds-flags): Define to empty.
43333
43334         * Makerules (shlib-lds): New variable.
43335         (shlib-lds-flags): New variable.
43336         (build-shlib, build-moduile, build-module-asneeded): Use it.
43337         ($(common-objpfx)libc.so): Use $(shlib-lds).
43338         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
43339         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
43340
43341         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
43342         DT_FLAGS/DT_FLAGS_1 with zero flags.
43343
43344         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
43345         linker script munging.
43346
43347 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
43348
43349         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
43350         as 128-bit value.
43351         * crypt/sha512.c (sha512_process_block): Perform total addition using
43352         128-bit if possible.
43353         (__sha512_finish_ctx): Likewise.
43354         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
43355         as 64-bit value.
43356         * crypt/sha256.c (SWAP64): Define.
43357         (sha256_process_block): Perform total addition using 64-bit if
43358         possible.
43359         (__sha256_finish_ctx): Likewise.
43360
43361 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
43362
43363         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
43364         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43365         * nscd/hstcache.c (cache_addhst): Likewise.
43366         * nscd/grpcache.c (cache_addgr): Likewise.
43367         * nscd/aicache.c (addhstaiX): Likewise
43368         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
43369
43370 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
43371
43372         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
43373         * nscd/initgrcache.c (addinitgroupsX): Likewise.
43374         * nscd/hstcache.c (cache_addhst): Likewise.
43375         * nscd/grpcache.c (cache_addgr): Likewise.
43376         * nscd/aicache.c (addhstaiX): Likewise
43377
43378 2011-07-01  Andreas Schwab  <schwab@redhat.com>
43379
43380         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
43381         domain only when needed.
43382
43383 2011-06-30  Andreas Schwab  <schwab@redhat.com>
43384
43385         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
43386         is always restored.
43387
43388 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
43389
43390         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
43391         are re-adding the entry.
43392         * nscd/servicescache.c (cache_addserv): Likewise.
43393
43394 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
43395
43396         * sysdeps/generic/dl-irel.h: fix protection against multiple
43397         inclusions.
43398         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
43399
43400 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
43401
43402         [BZ #12935]
43403         * malloc/memusage.sh: Fix quoting in message.
43404         * debug/xtrace.sh: Likewise.
43405
43406         * configure.in: Remove support for --experimental-malloc option, make
43407         it the default.
43408         * config.make.in: Likewise.
43409         * malloc/Makefile: Likewise.
43410
43411 2011-06-27  Andreas Schwab  <schwab@redhat.com>
43412
43413         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
43414         two-byte characters.
43415
43416 2011-06-27  Roland McGrath  <roland@hack.frob.com>
43417
43418         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
43419         AC_CACHE_CHECK invocation.
43420         * configure: Regenerated.
43421
43422         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
43423
43424 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
43425
43426         [BZ #12350]
43427         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
43428         bit from old_res_options.
43429
43430         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
43431
43432         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
43433         value type for setfct.
43434
43435 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
43436
43437         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43438         __gettimeofday instead of gettimeofday.
43439
43440 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
43441
43442         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
43443
43444 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
43445
43446         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
43447
43448         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
43449         info.
43450
43451 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43452
43453         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
43454         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43455         strcpy-sse2-unaligned strncpy-sse2-unaligned
43456         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
43457         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
43458         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
43459         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
43460         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
43461         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
43462         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
43463         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
43464         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
43465         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
43466         (STRCPY): Support SSE2 and SSSE3 versions.
43467
43468 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
43469
43470         [BZ #12874]
43471         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
43472         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
43473         kernels which artificially limit size of requests.
43474
43475 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
43476
43477         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43478         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
43479         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
43480         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
43481         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
43482         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
43483         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
43484         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
43485         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
43486         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
43487         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
43488         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
43489         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
43490         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
43491         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
43492         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43493         Enable unaligned load optimization for Intel Core i3, i5 and i7
43494         processors.
43495         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
43496         Define.
43497         (index_Fast_Unaligned_Load): Define.
43498         (HAS_FAST_UNALIGNED_LOAD): Define.
43499
43500 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
43501
43502         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
43503
43504 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43505
43506         [BZ #12907]
43507         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
43508         until it is clear that the information is realy needed.
43509         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
43510
43511 2011-06-22  Andreas Schwab  <schwab@redhat.com>
43512
43513         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
43514
43515 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
43516
43517         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
43518         /sys/devices/system/cpu/online if it is usable.
43519
43520         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
43521         reading the information from the /proc filesystem to once a second.
43522
43523 2011-06-21  Andreas Jaeger  <aj@suse.de>
43524
43525         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
43526         NULL after inclusion of kernel headers.
43527
43528 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
43529
43530         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
43531         calls to internal_setent.
43532
43533         [BZ #12885]
43534         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
43535         addresses using gethostbyname4_r ignore IPv4 addresses.
43536
43537         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
43538         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
43539
43540         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
43541
43542 2011-06-20  David S. Miller  <davem@davemloft.net>
43543
43544         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
43545         inclusions.
43546         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
43547
43548         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
43549         (elf_irel): Use it.
43550         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
43551         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
43552         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
43553         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
43554         * sysdeps/x86_64/dl-irel.h: Likewise.
43555
43556         * elf/dl-runtime.c: Use elf_ifunc_invoke.
43557         * elf/dl-sym.c: Likewise.
43558
43559 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43560
43561         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
43562         need to dereference resplen2.
43563
43564 2011-06-14  Andreas Schwab  <schwab@redhat.com>
43565
43566         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
43567
43568 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
43569
43570         * Makeconfig: Define vardbdir and inst_vardbdir.
43571         * nss/Makefile: Add rules to install db-Makefile.
43572
43573         * nss/nss_db/db-XXX.c: Cleanup.
43574
43575         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
43576         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
43577         GLIBC_PRIVATE.
43578         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
43579         * nss/makedb.c: Implement -g option to specify that value strings
43580         are generated and should not be added to table iterated over for
43581         get*ent calls.
43582         * nss/nss_db/db-initgroups.c: New file.
43583
43584         * nss/getent.c: Add support for initgroups lookups through getgrouplist
43585         interface.
43586
43587         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
43588         (internal_getgrouplist): Adjust to name change.
43589         Update use_initgroups_entry if this is not the first call.
43590         * nss/databases.def: Add initgroups entry.
43591
43592         * nss/makedb.c (compute_tables): Check result of multiple hash table
43593         sizes to minimize maximum chain length.
43594
43595 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
43596
43597         * Versions.def: Add entry for libnss_db.
43598         * shlib-versions: Likewise.
43599         * nss/Makefile: Add rules to build libnss_db.
43600         * nss/Versions: Add libnss_db information.  Organize libnss_files
43601         entries better.
43602         * nss/db-Makefile: Add gshadow support.  Change rules for the new
43603         makedb progra.  Some minor improvements to generate smaller files.
43604         * nss/nss_db/nss_db.h: Move NSS database header data structures to
43605         here from...
43606         * nss/makedb.c: ...here.
43607         Improve database format to be smaller and require less memory at
43608         runtime.
43609         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
43610         db anymore.
43611         * nss/nss_db/db-netgrp.c: Likewise.
43612         * nss/nss_db/db-open.c: Likewise.
43613         * nss/nss_files/flies-XXX.x: Adjust comments.
43614         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
43615         * nss/nss_files/files-grp.c: Likewise.
43616         * nss/nss_files/files-hosts.c: Likewise.
43617         * nss/nss_files/files-network.c: Likewise.
43618         * nss/nss_files/files-proto.c: Likewise.
43619         * nss/nss_files/files-pwd.c: Likewise.
43620         * nss/nss_files/files-rpc.c: Likewise.
43621         * nss/nss_files/files-service.c: Likewise.
43622         * nss/nss_files/files-sgrp.c: Likewise.
43623         * nss/nss_files/files-spwd.c: Likewise.
43624         * nss/nss_db/db-alias.c: Removed.
43625         * nss/nss_db/dummy-db.h: Removed.
43626
43627 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
43628
43629         * nss/makedb.c: Rewritten to not use database library.
43630         * nss/Makefile: Update to build new makedb program.
43631
43632 2011-06-14  Andreas Jaeger  <aj@suse.de>
43633
43634         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
43635         memset declaration.
43636
43637 2011-06-10  Andreas Schwab  <schwab@redhat.com>
43638
43639         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
43640         tmpbuf.
43641
43642 2011-06-10  Roland McGrath  <roland@hack.frob.com>
43643
43644         * Makerules (shlib.lds): Fail if the linker script comes out empty.
43645         * elf/Makefile ($(objpfx)ld.so): Likewise.
43646
43647         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
43648         Don't list ld.so twice in dependencies.
43649
43650         * posix/bug-regex31.c: Include <stdlib.h>.
43651
43652         * nscd/hstcache.c (cache_addhst): Remove unused variable.
43653
43654         * nis/nss_compat/compat-spwd.c
43655         (getspent_next_nss_netgr): Remove unused variable.
43656         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
43657
43658         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
43659         nonmembers" output to use the right array.
43660
43661         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
43662
43663         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
43664
43665         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
43666         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
43667         * catgets/gencat.c (read_input_file): Likewise.
43668         * locale/programs/locarchive.c (enlarge_archive): Likewise.
43669
43670         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
43671         variable definition inside #if's controlling its use.
43672
43673         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
43674
43675         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
43676
43677         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
43678
43679         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
43680         unreachable code.
43681
43682         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
43683
43684         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
43685         * configure: Regenerated.
43686
43687         * Makerules: Revert last change.
43688         * elf/Makefile: Likewise.
43689
43690 2011-06-09  Roland McGrath  <roland@hack.frob.com>
43691
43692         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
43693         * elf/Makefile ($(objpfx)librtld.os): Likewise.
43694         (reloc-link): Likewise.
43695
43696 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
43697
43698         * elf/Makefile: Add rules to build pldd.
43699         * elf/pldd.c: New file.
43700         * elf/pldd-xx.c: New file.
43701
43702 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
43703
43704         * version.h: Update for 2.15 development version.
43705
43706 2011-06-07  David S. Miller  <davem@davemloft.net>
43707
43708         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
43709         ifuncs.
43710         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
43711         elf_machine_lazy_rel): Likewise.
43712         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
43713         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
43714         elf_machine_lazy_rel): Likewise.
43715         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
43716         dl_hwcap via passed in argument.
43717         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
43718         Likewise.
43719
43720 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43721
43722         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
43723
43724 2011-06-06  Roland McGrath  <roland@hack.frob.com>
43725
43726         [BZ #12849]
43727         * manual/fdl-1.1.texi: New file, verbatim from:
43728         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
43729         * manual/lgpl-2.1.texi: New file, verbatim from:
43730         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
43731         * manual/Makefile (licenses): New variable, list those new file names.
43732         (texis): Use it.
43733         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
43734
43735         * manual/fdl.texi: File removed.
43736         * manual/lesser.texi: File removed.
43737         * manual/libc.texinfo (Copying, Documentation License):
43738         Use new @include file names, put @appendix directive before @include.
43739
43740 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
43741
43742         [BZ #12841]
43743         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
43744         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
43745         (mq_open): Add __NTH.
43746
43747 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
43748
43749         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
43750         Assume Intel Core i3/i5/i7 processor if AVX is available.
43751
43752 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
43753
43754         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
43755         typo.
43756
43757 2011-05-31  Andreas Schwab  <schwab@redhat.com>
43758
43759         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
43760         memory.  Use alloca_account.  Fix memory leak when retrying.
43761
43762 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
43763
43764         * version.h (RELEASE): Bump for 2.14 release.
43765         * include/features.h (__GLIBC_MINOR__): Bump to 14.
43766
43767         * config.make.in (RANLIB): Remove entry.
43768
43769 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
43770
43771         * po/Makefile (po-sed-cmd): Add ksh to extensions.
43772         (libc.pot): Work around missing support for .ksh extension in xgettext.
43773
43774         [BZ #12684]
43775         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
43776         if both request failed.
43777         (send_dg): In case of server errors clear resplen or *resplen2.
43778
43779         [BZ #12454]
43780         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
43781         when there are multiple maps.
43782         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
43783         (_dl_fini): Remove test here.
43784
43785         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
43786
43787 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
43788
43789         [BZ #12350]
43790         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
43791         bit from old_res_options.
43792         (gaih_inet): Likewise.
43793
43794         [BZ #11099]
43795         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
43796         as signed.
43797
43798         * resolv/res_init.c (res_setoptions): Make the code more compact.
43799
43800         [BZ #11558]
43801         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
43802         set RES_USEVC.
43803
43804         [BZ #11634]
43805         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
43806
43807         * malloc/malloc.h: Mark malloc hook variables as deprecated.
43808
43809         [BZ #11781]
43810         * malloc/malloc.h: Declare malloc hook variables as volatile.
43811
43812         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
43813         in last patch.
43814
43815         [BZ #11799]
43816         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
43817         raise in the comment.
43818         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
43819         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
43820         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
43821
43822 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
43823
43824         [BZ #12811]
43825         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
43826         grow the buffers more if it already has to be sufficient.
43827         (build_wcs_upper_buffer): Likewise.
43828         * posix/regexec.c (check_matching): Likewise.
43829         (clean_state_log_if_needed): Likewise.
43830         (extend_buffers): Don't enlarge buffers beyond size of the input
43831         buffer.
43832         Patches mostly by Emil Wojak <emil@wojak.eu>.
43833         * posix/bug-regex32.c: New file.
43834         * posix/Makefile (tests): Add bug-regex32.
43835
43836         * locale/findlocale.c (_nl_find_locale): Return right away if
43837         _nl_explode_name failed.
43838         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
43839
43840         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
43841
43842         * debug/xtrace.sh: Unify messages.
43843         * malloc/memusage.sh: Likewise.
43844
43845         [BZ #12813]
43846         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
43847         time symbol from vDSO.  Substitute with vsyscall if not available.
43848         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
43849         __vdso_time.
43850
43851         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
43852         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
43853         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
43854         Add sendmmsg and internal_sendmmsg.
43855         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
43856         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
43857         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
43858
43859         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
43860         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
43861         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
43862
43863 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
43864
43865         [BZ #12813]
43866         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
43867         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
43868         available.
43869         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
43870         __vdso_getcpu.
43871
43872         [BZ #12814]
43873         * iconvdata/Makefile (tests): Add bug-iconv9.
43874         * iconvdata/bug-iconv9.c: New file.
43875
43876 2011-05-27  Andreas Schwab  <schwab@redhat.com>
43877
43878         [BZ #12814]
43879         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
43880
43881 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
43882
43883         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
43884         (struct user_regs_struct): Change intcs field back to cs.
43885
43886 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
43887
43888         * po/ja.po: Update from translation team.
43889
43890 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
43891
43892         [BZ #12795]
43893         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
43894         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
43895
43896 2011-05-20  Andreas Schwab  <schwab@redhat.com>
43897
43898         * stdlib/longlong.h: Update from GCC.
43899
43900 2011-05-23  Andreas Schwab  <schwab@redhat.com>
43901
43902         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
43903         parameter name.
43904         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
43905         Add parameter name.
43906         (__sysconf): Pass it down.
43907
43908 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
43909
43910         [BZ #12671]
43911         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
43912         some situations.
43913         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
43914         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
43915         add in in __libc_use_alloca calls.  Adjust callers.
43916         (glob): Use malloc in some situations.
43917
43918         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
43919         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
43920         pltexit.
43921
43922 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
43923
43924         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
43925         and CLOCK_BOOTTIME_ALARM.
43926
43927         [BZ #12782]
43928         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
43929         is returned.
43930
43931         * string/_strerror.c (__strerror_r): Print negative errors as signed
43932         numbers.
43933
43934         [BZ #12777]
43935         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
43936         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
43937         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
43938
43939         * configure.in: Fix typo in redirection and correct removal of test
43940         files in two cases.
43941
43942         [BZ #12788]
43943         * locale/setlocale.c (new_composite_name): Fix test to check for
43944         identical name of all categories.
43945
43946         [BZ #12792]
43947         * libio/filedoalloc.c (local_isatty): New function.
43948         (_IO_file_doallocate): Use local_isatty.
43949         * stdio-common/perror.c (perror): In case a new stream is used
43950         forward the stream error.
43951         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
43952         error flag.
43953
43954 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
43955
43956         [BZ #11869]
43957         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
43958         alloca.
43959         * include/alloca.h (extend_alloca_account): Define.
43960
43961         [BZ #11857]
43962         * posix/regex.h: Fix comments with documentation of user-accessible
43963         fields after compilation and describe correct free'ing of pattern
43964         after re_compile_pattern.
43965         Patch by Reuben Thomas <rrt@sc3d.org>.
43966
43967 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
43968
43969         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
43970         and -mno-altivec to prevent the compiler from using Altivec and/or
43971         VSX instructions when the corresponding registers are not available.
43972
43973 2011-05-19  Andreas Schwab  <schwab@redhat.com>
43974
43975         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
43976
43977 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
43978
43979         * libio/freopen.c (freopen): Use __dup2, not dup2.
43980         * libio/freopen64.c (freopen64): Likewise.
43981
43982 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
43983
43984         [BZ #12775]
43985         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
43986         * math/Makefile (tests): Add test-powl.
43987         (CFLAGS-test-powl.c): Define.
43988         * math/test-powl.c: New file.
43989
43990 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
43991
43992         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
43993
43994 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
43995
43996         [BZ #11837]
43997         * iconvdata/gb18030.c: Update to GB18020-2005.
43998
43999 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
44000
44001         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
44002         RE_SYNTAX_POSIX_AWK): Update to match recent development.
44003         Patch by Aharon Robbins <arnold@skeeve.com>.
44004
44005         [BZ #11892]
44006         * stdlib/putenv.c (putenv): Don't always create copy of the variable
44007         on the stack.
44008
44009         [BZ #11895]
44010         * misc/pselect.c (__pselect): Handle timeout value errors hidden
44011         through underflows.
44012
44013         [BZ #12766]
44014         * misc/error.c (error_at_line): Ensure file_name and old_file_name
44015         point to strings before performing equality test for error_one_per_line
44016         mode.
44017
44018         [BZ #11697]
44019         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
44020
44021         [BZ #11820]
44022         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
44023         (struct user_fpregs_struct): Avoid __uint*_t types.
44024
44025         [BZ #6420]
44026         * malloc/mtrace.c (tr_where): Add additional parameter to point to
44027         symbol info.  Use it instead of calling _dl_addr locally.
44028         (lock_and_info): New function.
44029         (tr_freehook): Call lock_and_info and pass symbol info as additional
44030         parameter to tr_where.
44031         (tr_mallochook): Likewise.
44032         (tr_reallochook): Likewise.
44033         (tr_memalignhook): Likewise.
44034
44035         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
44036         used and couldn't be at all thread-safe.
44037
44038 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
44039
44040         * libio/freopen.c (freopen): Don't close old file descriptor
44041         before the new one is opened.  Instead dup the new file descriptor
44042         to the old one after the new stream is created.
44043         * libio/freopen64.c (freopen64): Likewise.
44044         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
44045         * libio/fileops.c (_IO_new_file_close_it): Handle new
44046         _IO_FLAGS2_NOCLOSE flag.
44047         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
44048         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
44049         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
44050         _IO_FLAGS2_NOCLOSE flag.
44051         * include/unistd.h: Add hidden_proto for dup3.
44052         Define __have_dup3.
44053         * io/dup3.c: Define hidden symbol.
44054         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
44055
44056         [BZ #7101]
44057         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
44058         when an incomplete long option is used.
44059         * posix/tst-getopt_long1.c: New file.
44060         * posix/Makefile (tests): Add tst-getopt_long1.
44061
44062         [BZ #10138]
44063         * scripts/config.guess: Update from autoconf-2.68.
44064         * scripts/config.sub: Likewise.
44065
44066         [BZ #10157]
44067         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
44068         tests into ...
44069         (has_cpuclock): ...this.  New function.
44070         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
44071         macro here based on has_cpuclock code.
44072
44073         [BZ #10149]
44074         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44075         First byte (not low byte) is now always NUL.
44076         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
44077
44078         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44079         Use non-cancelable interfaces.
44080
44081         [BZ #9809]
44082         * locale/iso-639.def: Add entry for Sorani.
44083
44084         [BZ #11901]
44085         * include/stdlib.h: Move include protection to the right place.
44086         Define abort_msg_s.  Declare __abort_msg with it.
44087         * stdlib/abort.c (__abort_msg): Adjust type.
44088         * assert/assert.c (__assert_fail_base): New function.  Majority
44089         of code from __assert_fail.  Allocate memory for __abort_msg with
44090         mmap.
44091         (__assert_fail): Now call __assert_fail_base.
44092         * assert/assert-perr.c: Remove bulk of implementation.  Use
44093         __assert_fail_base.
44094         * include/assert.hL Declare __assert_fail_base.
44095         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
44096         mmap.
44097         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
44098
44099 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
44100
44101         [BZ #11952]
44102         [BZ #12453]
44103         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
44104         until all modules are registered in the DTV.
44105         * elf/Makefile: Add rules to build and run tst-tls19.
44106         * elf/tst-tls19.c: New file.
44107         * elf/tst-tls19mod1.c: New file.
44108         * elf/tst-tls19mod2.c: New file.
44109         * elf/tst-tls19mod3.c: New file.
44110         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
44111
44112         [BZ #12083]
44113         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
44114         correctly.
44115
44116         [BZ #12601]
44117         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
44118         two-byte sequence errors.
44119         * iconvdata/Makefile (tests): Add bug-iconv8.
44120         * iconvdata/bug-iconv8.c: New file.
44121
44122         [BZ #12626]
44123         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
44124         buf2 definition.
44125
44126         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
44127
44128         [BZ #12432]
44129         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
44130         (dummy_getcfa): New function.
44131         (init): Get _Unwind_GetCFA address, use dummy if not found.
44132         (backtrace_helper): In recursion check, also check whether CFA changes.
44133         (__backtrace): Completely initialize arg.
44134
44135         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
44136         storing incomplete byte sequence in state object.  Avoid testing for
44137         guaranteed too small input if we know there is enough data available.
44138
44139 2011-05-11  Andreas Schwab  <schwab@redhat.com>
44140
44141         * Makeconfig (+link-pie): Indent.
44142         * Rules (binaries-pie): Define if $(have-fpie) and
44143         $(build-shared).
44144         (binaries-shared): Also filter out $(binaries-pie).
44145         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
44146         * nscd/Makefile (others-pie): Add nscd.
44147         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
44148         ($(objpfx)nscd): Remove command override.
44149         * login/Makefile (others-pie): Add pt_chown.
44150         ($(objpfx)pt_chown): Remove command override.
44151         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
44152         remove command overrides.
44153
44154 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
44155
44156         * libio/tst_putwc.c: Fix error messages.
44157
44158         [BZ #12724]
44159         * libio/fileops.c (_IO_new_file_close_it): Always flush when
44160         currently writing and seek to current position when not.
44161         * libio/Makefile (tests): Add bug-fclose1.
44162         * libio/bug-fclose1.c: New file.
44163
44164 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
44165
44166         [BZ #12511]
44167         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
44168         don't set DF_1_NODELETE here.
44169         (do_lookup_x): When entering new entry test for copy relocation
44170         and if necessary set DF_1_NODELETE flag.
44171         * elf/tst-unique4.cc: New file.
44172         * elf/tst-unique4.h: New file.
44173         * elf/tst-unique4lib.cc: New file.
44174         * elf/Makefile: Add rules to build and run tst-unique4.
44175         Patch by Piotr Bury <pbury@goahead.com>.
44176
44177 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
44178
44179         [BZ #12052]
44180         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
44181
44182         [BZ #12625]
44183         * misc/mntent_r.c (addmntent): Flush the stream after the output
44184
44185         [BZ #12393]
44186         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
44187         (is_trusted_path_normalize): Skip initial colon.  Append slash
44188         to empty buffer.  Duplicate is_trusted_path code but allow
44189         constructed patch to be prefix.
44190         (is_dst): Allow $ORIGIN followed by /.
44191         (_dl_dst_substitute): Correct clearing of check_for_trusted.
44192         Correct testing of result of is_trusted_path_normalize
44193         (decompose_rpath): Fix warning.
44194
44195 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
44196
44197         [BZ #11257]
44198         * grp/initgroups.c (internal_getgrouplist): When we found the service
44199         list through the initgroups entry in nsswitch.conf do not always
44200         continue on a successful lookup.  Don't always use the
44201         __nss_group_database value if it is set.
44202         * nss/nsswitch.conf (initgroups): Change action for successful db
44203         lookup to continue for compatibility.
44204
44205 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
44206
44207         [BZ #11532]
44208         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
44209         and CP774 modules.
44210         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
44211         and CP774 modules.
44212         * iconvdata/tst-tables.sh: Likewise.
44213         * iconvdata/cp770.c: New file.
44214         * iconvdata/cp771.c: New file.
44215         * iconvdata/cp772.c: New file.
44216         * iconvdata/cp773.c: New file.
44217         * iconvdata/cp774.c: New file.
44218         * iconvdata/testdata/CP770: New file.
44219         * iconvdata/testdata/CP770..UTF8: New file.
44220         * iconvdata/testdata/CP771: New file.
44221         * iconvdata/testdata/CP771..UTF8: New file.
44222         * iconvdata/testdata/CP772: New file.
44223         * iconvdata/testdata/CP772..UTF8: New file.
44224         * iconvdata/testdata/CP773: New file.
44225         * iconvdata/testdata/CP773..UTF8: New file.
44226         * iconvdata/testdata/CP774: New file.
44227         * iconvdata/testdata/CP774..UTF8: New file.
44228
44229         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
44230         END CHARMAP line.
44231         * iconvdata/gen-8bit-gap.sh: Likewise.
44232         * iconvdata/gen-8bit.sh: Likewise.
44233
44234         * locale/iso-639.def: Add ary entry.
44235
44236         [BZ #11258]
44237         * locale/C-translit.h.in: Add U20A1 transliteration.
44238
44239         [BZ #12178]
44240         * locale/iso-639.def: Add wae entry.
44241         Patch by Kevin Bortis <bortis@translate-wae.ch>.
44242
44243         [BZ #12545]
44244         * locale/programs/localedef.c (construct_output_path): Use ssize_t
44245         for n.
44246
44247         [BZ #12711]
44248         * locale/C-translit.h.in: Add entry for U20B9.
44249         Patch by pravin.d.s@gmail.com.
44250
44251 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
44252
44253         [BZ #12713]
44254         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
44255         ENAMETOOLONG use generic getcwd.
44256         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
44257         in rtld.  Use *stat64.
44258         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
44259         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
44260         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
44261         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
44262         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
44263         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
44264         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
44265         __fstatat64 macros.
44266         * include/dirent.h: Add libc_hidden_proto for rewinddir.
44267         * dirent/rewinddir.c: Add libc_hidden_def.
44268         * sysdeps/mach/hurd/rewinddir.c: Likewise.
44269         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
44270
44271         * include/dirent.h (__alloc_dir): Add flags parameter.
44272         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
44273         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
44274         __alloc_dir.
44275         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
44276         from fdopendir if O_CLOEXEC is already set.
44277
44278 2011-03-15  Alan Modra  <amodra@gmail.com>
44279
44280         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
44281         l_tls_firstbyte_offset non-zero.  Save padding offset in
44282         l_tls_firstbyte_offset for later use.
44283         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
44284         freeing static tls block.
44285
44286 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
44287
44288         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
44289         where #ifdef was intended.  The intent is to prevent ARG_MAX from
44290         being defined by the kernel headers.
44291
44292 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
44293
44294         [BZ #12734]
44295         * resolv/resolv.h: Define RES_NOTLDQUERY.
44296         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
44297         no-tld-query and set RES_NOTLDQUERY.
44298         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
44299         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
44300         modern BIND to search name as TLD unless forbidden.
44301
44302 2011-05-07  Petr Baudis  <pasky@suse.cz>
44303             Ulrich Drepper  <drepper@gmail.com>
44304
44305         [BZ #12393]
44306         * elf/dl-load.c (fillin_rpath): Move trusted path check...
44307         (is_trusted_path): ...to here.
44308         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
44309         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
44310         using is_trusted_path_normalize() in setuid scripts.
44311
44312 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
44313
44314         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
44315         __BEGIN/__END_DECLS.
44316
44317 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
44318
44319         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
44320         NSS_STATUS_NOTFOUND if no record was found.
44321
44322 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44323
44324         * sunrpc/Makefile (headers): Add rpc/netdb.h.
44325         (headers-not-in-tirpc): Remove rpc/netdb.h
44326         * resolv/netdb.h: Revert last change.
44327
44328 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
44329
44330         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
44331         circular dependency between libgcc.a and libc.a.
44332
44333 2011-05-05  Andreas Schwab  <schwab@redhat.com>
44334
44335         * resolv/netdb.h: Don't include <rpc/netdb.h>.
44336         * nis/Makefile: Don't install rpcsvc/*.
44337         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
44338         instead of <rpc/types.h>.
44339         (MAXHOSTNAMELEN): Define.
44340
44341 2011-05-03  Andreas Schwab  <schwab@redhat.com>
44342
44343         * elf/ldconfig.c (add_dir): Don't crash on empty path.
44344
44345 2011-04-28  Maciej Babinski  <mbabinski@google.com>
44346
44347         [BZ #12714]
44348         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
44349         gethostbyname4_r when IPv6 results are possible.
44350
44351 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
44352
44353         [BZ #12723]
44354         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
44355         _PC_PIPE_BUF handling.
44356
44357 2011-04-30  Bruno Haible  <bruno@clisp.org>
44358
44359         [BZ #12717]
44360         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
44361         * resolv/netdb.h (getnameinfo): Change type of flags parameter
44362         to 'int'.
44363         * inet/getnameinfo.c (getnameinfo): Likewise.
44364
44365 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
44366
44367         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
44368         to groups setting in database lookup.
44369         * nss/nsswitch.conf: Add initgroups entry.
44370
44371 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
44372
44373         [BZ #12685]
44374         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
44375         mode string.
44376         Patch by Eric Blake <eblake@redhat.com>.
44377
44378 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
44379
44380         * sunrpc/Makefile (need-export-routines): Add svc_run.
44381         (routines): Remove svc_run.
44382         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
44383         * sunrpc/clnt_perr.c (clnt_perrno): Export.
44384         * sunrpc/svc_run.c (svc_run): Likewise.
44385         * sunrpc/svc_udp.c (svcudp_create): Likewise.
44386
44387 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
44388
44389         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
44390         problem in reallocation in last patch.
44391
44392 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
44393
44394         * sunrpc/Makefile: Move inclusion of Rules.
44395
44396 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44397
44398         * nss/nss_files/files-initgroups.c: New file.
44399         * nss/Makefile (libnss_files-routines): Add files-initgroups.
44400         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
44401         _nss_files_initgroups_dyn.
44402
44403 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
44404
44405         * elf/elf.h (R_ARM_IRELATIVE): Define.
44406
44407 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
44408
44409         * po/ru.po: Update from translation team.
44410
44411 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44412
44413         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
44414         dependencies.
44415
44416 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
44417
44418         [BZ #12653]
44419         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
44420         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
44421         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
44422         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
44423         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
44424
44425 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
44426
44427         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
44428         differing bytes.
44429         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
44430         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
44431         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
44432
44433 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
44434
44435         [BZ #12420]
44436         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
44437         storing it.
44438         * stdlib/bug-getcontext.c: New file.
44439         * stdlib/Makefile: Add rules to build and run bug-getcontext.
44440
44441 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44442
44443         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
44444         instructions into .machine "z9-109".
44445         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
44446         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
44447
44448 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
44449
44450         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
44451         between environment variables and auxiliary vector.
44452
44453 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
44454
44455         * Makefile: Add rules to build linkobj/libc.so.
44456         * include/libc-symbols.h: Define libc_hidden_nolink.
44457         * include/rpc/auth.h: Mark functions which are to be hidden.
44458         * include/rpc/auth_des.h: Likewise.
44459         * include/rpc/auth_unix.h: Likewise.
44460         * include/rpc/clnt.h: Likewise.
44461         * include/rpc/des_crypt.h: Likewise.
44462         * include/rpc/key_prot.h: Likewise.
44463         * include/rpc/pmap_clnt.h: Likewise.
44464         * include/rpc/pmap_prot.h: Likewise.
44465         * include/rpc/pmap_rmt.h: Likewise.
44466         * include/rpc/rpc_msg.h: Likewise.
44467         * include/rpc/svc.h: Likewise.
44468         * include/rpc/svc_auth.h: Likewise.
44469         * include/rpc/xdr.h: Likewise.
44470         * nis/Makefile: Link all DSOs against linkobj/libc.so.
44471         * nss/Makefile: Likewise.
44472         * sunrpc/Makefile: Don't install headers.  Build library with normal
44473         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
44474         * sunrpc/auth_des.c: Hide exported symbols by default, export some
44475         for the compat linking library.  Remove use of INTDEF/INTUSE.
44476         * sunrpc/auth_none.c: Likewise.
44477         * sunrpc/auth_unix.c: Likewise.
44478         * sunrpc/authdes_prot.c: Likewise.
44479         * sunrpc/authuxprot.c: Likewise.
44480         * sunrpc/clnt_gen.c: Likewise.
44481         * sunrpc/clnt_perr.c: Likewise.
44482         * sunrpc/clnt_raw.c: Likewise.
44483         * sunrpc/clnt_simp.c: Likewise.
44484         * sunrpc/clnt_tcp.c: Likewise.
44485         * sunrpc/clnt_udp.c: Likewise.
44486         * sunrpc/clnt_unix.c: Likewise.
44487         * sunrpc/des_crypt.c: Likewise.
44488         * sunrpc/des_soft.c: Likewise.
44489         * sunrpc/get_myaddr.c: Likewise.
44490         * sunrpc/key_call.c: Likewise.
44491         * sunrpc/key_prot.c: Likewise.
44492         * sunrpc/netname.c: Likewise.
44493         * sunrpc/pm_getmaps.c: Likewise.
44494         * sunrpc/pm_getport.c: Likewise.
44495         * sunrpc/pmap_clnt.c: Likewise.
44496         * sunrpc/pmap_prot.c: Likewise.
44497         * sunrpc/pmap_prot2.c: Likewise.
44498         * sunrpc/pmap_rmt.c: Likewise.
44499         * sunrpc/publickey.c: Likewise.
44500         * sunrpc/rpc_cmsg.c: Likewise.
44501         * sunrpc/rpc_common.c: Likewise.
44502         * sunrpc/rpc_dtable.c: Likewise.
44503         * sunrpc/rpc_prot.c: Likewise.
44504         * sunrpc/rpc_thread.c: Likewise.
44505         * sunrpc/rtime.c: Likewise.
44506         * sunrpc/svc.c: Likewise.
44507         * sunrpc/svc_auth.c: Likewise.
44508         * sunrpc/svc_authux.c: Likewise.
44509         * sunrpc/svc_raw.c: Likewise.
44510         * sunrpc/svc_run.c: Likewise.
44511         * sunrpc/svc_simple.c: Likewise.
44512         * sunrpc/svc_tcp.c: Likewise.
44513         * sunrpc/svc_udp.c: Likewise.
44514         * sunrpc/svc_unix.c: Likewise.
44515         * sunrpc/svcauth_des.c: Likewise.
44516         * sunrpc/xcrypt.c: Likewise.
44517         * sunrpc/xdr.c: Likewise.
44518         * sunrpc/xdr_array.c: Likewise.
44519         * sunrpc/xdr_float.c: Likewise.
44520         * sunrpc/xdr_intXX_t.c: Likewise.
44521         * sunrpc/xdr_mem.c: Likewise.
44522         * sunrpc/xdr_rec.c: Likewise.
44523         * sunrpc/xdr_ref.c: Likewise.
44524         * sunrpc/xdr_sizeof.c: Likewise.
44525         * sunrpc/xdr_stdio.c: Likewise.
44526
44527 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
44528
44529         [BZ #12650]
44530         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
44531         * sysdeps/ia64/dl-tls.h: Likewise.
44532         * sysdeps/powerpc/dl-tls.h: Likewise.
44533         * sysdeps/s390/dl-tls.h: Likewise.
44534         * sysdeps/sh/dl-tls.h: Likewise.
44535         * sysdeps/sparc/dl-tls.h: Likewise.
44536         * sysdeps/x86_64/dl-tls.h: Likewise.
44537         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
44538
44539 2011-03-14  Andreas Schwab  <schwab@redhat.com>
44540
44541         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
44542         rpath element also skip the following colon.
44543         (expand_dynamic_string_token): Add is_path parameter and pass
44544         down to DL_DST_REQUIRED and _dl_dst_substitute.
44545         (decompose_rpath): Call expand_dynamic_string_token with
44546         non-zero is_path.  Ignore empty rpaths.
44547         (_dl_map_object_from_fd): Call expand_dynamic_string_token
44548         with zero is_path.
44549
44550 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
44551
44552         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
44553         Make cancelable.
44554
44555 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
44556
44557         [BZ #12655]
44558         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
44559         Patch by Filipe David Manana <fdmanana@apache.org>.
44560
44561 2011-04-07  Andreas Schwab  <schwab@redhat.com>
44562
44563         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
44564         Maintain aligned stack.
44565         (CHECK_RSP): Remove unused macro.
44566
44567 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
44568
44569         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
44570         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
44571
44572 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
44573
44574         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
44575
44576         * include/features.h: Mention __USE_XOPEN2K8 in comment.
44577
44578 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
44579
44580         [BZ #12518]
44581         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
44582         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
44583         * sysdeps/x86_64/memmove.c: New file.
44584         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
44585         (memcpy): Renamed to ...
44586         (__new_memcpy): This.
44587         (memcpy): Provide GLIBC_2_14 memcpy.
44588         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
44589         (memcpy): Provide GLIBC_2_2_5 memcpy.
44590
44591 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44592
44593         [BZ #12631]
44594         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
44595
44596 2011-03-30  Andreas Schwab  <schwab@redhat.com>
44597
44598         * misc/syncfs.c: New file.
44599         * misc/Makefile (routines): Add syncfs.
44600         * posix/unistd.h: Declare syncfs.
44601         * sysdeps/unix/syscalls.list: Add syncfs.
44602
44603 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44604
44605         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
44606         open_by_handle_at.
44607         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
44608         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44609         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44610         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44611         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44612         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
44613         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44614
44615 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44616
44617         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
44618         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44619         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
44620         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44621         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44622         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44623         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44624
44625         * io/Makefile: Compile fallocate.c, fallocate64.c, and
44626         sync_file_range.c with -fexceptions.
44627         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
44628         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
44629         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
44630         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
44631         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
44632         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
44633         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
44634         sync_file_range as cancellation point
44635         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
44636         now a wrapper around __call_sync_file_range with cancellation handling.
44637         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
44638         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
44639         function name to __call_sync_file_range.
44640         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
44641         Add call_sync_file_range.
44642
44643 2011-04-01  Andreas Schwab  <schwab@redhat.com>
44644
44645         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
44646         bits/timex.h.
44647
44648 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
44649
44650         * iconv/iconv.h: Fix typo in comment.
44651         * io/fcntl.h: Likewise.
44652         * libio/stdio.h: Likewise.
44653         * posix/spawn.h: Likewise.
44654         * posix/unistd.h: Likewise.
44655         * stdlib/stdlib.h: Likewise.
44656         * time/time.h: Likewise.
44657         * wcsmbs/wchar.h: Likewise.
44658
44659         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
44660         open_by_handle): Add.
44661         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
44662         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
44663         Augment a few comments.
44664         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
44665         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
44666         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
44667         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
44668         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
44669         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
44670         open_by_handle.
44671
44672         * io/fcntl.h (AT_EMPTY_PATH): Define.
44673
44674 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
44675
44676         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
44677         * sysdeps/unix/sysv/linux/bits/time.h: New file.
44678         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
44679         to...
44680         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
44681         * Versions.def: Add GLIBC_2.14.
44682         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
44683         Export.
44684
44685 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
44686
44687         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
44688         round counter.
44689         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44690
44691 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
44692
44693         [BZ #12597]
44694         * string/test-strncmp.c (do_page_test): New function.
44695         (check2): Likewise.
44696         (test_main): Call check2.
44697         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
44698
44699 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
44700
44701         [BZ #12587]
44702         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
44703         Handle cache information in CPU leaf 4.
44704         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
44705
44706 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
44707
44708         [BZ #12583]
44709         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
44710         character representation.
44711         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
44712
44713 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
44714
44715         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
44716         END(__isnan) to END(__isnanf) to match function entry point/label
44717         EALIGN(__isnanf,...).
44718
44719 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
44720
44721         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
44722
44723 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
44724
44725         [BZ #12510]
44726         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
44727         copy from the symbol referenced in the relocation to initialize the
44728         used variable.
44729         Patch by Piotr Bury <pbury@goahead.com>.
44730         * elf/Makefile: Add rules to build and tst-unique3.
44731         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
44732         * elf/tst-unique3.cc: New file.
44733         * elf/tst-unique3.h: New file.
44734         * elf/tst-unique3lib.cc: New file.
44735         * elf/tst-unique3lib2.cc: New file.
44736
44737         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
44738
44739 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
44740
44741         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
44742         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
44743         to _start.
44744
44745 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
44746
44747         * elf/dl-load.c (_dl_map_object): If we are looking for the first
44748         to-be-loaded object along a path to loader is ld.so.
44749
44750 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
44751             Ulrich Drepper  <drepper@gmail.com>
44752
44753         * sysdeps/x86_64/memset.S: After aligning destination, code
44754         branches to different locations depending on the value of
44755         misalignment, when multiarch is enabled. Fix this.
44756
44757 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
44758
44759         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
44760         Set _x86_64_preferred_memory_instruction for AMD processsors.
44761         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
44762         Set bit_Prefer_SSE_for_memop for AMD processors.
44763
44764 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
44765
44766         * libio/fmemopen.c (fmemopen): Optimize a bit.
44767
44768 2011-03-03  Andreas Schwab  <schwab@redhat.com>
44769
44770         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
44771
44772 2011-03-03  Roland McGrath  <roland@redhat.com>
44773
44774         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
44775
44776 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
44777
44778         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
44779         __bzero_ultra1 instead of __memset_ultra1.
44780
44781 2011-02-23  Andreas Schwab  <schwab@redhat.com>
44782             Ulrich Drepper  <drepper@gmail.com>
44783
44784         [BZ #12509]
44785         * include/link.h (struct link_map): Add l_orig_initfini.
44786         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
44787         returning unsuccessfully.
44788         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
44789         close of a file loaded at startup, restore the original l_initfini
44790         list.
44791         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
44792         list, store the pointer.
44793         * elf/Makefile ($(objpfx)noload-mem): New rule.
44794         (noload-ENV): Define.
44795         (tests): Add $(objpfx)noload-mem.
44796         * elf/noload.c: Include <memcheck.h>.
44797         (main): Call mtrace.  Close all opened handles.
44798
44799 2011-02-17  Andreas Schwab  <schwab@redhat.com>
44800
44801         [BZ #12454]
44802         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
44803         dependencies are missing.
44804
44805 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44806
44807         Fix __if_freereq crash: Unlike the generic version which uses free,
44808         Hurd needs munmap.
44809         * sysdeps/mach/hurd/ifreq.h: New file.
44810
44811 2011-01-27  Petr Baudis  <pasky@suse.cz>
44812             Ulrich Drepper  <drepper@gmail.com>
44813
44814         [BZ 12445]#
44815         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
44816         to extend_alloca().
44817         * stdio-common/bug23.c: New file.
44818         * stdio-common/Makefile (tests): Add bug23.
44819
44820 2010-09-28  Andreas Schwab  <schwab@redhat.com>
44821             Ulrich Drepper  <drepper@gmail.com>
44822
44823         [BZ #12489]
44824         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
44825         before performing relro protection.  At old place add assertion
44826         to make sure nothing changed.
44827
44828 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
44829             Glauber de Oliveira Costa  <glommer@gmail.com>
44830
44831         * elf/elf.h: Add new ARM TLS relocs.
44832
44833 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
44834
44835         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
44836         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
44837         cast from r3.
44838         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
44839         'tests' variable.
44840         * sysdeps/wordsize-64/tst-writev.c: New file.
44841
44842 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
44843
44844         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
44845         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
44846         insns in _dl_start to prevent a TOC reference before relocs are
44847         resolved.
44848
44849 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
44850
44851         [BZ #12469]
44852         * Makeconfig: Remove RANLIB definition.
44853         * Makerules: Don't use RANLIB.
44854         * aclocal.m4: Remove ranlib test.
44855         * configure.in: No need to check for ranlib.
44856         * elf/rtld-Rules: Don't use RANLIB.
44857
44858 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44859
44860         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
44861         protection macro.
44862         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
44863         inclusion protection macro.
44864
44865         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
44866         SIGRTMIN and SIGRTMAX and print information in that case only when
44867         SIGRTMIN is defined.
44868
44869 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
44870
44871         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
44872         arginfo fn returning -1.
44873
44874         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
44875         and thousands string is zero terminated.
44876
44877 2011-02-03  Andreas Schwab  <schwab@redhat.com>
44878
44879         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
44880         sysdeps/unix/sysv/linux/bits/socket.h.
44881
44882 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44883
44884         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
44885         (__CPU_COUNT): Remove old macros.
44886         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
44887         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
44888         (__CPU_ALLOC, __CPU_FREE): Add macros.
44889         (__sched_cpualloc, __sched_cpufree): Add declarations.
44890
44891 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
44892
44893         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
44894         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
44895         * nscd/aicache.c (addhstaiX): Return timeout of added value.
44896         (readdhstai): Return value of addhstaiX call.
44897         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
44898         (addgrbyX): Return value returned by cache_addgr.
44899         (readdgrbyname): Return value returned by addgrbyX.
44900         (readdgrbygid): Likewise.
44901         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
44902         (addpwbyX): Return value returned by cache_addpw.
44903         (readdpwbyname): Return value returned by addhstbyX.
44904         (readdpwbyuid): Likewise.
44905         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
44906         (addservbyX): Return value returned by cache_addserv.
44907         (readdservbyname): Return value returned by addservbyX:
44908         (readdservbyport): Likewise.
44909         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
44910         (addhstbyX): Return value returned by cache_addhst.
44911         (readdhstbyname): Return value returned by addhstbyX.
44912         (readdhstbyaddr): Likewise.
44913         (readdhstbynamev6): Likewise.
44914         (readdhstbyaddrv6): Likewise.
44915         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
44916         (readdinitgroups): Return value returned by addinitgroupsX.
44917         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
44918         (prune_cache): Keep track of timeout value of re-added entries.
44919         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
44920         * nscd/nscd.h: Adjust prototypes of readd* functions.
44921
44922 2011-02-04  Roland McGrath  <roland@redhat.com>
44923
44924         * nis/nis_server.c (nis_servstate): Use the right name for 0.
44925         (nis_stats): Likewise.
44926         * nis/nis_modify.c (nis_modify): Likewise.
44927         * nis/nis_remove.c (nis_remove): Likewise.
44928         * nis/nis_add.c (nis_add): Likewise.
44929
44930         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
44931
44932         * posix/fnmatch_loop.c: Add some consts.
44933
44934         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
44935
44936 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
44937
44938         [BZ #12460]
44939         * config.make.in (config-cflags-novzeroupper): Define.
44940         * configure.in: Substitute libc_cv_cc_novzeroupper.
44941         * elf/Makefile (AVX-CFLAGS): Define.
44942         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
44943         (CFLAGS-tst-auditmod4a.c): Likewise.
44944         (CFLAGS-tst-auditmod4b.c): Likewise.
44945         (CFLAGS-tst-auditmod6b.c): Likewise.
44946         (CFLAGS-tst-auditmod6c.c): Likewise.
44947         (CFLAGS-tst-auditmod7b.c): Likewise.
44948         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
44949
44950 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
44951
44952         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
44953         function to the callback.
44954         Patch partly by Jiri Olsa <jolsa@redhat.com>.
44955
44956 2011-02-02  Andreas Schwab  <schwab@redhat.com>
44957
44958         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
44959         of errno.
44960
44961 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
44962
44963         [BZ #11724]
44964         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
44965         of constructors.
44966         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
44967         of destructors.
44968         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
44969
44970         [BZ #11724]
44971         * elf/Makefile: Add rules to build and run new test.
44972         * elf/tst-initorder.c: New file.
44973         * elf/tst-initorder.exp: New file.
44974         * elf/tst-initordera1.c: New file.
44975         * elf/tst-initordera2.c: New file.
44976         * elf/tst-initordera3.c: New file.
44977         * elf/tst-initordera4.c: New file.
44978         * elf/tst-initorderb1.c: New file.
44979         * elf/tst-initorderb2.c: New file.
44980         * elf/tst-order-a1.c: New file.
44981         * elf/tst-order-a2.c: New file.
44982         * elf/tst-order-a3.c: New file.
44983         * elf/tst-order-a4.c: New file.
44984         * elf/tst-order-b1.c: New file.
44985         * elf/tst-order-b2.c: New file.
44986         * elf/tst-order-main.c: New file.
44987         New test case by George Gensure <werkt0@gmail.com>.
44988
44989 2010-10-01  Andreas Schwab  <schwab@redhat.com>
44990
44991         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
44992         decoding ACE if AI_CANONIDN.
44993
44994 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
44995
44996         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
44997
44998 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
44999
45000         * version.h (RELEASE): Bump for 2.13 release.
45001         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
45002
45003         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
45004
45005         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
45006         MADV_NOHUGEPAGE.
45007         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
45008         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
45009         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
45010         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
45011         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
45012         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45013
45014         * posix/getconf.c: Update copyright year.
45015         * catgets/gencat.c: Likewise.
45016         * csu/version.c: Likewise.
45017         * debug/catchsegv.sh: Likewise.
45018         * debug/xtrace.sh: Likewise.
45019         * elf/ldconfig.c: Likewise.
45020         * elf/ldd.bash.in: Likewise.
45021         * elf/sprof.c (print_version): Likewise.
45022         * iconv/iconv_prog.c: Likewise.
45023         * iconv/iconvconfig.c: Likewise.
45024         * locale/programs/locale.c: Likewise.
45025         * locale/programs/localedef.c: Likewise.
45026         * malloc/memusage.sh: Likewise.
45027         * malloc/mtrace.pl: Likewise.
45028         * nscd/nscd.c (print_version): Likewise.
45029         * nss/getent.c: Likewise.
45030
45031         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
45032         PF_CAIF, and PF_ALG.
45033         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45034
45035 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
45036
45037         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
45038         (modules-names): Use them.
45039         (ifunc-test-modules, ifunc-pie-tests): Define.
45040         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
45041         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
45042         (test-extras): Likewise.
45043         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
45044         $(compile-command.c).
45045         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
45046         (all-built-dso): Define.
45047         (check-textrel.out, check-execstack.out): Depend on it.
45048
45049         * configure.in: Don't override --enable-multi-arch.
45050
45051 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
45052
45053         [BZ #6812]
45054         * nscd/hstcache.c (tryagain): Define.
45055         (cache_addhst): Return tryagain not notfound for temporary errors.
45056         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
45057         failed.
45058
45059 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
45060
45061         [BZ #10563]
45062         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
45063         to make the syscall.
45064         * sysdeps/unix/sysv/linux/setgroups.c: New file.
45065
45066         [BZ #12378]
45067         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
45068         and fall back to matching as normal character if the string ends before
45069         the matching ']' is found.  This is what POSIX requires.
45070         * posix/testfnm.c: Adjust test result.
45071         * posix/globtest.sh: Adjust test result.  Add new test.
45072         * posix/tst-fnmatch.input: Likewise.
45073         * posix/tst-fnmatch2.c: Add new test.
45074
45075 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
45076
45077         * elf/Makefile (check-execstack): Revert last change.  Depend on
45078         check-execstack.h.
45079         (check-execstack.h): New target.
45080         (generated): Add check-execstack.h.
45081         * elf/check-execstack.c: Include "check-execstack.h".
45082         (main): Revert last change.
45083         (handle_file): Return zero if GNU_STACK is absent and
45084         DEFAULT_STACK_PERMS doesn't include PF_X.
45085
45086 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
45087
45088         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
45089         in child fails because the descriptor is already closed.
45090         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
45091         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
45092         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
45093
45094         [BZ #12397]
45095         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
45096         syscall.
45097
45098         [BZ #10484]
45099         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
45100         temporary buffer used to handle multi lookups locally.
45101         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
45102
45103 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45104
45105         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
45106         loader is ld.so.
45107
45108 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
45109
45110         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
45111         alignment for SSE2.
45112
45113 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
45114
45115         [BZ #12394]
45116         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
45117         characters.  When rounding increased number of integer digits recompute
45118         number of groups.
45119         * stdio-common/tst-grouping.c: New file.
45120         * stdio-common/Makefile: Add rules to build and run tst-grouping.
45121
45122 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
45123
45124         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
45125         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
45126
45127         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
45128         void.
45129         * bits/select.h: Likewise.
45130
45131 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
45132
45133         * po/ja.po: Update from translation team.
45134
45135 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
45136
45137         [BZ #11155]
45138         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
45139         implementation just like for lxstat, fxstatat, et al.
45140
45141 2010-12-27  Jim Meyering  <meyering@redhat.com>
45142
45143         [BZ #12348]
45144         * posix/regexec.c (build_trtable): Return failure indication upon
45145         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
45146
45147 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
45148
45149         [BZ #12201]
45150         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
45151         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
45152         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
45153         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
45154
45155         [BZ #12207]
45156         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
45157
45158         [BZ #12204]
45159         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
45160         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
45161
45162 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
45163
45164         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
45165         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
45166         script has SORT_BY_INIT_PRIORITY.
45167         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
45168         NO_CTORS_DTORS_SECTIONS is defined.
45169         * elf/soinit.c: Likewise.
45170         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
45171         NO_CTORS_DTORS_SECTIONS is defined.
45172         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
45173         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
45174         * sysdeps/sh/init-first.c: Likewise.
45175         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
45176
45177 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
45178
45179         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
45180         always use the slow path.
45181
45182 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
45183
45184         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
45185         similar rule which adds the sysdep directories to the header search in
45186         order to pick up the correct platform stackinfo.h.
45187         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
45188         perform test if it is, otherwise return successfully without testing.
45189         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
45190         DEFAULT_STACK_PERMS define in stackinfo.h.
45191         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
45192         defined in stackinfo.h.
45193         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
45194         DEFAULT_STACK_PERMS defined in stackinfo.h.
45195         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
45196         * sysdeps/ia64/stackinfo.h: Likewise.
45197         * sysdeps/s390/stackinfo.h: Likewise.
45198         * sysdeps/sh/stackinfo.h: Likewise.
45199         * sysdeps/sparc/stackinfo.h: Likewise.
45200         * sysdeps/x86_64/stackinfo.h: Likewise.
45201         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
45202         PF_X for powerpc64.  Retain PF_X for powerpc32.
45203
45204 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
45205
45206         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
45207         accurately.
45208         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
45209         GETDENTS_64BIT_ALIGNED.
45210
45211 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
45212
45213         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
45214
45215 2010-12-10  Andreas Schwab  <schwab@redhat.com>
45216
45217         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
45218         _GNU_SOURCE.
45219
45220         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
45221         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
45222         Remove __restrict.
45223         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
45224         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
45225
45226 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
45227
45228         [BZ #11655]
45229         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
45230         are initialized.
45231
45232 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
45233
45234         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
45235
45236 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
45237
45238         * po/it.po: Update from translation team.
45239
45240 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
45241
45242         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
45243         unused codes.
45244
45245 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
45246
45247         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
45248
45249 2010-11-24  Andreas Schwab  <schwab@redhat.com>
45250
45251         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
45252         specially.
45253         (gaih_getanswer_slice): Likewise.
45254
45255 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
45256
45257         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
45258
45259 2010-05-31  Petr Baudis  <pasky@suse.cz>
45260
45261         [BZ #11149]
45262         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
45263         silently even in the chroot mode.
45264
45265 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
45266
45267         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
45268         last patch a bit.  Pretty printing
45269
45270 2010-05-31  Petr Baudis <pasky@suse.cz>
45271
45272         [BZ #10085]
45273         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
45274         initialization of skip_initgroups_dyn.
45275
45276 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
45277
45278         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
45279         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
45280
45281 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
45282
45283         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
45284
45285 2010-11-11  Andreas Schwab  <schwab@redhat.com>
45286
45287         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
45288         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
45289         (tst-fnmatch-ENV): Set MALLOC_TRACE.
45290         ($(objpfx)tst-fnmatch-mem): New rule.
45291         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
45292         * posix/tst-fnmatch.c (main): Call mtrace.
45293
45294 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
45295
45296         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45297         Support Intel processor model 6 and model 0x2c.
45298
45299 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
45300
45301         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
45302           signed comparison.
45303
45304 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
45305
45306         [BZ #12205]
45307         * string/test-strncasecmp.c (check_result): New function.
45308         (do_one_test): Use it.
45309         (check1): New function.
45310         (test_main): Use it.
45311         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
45312         Support strcasecmp and strncasecmp.
45313
45314 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
45315
45316         [BZ #12194]
45317         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
45318         * sysdeps/x86_64/bits/byteswap.h: Likewise.
45319
45320 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
45321
45322         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
45323         IFUNC support.
45324         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45325         memset-x86-64.
45326         * sysdeps/x86_64/multiarch/bzero.S: New file.
45327         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
45328         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
45329         * sysdeps/x86_64/multiarch/memset.S: New file.
45330         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
45331         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45332         Set bit_Prefer_SSE_for_memop for Intel processors.
45333         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
45334         Define.
45335         (index_Prefer_SSE_for_memop): Define.
45336         (HAS_PREFER_SSE_FOR_MEMOP): Define.
45337
45338 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
45339
45340         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
45341         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
45342
45343 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
45344
45345         [BZ #12191]
45346         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45347         (__x86_64_raw_data_cache_size_half): Likewise.
45348         (__x86_64_raw_shared_cache_size): Likewise.
45349         (__x86_64_raw_shared_cache_size_half): Likewise.
45350
45351         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
45352         (__x86_64_raw_data_cache_size_half): Likewise.
45353         (__x86_64_raw_shared_cache_size): Likewise.
45354         (__x86_64_raw_shared_cache_size_half): Likewise.
45355         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
45356         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
45357         and __x86_64_raw_shared_cache_size_half.  Round
45358         __x86_64_data_cache_size_half, __x86_64_data_cache_size
45359         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
45360         to multiple of 256 bytes.
45361
45362 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
45363
45364         [BZ #12167]
45365         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
45366         of inacessible symlinks.  Verify result of symlink before returning it.
45367         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
45368         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
45369
45370 2010-10-28  Erich Ritz  <erichritz@gmail.com>
45371
45372         * math/math.h (isinf): Fix typo in comment.
45373
45374 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
45375
45376         * po/da.po: Update from translation team.
45377
45378 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
45379
45380         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
45381         is added to the list.
45382
45383 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45384             Ulrich Drepper  <drepper@gmail.com>
45385
45386         * elf/dl-object.c (_dl_new_object): Don't append the new object to
45387         the global list here.  Move code to...
45388         (_dl_add_to_namespace_list): ...here.  New function.
45389         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
45390         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
45391         * elf/dl-load.c (lose): Don't remove the element from the list.
45392         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
45393         (_dl_map_object): Likewise.
45394
45395 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
45396
45397         [BZ #12159]
45398         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
45399         into all bytes of SSE register.
45400         Patch by Richard Li <richardpku@gmail.com>.
45401
45402 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
45403
45404         [BZ #12140]
45405         * malloc/malloc.c (_int_free): Fill correct number of bytes when
45406         perturbing.
45407
45408 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
45409
45410         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
45411         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
45412         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
45413         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
45414         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
45415         submachine.
45416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
45417
45418 2010-10-22  Andreas Schwab  <schwab@redhat.com>
45419
45420         * include/dlfcn.h (__RTLD_SECURE): Define.
45421         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
45422         mode & __RTLD_SECURE instead.
45423         (open_path): Rename preloaded parameter to secure.
45424         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
45425         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
45426         * elf/dl-deps.c (openaux): Likewise.
45427         * elf/rtld.c (struct map_args): Remove is_preloaded.
45428         (map_doit): Don't use it.
45429         (dl_main): Likewise.
45430         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
45431         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
45432
45433 2010-09-09  Andreas Schwab  <schwab@redhat.com>
45434
45435         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
45436         (sysd-rules-targets): Remove duplicates.
45437         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
45438         rtld-%.$o dependency.
45439
45440 2010-10-18  Andreas Schwab  <schwab@redhat.com>
45441
45442         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
45443         _dl_map_object do it.
45444
45445 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
45446
45447         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
45448         fast fma builtins, define the macros in the C99 standard.
45449         (FP_FAST_FMAF): Likewise.
45450         (FP_FAST_FMAL): Likewise.
45451         * sysdeps/x86_64/bits/mathdef.h: Likewise.
45452
45453         * bits/mathdef.h: Update copyright year.
45454         * sysdeps/powerpc/bits/mathdef.h: Likewise.
45455
45456 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
45457
45458         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
45459         builtins, define the macros in the C99 standard.
45460         (FP_FAST_FMAF): Likewise.
45461         (FP_FAST_FMAL): Likewise.
45462         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
45463         multiply/add.
45464         (FP_FAST_FMAF): Likewise.
45465
45466 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
45467
45468         [BZ #3268]
45469         * math/libm-test.inc (fma_test): Some new testcases.
45470         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
45471         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
45472         y and infinite z.  Do multiplication by C already in long double.
45473         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
45474         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
45475         y and infinite z.  Do bitwise or of inexact bit into u.d.
45476         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
45477         * sysdeps/i386/fpu/s_fmaf.S: Removed.
45478         * sysdeps/i386/fpu/s_fma.S: Removed.
45479         * sysdeps/i386/fpu/s_fmal.S: Removed.
45480
45481 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
45482
45483         [BZ #3268]
45484         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
45485         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
45486         computation is not scheduled after fetestexcept.  Fix value
45487         of minimum denormal long double.
45488
45489 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
45490
45491         [BZ #3268]
45492         * math/libm-test.inc (fma_test): Add some more tests.
45493         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
45494         correctly.
45495
45496 2010-10-15  Andreas Schwab  <schwab@redhat.com>
45497
45498         * scripts/data/localplt-s390-linux-gnu.data: New file.
45499         * scripts/data/localplt-s390x-linux-gnu.data: New file.
45500
45501 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
45502
45503         [BZ #3268]
45504         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
45505         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
45506         instead of dbl-64.
45507         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
45508         inlines.
45509         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
45510         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
45511         if one of x and y is very large and the other is subnormal.
45512         * sysdeps/s390/fpu/s_fmaf.c: New file.
45513         * sysdeps/s390/fpu/s_fma.c: New file.
45514         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
45515         * sysdeps/powerpc/fpu/s_fma.S: New file.
45516         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
45517         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
45518         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
45519
45520 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
45521
45522         [BZ #3268]
45523         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
45524         fma tests.
45525         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
45526         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
45527         * sysdeps/i386/i686/multiarch/s_fma.c: Include
45528         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
45529         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
45530         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
45531         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
45532
45533 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
45534
45535         [BZ #12078]
45536         * posix/regcomp.c (parse_branch): One more memory leak plugged.
45537         * posix/bug-regex31.input: Add test case.
45538
45539 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45540
45541         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
45542         * posix/bug-regex31.input: New file.
45543
45544         [BZ #12078]
45545         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
45546         (parse_sub_exp): Fix last change, use postorder.
45547
45548         * posix/bug-regex31.c: New file.
45549         * posix/Makefile: Add rules to build and run bug-regex31.
45550
45551         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
45552
45553         [BZ #12078]
45554         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
45555
45556         [BZ #12108]
45557         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
45558         to have entries in sys_siglist.
45559
45560         [BZ #12093]
45561         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
45562         be NULL.
45563
45564 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
45565
45566         [BZ #3268]
45567         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
45568         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
45569         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
45570         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
45571         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
45572         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
45573         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
45574         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
45575         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
45576         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
45577         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
45578         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
45579         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
45580         * math/ftestexcept.c (fetestexcept): Likewise.
45581         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
45582         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
45583         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
45584         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
45585         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
45586         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
45587         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
45588
45589 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
45590
45591         [BZ #12107]
45592         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
45593         newline.
45594
45595 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
45596
45597         * string/bug-strstr1.c: New file.
45598         * string/Makefile: Add rules to build and run bug-strstr1.
45599
45600 2010-10-05  Eric Blake  <eblake@redhat.com>
45601
45602         [BZ #12092]
45603         * string/str-two-way.h (two_way_long_needle): Always clear memory
45604         when skipping input due to the shift table.
45605
45606 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
45607
45608         [BZ #12005]
45609         * malloc/mcheck.c: Handle large requests.
45610
45611         [BZ #12077]
45612         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
45613         for strncmp and strncasecmp.
45614         * string/stratcliff.c: Add tests for strcmp and strncmp.
45615         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
45616
45617 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
45618
45619         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
45620         __set_fpscr.
45621
45622 2010-09-30  Andreas Jaeger  <aj@suse.de>
45623
45624         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
45625         (CGROUP_SUPER_MAGIC): Define.
45626         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45627         Handle btrfs and cgroup file systems.
45628         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
45629         Likewise.
45630
45631 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
45632
45633         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
45634         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
45635
45636 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45637
45638         [BZ #12067]
45639         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
45640         trying to locate the ELF header.
45641
45642 2010-09-27  Andreas Schwab  <schwab@redhat.com>
45643
45644         [BZ #11611]
45645         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
45646         Mask out sign-bit copies when constructing f_fsid.
45647
45648 2010-09-24  Petr Baudis <pasky@suse.cz>
45649
45650         * debug/stack_chk_fail_local.c: Add missing licence exception.
45651         * debug/warning-nop.c: Likewise.
45652
45653 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
45654
45655         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
45656         implementing getdents64 using getdents syscall, set d_type if
45657         __ASSUME_GETDENTS32_D_TYPE.
45658
45659 2010-09-16  Andreas Schwab  <schwab@redhat.com>
45660
45661         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
45662         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
45663
45664 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
45665
45666         [BZ #12037]
45667         * posix/unistd.h: Undo change of feature selection for ftruncate from
45668         2010-01-11.
45669
45670 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
45671
45672         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
45673         detection.
45674
45675 2010-09-20  Andreas Schwab  <schwab@redhat.com>
45676
45677         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
45678         fanotify_mark.
45679         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
45680
45681 2010-09-14  Andreas Schwab  <schwab@redhat.com>
45682
45683         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
45684         variables after CHECK_SP call.
45685         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
45686
45687 2010-09-13  Andreas Schwab  <schwab@redhat.com>
45688             Ulrich Drepper  <drepper@redhat.com>
45689
45690         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
45691         re-relocationg ld.so.
45692         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
45693         _dl_init_paths call.
45694         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
45695         here anymore.
45696
45697 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
45698
45699         * resolv/res_init.c (__res_vinit): Count the default server we added.
45700
45701 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
45702             Ulrich Drepper  <drepper@redhat.com>
45703
45704         [BZ #11968]
45705         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
45706         (____longjmp_chk): Use %ebx for saving value across system call.
45707         Add unwind info.
45708
45709 2010-09-06  Andreas Schwab  <schwab@redhat.com>
45710
45711         * manual/Makefile: Don't mix pattern rules with normal rules.
45712
45713 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
45714
45715         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
45716         operation.
45717         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
45718         * libio/iofopncook.c (_IO_cookie_init): Likewise.
45719         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
45720         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
45721         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
45722         Likewise.
45723
45724 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
45725
45726         [BZ #11979]
45727         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
45728         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
45729
45730 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
45731
45732         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
45733         * sysdeps/x86_64/addmul_1.S: Likewise.
45734         * sysdeps/x86_64/lshift.S: Likewise.
45735         * sysdeps/x86_64/mul_1.S: Likewise.
45736         * sysdeps/x86_64/rshift.S: Likewise.
45737         * sysdeps/x86_64/sub_n.S: Likewise.
45738         * sysdeps/x86_64/submul_1.S: Likewise.
45739
45740 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
45741
45742         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
45743         Define __sched_param instead of SCHED_* and sched_param when
45744         <bits/sched.h> is included with __need_schedparam defined.
45745         * bits/sched.h [__need_schedparam]
45746         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
45747         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
45748         (__defined_schedparam): Define to 1.
45749         (__sched_param): New structure, identical to sched_param.
45750         (__need_schedparam): Undefine.
45751
45752 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
45753
45754         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
45755         (epoll_create1): Declare.
45756
45757         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
45758
45759 2010-08-31  Andreas Schwab  <schwab@redhat.com>
45760
45761         [BZ #7066]
45762         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
45763         shifting retval into place.
45764
45765 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
45766
45767         * nis/rpcsvc/nis.h: Update copyright notice.
45768         * nis/rpcsvc/nis.x: Likewise.
45769         * nis/rpcsvc/nis_callback.h: Likewise.
45770         * nis/rpcsvc/nis_callback.x: Likewise.
45771         * nis/rpcsvc/nis_object.x: Likewise.
45772         * nis/rpcsvc/nis_tags.h: Likewise.
45773         * nis/rpcsvc/yp.h: Likewise.
45774         * nis/rpcsvc/yp.x: Likewise.
45775         * nis/rpcsvc/ypupd.h: Likewise.
45776         * nis/yp_xdr.c: Likewise.
45777         * nis/ypupdate_xdr.c: Likewise.
45778
45779         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
45780         mainly the body of pmap_getport.  Add parameters to specify timeouts.
45781         (pmap_getport): Use __libc_rpc_getport.
45782         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
45783         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
45784         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
45785
45786 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
45787
45788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
45789         fanotify_mark.
45790
45791 2010-08-27  Roland McGrath  <roland@redhat.com>
45792
45793         * sysdeps/i386/i686/multiarch/Makefile
45794         (CFLAGS-varshift.c): New variable.
45795
45796 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
45797
45798         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
45799         * sysdeps/i386/i686/multiarch/varshift.c: New file.
45800
45801         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
45802
45803         * sysdeps/x86_64/strlen.S: Minimal code improvement.
45804
45805 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
45806
45807         * sysdeps/x86_64/strlen.S: Unroll the loop.
45808         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45809         strlen-sse2 strlen-sse2-bsf.
45810         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
45811         __strlen_no_bsf if bit_Slow_BSF is set.
45812         (__strlen_sse42): Removed.
45813         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
45814         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
45815
45816 2010-08-25  Roland McGrath  <roland@redhat.com>
45817
45818         * sysdeps/x86_64/multiarch/varshift.S: File removed.
45819         * sysdeps/x86_64/multiarch/varshift.c: New file.
45820         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
45821         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
45822         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
45823         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
45824
45825 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
45826
45827         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
45828         strlen-sse2 strlen-sse2-bsf.
45829         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
45830         __strlen_sse2_bsf if bit_Slow_BSF is unset.
45831         (__strlen_sse2): Removed.
45832         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
45833         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
45834         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
45835         bit_Slow_BSF for Atom.
45836         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
45837         (index_Slow_BSF): Define.
45838         (HAS_SLOW_BSF): Define.
45839
45840 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
45841
45842         [BZ #10851]
45843         * resolv/res_init.c (__res_vinit): When no server address at all
45844         is given default to loopback.
45845
45846 2010-08-24  Roland McGrath  <roland@redhat.com>
45847
45848         * configure.in: Remove config-name.h generation.
45849         * configure: Regenerated.
45850         * config-name.in: File removed.
45851         * scripts/config-uname.sh: New file.
45852         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
45853         ($(objdir)config-name.h): New target.
45854
45855         * sunrpc/rpc_parse.h: Avoid nested comment.
45856
45857 2010-08-24  Richard Henderson  <rth@redhat.com>
45858             Ulrich Drepper  <drepper@redhat.com>
45859             H.J. Lu  <hongjiu.lu@intel.com>
45860
45861         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
45862         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
45863         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
45864         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
45865         _mm_alignr_epi8 with _mm_loadu_si128.
45866         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
45867         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
45868         (__m128i_shift_right): Removed.
45869         * sysdeps/i386/i686/multiarch/varshift.h: New file.
45870         * sysdeps/i386/i686/multiarch/varshift.S: New file.
45871         * sysdeps/x86_64/multiarch/varshift.h: New file.
45872         * sysdeps/x86_64/multiarch/varshift.S: New file.
45873
45874 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
45875
45876         * configure.in: Move assembler checks to before sysdep dir checking.
45877
45878 2010-08-20  Petr Baudis  <pasky@suse.cz>
45879
45880         * LICENSES: Sync the sunrpc license.
45881
45882 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
45883
45884         * sunrpc/auth_des.c: Update copyright notice once again.
45885         * sunrpc/auth_none.c: Likewise.
45886         * sunrpc/auth_unix.c: Likewise.
45887         * sunrpc/authdes_prot.c: Likewise.
45888         * sunrpc/authuxprot.c: Likewise.
45889         * sunrpc/bindrsvprt.c: Likewise.
45890         * sunrpc/clnt_gen.c: Likewise.
45891         * sunrpc/clnt_perr.c: Likewise.
45892         * sunrpc/clnt_raw.c: Likewise.
45893         * sunrpc/clnt_simp.c: Likewise.
45894         * sunrpc/clnt_tcp.c: Likewise.
45895         * sunrpc/clnt_udp.c: Likewise.
45896         * sunrpc/clnt_unix.c: Likewise.
45897         * sunrpc/des_crypt.c: Likewise.
45898         * sunrpc/des_soft.c: Likewise.
45899         * sunrpc/get_myaddr.c: Likewise.
45900         * sunrpc/getrpcport.c: Likewise.
45901         * sunrpc/key_call.c: Likewise.
45902         * sunrpc/key_prot.c: Likewise.
45903         * sunrpc/openchild.c: Likewise.
45904         * sunrpc/pm_getmaps.c: Likewise.
45905         * sunrpc/pm_getport.c: Likewise.
45906         * sunrpc/pmap_clnt.c: Likewise.
45907         * sunrpc/pmap_prot.c: Likewise.
45908         * sunrpc/pmap_prot2.c: Likewise.
45909         * sunrpc/pmap_rmt.c: Likewise.
45910         * sunrpc/rpc/auth.h: Likewise.
45911         * sunrpc/rpc/auth_unix.h: Likewise.
45912         * sunrpc/rpc/clnt.h: Likewise.
45913         * sunrpc/rpc/des_crypt.h: Likewise.
45914         * sunrpc/rpc/key_prot.h: Likewise.
45915         * sunrpc/rpc/netdb.h: Likewise.
45916         * sunrpc/rpc/pmap_clnt.h: Likewise.
45917         * sunrpc/rpc/pmap_prot.h: Likewise.
45918         * sunrpc/rpc/pmap_rmt.h: Likewise.
45919         * sunrpc/rpc/rpc.h: Likewise.
45920         * sunrpc/rpc/rpc_des.h: Likewise.
45921         * sunrpc/rpc/rpc_msg.h: Likewise.
45922         * sunrpc/rpc/svc.h: Likewise.
45923         * sunrpc/rpc/svc_auth.h: Likewise.
45924         * sunrpc/rpc/types.h: Likewise.
45925         * sunrpc/rpc/xdr.h: Likewise.
45926         * sunrpc/rpc_clntout.c: Likewise.
45927         * sunrpc/rpc_cmsg.c: Likewise.
45928         * sunrpc/rpc_common.c: Likewise.
45929         * sunrpc/rpc_cout.c: Likewise.
45930         * sunrpc/rpc_dtable.c: Likewise.
45931         * sunrpc/rpc_hout.c: Likewise.
45932         * sunrpc/rpc_main.c: Likewise.
45933         * sunrpc/rpc_parse.c: Likewise.
45934         * sunrpc/rpc_parse.h: Likewise.
45935         * sunrpc/rpc_prot.c: Likewise.
45936         * sunrpc/rpc_sample.c: Likewise.
45937         * sunrpc/rpc_scan.c: Likewise.
45938         * sunrpc/rpc_scan.h: Likewise.
45939         * sunrpc/rpc_svcout.c: Likewise.
45940         * sunrpc/rpc_tblout.c: Likewise.
45941         * sunrpc/rpc_util.c: Likewise.
45942         * sunrpc/rpc_util.h: Likewise.
45943         * sunrpc/rpcinfo.c: Likewise.
45944         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
45945         * sunrpc/rpcsvc/key_prot.x: Likewise.
45946         * sunrpc/rpcsvc/klm_prot.x: Likewise.
45947         * sunrpc/rpcsvc/mount.x: Likewise.
45948         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
45949         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
45950         * sunrpc/rpcsvc/rex.x: Likewise.
45951         * sunrpc/rpcsvc/rstat.x: Likewise.
45952         * sunrpc/rpcsvc/rusers.x: Likewise.
45953         * sunrpc/rpcsvc/sm_inter.x: Likewise.
45954         * sunrpc/rpcsvc/spray.x: Likewise.
45955         * sunrpc/rpcsvc/yppasswd.x: Likewise.
45956         * sunrpc/rtime.c: Likewise.
45957         * sunrpc/svc.c: Likewise.
45958         * sunrpc/svc_auth.c: Likewise.
45959         * sunrpc/svc_authux.c: Likewise.
45960         * sunrpc/svc_raw.c: Likewise.
45961         * sunrpc/svc_run.c: Likewise.
45962         * sunrpc/svc_simple.c: Likewise.
45963         * sunrpc/svc_tcp.c: Likewise.
45964         * sunrpc/svc_udp.c: Likewise.
45965         * sunrpc/svc_unix.c: Likewise.
45966         * sunrpc/svcauth_des.c: Likewise.
45967         * sunrpc/xcrypt.c: Likewise.
45968         * sunrpc/xdr.c: Likewise.
45969         * sunrpc/xdr_array.c: Likewise.
45970         * sunrpc/xdr_float.c: Likewise.
45971         * sunrpc/xdr_mem.c: Likewise.
45972         * sunrpc/xdr_rec.c: Likewise.
45973         * sunrpc/xdr_ref.c: Likewise.
45974         * sunrpc/xdr_sizeof.c: Likewise.
45975         * sunrpc/xdr_stdio.c: Likewise.
45976
45977         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
45978         handling.
45979
45980 2010-08-19  Andreas Schwab  <schwab@redhat.com>
45981
45982         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
45983
45984 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
45985
45986         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
45987         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
45988         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
45989         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
45990         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
45991         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
45992         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
45993         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
45994         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
45995         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
45996         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
45997         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
45998         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
45999         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
46000
46001 2010-07-26  Anton Blanchard  <anton@samba.org>
46002
46003         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
46004         * malloc/arena.c (heap_trim): Likewise.
46005
46006 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
46007
46008         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
46009         here.  Not...
46010         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
46011         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
46012
46013 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
46014
46015         * sysdeps/i386/elf/Makefile: New file.
46016
46017 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46018
46019         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
46020         from fanotify_init.
46021         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
46022         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46023
46024 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
46025
46026         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
46027         of strncasecmp_l.
46028         * sysdeps/multiarch/strcmp.S: Likewise.
46029
46030 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
46031
46032         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46033         strncase_l-nonascii.
46034         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46035         Add strncase_l-ssse3.
46036         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
46037         * sysdeps/x86_64/strcmp.S: Likewise.
46038         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
46039         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
46040         * sysdeps/x86_64/strncase.S: New file.
46041         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
46042         * sysdeps/x86_64/strncase_l.S: New file.
46043         * string/Makefile (strop-tests): Add strncasecmp.
46044         * string/test-strncasecmp.c: New file.
46045
46046         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
46047         warning.
46048
46049         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
46050         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
46051
46052 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
46053
46054         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
46055
46056 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
46057
46058         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
46059         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
46060         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
46061
46062 2010-05-01  Alan Modra  <amodra@gmail.com>
46063
46064         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
46065         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
46066         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
46067         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
46068         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
46069         tidying.  Don't tail-call __sigjmp_save for static lib.
46070         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
46071         save location.
46072         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
46073         (CALL_MCOUNT): Add eh info, and nop after bl.
46074         (TAIL_CALL_SYSCALL_ERROR): New macro.
46075         (PSEUDO_RET): Use it.
46076         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
46077         Correct save location of integer regs and cr.
46078         (_dl_profile_resolve): Correct cr save location.  Delete nops
46079         after bl when SHARED.  Reduce cfi size a little by better
46080         placement of cfi directives.
46081         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
46082         make a stack frame.  Instead use parm save area as a temp.
46083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
46084         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
46085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
46086         Don't make a stack frame for parent, use parm save area.
46087         Increase child stack frame to 112 bytes.  Don't save unused reg,
46088         and adjust reg usage.  Set up cfi on error recovery and
46089         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
46090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
46091         (__makecontext): Add dummy nop after jump to exit.
46092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
46093         Use correct parm save area and cr save, reduce stack frame.
46094         Correct cfi for possible PSEUDO_RET frame setup.
46095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
46096         Branch to local label emitted by PSEUDO_RET rather than
46097         __syscall_error.
46098
46099 2010-08-12  Andreas Schwab  <schwab@redhat.com>
46100
46101         [BZ #11904]
46102         * locale/programs/locale.c (print_assignment): New function.
46103         (show_locale_vars): Use it.
46104
46105 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
46106
46107         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
46108         field.
46109         (struct statfs64): Likewise.
46110         (_STATFS_F_FLAGS): Define.
46111         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
46112         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
46113         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
46114         (ST_VALID): Define locally.
46115         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
46116         __statvfs_getflags, use the provided value.
46117         * sysdeps/unix/sysv/linux/kernel-features.h: Define
46118         __ASSUME_STATFS_F_FLAGS.
46119
46120         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
46121
46122         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
46123         Add sys/fanotify.h.
46124         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
46125         fanotify_mask for GLIBC_2.13.
46126         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
46127         fanotify_init and fanotify_mark.
46128         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
46129         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
46130
46131         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
46132         Add prlimit.
46133         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
46134         prlimit64 for GLIBC_2.13.
46135         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
46136         prlimit64.
46137         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
46138         syscall.
46139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
46140         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
46141         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
46142         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
46143         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
46144         add prlimit alias.
46145         * sysdeps/unix/sysv/linux/prlimit.c: New file.
46146
46147         [BZ #11903]
46148         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
46149         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
46150
46151         * nss/Makefile: Add rules to build and run tst-nss-test1.
46152         * shlib-versions: Add entry for libnss_test1.
46153         * nss/nss_test1.c: New file.
46154         * nss/tst-nss-test1.c: New file.
46155
46156         * nss/nsswitch.c (__nss_database_custom): Define new variable.
46157         (__nss_configure_lookup): Set appropriate entry in
46158         __nss_configure_lookup to true.
46159         * nss/nsswitch.h: Define enum with indeces of databases in
46160         databases and __nss_database_custom arrays.  Declare
46161         __nss_database_custom.
46162         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
46163         to avoid using nscd when custom rules are installed.
46164         * nss/getXXbyYY_r.c: Likewise.
46165         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
46166
46167         * nss/nss_files/files-parse.c: Whitespace fixes.
46168
46169 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
46170
46171         [BZ #11883]
46172         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
46173         * posix/fnmatch_loop.c: Likewise.
46174
46175 2010-07-17  Andi Kleen  <ak@linux.intel.com>
46176
46177         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
46178         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
46179         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
46180         * Versions.def [GLIBC_2.13]: Add.
46181
46182 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
46183
46184         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46185         Also fail if tpwd after pwuid call is NULL.
46186
46187 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46188
46189         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
46190         when converting to ms.
46191
46192 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46193
46194         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
46195         EOPNOTSUPP errors with ENOTTY.
46196         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
46197         EOPNOTSUPP errors with ENOTTY.
46198
46199 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
46200
46201         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
46202         Add strcasecmp_l-ssse3.
46203         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
46204         strcasecmp.
46205         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
46206         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
46207         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
46208
46209 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
46210
46211         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
46212
46213         * string/Makefile (strop-tests): Add strcasecmp.
46214         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
46215         strcasecmp_l-nonascii.
46216         (gen-as-const-headers): Add locale-defines.sym.
46217         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
46218         * sysdeps/x86_64/strcasecmp.S: New file.
46219         * sysdeps/x86_64/strcasecmp_l.S: New file.
46220         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
46221         * sysdeps/x86_64/locale-defines.sym: New file.
46222         * string/test-strcasecmp.c: New file.
46223
46224         * string/test-strcasestr.c: Test both ends of the range of characters.
46225         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
46226
46227 2010-07-29  Roland McGrath  <roland@redhat.com>
46228
46229         [BZ #11856]
46230         * manual/locale.texi (Yes-or-No Questions): Fix example code.
46231
46232 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
46233
46234         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
46235         for ld.so.
46236
46237 2010-07-27  Andreas Schwab  <schwab@redhat.com>
46238
46239         * manual/memory.texi (Malloc Tunable Parameters): Document
46240         M_PERTURB.
46241
46242 2010-07-26  Roland McGrath  <roland@redhat.com>
46243
46244         [BZ #11840]
46245         * configure.in (-fgnu89-inline check): Set and substitute
46246         gnu89_inline, not libc_cv_gnu89_inline.
46247         * configure: Regenerated.
46248         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
46249
46250 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
46251
46252         * string/test-strnlen.c: New file.
46253         * string/Makefile (strop-tests): Add strnlen.
46254         * string/tester.c (test_strnlen): Add a few more test cases.
46255         * string/tst-strlen.c: Better error reporting.
46256
46257         * sysdeps/x86_64/strnlen.S: New file.
46258
46259 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
46260
46261         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
46262         lower-latency instructions.
46263
46264 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
46265
46266         * string/test-strcasestr.c: New file.
46267         * string/test-strstr.c: New file.
46268         * string/Makefile (strop-tests): Add strstr and strcasestr.
46269         * string/str-two-way.h: Don't undefine MAX.
46270         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
46271
46272 2010-07-21  Andreas Schwab  <schwab@redhat.com>
46273
46274         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
46275         strcasestr-nonascii.
46276         (CFLAGS-strcasestr-nonascii.c): Define.
46277         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
46278         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
46279         Remove unused attribute.
46280
46281 2010-07-20  Roland McGrath  <roland@redhat.com>
46282
46283         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
46284         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
46285         ld.so.cache was broken.  With it, there is no way to disable dsocaps
46286         like LD_HWCAP_MASK can disable hwcaps.
46287
46288 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46289
46290         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
46291
46292 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
46293
46294         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
46295         call in strcasestr.
46296         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
46297         __strcasestr_sse42_nonascii.
46298         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
46299         strcasestr-nonascii.c.
46300         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
46301
46302 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
46303
46304         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
46305         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
46306         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
46307         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
46308
46309 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
46310
46311         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
46312         fcntl.
46313
46314 2010-07-06  Andreas Schwab  <schwab@redhat.com>
46315
46316         [BZ #11577]
46317         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
46318         dl_signal_cerror.
46319
46320 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
46321
46322         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
46323         _PC_PIPE_BUF using F_GETPIPE_SZ.
46324
46325 2010-07-05  Roland McGrath  <roland@redhat.com>
46326
46327         * manual/arith.texi (Rounding Functions): Fix rint description
46328         implicit in round description.
46329
46330 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
46331
46332         * elf/Makefile: Fix linking for a few tests to make recent linker
46333         happy.
46334
46335 2010-06-30  Andreas Schwab  <schwab@redhat.com>
46336
46337         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
46338         $(common-objpfx)libc_nonshared.a.
46339
46340 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
46341
46342         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
46343         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
46344         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46345         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46346         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
46347         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
46348         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46349         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
46351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
46352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
46353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
46354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
46355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
46356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
46357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
46358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
46359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
46360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
46361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
46362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
46363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
46364         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
46365         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
46366         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
46367         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
46368         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
46369         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
46370         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
46371         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
46372         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
46373         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
46374         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
46375         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
46376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
46377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
46378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
46379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
46380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
46381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
46382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
46383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
46384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
46385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
46386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
46387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
46388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
46389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
46390
46391 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
46392
46393         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
46394         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
46395         * string/memmove.c (memmove): Renamed to ...
46396         (MEMMOVE): ...this.  Default to memmove.
46397         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
46398         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
46399         (END_CHK): Define.
46400         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
46401         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
46402         mempcpy-ssse3-back memmove-ssse3-back.
46403         * sysdeps/x86_64/multiarch/bcopy.S: New file .
46404         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
46405         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
46406         * sysdeps/x86_64/multiarch/memcpy.S: New file.
46407         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
46408         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
46409         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
46410         * sysdeps/x86_64/multiarch/memmove.c: New file.
46411         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
46412         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
46413         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
46414         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
46415         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
46416         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
46417         Define.
46418         (index_Fast_Copy_Backward): Define.
46419         (HAS_ARCH_FEATURE): Define.
46420         (HAS_FAST_REP_STRING): Define.
46421         (HAS_FAST_COPY_BACKWARD): Define.
46422
46423 2010-06-21  Andreas Schwab  <schwab@redhat.com>
46424
46425         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
46426         Restore proper fallback handling.
46427
46428 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
46429
46430         [BZ #11701]
46431         * posix/group_member.c (__group_member): Correct checking loop.
46432
46433         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
46434         OOM in getpwuid_r correctly.  Return error number when the caller
46435         should return, otherwise -1.
46436         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
46437         call returning > 0 value.
46438         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
46439
46440 2010-06-07  Andreas Schwab  <schwab@redhat.com>
46441
46442         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
46443         libc_nonshared.a from targets in modules-names.
46444
46445 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
46446
46447         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
46448         requires it.
46449
46450 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
46451
46452         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
46453         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
46454         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
46455         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
46456
46457 2010-06-02  Andreas Schwab  <schwab@redhat.com>
46458
46459         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
46460
46461 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
46462
46463         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
46464         and F_GETPIPE_SZ.
46465         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46466         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46467         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46468         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46469         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46470         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
46471
46472 2010-06-14  Roland McGrath  <roland@redhat.com>
46473
46474         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
46475
46476 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
46477
46478         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
46479         __REDIRECT followed by __THROW.
46480         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
46481         * posix/getopt.h (getopt): Likewise.
46482
46483 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
46484
46485         * hurd/lookup-at.c (__file_name_lookup_at): Accept
46486         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
46487         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
46488         in AT_FLAGS.
46489         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
46490         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
46491
46492 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
46493
46494         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
46495
46496 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
46497
46498         [BZ #11640]
46499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46500         Properly check family and model.
46501
46502 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
46503
46504         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
46505
46506 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
46507
46508         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
46509
46510 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
46511
46512         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
46513         symbol reference.
46514
46515 2010-05-19  Andreas Schwab  <schwab@redhat.com>
46516
46517         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
46518         symbol reference.
46519
46520 2010-05-21  Andreas Schwab  <schwab@redhat.com>
46521
46522         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
46523         and internal_recvmmsg.
46524         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
46525         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
46526         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
46527         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
46528
46529         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
46530         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
46531         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
46532
46533 2010-05-20  Andreas Schwab  <schwab@redhat.com>
46534
46535         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
46536
46537 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
46538
46539         POWER7 optimizations.
46540         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
46541         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
46542
46543 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
46544
46545         * version.h: Update for 2.13 development version.
46546
46547 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
46548
46549         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
46550         exceptions.  Return 0.
46551
46552 2010-05-07  Roland McGrath  <roland@redhat.com>
46553
46554         * elf/ldconfig.c (main): Add a const.
46555
46556 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
46557
46558         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
46559         (args_options): Add no-idn option.
46560         (ahosts_keys_int): Add idn_flags to ai_flags.
46561         (parse_option): Handle 'i' option to clear idn_flags.
46562
46563         * malloc/malloc.c (_int_free): Possible race in the most recently
46564         added check.  Only act on the data if no current modification
46565         happened.
46566
46567 See ChangeLog.17 for earlier changes.